1 2002-11-06 Andrew Cagney <cagney@redhat.com>
3 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
5 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
6 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
7 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
8 (i386_mxcsr_regnum_p): new function. Use instead of
10 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
11 (i386_sse_regnum_p): Declare.
12 (i386_mxcsr_regnum_p): Declare.
13 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
14 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
15 (IS_FP_REGNUM): Update definition.
16 (IS_FPU_CTRL_REGNUM): Update definition..
17 (IS_SSE_REGNUM): Update definition..
18 * i386v-nat.c (register_u_addr): Update.
19 * go32-nat.c (fetch_register): Update.
20 (store_register): Update.
22 2002-11-07 Joel Brobecker <brobecker@gnat.com>
24 Preparation work to convert the hppa targets to multiarch partial.
26 * hppa-tdep.c: Add new functions replacing macro bodies from
27 config/pa/tm-hppa.h. These function will be used to initialize
28 the gdbarch structure. Import some comments from tm-hppa.h,
29 and place them where appropriate, to avoid loosing them when
31 (hppa_reg_struct_has_addr): New function.
32 (hppa_inner_than): New function.
33 (hppa_stack_align): New function.
34 (hppa_pc_requires_run_before_use): New function.
35 (hppa_instruction_nullified): New function.
36 (hppa_register_byte): New function.
37 (hppa_register_virtual_type): New function.
38 (hppa_store_struct_return): New function.
39 (hppa_cannot_store_register): New function.
40 (hppa_frame_args_address): New function.
41 (hppa_frame_locals_address): New function.
42 (hppa_smash_text_address): New function.
43 (hppa_coerce_float_to_double): New function. Requires the inclusion
46 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
48 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
49 gdbarch-eligible macro to a call to the new associated function
50 created in hppa-tdep.c.
51 (INNER_THAN): Likewise.
52 (STACK_ALIGN): Likewise.
53 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
54 (INSTRUCTION_NULLIFIED): Likewise.
55 (REGISTER_BYTE): Likewise.
56 (REGISTER_VIRTUAL_TYPE): Likewise.
57 (STORE_STRUCT_RETURN): Likewise.
58 (CANNOT_STORE_REGISTER): Likewise.
59 (FRAME_ARGS_ADDRESS): Likewise.
60 (FRAME_LOCALS_ADDRESS): Likewise.
61 (SMASH_TEXT_ADDRESS): Likewise.
62 (COERCE_FLOAT_TO_DOUBLE): Likewise.
63 (ABOUT_TO_RETURN): Delete, as no longer used.
65 2002-11-07 Fernando Nasser <fnasser@redhat.com>
67 * printcmd.c (disassemble_command): Remove obsolete function.
68 (_initialize_printcmd): Do not create disassemble command here.
69 * cli/cli-cmds.c (disassemble_command): New function. Implements
71 (init_cli_cmds): Create disassemble command here instead.
73 2002-11-07 Andrew Cagney <ac131313@redhat.com>
75 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
77 2002-11-07 Andrew Cagney <ac131313@redhat.com>
79 * regcache.h (regcache_cooked_read_using_offset_hack)
80 (regcache_cooked_write_using_offset_hack): Delete declarations.
81 (register_changed): Delete declaration.
82 * regcache.c (regcache_cooked_read_using_offset_hack)
83 (regcache_cooked_write_using_offset_hack): Delete functions.
84 (cooked_xfer_using_offset_hack): Delete function.
85 (register_changed): Delete function.
87 2002-11-07 Jim Blandy <jimb@redhat.com>
89 * macroscope.c: #include "complaints.h".
90 (sal_macro_scope): Cope with filenames that appear in the symtabs,
91 but not in the macro table.
92 * Makefile.in (macroscope.o): Record dependency.
94 2002-11-07 Joel Brobecker <brobecker@gnat.com>
96 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
98 2002-11-07 Andrew Cagney <ac131313@redhat.com>
100 * regcache.c (deprecated_registers_fetched): Update.
101 * regcache.h (deprecated_registers_fetched): Rename
103 * remote-vxsparc.c (vx_read_register): Update.
104 * remote-vxmips.c (vx_read_register): Update.
105 * remote-vx68.c (vx_read_register): Update.
106 * irix5-nat.c (fetch_core_registers): Update.
107 * mipsm3-nat.c (fetch_inferior_registers): Update.
108 * sun3-nat.c (fetch_inferior_registers): Update.
109 * symm-nat.c (fetch_inferior_registers): Update.
110 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
111 (fetch_core_registers): Update.
112 (fetch_kcore_registers): Update.
113 * mips-nat.c (fetch_inferior_registers): Update.
114 * corelow.c (get_core_registers): Update.
115 * a68v-nat.c (fetch_inferior_registers): Update.
117 2002-11-06 Joel Brobecker <brobecker@gnat.com>
119 Put in place the framework necessary for multiarching the hppa targets.
120 * hppa-tdep.c (hppa_gdbarch_init): New function.
121 (hppa_dump_tdep): New function.
122 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
123 tdep structure dumper.
124 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
125 until the multi-arching conversion has partially been completed.
127 2002-11-06 Andrew Cagney <ac131313@redhat.com>
129 * valops.c (value_assign): Merge lval_register case into
130 lval_reg_frame_relative. Use frame_register and
131 regcache_cooked_write instead of get_saved_register and
132 write_register_bytes. After flushing the register cache, try to
133 re-select the selected frame.
135 2002-11-06 Andrew Cagney <ac131313@redhat.com>
137 * regcache.h (deprecated_register_valid): Rename register_valid.
138 * regcache.c: Update.
139 * ia64-aix-nat.c: Update.
140 * i386gnu-nat.c: Update.
141 * alpha-nat.c: Update.
142 * sparc-nat.c: Update.
143 * lynx-nat.c: Update.
144 * remote-mips.c: Update.
146 2002-11-06 Joel Brobecker <brobecker@gnat.com>
148 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
149 to end of file, to be more consistent with the pratice followed
152 2002-11-06 Andrew Cagney <ac131313@redhat.com>
154 * infcmd.c: Include "reggroups.h" and <ctype.h>.
155 (print_float_info): Print registers in float_reggroup.
156 (print_vector_info): Print registers in vector_reggroup.
157 (default_print_registers_info): When all, print registers in
158 all_reggroup. Otherwize, print registers in general_reggroup.
159 (registers_info): Rewrite. Add support for register groups.
162 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
164 * symtab.c (methods_info): Delete. It has been ifdeffed out for
166 (symtab_symbol_info): Remove eons old ifdeffed out code.
167 (_initialize_symtab): Remove prehistoric disabled 'info methods'
170 2002-11-06 Theodore A. Roth <troth@openavr.org>
172 * c-exp.y: Add missing semi-colons.
173 * f-exp.y: Add missing semi-colons.
174 * m2-exp.y: Add missing semi-colons.
175 * p-exp.y: Add missing semi-colons.
176 Add empty action to start rule to avoid a type clash error when
177 building with bison >= 1.50.
179 2002-11-06 Jim Blandy <jimb@redhat.com>
181 * macrotab.h (struct macro_source_file): Doc fix.
183 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
185 * varobj.c (child_exists, cplus_number_of_children): Change
186 STREQ macro references to strcmp.
187 (cplus_name_of_child): Change code to handle the fact that
188 fields are not necessarily contiguous with regards to their
189 access control. This is a fix for PR gdb/792.
191 2002-11-05 Andrew Cagney <ac131313@redhat.com>
193 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
194 * gdbarch.h, gdbarch.c: Regnerate.
195 * frame.h (frame_register): Declare.
196 * frame.c (frame_register): New function.
197 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
198 GET_SAVED_REGISTER, otherwize call
199 generic_unwind_get_saved_register.
200 (frame_register_read): Use frame_register instead of
203 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
205 From Jim Ingham <jingham@apple.com>:
206 * event-top.c (gdb_disable_readline): New function.
207 (_initialize_event_loop): Move comment.
209 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
211 * event-loop.c (start_event_loop): Add comment.
214 2002-11-05 Andrew Cagney <ac131313@redhat.com>
216 * infcmd.c (default_print_registers_info): Do not call
219 2002-11-05 Andrew Cagney <ac131313@redhat.com>
221 * sparc-tdep.c (sparc_print_register_hook): Make static.
222 (sparc_print_registers_info): New function.
223 (sparc_do_registers_info): New function.
224 (sparclet_print_registers_info): New function.
225 (sparclet_do_registers_info): New function.
226 (do_sparc_print_registers_info): New function.
227 (sparc_print_registers): New static function, clone of infcmd.c's
228 default_print_registers_info.
229 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
230 (sparclet_do_registers_info): Declare.
231 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
232 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
234 (sparc_do_registers_info): Declare.
235 (PRINT_REGISTER_HOOK): Delete macro.
236 (sparc_print_register_hook): Delete declaration.
238 2002-11-05 David Carlton <carlton@math.stanford.edu>
240 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
242 (lookup_symbol_aux_local): New function.
243 (lookup_symbol_aux_symtabs): New function.
244 (lookup_symbol_aux_psymtabs): New function.
246 2002-11-05 David Carlton <carlton@math.stanford.edu>
248 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
249 previous values of 'objfile' and 'block'.
251 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
253 * values.c (value_change_enclosing_type): Set
254 enclosing_type field correctly also for the case where
255 more memory needs to be allocated.
257 2002-11-03 Mark Kettenis <kettenis@gnu.org>
259 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
262 * i387-tdep.c (i387_print_float_info): Replace calls to
263 register_read and deprecated_read_register_gen with calls to
264 frame_register_read, and make the necessary adjustments to the
267 2002-11-02 Andrew Cagney <ac131313@redhat.com>
269 * gdbarch.sh (register_reggroup_p): Allow default value.
270 * gdbarch.h, gdbarch.c: Regenerate.
272 2002-11-02 Andrew Cagney <ac131313@redhat.com>
274 * regcache.h: Add coment indicating replacements for deprecated
277 2002-11-02 Andrew Cagney <cagney@redhat.com>
279 * reggroups.h, reggroups.c: New files.
280 * regcache.c: Include "reggroups.h".
281 (enum regcache_dump_what): Add `regcache_dump_groups'.
282 (regcache_dump): Contract size of the "Type" column. When
283 specified, dump the register's groups.
284 (maintenance_print_register_groups): New function.
285 (_initialize_regcache): Add command `maint print register-groups'.
286 * Makefile.in (COMMON_OBS): Add reggroups.o
287 (SFILES): Add reggroups.c.
288 (reggroups_h): Define.
289 (regcache.o, gdbarch.o): Update dependencies.
290 (reggroups.o): Specify dependencies.
291 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
292 Add opaque declaration for `struct reggroup' in generated .h file.
293 Include "reggroups.h" in generated .c file.
294 gdbarch.h, gdbarch.c: Re-generate.
296 2002-11-02 Andrew Cagney <cagney@redhat.com>
298 * regcache.h (deprecated_read_register_gen): Rename
300 (deprecated_write_register_gen): Rename write_register_gen.
301 * i387-tdep.c: Update.
302 * x86-64-linux-nat.c: Update
304 * thread-db.c: Update.
305 * win32-nat.c: Update.
306 * mips-tdep.c: Update.
307 * d10v-tdep.c: Update.
308 * cris-tdep.c: Update.
309 * remote-sim.c: Update.
310 * remote-rdi.c: Update.
311 * remote-rdp.c: Update.
314 * blockframe.c: Update.
315 * x86-64-tdep.c: Update.
316 * xstormy16-tdep.c: Update.
318 * s390-tdep.c: Update.
319 * rs6000-tdep.c: Update.
320 * sparc-tdep.c: Update.
321 * i386-tdep.c: Update.
322 * dwarf2cfi.c: Update.
323 * regcache.c: Update.
325 2002-11-01 Joel Brobecker <brobecker@gnat.com>
327 New interix-specific files:
328 * config/i386/nm-interix.h: New file.
329 * config/i386/interix.mh: New file.
330 * config/i386/interix.mt: New file.
331 * i386-interix-nat.c: New file.
332 * i386-interix-tdep.c: New file.
334 2002-11-01 Andrew Cagney <cagney@redhat.com>
336 * frame.h (deprecated_generic_get_saved_register): Rename
337 generic_get_saved_register.
338 * blockframe.c (deprecated_generic_get_saved_register): Update.
339 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
340 (xstormy16_frame_saved_register): Update.
341 * sh-tdep.c (sh_gdbarch_init): Update.
342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
343 * ia64-tdep.c (ia64_get_saved_register): Update.
344 * cris-tdep.c (cris_gdbarch_init): Update.
345 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
346 * arm-tdep.c (arm_gdbarch_init): Update.
348 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
350 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
352 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
354 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
355 trampolines in sigaction.
357 2002-10-31 Andrew Cagney <cagney@redhat.com>
359 * h8300-tdep.c: Include "gdb_assert.h".
360 (h8300_print_register): Add gdbarch, file and frame parameters.
361 Use frame_read_unsigned_register to read the register's value.
362 Use fprintf_filtered to display output.
363 (h8300_print_registers_info): Replace h8300_do_registers_info.
364 (h8300_gdbarch_init): Set print_registers_info.
366 2002-10-31 Andrew Cagney <cagney@redhat.com>
368 * frame.c (frame_read_unsigned_register): New function.
369 (frame_read_signed_register): New function.
370 * frame.h (frame_read_unsigned_register): Declare.
371 (frame_read_signed_register): Declare.
373 2002-10-31 Andrew Cagney <cagney@redhat.com>
375 * h8500-tdep.c (h8500_print_registers_info): New static function,
376 clone of infcmd.c's default_print_registers_info.
377 (h8500_do_registers_info): New funtion.
378 (h8500_print_register_hook): Rename print_register_hook, make
381 * config/h8500/tm-h8500.h: Update copyright.
382 (DEPRECATED_DO_REGISTERS_INFO): Define.
383 (h8500_do_registers_info: Declare.
384 (PRINT_REGISTER_HOOK): Delete macro.
385 (print_register_hook): Delete function.
387 2002-10-31 Andrew Cagney <cagney@redhat.com>
389 * z8k-tdep.c (z8k_print_register_hook): Make static.
390 (z8k_print_registers_info): New static function, clone of
391 infcmd.c's default_print_registers_info.
392 (z8k_do_registers_info): New function. Wrap
393 z8k_print_registers_info.
394 * config/z8k/tm-z8k.h: Update copyright.
395 (PRINT_REGISTER_HOOK): Delete macro.
396 (z8k_print_register_hook): Delete declaration.
397 (DEPRECATED_DO_REGISTERS_INFO): Define.
398 (z8k_do_registers_info): Declare.
400 2002-10-30 Joel Brobecker <brobecker@gnat.com>
402 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
403 as this is already provided by value.h, and was actually causing
404 a compilation error because of a conflict in parameter type
405 declaration due to a missing const keyword.
406 (low_text_segment_addres): Fix a compilation warning.
408 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
410 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
411 registers without a name.
412 (mips_linux_cannot_store_register): Don't store registers without
415 2002-10-28 David Carlton <carlton@math.stanford.edu>
417 * symtab.c (find_addr_symbol): Delete. (It was already commented
419 * symtab.h: Delete prototype for find_addr_symbol.
421 2002-10-26 Andrew Cagney <cagney@redhat.com>
423 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
425 gdbarch.h, gdbarch.c: Re-generate.
426 * infcmd.c (default_print_registers_info): Update reference.
427 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
428 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
429 * sh-tdep.c (sh_gdbarch_init): Ditto.
430 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
431 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
433 2002-10-26 Mark Kettenis <kettenis@gnu.org>
435 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
436 cfi_init_extra_frame_info.
437 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
438 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
440 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
441 target where necessary. Add more comments and remove the ones
442 that don't provide any useful information.
444 * i386-tdep.c (i386_frame_saved_pc): Replace call to
445 deprecated_read_register_dummy with
446 frame_unwind_unsigned_register.
448 * i386-tdep.c (i386_extract_struct_value_address): Use
449 regcache_raw_read_unsigned instead of
450 regcache_cooked_read_unsigned since we know that the register
451 we're reading isn't a pseudo register. Rename variable 'val' into
452 the more descriptive 'addr'.
454 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
455 (x86_64_push_return_address): Add comment.
456 (x86_64_pop_frame): Make static.
457 (examine_argument): Clarify comment.
458 (x86_64_skip_prologue): Make prolog_expact variable static.
460 * dwarf2cfi.c: Fix some formatting problems.
461 (context_cpy, read_encoded_pointer): Clarify comments.
463 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
464 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
465 i386 target back into x86_64_gdbarch_init. Add some comments and
466 remove meaningless ones.
468 2002-10-25 Andrew Cagney <cagney@redhat.com>
470 * complaints.h (struct deprecated_complaint): Rename `struct
472 * complaints.c (complain): Update.
473 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
474 incorrect comment indicating that "symfile.h" was being included
475 for the `struct complaint' definition.
476 * remote-vx.c: Update.
477 * objc-lang.c: Update.
478 * xcoffread.c: Update.
480 * mdebugread.c: Update.
481 * stabsread.c: Update.
482 * dwarf2read.c: Update.
483 * dwarfread.c: Update.
485 * coffread.c: Update.
486 * stabsread.h: Update.
488 * buildsym.c: Update.
489 * gdbtypes.c: Update.
490 * macrotab.c: Update.
492 2002-10-25 Mark Kettenis <kettenis@gnu.org>
494 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
495 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
496 (x86_64_init_abi): ...new function.
498 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
499 * i386v-nat.c: Include "i386-tdep.h".
501 2002-10-25 Andrew Cagney <cagney@redhat.com>
503 * gdbtypes.c (address_space_name_to_int): Update.
504 (address_space_int_to_name): Update.
505 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
506 multi-arch predicate.
507 (address_class_name_to_type_flags): Ditto.
508 * gdbarch.h, gdbarch.c: Re-generate.
510 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
512 2002-10-24 Martin M. Hunt <hunt@redhat.com>
514 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
516 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
518 * symtab.h (INIT_SAL): Delete macro.
520 * symtab.c (init_sal): New function.
522 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
523 to init_sal function call.
524 (find_sal_from_funcs_and_line): Ditto.
525 (all_sals_for_line): Ditto.
526 * breakpoint.c (create_internal_breakpoint): Ditto.
527 (create_fork_vfork_event_catchpoint): Ditto.
528 (create_exec_event_catchpoint): Ditto.
529 (parse_breakpoint_sals): Ditto.
530 (watch_command_1): Ditto.
531 (handle_gnu_4_16_catch_command): Ditto.
532 (clear_command): Ditto.
533 * hppa-tdep.c (child_enable_exception_callback): Ditto.
534 * infcmd.c (run_stack_dummy): Ditto.
535 * infrun.c (process_event_stop_test): Ditto.
536 (check_sigtramp2): Ditto.
537 (step_over_function): Ditto.
538 * linespec.c (decode_line_2): Ditto.
539 (decode_line_1): Ditto.
540 * source.c (line_info): Ditto.
541 * symtab.c (find_pc_sect_line): Ditto.
543 2002-10-24 Michal Ludvig <mludvig@suse.cz>
545 * dwarf2cfi.c (struct context)
546 (struct context_reg): Moved to dwarf2cfi.h
547 (context_alloc, frame_state_alloc, context_cpy):
548 Made extern instead of static, removed prototypes.
549 * dwarf2cfi.h (struct context)
550 (struct context_reg): New, moved from dwarf2cfi.c
551 (context_alloc, frame_state_alloc, context_cpy):
553 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
554 Changed from static to extern.
555 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
556 (LINUX_SIGCONTEXT_FP_OFFSET)
557 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
558 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
559 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
560 * x86-64-tdep.c (x86_64_gdbarch_init): Several
561 set_gdbarch_*() calls now use x86-64 specific functions
562 instead of DWARF2 CFI ones.
563 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
564 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
565 (x86_64_init_extra_frame_info): New prototypes.
567 2002-10-23 David Carlton <carlton@math.stanford.edu>
569 * linespec.c: #include "parser-defs.h".
570 Delete prototype for find_template_name_end.
571 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
573 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
575 * NEWS: add recent mi fixes.
576 * varobj.c (struct varobj): Add new "updated" flag.
577 (new_variable): Default "updated" flag to 0.
578 (varobj_set_value): Set "updated" flag to 1 if value
580 (varobj_update): Check varobj "updated" flag before
581 comparing old and refreshed values. Fix for
584 2002-10-23 David Carlton <carlton@math.stanford.edu>
586 * parse.c (parse_exp_1): Use BLOCK_START.
587 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
589 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
591 2002-10-23 David Carlton <carlton@math.stanford.edu>
593 * symtab.c: Delete cplusplus_hint.
594 Delete prototype for find_template_name_end.
596 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
598 * symtab.h: Update comment.
600 2002-10-23 Michael Snyder <msnyder@redhat.com>
602 * printcmd.c (address_info): Restore quotes in output.
603 * valops.c (value_of_local): Restore quotes in error message.
605 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
607 * symtab.c (symbol_demangled_name): New function.
608 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
609 turning most of it into a function.
610 (symbol_demangled_name): Export.
612 2002-10-23 Michael Snyder <msnyder@redhat.com>
614 * valops.c (value_of_local): Restore quotes in error message.
616 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
618 * symtab.c (symbol_init_language_specific): New function.
619 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
620 turning most of it into a function.
621 (symbol_init_language_specific): Export.
623 2002-10-23 David Carlton <carlton@math.stanford.edu>
625 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
626 (dwarf_attr_name): Ditto.
627 (dwarf_type_encoding_name): Ditto.
628 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
629 (process_die): Handle DW_TAG_namespace,
630 DW_TAG_imported_declaration, DW_TAG_imported_module.
631 (read_namespace): New function.
633 2002-10-22 Joel Brobecker <brobecker@gnat.com>
635 * configure.in: Define NEW_PROC_API on Interix too.
636 * configure: Regenerate.
638 2002-10-21 Joel Brobecker <brobecker@gnat.com>
640 * configure: Regenerate using the proper version of autoconf.
642 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
644 * findvar.c (read_var_value): Temporarily disable TLS code, until
645 complete TLS support is added.
647 2002-10-21 Jim Blandy <jimb@redhat.com>
648 Elena Zannoni <ezannoni@redhat.com>
650 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
651 for thread local storage locations.
652 (struct symbol): Add objfile field.
653 (SYMBOL_OBJFILE): Define.
654 * dwarf2read.c (is_thread_local): New static variable.
655 (new_symbol): If variable is in thread local fill in address class
656 and objfile appropriately.
657 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
659 * printcmd.c (address_info): Print the information for thread
660 local storage variable.
661 * findvar.c (read_var_value): In case of thread local variable,
662 defer to the target vector code to compute address.
664 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
666 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
667 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
669 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
671 * symtab.h (address_class): Rename
672 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
673 * hpread.c (hpread_process_one_debug_symbol): Ditto.
674 * printcmd.c (address_info): Ditto.
675 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
677 2002-10-20 Mark Kettenis <kettenis@gnu.org>
679 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
680 DBREG_DRX macro to acces debug registers.
682 * Makefile.in (i386obsd-tdep.o): New target.
684 * solib-sunos.c: Include "bcache.h" and "regcache.h".
685 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
687 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
688 * config/i386/obsd.mt: New file.
689 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
690 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
691 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
692 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
693 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
694 * i386obsd-tdep.c: New file.
696 2002-10-19 Adam Fedor <fedor@gnu.org>
698 * objc-exp.y (name_not_typename): Fix invalid comment.
700 2002-10-20 Mark Kettenis <kettenis@gnu.org>
702 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
703 to allocate partial syms and macro byte caches.
705 2002-10-18 David Carlton <carlton@math.stanford.edu>
707 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
709 2002-10-18 Adam Fedor <fedor@gnu.org>
711 * stabsread.c (find_name_end): New function.
712 (define_symbol): Use it.
714 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
716 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
717 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
718 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
719 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
721 2002-10-17 David Carlton <carlton@math.stanford.edu>
723 * symfile.h: Add opaque declaration for struct obstack.
724 Declare obsavestring to take a const char *.
725 * symfile.c (obsavestring): Make first argument a const char *.
727 2002-10-16 Adam Fedor <fedor@gnu.org>
729 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
730 names when matching breakpoints in current file.
732 2002-10-16 Kevin Buettner <kevinb@redhat.com>
734 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
735 (read_tag_pointer_type): Add address class support.
736 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
737 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
739 * gdbarch.h, gdbarch.c: Regenerate.
740 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
741 (make_type_with_address_space, recursive_type_dump): Add address
743 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
744 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
745 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
747 2002-10-16 Klee Dienes <kdienes@apple.com>
749 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
750 to get the last character of a char[] buffer, not
751 name[sizeof(vptr_name)-1].
753 2002-10-14 Adam Fedor <fedor@gnu.org>
755 * symtab.h: New objc_specific struct.
756 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
757 (SYMBOL_DEMANGLED_NAME): Likewise.
759 2002-10-14 Adam Fedor <fedor@gnu.org>
761 * symfile.c (init_filename_language_table): Add ObjC file extension.
763 2002-10-14 Adam Fedor <fedor@gnu.org>
765 * utils.c (puts_filtered_tabular): New function.
766 (fprintf_symbol_filtered): Get ObjC demangled name.
767 * defs.h (puts_filtered_tabular): Declared.
769 2002-10-14 Kevin Buettner <kevinb@redhat.com>
771 * c-lang.h (c_type_print_varspec_prefix): Delete.
772 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
773 ``need_post_space'' parameter. Adjust all callers.
775 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
777 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
778 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
779 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
780 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
782 2002-10-13 Adam Fedor <fedor@gnu.org>
784 * source.c (print_source_lines): Update comments.
786 2002-10-13 Adam Fedor <fedor@gnu.org>
788 * valops.c (value_of_local): New function.
789 (value_of_this): Use it.
790 * value.h (value_of_local): Declared.
792 2002-10-13 Adam Fedor <fedor@gnu.org>
794 * parse.c: (length_of_subexp, prefixify_subexp): Handle
795 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
797 2002-10-12 Adam Fedor <fedor@gnu.org>
799 * language.c (binop_result_type): Add language_objc to case.
800 (integral_type): Likewise.
801 (character_type): Likewise.
802 (string_type): Likewise.
803 (boolean_type): Likewise.
804 (structured_type): Likewise.
805 (binop_type_check): Likewise.
807 2002-10-11 Adam Fedor <fedor@gnu.org>
809 * printcmd.c (address_info): Print 'self' for ObjC.
811 2002-10-11 Adam Fedor <fedor@gnu.org>
813 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
816 2002-10-11 Adam Fedor <fedor@gnu.org>
818 * language.h (CAST_IS_CONVERSION): Add language_objc.
820 2002-10-11 Adam Fedor <fedor@gnu.org>
822 * defs.h (enum language): Add language_objc.
824 2002-10-11 Klee Dienes <kdienes@apple.com>
826 * corefile.c (read_memory_typed_address): New function.
827 * gdbcore.h (read_memory_typed_address): Add prototype.
828 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
829 to read a value destined for a CORE_ADDR, not read_memory_integer.
830 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
831 (f77_get_dynamic_lowerbound): Ditto.
833 2002-10-11 Martin M. Hunt <hunt@redhat.com>
835 * utils.c (string_to_core_addr): After turning string into
836 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
837 which will do necessary sign-extension, etc.
839 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
841 * c-exp.y (THIS): Delete token and grammar rule.
842 (yylex): Don't return THIS.
843 * cp-valprint.c (vtbl_ptr_name_old): Delete.
844 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
845 * demangle.c (cplus_markers): Update comment. Put '$'
846 first. Remove CPLUS_MARKER.
847 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
848 * jv-exp.y (THIS): Delete token and grammar rule.
849 (yylex): Don't return THIS.
850 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
851 * objc-exp.y (THIS): Delete token and grammar rule.
852 (yylex): Don't return THIS.
853 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
854 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
855 (read_member_functions): Likewise for opname.
856 (read_tilde_fields): Use is_cplus_marker.
858 * defs.h (CPLUS_MARKER): Don't define.
859 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
860 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
861 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
862 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
863 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
865 * config/i386/tm-i386v4.h: Delete file.
866 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
867 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
868 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
869 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
870 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
871 * config/i386/i386sco5.mt (TM_FILE): Likewise.
872 * config/i386/i386v4.mt (TM_FILE): Likewise.
873 * config/i386/ncr3000.mt (TM_FILE): Likewise.
875 2002-10-10 Marko Mlinar <markom@opencores.org>
877 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
878 accidentially not commited 2002-10-09
879 * gdbarch.h, gdbarch.c: Re-generate.
881 2002-10-09 Marko Mlinar <markom@opencores.org>
883 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
884 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
885 * gdbarch.h, gdbarch.c: Re-generate.
887 2002-10-08 Petr Sorfa <petrs@caldera.com>
889 Revised and re-submitted by John Wolfe <jlw@caldera.com>
891 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
892 so we can work on more than one compilation unit at a time. This
893 helps prepare GDB to handle inter-CU die references.
894 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
895 the code to be defined before struct comp_unit_head.
896 (comp_unit_head): Added new members - offset, cu_head,
897 begin_die, next and dwarf2_abbrevs.
898 (dwarf2_abbrevs): Removed single static var; now member of
899 struct comp_unit_head.
900 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
902 (psymtab_to_symtab_1): Changed to work with the new
903 struct comp_unit_head.
904 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
905 constructs the dwarf2_abbrevs[] inside the cu_header.
906 (dwarf2_empty_abbrev_table): Now expects a ptr to a
907 dwarf2_abbrev table to clean up.
908 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
909 handling of dwarf2_abbrevs inside the cu_header.
910 (read_partial_die): Now supports the call to the new
911 dwarf2_lookup_abbrev.
912 (read_full_die): Now supports the call to the new
913 dwarf2_lookup_abbrev.
915 2002-10-06 Christopher Faylor <cgf@redhat.com>
917 * Makefile.in (install-gdbtk): Add missing continuation backslash to
918 insure that shell variables, such as "transformed_name" are propagated
919 to later shell statements in rule.
921 2002-10-06 Mark Kettenis <kettenis@gnu.org>
923 * config/i386/nm-i386sco.h: Add protection against
924 multiple-inclusion. Include "i386/nm-i386v.h".
925 (REGISTER_U_ADDR): Remove define.
926 (i386_register_u_addr): Remove prototype.
928 2002-10-04 Michael Snyder <msnyder@redhat.com>
930 * m32r-stub.c (handle_exception): Make sure exception is "trap"
931 before treating it as a single-step event.
933 2002-10-03 Adam Fedor <fedor@gnu.org>
935 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
936 (objc_demangle): Remove assignment in if statements, Replace
938 (add_msglist): Likewise.
939 (end_msglist): Likewise.
940 (complare_selectors): Likewise.
941 (selectors_info): Likewise.
942 (compare_classes): Likewise.
943 (classes_info): Likewise.
944 (print_object_command): Likewise.
945 (find_objc_msgcall_submethod): Replace PTR with void *.
946 * objc-lang.h: Remove check for __STDC__.
948 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
950 * ui-out.h (ui_out_field_fmt_int): New prototype.
951 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
952 of field width and alignment.
953 * stack.c (print_frame_info_base): When printing frame level, use
954 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
957 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
959 * MAINTAINERS: Add self to Write After Approval list.
961 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
963 * infcmd.c (interrupt_target_command_wrapper): Delete.
964 (interrupt_target_command): Make non static.
965 (nofp_registers_info): Make static.
966 * stack.c (return_command_wrapper): Delete.
967 (return_command): Make non static.
969 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
971 * event-top.c (gdb_setup_readline): New function. Code moved from
972 _initialize_event_loop().
973 (_initialize_event_loop): Call gdb_setup_readline().
975 2002-10-02 Andrew Cagney <ac131313@redhat.com>
977 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
978 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
979 * gdbarch.h, gdbarch.c: Re-generate.
981 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
984 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
986 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
987 of fill_in_vptr_fieldno.
989 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
991 * inferior.h (registers_info, stepi_command, nexti_command,
992 continue_command, interrupt_target_command): Export from infcmd.c.
993 * frame.h (args_info, selected_frame_level_changed_hook,
994 return_command): Export from stack.c.
995 * v850ice.c (stepi_command, nexti_command, continue_command): use
996 prototypes from inferior.h.
997 * tracepoint.c (registers_info, args_info, locals_info): Use
998 prototypes from frame.h and inferior.h.
999 * Makefile.in (mi-main.o): Add dependency on frame.h.
1001 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1003 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1004 value in register 3 adjusted by ppc_gp0_regnum.
1006 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1008 2002-10-02 Marko Mlinar <markom@opencores.org>
1010 * MAINTAINERS: Add myself to the Write After Approval list.
1012 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1014 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1015 of the section for the N64 ABI, fixed.
1017 * config/mips/tm-irix6.h: Include solib.h.
1019 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1021 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1024 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1026 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1027 and that "mi0" syntax has been removed.
1029 2002-09-30 David Carlton <carlton@math.stanford.edu>
1031 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1032 * ppc-sysv-tdep.c: #include "gdb_string.h".
1033 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1036 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1038 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1039 "vrsave"'s register number.
1041 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1043 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1044 use frame_unwind_signed_register to obtain the PC.
1045 (mips_frame_chain): Handle a generic dummy frame.
1046 (mips_init_extra_frame_info): When a generic dummy frame, don't
1047 re-compute the frame base.
1048 (mips_pop_frame): Handle generic dummy frames.
1049 (mips_gdbarch_init): When generic dummy frames, set
1050 use_generic_dummy_frames, push_dummy_frame to
1051 generic_push_dummy_frame, pc_in_call_dummy to
1052 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1053 generic_save_dummy_frame_tos.
1055 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1057 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1058 against TOP when TOP was explictly set.
1059 (generic_push_dummy_frame): Set TOP to zero.
1061 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1063 * event-loop.c (start_event_loop): Rename variable 'result' to
1064 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1066 2002-09-30 Keith Seitz <keiths@redhat.com>
1068 * gdb-events.sh (selected_thread_changed): New event.
1069 * gdb-events.c: Regenerated.
1070 * gdb-events.h: Regenerated.
1072 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1074 * MAINTAINERS: Add self to Write After Approval list.
1076 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1078 * disasm.c: New file.
1079 * disasm.h: New file.
1080 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1081 (compare_lines): Ditto.
1082 (dump_insns): Ditto.
1083 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1085 (do_assembly_only): Ditto.
1086 (do_disassembly): Renamed to gdb_disassembly and moved to
1087 disasm.c. Sdded uiout argument.
1088 * Makefile.in: Add new files. Reorder SFILES list. Update
1089 dependencies. Include libgdb.a later in the insight executable.
1091 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1093 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1094 bfd/elf64-alpha-fbsd.c.
1096 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1098 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1101 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1103 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1105 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1107 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1108 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1109 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1110 (S_msg_sig_post_reply): Ditto.
1112 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1114 * sh-tdep.c (sh_use_struct_convention): Use definition according
1116 (sh_push_arguments): Store in register with correct endianess.
1117 (sh_default_store_return_value): Ditto.
1118 (sh_gdbarch_init): Set sizeof long double to 8.
1120 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1122 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1123 Fix some whitespace problems.
1125 2002-09-27 David Carlton <carlton@math.stanford.edu>
1127 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1128 (mcore-tdep.o): Ditto.
1129 (ns32k-tdep.o): Ditto.
1130 (ns32knbsd-tdep.o): Ditto.
1132 (vax-tdep.o): Ditto.
1133 * cris-tdep.c: #include "gdb_string.h"
1134 * mcore-tdep.c: Ditto.
1135 * ns32k-tdep.c: Ditto.
1136 * ns32knbsd-tdep.c: Ditto.
1138 * vax-tdep.c: Ditto.
1140 2002-09-27 David Carlton <carlton@math.stanford.edu>
1142 * config/djgpp/fnchange.lst: Add entries for
1143 gdb/testsuite/gdb.c++/m-static files.
1145 2002-09-27 Jim Wilson <wilson@redhat.com>
1147 * MAINTAINERS: Add myself to the Write After Approval list.
1149 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1151 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1154 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1156 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1159 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1161 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1162 (rs6000_struct_return_address): Delete variable.
1163 (rs6000_store_struct_return): Update.
1164 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1165 deprecated_extract_struct_value_address.
1166 (rs6000_frame_align): New function.
1167 (rs6000_gdbarch_init): Set frame_align.
1169 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1171 From Grace Sainsbury <graces@redhat.com>:
1172 * Makefile.in (gdbtk-main.o): New target.
1173 (gdb.o): New target.
1175 (main.o): Update dependencies.
1176 (gdb$(EXEEXT)): Add gdb.o.
1177 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1178 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1179 (SUBDIR_GDBTK_CLEAN): Set.
1180 (install-gdbtk): Install the insight binary.
1181 (uninstall-gdbtk): New target.
1182 (all-gdbtk, clean-gdbtk): New rule.
1183 * top.c (use_windows): Default to zero.
1184 * main.c: Include "main.h".
1186 (struct captured_main_args): Delete.
1187 (gdb_main): New function.
1191 2002-09-25 Andrew Cagney <cagney@redhat.com>
1193 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1194 (frame_map_regnum_to_name): New function.
1195 (frame_map_name_to_regnum): New function.
1196 * frame.h (frame_map_name_to_regnum): Declare.
1197 (frame_map_regnum_to_name): Declare.
1198 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1199 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1200 * parse.c: Do not include "builtin-regs.h".
1201 (target_map_name_to_register): Delete function.
1202 (write_dollar_variable): Use frame_map_name_to_regnum.
1203 * parser-defs.h (target_map_name_to_register): Delete declaration.
1204 * expprint.c: Include "frame.h".
1205 (print_subexp): Use frame_map_regnum_to_name.
1206 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1207 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1209 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1211 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1212 wasn't saved, and the next innermost frame is a dummy, return the
1213 dummy frame's link register.
1215 2002-09-24 Jim Blandy <jimb@redhat.com>
1217 Fix from Paul Breed:
1218 * main.c (captured_main): Add a `break' after the case for 'b'.
1220 2002-09-24 Keith Seitz <keiths@redhat.com>
1222 * varobj.c (c_type_of_child): Use get_target_type instead
1223 of TYPE_TARGET_TYPE.
1225 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1227 * source.c (get_current_or_default_source_symtab_and_line): Remove
1229 (set_default_source_symtab_and_line): New function. Attempts to
1230 determine a source file to list lines from if one is not currently
1232 (get_current_source_symtab_and_line): Initialize sal.pc and
1234 (set_current_source_symtab_and_line): Mark argument as const.
1235 * source.h: Update declarations and comments.
1236 * linespec.c (decode_line_1): Replace call to removed routine above.
1237 * stack.c (print_frame_info_base): Ditto.
1238 * cli/cli-cmds.c (edit_command): Ditto.
1239 (list_command): Ditto.
1241 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1243 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1244 sal.pc and sal.end fields.
1245 (get_current_or_default_source_symtab_and_line): Ditto.
1246 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1247 so we do not cause a new source symtab to be searched for (reverting an
1248 unintentional change from the 2002-09-20 patch).
1249 * scm-lang.c (scm_unpac): Ditto.
1251 2002-09-21 Andrew Cagney <cagney@redhat.com>
1253 * complaints.c (symfile_explanations): Remove new-line from
1254 ``isolated_message''.
1255 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1256 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1258 2002-09-20 Nick Clifton <nickc@redhat.com>
1260 * NEWS: Announce that V850EA ISA is no longer supported.
1261 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1263 2002-09-20 David Carlton <carlton@math.stanford.edu>
1265 * Makefile.in (c-lang.o): Correct dependencies.
1266 (utils.o): Gather dependencies.
1268 * c-lang.c: #include "gdb_string.h"
1270 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1272 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1273 * cli/cli-cmds.c (list_command): New function. Implements the new
1275 (_init_cli_cmds): Add new command definition.
1276 * gdb.1: Document edit command.
1277 * doc/gdb.texinfo: Document edit command.
1279 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1281 * source.c: Make global variables current_source_symtab and
1282 current_source_line static.
1283 (list_command): Moved to cli/cli-cmds.c.
1284 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
1285 (get_first_line_listed): New accessor function.
1286 (get_lines_to_list): New accessor function.
1287 (get_current_source_symtab_and_line): New function. Retrieves the
1288 position in the source code that we consider current.
1289 (get_current_or_default_source_symtab_and_line): New function.
1290 Like the above but attempts to determine a default position if one
1291 is not currently defined.
1292 (set_current_source_symtab_and_line): New function. Sets the source
1293 code position considered current and returns the previously set one.
1294 (clear_current_source_symtab_and_line): Reset stored information about
1295 a current source line.
1296 (_initialize_source): Remove registration for the "list" command and
1298 * source.h: Add declarations for the new functions above.
1299 * symtab.h: Remove declarations for the global variables mentioned
1301 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
1302 obtain current source line.
1303 * linespec.c (decode_line_1): Ditto.
1304 * macroscope.c (default_macro_scope): Ditto.
1305 * scm-lang.c (scm_unpac): Ditto.
1306 * stack.c (print_frame_info_base): Ditto.
1307 * symfile.c (clear_symtab_users): Ditto.
1308 * symtab.c (decode_line_spec): Ditto.
1309 * cli/cli-cmds.c (list_command): Moved here from source.c.
1310 (ambiguous_line_spec): Moved here from source.c.
1311 (_init_cli_cmds): Add definition for "list" and its alias.
1312 * Makefile.in: Update dependencies.
1314 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1316 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
1317 with what gcc thinks is correct.
1319 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
1321 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
1322 multiple register push instruction.
1324 2002-09-19 Jim Blandy <jimb@redhat.com>
1326 Add support for distinct host and target character sets.
1327 * charset.c, charset.h: New files.
1328 * c-exp.y: #include "charset.h".
1329 (yylex): Convert character and string literals to the target
1330 character set, before returning them as the semantic value of the
1332 * c-lang.c: #include "charset.h".
1333 (c_emit_char): Use charset-specific methods to recognize
1334 characters with backslash escape forms, to decide which characters
1335 to print literally and which to print using numeric escape
1336 sequences, and to convert target characters to host characters
1338 * utils.c: #include "charset.h".
1339 (no_control_char_error): New function.
1340 (parse_escape): Use charset-specific methods to recognize
1341 backslash escapes, parse `control character' notation, and convert
1342 characters from the host character set to the target character set.
1343 * configure.in: Set the default host character set.
1344 Check where to find iconv, and what its argument types might be.
1345 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
1346 * Makefile.in (SFILES): List charset.c.
1347 (COMMON_OBS): List charset.o.
1348 (charset.o): New rule.
1349 (charset_h): New header dependency variable.
1350 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
1351 (LIBICONV): New variable, set by configure.
1352 (CLIBS): Include $(LIBICONV) here.
1353 * aclocal.m4, config.in, configure: Regenerated.
1355 2002-09-19 Joel Brobecker <brobecker@gnat.com>
1357 * ada-exp.y: Add missing semicolons to end rules. Fixes a
1360 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
1362 * gdb_mbuild.sh: New file.
1364 2002-09-19 Andrew Cagney <ac131313@redhat.com>
1366 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
1368 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1370 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
1371 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
1372 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
1373 valops.c, value.h: Revert previous change.
1375 2002-09-18 Michael Snyder <msnyder@redhat.com>
1377 Preliminary support for Objective-C:
1378 * defs.h (language_objc): New enum value.
1379 (puts_filtered_tabular): Declaration only, exported from utils.c.
1380 (skip_quoted): Delete, declared in completer.h.
1381 * c-exp.y: Include completer.h.
1384 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
1385 New operator enum values.
1386 * language.h (CAST_IS_CONVERSION): Test for language_objc.
1387 * language.c (binop_result_type): Handle language_objc case.
1388 (integral_type, character_type, string_type, boolean_type,
1389 structured_type, binop_type_check): Ditto.
1390 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
1391 (struct objc_specific): Add to general_symbol_info.
1392 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
1393 (SYMBOL_DEMANGLED_NAME): Handle objc case.
1394 * parser-defs.h (struct objc_class_str): New struct type.
1395 (start_msglist, end_msglist, add_msglist): Declaration only,
1396 exported from objc-lang.c.
1397 * value.h (value_of_local, value_nsstring,
1398 call_function_by_hand_expecting_type): Exported from valops.c.
1399 * valops.c (find_function_addr): Export.
1400 (call_function_by_hand_expecting_type): New function.
1401 (value_of_local): New function.
1402 * symfile.c (init_filename_language_table): Add ".m" extension
1404 * utils.c (puts_filtered_tabular): New function.
1405 (fprintf_symbol_filtered): Add objc demangling support (disabled).
1406 (set/show demangle): Extend help-string to refer to ObjC.
1407 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
1408 * stabsread.c (symbol_reference_defined): Objective-C symbols
1409 may contain colons: make allowances when scanning stabs strings
1411 (objc_find_colon): New function.
1412 * printcmd.c (address_info): If language == objc then print
1413 "self" instead of "this".
1414 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
1415 OP_NSSTRING, and OP_SELF.
1416 (prefixify_subexp): Ditto.
1417 * source.c (print_source_lines): Mention objc in comment.
1418 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
1421 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1423 * complaints.h: Update copyright.
1424 (struct complaints): Declare.
1425 (struct complaint): Make `message' constant.
1426 (internal_complaint): Declare.
1427 (complaint): Declare.
1428 (complaint_root): Delete declaration.
1429 (symfile_complaints): Delete declaration.
1430 (struct complaints): Add opaque declaration.
1431 (clear_complaints): Add a complaints parameter.
1432 * complaints.c: Update copyright.
1433 (enum complaint_series): Define.
1434 (complaint_root): Delete.
1435 (struct complaints): Define.
1436 (complaint_sentinel, symfile_complaint_book): New variables.
1437 (symfile_explanations, symfile_complaints): New variables.
1439 (get_complaints): New function.
1440 (vcomplaint): New function.
1441 (complaint): New function.
1442 (internal_complaint): New function.
1443 (complain): Call vcomplain with symfile_complaint.
1444 (clear_complaints): Rewrite.
1445 (_initialize_complaints): Use add_setshow_command.
1446 * Makefile.in (complaints.o): Update dependencies.
1447 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
1448 to call to clear_complaints.
1449 (new_symfile_objfile, reread_symbols): Ditto.
1450 (oldsyms_complaint): Delete.
1451 (empty_symtab_complaint, unknown_option_complaint): Delete.
1452 (free_named_symtabs): Use complaint instead of complain.
1454 2002-09-18 Michael Snyder <msnyder@redhat.com>
1456 Contributed by Apple Computer, Inc. Merged with current sources
1457 by Adam Fedor <fedor@doc.com> [cagney].
1459 * objc-lang.c: First clean-up round: comments, indentation.
1460 * objc-lang.h: Ditto.
1461 * objc-lang.y: Ditto.
1463 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1465 * maint.c (maintenance_internal_error): Print the parameter as the
1467 (maintenance_internal_warning): New function.
1468 (_initialize_maint_cmds): Add command `maint internal-warning'.
1470 * defs.h (internal_warning, internal_vwarning): Declare.
1471 * utils.c (struct internal_problem): Define.
1472 (internal_vproblem): New function.
1473 (internal_warning): New function.
1474 (internal_vwarning): New function.
1475 (internal_warning_problem, internal_error_problem): New variables.
1476 (internal_verror): Just call internal_vproblem.
1478 2002-09-18 Michael Snyder <msnyder@redhat.com>
1480 * objc-lang.c: New file, support for Objective-C.
1481 Preliminary check-in, not yet integrated into gdb.
1482 * objc-lang.h: New file.
1483 * objc-exp.y: New file.
1485 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1487 * infrun.c (signal_stop_update): Convert definition to ISO C.
1488 (signal_print_update): Ditto.
1489 (signal_pass_update): Ditto.
1490 * inflow.c (terminal_save_ours): Ditto.
1492 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
1495 * config/djgpp/fnchange.lst: Handle name clashes between
1496 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
1499 * i386-linux-tdep.h: Fix tipo.
1501 2002-09-18 Adam Fedor <fedor@gnu.org>
1503 * MAINTAINERS: Add myself to the Write After Approval list.
1505 2002-09-18 Jim Blandy <jimb@redhat.com>
1507 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
1508 texthigh and textlow to reader-specific structs caused
1509 objfile_relocate to miss them. This is fixable, but the work that
1510 the change was supposed to prepare GDB for never got done anyway.
1512 2002-09-18 David Carlton <carlton@math.stanford.edu>
1514 * MAINTAINERS: Alphabetize Write After Approval list.
1516 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
1519 * values.c (value_static_field): Call read_var_value.
1521 2002-09-18 Andrew Cagney <ac131313@redhat.com>
1523 * valops.c (hand_function_call): Align the initial stack pointer
1524 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
1525 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
1527 * mips-tdep.c (mips_frame_align): New function.
1528 (mips_gdbarch_init): Set frame_align.
1529 * gdbarch.sh (FRAME_ALIGN): New method.
1530 * gdbarch.h, gdbarch.c: Re-generate.
1532 2002-09-18 Michal Ludvig <mludvig@suse.cz>
1534 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
1537 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1539 * NEWS: Mention that MIPS $fp behavior changed.
1540 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
1541 reference to FP_REGNUM.
1542 (mipsnbsd_cannot_store_register): Ditto.
1543 * mips-linux-nat.c: Update copyright.
1544 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
1545 (mips_linux_cannot_store_register): Ditto.
1546 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
1547 * config/mips/tm-mips.h: Update copyright.
1548 (FP_REGNUM): Delete macro.
1549 (MIPS_REGISTER_NAMES): Replace "fp" with "".
1550 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
1551 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
1552 (mips_r3041_reg_names, mips_r3051_reg_names)
1553 (mips_r3081_reg_names): Replace "fp" with "".
1556 2002-09-17 Theodore A. Roth <troth@verinet.com>
1558 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
1559 generic_read_register_dummy() (PR gdb/703).
1560 (avr_push_return_address): #if 0 out unused vars.
1561 (avr_gdbarch_init): Enable use of avr_push_return_address().
1563 2002-09-17 Michael Snyder <msnyder@redhat.com>
1565 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
1566 RTE will take care of it.
1568 2002-09-17 Andrew Cagney <ac131313@redhat.com>
1570 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
1571 invalid, return SP_REGNUM.
1573 2002-09-17 Michael Snyder <msnyder@redhat.com>
1575 * mips-tdep.c (mips_pop_frame): Read saved values of floating
1576 point registers without sign extension.
1578 2002-09-17 Andrew Cagney <cagney@redhat.com>
1580 * blockframe.c (deprecated_read_register_dummy): Rename
1581 generic_read_register_dummy.
1582 * frame.c (frame_unwind_signed_register): New function.
1583 (frame_unwind_unsigned_register): New function.
1584 * frame.h (frame_unwind_signed_register): Declare.
1585 (frame_unwind_unsigned_register): Declare.
1586 (deprecated_read_register_dummy): Rename
1587 generic_read_register_dummy.
1589 * h8300-tdep.c (h8300_frame_chain): Update.
1590 (h8300_frame_saved_pc): Update.
1591 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
1592 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
1593 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
1594 (s390_frame_chain): Update.
1595 * v850-tdep.c (v850_find_callers_reg): Update.
1596 (v850_frame_saved_pc): Update.
1597 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
1598 (m32r_find_callers_reg): Update.
1599 (m32r_frame_saved_pc): Update.
1600 * sh-tdep.c (sh_find_callers_reg): Update.
1601 (sh64_get_saved_pr): Update.
1602 (sh_init_extra_frame_info): Update.
1603 (sh_init_extra_frame_info): Update.
1604 (sh64_init_extra_frame_info): Update.
1605 (sh64_init_extra_frame_info): Update.
1606 * mcore-tdep.c (mcore_find_callers_reg): Update.
1607 (mcore_frame_saved_pc): Update.
1608 (mcore_init_extra_frame_info): Update.
1609 * i386-tdep.c (i386_frame_saved_pc): Update.
1610 * ia64-tdep.c (ia64_frame_saved_pc): Update.
1611 (ia64_init_extra_frame_info): Update.
1612 (ia64_init_extra_frame_info): Update.
1613 * d10v-tdep.c (d10v_frame_saved_pc): Update.
1614 * cris-tdep.c (cris_init_extra_frame_info): Update.
1615 * avr-tdep.c (avr_frame_chain): Update.
1616 (avr_init_extra_frame_info): Update.
1617 (avr_frame_saved_pc): Update.
1618 * arm-tdep.c (arm_find_callers_reg): Update.
1619 (arm_init_extra_frame_info): Update.
1620 (arm_frame_saved_pc): Update.
1622 2002-09-17 Tom Tromey <tromey@redhat.com>
1624 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
1627 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
1629 * MAINTAINERS: Remove "non multi-arched" text from h8300.
1630 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
1632 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
1635 2002-09-16 Joel Brobecker <brobecker@gnat.com>
1637 * osfsolib.c: Remove file, replaced by solib-osf.c.
1638 * Makefile.in: Remove compilation rules for osfsolib.c.
1640 2002-09-16 David Carlton <carlton@math.stanford.edu>
1642 * cp-valprint.c (cp_print_class_method): Correct args to
1643 check_stub_method_group.
1645 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
1647 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
1648 `set architecture'. Unify naming convention of functions.
1649 (h8300_skip_prologue): Improve prologue analysis.
1650 (h8300_push_arguments): Rewritten to more closely match GCC's
1651 bizarre argument-passing behavior, along with the comment describing
1653 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
1654 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
1655 sim, remote-e7000.c, remote-hms.c and remote.c
1657 2002-09-15 Mark Kettenis <kettenis@gnu.org>
1659 * i386-tdep.c (gdb_print_insn_i386): Removed.
1660 (i386_print_insn): New function.
1661 (i386_gdbarch_init): Set print_insn to i386_print_insns.
1662 (_initialize_i386_tdep): Don't initialize tm_print_insn and
1665 2002-09-14 Mark Kettenis <kettenis@gnu.org>
1667 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
1670 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
1672 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
1673 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
1674 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
1676 2002-09-13 Christopher Faylor <cgf@redhat.com>
1678 * win32-nat.c (child_create_inferior): Honor 'tty' command.
1680 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
1682 * gdbtypes.c (check_stub_method): Make static.
1683 (check_stub_method_group): New function.
1684 * gdbtypes.h: Update prototypes.
1685 * cp-support.c: New file.
1686 * cp-support.h: New file.
1688 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
1689 (update_method_name_from_physname): New function.
1690 (read_member_functions): Correct method names for operators
1691 and v3 constructors/destructors. Separate v2 constructors and
1693 * Makefile.in (stabsread.o): Update dependencies.
1694 (SFILES): Add cp-support.c.
1695 (COMMON_OBS): Add cp-support.o.
1696 (cp_support_h, cp-support.o): Add.
1698 * cp-valprint.c (cp_print_class_method): Call
1699 check_stub_method_group instead of check_stub_method. Remove
1701 * p-valprint.c (pascal_object_print_class_method): Likewise.
1702 * valops.c (search_struct_method): Likewise.
1703 (find_method_list, value_struct_elt_for_reference): Likewise.
1705 2002-09-13 Andrew Cagney <cagney@redhat.com>
1707 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
1708 * gdbarch.h, gdbarch.c: Regenerate.
1710 2002-09-13 Andrew Cagney <ac131313@redhat.com>
1712 * frame.c (find_saved_register): Delete function.
1713 * frame.h (find_saved_register): Delete declaration.
1716 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
1718 * mips-tdep.c (read_next_frame_reg): Re-hack using
1719 frame_register_unwind.
1721 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
1723 * mips-tdep.c (mips_get_saved_register): Re-hack using
1724 frame_register_unwind.
1726 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1728 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
1729 vector. Will be useful for Interix.
1730 * gdbarch.h, gdbarch.c: Regenerate.
1732 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
1733 name of the malloc function by NAME_OF_MALLOC.
1735 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1737 * value.h (find_function_in_inferior): Add const keyword to
1738 one of the parameters. Allows us to invoke this function with
1740 * valops.c (find_function_in_inferior): Likewise.
1742 2002-09-12 Joel Brobecker <brobecker@gnat.com>
1744 * exec.c (xfer_memory): Fix compilation warning with old versions
1746 * tracepoint.c (trace_find_tracepoint_command): Likewise.
1748 2002-09-12 David Carlton <carlton@math.stanford.edu>
1750 * symtab.h: Run through gdb_indent.h.
1751 Add 2002 to Copyright year list.
1753 2002-09-12 Alan Modra <amodra@bigpond.net.au>
1755 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
1757 * MAINTAINERS: Add myself to write after approval list.
1759 2002-09-11 J. Brobecker <brobecker@gnat.com>
1761 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
1763 2002-09-11 J. Brobecker <brobecker@gnat.com>
1765 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
1768 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
1770 * procfs.c (do_detach): Clear current signal, not just fault.
1771 Corrects problem with breakpoint trap signal leaking to detached
1774 2002-09-10 Michael Snyder <msnyder@redhat.com>
1776 * buildsym.c (finish_block): Protect against null pointer.
1778 2002-09-10 Andrew Cagney <cagney@redhat.com>
1780 * infcmd.c (default_print_registers_info): Send all output to
1781 ``file'' instead of ``gdb_stdout''.
1783 2002-09-10 Michael Snyder <msnyder@redhat.com>
1785 * mips-tdep.c (mips_extract_struct_value_address): Make val a
1786 LONGEST, and use signed register read (addresses are sign-
1789 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
1791 * event-loop.c (gdb_do_one_event): Make public.
1792 * event-loop.h (gdb_do_one_event): Declare.
1794 2002-09-10 Jeff Law <law@redhat.com>
1796 * infttrace.c (child_resume): Simplify and rework to avoid
1799 2002-09-09 Fred Fish <fnf@intrinsity.com>
1801 * printcmd.c (print_scalar_formatted): "len" is the number of
1802 target bytes, NOT the number of target bits.
1804 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
1806 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
1807 * top.c (init_main): Set rl_terminal_name.
1809 2002-09-08 Aidan Skinner <aidan@velvet.net>
1811 * ada-lang.c (ada_array_bound, ada_type_match,
1812 _initialize_ada_language): Fix K&R definitions.
1813 * ada-tasks.c (get_current_task): Fix K&R definitions.
1814 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
1816 2002-09-07 Christopher Faylor <cgf@redhat.com>
1818 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
1821 2002-09-06 Mark Kettenis <kettenis@gnu.org>
1823 * i386-tdep.c (i386_register_virtual_type,
1824 i386_register_convertible, i386_register_convert_to_virtual,
1825 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
1826 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
1827 (i386_gdbarch_init): Fix comment. Add comments on calls that set
1828 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
1829 Don't set push_arguments twice.
1831 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
1832 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
1833 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
1834 sigtramp_end to NULL.
1835 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
1837 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
1839 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
1842 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
1843 * gdbarch.h, gdbarch.c: Re-generate.
1844 * blockframe.c (find_pc_sect_partial_function): Convert to use
1845 SIGTRAMP_START_P predicate.
1847 2002-09-05 Michael Snyder <msnyder@redhat.com>
1849 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
1850 generic_dummy_frame method and old method. Also distinguish
1851 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
1852 (arm_extract_return_value): Use new regcache method.
1854 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
1855 adjustment that doesn't conform to the ABI.
1856 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
1857 saved regcache, not from current regcache.
1859 2002-09-05 Andrew Cagney <ac131313@redhat.com>
1861 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
1864 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
1866 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
1867 if arm_apcs_32 is false.
1869 2002-09-04 Andrew Cagney <ac131313@redhat.com>
1871 GDB 5.3 branch created.
1873 2002-09-03 Theodore A. Roth <troth@verinet.com>
1875 * gdb/avr-tdep.c (avr_gdbarch_init): Use
1876 generic_unwind_get_saved_register.
1878 2002-09-03 David Carlton <carlton@math.stanford.edu>
1880 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
1881 argument (PR gdb/653). Update call to smash_to_method_type.
1882 (read_structure_scope): Update call to dwarf2_add_member_fn.
1884 2002-09-03 Michal Ludvig <mludvig@suse.cz>
1886 * x86-64-linux-tdep.c: Include gdb_string.h
1887 * x86-64-linux-nat.c: Ditto.
1889 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1891 * ada-exp.y (yyname, yyrule): Remap global variables that appear
1892 when YYDEBUG is set to 1.
1893 * c-exp.y: Likewise.
1894 * f-exp.y: Likewise.
1895 * jv-exp.y: Likewise.
1896 * m2-exp.y: Likewise.
1897 * p-exp.y: Likewise.
1899 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1901 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
1903 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
1904 solib_svr4_fetch_link_map_offsets to
1905 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
1906 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
1907 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1908 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
1909 solib-svr4.o, and solib-legacy.o.
1910 * config/i386/tm-nbsd.h: Include solib.h.
1912 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1914 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
1915 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
1916 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
1917 comment noting that this needs its own target configuration.
1918 * config/i386/nbsd.mt: New file.
1919 * config/i386/nbsdaout.mt: Remove.
1920 * config/i386/nbsdelf.mt: Ditto.
1921 * config/i386/tm-nbsdaout.h: Ditto.
1923 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1925 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
1926 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
1927 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
1929 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
1930 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
1931 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
1933 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
1935 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
1936 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
1937 * i386-tdep.h (i386bsd_init_abi): New prototype.
1938 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
1939 function declaration.
1940 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
1941 for NetBSD-a.out or NetBSD-ELF.
1942 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
1943 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
1944 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
1945 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
1947 (i386nbsd_pc_in_sigtramp): New function.
1948 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1949 i386nbsd_pc_in_sigtramp.
1950 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
1951 and i386nbsdelf_init_abi OS ABI handlers.
1952 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
1953 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
1955 2002-09-02 Mark Kettenis <kettenis@gnu.org>
1957 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
1958 registers if the target really has them.
1960 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1962 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
1965 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1967 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
1969 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
1970 (alphanbsd_skip_sigtramp_frame): New functions.
1971 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
1972 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
1973 to alphanbsd_sigcontext_addr.
1975 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
1977 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
1979 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
1980 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
1981 nbsd_pc_in_sigtramp.
1982 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
1983 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
1984 * nbsd-tdep.c: Include gdb_string.h.
1985 (nbsd_pc_in_sigtramp): New function.
1986 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
1987 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
1988 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1989 ppcnbsd_pc_in_sigtramp.
1990 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
1991 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1992 shnbsd_pc_in_sigtramp.
1993 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
1994 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
1995 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
1997 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
1999 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2000 watchpoints to NULL.
2001 (insert_breakpoints): set val field of watchpoints if NULL.
2004 2002-08-29 Jim Blandy <jimb@redhat.com>
2006 * symtab.c (lookup_symbol_aux): In the cases where we find a
2007 minimal symbol of an appropriate name and use its address to
2008 select a symtab to read and search, use `name' (as passed to us)
2009 as the demangled name when searching the symtab's global and
2010 static blocks, not the minsym's name.
2012 2002-08-29 Keith Seitz <keiths@redhat.com>
2014 * stack.c (print_frame_info_base): Always set current_source_symtab
2015 and current_source_line.
2017 2002-08-29 Donn Terry <donnte@microsoft.com>
2019 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2021 2002-08-28 Keith Seitz <keiths@redhat.com>
2023 * stack.c (select_frame): Add FIXME concerning selected-frame
2025 (select_frame_command): Send selected-frame-level-changed
2026 event notification, but only if the level actually changed.
2027 (up_silently_base): Add selected-frame-level-changed event
2029 (down_silently_base): Likewise.
2031 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2033 * Makefile.in: Update dependencies for all gdb/*.c files.
2035 2002-08-27 Tom Tromey <tromey@redhat.com>
2037 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2038 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2039 Update dependencies.
2040 * i387-tdep.c: Include gdb_string.h.
2041 * osabi.c: Likewise.
2042 * i386-linux-nat.c: Likewise.
2043 * lin-lwp.c: Likewise.
2044 * ax-gdb.c: Likewise.
2045 * signals/signals.c: Likewise.
2046 * jv-valprint.c: Likewise.
2047 * p-lang.c: Likewise.
2048 * c-valprint.c: Likewise.
2049 * cp-abi.c: Likewise.
2051 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2053 * cli/cli-script.h (copy_command_lines): Export.
2054 * breakpoint.c: Include cli/cli-script.h.
2055 * Makefile.in (breakpoint.o): Update dependencies.
2057 2002-08-26 Michael Snyder <msnyder@redhat.com>
2059 * breakpoint.c (insert_breakpoints): Protect all references
2060 to 'process_warning'. Shorten long lines.
2062 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2064 * cli/cli-script.c (copy_command_lines): New function.
2065 * defs.h (copy_command_lines): Export.
2066 * testsuite/gdb.base/commands.exp: New tests for commands
2067 attached to a temporary breakpoint, and for commands that
2068 delete the breakpoint they are attached to.
2070 2002-08-26 Michael Snyder <msnyder@redhat.com>
2072 * breakpoint.c (bpstat_stop_status): Instead of copying the
2073 pointer to the breakpoint commands struct, make a new copy
2074 of the struct and point to that.
2075 (bpstat_clear): Free the commands struct.
2076 (bpstat_clear_actions): Free the commands struct.
2077 (bpstat_do_actions): Free the command actions. Also execute
2078 the local cleanups, instead of deleting them.
2079 (delete_breakpoint): Leave the commands field of the bpstat
2080 chain alone -- it will be freed later.
2082 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2084 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2085 deleted in 2002-08-20 commit. This function is still used by
2088 2002-08-26 Keith Seitz <keiths@redhat.com>
2090 * gdb-events.sh: Add selected-frame-level-changed event.
2091 * gdb-events.c: Regenerated.
2092 * gdb-events.h: Regenerated.
2094 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2097 * inflow.c (terminal_save_ours): New function to save terminal
2099 * inferior.h (terminal_save_ours): Declare.
2100 * target.c (debug_to_terminal_save_ours): New function.
2101 (cleanup_target): Defaults to_terminal_save_ours.
2102 (update_current_target): Inherit to_terminal_save_ours.
2103 (setup_target_debug): Set to_terminal_save_ours.
2104 * target.h (target_terminal_save_ours): New to save terminal settings.
2105 (target_ops): New member to_terminal_save_ours.
2106 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2107 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2108 * inftarg.c (init_child_ops): Likewise.
2109 * m3-nat.c (init_m3_ops): Likewise.
2110 * procfs.c (init_procfs_ops): Likewise.
2111 * wince.c (init_child_ops): Likewise.
2112 * win32-nat.c (init_child_ops): Likewise.
2113 * sol-thread.c (init_sol_thread_ops): Likewise.
2115 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2117 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2118 use regcache_* functions.
2119 (i386_gdbarch_init): Set store_return_value instead of
2120 deprecated_store_return_value.
2122 * regcache.c (regcache_raw_write_signed,
2123 regcache_raw_write_unsigned): New functions.
2124 * regcache.h (regcache_raw_write_signed,
2125 regcache_raw_write_unsigned): New prototypes.
2127 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2129 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2130 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2131 source file dependencies. Cleanup corresponding generator rules.
2133 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2135 * regcache.h (register_offset_hack): Declare.
2136 (regcache_cooked_read_using_offset_hack): Declare.
2137 (regcache_cooked_write_using_offset_hack): Declare.
2139 * regcache.c (register_offset_hack): New function.
2140 (regcache_cooked_read_using_offset_hack): New function.
2141 (regcache_cooked_write_using_offset_hack): New function.
2142 (regcache_dump): Check that the registers, according to their
2143 offset, are packed hard against each other.
2144 (cooked_xfer_using_offset_hack): New function.
2146 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2148 * regcache.c (struct regcache_descr): Add field register_type.
2149 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2151 (init_regcache_descr): Initialize register_type. Pass the descr
2152 to init_legacy_regcache_descr. Use register_type instead of
2153 REGISTER_VIRTUAL_TYPE.
2154 (register_type): New function.
2155 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2156 * regcache.h (register_type): Declare.
2158 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2160 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2161 instead of deprecated_store_return_value. Fix fallout from
2162 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2164 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2166 * regcache.c (max_register_size): New function.
2167 (init_legacy_regcache_descr): Ensure that max_register_size is
2168 large enough for REGISTER_VIRTUAL_SIZE.
2169 * regcache.h (max_register_size): Declare.
2171 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2173 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2175 (e500_extract_return_value): Change type of valbuf pointer to
2178 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2180 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2183 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2184 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2185 long long) to prevent compiler warning on 64-bit systems.
2187 2002-08-23 Andrew Cagney <cagney@redhat.com>
2189 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2190 (DEPRECATED_STORE_RETURN_VALUE): New method.
2191 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2192 * gdbarch.h, gdbarch.c: Re-generate.
2194 * values.c (set_return_value): Pass current_regcache to
2196 * arch-utils.h (legacy_store_return_value): Declare.
2197 * arch-utils.c (legacy_store_return_value): New function.
2198 (legacy_extract_return_value): Update parameters.
2200 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2202 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2203 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2204 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2205 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2206 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2207 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2208 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2209 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2210 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2211 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2214 * i386-tdep.c (i386_extract_return_value): Update.
2215 * arch-utils.c (legacy_extract_return_value): Update.
2216 * frv-tdep.c (frv_gdbarch_init): Update.
2217 * cris-tdep.c (cris_gdbarch_init): Update.
2218 * d10v-tdep.c (d10v_gdbarch_init): Update.
2219 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2220 * m68k-tdep.c (m68k_gdbarch_init): Update.
2221 * mcore-tdep.c (mcore_gdbarch_init): Update.
2222 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2223 * s390-tdep.c (s390_gdbarch_init): Update.
2224 * sparc-tdep.c (sparc_gdbarch_init): Update.
2225 * sh-tdep.c (sh_gdbarch_init): Update.
2226 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2227 * v850-tdep.c (v850_gdbarch_init): Update.
2228 * avr-tdep.c (avr_gdbarch_init): Update.
2229 * ia64-tdep.c (ia64_gdbarch_init): Update.
2230 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2231 * vax-tdep.c (vax_gdbarch_init): Update.
2232 * alpha-tdep.c (alpha_gdbarch_init): Update.
2233 * arm-tdep.c (arm_gdbarch_init): Update.
2234 * mips-tdep.c (mips_gdbarch_init): Update.
2235 * i386-tdep.c (i386_gdbarch_init): Update.
2237 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2239 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2240 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2242 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2244 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2247 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2249 * infrun.c (handle_inferior_event): Move a comment outside of a
2250 function call, in order to avoid indent reformatting this part
2251 of the code in an unreadable way.
2253 2002-08-23 Grace Sainsbury <graces@redhat.com>
2255 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2256 when breakpoints fail. Move general breakpoint error messages to
2258 * breakpoint.c (insert_breakpoints): Change warnings when
2259 breakpoints are nto inserted to specify the type. Remove call to
2260 memory_error when hardware breakpoints can't be inserted. Remove
2261 multiple calls to warning so all messages are sent to the user at
2263 (delete_breakpoints): Make insert error messsages more explicit.
2265 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2267 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2268 gdbserver/ChangeLog.
2270 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2272 * i386-tdep.c: Include "objfiles.h".
2273 (i386_svr4_init_abi): Set in_solib_call_trampoline and
2274 skip_trampoline_code.
2275 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
2276 (CPLUS_MARKER): Define to '.'.
2278 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
2280 (linux_corefile_thread_callback): Increase args->num_notes.
2281 (linux_make_note_section): Initialize thread_args.num_notes, and
2282 use it to determine whether notes for any threads were created.
2284 2002-08-23 Donn Terry <donnte@microsoft.com>
2286 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
2287 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
2289 (write_with_trace): Conditionalize out the switch branch handling
2290 PCSHOLD if the corresponding macro is not defined. Likewise for
2291 PRSABORT and PRSTOP.
2292 This change will be needed by the Interix port.
2294 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2296 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
2297 write_register wherever possible instead of manipulating the
2298 register bytes directly.
2299 Assign VALUE_CONTENTS to a variable and use that.
2300 The GPR numbers are now dependent on the architecture.
2302 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2304 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
2306 (skip_prologue): Add support for BookE/e500 instructions.
2307 (e500_extract_return_value): New function.
2308 (frame_get_saved_regs): Add support for saving ev registers and
2310 (e500_store_return_value): New function.
2311 (rs6000_gdbarch_init): Move up default intializations of
2312 deprecated_extract_return_value and store_return_value. Overwrite
2313 init of store_return_value with e500 specific version.
2314 Set extract_return_value for e500.
2316 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
2318 * blockframe.c (generic_call_dummy_register_unwind): Use
2319 regcache_cooked_read to catch cases in which the variable is
2320 stored in a pseudo register.
2322 2002-08-22 Andrew Cagney <cagney@redhat.com>
2324 * NEWS: Mention that the i960 has been made obsolete.
2325 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
2327 (remote-nrom.o): Obsolete target.
2328 (remote-nindy.o, i960-tdep.o): Ditto.
2329 * remote-nrom.c: Make file obsolete.
2330 * remote-nindy.c, remote-vx960.c: Ditto.
2331 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
2332 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
2333 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
2334 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
2335 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
2336 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
2337 i960-*-vxworks* obsolete.
2338 * MAINTAINERS: Note that the i960 is obsolete.
2340 2002-08-21 Corinna Vinschen <vinschen@redhat.com
2342 * aix-thread.c (aix_thread_detach): Disable thread debugging on
2343 detach to allow reinitialization.
2345 2002-08-22 Andrew Cagney <ac131313@redhat.com>
2347 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
2350 2002-08-22 Jim Blandy <jimb@redhat.com>
2352 * coffread.c (coff_symfile_read): Don't try to read the line
2353 number table from disk if the image file doesn't have a symbol
2354 table; we'll never actually look at the info anyway, and Windows
2355 ships DLL's with bogus file offsets for the line number data.
2357 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2359 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
2362 2002-08-21 Michael Snyder <msnyder@redhat.com>
2364 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
2365 (MSYMBOL_SIZE): Replace macro with function.
2366 (DEFAULT_MIPS_TYPE): Delete unused macro.
2367 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2368 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
2370 2002-08-21 Jim Blandy <jimb@redhat.com>
2372 * valops.c (value_cast): Simplify and correct logic for doing a
2373 static cast from a pointer to a base class to a pointer to a
2376 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2378 * infcmd.c (default_print_registers_info): Replace
2380 (registers_info): Use gdbarch_print_registers_info instead of
2382 * inferior.h (default_print_registers_info): Replace
2384 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
2385 (DO_REGISTERS_INFO): Change to a predicate function.
2386 * gdbarch.h, gdbarch.c: Regenerate.
2388 2002-08-21 Keith Seitz <keiths@redhat.com>
2390 * gdb-events.sh: Add target-changed event.
2391 * gdb-events.c: Regenerated.
2392 * gdb-events.c: Regenerated.
2393 * valops.c (value_assign): Add target-changed event notification
2394 to inlval_register, lval_memory, and lval_reg_frame_relative.
2396 2002-08-21 Joel Brobecker <brobecker@gnat.com>
2398 * NEWS: Add an entry regarding the improvement of the next/step
2399 operation on Alpha Tru64 multi-processor machines.
2401 2002-08-21 Andrew Cagney <ac131313@redhat.com>
2403 * Makefile.in: Update dependencies for mi/ cli/ and tui/
2405 * Makefile.in: Update all _h macro definitions.
2406 * Makefile.in (install-gdbtk): Move to install section.
2407 (rdi-share/libangsd.a): Move to end of file.
2409 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2411 * frame.c (frame_register_unwind): When a register, set addrp to
2412 the register's byte.
2414 2002-08-20 Michael Snyder <msnyder@redhat.com>
2416 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
2417 used locally, so move them from the target machine header to here.
2418 (mips_set_processor_type, mips_register_name, mips32_next_pc,
2419 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
2421 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
2423 2002-08-20 Andrew Cagney <cagney@redhat.com>
2425 * NEWS: Mention that the Apollo line was made obsolete.
2426 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
2427 m68*-hp-hpux* obsolete.
2428 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
2429 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
2430 * buildsym.c (make_blockvector): Make static.
2431 * buildsym.h (make_blockvector): Make extern declaration obsolete.
2432 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
2433 (ALLDEPFILES): Remove dstread.c.
2434 (dstread.o): Obsolete make rule.
2435 * dstread.c: Makefile obsolete.
2437 * config/m68k/hp300hpux.mt: Ditto.
2438 * config/m68k/hp300hpux.mh: Ditto.
2439 * config/m68k/hp300bsd.mt: Ditto.
2440 * config/m68k/hp300bsd.mh: Ditto.
2441 * config/m68k/apollo68b.mt: Ditto.
2442 * config/m68k/apollo68v.mh: Ditto.
2443 * config/m68k/apollo68b.mh: Ditto.
2445 2002-08-20 Michael Snyder <msnyder@redhat.com>
2447 * mips-tdep.c (mips_in_return_stub): Make static.
2448 (mips_gdbarch_init): Set in_solib_return_trampoline.
2449 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
2451 2002-08-20 Michael Snyder <msnyder@redhat.com>
2453 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
2454 * gdbarch.c, gdbarch.h: Regenerate.
2455 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
2457 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
2459 2002-08-20 Michael Snyder <msnyder@redhat.com>
2461 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
2462 (mips_gdbarch_init): Set skip_trampoline_code,
2463 in_solib_call_trampoline.
2464 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
2465 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
2467 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2469 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
2471 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
2472 vector type for ev registers.
2473 (e500_pseudo_register_read): New function.
2474 (e500_pseudo_register_write): New function.
2475 (e500_dwarf2_reg_to_regnum): New function.
2476 (PPC_UISA_NOFP_SPRS): New macro.
2477 (PPC_EV_REGS): New macro.
2478 (PPC_GPRS_PSEUDO_REGS): New macro.
2479 (registers_e500): New register set for e500.
2480 (variants): Add e500 variant.
2481 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
2482 before setting architectural dependent variations. Initialize ev
2483 registers numbers. Add case for e500 architecture. Set the
2484 number of pseudo registers.
2486 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2488 * rs6000-tdep.c: Clean up comments.
2490 2002-08-20 Andrew Cagney <cagney@redhat.com>
2492 * h8300-tdep.c: Re-indent file.
2494 2002-08-20 Jim Blandy <jimb@redhat.com>
2496 * Makefile.in (LDFLAGS): Allow the configure script to establish a
2499 2002-08-20 Keith Seitz <keiths@redhat.com>
2501 * breakpoints.c (watch_command_1): Use internal breakpoint
2502 when setting a watchpoint_scope breakpoint.
2504 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2506 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
2507 (build_builtin_type_vec64i): Ditto.
2508 (build_builtin_type_vec128): Ditto.
2509 (build_builtin_type_vec128i): Ditto.
2511 2002-08-19 Michael Snyder <msnyder@redhat.com>
2513 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
2514 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
2515 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
2516 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
2517 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
2518 CALL_DUMMY_ADDRESS): Delete.
2519 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
2520 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
2521 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
2522 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
2523 push_return_address.
2524 (mips_register_raw_size, mips_eabi_use_struct_convention,
2525 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
2526 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
2527 mips_init_extra_frame_info, mips_eabi_push_arguments,
2528 mips_n32n64_push_arguments, mips_push_return_address,
2529 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
2530 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
2532 2002-08-19 Michael Snyder <msnyder@redhat.com>
2534 * mips-tdep.c (mips_frame_num_args): New function.
2535 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
2536 frame_saved_pc, frame_args_address, frame_locals_address,
2537 frame_num_args, and frame_args_skip.
2538 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
2539 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
2540 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
2541 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
2543 2002-08-20 Michael Snyder <msnyder@redhat.com>
2545 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
2546 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2547 * mips-tdep.c (mips_store_struct_return): New function.
2548 (mips_extract_struct_value_address): New function.
2549 (mips_gdbarch_init): Set store_struct_return and
2550 extract_struct_value_address.
2552 2002-08-20 David Carlton <carlton@math.stanford.edu>
2554 * dwarf2read.c (dwarf2_build_psymtabs): Check that
2555 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
2556 (read_file_scope): Check that line_header is nonzero before
2557 decoding macro information.
2559 2002-08-20 Mark Kettenis <kettenis@gnu.org>
2561 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
2562 flag the general-purpose registers as floating-point on targets
2563 that don't support the floating-point registers.
2565 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2567 * rs6000-tdep.c (altivec_register_p): Delete.
2568 (rs6000_do_altivec_registers): Delete.
2569 (rs6000_altivec_registers_info): Delete.
2570 (rs6000_do_registers_info): Delete.
2571 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
2572 (rs6000_gdbarch_init): Remove setting of do_registers_info.
2574 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
2576 * infcmd.c (do_registers_info): Print vector registers in hex
2578 (print_vector_info): Check that printing registers
2580 (print_float_info): Ditto.
2582 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2584 * mips-tdep.c (mips_gdbarch_init): Update.
2585 (mips_o32_extract_return_value): Rewrite.
2586 (mips_o32_store_return_value): Rewrite.
2587 (mips_o32_xfer_return_value): New function.
2588 (mips_xfer_register): Tweak debug print message. Allow for
2589 buf_offset when dumping the value transfered.
2591 2002-08-20 Andrew Cagney <ac131313@redhat.com>
2593 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
2594 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
2595 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
2596 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
2597 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
2599 2002-08-14 Michael Snyder <msnyder@redhat.com>
2601 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
2603 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2605 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
2607 (P): New macro to define a register as a pseudo register.
2608 (R, R4, R8, R16, FR32, R64, R0): Updated.
2609 (struct variant): Add new fields for number of pseudo registers
2610 and number of total registers.
2611 (tot_num_registers): New macro replacing....
2612 (num_registers): ...deleted macro.
2613 (num_registers): New function.
2614 (num_pseudo_registers): New function.
2615 (variants): Update all variants to intialize new fields correctly.
2616 Postpone initialization of number of pseudo regs and real regs.
2617 (init_variants): New function.
2618 (rs6000_gdbarch_init): Initialize variants. Update calculation of
2621 2002-08-19 David Carlton <carlton@math.stanford.edu>
2623 * valops.c (search_struct_field): Change error message to treat
2624 return value of 0 from value_static_field as meaning that field is
2626 (value_struct_elt_for_reference): Ditto.
2627 * values.c (value_static_field): Treat an unresolved location the
2628 same as a nonexistent symbol. Fix PR gdb/635.
2629 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
2630 enclosed. Fix PR gdb/574.
2631 * MAINTAINERS: Add self to Write After Approval list.
2633 2002-08-19 Andrew Cagney <ac131313@redhat.com>
2635 * mips-tdep.c (mips_xfer_register): New function.
2636 (mips_n32n64_extract_return_value): Rewrite.
2637 (mips_gdbarch_init): For N32 and N64, set extract_return_value
2638 instead of deprecated_extract_return_value.
2640 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2642 * rs6000-tdep.c (TDEP): Delete macro.
2643 (branch_dest): Replace use of TDEP macro with its body.
2644 (rs6000_pop_frame): Ditto.
2645 (rs6000_push_arguments): Ditto.
2646 (rs6000_skip_trampoline_code): Ditto.
2647 (rs6000_frame_saved_pc): Ditto.
2648 (rs6000_frame_chain): Ditto.
2649 (rs6000_register_name): Ditto.
2650 (rs6000_register_byte): Ditto.
2651 (rs6000_register_raw_size): Ditto.
2652 (rs6000_register_virtual_type): Ditto.
2653 (rs6000_register_convertible): Ditto.
2654 (rs6000_convert_from_func_ptr_addr): Ditto.
2656 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
2658 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
2660 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
2661 MIPS_LINUX_JB_ELEMENT_SIZE.
2662 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
2663 for MAX_REGISTER_RAW_SIZE arrays.
2664 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
2665 MIPS_LINUX_JB_ELEMENT_SIZE.
2667 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
2669 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
2671 2002-08-19 Aidan Skinner <aidan@velvet.net>
2673 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
2674 ada-valprint.c ada-tasks.c.
2675 (YYFILES): Add ada-exp.y.
2676 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
2677 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
2678 (ada-exp.tab.o): New target.
2680 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2682 * regcache.c (regcache_xfer_part): New function.
2683 (regcache_raw_read_part): New function.
2684 (regcache_raw_write_part): New function.
2685 (regcache_cooked_read_part): New function.
2686 (regcache_cooked_write_part): New function.
2687 * regcache.h (regcache_raw_read_part): Declare.
2688 (regcache_raw_write_part): Declare.
2689 (regcache_cooked_read_part): Declare.
2690 (regcache_cooked_write_part): Declare.
2692 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
2694 * remote.c (remote_open_1): Add async_p.
2695 (remote_async_open_1): Delete.
2696 (open_remote_target): Delete.
2697 (remote_open, extended_remote_open): Update calls to remote_open_1.
2698 (remote_async_open, extended_remote_async_open): Call
2699 remote_open_1 instead of remote_async_open_1.
2701 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2703 * blockframe.c: Fix a few coding standard violations.
2705 2002-08-19 Mark Kettenis <kettenis@gnu.org>
2707 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
2709 * config/i386/tm-i386sco5.h: ... here. File removed.
2710 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
2712 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
2713 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
2714 (TM_FILE): Set to tm-i386.h.
2715 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
2716 * config/i386/tm-i386v.h: Remove file.
2717 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
2718 instead of "i386/tm-i386v.h".
2719 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2720 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
2722 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
2723 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
2726 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2728 * config/i386/nm-i386v.h: Add protection against
2730 (i386_register_u_addr): Remove prototype.
2731 (register_u_addr): New prototype.
2732 (REGISTER_U_ADDR): Redefine accordingly.
2733 * i386v-nat.c: Improve several comments.
2734 (i386_register_u_addr): Change signature and rename to
2735 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
2738 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2740 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
2741 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
2742 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
2743 deprecated_extract_return_value.
2744 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
2745 rename mips_o32o64_push_arguments.
2746 (mips_gdbarch_init): Update.
2747 (mips_extract_return_value): Delete.
2748 (mips_o32_extract_return_value): Clone mips_extract_return_value.
2749 (mips_o64_extract_return_value): Clone mips_extract_return_value.
2750 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
2751 (mips_n32n64_extract_return_value): Clone
2752 mips_extract_return_value.
2753 (mips_store_return_value): Delete.
2754 (mips_o32_store_return_value): Clone mips_store_return_value.
2755 (mips_o64_store_return_value): Clone mips_store_return_value.
2756 (mips_eabi_store_return_value): Clone mips_store_return_value.
2757 (mips_n32n64_store_return_value): Clone mips_store_return_value.
2759 2002-08-18 Aidan Skinner <aidan@velvet.net>
2761 * ada-lang.c: Use gdb_string.h instead of <string.h>.
2762 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2764 2002-08-18 Aidan Skinner <aidan@velvet.net>
2766 * ada-lang.c: Run through gdb_indent.sh.
2767 * ada-lang.h: Run through gdb_indent.sh.
2768 * ada-tasks.c: Run through gdb_indent.sh.
2769 * ada-typeprint.c: Run through gdb_indent.sh.
2770 * ada-valprint.c: Run through gdb_indent.sh.
2772 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2774 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
2777 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2779 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
2781 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
2782 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
2784 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
2785 write_register_gen instead of write_register_bytes.
2787 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
2788 i[3456]-*-osf1mk* configurations have been made obsolete.
2789 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
2790 i[3456]86-*-osf1mk* hosts obsolete.
2791 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
2793 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
2794 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
2795 config/i386/i386m3.mt, config/i386/nm-m3.h,
2796 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
2797 config/i386/i386mk.mh, config/i386/i386mk.mt,
2798 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
2800 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
2801 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
2802 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
2804 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2806 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
2807 (hppa_value_returned_from_stack): Declare.
2808 (hppa_extract_return_value): Declare.
2809 * config/pa/hppa.mt: New file.
2810 * configure.tgt: Recognize hppa*-*-*.
2811 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
2813 2002-08-18 Mark Kettenis <kettenis@gnu.org>
2815 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
2818 2002-08-17 Mark Kettenis <kettenis@gnu.org>
2820 * top.c (gdb_rl_operate_and_get_next): Make sure
2821 operate-and-get-next functions correctly even when the history
2822 list is completely filled.
2824 2002-08-18 Andrew Cagney <ac131313@redhat.com>
2826 * MAINTAINERS (Target Instruction Set Architectures): Rename
2827 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
2828 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
2829 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
2830 already listed under Host/Native.
2832 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
2833 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
2836 2002-08-17 Andrew Cagney <ac131313@redhat.com>
2838 * config/ia64/ia64.mt: New file.
2839 * config/alpha/alpha.mt: New file.
2840 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
2841 ia64-linux-gnu. Mention that ia64-elf is broken.
2842 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
2844 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
2846 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
2847 generic_func_frame_valid instead of func_frame_valid.
2849 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2851 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
2852 procfs appears to be broken when debugging on multi-processor
2853 machines. So enable software single stepping in order to avoid
2854 using the procfs interface to do next/step operations, using
2855 internal breakpoints instead.
2857 * infrun.c (handle_inferior_event): Readjust the stop_pc by
2858 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
2859 make this pc address equal to the value it would have if the
2860 system stepping capability was used. Also set a new flag used
2861 to ensure that we don't readjust the PC one more time later.
2863 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
2864 address by DECR_PC_AFTER_BREAK when software single step is
2865 in use for this architecture, as this has already been taken
2866 care of in handle_inferior_event().
2868 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2870 * infrun.c (handle_inferior_event): Minor reformatting, to make
2871 a rather long condition expression easier to read.
2873 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2875 * Makefile.in (gdbtk.o): Move to end of file.
2876 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
2877 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
2878 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
2879 (gdbtk-wrapper.o, gdbres.o): Ditto.
2881 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2883 * Makefile.in (copying.o): Separate out compile rule.
2884 (hpux-thread.o, procfs.o, signals.o): Ditto.
2885 (v850ice.o, z8k-tdep.o): Ditto.
2886 (tui-file.o): Move to TUI section.
2887 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
2888 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
2890 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2892 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
2893 skip_trampoline_code, for better namespace-proofing.
2895 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
2897 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2899 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
2901 2002-08-16 Joel Brobecker <brobecker@gnat.com>
2903 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
2904 signal, check whether we hit a breakpoint before checking for a
2905 single step breakpoint. Otherwise, GDB fails to notice that a
2906 breakpoint has been hit when stepping onto a breakpoint.
2908 2002-08-16 Keith Seitz <keiths@redhat.com>
2910 * gdb-events.sh (clear_gdb_event_hooks): New function.
2911 * gdb-events.c: Regenerate.
2912 * gdb-events.h: Regenerate.
2914 2002-08-16 Andrew Cagney <ac131313@redhat.com>
2916 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
2917 not_a_sw_breakpoint.
2918 * breakpoint.h (bpstat_stop_status): Add parameter names.
2920 2002-08-16 Grace Sainsbury <graces@redhat.com>
2922 * remote.c (remote_insert_hw_breakpoint)
2923 (remote_remove_hw_breakpoint): Fix calculation of length field
2926 2002-08-15 Michael Snyder <msnyder@redhat.com>
2928 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
2929 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
2930 (supply_fpregset): Ditto.
2932 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
2933 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
2934 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
2935 (TARGET_READ_SP): Delete.
2936 (DO_REGISTERS_INFO): Delete.
2937 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
2939 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
2940 from macros to functions.
2942 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
2943 (mips_register_convertible, mips_register_convert_to_virtual,
2944 mips_register_convert_to_raw): Make static.
2945 (mips_read_sp): New function.
2946 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
2947 (mips_do_registers_info): Make static.
2948 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
2949 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
2950 (mips_register_convert_from_type, mips_register_convert_to_type):
2952 (mips_gdbarch_init): Set up function_start_offset,
2953 register_virtual_size, pc_in_sigtramp.
2955 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2957 * infcmd.c (vector_info): New function.
2958 (_initialize_infcmd): Add command "info vector".
2959 (print_vector_info): New function.
2961 * gdbarch.sh (PRINT_VECTOR_INFO): New method
2962 * gdbarch.h, gdbarch.c: Regenerate.
2964 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2966 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
2967 ``print_all''. Only print vector registers when ``print_all''.
2969 2002-08-15 Andrew Cagney <ac131313@redhat.com>
2971 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
2972 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
2974 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
2975 Add `args' parameter.
2976 * gdbarch.h, gdbarch.c: Regenerate.
2978 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
2980 * infcmd.c (float_info): Call print_float_info.
2981 (print_float_info): New function. By default, print the
2982 floating-point registers.
2984 * arch-utils.h (default_print_float_info): Delete declaration.
2985 * arch-utils.c (default_print_float_info): Delete function.
2987 2002-08-16 Mark Kettenis <kettenis@gnu.org>
2989 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
2992 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
2995 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
2996 * configure.host: Make i[3456]86-*-aix host obsolete.
2997 * configure.tgt: Make i[3456]86-*-aix target obsolete.
2998 * config/i386/i386aix.mh, config/i386/i386aix.mt,
2999 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3000 config/i386/xm-i386aix.h: Make files obsolete.
3001 * i386aix-nat.c: Make file obsolete.
3002 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3003 (i386aix-nat.o): Make target obsolete.
3005 * config/i386/nm-gnu.h: Removed.
3006 * config/i386/nm-i386gnu.h: New file.
3007 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3008 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3010 * config/i386/tm-i386gnu.h: ... here. Removed.
3011 * config/i386/xm-i386gnu.h: Removed.
3012 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3013 (NAT_FILE): Set to nm-i386gnu.h.
3014 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3015 * i386-tdep.c: New file.
3016 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3017 (i386gnu-tdep.o): Specify dependencies.
3019 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3021 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3022 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3023 Adjust a few comments to reflect reality a bit closer.
3024 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3025 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3026 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3027 target_insert_watchpoint, target_remove_watchpoint):
3029 * config/i386/nm-i386sco5.h: ... here.
3030 (kernel_u_size): Add prototype. Improve a few comments and add
3031 protection against multiple inclusion.
3033 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3036 * uw-thread.c (SP_ARG0): Define if not already defined.
3037 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3039 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3041 * config/i386/tm-i386.h: Don't include "regcache.h".
3043 * i387-tdep.h (i387_print_float_info): New prototype.
3044 * i387-tdep.c (print_i387_value, print_i387_ext,
3045 print_i387_status_word, print_i387_control_word): Add `struct
3046 ui_file *' argument and use it for output.
3047 (i387_print_float_info): Renamed from i387_float_info. Add
3048 `struct gdbarch *' and `struct ui_file *' arguments and use the
3050 * i386-tdep.c: Include "i387-tdep.h".
3051 (i386_gdbarch_init): Set print_float_info.
3052 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3053 (FLOAT_INFO): Remove define.
3055 2002-08-13 Michael Snyder <msnyder@redhat.com>
3057 * mips-tdep.c (mips_push_arguments): Rename to
3058 mips_eabi_push_arguments, and tune for EABI.
3059 (MIPS_REGS_HAVE_HOME_P): Delete.
3060 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3061 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3062 Delete references to mips_regs_have_home_p.
3064 2002-08-14 Keith Seitz <keiths@redhat.com>
3066 * Makefile.in (install-gdbtk): Create insight plugin directory.
3067 Install plugins.tcl file.
3069 2002-08-14 Keith Seitz <keiths@redhat.com>
3071 * configure.in: Move SUBDIRS to near top of the file so that
3072 --enable options may add things to it.
3073 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3074 * configure: Regenerate.
3076 2002-08-13 Michael Snyder <msnyder@redhat.com>
3078 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3079 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3080 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3082 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3084 * vax-tdep.c (vax_get_saved_register): Delete function.
3085 (vax_gdbarch_init): Update.
3086 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3087 (ns32k_gdbarch_init): Update.
3088 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3089 (alpha_gdbarch_init): Update.
3091 2002-08-13 Andrew Cagney <cagney@redhat.com>
3093 * regcache.c (init_regcache_descr): Overallocate the
3094 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3095 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3097 (set_register_cached): Add range checking assertions. Use
3100 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3102 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3103 numbers for MMX registers.
3105 2002-08-13 Andrew Cagney <cagney@redhat.com>
3107 * i386-tdep.c (i386_gdbarch_init): Use
3108 generic_unwind_get_saved_register.
3110 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3112 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3113 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3115 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3116 Delete. Add comment regarding this now-deleted target method.
3118 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3120 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3121 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3122 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3123 real PC and the page number (if it's within the memory bank window).
3124 (m68hc11_pseudo_register_write): Likewise when saving.
3125 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3126 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3127 (m68hc11_register_raw_size): And use 32-bit for it.
3128 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3129 16K memory bank is used by the prog; also use the virtual pc.
3131 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3133 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3134 (m68hc11_gdbarch_init): Install it in gdbarch.
3135 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3136 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3137 (MSYMBOL_SIZE): New for documentation.
3138 (insn_return_kind): Enum to specify how a function returns.
3139 (frame_extra_info): Cleanup and record the return mode.
3140 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3141 register in address computation.
3142 (m68hc11_get_return_insn): New to obtain the return instruction used
3144 (m68hc11_frame_init_saved_regs): Take into account the return
3145 instruction used by the function for far and interrupt functions.
3146 (m68hc11_init_extra_frame_info): Take into account page register.
3147 (m68hc11_frame_args_address): Adjust according to the return mode.
3148 (show_regs): Print page register only when it's used.
3150 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3152 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3153 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3154 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3156 (m68hc11_register_raw_size): Likewise.
3158 2002-08-13 Andrew Cagney <cagney@redhat.com>
3160 * i386-tdep.c (i386_register_name): Handle mmx registers.
3161 (mmx_regnum_p): New function.
3162 (i386_mmx_names): New array.
3163 (mmx_num_regs): New variable.
3164 (i386_pseudo_register_read): New function.
3165 (i386_pseudo_register_write): New function.
3166 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3168 * regcache.c (regcache_raw_read_unsigned): New function.
3169 (regcache_raw_read_signed): New function.
3170 * regcache.h (regcache_raw_read_unsigned): Declare.
3171 (regcache_raw_read_signed): Declare.
3173 2002-08-13 Andrew Cagney <cagney@redhat.com>
3175 * regcache.c (regcache_raw_read_as_address): Delete function.
3176 (regcache_cooked_read_signed): New function.
3177 (regcache_cooked_read_unsigned): New function.
3178 * regcache.h (regcache_cooked_read_signed): Declare.
3179 (regcache_cooked_read_unsigned): Declare.
3180 (regcache_raw_read_as_address): Delete declaration.
3182 * blockframe.c (generic_read_register_dummy): Use
3183 regcache_cooked_read_unsigned.
3184 * i386-tdep.c (i386_extract_struct_value_address): Use
3185 regcache_cooked_read_unsigned.
3187 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3190 double sizes according to ELF ABI flags.
3191 (gdbarch_tdep): Record elf_flags.
3193 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3195 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3196 (m6812_prolog): They can appear in 68HC12 function prologue.
3197 (m68hc11_frame_chain): Cleanup.
3199 2002-08-12 Andrew Cagney <cagney@redhat.com>
3201 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3203 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3204 (i386_linux_register_raw_size): Delete function.
3205 (i386_linux_init_abi): Update.
3206 * i386-tdep.c (i386_register_raw_size): Delete function.
3207 (i386_register_byte): Delete function.
3208 (i386_gdbarch_init): Update.
3209 (i386_register_size): Delete array.
3210 (i386_register_offset): Delete array.
3212 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3213 (REGISTER_RAW_SIZE): Delete macro.
3214 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3215 (REGISTER_BYTE): Delete macro.
3217 2002-08-11 Aidan Skinner <aidan@velvet.net>
3219 * ada-lang.c (ada_lookup_partial_symbol)
3220 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3221 prototype names so that grep ^func works properly.
3223 * ada-lang.c (ada_array_element_type)
3224 (ada_lookup_partial_symbol): Fix typos in parameter list.
3226 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3227 Fix prototype names so that grep ^func works properly.
3229 2002-08-10 Andrew Cagney <cagney@redhat.com>
3230 Elena Zannoni <ezannoni@redhat.com>
3231 Martin M. Hunt <hunt@redhat.com>
3233 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3234 (build_builtin_type_vec128i): Set the vector bit.
3235 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3236 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3237 (build_builtin_type_vec64): New function.
3238 (build_builtin_type_vec64i): New function.
3239 (build_gdbtypes): Initialize builtin_type_vec64 and
3240 builtin_type_vec64i.
3242 2002-08-09 Andrew Cagney <cagney@redhat.com>
3244 * regcache.c (regcache_dump): Compare the register offset
3246 * arch-utils.c (generic_register_byte): New function.
3247 * arch-utils.h (generic_register_byte): Declare.
3248 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3249 * gdbarch.h, gdbarch.c: Regenerate.
3251 2002-08-09 Andrew Cagney <cagney@redhat.com>
3253 * regcache.c: Include "gdbcmd.h"
3254 (_initialize_regcache): Add commands "maintenance print
3255 registers", "maintenance print raw-registers" and "maintenance
3256 print cooked-registers".
3257 (enum regcache_dump_what): Define.
3258 (dump_endian_bytes): New function.
3259 (regcache_dump): New function.
3260 (regcache_print): New function.
3261 (maintenance_print_registers): New function.
3262 (maintenance_print_raw_registers): New function.
3263 (maintenance_print_cooked_registers): New function.
3264 * Makefile.in (regcache.o): Update dependencies.
3266 2002-08-09 Michael Snyder <msnyder@redhat.com>
3268 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3269 (mips_push_arguments): Correct some comments. Use paddr_nz
3270 for printing addresses in debug output. Replace static
3271 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3272 (mips_n32n64_push_arguments): New function, cloned from
3273 mips_push_arguments and tuned for the n32/n64 ABI.
3274 (mips_push_register): Buffer needs dynamic allocation.
3275 (mips_print_register): Ditto.
3276 (do_gp_register_row): Ditto.
3277 (mips_store_return_value): Ditto.
3278 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
3280 2002-08-09 Don Howard <dhoward@redhat.com>
3282 * memattr.c (mem_info_command): Print special case of upper bound
3283 as max CORE_ADDR + 1.
3285 2002-08-08 Michael Snyder <msnyder@redhat.com>
3287 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
3288 returns structs by ref if they're too big to fit in two registers.
3290 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3292 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
3294 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
3295 mips_find_saved_regs().
3296 (mips_pop_frame): Likewise.
3298 2002-08-09 Kevin Buettner <kevinb@redhat.com>
3300 * blockframe.c (frame_saved_regs_register_unwind): Revise
3301 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
3304 2002-08-09 Grace Sainsbury <graces@redhat.com>
3306 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
3307 T-packets; the 'a' is not taken as a register number.
3308 (remote_check_watch_resources, remote_stopped_by_watchpoint)
3309 (remote_stopped_data_address): New functions; add to target
3311 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
3312 prototypes to match other implementations of this
3313 function. replace integer argument with pointer -- the length
3314 field in the Z-packet is the length of what is pointed to or 1 if
3315 pointer is null. Add to target vector.
3316 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
3320 * remote.c (remote_wait): Add support to extract optional
3321 watchpoint information from T-packet. Ignore unrecognized
3322 optional info in T-packet.
3323 (remote_async_wait): Ditto.
3325 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
3327 * cli/cli-dump.c: Change fopen modes to use binary open modes
3328 as defined in include/fopen-bin.h throughout.
3330 2002-08-08 Michael Snyder <msnyder@redhat.com>
3332 * mips-tdep.c: Minor whitespace and indentation clean-ups.
3334 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3336 * doublest.c (store_floating): Avoid floatformat_from_doublest()
3337 assertion failure by returning early after a warning.
3339 2002-08-08 Kevin Buettner <kevinb@redhat.com>
3341 * mips-tdep.c (mips_find_saved_regs): Make static.
3342 (mips_frame_init_saved_regs): New function.
3343 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
3344 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
3345 (mips_find_saved_regs): Delete declaration.
3347 2002-08-08 Grace Sainsbury <graces@redhat.com>
3349 * remote.c (remote_wait, remote_async_wait): Change
3350 thread_num from int to ULONGEST.
3351 (unpack_varlen_hex): Change result parameter from
3352 int * to ULONGEST *.
3354 2002-08-08 Andrew Cagney <ac131313@redhat.com>
3356 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
3357 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
3359 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
3361 2002-08-08 Andrew Cagney <cagney@redhat.com>
3363 * gcore.c (override_derive_stack_segment): Delete variable.
3364 (preempt_derive_stack_segment): Delete function.
3365 (derive_stack_segment): Delete function.
3366 (default_derive_stack_segment): Renamed to derive_stack_segment.
3367 (override_derive_heap_segment): Delete variable.
3368 (preempt_derive_heap_segment): Delete function.
3369 (derive_heap_segment): Delete function.
3370 (default_derive_heap_segment): Rename to derive_heap_segment.
3372 2002-08-06 Michael Snyder <msnyder@redhat.com>
3374 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
3375 * mips-tdep.c (mips_EABI_use_struct_convention,
3376 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
3377 New functions. (mips_use_struct_convention): Delete.
3378 (mips_gdbarch_init): set use_gdbarch_convention.
3380 2002-08-06 Michael Snyder <msnyder@redhat.com>
3382 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
3383 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
3384 mips_o32_reg_struct_has_addr): New functions.
3385 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
3387 2002-08-07 Andrew Cagney <ac131313@redhat.com>
3389 * regcache.c (pseudo_register): Delete function.
3390 (fetch_register): Delete function.
3391 (store_register): Delete function.
3392 (regcache_raw_read, legacy_read_register_gen): Use
3393 target_fetch_registers instead of fetch_register.
3394 (legacy_write_register_gen, regcache_raw_write): Use
3395 target_store_register instead of store_register.
3396 (write_register_bytes): Ditto.
3398 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
3399 (STORE_PSEUDO_REGISTER): Delete.
3400 * gdbarch.h, gdbarch.c: Regenerate.
3402 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
3404 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
3405 write dump file binary.
3407 2002-08-05 Michael Snyder <msnyder@redhat.com>
3409 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
3410 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
3411 (mips_gdbarch_init): Set N32 target to be mips64.
3413 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3415 * frame.c (find_saved_register): Break out of loop once saved
3416 register address is found. Don't mention sparc in loop comment
3419 2002-08-06 Kevin Buettner <kevinb@redhat.com>
3421 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
3422 mips_default_saved_regsize to 8.
3424 2002-08-06 Andrew Cagney <ac131313@redhat.com>
3426 * gcore.c: Do not include <sys/procfs.h>.
3427 * Makefile.in (gcore.o): Update dependencies.
3429 2002-08-06 Andrew Cagney <cagney@redhat.com>
3431 * configure.tgt: Make arc-*-* obsolete.
3432 * NEWS: Mention that arc-*-* has been identifed as obsolete.
3433 * MAINTAINERS: Make arc-elf obsolete.
3434 * arc-tdep.c: Make file obsolete.
3435 * config/arc/arc.mt: Ditto.
3436 * config/arc/tm-arc.h: Ditto.
3438 2002-08-05 Theodore A. Roth <troth@verinet.com>
3440 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
3442 2002-08-05 Andrew Cagney <ac131313@redhat.com>
3444 * mcore-tdep.c (mcore_gdbarch_init): Use
3445 generic_unwind_get_saved_register instead of
3446 generic_get_saved_register.
3447 * v850-tdep.c (v850_gdbarch_init): Ditto.
3448 * frv-tdep.c (frv_gdbarch_init): Ditto.
3449 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3450 * s390-tdep.c (s390_gdbarch_init): Ditto.
3451 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3452 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
3453 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
3455 2002-08-05 Joel Brobecker <brobecker@gnat.com>
3457 * objfiles.h: Add missing #include "symfile.h"
3459 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
3461 2002-08-04 Andrew Cagney <ac131313@redhat.com>
3463 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
3464 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
3467 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
3469 * NEWS: Cleanup and nitpick.
3471 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3473 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
3475 2002-08-03 Andrew Cagney <ac131313@redhat.com>
3477 * Makefile.in (gdbtk-bp.o): Update dependencies.
3478 (gdbtk-register.o): Ditto.
3479 (gdbtk-varobj.o): Ditto.
3481 2002-08-03 Andrew Cagney <cagney@redhat.com>
3483 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
3484 m68hc11_fetch_pseudo_register.
3485 (m68hc11_pseudo_register_write): Replace
3486 m68hc11_store_pseudo_register.
3487 (m68hc11_gdbarch_init): Update.
3489 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
3491 * gdbarch.sh: Include "gdb_string.h".
3492 * gdbarch.c: Regenerate.
3494 * regcache.c: Include "gdb_string.h".
3495 * ax-general.c: Ditto.
3497 * std-regs.c: Ditto.
3498 * fbsd-proc.c: Ditto.
3501 * Makefile.in (regcache.o): Update dependencies.
3502 (thread.o, gdbarch.o): Ditto.
3503 (ax-general.o, gdbarch.o): Ditto.
3504 (varobj.o, std-regs.o): Ditto.
3505 (fbsd-proc.o): Specify dependencies.
3507 2002-08-02 Andrew Cagney <cagney@redhat.com>
3509 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
3511 (regcache_cooked_write): Ditto.
3513 2002-08-02 Andrew Cagney <ac131313@redhat.com>
3515 * regcache.c (regcache_cooked_read): New function.
3516 (regcache_cooked_write): New function.
3517 (read_register_gen): Rewrite using regcache_cooked_read.
3518 (write_register_gen): Rewrite using regcache_cooked_write.
3520 * regcache.h (regcache_cooked_read, regcache_cooked_write):
3523 2002-08-02 Andrew Cagney <cagney@redhat.com>
3525 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
3526 Replace the architecture methods register_read and register_write.
3527 * gdbarch.h, gdbarch.c: Regenerate.
3528 * regcache.c (init_regcache_descr): Update.
3529 (read_register_gen): Update.
3530 (write_register_gen): Update.
3531 (supply_register): Update comment.
3533 * sh-tdep.c (sh_gdbarch_init): Update.
3534 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
3535 `regcache' and `gdbarch' parameters. Make `buffer' a void
3536 pointer. Update code.
3537 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
3538 `regcache' and `gdbarch' parameters. Make `buffer' a constant
3539 void pointer. Update code.
3540 (sh64_register_write): Delete.
3541 (sh4_register_read): Delete.
3542 (sh64_register_read): Delete.
3543 (sh4_register_write): Delete.
3544 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
3545 void pointer, `to' parameter a void pointer.
3546 (sh_sh64_register_convert_to_raw): Ditto.
3548 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3550 * mips-tdep.c (mips_register_virtual_type): Use architecture
3551 invariant return values.
3553 2002-08-01 Andrew Cagney <cagney@redhat.com>
3555 * linux-proc.c: Include "gdb_string.h".
3556 * Makefile.in (linux-proc.o): Update dependency list.
3558 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3560 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
3563 2002-08-01 Grace Sainsbury <graces@redhat.com>
3565 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3566 to_insert_watchpoint, to_remove_watchpoint,
3567 to_stopped_by_watchpoint, to_stopped_data_address,
3568 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
3569 target vecctor. Define their corresponding macros so they call
3572 * target.c: Add default and debug versions of for
3573 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
3574 to_insert_watchpoint, to_remove_watchpoint,
3575 to_stopped_by_watchpoint, to_stopped_data_address,
3576 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
3578 2002-08-01 Kevin Buettner <kevinb@redhat.com>
3580 * mips-tdep.c (mips_register_virtual_type): New function.
3581 (mips_gdbarch_init): Register mips_register_virtual_type()
3582 with gdbarch machinery.
3583 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
3584 this file instead of tm-bigmips.h.
3585 (MIPS_REGSIZE): Delete this macro.
3586 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
3587 multiarch version in mips-tdep.c will be found.
3589 2002-08-01 Andrew Cagney <cagney@redhat.com>
3591 * NEWS: Menion that CHILL has been made obsolete.
3593 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
3594 * stabsread.c (read_range_type): Ditto.
3595 * gdbtypes.h: Ditto.
3596 * language.c (binop_type_check): Ditto.
3597 (binop_result_type): Ditto.
3598 (integral_type): Ditto.
3599 (character_type): Ditto.
3600 (string_type): Ditto.
3601 (boolean_type): Ditto.
3602 (structured_type): Ditto.
3603 (lang_bool_type): Ditto.
3604 (binop_type_check): Ditto.
3605 * language.h (_LANG_chill): Ditto.
3606 * dwarfread.c (set_cu_language): Ditto.
3607 * dwarfread.c (CHILL_PRODUCER): Ditto.
3608 * dwarfread.c (handle_producer): Ditto.
3609 * expression.h (enum exp_opcode): Ditto.
3610 * eval.c: Ditto for comments.
3611 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
3612 * expprint.c (print_subexp): Ditto.
3613 (print_subexp): Ditto.
3614 * valops.c (value_cast): Ditto.
3615 (search_struct_field): Ditto.
3616 * value.h (COERCE_VARYING_ARRAY): Ditto.
3617 * symfile.c (init_filename_language_table): Ditto.
3618 (add_psymbol_with_dem_name_to_list): Ditto.
3619 * valarith.c (value_binop): Ditto.
3621 * valops.c (value_slice): Ditto.
3622 * symtab.h (union language_specific): Ditto.
3623 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
3624 (SYMBOL_DEMANGLED_NAME): Ditto.
3625 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3626 * defs.h (enum language): Ditto.
3627 * symtab.c (got_symtab): Ditto.
3628 * utils.c (fprintf_symbol_filtered): Ditto.
3630 * ch-typeprint.c: Make file obsolete.
3631 * ch-valprint.c: Make file obsolete.
3632 * ch-lang.h: Make file obsolete.
3633 * ch-exp.c: Make file obsolete.
3634 * ch-lang.c: Make file obsolete.
3636 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
3638 (TARGET_FLAGS_TO_PASS): Ditto.
3639 (CHILLFLAGS): Obsolete.
3641 (CHILL_FOR_TARGET): Obsolete.
3642 (CHILL_LIB): Obsolete.
3643 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
3645 (HFILES_NO_SRCDIR): Remove ch-lang.h.
3646 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
3648 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
3651 2002-07-31 Joel Brobecker <brobecker@gnat.com>
3653 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
3654 This does not change anything at the moment, but will be helpful
3655 later when full Ada support is integrated.
3657 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3659 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
3662 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3664 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
3665 and save it in a local variable. Use variable in later test.
3667 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3669 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
3670 test. (Thanks to Daniel Jacobowitz.)
3672 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3674 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
3675 (mips_abi_strings): Add "n64".
3676 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
3678 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3680 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
3681 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
3683 2002-07-31 Kevin Buettner <kevinb@redhat.com>
3685 * utils.c (host_pointer_to_address, address_to_host_pointer):
3686 Use gdb_assert() instead of explicit call to internal_error().
3688 2002-07-30 Kevin Buettner <kevinb@redhat.com>
3690 * Makefile.in (rs6000-nat.o): Update dependencies.
3692 From Nicholas Duffek:
3693 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
3694 (aix-thread.o): New rule.
3695 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
3696 * config/powerpc/aix432.mh: New file.
3698 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3700 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
3701 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
3702 (fetch_core_registers, ppc_linux_supply_gregset)
3703 (ppc_linux_supply_fpregset): New functions.
3704 (ppc_linux_regset_core_fns): New.
3705 (_initialize_ppc_linux_tdep): Call add_core_fns.
3706 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
3707 and ppc_linux_supply_gregset.
3708 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
3709 (supply_fpregset): Call ppc_linux_supply_fpregset.
3710 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
3712 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
3714 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
3716 * symtab.c (lookup_symbol): Demangle before lowercasing.
3718 2002-07-30 Andrew Cagney <ac131313@redhat.com>
3720 * symtab.h: Replace #include "gdb_obstack.h" with opaque
3722 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
3723 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
3724 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
3725 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
3727 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
3728 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
3729 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
3730 (avr-tdep.o, mon960-rom.o): Ditto.
3731 (aout_stabs_gnu_h): Define.
3732 (symtab_h): Remove $(gdb_obstack_h).
3734 2002-07-30 Jim Blandy <jimb@redhat.com>
3736 Patch from David Carlton <carlton@math.stanford.edu>:
3737 * gdbinit.in: Move the `dir' commands that add GDB's own source
3738 directory to the search path to the end, so that the `gdb' source
3739 directory will be searched first.
3741 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3743 * gdb_obstack.h: New file.
3744 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
3745 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
3746 * objfiles.h: Include "gdb_obstack.h".
3747 * Makefile.in (gdb_obstack_h): Define.
3748 (symtab_h): Add $(gdb_obstack_h).
3749 (objfiles_h): Add $(gdb_obstack_h).
3751 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
3752 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
3753 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
3754 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
3755 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
3756 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
3757 * symfile.c, coffread.c, c-typeprint.c: Ditto.
3758 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
3760 * Makefile.in (bcache.o): Update dependencies.
3761 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
3762 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
3763 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
3764 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
3765 (stabsread.o, symfile.o, symmisc.o): Ditto.
3766 (symtab.o, typeprint.o, macroexp.o): Ditto.
3767 (macrotab.o, mdebugread.o): Ditto.
3768 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
3769 (coff_ecoff_h, aout_aout64_h): Define.
3770 (aout_stabs_gnu_h, libaout_h): Define.
3772 2002-07-29 Andrew Cagney <cagney@redhat.com>
3774 * regcache.c (struct regcache_descr): Rename nr_registers to
3775 nr_cooked_registers. Revise comments describing the structure
3777 (init_regcache_descr): Update.
3778 (init_legacy_regcache_descr): Update.
3779 (read_register_gen, write_register_gen): When a cooked register in
3780 the raw register range, directly access the value from the raw
3783 2002-07-29 Andrew Cagney <ac131313@redhat.com>
3785 * z8k-tdep.c: Do not include "obstack.h".
3786 * h8300-tdep.c, h8500-tdep.c: Ditto.
3787 * m68hc11-tdep.c, sh-tdep.c: Ditto.
3788 * valprint.c, v850-tdep.c: Ditto.
3789 * d10v-tdep.c, mn10300-tdep.c: Ditto.
3790 * mn10200-tdep.c: Ditto.
3792 * Makefile.in (z8k-tdep.o): Update dependencies.
3793 (m68hc11-tdep.o, valprint.o): Ditto.
3794 (v850-tdep.o, d10v-tdep.o): Ditto.
3795 (mn10300-tdep.o, sparc-tdep.o): Ditto.
3796 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
3797 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
3798 (sh_opc_h, gdb_sim_sh_h): Define.
3799 (elf_sh_h, elf_bfd_h): Define.
3800 (opcode_m68hc11_h): Define.
3801 (OPCODES_SRC, OPCODES_DIR): define.
3802 (OPCODES): Use $(OPCODES_DIR).
3803 (gdb_sim_d10v_h): Rename sim_d10v_h.
3804 (gdb_sim_arm_h): Rename sim_arm_h.
3806 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3808 * utils.c (host_pointer_to_address, address_to_host_pointer):
3809 Change internal_error() message to indicate function responsible
3812 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3814 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
3815 calls to local_hex_string_custom().
3817 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3819 * irix5-nat.c: Move IRIX shared library support from here...
3820 * solib-irix.c: ...to here. Revised substantially to work with
3821 generic solib framework.
3823 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
3824 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
3825 * mips-irix-tdep.c: New file.
3827 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
3828 (mips-irix-tdep.o, solib-irix.o): New rules.
3829 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
3831 * config/mips/irix6.mt (TDEPFILES): Likewise.
3832 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
3834 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3836 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
3837 disabled (via ``#if 0'') includes.
3839 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3841 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
3842 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
3843 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
3844 Add support for the fpscr register.
3845 * rs6000-nat.c (regmap, fetch_inferior_registers)
3846 (store_inferior_registers, fetch_core_registers): Likewise.
3848 2002-07-26 Kevin Buettner <kevinb@redhat.com>
3850 * rs6000-nat.c (language.h): Include.
3851 (special_regs): Delete this array.
3852 (regmap): New function.
3853 (fetch_register, store_register): Use regmap() to map gdb
3854 register numbers to ptrace register numbers. Also, use
3855 outputs from regmap() to make decisions regarding type of
3856 ptrace() call to make. In particular, don't compare against
3857 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3858 (fetch_inferior_registers, store_inferior_registers): Where
3859 possible, obtain register numbers from tdep struct. Don't
3860 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
3861 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
3862 (LAST_UISA_SP_REGNUM): Delete.
3864 2002-07-25 Kevin Buettner <kevinb@redhat.com>
3866 * rs6000-nat.c (ppc-tdep.h): Include.
3867 (fetch_registers, store_register, fetch_core_registers): Don't
3868 access registers[] directly. Instead, use supply_register() or
3869 regcache_collect() as appropriate.
3870 (find_toc_address): Format hex address with local_hex_string().
3872 2002-07-25 Andrew Cagney <ac131313@redhat.com>
3874 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
3877 2002-07-24 Tom Tromey <tromey@redhat.com>
3879 * jv-exp.y: Marked all strings with _().
3880 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
3882 (MethodInvocation, CastExpression, parse_number, yyerror,
3883 java_type_from_name, push_expression_name, yylex): Typo fixes.
3885 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
3887 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
3888 (tee_file_flush, tee_file_write, tee_file_fputs)
3889 (tee_file_isatty): New.
3890 * ui-file.h (tee_file_new): Add prototype.
3892 2002-07-24 Aidan Skinner <aidan@velvet.net>
3894 * ada-lang.c: Change k&r style function definitions to prototyped
3896 * ada-typeprint.c: Change k&r style function definitions to prototyped
3898 * ada-valprint.c: Change k&r style function definitions to prototyped
3901 2002-07-24 Andrew Cagney <cagney@redhat.com>
3903 * README: Remove reference to remote-bug.
3904 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
3906 (m88k-nat.o): Delete rule.
3907 (m88k-tdep.o): Delete rule.
3908 (remote-bug.o): Delete rule.
3909 * MAINTAINERS: Mark as obsolete.
3910 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
3911 * m88k-tdep.c: Make file obsolete.
3912 * config/m88k/m88k.mh: Ditto.
3913 * config/m88k/delta88v4.mh: Ditto.
3914 * config/m88k/delta88v4.mt: Ditto.
3915 * config/m88k/delta88.mt: Ditto.
3916 * config/m88k/delta88.mh: Ditto.
3917 * remote-bug.c: Ditto.
3918 * config/m88k/tm-delta88.h: Ditto.
3919 * config/m88k/nm-delta88v4.h: Ditto.
3920 * config/m88k/xm-delta88.h: Ditto.
3921 * config/m88k/xm-dgux.h: Ditto.
3922 * config/m88k/tm-m88k.h: Ditto.
3923 * config/m88k/nm-m88k.h: Ditto.
3924 * config/m88k/tm-delta88v4.h: Ditto.
3925 * m88k-nat.c: Ditto.
3926 * cxux-nat.c: Ditto.
3927 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
3928 and m88*-*-* obsolete.
3929 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
3932 2002-07-24 Andrew Cagney <cagney@redhat.com>
3934 * findvar.c (extract_unsigned_integer): Make `addr' parameter
3935 constant. Same for local pointer variables.
3936 (extract_signed_integer): Ditto.
3937 * defs.h (extract_unsigned_integer): Update.
3938 (extract_signed_integer): Update.
3940 2002-07-24 Andrew Cagney <cagney@redhat.com>
3942 * regcache.c (regcache_raw_write): Change buf parameter to a
3943 constant void pointer.
3944 (regcache_raw_read): Change buf parameter to a void pointer.
3945 (legacy_write_register_gen): Change myaddr parameter a constant
3947 (supply_register): Change val parameter to a const void pointer.
3948 * regcache.h (regcache_raw_write): Update declaration.
3949 (regcache_raw_read): Update declaration.
3950 (supply_register): Update declaration.
3952 2002-07-24 Tom Tromey <tromey@redhat.com>
3954 * defs.h (gdb_readline_wrapper): Declare.
3955 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
3956 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
3957 * top.c (gdb_readline_wrapper): New function.
3958 (command_line_input): Use it.
3960 2002-07-24 Andrew Cagney <cagney@redhat.com>
3962 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
3963 regcache_read and regcache_write.
3964 (regcache_raw_read_as_address): Replace regcache_read_as_address.
3965 * regcache.c: Update.
3966 * sh-tdep.c (sh64_push_arguments): Update comment.
3967 (sh_pseudo_register_read): Update.
3968 (sh_pseudo_register_write): Update.
3969 (sh4_register_read): Update.
3970 (sh4_register_write): Update.
3971 (sh64_pseudo_register_read): Update.
3972 (sh64_pseudo_register_write): Update.
3973 (sh64_register_read): Update.
3974 (sh64_register_write): Update.
3975 * i386-tdep.c (i386_extract_return_value): Update.
3976 (i386_extract_struct_value_address): Update.
3977 (i386_extract_return_value): Update.
3978 * blockframe.c (generic_read_register_dummy): Update.
3979 (generic_call_dummy_register_unwind): Update
3980 * infrun.c (write_inferior_status_register): Update.
3982 2002-07-23 Jim Blandy <jimb@redhat.com>
3984 * parser-defs.h (expression_context_pc): Make this extern.
3985 (Thanks to Michael Snyder.)
3987 2002-07-23 Andrew Cagney <ac131313@redhat.com>
3989 GDB 5.2.1 released from 5.2 branch.
3990 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
3991 * README: Update to mention 5.2.1.
3993 2002-07-23 Mark Salter <msalter@redhat.com>
3995 * remote.c (remote_read_bytes): Fix check for error.
3997 2002-07-22 Kevin Buettner <kevinb@redhat.com>
3999 * aix-thread.c (language.h): Include.
4000 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4001 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4002 Print newlines at end of debug messages.
4003 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4004 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4006 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4008 * aix-thread.c (ppc-tdep.h): Include.
4009 (special_register_p): New function.
4010 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4011 (store_regs_user_thread): Use register number information from
4012 gdbarch_tdep struct instead of hardcoded offsets relative to
4013 FIRST_UISA_SP_REGNUM.
4014 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4015 special_register_p() instead of using FPLAST_REGNUM and
4016 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4017 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4018 will be MQ's register number.
4020 2002-07-22 Michael Snyder <msnyder@redhat.com>
4022 * aix-thread.c (ops): Rename to aix_thread_ops.
4023 (base_ops): Rename to base_target.
4024 (ops_attach): Rename to aix_thread_attach.
4025 (ops_detach): Rename to aix_thread_detach.
4026 (ops_resume): Rename to aix_thread_detach.
4027 (ops_wait): Rename to aix_thread_wait.
4028 (ops_kill): Rename to aix_thread_kill.
4029 (init_ops): Rename to init_aix_thread_ops.
4030 (ops_fetch_register): Rename to aix_thread_fetch_register.
4031 (ops_store_register): Rename to aix_thread_store_register.
4032 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4033 (ops_thread_alive): Rename to aix_thread_thread_alive.
4034 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4035 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4036 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4037 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4038 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4039 (store_regs_lib): Rename to store_regs_user_thread.
4040 (store_regs_kern): Rename to store_regs_kernel_thread.
4042 2002-07-22 Michael Snyder <msnyder@redhat.com>
4044 * aix-thread.c (ops_prepare_to_store): Eliminate.
4045 (init_ops): Don't initialize ops.prepare_to_store.
4046 (store_regs_kern): Pre-fetch register buffers from child,
4047 because some registers may not be in the cache. Copy
4048 regs from register cache only if they are cached.
4049 (store_regs_lib): Copy regs from register cache only
4051 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4052 fill_gprs64): Ditto.
4054 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4056 * aix-thread.c (gdb_assert.h): Include.
4057 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4058 register sizes (from register cache) match size of buffer holding
4060 (fill_sprs32): Change parameter types to match those in the ptrace()
4062 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4063 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4065 2002-07-22 Michael Snyder <msnyder@redhat.com>
4067 * aix-thread.c (supply_sprs64): Cosmetic change.
4068 (supply_sprs32): Cosmetic change.
4069 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4070 (fill_sprs64): Use regcache_collect instead of read_register.
4071 (store_regs_lib): Use regcache_collect instead of
4072 read_register. Use fill_sprs32 instead of fill_sprs64,
4073 if debugging a 32-bit architecture.
4074 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4075 out of the register cache, instead of passing a pointer into
4076 the register cache directly to ptrace. Use regcache_collect
4077 insteaad of read_register.
4078 (ops_prepare_to_store): Use target_read_registers instead
4079 of read_register_bytes.
4081 2002-07-20 Aidan Skinner <aidan@velvet.net>
4083 * MAINTAINERS: Add self under write after approval.
4085 2002-07-20 Aidan Skinner <aidan@velvet.net>
4087 * ada-tasks.c: Change k&r style function definitions to prototyped
4090 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4092 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4093 * x86-64-tdep.c: Include "objfiles.h".
4094 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4095 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4097 2002-07-17 Michal Ludvig <michal@suse.cz>
4099 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4100 (update_context): Initialise cfa variable.
4102 2002-07-17 Michael Snyder <msnyder@redhat.com>
4104 * aix-thread.c: Shorten some long lines.
4105 Bring comments into line with code spec.
4107 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4109 * infrun.c: Re-indent using gdb_indent.sh.
4111 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4113 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4114 Leave the indentation temporarily untouched, to minimize the diffs.
4116 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4118 * stabsread.c: Make os9k sections of the code obsolete,
4120 * stabsread.h: Make os9k sections of the code obsolete.
4122 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4124 * linux-low.c (regsets_store_inferior_registers): Add free()
4125 at the end of a loop to prevent memory leak.
4126 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4127 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4128 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4130 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4132 2002-07-17 Jim Blandy <jimb@redhat.com>
4134 * macrocmd.c (info_macro_command): Remove newline from error
4137 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4139 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4140 (sh_gdbarch_init): Use it for sh-dsp.
4142 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4144 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4145 64-bit DWARF2 format.
4147 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4149 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4150 <sys/proc.h> when not available.
4152 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4154 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4155 * stabsread.c: Make os9k sections of the code obsolete.
4156 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4157 * config/i386/i386os9k.mt: Make file obsolete.
4158 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4159 (COMMON_OBS): Remove os9kread.o
4160 (SFILES): Remove os9kread.c.
4161 (os9kread.o, remote-os9k.o): Make target obsolete.
4162 * remote-os9k.c: Make file obsolete.
4163 * os9kread.c: Make file obsolete.
4166 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4168 * NEWS: Mention that the FR30 has been made obsolete.
4169 * fr30-tdep.c: Make file obsolete.
4170 * config/fr30/tm-fr30.h: Ditto.
4171 * config/fr30/fr30.mt: Ditto.
4172 * configure.tgt: Make fr30-*-elf obsolete.
4173 * MAINTAINERS: Make fr30-elf obsolete.
4175 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4177 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4178 found is not inside a section.
4180 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4182 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4184 (pdc_realloc): Use xrealloc() instead of realloc().
4186 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4188 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4189 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4190 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4193 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4195 * aix-thread.c (ptrace_check): Eliminate goto.
4196 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4199 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4201 * aix-thread.c (gdbcmd.h): Include.
4202 (DEBUG, DBG, DBG2, dbg): Eliminate.
4203 (debug_aix_thread): New static global.
4204 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4205 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4206 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4207 invocations to DBG and DBG2 macros to test against
4208 ``debug_aix_thread'' and call fprintf_unfiltered().
4209 (_initialize_aix_thread): Add new command "set debug aix-thread".
4211 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4213 From Gerhard Tonn <TON@de.ibm.com>:
4214 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4215 instead of supply_register.
4217 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4219 * dwarf2cfi.c: Include "gdb_assert.h".
4220 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4222 (update_context): Do not use __func__. Add missing ``break''.
4223 (update_context): Do not use __func__.
4225 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4227 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4228 and its setting. Set gdbarch instruction printing functions
4229 directly. For non-rs6000 case use new function
4230 gdb_print_insn_powerpc.
4231 (gdb_print_insn_powerpc): New function.
4233 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4235 * NEWS: Mention that the d30v has been marked obsolete.
4236 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4237 * configure.tgt: Mark d30v-*-* as obsolete.
4238 * d30v-tdep.c: Mark file as obsolete.
4239 * config/d30v/d30v.mt: Ditto.
4240 * config/d30v/tm-d30v.h: Ditto.
4242 2002-07-13 Aidan Skinner <aidan@velvet.net>
4244 * ada-tasks.c (add_task_entry): replace calls to
4245 malloc() with xmalloc
4246 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4248 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4249 ada_finish_decode_line_1, all_sals_for_line
4250 ada_breakpoint_rewrite): replace calls to free() with xfree()
4252 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4254 From Nicholas Duffek (with minor changes by Martin Hunt,
4255 Louis Hamilton, and Kevin Buettner):
4256 * aix-thread.c: New file.
4258 2002-07-12 Petr Sorfa <petrs@caldera.com>
4260 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4261 complaint for invalid attribute class or form.
4262 (read_func_scope): DW_AT_frame_base
4263 better handling of DW_AT_block*.
4264 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4265 better handling of DW_AT_block*.
4266 (read_common_block): DW_AT_location
4267 better handling of DW_AT_block*.
4268 (read_partial_die): DW_AT_location better handling
4270 (new_symbol): DW_AT_external better handling of
4271 DW_AT_block*. Proper initialization of variable
4273 (attr_form_is_block): New function that returns true
4274 if the attribute's form is of DW_FORM_block*.
4276 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
4278 * valops.c (find_method_list): Remove comment about
4279 removed STATIC_MEMFUNCP argument.
4280 (value_find_oload_method_list): Likewise.
4282 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4284 From Nicholas Duffek:
4285 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
4286 target_new_objfile_hook.
4288 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4290 From Nicholas Duffek:
4291 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
4294 2002-07-12 Andrew Cagney <cagney@redhat.com>
4296 * MAINTAINERS: Mention --enable-sim-build-warnings.
4297 (m68hc11-elf): Disable sim build warnings.
4298 (m32r-elf): Mark as broken obsolete candidate.
4299 (x86_64-linux-gnu): Mark as buildable with -Werror.
4300 (arm-elf): Change -w to ``,'' which enables warnings but not
4303 2002-07-12 Andrew Cagney <ac131313@redhat.com>
4305 * bcache.h: Update copyright.
4306 (struct bstring, struct bcache): Move definition to "bcache.c".
4307 Replaced by opaque declaration.
4308 (bcache_xfree): Replace free_bcache.
4309 (bcache_xmalloc, bcache_memory_used): Declare.
4311 * bcache.c: Update copyright.
4312 (struct bstring, struct bcache): Moved to here from "bcache.h".
4314 (bcache_xmalloc, bcache_memory_used): New functions.
4315 (bcache_xfree): Replace function free_bcache.
4317 * Makefile.in (objfiles.o): Add $(bcache_h).
4318 (objfiles_h): Remove $(bcache_h).
4319 (symfile.o): Add $(bcache_h).
4321 * symmisc.c: Update copyright.
4322 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
4323 (print_objfile_statistics): Use bcache_memory_used.
4325 * symfile.c: Include "bcache.h".
4326 (reread_symbols): Use bcache_xfree.
4327 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
4328 (add_psymbol_to_list): Pass psymbol_cache by value.
4329 (add_psymbol_with_dem_name_to_list): Ditto.
4331 * objfiles.h: Update copyright.
4332 (struct bcache): Declare opaque. Do not include "bcache.h".
4333 (struct objfile): Change psymbol_cache and macro_cache to ``struct
4335 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
4337 * objfiles.c: Include "bcache.h". Update copyright.
4338 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
4340 (free_objfile): Use bcache_xfree.
4342 2002-07-11 Grace Sainsbury <graces@redhat.com>
4344 * monitor.c (monitor_fetch_register): Make name a constant.
4345 (monitor_store_register): Same.
4347 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
4349 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
4350 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
4351 (finish_block) For non-function blocks, hash the symbol table. For
4352 function blocks, mark the symbol table as unhashed.
4353 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
4354 (msymbol_hash_iw): Likewise.
4355 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
4357 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
4358 (lookup_minimal_symbol): Likewise for both.
4359 * symtab.h (struct block): Add `hashtable' flag. Comment the
4361 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
4362 (ALL_BLOCK_SYMBOLS): Update.
4363 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
4364 (struct symbol): Add `hash_next' pointer.
4365 * symtab.c (lookup_block_symbol): Search using the hash table when
4367 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
4368 (search_symbols, find_addr_symbol): Likewise.
4370 * dstread.c (process_dst_block): Clear hashtable bit for new block.
4371 (read_dst_symtab): Likewise.
4372 * jv-lang.c (get_java_class_symtab): Likewise.
4373 * mdebugread.c: Include "gdb_assert.h".
4374 (shrink_block): Assert that the block being modified is not hashed.
4375 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
4376 * symmisc.c (free_symtab_block): Walk the hash table when freeing
4378 (dump_symtab): Recognize hashed blocks.
4379 * printcmd.c (print_frame_args): Assert that function blocks do not
4380 have hashed symbol tables.
4381 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
4382 (fill_in_ada_prototype, debug_print_block): Likewise.
4383 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
4385 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
4387 * stack.c (print_frame): Use result of frame_address_in_block()
4388 instead of fi->pc when evaluating symbols.
4389 (backtrace_command_1): Ditto.
4391 2002-07-11 Andrew Cagney <cagney@redhat.com>
4393 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
4396 * arm-tdep.c (arm_register_name): Make return type constant.
4398 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4400 * win32-nat.c (has_detach_ability): Convert to strict ISO C
4402 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
4403 * s390-tdep.c (s390_fp_regnum): Ditto.
4404 (s390_read_fp): Ditto.
4405 (s390_pop_frame): Ditto.
4406 (_initialize_s390_tdep): Ditto.
4407 * remote.c (get_remote_state): Ditto.
4408 * procfs.c (mappingflags): Ditto.
4409 * memattr.c (_initialize_mem): Ditto.
4410 * mcore-tdep.c (mcore_pop_frame): Ditto.
4411 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
4412 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
4413 * language.c (set_case_str): Ditto.
4414 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
4415 * frv-tdep.c (new_variant): Ditto.
4416 (frv_stopped_data_address): Ditto.
4417 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
4418 (context_alloc): Ditto.
4419 (frame_state_alloc): Ditto.
4420 (unwind_tmp_obstack_init): Ditto.
4421 (unwind_tmp_obstack_free): Ditto.
4422 (cfi_read_fp): Ditto.
4423 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
4424 (cris_pop_frame): Ditto.
4425 * c-lang.c (scanning_macro_expansion): Ditto.
4426 (finished_macro_expansion): Ditto.
4427 (c_preprocess_and_parse): Ditto.
4428 * gdbarch.sh: Ditto.
4429 * gdbarch.h, gdbarch.c: Regenerate.
4430 * config/mn10200/tm-mn10200.h: Adjust indentation.
4431 * target.c: Adjust indentation.
4432 * symtab.h: Adjust indentation.
4433 * stabsread.h: Adjust indentation.
4434 * remote-es.c: Adjust indentation.
4435 * os9kread.c: Adjust indentation.
4437 2002-07-10 Andrew Cagney <ac131313@redhat.com>
4439 * wince.c (_initialize_wince): Rename _initialize_inftarg.
4440 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
4442 2002-07-10 Grace Sainsbury <graces@redhat.com>
4444 * NEWS: Mention m68k, mcore multi-arching.
4445 * MAINTAINERS: Change status of m68k, mcore to reflect
4448 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
4450 * valops.c (find_overload_match): Free oload_syms.
4452 2002-07-09 Joel Brobecker <brobecker@gnat.com>
4454 Define HAVE_SYS_PROC_H if sys/proc.h exists
4455 * configure.in: Add check for sys/proc.h
4456 * config.in: Regenerate.
4457 * configure: Regenerate.
4459 2002-07-09 Grace Sainsbury <graces@redhat.com>
4461 * config/m68k/tm-m68k.h: Remove macros wrapped in
4462 #if !GDB_MULTI_ARCH.
4464 2002-07-08 Andrew Cagney <ac131313@redhat.com>
4466 * config.in, configure: Regenerate.
4468 2002-07-08 Mark Kettenis <kettenis@gnu.org>
4470 * dwarf2cfi.c: Include "gcore.h".
4471 (execute_stack_op): Fix implementation of the
4472 DW_OP_deref and DW_OP_deref_size operators by letting do their
4473 lookup in the target.
4475 2002-07-07 Mark Kettenis <kettenis@gnu.org>
4477 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
4478 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
4481 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
4483 Fix PR gdb/595, gdb/602
4484 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
4485 Don't call value_cast, just read the vtable pointer; update comments
4488 2002-07-05 Grace Sainsbury <graces@redhat.com>
4490 * config/mcore/tm-mcore.h: Remove file.
4491 * config/mcore/mcore.mt: Remove definition of TM_FILE
4492 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
4494 2002-07-05 Mark Kettenis <kettenis@gnu.org>
4496 * i386bsd-tdep.c: Include "gdb_string.h".
4498 2002-07-04 Grace Sainsbury <graces@redhat.com>
4500 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
4501 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
4503 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
4504 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
4505 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
4506 (RETVAL_REGNUM): Move macros from tm-mcore.h
4507 (mcore_reg_struct_has_addr): New function.
4508 (mcore_gdbarch_init): Added initializations for the macros removed
4511 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4513 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
4514 traditonal string branding within the ELF header.
4516 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
4518 * symtab.c (remove_params): New function.
4519 (make_symbol_overload_list): Use it instead of cplus_demangle.
4520 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
4522 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4524 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
4526 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
4528 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
4529 and tdep->sigtramp_end.
4530 * i386obsd-nat.c: New file.
4531 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
4533 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
4534 Don't call get_current_frame().
4536 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
4538 * i386-nat.c (child_post_startup_inferior): New function
4539 calling i386_cleanup_dregs if
4540 I386_USE_GENERIC_WATCHPOINTS is defined.
4541 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
4542 conditional to acknowledge that i386-nat.c has its
4543 own child_post_startup_inferior function.
4545 2002-07-04 Mark Kettenis <kettenis@gnu.org>
4547 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
4548 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
4549 instead of MAX_REGISTER_RAW_SIZE.
4550 (i386_extract_return_value, i386_extract_struct_value_address):
4551 Convert to use regcache.
4552 (i386_gdbarch_init): Set max_register_raw_size and
4553 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
4554 Set extract_return_value and extract_struct_value_address instead
4555 of their deprecated variants.
4557 Convert i386 target to generic dummy frames.
4558 * i386-tdep.c: Include "symfile.h".
4559 (i386_frameless_signal_p): Consider a function to be frameless if
4560 the pc points at the first instruction of the function.
4561 (i386_frame_chain): Handle (generic) call dummies.
4562 (i386_frame_saved_pc): Likewise.
4563 (i386_frame_init_saved_regs): Remove code dealing with call
4564 dummies on the stack.
4565 (i386_push_dummy_frame): Removed.
4566 (i386_call_dummy_words): Removed.
4567 (i386_fix_call_dummy): Removed.
4568 (i386_push_return_address): New function.
4569 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
4570 parameter, and don't call get_current_frame.
4571 (i386_pop_frame): New function.
4572 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
4573 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
4574 entry_point_address, set call_dummy_breakpoint_offset to 0, set
4575 call_dummy_length to 0, set call_dummy_words to NULL, set
4576 sizeof_call_dummy_words to 0, set fix_call_dummy to
4577 generic_fix_call_dummy, set pc_in_call_dummy to
4578 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
4579 generic_push_dummy_frame, set push_return_address to
4580 i386_push_return_address and set frame_chain_valid to
4581 generic_file_frame_chain_valid.
4583 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4585 * gdbarch.sh (struct regcache): Add opaque declaration.
4586 (EXTRACT_RETURN_VALUE): New architecture method.
4587 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
4588 * gdbarch.h, gdbarch.c: Regenerate.
4589 * arch-utils.c (legacy_extract_return_value): New function.
4590 * arch-utils.h (legacy_extract_return_value): Declare.
4591 * values.c (value_being_returned): Re-enable code handling
4592 EXTRACT_STRUCT_VALUE_ADDRESS. Move
4593 deprecated_grub_regcache_for_registers call to block handling
4594 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4595 (EXTRACT_RETURN_VALUE): Do not define.
4597 2002-07-03 Grace Sainsbury <graces@redhat.com>
4599 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
4600 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
4601 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
4602 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
4603 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
4604 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
4605 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
4606 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
4607 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
4608 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
4609 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
4610 argument so the function fits the prototype in the architecture
4612 (mcore_pop_frame): Remove argument so the function fits the
4613 prototype. Use get_current_frame instead of the argument.
4614 (mcore_push_arguments): Change type of struct_return so the
4615 function can be used in the architecture vector.
4616 (mcore_store_struct_return): Add.
4617 (mcore_frame_init_saved_regs): Add.
4618 (mcore_gdbarch_init): Add function calls to replace the macros
4619 removed from tm-mcore.h
4621 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4623 * infcmd.c (print_return_value): Remove compatibility code calling
4624 deprecated_grub_regcache_for_registers.
4626 * values.c: Include "regcache.h".
4627 (value_being_returned): Update. Use
4628 deprecated_grub_regcache_for_registers to extract the register
4630 * value.h (value_being_returned): Change ``retbuf'' parameter to a
4631 ``struct regcache''.
4632 * Makefile.in (values.o): Add dependency on $(regcache_h).
4634 * inferior.h (run_stack_dummy): Change type of second parameter to
4635 a ``struct regcache''.
4636 * valops.c (hand_function_call): Change type of retbuf to ``struct
4637 regcache''. Allocate using regcache_xmalloc, clean using
4638 make_cleanup_regcache_xfree.
4639 * infcmd.c (run_stack_dummy): Update. Use
4640 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
4642 * regcache.c (do_regcache_xfree): New function.
4643 (make_cleanup_regcache_xfree): New function.
4644 * regcache.h (make_cleanup_regcache_xfree): Declare.
4646 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4648 * event-top.c (command_line_handler): Don't read past
4649 beginning of buffer.
4651 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4653 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
4655 (varobj_create): Store frame_id for root.
4656 (varobj_gen_name): Use xasprintf.
4657 (varobj_update): Save and restore frame using get_frame_id() and
4659 (create_child): Use xasprintf.
4660 (new_root_variable): Initialize frame_id.
4661 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
4662 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
4663 to prevent memory leak.
4665 2002-07-03 Andrew Cagney <ac131313@redhat.com>
4667 * valops.c (hand_function_call): Move declaration of retbuf to
4668 start of function, allocate using malloc, add a cleanup but before
4669 the inf_status cleanup, cleanup the buffer. Rename local variable
4670 old_chain to inf_status_cleanup.
4672 2002-07-03 Martin M. Hunt <hunt@redhat.com>
4674 * top.c (execute_command): Use cmd_func() and cmd_func_p().
4676 * cli/cli-decode.c (cmd_func_p): New function.
4677 (cmd_func): New function.
4679 * command.h: Add cmd_func() and cmd_func_p().
4681 2002-07-03 Grace Sainsbury <graces@redhat.com>
4683 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
4684 (REGISTER_SIZE): Remove.
4685 (MAX_REGISTER_RAW_SIZE): Remove.
4686 (REGISTER_VIRTUAL_TYPE): Remove.
4687 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
4688 (REGISTER_NAME): Remove.
4689 (USE_GENERIC_DUMMY_FRAMES): Remove.
4690 (CALL_DUMMY): Remove.
4691 (CALL_DUMMY_START_OFFSET): Remove.
4692 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
4693 (CALL_DUMMY_LOCATION): Remove.
4694 (FIX_CALL_DUMMY): Remove.
4695 (CALL_DUMMY_ADDRESS): Remove.
4696 (SIZEOF_CALL_DUMMY_WORDS): Remove.
4697 (SAVE_DUMMY_FRAME_TOS): Remove.
4698 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
4699 (mcore_register_virtual_type): New function.
4700 (mcore_register_byte): New function.
4701 (mcore_register_size): New function.
4702 (mcore_register_name): New function.
4703 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
4704 macros removed from tm-mcore.h.
4705 (mcore_dump_tdep): Add.
4706 (_initialize_mcore_tdep): Add gdbarch_register call.
4708 2002-07-03 Mark Kettenis <kettenis@gnu.org>
4710 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
4711 frameless_look_for_prologue, such that we actually call this
4714 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4716 * frame.h (frame_address_in_block): New function.
4718 * blockframe.c (frame_address_in_block): New function extracted
4719 from get_frame_block().
4720 (get_frame_block): Use frame_address_in_block().
4721 (block_innermost_frame): Use frame_address_in_block() to match
4722 the frame pc address against the block boundaries rather than
4723 the frame pc directly. This prevents a failure when a frame pc
4724 is actually a return-address pointing immediately after the end
4727 2002-07-02 Grace Sainsbury <graces@redhat.com>
4729 * MAINTAINERS: Add self under write after approval.
4731 2002-07-02 Grace Sainsbury <graces@redhat.com>
4733 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
4734 used in architecture vector. The default is
4735 m68k_local_breakpoint_from_pc.
4736 (m68k_local_breakpoint_from_pc): Add.
4737 (enum): Add register numbers from tm-m68k.h.
4738 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
4740 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
4741 GDB_MULTI_ARCH_PARTIAL.
4742 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
4743 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
4745 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
4746 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
4747 to enum in m68k-tdep.c
4749 2002-07-02 Joel Brobecker <brobecker@gnat.com>
4751 * solib-osf.c (open_map): Compute the list of shared libraries
4752 loaded by the inferior, rather than the list of libraries loaded
4753 by GDB itself. Otherwise, GDB ends up reading the symbols from
4754 the wrong shared libraries...
4756 2002-07-02 Mark Kettenis <kettenis@gnu.org>
4758 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
4759 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
4761 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
4763 (FRAMELESS_SIGNAL): Remove function.
4764 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
4765 i386_linux_saved_pc_after_call): Removed.
4766 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
4767 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
4768 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
4770 * i386-tdep.c (i386_frameless_signal_p): New function.
4771 (i386_frame_chain): Deal with frameless signals.
4772 (i386_sigtramp_saved_sp): New function.
4773 (i386_frame_saved_pc): Deal with frameless signals.
4774 (i386_saved_pc_after_call): Make sure the correct value is
4775 returned just after entry into a sigtramp.
4776 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
4777 i386fbsd4_sc_sp_offset): New variables.
4778 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
4779 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
4780 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
4781 similiar to what we already did for sc_pc_offset.
4782 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
4785 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
4787 2002-07-02 Michal Ludvig <mludvig@suse.cz>
4789 * config/i386/tm-x86-64linux.h: New.
4790 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
4792 * config/i386/nm-x86-64.h: Rename to ...
4793 * config/i386/nm-x86-64linux.h: ... this one.
4794 * config/i386/x86-64linux.mh: Reflect the above change.
4796 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4798 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
4799 with sigcontext_addr. Add sc_sp_offset.
4800 (i386bsd_sigtramp_saved_pc): Remove prototype.
4801 (i386bsd_sicontext_addr): Add prototype.
4802 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
4803 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
4804 (i386_svr4_sigtramp_saved_pc): Removed.
4805 (i386_svr4_sigcontext_addr): New function.
4806 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4807 Initialize tdep->sigcontext_addr instead. Initialize
4808 tdep->sc_pc_offset and tdep->sc_sp_offset.
4809 (i386_gdbarch_init): Likewise.
4810 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
4812 (i386bsd_sigtramp_saved_pc): Remove function.
4813 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
4814 Initialize tdep->sigcontext_addr instead. Initialize
4816 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
4817 of tdep->sigtramp_saved_pc.
4818 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
4819 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
4822 * i386-tdep.c (i386_frameless_function_invocation,
4823 i386_frame_num_args, i386_frame_init_saved_regs,
4824 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
4825 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
4826 i386_extract_return_value, i386_store_return_value,
4827 i386_extract_struct_value_address, i386_register_virtual_type,
4828 i386_register_convertible, i386_register_convert_to_virtual,
4829 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
4830 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
4833 2002-07-01 Mark Kettenis <kettenis@gnu.org>
4835 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
4837 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
4838 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
4839 this macro. Include "value.h".
4841 2002-06-30 Aidan Skinner <aidan@velvet.net>
4843 * ada-exp.tab.c: remove as it's a generated file
4844 * ada-lex.c: remove as it's a generated file
4846 2002-06-30 Mark Kettenis <kettenis@gnu.org>
4848 * config/i386/tm-i386.h (struct frame_info, struct
4849 frame_saved_regs, struct value, struct type): Remove forward
4852 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
4853 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
4854 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
4855 (FILL_FPXREGSET): Define.
4857 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
4859 * configure.tgt (i[3456]86-*-openbsd*): Fold into
4860 i[3456]86-*-netbsd* case.
4861 * config/i386/tm-obsd.h: Removed.
4862 * config/i386/obsd.mt: Removed.
4863 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
4865 (MH_CFLAGS): Add -DYYDEBUG=0.
4867 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
4868 i386nbsd_sc_pc_offset on OpenBSD too.
4870 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
4871 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
4872 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
4874 * i386bsd-tdep.c: Include "arch-utils.h".
4875 (i386bsd_aout_in_solib_call_trampoline): New function.
4876 (i386bsd_init_abi): Set in_solib_call_trampoline to
4877 i386bsd_aout_in_solib_call_trampoline.
4878 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
4879 in_solib_call_trampoline to generic_in_solib_call_trampoline.
4881 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4883 * macrotab.h: Do not include "obstack.h" or "bcache.h".
4884 (struct obstack, struct bcache): Add opaque declarations.
4885 * Makefile.in (macrotab_h): Update
4887 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4889 * blockframe.c (generic_find_dummy_frame): Change return type to
4890 ``struct regcache''.
4891 (struct dummy_frame): Replace field ``registers'' with regcache, a
4892 struct regcache object.
4893 (generic_find_dummy_frame): Update.
4894 (generic_push_dummy_frame): Update. Use regcache_xfree,
4895 regcache_xmalloc and regcache_cpy.
4896 (generic_pop_dummy_frame): Update. Use regcache_cpy and
4898 (deprecated_generic_find_dummy_frame): Update.
4899 (generic_read_register_dummy): Update. Use
4900 regcache_read_as_address.
4901 (generic_call_dummy_register_unwind): Update. Use regcache_read.
4902 (generic_get_saved_register): Update. Use regcache_read.
4904 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4906 * Makefile.in (objfiles_h): Add $(bcache_h).
4907 * objfiles.h: Include "bcache.h".
4909 * Makefile.in (symtab_h): Remove $(bcache_h).
4910 * symtab.h: Do not include "bcache.h".
4912 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4914 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
4915 generic_func_frame_chain_valid.
4917 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4919 * config/i386/nm-fbsd.h: Include <sys/param.h>.
4920 * config/i386/tm-fbsd.h: Likewise.
4922 2002-06-28 Andrew Cagney <ac131313@redhat.com>
4924 * rs6000-tdep.c (rs6000_gdbarch_init): Use
4925 generic_unwind_get_saved_register.
4927 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4929 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
4930 * regcache.c (supply_register): Add missing argument to
4931 register_buffer call.
4933 2002-06-27 Andrew Cagney <ac131313@redhat.com>
4935 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
4936 Solaris /bin/grep does not not like it. From Peter Schauer.
4938 2002-06-26 Tom Tromey <tromey@redhat.com>
4940 * command.h (add_setshow_cmd): Declare.
4941 (add_setshow_cmd_full): Declare.
4942 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
4943 returns void. Use add_setshow_cmd_full.
4944 (add_setshow_cmd_full): New function.
4945 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
4946 (add_setshow_boolean_cmd): Likewise.
4948 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4950 * config/vax/tm-vax.h: Protect from multiple inclusion.
4951 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
4952 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
4953 * config/vax/tm-vaxbsd.h: ...here. New file.
4954 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
4956 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4958 * config/vax/tm-vax.h (BREAKPOINT): Remove.
4959 (BELIEVE_PCC_PROMOTION): Remove.
4960 (AP_REGNUM): Move to...
4961 * config/vax/nm-vax.h: ...here.
4962 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
4963 (vax_breakpoint_from_pc): New function.
4964 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
4965 and gdbarch_believe_pcc_promotion.
4967 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
4969 * Makefile.in (vax_tdep_h): Define.
4970 (vax-tdep.o): Use $(vax_tdep_h).
4971 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
4972 (vax_dump_tdep): New function.
4973 (_initialize_vax_tdep): Register vax_dump_tdep.
4974 * vax-tdep.h: Include osabi.h.
4975 (struct gdbarch_tdep): New.
4977 2002-06-26 Andrew Cagney <cagney@redhat.com>
4979 * frame.h (deprecated_generic_find_dummy_frame): Rename
4980 generic_find_dummy_frame.
4981 * blockframe.c (generic_find_dummy_frame): Make static.
4982 (deprecated_generic_find_dummy_frame): New function.
4983 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
4984 generic_find_dummy_frame with deprecated_find_dummy_frame.
4985 (sh64_nofp_frame_init_saved_regs): Ditto.
4986 (sh_fp_frame_init_saved_regs): Ditto.
4987 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
4988 (s390_frame_chain): Ditto.
4989 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
4991 2002-06-26 Grace Sainsbury <graces@redhat.com>
4993 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
4994 gdbarch vector are at the top.
4996 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
4997 (FRAME_ARGS_ADDRESS): Remove.
4998 (FRAME_LOCALS_ADDRESS): Remove.
4999 (FRAME_NUM_ARGS): Remove.
5000 (FRAME_ARGS_SKIP): Remove.
5001 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5002 (m68k_gdbarch_init): Add gdbarch initializations for macros
5003 undefined in tm-m68k.h
5005 2002-06-26 Grace Sainsbury <graces@redhat.com>
5007 * monitor.h: Add the function regname to monitor_ops
5008 structure. This way NUM_REGS does not have to be a constant.
5009 * monitor.c (monitor_fetch_register): Added support for regname
5010 function. The function is called if the array regnames is NULL.
5011 (monitor_store_register): Same.
5012 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5014 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5015 cpu32bug_cmds.regname to point to new function.
5016 * abug-rom.c (abug_regname): Same as above.
5017 (init_abug_cmds): Same.
5018 * dbug-rom.c (dbug_regname): Same as above.
5019 (init_dbug_cmds): Same.
5020 * remote-est.c (est_regname): Same.
5021 (init_est_cmds): Same.
5022 * rom68k-rom.c (rom68k_regname): Same.
5023 (init_rom68k_cmds): Same.
5025 2002-06-25 Tom Tromey <tromey@redhat.com>
5027 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5029 2002-06-25 Andrew Cagney <cagney@redhat.com>
5031 * infrun.c (stop_registers): Change variable's type to ``struct
5033 (xmalloc_inferior_status): Delete function.
5034 (free_inferior_status): Delete function.
5035 (normal_stop): Use regcache_cpy.
5036 (struct inferior_status): Change type of fields ``stop_registers''
5037 and ``registers'' to ``struct regcache''.
5038 (write_inferior_status_register): Use regcache_write.
5039 (save_inferior_status): Instead of calling
5040 xmalloc_inferior_status, allocate the inf_status buffer directly.
5041 Use regcache_dup_no_passthrough and regcache_dup to save the
5043 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5044 Replace the stop_registers regcache instead of overriding it. Use
5045 regcache_xfree. Instead of calling free_inferior_status, xfree
5046 the buffer directly.
5047 (discard_inferior_status): Use regcache_xfree. Instead of calling
5048 free_inferior_status, xfree the buffer directly.
5049 (build_infrun): Use regcache_xmalloc.
5050 (_initialize_infrun): Delete redundant call to build_infrun.
5052 * Makefile.in (infcmd.o): Add $(regcache_h).
5054 * infcmd.c: Include "regcache.h".
5055 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5056 obtain the address of `stop_registers' register buffer.
5057 (print_return_value): Ditto.
5059 * inferior.h (struct regcache): Add opaque declaration.
5060 (stop_registers): Change variable's declared type to ``struct
5063 2002-06-24 Tom Tromey <tromey@redhat.com>
5065 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5066 * target.c (initialize_targets): Fixed typo in
5067 trust-readonly-sections `show' documentation.
5069 * main.c: Marked all strings with _().
5071 2002-06-24 Don Howard <dhoward@redhat.com>
5073 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5074 that means max CORE_ADDR+1.
5075 (lookup_mem_region): Ditto.
5076 (mem_info_command): Ditto.
5078 2002-06-24 Grace Sainsbury <graces@redhat.com>
5080 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5081 (REGISTER_BYTES_OK): Remove.
5082 (REGISTER_BYTES): Remove.
5083 (STORE_STRUCT_RETURN): Remove.
5084 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5085 (STORE_RETURN_VALUE): Remove.
5086 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5087 (FRAME_CHAIN): Remove.
5088 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5089 (FRAME_SAVED_PC): Remove.
5090 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5091 (m68k_store_struct_return): Add.
5092 (m68k_deprecated_extract_return_value): Add.
5093 (m68k_deprecated_extract_struct_value_address): Add.
5094 (m68k_store_return_value): Add.
5095 (m68k_frame_chain): Add.
5096 (m68k_frameless_function_invocation): Add.
5097 (m68k_frame_saved_pc): Add.
5098 (m68k_gdbarch_init): added set_gdbarch calls for new
5099 functions and deleted macros.
5101 2002-06-23 Tom Tromey <tromey@redhat.com>
5103 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5104 (ALLDEPFILES): Likewise.
5105 (udiheaders): Removed.
5106 (udip2soc.o): Likewise.
5107 (udi2go32.o): Likewise.
5109 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5111 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5113 * infrun.c (_initialize_infrun): Delete unnecessary call to
5116 * regcache.h: Update comments describing the regcache_cpy family
5118 (regcache_save, regcache_restore): Delete declaration.
5119 (regcache_save_no_passthrough): Delete declaration.
5120 (regcache_restore_no_passthrough): Delete declaration.
5121 * regcache.c (regcache_save): Delete function.
5122 (regcache_save_no_passthrough): Delete function.
5123 (regcache_restore): Delete function.
5124 (regcache_restore_no_passthrough): Delete function.
5126 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5128 * config/m68k/tm-m68k.h: Fix typo.
5129 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5130 (m68k_frame_init_saved_regs): Declare.
5132 2002-06-21 Jim Blandy <jimb@redhat.com>
5134 Remove some vestiges of Harris 88k support.
5135 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5136 register numbering quirk.
5137 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5138 odd symbols occurring in Harris 88k ELF targets.
5140 2002-06-21 Tom Tromey <tromey@redhat.com>
5142 * gdb_locale.h: New file.
5143 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5144 (defs_h): Added gdb_locale.h.
5145 * configure, config.in: Rebuilt.
5146 * configure.in (PACKAGE): Define.
5147 * defs.h: Include gdb_locale.h.
5148 * main.c (captured_main): Call setlocale, bindtextdomain,
5151 2002-06-21 Dave Brolley <brolley@redhat.com>
5153 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5154 * config/frv/frv.mt: New file.
5155 * config/frv/tm-frv.h: New file.
5156 * configure.tgt: Support frv-*-*.
5157 * Makefile.in (frv-tdep.o): New target.
5158 * frv-tdep.c: New file.
5159 * NEWS: Mention frv.
5161 2002-06-21 Dave Brolley <brolley@redhat.com>
5163 * MAINTAINERS: Add self to "Write After Approval" list.
5165 2002-06-21 Grace Sainsbury <graces@redhat.com>
5167 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5168 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5169 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5170 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5171 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5173 * m68k-tdep.c: Include arch-utils.h
5174 (m68k_register_raw_size): Add.
5175 (m68k_register_virtual_size): Add.
5176 (m68k_register_virtual_type): Add.
5177 (m68k_register_name): Add.
5178 (m68k_stack_align): Add.
5179 (m68k_register_byte): Add.
5180 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5183 2002-06-21 Grace Sainsbury <graces@redhat.com>
5185 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5186 m68k_find_saved_regs.
5187 (m68k_pop_frame): Removed saved_regs structure, and replaced
5188 references to it with frame->saved_regs.
5189 (m68k_gdbarch_init): Added function calls to initialize the
5191 (m68k_fix_call_dummy): Add.
5192 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5193 (CALL_DUMMY): Remove.
5194 (CALL_DUMMY_LENGTH): Remove.
5195 (CALL_DUMMY_START_OFFSET): Remove.
5196 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5197 (FIX_CALL_DUMMY): Remove.
5198 (PUSH_DUMMY_FRAME): Remove.
5199 (POP_FRAME): Remove.
5201 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5203 * parse.c (parse_fprintf): New function used to avoid calls to
5204 fprintf in bison parser generated debug code.
5205 * parser-defs.h: Declaration of new parse_fprintf function.
5206 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5207 Set YYDEBUG to 1 by default.
5208 Set YYFPRINTF as parse_fprintf.
5210 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5212 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5214 (pointer_encoding, enum ptr_encoding): New.
5215 (execute_cfa_program): Take care about pointer encoding.
5216 (dwarf2_build_frame_info): Only call parse_frame_info for
5217 .debug_frame and .eh_frame.
5218 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5219 fixed augmentation handling, added relative addressing,
5220 ignore duplicate FDEs. Added comments.
5221 * dwarf2cfi.c: Reindented.
5223 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5225 * event-top.c (command_handler): Don't use space_at_cmd_start
5226 unless there is sbrk() on the host. Assign time and space data
5227 to union fields of the appropriate length.
5229 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5231 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5232 x86_64_register_name. Return type changed to 'const char *'.
5233 (x86_64_register_name2nr): Rename to x86_64_register_number.
5234 (x86_64_gdbarch_init): Update to reflect the change.
5235 * x86-64-tdep.h: Ditto.
5236 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5237 (supply_fpregset): Ditto.
5239 2002-06-19 Andrew Cagney <cagney@redhat.com>
5241 * regcache.h: Update copyright.
5242 (struct regcache, struct gdbarch): Add opaque declarations.
5243 (current_regcache): Declare global variable.
5244 (regcache_read, regcache_write): Add gdbarch parameter.
5245 (regcache_save, regcache_save_no_passthrough)
5246 (regcache_restore, regcache_restore_no_passthrough)
5247 (regcache_dup, regcache_dup_no_passthrough)
5248 (regcache_cpy, regcache_cpy_no_passthrough)
5249 (deprecated_grub_regcache_for_registers)
5250 (deprecated_grub_regcache_for_register_valid)
5251 (regcache_valid_p): Add function declarations.
5253 * regcache.c: Update copyright.
5254 (regcache_descr_handle): New global variable.
5255 (struct regcache_descr): Define.
5256 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5257 (regcache_descr, xfree_regcache_descr): New functions.
5258 (struct regcache): Define.
5259 (regcache_xmalloc, regcache_xfree): New functions.
5260 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5261 (regcache_dup, regcache_dup_no_passthrough): New functions.
5262 (regcache_valid_p, regcache_read_as_address): New functions.
5263 (deprecated_grub_regcache_for_registers): New function.
5264 (deprecated_grub_regcache_for_register_valid): New function.
5265 (current_regcache): New global variable.
5266 (register_buffer): Add regcache parameter. Update calls.
5267 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5268 (read_register_gen, write_register_gen): Update register_buffer
5269 call. Test for legacy_p instead of gdbarch_register_read_p or
5270 gdbarch_register_write_p.
5271 (regcache_collect): Update register_buffer call.
5272 (build_regcache): Rewrite. Use deprecated grub functions.
5273 (regcache_save, regcache_save_no_passthrough): New functions.
5274 (regcache_restore, regcache_restore_no_passthrough): New
5276 (_initialize_regcache): Create the regcache_data_handle. Swap
5277 current_regcache global variable.
5279 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
5280 parameter to regcache_read and regcache_write calls.
5281 (sh4_register_read): Ditto.
5282 (sh64_pseudo_register_read): Ditto.
5283 (sh64_register_read): Ditto.
5284 (sh_pseudo_register_write): Ditto.
5285 (sh4_register_write): Ditto.
5286 (sh64_pseudo_register_write): Ditto.
5287 (sh64_register_write): Ditto.
5289 * defs.h (XCALLOC): Define.
5291 2002-06-19 Grace Sainsbury <graces@redhat.com>
5293 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
5294 * m68k-tdep.c (m68k_gdbarch_init): Added.
5295 (m68k_dump_tdep): Added.
5297 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5299 * ada-lang.c (fill_in_ada_prototype): Update comment.
5301 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
5303 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
5305 (mips_abi_string, mips_abi_strings): New.
5306 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
5307 (mips_gdbarch_init): Set tdep->found_abi. Don't set
5308 tdep->mips_abi_string. Honor mips_abi_string. Default to
5309 O32 if no ABI is found.
5310 (mips_dump_tdep): Use mips_abi_strings.
5311 (mips_abi_update): New function.
5312 (_initialize_mips_tdep): Initialize mips_abi_string. Add
5313 ``set mips abi'' and ``show mips abi''. Check the size of
5316 2002-06-19 Andrew Cagney <cagney@redhat.com>
5318 * i386-linux-tdep.c (i386_linux_register_name): Make return type
5321 2002-06-18 Joel Brobecker <brobecker@gnat.com>
5323 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
5324 current frame using only the first stack size adjustment. All
5325 subsequent size adjustments are not considered to be part of
5326 the "static" part of the current frame.
5327 Compute the address of the saved registers relative to the
5328 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
5329 in use in this frame.
5331 2002-06-18 Don Howard <dhoward@redhat.com>
5333 * valops.c (value_ind): Use value_at_lazy() when dereferencing
5334 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
5335 suggesting this solution.
5337 2002-06-18 Andrew Cagney <ac131313@redhat.com>
5339 * config/romp/xm-rtbsd.h: Delete file.
5340 * config/romp/rtbsd.mh: Delete file.
5342 2002-06-18 Keith Seitz <keiths@redhat.com>
5344 * breakpoint.c (condition_command): Post breakpoint_modify
5345 when a condition is added to an existing breakpoint.
5346 (commands_command): Likewise for commands.
5347 (set_ignore_count): Likewise for ignore counts.
5348 If no tty, do not simply return, still need to send event
5350 (ignore_command): Only print a newline if the command came
5352 Don't call breakpoints_changed, since this is now properly
5353 handled by set_ignore_count.
5355 2002-06-18 Andrew Cagney <cagney@redhat.com>
5357 * MAINTAINERS: Note that cris-elf target can be compiled with
5359 * cris-tdep.c (cris_register_name): Make return type constant.
5360 (cris_breakpoint_from_pc): Ditto.
5362 2002-06-18 Michal Ludvig <mludvig@suse.cz>
5364 * frame.h (struct frame_info): Change type of context to
5367 2002-06-17 Andrew Cagney <cagney@redhat.com>
5369 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
5371 * gdbarch.h, gdbarch.c: Regenerate.
5372 * config/mips/tm-mips.h (mips_register_name): Update.
5373 * i386-tdep.h (i386_register_name): Update.
5374 * mips-tdep.c (mips_register_name): Update
5375 * alpha-tdep.c (alpha_register_name): Update.
5376 * arch-utils.c (legacy_register_name): Update.
5377 * arch-utils.h (legacy_register_name): Update.
5378 * avr-tdep.c (avr_register_name): Update.
5379 * ia64-tdep.c (ia64_register_name): Update.
5380 * i386-tdep.c (i386_register_name): Update.
5381 * sparc-tdep.c (sparc32_register_name): Update.
5382 (sparc64_register_name): Update.
5383 (sparclite_register_name): Update.
5384 (sparclet_register_name): Update.
5385 * sh-tdep.c (sh_generic_register_name): Update.
5386 (sh_sh_register_name): Update.
5387 (sh_sh3_register_name): Update.
5388 (sh_sh3e_register_name): Update.
5389 (sh_sh_dsp_register_name): Update.
5390 (sh_sh3_dsp_register_name): Update.
5391 (sh_sh4_register_name): Update.
5392 (sh_sh64_register_name): Update.
5393 * s390-tdep.c (s390_register_name): Update.
5394 * rs6000-tdep.c (rs6000_register_name): Update.
5395 * ns32k-tdep.c (ns32k_register_name_32082): Update.
5396 (ns32k_register_name_32382): Update.
5397 * d10v-tdep.c (d10v_ts2_register_name): Update.
5398 (d10v_ts3_register_name): Update.
5399 * xstormy16-tdep.c (xstormy16_register_name): Update.
5400 * vax-tdep.c (vax_register_name): Update.
5401 * v850-tdep.c (v850_register_name): Update.
5402 * m68hc11-tdep.c (m68hc11_register_name): Update.
5403 * mn10300-tdep.c (mn10300_generic_register_name): Update.
5404 (am33_register_name): Update.
5406 2002-06-17 Grace Sainsbury <graces@redhat.com>
5408 * m68k-tdep.c: Reindented.
5410 2002-06-17 Andrew Cagney <ac131313@redhat.com>
5412 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
5413 list of predefined types.
5415 2002-06-16 Mark Kettenis <kettenis@gnu.org>
5417 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
5418 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
5419 REGISTER_CONVERT_TO_RAW): Remove defines.
5420 (i386_register_virtual_type, i386_register_convertible,
5421 i386_register_convert_to_virtual, i386_register_convert_to_raw):
5423 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5424 macros mentioned above.
5426 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
5427 (i386lynx_saved_pc_after_call): Remove prototype.
5428 * i386ly-tdep.c: Include "i386-tdep.h".
5429 (i386lynx_saved_pc_after_call): Make static. Use
5430 read_memory_nobpt instead of read_memory. Use
5431 read_memory_unsigned_integer instead of read_memory_integer.
5432 (i386lynx_init_abi): New function.
5433 (i386lynx_coff_osabi_sniffer): New function.
5434 (_initialize_i386bsd_tdep): New function.
5436 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
5437 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
5438 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
5439 (i386_fix_call_dummy): Remove prototype.
5440 * i386-tdep.c (i386_call_dummy_words): New variable.
5441 (i386_gdbarch_init): Adjust for removal of the
5442 macros mentioned above.
5444 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5446 * command.h (add_setshow_auto_boolean_cmd): Replace
5447 add_set_auto_boolean_cmd.
5448 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
5449 add_set_auto_boolean_cmd.
5450 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
5451 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
5452 mask-address'' command.
5453 (show_mask_address): Add cmd parameter.
5454 * remote.c (add_packet_config_cmd): Update. Change type of
5455 set_func and show_func to cmd_sfunc_ftype.
5456 (_initialize_remote): Update `set remote Z-packet'
5457 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
5458 (show_remote_protocol_e_packet_cmd): Ditto.
5459 (show_remote_protocol_E_packet_cmd): Ditto.
5460 (show_remote_protocol_P_packet_cmd): Ditto.
5461 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
5462 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
5463 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
5464 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
5465 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
5466 (show_remote_protocol_Z_packet_cmd): Ditto.
5467 (show_remote_protocol_binary_download_cmd): Ditto.
5468 (show_remote_cmd): Pass NULL to all of above.
5470 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5472 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
5473 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
5474 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
5475 POP_FRAME): Remove defines.
5476 (i386_push_arguments, i386_store_struct_return,
5477 i386_extract_return_value, i386_store_return_value,
5478 i386_extract_struct_value_address, i386_push_dummy_frame,
5479 i386_pop_frame): Renove prototypes.
5480 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5481 macros mentioned above.
5483 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5485 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
5486 add_set_boolean_cmd.
5487 (add_setshow_cmd): New function.
5488 * command.h (add_setshow_boolean_cmd): Replace
5489 add_set_boolean_cmd.
5490 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
5491 and ``set rdiromatzero''.
5492 * maint.c (_initialize_maint_cmds): Update commented out code.
5493 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
5494 * target.c (initialize_targets): Update `set
5495 trust-readonly-sections'.
5496 * remote.c (_initialize_remote): Update `set remotebreak'.
5498 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5500 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
5501 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
5502 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
5503 fit into multi-arch framework.
5504 (i386_breakpoint_from_pc): New function.
5505 (i386_gdbarch_init): Adjust for removal of the macros mentioned
5508 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
5509 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
5510 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
5511 (i386_frameless_function_invocation, i386_frame_num_args,
5512 i386_frame_init_saved_regs): Remove prototypes.
5513 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
5514 macros mentioned above.
5516 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5518 * cli/cli-decode.c (set_cmd_cfunc): Update.
5519 (set_cmd_sfunc): Update.
5520 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
5521 (set_cmd_sfunc, set_cmd_cfunc): Update.
5522 * cli/cli-decode.h: Update.
5524 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5526 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
5527 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
5529 2002-06-15 Andrew Cagney <ac131313@redhat.com>
5531 * defs.h (auto_boolean): Declare enum.
5532 * command.h (cmd_auto_boolean): Delete enum.
5533 * mips-tdep.c (mask_address_var): Update.
5534 (mips_mask_address_p): Update.
5535 (show_mask_address): Update.
5536 * remote.c (struct packet_config): Update.
5537 (update_packet_config): Update.
5538 (show_packet_config_cmd): Update.
5539 (packet_ok): Update.
5540 (add_packet_config_cmd): Update.
5541 (_initialize_remote):
5542 * command.h: Update.
5543 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
5544 (do_setshow_command): Update.
5545 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
5546 * cli/cli-decode.h: Update.
5548 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5550 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
5551 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
5552 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
5553 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
5554 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
5555 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
5557 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
5558 list of DJGPP COFF targets.
5560 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
5561 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
5562 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
5563 (FP0_REGNUM): Remove define.
5564 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
5565 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
5566 (i386_register_virtual_size): Remove protoype.
5567 * i386-tdep.c (i386_register_virtual_size): Removed.
5568 (i386_extract_return_value, i386_store_return_value): Use
5569 FP0_REGNUM instead of NUM_FREGS to determine whether the
5570 floating-point registers are available.
5571 (i386_gdbarch_init): Tweak FIXME about FPU registers.
5572 Adjust for removal of macros mentioned above.
5574 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5576 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
5578 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
5580 (supply_gregset, fill_gregset): Remove use of register keyword and
5581 remove declaration for regmap. Use I386_NUM_GREGS instead of
5582 NUM_REGS and NUM_FREGS.
5583 (FPREGSET_FSAVE_OFFSET): Remove.
5584 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
5585 NUM_FREGS to determine whether the floating-point registers are
5588 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
5589 gnu_store_registers): Replace usage of NUM_GREGS with
5592 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
5593 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
5594 usage of NUM_GREGS with I386_NUM_GREGS.
5596 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
5598 * i386bsd-nat.c: Include "i386-tdep.h".
5599 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
5602 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
5603 and associated comment. They no longer make any sense, since we
5604 don't use this file anymore on Linux.
5606 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
5607 * i386-tdep.c (i386_register_offset, i386_register_size): Use
5608 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
5609 elements in these arrays.
5610 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
5613 2002-06-15 Mark Kettenis <kettenis@gnu.org>
5615 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
5616 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
5618 2002-06-14 Andrew Cagney <cagney@redhat.com>
5620 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
5621 EXTRACT_RETURN_VALUE.
5622 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
5623 EXTRACT_STRUCT_VALUE_ADDRESS.
5624 * gdbarch.h, gdbarch.c: Regenerate.
5626 * values.c (value_being_returned): Handle
5627 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5628 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
5630 * arm-linux-tdep.c (arm_linux_init_abi): Update.
5631 * arm-tdep.c (arm_gdbarch_init): Update.
5632 * avr-tdep.c (avr_gdbarch_init): Update.
5633 * cris-tdep.c (cris_gdbarch_init): Update.
5634 * d10v-tdep.c (d10v_gdbarch_init): Update.
5635 * ia64-tdep.c (ia64_gdbarch_init): Update.
5636 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5637 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5638 * s390-tdep.c (s390_gdbarch_init): Update.
5639 * sh-tdep.c (sh_gdbarch_init): Update.
5640 * s390-tdep.c (s390_gdbarch_init): Update.
5641 * sparc-tdep.c (sparc_gdbarch_init): Update.
5642 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5643 * v850-tdep.c (v850_gdbarch_init): Update.
5644 * vax-tdep.c (vax_gdbarch_init): Update.
5645 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5646 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5648 * config/arc/tm-arc.h: Update.
5649 * config/d30v/tm-d30v.h: Update.
5650 * config/fr30/tm-fr30.h: Update.
5651 * config/h8300/tm-h8300.h: Update.
5652 * config/h8500/tm-h8500.h: Update.
5653 * config/i386/tm-i386.h: Update.
5654 * config/i386/tm-ptx.h: Update.
5655 * config/i386/tm-symmetry.h: Update.
5656 * config/i960/tm-i960.h: Update.
5657 * config/m32r/tm-m32r.h: Update.
5658 * config/m68k/tm-delta68.h: Update.
5659 * config/m68k/tm-linux.h: Update.
5660 * config/m68k/tm-m68k.h: Update.
5661 * config/m88k/tm-m88k.h: Update.
5662 * config/mcore/tm-mcore.h: Update.
5663 * config/mips/tm-mips.h: Update.
5664 * config/mn10200/tm-mn10200.h: Update.
5665 * config/pa/tm-hppa.h: Update.
5666 * config/pa/tm-hppa64.h: Update.
5667 * config/sparc/tm-sp64.h: Update.
5668 * config/sparc/tm-sparc.h: Update.
5669 * config/sparc/tm-sparclet.h: Update.
5670 * config/z8k/tm-z8k.h: Update.
5672 2002-06-14 Andrew Cagney <cagney@redhat.com>
5674 * Makefile.in (i386_linux_tdep_h): Define.
5675 (i386_tdep_h, i387_tdep_h): Define.
5676 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
5677 $(i386_tdep_h) and $(i387_tdep_h).
5678 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5680 2002-06-14 Mark Kettenis <kettenis@gnu.org>
5682 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
5683 Already covered by the default.
5685 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
5686 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
5687 (i386_gdbarch_init): Initialize long_double_format and long_double
5690 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
5691 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
5693 * config/i386/i386sol2.mh: ... here.
5694 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
5695 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
5696 (SIGCONTEXT_PC_OFFSET): Remove define.
5697 (IN_SIGTRAMP): Remove define.
5698 * i386-sol2-tdep.c: New file.
5700 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
5701 * config/i386/tm-i386nw.h: Removed.
5703 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
5704 USE_STRUCT_CONVENTION): Remove defines.
5705 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5706 (get_longjmp_target): Remove prototype.
5707 (IN_SIGTRAMP): Remove define.
5708 (i386bsd_in_sigtramp): Remove prototype.
5709 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5710 function. Update comment accordingly
5711 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5712 (FRAME_SAVED_PC): Remove define.
5713 (i386bsd_frame_saved_pc): Remove prototype.
5714 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
5715 GET_LONGJMP_TARGET): Remove defines.
5716 (get_longjmp_target): Remove prototype.
5717 (IN_SIGTRAMP): Remove define.
5718 (i386bsd_in_sigtramp): Remove prototype.
5719 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
5720 function. Update comment accordingly
5721 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
5722 (FRAME_SAVED_PC): Remove define.
5723 (i386bsd_frame_saved_pc): Remove prototype.
5724 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
5726 (USE_STRUCT_CONVENTION): Remove prototype.
5727 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
5729 (_initialize_i386bsd_nat): Revise logic to determine some
5730 constants at compile time when compiling a native GDB. Warn if
5731 things don't match up with what we expect.
5732 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
5734 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
5735 to use date stored in `struct gdbarch_tdep'.
5736 (i386bsd_sigcontext_offset): Remove varaible.
5737 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
5738 stored in `struct gdbarch_tdep'.
5739 (i386bsd_frame_saved_pc): Make static.
5740 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
5741 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
5742 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5743 i386fbsd4_sc_pc_offset): New variables.
5744 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
5745 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
5747 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
5749 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
5750 Modify the value of i386fbsd_sigtramp_start and
5751 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
5752 i386fbsd_sigtramp_end.
5753 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
5756 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
5757 define to i386-linux-tdep.h.
5758 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
5759 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
5761 (i386_linux_register_name, i386_linux_register_byte,
5762 i386_linux_register_raw_size): Remove prototypes.
5763 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
5764 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
5765 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
5766 TARGET_WRITE_PC): Remove defines.
5767 (i386_linux_in_sigtramp, i386_linux_frame_chain,
5768 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
5769 i386_linux_write_pc): Remove prototypes.
5770 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5771 (get_longjmp_target): Remove prototype.
5772 * i386-linux-tdep.h: New file.
5773 * i386-linux-nat.c: Include "i386-linux-tdep.h".
5774 * i386-linux-tdep.c: Include "i386-tdep.h" and
5775 "i386-linux-tdep.h".
5776 (i386_linux_register_name, i386_linux_register_byte,
5777 i386_linux_register_raw_size, i386_linux_in_sigtramp,
5778 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
5780 (i386_linux_init_abi): New function.
5781 (_initialize_i386_linux_tdep): New function.
5783 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
5784 (i386_saved_pc_after_call): Remove prototype.
5785 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
5786 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
5787 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
5788 (i386_register_name, i386_stab_reg_to_regnum,
5789 i386_dwarf_reg_to_regnum): Remove prototypes.
5790 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
5791 SIZEOF_SSE_REGS): Remove defines.
5792 (REGISTER_BYTES): Remove define.
5793 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
5794 (i386_register_byte, i386_register_raw_size): Remove prototypes.
5795 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
5796 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
5797 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
5798 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
5799 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
5800 (get_longjmp_target): Remove prototype.
5801 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
5802 (sigtramp_saved_pc): Remove define.
5803 (i386v4_sigtramp_saved_pc): Remove prototype.
5804 * config/i386/tm-go32.h (FRAME_CHAIN,
5805 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
5806 (i386go32_frame_saved_pc): Remove prototype.
5807 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
5808 (get_longjmp_target): Remove prototype.
5809 * i386-tdep.h: Include "osabi.h".
5810 (enum i386_abi): Removed.
5811 (enum struct_return): New enum.
5812 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
5813 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
5814 sc_pc_offset members.
5815 (i386_gdbarch_register_os_abi): Remove prototype.
5816 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
5817 I386_SSE_NUM_REGS): New defines.
5818 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
5819 I386_SSE_SIZEOF_REGS): New defines.
5820 (i386_register_name, i386_register_byte, i386_register_raw_size):
5822 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
5823 (i386bsd_sigtramp_saved_pc): New prototype.
5824 * i386-tdep.c: Don't include "elf-bfd.h".
5825 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
5826 i386_frame_chain, i386_saved_pc_after_call): Make static.
5827 (i386_frame_saved_pc): Rewrite to call architecture dependent
5828 function to deal with signal handlers. Make static.
5829 (i386go32_frame_saved_pc): Removed.
5830 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
5832 (i386_get_longjmp_target): New function.
5833 (default_struct_convention, pcc_struct_convention,
5834 reg_struct_convention, valid_conventions, struct_convention): New
5836 (i386_use_struct_convention): New function.
5837 (i386v4_sigtramp_saved_pc): Renamed to
5838 i386_svr4_sigtramp_saved_pc. Made static. Moved.
5839 (i386_pc_in_sigtramp): New function.
5840 (i386_abi_names): Removed.
5841 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
5842 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
5844 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
5845 i386_gdbarch_register_os_abi): Removed.
5846 (struct i386_abi_handler): Removed.
5847 (i386_abi_handler_list): Removed.
5848 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
5850 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
5851 i386_nw_init_abi): New functions.
5852 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
5853 Use set_gdbarch_xxx() calls instead of relying on macros for a
5855 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
5856 (_initialize_i386_tdep): Add new 'struct-convcention' command.
5857 Register the various architecture variants defined in this file.
5859 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5861 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
5862 (struct main_type): Remove arg_types member. Update comments for
5864 (TYPE_ARG_TYPES): Remove.
5865 (TYPE_FN_FIELD_ARGS): Update.
5866 (smash_to_method_type): Update prototype.
5868 * c-typeprint.c (cp_type_print_method_args): Take method type
5869 instead of argument list. Use new argument layout. Simplify.
5870 (c_type_print_args): Use new argument layout. Simplify.
5871 (c_type_print_base): Update call to cp_type_print_method_args.
5872 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
5873 argument; use die->type instead. Update call to
5874 smash_to_method_type.
5875 (read_structure_scope): Update call to dwarf2_add_member_fn.
5876 * gdbtypes.c (allocate_stub_method): Update comment.
5877 (smash_to_method_type): Take new NARGS and VARARGS arguments.
5878 Use new argument layout.
5879 (check_stub_method): Use new argument layout. Don't count
5880 void as an argument.
5881 (print_arg_types): Update comments. Use new argument layout.
5882 (recursive_dump_type): Don't print arg_types member.
5883 * hpread.c (hpread_read_struct_type): Use new argument layout.
5884 (fixup_class_method_type): Likewise.
5885 (hpread_type_lookup): Likewise.
5886 * stabsread.c (read_type): Update calls to read_args and
5887 smash_to_method_type.
5888 (read_args): Use new argument layout. Simplify.
5889 * valops.c (typecmp): Use new argument layout. Update parameters
5890 and comments. Simplify.
5891 (hand_function_call): Use new argument layout.
5892 (search_struct_method): Update call to typecmp.
5893 (find_overload_match): Use new argument layout.
5895 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5897 * NEWS: Mention multithreaded debug support for gdbserver.
5899 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5901 * MAINTAINERS: Mention NEWS.
5903 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
5905 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
5906 (struct mips_objfile_private, compare_pdr_entries): New.
5907 (non_heuristic_proc_desc): Read the ".pdr" section if it
5910 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5912 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
5913 (arm_debug): New static variable.
5914 (_initialize_arm_tdep): Add ``set debug arm'' command.
5916 2002-06-12 Andrew Cagney <ac131313@redhat.com>
5918 * Makefile.in (sim_arm_h): Define.
5919 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
5920 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
5921 (arm_register_sim_regno): New function, map an internal REGNUM
5922 onto a simulator register number.
5923 (arm_gdbarch_init): Set register_sim_regno.
5925 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
5927 * MAINTAINERS: Add self.
5929 2002-06-11 Jim Blandy <jimb@redhat.com>
5931 * source.c (source_info): Mention whether the symtab has
5932 information about preprocessor macros.
5934 Call the command `info macro', not `show macro'.
5935 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
5937 (_initialize_macrocmd): Register `info_macro_command' in
5938 `infolist', not `showlist'.
5940 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
5942 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
5943 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
5944 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
5945 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
5946 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
5948 (set_mipsfpu_single_command, set_mipsfpu_double_command)
5949 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
5950 (_initialize_mips_tdep): Remove dead code.
5951 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
5952 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5953 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
5954 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
5955 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
5956 MIPS_LAST_FP_ARG_REGNUM): Remove.
5958 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5960 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
5961 (unwind_tmp_obstack_free, parse_frame_info)
5962 (update_context, cfi_read_fp, cfi_write_fp)
5963 (cfi_frame_chain, cfi_init_extra_frame_info)
5964 (cfi_virtual_frame_pointer): Use the above function.
5965 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
5967 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
5969 * v850-tdep.c (v850_type_is_scalar): New function.
5970 (v850_use_struct_convention): Match current gcc implementation
5971 as close as possible.
5972 (v850_push_arguments): Fix stack_offset handling. Don't write
5973 struct_addr into register. This is done by v850_store_struct_return.
5974 (v850_extract_return_value): Care for structs.
5975 (v850_store_return_value): Ditto.
5976 (v850_store_struct_return): Actually write address.
5978 2002-06-11 Michal Ludvig <mludvig@suse.cz>
5980 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
5981 without debug information too.
5983 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5985 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
5986 Make multi-arch pure.
5987 * gdbarch.h, gdbarch.c: Re-generate.
5988 * arm-tdep.c (arm_print_float_info): Update.
5989 * arch-utils.h (default_print_float_info): Update.
5990 * arch-utils.c (default_print_float_info): Update.
5991 * infcmd.c (float_info): Update call.
5993 2002-06-10 Andrew Cagney <ac131313@redhat.com>
5995 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
5996 the front of the initialize list.
5998 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6000 * infrun.c (struct inferior_status): Replace fields
6001 selected_frame_address and selected_level with field
6003 (save_inferior_status): Update. Use get_frame_id.
6004 (struct restore_selected_frame_args): Delete.
6005 (restore_selected_frame): Update. Use frame_find_by_id.
6006 (restore_inferior_status): Update.
6008 * breakpoint.h (struct breakpoint): Change type of
6009 watchpoint_frame to frame_id.
6010 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6011 call to get_current_frame.
6012 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6014 (watchpoint_check): Use frame_find_by_id.
6016 * frame.h (record_selected_frame): Delete declaration.
6017 * stack.c (record_selected_frame): Delete function.
6019 * frame.h (struct frame_id): Define.
6020 (get_frame_id): Declare.
6021 (frame_find_by_id): Declare.
6022 * frame.c (frame_find_by_id): New function.
6023 (get_frame_id): New function.
6025 2002-06-10 Andrey Volkov <avolkov@transas.com>
6027 * ser-e7kpc.c: Fix duplicated define and call of
6028 _initialize_ser_e7000pc
6030 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6032 * signals/signals.c (target_signal_from_host): Fix #ifdef
6034 (do_target_signal_to_host): Likewise.
6036 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6038 * mips-tdep.c (mips_find_abi_section): New function.
6039 (mips_gdbarch_init): Call it.
6041 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6043 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6044 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6045 after Andrew's 2002-06-08 gdbarch change.
6047 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6049 * i386-linux-nat.c (suppy_gregset): Don't supply
6050 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6052 (fill_gregset): Don't fetch it under the same circumstances.
6054 2002-06-09 Andrew Cagney <cagney@redhat.com>
6056 * Makefile.in (callback_h): Define.
6057 (remote_sim_h): Update path to remote-sim.h.
6058 (remote-rdp.o): Add $(callback_h).
6059 (remote-sim.o): Use $(callback_h).
6060 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6061 * remote-rdp.c: Include "gdb/callback.h".
6063 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6065 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6066 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6068 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6070 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6071 * rdi-share/serpardr.c: Ditto.
6072 * rdi-share/unixcomm.c: Ditto.
6073 * rdi-share/serdrv.c: Ditto.
6074 * rdi-share/hostchan.h: Ditto.
6075 * rdi-share/hostchan.c: Ditto.
6076 * rdi-share/host.h: Ditto.
6077 * rdi-share/devsw.c: Ditto.
6079 * objfiles.h: Change type of obj_private to void pointer.
6080 * pa64solib.c: Update copyright. Don't include "assert.h", use
6081 strcmp instead of STREQ, use LONGEST, do not use PTR
6082 * somsolib.c: Ditto.
6084 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6085 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6086 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6088 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6090 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6091 (default_get_saved_register): Delete function.
6092 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6093 generic_unwind_get_saved_register.
6094 * gdbarch.h, gdbarch.c: Re-generate.
6096 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6098 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6099 generic_func_frame_chain_valid.
6100 * gdbarch.h, gdbarch.c: Re-generate.
6101 * blockframe.c (generic_func_frame_chain_valid): Only check
6102 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6103 passing FP to PC_IN_CALL_DUMMY.
6106 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6108 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6109 (register_gdbarch_data): Initialize init_p.
6110 (gdbarch_data): Initialize data pointer using the init function.
6111 (init_gdbarch_data): Delete function.
6112 (gdbarch_update_p): Update.
6113 (initialize_non_multiarch): Update.
6114 (struct gdbarch): Add field initialized_p.
6115 * gdbarch.h, gdbarch.c: Re-generate.
6117 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6119 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6120 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6121 better do the things actually here.
6122 * x86-64-tdep.c (x86_64_register_name2nr): New.
6123 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6124 (x86_64_gdbarch_init): Respect the above change.
6125 * x86-64-tdep.h (x86_64_register_name2nr)
6126 (x86_64_register_nr2name): Add prototypes.
6127 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6129 2002-06-06 Michael Snyder <msnyder@redhat.com>
6131 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6132 Delete extra braces and re-indent.
6133 (d10v_store_return_value): Char return values
6134 must be shifted over by one byte in R0.
6135 (d10v_extract_return_value): Delete extra braces, re-indent.
6137 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6139 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6140 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6141 (d10v_integer_to_address): Rewrite.
6142 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6143 the d10v specific functions which take care of converting to the
6146 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6148 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6149 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6151 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6153 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6155 * config/tm-linux.h: Ditto.
6156 * config/alpha/tm-alphalinux.h: Ditto.
6157 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6158 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6159 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6160 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6161 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6162 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6163 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6164 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6165 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6166 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6167 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6168 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6169 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6170 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6171 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6172 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6173 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6174 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6175 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6176 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6177 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6178 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6179 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6180 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6181 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6182 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6183 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6184 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6185 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6186 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6187 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6188 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6189 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6190 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6191 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6192 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6193 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6195 2002-05-04 Aidan Skinner <aidan@velvet.net>
6197 * ada-exp.tab.c: New file
6198 * ada-exp.y: New file
6199 * ada-lang.c: New file
6200 * ada-lang.h: New file
6201 * ada-lex.c: New file
6202 * ada-lex.l: New file
6203 * ada-tasks.c: New file
6204 * ada-typeprint.c: New file
6205 * ada-valprint.c: New file
6207 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6209 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6210 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6212 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6214 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6215 insetead of ppc-linux-tdep.o.
6216 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6217 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6219 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6221 2002-05-07 Christian Groessler <chris@groessler.org>
6222 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6223 bit register contents for little endian hosts.
6225 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6227 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6230 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6232 * gdbarch.h: Regenerate.
6234 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6236 * MAINTAINERS: Add everyone to write-after-approval list.
6238 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6240 * stack.c (frame_info): Use frame_register_unwind instead of
6241 saved_regs. Mention when the SP is on the stack or in a register.
6243 * frame.h (frame_register_unwind_ftype): Define. Document.
6244 (struct frame_info): Add field register_unwind and
6245 register_unwind_cache.
6246 (frame_register_unwind): Declare.
6247 (generic_unwind_get_saved_register): Declare.
6249 * frame.c (frame_register_unwind): New function.
6250 (generic_unwind_get_saved_register): New function.
6252 * blockframe.c (generic_call_dummy_register_unwind): New function.
6253 (frame_saved_regs_register_unwind): New function.
6254 (set_unwind_by_pc): New function.
6255 (create_new_frame): New function.
6256 (get_prev_frame): New function.
6258 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6260 * a29k-share/: Delete directory.
6261 * remote-vx29k.c: Delete file.
6263 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6265 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6266 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6268 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6270 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6271 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6274 (sparcnbsd-tdep.o): New dependency lists.
6275 * NEWS: Note new UltraSPARC NetBSD native configuration.
6276 * configure.host (sparc64-*-netbsd*): New host.
6277 * configure.tgt (sparc-*-netbsdelf*)
6278 (sparc-*-netbsd*): Set gdb_target to nbsd.
6279 (sparc64-*-netbsd*): New target.
6280 * sparc64nbsd-nat.c: New file.
6281 * sparcnbsd-nat.c: New file.
6282 * sparcnbsd-tdep.c: New file.
6283 * sparcnbsd-tdep.h: New file.
6284 * config/sparc/nbsd.mt: New file.
6285 * config/sparc/nbsd64.mh: New file.
6286 * config/sparc/nbsd64.mt: New file.
6287 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
6288 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6290 * config/sparc/nbsdaout.mt: Remove.
6291 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
6292 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
6294 * config/sparc/nbsdelf.mt: Remove.
6295 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
6296 sparc-nat.c compatiblity defines.
6297 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
6298 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
6299 * config/sparc/tm-nbsd64.h: New file.
6300 * config/sparc/tm-nbsdaout.h: Remove.
6301 * config/sparc/xm-nbsd.h: Remove.
6303 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6305 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
6306 * sparc-tdep.c: Include osabi.h.
6307 (gdbarch_tdep): Add osabi member.
6308 (_initialize_sparc_tdep): Use gdbarch_register.
6309 (sparc_gdbarch_init): Use generic OS ABI framework.
6310 (sparc_dump_tdep): New function.
6312 2002-05-30 Kevin Buettner <kevinb@redhat.com>
6314 * corefile.c (do_captured_read_memory_integer): Return non-zero
6316 (safe_read_memory_integer): Copy result of memory read when
6317 status is non-zero. Also, add comments.
6319 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
6321 * Makefile.in (ppc_tdep_h): Define.
6324 (rs6000-tdep.o): Use $(ppc_tdep_h).
6327 (ppcnbsd-tdep.o): New dependency lists.
6328 * ppc-tdep.h: Use generic OS ABI framework.
6329 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
6330 (ppc_linux_init_abi): New functions.
6331 (ppc_sysv_abi_broken_use_struct_convention)
6332 (ppc_sysv_abi_use_struct_convention)
6333 (ppc_sysv_abi_push_arguments): Move to...
6334 * ppc-sysv-tdep.c: ...here.
6335 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
6336 * rs6000-tdep.c (process_note_abi_tag_sections)
6337 (get_elfosabi): Remove.
6338 (rs6000_gdbarch_init): Use generic OS ABI framework.
6339 (rs6000_dump_tdep): New function.
6340 (_initialize_rs6000_tdep): Use gdbarch_register.
6341 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
6342 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6343 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
6344 of ppc-linux-tdep.o.
6345 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
6346 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
6347 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
6348 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
6349 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
6350 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
6352 2002-05-29 Jim Blandy <jimb@redhat.com>
6354 * macroscope.c (default_macro_scope): Put `void' in empty argument
6357 2002-05-29 Andrew Cagney <ac131313@redhat.com>
6359 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
6360 * arch-utils.c: Include "sim-regno.h".
6361 * gdbarch.sh: Don't include "sim-regno.h".
6362 * gdbarch.h, gdbarch.c: Regenerate.
6363 * sim-regno.h (legacy_register_sim_regno): Move declaration from
6365 * arch-utils.h (legacy_register_sim_regno): To here.
6366 * remote-sim.c (legacy_register_sim_regno): Move function from
6368 * arch-utils.c (legacy_register_sim_regno): To here.
6370 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6372 * sim-regno.h: New file.
6373 * Makefile.in (sim_regno_h): Define.
6374 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
6375 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
6376 (legacy_register_sim_regno): New function.
6377 (one2one_register_sim_regno): New function.
6378 (gdbsim_fetch_register): Rewrite.
6379 (gdbsim_store_register): Only store a register when
6380 REGISTER_SIM_REGNO is valid.
6381 * d10v-tdep.c: Include "sim-regno.h".
6382 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
6383 (d10v_ts3_register_sim_regno): Ditto.
6384 * gdbarch.sh: Include "sim-regno.h".
6385 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
6386 * gdbarch.h, gdbarch.c: Regenerate.
6387 * arch-utils.h (default_register_sim_regno): Delete declaration.
6388 * arch-utils.c (default_register_sim_regno): Delete function.
6390 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
6392 * ppcnbsd-nat.c: Rewrite.
6393 * ppcnbsd-tdep.c: New file.
6394 * ppcnbsd-tdep.h: New file.
6395 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
6396 solib.o, and solib-svr4.o.
6397 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
6398 nbsd-tdep.o, and corelow.o.
6400 2002-05-28 Andrew Cagney <ac131313@redhat.com>
6402 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
6403 `tr' and `sed'. Mention that `broken' targets are not expected to
6406 2002-05-27 Michal Ludvig <mludvig@suse.cz>
6408 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
6409 Let PC point right after the prologue before looking up symbols.
6411 2002-05-27 Martin M. Hunt <hunt@redhat.com>
6413 * i386-tdep.c (i386_register_virtual_type): Return
6414 builtin_type_vec128i for SSE registers.
6416 * gdbtypes.h (builtin_type_vec128i): Declare.
6418 * gdbtypes.c (build_builtin_type_vec128i): New function.
6419 (builtin_type_v2_double, builtin_type_v4_int64): New types.
6420 (builtin_type_vec128i): New type for SSE2 128-bit registers.
6421 (build_gdbtypes): Initialize new builtin vector types.
6422 (_initialize_gdbtypes): Register new vector types with gdbarch.
6424 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6426 * MAINTAINERS: ns32k is not longer an obsolete candidate,
6427 since it has been multi-arch'd.
6428 * NEWS: Note that ns32k-*-* is now partial multi-arch.
6429 Move Alpha and VAX multi-arch news entries to same section
6430 as other multi-arch news.
6432 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6434 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
6435 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
6436 static. Rename some register numbers to put them in ns32k-tdep
6438 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
6439 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
6441 (_initialize_ns32k_tdep): Use gdbarch_register.
6442 * ns32k-tdep.h: New file.
6443 * ns32knbsd-tdep.c: New file.
6444 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
6445 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
6446 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
6447 REGISTER_BYTES, REGISTER_BYTE): Remove.
6448 * config/ns32k/tm-ns32k.h: New file.
6449 * config/ns32k/tm-umax.h: Remove.
6451 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6453 * ns32k-tdep.c (ns32k_saved_pc_after_call,
6454 ns32k_store_struct_return, ns32k_extract_return_value,
6455 ns32k_store_return_value, ns32k_extract_struct_value_address): New
6457 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
6458 ns32k_saved_pc_after_call.
6459 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
6460 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
6461 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
6462 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6463 ns32k_extract_struct_value_address.
6465 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6467 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
6468 ns32k_fix_call_dummy): New.
6469 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
6470 ns32k_call_dummy_words.
6471 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
6472 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
6473 CALL_DUMMY_NARGS): Remove.
6474 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
6476 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6478 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
6479 ns32k_frame_saved_pc, ns32k_frame_args_address,
6480 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
6481 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
6482 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
6483 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
6484 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
6485 (BREAKPOINT): Remove..
6486 (FRAME_CHAIN): Define as ns32k_frame_chain.
6487 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
6488 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
6489 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
6490 (FRAME_FIND_SAVED_REGS): Remove.
6491 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
6492 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
6493 (POP_FRAME): Define as ns32k_pop_frame.
6495 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6497 * ns32k-tdep.c (ns32k_register_byte_32082,
6498 ns32k_register_byte_32382, ns32k_register_raw_size,
6499 ns32k_register_virtual_size, ns32k_register_virtual_type): New
6501 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
6502 ns32k_register_byte_32382.
6503 * config/ns32k/tm-umax.h: Update copyright years.
6504 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
6505 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
6506 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
6507 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
6508 (ns32k_get_enter_addr): Fix prototype.
6510 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
6512 * ns32k-tdep.c: Update copyright years.
6513 (ns32k_register_name_32082): New function.
6514 (ns32k_register_name_32382): Ditto.
6515 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
6516 (REGISTER_NAME): Define as ns32k_register_name_32382.
6517 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
6518 (REGISTER_NAME): Define as ns32k_register_name_32082.
6520 2002-05-24 Jim Blandy <jimb@redhat.com>
6522 * dwarf2read.c (free_line_header): Use xfree, not free.
6524 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6526 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
6527 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
6529 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6531 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
6533 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6535 From Ross Alexander at NEC Europe:
6536 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
6538 2002-05-23 Michael Snyder <msnyder@redhat.com>
6540 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
6541 for input, rather than parse_and_eval_address.
6543 2002-05-23 Andrew Cagney <ac131313@redhat.com>
6545 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
6546 * Makefile.in (sim_d10v_h): Update definition.
6548 2002-05-24 Andrew Cagney <cagney@redhat.com>
6550 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
6551 change `2002-05-22 Michael Snyder' below.
6552 (d10v_push_arguments): Ditto.
6553 (d10v_extract_return_value): Ditto.
6555 2002-05-23 Jim Blandy <jimb@redhat.com>
6557 * macrotab.c (check_for_redefinition): Don't complain if the new
6558 definition is the same as the previous one. Take more arguments
6559 to allow the comparison.
6560 (macro_define_object, macro_define_function): Pass more arguments
6561 to check_for_redefinition.
6563 2002-05-22 Michael Snyder <msnyder@redhat.com>
6565 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
6566 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
6567 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
6568 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
6569 Don't bail if return_pc is PC_IN_CALL_DUMMY.
6570 Add a temp variable to save a call (and a memory read).
6571 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
6572 if possible (so that PC_IN_CALL_DUMMY will work).
6574 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
6576 * MAINTAINERS: Remove status `OBSOLETE' from v850.
6578 2002-05-22 Michal Ludvig <mludvig@suse.cz>
6580 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
6582 (dwarf2_build_frame_info): Corrected handling of eh_frame.
6583 (dwarf2_build_frame_info): Add offset to fde->initial_location
6584 so that frames of shared libraries are mapped correctly.
6585 (execute_stack_op): Change type of 'result' from ULONGEST to
6588 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6590 * config/alpha/tm-nbsd.h: Include solib.h.
6592 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6594 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
6595 assumptions about the host's byte order.
6597 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6599 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
6601 * alphanbsd-tdep.c: Include solib-svr4.h.
6602 * shnbsd-tdep.c: Ditto.
6604 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
6606 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
6607 nbsd-tdep.h to dependency list.
6608 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
6609 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
6610 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
6611 nbsdaout.mh and nbsdelf.mh consistently.
6612 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
6613 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
6614 nbsdaout.mt and nbsdelf.mh consistently.
6615 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
6616 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
6617 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
6618 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
6619 a.out shared library stuff from here...
6620 * config/nm-nbsdaout.h: ...to here.
6621 * config/tm-nbsd.h: Remove.
6622 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
6623 * config/arm/nbsd.mh: Remove.
6624 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
6626 * config/arm/nbsdaout.mh: New file.
6627 * config/arm/nbsdelf.mh: New file.
6628 * config/arm/nm-nbsdaout.h: New file.
6629 * config/i386/nbsd.mh: Remove.
6630 * config/i386/nbsd.mt: Remove.
6631 * config/i386/nbsdaout.mh: New file.
6632 * config/i386/nbsdaout.mt: New file.
6633 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6634 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
6635 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
6636 i386_register_u_addr): Remove.
6637 * config/i386/nm-nbsdaout.h: New file.
6638 * config/i386/nm-nbsdelf.h: Remove.
6639 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
6640 (USE_STRUCT_CONVENTION): Remove.
6641 * config/i386/tm-nbsdaout.h: New file.
6642 * config/i386/tm-nbsdelf.h: Remove.
6643 * config/m68k/nbsd.mh: Remove.
6644 * config/m68k/nbsd.mt: Remove.
6645 * config/m68k/nbsdaout.mh: New file.
6646 * config/m68k/nbsdaout.mt: New file.
6647 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
6648 * config/m68k/nm-nbsdaout.h: New file.
6649 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6650 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6651 * config/ns32k/nbsd.mh: Remove.
6652 * config/ns32k/nbsd.mt: Remove.
6653 * config/ns32k/nbsdaout.mh: New file.
6654 * config/ns32k/nbsdaout.mt: New file.
6655 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
6656 * config/ns32k/nm-nbsdaout.h: New file.
6657 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
6658 (IN_SOLIB_CALL_TRAMPOLINE): Define.
6659 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
6660 (SVR4_SHARED_LIBS): Remove.
6661 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
6662 * config/sparc/nbsd.mh: Remove.
6663 * config/sparc/nbsd.mt: Remove.
6664 * config/sparc/nbsdaout.mh: New file.
6665 * config/sparc/nbsdaout.mt: New file.
6666 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
6667 * config/sparc/nbsdelf.mt: New file.
6668 * config/sparc/nm-nbsdaout.h: New file.
6669 * config/sparc/nm-nbsdelf.h: Remove.
6670 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
6671 * config/sparc/tm-nbsdaout.h: New file.
6673 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6675 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
6677 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
6679 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6681 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
6683 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
6685 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6687 * NEWS: Note new MIPS NetBSD native configuration.
6688 * configure.host (mips*-*-netbsd*): New host.
6689 * configure.tgt (mips*-*-netbsd*): New target.
6690 * mipsnbsd-nat.c: New file.
6691 * mipsnbsd-tdep.c: New file.
6692 * mipsnbsd-tdep.h: New file.
6693 * config/mips/nbsd.mh: New file.
6694 * config/mips/nbsd.mt: New file.
6695 * config/mips/nm-nbsd.h: New file.
6696 * config/mips/tm-nbsd.h: New file.
6698 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
6700 * Makefile.in (SFILES): Add osabi.c.
6701 (COMMON_OBS): Add osabi.o.
6702 (osabi.o): New dependency list.
6703 * osabi.c: New file.
6704 * osabi.h: New file.
6705 * doc/gdbint.texinfo: Document new generic OS ABI framework.
6707 * Makefile.in (alpha_tdep_h): Define and use instead of
6709 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
6710 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
6712 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
6713 * alpha-tdep.h: Include osabi.h.
6714 (alpha_abi): Remove.
6715 (gdbarch_tdep): Use generic OS ABI framework.
6716 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
6717 gdbarch_register_osabi.
6718 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
6719 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
6720 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
6722 * Makefile.in (sh_tdep_h): Add osabi.h.
6723 * sh-tdep.h (sh_osabi): Remove.
6724 (gdbarch_tdep): Use generic OS ABI framework.
6725 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
6726 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
6727 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
6728 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
6730 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
6731 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
6732 gdbarch_register_osabi.
6733 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
6734 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
6735 (get_elfosabi): Rename to...
6736 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
6737 ABI framework support routines.
6738 (arm_gdbarch_init): Use generic OS ABI framework.
6739 (arm_dump_tdep): Likewise.
6740 (_initialize_arm_tdep): Likewise.
6741 * arm-tdep.h: Include osabi.h.
6743 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
6745 (arm_gdbarch_register_os_abi): Remove prototype.
6746 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
6747 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
6749 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
6750 * mips-tdep.c: Include osabi.h.
6751 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
6754 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
6756 * h8300-tdep.c: Fix formatting.
6758 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
6760 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
6761 printing vector registers.
6763 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6765 From Fernando Nasser:
6766 * remote.c (remote_async_open_1): Re-throw the exception when the
6768 (remote_cisco_open): Ditto.
6769 (remote_open_1): Ditto.
6771 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6773 * remote.c (remote_start_remote_dummy): Add uiout parameter.
6774 (remote_start_remote): Add uiout parameter. Pass through to
6775 remote_start_remote_dummy.
6776 (remote_open_1): Use catch_exception instead of catch_errors.
6777 (remote_async_open_1): Ditto.
6778 (remote_cisco_open): Ditto.
6780 2002-05-19 Andrew Cagney <ac131313@redhat.com>
6782 * remote.c (remote_start_remote): Replace PTR with void pointer.
6783 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
6786 2002-05-18 Andrew Cagney <ac131313@redhat.com>
6788 * gdb_indent.sh: Allow the script to be run in the sim directory.
6790 2002-05-18 Mark Kettenis <kettenis@gnu.org>
6792 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
6793 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
6795 * corelow.c (core_open): Only call set_gdbarch_from_file if
6798 2002-05-17 Andrey Volkov <avolkov@transas.com>
6800 * h8300-tdep.c: Add support of EXR register
6801 * config/h8300/tm-h8300.h: Ditto.
6803 2002-05-17 Andrey Volkov <avolkov@transas.com>
6805 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
6807 2002-05-17 Andrey Volkov <avolkov@transas.com>
6809 * h8300-tdep.c: Change literal regnums to REGNO.
6811 2002-05-17 Jim Blandy <jimb@redhat.com>
6813 * NEWS: Note addition of macro support.
6815 Expand preprocessor macros in C expressions.
6816 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
6817 (scan_macro_expansion, scanning_macro_expansion,
6818 finished_macro_expansion): New function declarations.
6819 (expression_macro_lookup_func, expression_macro_lookup_baton): New
6820 variable declarations.
6821 * parser-defs.h (expression_context_pc): New declaration.
6822 * parse.c (expression_context_pc): New variable.
6823 (parse_exp_1): Set expression_context_pc, as well as
6824 expression_context_block.
6825 * c-exp.y (yylex): If we're not already reading the result of a
6826 macro expansion, try to macro-expand the next token. When we're
6827 done scanning a macro expansion, switch back to the mainline text.
6828 Commas and `if's in a macro's expansion don't terminate the input.
6829 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
6830 (macro_original_text, macro_expanded_text,
6831 expression_macro_lookup_func, expression_macro_lookup_baton): New
6833 (scan_macro_expansion, scanning_macro_expansion,
6834 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
6835 c_preprocess_and_parse): New functions.
6836 (c_language_defn, cplus_language_defn, asm_language_defn): Call
6837 c_preprocess_and_parse, instead of c_parse.
6838 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
6839 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
6841 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
6843 * sh-tdep.c (gdb_print_insn_sh64): Delete.
6844 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
6845 (sh_gdbarch_init): Always use gdb_print_insn_sh.
6847 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
6849 * NEWS: Add section for multi-arched targets. Add v850 to that section.
6851 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
6853 * Makefile.in (sh_tdep_h): Define and use.
6854 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
6855 register enum): Move to...
6856 * * sh-tdep.h: ...here.
6857 * sh-tdep.c: Include sh-tdep.h.
6858 * sh3-rom.c: Likewise.
6859 * shnbsd-tdep.c: Likewise.
6861 2002-05-16 Michael Snyder <msnyder@redhat.com>
6863 * arm-tdep.c: Spelling fix in comment.
6865 2002-05-16 Jim Blandy <jimb@redhat.com>
6867 Add commands for manually expanding macros and showing their
6869 * macrocmd.c, macroscope.c, macroscope.h: New files.
6870 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
6871 (macroscope_h): New variable.
6872 (HFILES_NO_SRCDIR): Add macroscope.h.
6873 (COMMON_OBS): Add macrocmd.o, macroscope.o.
6874 (macroscope.o, macrocmd.o): New rules.
6876 Teach the Dwarf 2 reader to read macro information.
6877 * dwarf2read.c: #include "macrotab.h".
6878 (dwarf_macinfo_buffer): New variable.
6879 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
6881 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
6882 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
6883 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
6884 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
6885 dwarf2_macro_spaces_in_definition): New complaints.
6886 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
6887 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
6888 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
6889 the partial symbol table.
6890 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
6891 from what's recorded in the partial symbol table.
6892 (read_file_scope): If the compilation unit has a
6893 `DW_AT_macro_info' attribute, read its macro information.
6894 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
6896 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6899 * ser-tcp.c: Don't include <netinet/udp.h>.
6901 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
6903 * MAINTAINERS: Update my email address.
6905 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
6907 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
6908 include file of the same name.
6910 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6912 * configure.tgt: Mark v850 as multi-arched.
6913 * config/v850/tm-v850.h: Remove file.
6914 * config/v850/v850.mt: Eliminate TM_FILE.
6916 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6918 * v850-tdep.c: Full multi-arch.
6919 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
6920 Define GDB_MULTI_ARCH to 2.
6922 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
6924 * p-exp.y (current_type): New static variable.
6925 Carries the type of the expression at the position that is parsed.
6926 (push_current_type, pop_current_type): Two new functions. Used
6927 to store/restore current_type in expression on specific tokens.
6928 (search_field): New static variable. Set to one after parsing a point
6929 as at that point only a FIELDNAME token should be searched.
6930 (FIELDNAME): New token. After a point only a token belonging to
6931 current_type type definition is allowed.
6932 (all over token rules): reset and change current_type according
6934 (exp '[' rule): insert implicit array index field if
6935 exp is a pascal string type.
6937 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6939 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
6940 frame info. Use frame_info's saved_regs instead of matching member
6941 in extra_frame_info throughout.
6942 (v850_frame_init_saved_regs): New function.
6943 (v850_init_extra_frame_info): Move most functionality into
6944 v850_frame_init_saved_regs().
6945 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
6946 (v850_frame_find_saved_regs): Remove declaration.
6947 (FRAME_FIND_SAVED_REGS): Remove definition.
6948 (v850_frame_init_saved_regs): Add declaration.
6949 (FRAME_INIT_SAVED_REGS): Add definition.
6951 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
6953 * v850-tdep.c: Begin multi-arch'ing v850.
6954 (v850_target_architecture_hook): Remove function.
6955 (v850_gdbarch_init): New function. Add code previously in
6956 v850_target_architecture_hook().
6957 (_initialize_v850_tdep): Don't set target_architecture_hook.
6958 Call register_gdbarch_init() instead.
6960 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
6962 * gdbtypes.h (struct cplus_struct_type): Remove args field.
6963 * hpread.c (hpread_read_struct_type): Remove assignments to args.
6964 (fixup_class_method_type): Likewise.
6966 2002-05-15 Jim Blandy <jimb@redhat.com>
6968 Add macro structures to GDB's symbol tables. Nobody puts anything
6970 * symtab.h (struct symtab): New member: `macro_table'.
6971 * buildsym.h (pending_macros): New global variable.
6972 * buildsym.c: #include "macrotab.h".
6973 (buildsym_init): Initialize `pending_macros'.
6974 (end_symtab): If we found macro information while reading a CU's
6975 debugging info, do build a symtab structure for it. Make the
6976 symtab point to the macro information, and clear the
6977 `pending_macros' pointer which held it while we were reading the
6979 (really_free_pendings): Free any pending macro table.
6980 * objfiles.h (struct objfile): New member: `macro_cache'.
6981 * objfiles.c (allocate_objfile): Set allocate and free functions
6982 for the macro cache's objstack.
6983 (free_objfile): Empty the macro cache's obstack.
6984 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
6985 set new allocate and free functions for it.
6986 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
6987 free functions for the macro cache's objstack. (Why is this
6988 function building its own objfile?)
6989 * symmisc.c (print_objfile_statistics): Print statistics on the
6991 * Makefile.in: Note that buildsym.o depends on macrotab.h.
6993 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
6995 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
6996 (REGISTER_U_ADDR): Delete definition.
6997 (arm_register_u_addr): Delete declaration.
6999 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7001 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7002 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7004 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7006 * regcache.c (register_valid): Revise comments refering to "Not
7007 available" and "unavailable".
7008 * frame.c (frame_register_read): Ditto.
7009 * findvar.c (value_of_register): Ditto.
7011 2002-05-15 Andrew Cagney <cagney@redhat.com>
7013 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7014 (remote-sim.o): Update dependencies.
7015 (d10v-tdep.o): Specify dependencies.
7016 (sim_d10v_h): Define.
7018 2002-05-14 Jim Blandy <jimb@redhat.com>
7020 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7021 * macrotab.c (macro_lookup_inclusion, find_definition,
7022 new_macro_table): Same.
7024 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7025 not `! strcmp ()'. This is a dubious improvement.
7026 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7028 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7029 although it's not necessary, to avoid a warning.
7031 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7033 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7034 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7035 TYPE_INSTANCE_FLAGS.
7036 (struct main_type): New.
7037 (struct type): Move most members to struct main_type. Change
7038 cv_type and as_type to new type_chain member. Add instance_flags.
7039 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7040 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7041 (finish_cv_type): Remove prototype.
7042 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7044 (alloc_type_instance): New function.
7045 (smash_type): New function.
7046 (make_pointer_type, make_reference_type, make_function_type)
7047 (smash_to_member_type, smash_to_method_type): Call smash_type.
7048 (make_qualified_type): New function.
7049 (make_type_with_address_space): Call make_qualified_type.
7050 (make_cv_type): Likewise.
7051 (finish_cv_type): Remove unnecessary function.
7052 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7053 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7054 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7055 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7056 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7057 * hpread.c (hpread_read_struct_type): Likewise.
7058 * stabsread.c (read_struct_type): Likewise.
7060 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7062 * configure.tgt: Add a catch all sh* target, for cases like
7063 sh[2,3,4]-elf and sh-hms.
7065 2002-05-14 Keith Seitz <keiths@redhat.com>
7067 * event-loop.c (create_file_handler): Don't do anything but
7068 update data when we are given a fd which we are already
7071 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7073 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7074 (update_context): Use __func__ in warnings.
7076 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7078 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7079 and tcp_close to net_open and net_close.
7080 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7081 using UDP if requested. Don't try to disable Nagle on UDP
7083 * remote.c (remote_serial_open): New function. Warn about UDP.
7084 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7086 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7088 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7090 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7092 * configure.tgt: Remove sh-hms target.
7093 * MAINTAINERS: Don't list sh-hms as a separate target.
7095 2002-05-13 Jim Blandy <jimb@redhat.com>
7097 Add first preprocessor macro-expansion files.
7098 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7099 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7100 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7101 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7102 (COMMON_OBS): Add macrotab.o, macroexp.o.
7103 (macroexp.o, macrotab.o): New rules.
7105 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7107 * config/m88k/tm-m88k.h: Update copyright.
7108 (m88k_target_write_pc): Declare
7109 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7110 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7111 (SHIFT_INST_REGS): Update definition.
7112 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7113 using old definition of TARGET_WRITE_PC.
7114 * regcache.c (generic_target_write_pc): Delete code handling
7116 * gdbarch.sh (NNPC_REGNUM): Delete.
7117 * gdbarch.h, gdbarch.c: Regenerate.
7119 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7121 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7124 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7126 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7127 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7128 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7130 * c-typeprint.c (cp_type_print_method_args): Likewise.
7131 (c_type_print_args): Likewise.
7132 * d10v-tdep.c (d10v_push_arguments): Likewise.
7133 (d10v_extract_return_value): Likewise.
7134 * expprint.c (print_subexp): Likewise.
7135 * gdbtypes.c (lookup_primitive_typename): Likewise.
7136 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7137 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7138 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7139 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7140 (TYPE_VECTOR): Likewise.
7141 * hpread.c (hpread_read_struct_type)
7142 (fix_static_member_physnames, fixup_class_method_type)
7143 (hpread_type_lookup): Likewise.
7144 * mdebugread.c (parse_symbol, parse_type): Likewise.
7145 * p-lang.c (is_pascal_string_type): Likewise.
7146 * valops.c (hand_function_call): Likewise.
7147 * x86-64-tdep.c (classify_argument): Likewise.
7149 * hpread.c (hpread_read_function_type)
7150 (hpread_read_doc_function_type): Call replace_type.
7151 * dstread.c (create_new_type): Delete.
7152 (decode_dst_structure, process_dst_function): Call alloc_type.
7153 Use type access macros.
7155 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7157 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7158 the're not supported by the current architecture.
7159 (i387_fill_fxsave): Likewise.
7161 2002-05-12 Fred Fish <fnf@redhat.com>
7163 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7164 sect_index_xxx members to index the first slot in section_offsets
7165 if all of the section_offsets are zero.
7167 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7169 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7170 checked in with last change.
7172 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7174 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7175 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7178 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7180 * Makefile.in: Update dependencies.
7182 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7184 * language.c (local_hex_string_custom): Simplify. Do not depend
7185 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7187 * memattr.c (mem_info_command): Replace calls to
7188 longest_local_hex_string and longest_local_hex_string_custom.
7189 * buildsym.c (make_blockvector): Ditto.
7190 * solib.c (info_sharedlibrary_command): Ditto.
7191 * tracepoint.c (tracepoints_info): Ditto.
7192 * symtab.c (print_msymbol_info): Ditto.
7194 * language.c (local_hex_string): Delete.
7195 (local_hex_string_custom): Delete.
7196 (longest_local_hex_string): Rename to local_hex_string.
7197 (longest_local_hex_string_custom): Rename to
7198 local_hex_string_custom.
7199 * language.h (local_hex_string): Change parameter type to LONGEST.
7200 (local_hex_string_custom): Ditto.
7201 (longest_local_hex_string): Delete declaration.
7202 (longest_local_hex_string_custom): Ditto.
7204 * solib.c: Update copyright.
7205 * memattr.c: Update copyright.
7207 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7209 * arch-utils.h (legacy_register_to_value): Declare.
7210 (legacy_value_to_register): Declare.
7211 (legacy_convert_register_p): Declare.
7212 * arch-utils.c (legacy_register_to_value): New function.
7213 (legacy_value_to_register): New function.
7214 (legacy_convert_register_p): New function.
7216 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7217 (VALUE_TO_REGISTER): Define.
7218 (CONVERT_REGISTER_P): Define.
7219 * gdbarch.h, gdbarch.c: Regenerate.
7221 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7223 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7226 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7227 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7229 * Makefile.in: Update dependencies for valops.c.
7230 * valops.c: Include "gdb_assert.h".
7231 (typecmp): Skip THIS parameter to methods.
7232 (find_method_list): Remove static_memfuncp argument,
7233 update callers. Check for stub methods.
7234 (find_value_oload_method_list): Don't set *static_memfuncp.
7235 (find_overload_match): Don't check for stub methods. Assert
7236 that methods are not stubbed. Handle static methods.
7237 (value_find_oload_method_list): Remove static_memfuncp argument.
7238 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7239 to the argument list for static stub methods.
7240 * value.h (value_find_oload_method_list): Update prototype.
7242 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7244 * arch-utils.h (generic_register_size): Declare.
7245 (generic_register_raw_size, generic_register_virtual_size): Delete
7247 * arch-utils.c (generic_register_raw_size): Delete.
7248 (generic_register_size): New function.
7249 (generic_register_virtual_size): Delete.
7251 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7252 default generic_register_size.
7253 * gdbarch.h, gdbarch.c: Re-generate.
7255 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7256 register_virtual_size.
7257 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7258 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7260 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7262 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7263 * gdbarch.h, gdbarch.c: Regenerate.
7264 * gnu-v3-abi.c: Update copyright.
7265 (vtable_address_point_offset): Update.
7266 (gnuv3_rtti_type): Update.
7267 (gnuv3_baseclass_offset): Update.
7268 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7269 (init_fetch_link_map_offsets): Update.
7270 * remote.c (get_remote_state): Update.
7272 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7274 * TODO: Remove value_headof/value_from_vtable_info comment.
7275 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
7276 * values.c (value_headof, value_from_vtable_info): Delete.
7277 * value.h (value_from_vtable_info): Delete prototype.
7279 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7281 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
7282 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
7284 (gdb_assert_h): Define.
7285 (gdb_wait_h): Define.
7286 (gdb_regex_h): Define.
7288 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
7290 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
7291 * linespec.c (find_methods): Handle GCC 3.x template constructors.
7293 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7295 * nbsd-tdep.c: Fix comment.
7297 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7299 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
7300 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
7301 (nbsd-tdep.o): New dependency list.
7302 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
7304 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
7305 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
7306 * nbsd-tdep.c: New file.
7307 * nbsd-tdep.h: New file.
7308 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
7310 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
7311 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7312 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
7313 * config/sh/nbsd.mt (TDEPFILES): Ditto.
7315 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7317 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
7318 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
7319 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
7320 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
7321 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
7322 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
7324 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7326 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
7327 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7328 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
7329 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
7330 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
7331 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
7332 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
7334 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7336 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
7337 fetch_elfcore_registers to...
7338 * i386nbsd-tdep.c: ...here.
7339 (i386nbsd_use_struct_convention): Rename to...
7340 (i386nbsd_aout_use_struct_convention): ...this.
7341 (i386nbsd_supply_reg): New function.
7342 (i386nbsd_fill_reg): New function.
7343 (fetch_core_registers): Use i386nbsd_supply_reg.
7344 (fetch_elfcore_registers): Likewise.
7345 (_initialize_i386nbsd_tdep): New function.
7346 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
7347 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7348 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
7349 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
7350 (i386nbsd_aout_use_struct_convention): ...this.
7352 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7354 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
7355 (store_inferior_registers): Use shnbsd_fill_reg.
7356 * shnbsd-tdep.c (sh_nbsd_supply_registers,
7357 sh_nbsd_supply_register): Collapse into...
7358 (shnbsd_supply_reg): ...this.
7359 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
7360 (shnbsd_fill_reg): ...this.
7361 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
7362 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
7363 (fetch_core_registers): Use shnbsd_supply_reg.
7364 (fetch_elfcore_registers): Use shnbsd_supply_reg.
7365 (sh_nbsd_core_fns): Rename to...
7366 (shnbsd_core_fns): ...this.
7367 (sh_nbsd_elfcore_fns): Rename to...
7368 (shnbsd_elfcore_fns): ...this.
7369 (sh_nbsd_init_abi): Rename to...
7370 (shnbsd_init_abi): ...this.
7371 (_initialize_sh_nbsd_tdep): Rename to...
7372 (_initialize_shnbsd_tdep): ...this.
7373 * shnbsd-tdep.h (sh_nbsd_supply_registers,
7374 sh_nbsd_supply_register, sh_nbsd_fill_registers,
7375 sh_nbsd_fill_register): Remove prototypes.
7376 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
7378 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7380 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
7381 (i387-nat.o): Delete dependency list.
7382 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
7383 (x86-64-linux-nat.o): Likewise.
7384 * i387-nat.c: Delete file, moving contents to...
7385 * i387-tdep.c: ...here.
7386 * i387-nat.h: Rename...
7387 * i387-tdep.h: ...to this.
7388 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
7389 * i386-linux-nat.c: Likewise.
7390 * i386bsd-nat.c: Likewise.
7391 * i386gnu-nat.c: Likewise.
7392 * i386nbsd-nat.c: Likewise.
7393 * i386v4-nat.c: Likewise.
7394 * x86-64-linux-nat.c: Likewise.
7395 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
7396 * config/i386/go32.mh (NATDEPFILES): Likewise.
7397 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
7398 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
7399 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
7400 * config/i386/linux.mh (NATDEPFILES): Likewise.
7401 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
7402 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
7403 * config/i386/obsd.mh (NATDEPFILES): Likewise.
7404 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
7406 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7408 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
7409 (alphanbsd-nat.o): Remove dependency list.
7410 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
7411 * alphanbsd-nat.c: Delete. Contents moved to...
7412 * alphanbsd-tdep.c: ...here.
7413 (_initialize_alphanbsd_tdep): Register core functions.
7414 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
7416 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
7418 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
7419 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
7420 (alphanbsd-nat.o): Likewise.
7421 (alphabsd-tdep.o): New dependency list.
7422 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
7423 (fill_gregset): Use alphabsd_fill_reg.
7424 (supply_fpregset): Use alphabsd_supply_fpreg.
7425 (fill_fpregset): Use alphabsd_fill_fpreg.
7426 (fetch_inferior_registers): Use struct reg and struct fpreg
7427 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
7428 and alphabsd_supply_fpreg.
7429 (store_inferior_registers): Use struct reg and struct fpreg
7430 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
7431 and alphabsd_fill_fpreg.
7432 * alphabsd-tdep.c: New file.
7433 * alphabsd-tdep.h: New file.
7434 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
7435 (fetch_elfcore_registers): Use alphabsd_supply_reg and
7436 alphabsd_supply_fpreg.
7437 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
7438 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7440 2002-05-11 Eric Christopher <echristo@redhat.com>
7442 * mips-tdep.c (mips_double_register_type): Fix thinko.
7443 (mips_single_register_type): Ditto.
7444 * MAINTAINERS: Add self.
7446 2002-05-11 Mark Kettenis <kettenis@gnu.org>
7448 * i387-nat.c (i387_supply_register, i387_fill_fsave,
7449 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
7450 right thing on architectures with different endianness and/or
7453 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
7455 From Christian Limpach <chris@Pin.LU>
7456 * configure.in: Change sed expression which comments out
7457 NATDEPFILES to also comment out continuation lines.
7458 * configure: Regenerate.
7460 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7462 * sh-tdep.c: Clean up code erroneously reintroduced by previous
7465 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7467 * sh-tdep.c: Include correct file.
7469 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7471 New support for sh64-elf (sh5) target.
7473 * configure.tgt: For sh64-elf target, default to sh-elf.
7475 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
7476 (struct gdbarch_tdep): Add new fields for new registers and ABI
7479 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
7480 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
7481 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
7482 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
7483 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
7484 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
7485 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
7486 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
7487 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
7488 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
7489 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
7490 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
7491 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
7492 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
7493 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
7494 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
7495 sh64_get_gdb_regnum, sh64_media_reg_base_num,
7496 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
7497 sign_extend, sh64_nofp_frame_init_saved_regs,
7498 sh64_init_extra_frame_info, sh64_get_saved_register,
7499 sh64_extract_struct_value_address, sh64_pop_frame,
7500 sh64_push_arguments, sh64_extract_return_value,
7501 sh64_store_return_value, sh64_show_media_regs,
7502 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
7503 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
7504 sh_sh64_register_virtual_type,
7505 sh_sh64_register_convert_to_virtual,
7506 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
7507 sh64_register_read, sh64_pseudo_register_write,
7508 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
7509 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
7510 sh64_do_pseudo_register, sh_compact_do_registers_info,
7511 sh64_do_registers_info, sh_gdbarch_init): New functions.
7513 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
7515 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
7517 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
7519 * linespec.c (decode_line_1): Check for a double quote after
7520 a filename correctly.
7522 2002-05-10 Jim Blandy <jimb@redhat.com>
7524 Properly track the size of the current objfile's .debug_line section.
7525 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
7526 (DWARF_LINE_SIZE): New macro.
7527 (dwarf2_build_psymtabs_hard): Record the line section's size in
7528 the partial symbol table.
7529 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
7532 2002-05-10 Petr Sorfa <petrs@caldera.com>
7534 * ia64-tdep.c: Handle breakpoints on L instruction type
7535 in MLX instruction bundle by moving the breakpoint to
7536 the third slot (X instruction type) as L holds only data.
7538 2002-05-10 Kevin Buettner <kevinb@redhat.com>
7540 * dbxread.c (discarding_local_symbols_complaint): New complaint.
7541 (process_one_symbol): Complain about discarding local symbols
7542 due to a misplaced N_LBRAC entry.
7544 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
7546 From Daniel Berlin <dan@cgsoftware.com>
7547 * linespec.c (find_toplevel_char): '<' and '>' also increase and
7548 decrease the depth we are at, in the case of templates.
7550 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7552 * mips-tdep.c (mips_float_register_type): New function.
7553 (mips_double_register_type): New function.
7554 (mips_print_register): Use them.
7555 (do_fp_register_row): Likewise.
7557 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
7559 * signals/signals.c (signals): Remove conditional compilation around
7560 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
7561 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
7563 2002-05-09 Michael Snyder <msnyder@redhat.com>
7565 * remote-rdp.c (remote_rdp_can_run): Remove.
7567 2002-05-09 Tom Tromey <tromey@redhat.com>
7569 * jv-valprint.c (java_val_print): Handle `char' as a special case
7572 2002-05-09 Michael Snyder <msnyder@redhat.com>
7574 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
7575 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
7576 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
7577 str r(0123),[sp,#nn].
7578 (arm_skip_prologue): Ditto. Also make disassembly
7579 order-independent by placing it in a loop.
7581 2002-05-06 Michael Snyder <msnyder@redhat.com>
7583 * stabsread.c (read_type): Add recognition for new attribute:
7584 "@V;" means that an array type is actually a vector.
7585 This is analogous to the vector flag that's been added to dwarf2.
7587 2002-05-09 Mark Kettenis <kettenis@gnu.org>
7589 * i386-tdep.h (i386_abi): New enum.
7590 (struct gdbarch_tdep): Replace os_ident member with abi.
7591 (i386_gdbarch_register_os_abi): New prototype.
7592 * i386-tdep.c (i386_abi_names): New array.
7593 (process_note_abi_tag_sections): Removed.
7594 (process_note_sections): New function.
7595 (i386_elf_abi_from_note, i386_elf_abi): New functions.
7596 (struct i386_abi_handler): New struct.
7597 (i386_abi_handler_list): New variable.
7598 (i386_gdbarch_register_os_abi): New function.
7599 (i386_gdbarch_init): Adapt for the changes given above.
7601 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
7603 * gregset.h: Say "GNU/Linux".
7605 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
7607 * gdbtypes.c : Add new builtin type for 64 bit vectors.
7608 (build_gdbtypes): Build builtin_type_v2_float.
7609 (_initialize_gdbtypes): Register new builtin type.
7611 2002-05-08 Andrew Cagney <ac131313@redhat.com>
7613 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
7614 (clear_gdbarch_swap): New function.
7615 (initialize_non_multiarch): Call.
7616 (gdbarch_update_p): Before calling init(), swap out and clear the
7617 existing architecture.
7618 * gdbarch.c: Regenerate.
7620 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7622 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
7625 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7627 * sh-nbsd-nat.c: Rename to...
7628 * shnbsd-nat.c: ...this.
7629 * sh-nbsd-tdep.c: Rename to...
7630 * shnbsd-tdep.c: ...this.
7631 * sh-nbsd-tdep.h: Rename to...
7632 * shnbsd-tdep.h: ...this.
7633 * config/sh/nbsd.mh: Use shnbsd-nat.o.
7634 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
7636 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
7638 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
7639 concatenation for command help messages.
7641 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7643 * NEWS: Note new sh*-*-netbsdelf* configuration.
7644 * configure.host: Set gdb_host_cpu to sh for all sh*.
7645 (sh*-*-netbsdelf*): New host.
7646 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
7647 (sh*-*-netbsdelf*): New target.
7648 * sh-nbsd-nat.c: New file.
7649 * sh-nbsd-tdep.c: New file.
7650 * sh-nbsd-tdep.h: New file.
7651 * config/sh/nbsd.mh: New file.
7652 * config/sh/nbsd.mt: New file.
7653 * config/sh/nm-nbsd.h: New file.
7654 * config/sh/tm-nbsd.h: New file.
7656 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
7658 * sh-tdep.c (sh_osabi_names): Declare.
7659 (process_note_abi_tag_sections): New function.
7660 (get_elfosabi): Ditto.
7661 (sh_gdbarch_register_os_abi): Ditto.
7662 (sh_dump_tdep): Ditto.
7663 _initialize_sh_tdep): Use gdbarch_register to register
7664 sh_gdbarch_init and sh_dump_tdep.
7665 * config/sh/tm-sh.h (sh_osabi): Declare.
7666 (gdbarch_tdep): Add sh_osabi and osabi_name members.
7668 2002-05-07 Andrew Cagney <ac131313@redhat.com>
7670 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
7671 (thumb_scan_prologue): Ditto.
7672 (arm_find_callers_reg): Ditto.
7673 (arm_frame_chain): Ditto.
7674 (arm_init_extra_frame_info): Ditto.
7675 (arm_frame_saved_pc): Ditto.
7676 (arm_pop_frame): Ditto.
7677 (arm_push_return_address): New function.
7678 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
7679 call_dummy_location, call_dummy_breakpoint_offset_p,
7680 call_dummy_breakpoint_offset, call_dummy_p,
7681 call_dummy_stack_adjust_p, call_dummy_words,
7682 sizeof_call_dummy_words, call_dummy_start_offset,
7683 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
7684 call_dummy_address, push_return_address and push_dummy_frame for
7685 generic dummy frames.
7687 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7689 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
7690 size computation for alloca.
7691 (sh_fp_frame_init_saved_regs): Likewise.
7693 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
7695 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
7696 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
7697 * arm-tdep.c (arm_store_return_value): Use them.
7698 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
7699 * remote-rdp.c (remote_rdp_fetch_register): Use
7700 ARM_MAX_REGISTER_RAW_SIZE.
7701 (remote_rdp_store_register): Likewise.
7703 2002-05-07 Michal Ludvig <mludvig@suse.cz>
7705 * dwarf2cfi.c: Code cleanup, removed unused variables,
7706 added default labels to switch {} statements.
7707 * x86-64-tdep.c: Ditto.
7708 * x86-64-linux-nat.c: Ditto.
7710 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
7712 * solib.h: Protect against multiple inclusion.
7714 2002-05-06 Jim Blandy <jimb@redhat.com>
7716 Add first preprocessor macro-expansion files.
7717 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7718 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7719 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7720 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7721 (COMMON_OBS): Add macrotab.o, macroexp.o.
7722 (macroexp.o, macrotab.o): New rules.
7724 Separate the job of reading the line number info statement program
7725 header (...expialidocious) out into its own function.
7726 * dwarf2read.c (struct line_head, struct filenames, struct
7727 directories): Replace with...
7728 (struct line_header): New structure, containing the full
7729 contents of the statement program header, including the
7730 include directory and file name tables.
7731 (read_file_scope): If we have line number info, instead of just
7732 calling dwarf_decode_lines to do all the work, call
7733 dwarf_decode_line_header first to get a `struct line_header'
7734 containing the data in the statement program header, and then
7735 pass that to dwarf_decode_lines, which will pick up where that
7736 left off. Be sure to clean up the `struct line_header' object.
7737 (dwarf_decode_line_header, free_line_header, add_include_dir,
7738 add_file_name): New functions.
7739 (dwarf_decode_lines): Move all the code to read the statement
7740 program header into dwarf_decode_line_header. Take the line
7741 header it built as the first argument, instead of the offset to
7742 the compilation unit's line number info. Use the new `struct
7743 line_header' type instead of the old structures. No need to do
7744 cleanups here now, since we don't allocate anything.
7745 (dwarf2_statement_list_fits_in_line_number_section,
7746 dwarf2_line_header_too_long): New complaints.
7748 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
7750 * gdbtypes.c (init_vector_type): New function.
7751 (build_builtin_type_vec128): Simplify the representation of SIMD
7753 (build_gdbtypes): Initialize new builtin vector types.
7754 (_initialize_gdbtypes): Register new vector types with gdbarch.
7755 (builtin_type_v4_float, builtin_type_v4_int32,
7756 builtin_type_v8_int16, builtin_type_v16_int8,
7757 builtin_type_v2_int32, builtin_type_v4_int16,
7758 builtin_type_v8_int8): New (renamed) SIMD types.
7760 2002-05-06 Mark Kettenis <kettenis@gnu.org>
7762 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
7763 (i387_fill_fxsave): Likewise.
7765 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
7767 * alpha-tdep.c (alpha_extract_return_value): Don't use
7768 non-constant array size in prototype.
7770 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7772 From Brian Taylor <briant at model dot com>:
7773 * ui-out.c (ui_out_field_core_addr): Use the function
7774 longest_local_hex_string_custom'to format addresses > 32 bits
7777 * ui-out.c (ui_out_field_core_addr): Update comment.
7779 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7781 * stack.c (select_and_print_frame): Make static. Delete the
7783 (func_command): Update call.
7784 (select_frame_command): Delete code computing the frame level.
7785 * frame.h (select_and_print_frame): Delete declaration.
7787 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7789 * sparc-tdep.c (sparc_get_saved_register): Comment why
7790 get_prev_frame call is safe.
7792 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7794 * frame.h (select_frame): Delete level parameter.
7795 * stack.c (select_frame): Update. Use frame_relative_level to
7796 obtain the frame's level.
7797 (select_and_print_frame): Update call.
7798 (select_frame_command): Ditto.
7799 (up_silently_base): Ditto.
7800 (down_silently_base): Ditto.
7801 * ocd.c (ocd_start_remote): Ditto.
7802 * remote-rdp.c (remote_rdp_open): Ditto.
7803 * remote-mips.c (mips_initialize): Ditto.
7804 (common_open): Ditto.
7805 * remote-e7000.c (e7000_start_remote): Ditto.
7806 * m3-nat.c (select_thread): Ditto.
7807 * hppa-tdep.c (child_get_current_exception_event): Ditto.
7808 (child_get_current_exception_event): Ditto.
7809 * varobj.c (varobj_create): Ditto.
7810 (varobj_update): Ditto.
7811 (c_value_of_root): Ditto.
7812 * tracepoint.c (finish_tfind_command): Ditto.
7813 * corelow.c (core_open): Ditto.
7814 * arch-utils.c (generic_prepare_to_proceed): Ditto.
7815 * thread.c (info_threads_command): Ditto.
7816 (switch_to_thread): Ditto.
7817 * infrun.c (normal_stop): Ditto.
7818 (restore_selected_frame): Ditto.
7819 (restore_inferior_status): Ditto.
7820 * breakpoint.c (insert_breakpoints): Ditto.
7821 (watchpoint_check): Ditto.
7822 (bpstat_stop_status): Ditto.
7823 (do_enable_breakpoint): Ditto.
7824 * blockframe.c (flush_cached_frames): Ditto.
7825 (reinit_frame_cache): Ditto.
7827 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7829 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
7832 2002-05-04 Jim Blandy <jimb@redhat.com>
7834 * gdbtypes.c (replace_type): Doc fix.
7836 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7838 * valprint.c (strcat_longest): Delete commented out function.
7841 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7843 * MAINTAINERS: Mark a29k as deleted.
7844 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
7845 Move new configurations to the top.
7846 * configure.tgt: Remove a29k.
7847 * config/a29k/tm-vx29k.h: Delete.
7848 * config/a29k/vx29k.mt: Delete.
7849 * config/a29k/tm-a29k.h: Delete.
7850 * config/a29k/a29k-udi.mt: Delete.
7851 * config/a29k/a29k.mt: Delete.
7852 * a29k-tdep.c: Delete.
7853 * remote-udi.c: Delete.
7854 * remote-mm.c: Delete.
7855 * remote-eb.c: Delete.
7856 * remote-adapt.c: Delete.
7857 * Makefile.in: Remove obsolete code.
7858 * config/s390/s390x.mt: Ditto.
7859 * config/s390/s390.mt: Ditto.
7860 * config/sparc/sparclynx.mh: Ditto.
7861 * config/sparc/linux.mh: Ditto.
7862 * config/pa/hppaosf.mh: Ditto.
7863 * config/pa/hppabsd.mh: Ditto.
7864 * config/ns32k/nbsd.mt: Ditto.
7865 * config/mips/vr5000.mt: Ditto.
7866 * config/m68k/sun3os4.mh: Ditto.
7867 * config/m68k/nbsd.mt: Ditto.
7868 * config/m68k/m68klynx.mh: Ditto.
7869 * config/m32r/m32r.mt: Ditto.
7870 * config/i386/x86-64linux.mt: Ditto.
7871 * config/i386/nbsdelf.mt: Ditto.
7872 * config/i386/nbsd.mt: Ditto.
7873 * config/i386/i386lynx.mh: Ditto.
7875 2002-05-04 Andrew Cagney <ac131313@redhat.com>
7877 * target.c (debug_print_register): New function. Handle oversize
7879 (debug_to_fetch_registers): Call.
7880 (debug_to_store_registers): Call.
7882 2002-05-03 Jim Blandy <jimb@redhat.com>
7884 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
7885 (read_type): Doc fix.
7886 * gdbtypes.c (replace_type): Doc fix.
7888 * stabsread.c (multiply_defined_struct): New complaint.
7889 (read_struct_type): If the type we were passed isn't empty, or
7890 incomplete, don't read the new struct type into it; complain,
7891 and return the original type unchanged. Take a new `type_code'
7892 argument, which is the type code for the new type.
7893 (read_type): Rather than storing the type's type code here, pass
7894 it as an argument to read_struct_type, and let that take care of
7895 storing it. That way, we don't overwrite the original type code,
7896 so read_struct_type can use it to decide whether we're overwriting
7897 something we shouldn't.
7898 (complain_about_struct_wipeout): New function.
7900 2002-05-03 Andrew Cagney <ac131313@redhat.com>
7902 * gdbarch.sh: Assert that gdbarch is non-NULL.
7903 * gdbarch.c: Regenerate.
7905 2002-05-03 Jason Merrill <jason@redhat.com>
7907 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
7910 2002-05-03 Michal Ludvig <mludvig@suse.cz>
7912 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
7913 (x86_64_dwarf2gdb_regno_map_length),
7914 (x86_64_dwarf2_reg_to_regnum): Added.
7915 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
7916 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
7917 (_initialize_x86_64_tdep): Synced with the change above.
7918 (x86_64_skip_prologue): Reformulated message.
7920 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7922 * f-exp.y: Also use new prev_lexptr variable
7923 to improve error reporting. Based on Michael Snyder
7924 2002-04-24 dated patch to c-exp.y.
7925 * jv-exp.y: Likewise.
7926 * m2-exp.y: Likewise.
7928 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
7930 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
7931 we are dealing with vectors.
7933 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7935 * config/m68k/tm-nbsd.h: Obvious fix,
7936 correct machine name.
7938 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7940 * p-typeprint.c (pascal_type_print_base): Add support
7941 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
7943 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7945 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
7946 for fondamental pascal 'char' type.
7948 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
7950 * p-lang.h (is_pascal_string_type): Declaration changed,
7951 new sixth argument of type char ** added.
7952 * p-lang.c (is_pascal_string_type): Implementation
7953 changed. Args length_pos, length_size, string_pos, char_size
7954 can now be NULL. New argument arrayname set to the field
7955 name of the char array. Return value set to char array
7956 field index plus one.
7957 * p-valprint.c (pascal_val_print): Adapt to new declaration of
7958 is_pascal_string_type function.
7960 2002-05-02 Andrew Cagney <cagney@redhat.com>
7962 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
7963 <cagney@redhat.com> change.
7964 * gdbarch.c: Regenerate.
7966 2002-05-02 Andrew Cagney <cagney@redhat.com>
7968 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
7969 before probing for a new one. Detect errorenous gdbarch_init
7971 * gdbarch.c: Regenerate.
7973 2002-05-01 Andrew Cagney <cagney@redhat.com>
7975 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
7976 * config/mcore/tm-mcore.h: Ditto. Update copyright.
7977 * config/v850/tm-v850.h: Ditto. Update copyright.
7979 2002-04-30 Andrew Cagney <ac131313@redhat.com>
7981 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
7984 2002-04-30 Michael Snyder <msnyder@redhat.com>
7986 * arm-tdep.c: Whitespace clean-ups.
7987 (arm_skip_prologue): Fix thinko; two lines
7988 should have been removed as part of 4/24 change.
7990 2002-04-30 Kevin Buettner <kevinb@redhat.com>
7992 * rs6000-tdep.c: Added comment describing how fpscr register
7993 numbers were chosen.
7995 2002-04-30 Michael Snyder <msnyder@redhat.com>
7997 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
7999 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8001 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8002 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8003 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8005 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8007 From Louis Hamilton <hamilton@redhat.com>:
8008 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8009 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8010 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8011 not bfd-private xcoff data, to determine wordsize.
8012 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8014 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8016 GDB 5.2 released from 5.2 branch.
8018 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8020 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8021 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8022 (x86_64_register_info_table): Added comments with register numbers.
8024 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8026 * rs6000-tdep.c (rs6000_extract_return_value,
8027 rs6000_store_return_value): Handle returning vectors.
8028 (rs6000_gdbarch_init): Use
8029 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8030 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8032 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8034 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8035 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8037 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8039 * hpread.c (hpread_psymtab_to_symtab_1,
8040 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8041 with fprintf_unfiltered (gdb_stderr,...).
8043 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8045 * remote-array.c (printf_monitor, write_monitor,
8046 array_insert_breakpoint, array_remove_breakpoint ):
8047 Replace fprintf (stderr,...
8048 with fprintf_unfiltered (gdb_stderr,....
8049 * remote-es.c: Likewise.
8050 * remote-os9k.c: Likewise.
8051 * remote-st.c: Likewise.
8053 2002-04-28 Andreas Schwab <schwab@suse.de>
8055 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8056 linux-proc.o and gcore.o.
8058 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8060 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8061 code without frame pointers.
8063 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8065 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8068 2002-04-26 Ben Elliston <bje@redhat.com>
8070 * target.c (do_xfer_memory): Correct reference to the new option
8071 "trust-readonly-sections".
8073 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8075 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8076 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8077 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8079 (read_array_type): Record the fact that this array type is really a
8080 vector (i.e. are passed in by value).
8082 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8084 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8085 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8086 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8087 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8088 * alpha-linux-tdep.c: Include frame.h.
8089 (alpha_linux_sigcontext_addr): New function.
8090 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8091 alpha_linux_sigcontext_addr.
8092 * alpha-osf1-tdep.c: Include gdbcore.h.
8093 (alpha_osf1_sigcontext_addr): New function.
8094 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8095 alpha_osf1_sigcontext_addr.
8096 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8097 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8099 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8101 * stack.c (selected_frame_level):
8102 (select_frame): Do not set selected_frame_level.
8103 * frame.h (selected_frame_level): Delete declaration.
8105 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8107 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8108 convert_from_func_ptr-addr when AIX / PowerOpen.
8110 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8112 * valops.c (hand_function_call): Call
8113 generic_save_call_dummy_addr.
8114 * frame.h (generic_save_call_dummy_addr): Declare.
8115 * blockframe.c (struct dummy_frame): Add fields call_lo and
8117 (generic_find_dummy_frame): Check for PC in range call_lo to
8118 call_hi instead of entry_point_address.
8119 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8120 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8121 (generic_save_call_dummy_addr): New function.
8123 2002-04-24 David S. Miller <davem@redhat.com>
8125 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8126 sparc_skip_prologue.
8127 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8128 information to find prologue when possible.
8129 (sparc_prologue_frameless_p): Call examine_prologue directly.
8130 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8131 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8133 (SKIP_PROLOGUE): Likewise.
8135 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8137 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8138 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8139 indicate that the condition it was testing is always true.
8140 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8141 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8142 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8144 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8146 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8147 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8148 tdep->jb_pc and tdep->jb_elt_size.
8149 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8150 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8151 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8152 * alpha-nat.c (get_longjmp_target): Remove.
8153 (JB_ELEMENT_SIZE): Ditto.
8155 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8156 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8157 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8158 to alpha_get_longjmp_target.
8159 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8160 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8161 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8163 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8165 * README: Update to GDB 5.2.
8167 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8169 * gdbarch.sh (LC_ALL): Set to `c'.
8171 2002-04-25 Theodore A. Roth <troth@verinet.com>
8173 * avr-tdep.c: Ran through gdb_indent.sh.
8175 2002-04-25 Theodore A. Roth <troth@verinet.com>
8177 * MAINTAINERS: Add myself as AVR maintainer.
8178 * NEWS: Note new target avr.
8180 2002-04-25 Theodore A. Roth <troth@verinet.com>
8182 * Makefile.in: Add support for AVR target.
8183 * configure.tgt: Add support for AVR target.
8184 * avr-tdep.c: New file
8185 * config/avr/avr.mt: New file.
8187 2002-04-25 Theodore A. Roth <troth@verinet.com>
8189 * MAINTAINERS: Add myself to write-after-approval.
8191 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8193 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8194 with fprintf_unfiltered (gdb_stderr,....
8196 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8199 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8201 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8203 * p-exp.y: Also use new prev_lexptr variable
8204 to improve error reporting. Based on Michael Snyder
8205 2002-04-24 dated patch to c-exp.y.
8207 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8209 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8210 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8211 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8213 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8215 (FUNCTION_START_OFFSET): Remove.
8216 (BREAKPOINT): Ditto.
8218 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8220 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8223 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8225 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8226 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8227 alpha_linux_pc_in_sigtramp.
8228 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8229 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8230 alpha_osf1_pc_in_sigtramp.
8231 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8232 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8233 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8234 alphafbsd_pc_in_sigtramp.
8235 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8236 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8237 alphanbsd_pc_in_sigtramp.
8238 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8239 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8241 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8243 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8245 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8247 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8249 (alphanbsd-nat.o): New dependency list.
8250 (alphanbsd-tdep.o): Ditto.
8251 * NEWS: Note new native NetBSD/alpha configuration.
8252 * alphanbsd-nat.c: New file.
8253 * alphanbsd-tdep.c: Ditto.
8254 * configure.host (alpha*-*-netbsd*): New host.
8255 * configure.tgt (alpha*-*-netbsd*): New target.
8256 * config/alpha/nbsd.mh: New file.
8257 * config/alpha/nbsd.mt: Ditto.
8258 * config/alpha/nm-nbsd.h: Ditto.
8259 * config/alpha/tm-nbsd.h: Ditto.
8261 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8263 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8264 (alpha-osf1-tdep.o): New dependency list.
8265 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8266 and skip_sigtramp_frame members.
8267 * alpha-linux-tdep.c: Include gdbcore.h.
8268 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8269 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8270 * alpha-osf1-tdep.c: New file.
8271 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8273 (alpha_frame_past_sigtramp_frame): New function.
8274 (alpha_dynamic_sigtramp_offset): Ditto.
8275 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
8276 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
8277 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
8278 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
8279 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
8280 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
8281 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
8282 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
8283 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
8284 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
8285 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
8286 to find_solib_trampoline_target.
8287 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
8288 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
8289 (SKIP_TRAMPOLINE_CODE): Remove.
8290 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8291 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8292 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8293 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8294 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
8295 (PROC_SIGTRAMP_MAGIC): Ditto.
8296 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8297 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8298 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
8299 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
8300 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
8302 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8304 * NEWS: Note that Alpha targets are now multi-arch.
8306 2002-04-24 Michael Snyder <msnyder@redhat.com>
8308 * parser-defs.h (prev_lexptr): New external variable.
8309 * parse.c (parse_exp_1): Set prev_lexptr to null before
8310 calling the language-specific parser.
8311 * c-exp.y (yylex): Set prev_lexptr to start of current token.
8312 (yyerror): Use prev_lexptr in error reporting.
8314 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
8316 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
8317 * gregset.h: If FILL_FPXREGSET is defined, provide
8318 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
8319 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
8320 is defined, call fill_fpxregset.
8322 2002-04-24 Roland McGrath <roland@frob.com>
8324 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
8325 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
8326 (supply_gregset, supply_fpregset): New functions.
8328 * gnu-nat.c (gnu_find_memory_regions): New function.
8329 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
8330 (gnu_xfer_memory): Add a cast.
8332 2002-04-24 Michael Snyder <msnyder@redhat.com>
8334 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
8335 loop. Add handling for "str lr, [sp, #-4]!" and for saves
8336 of argument regs ("str r(0123), [r11, #-nn"]).
8337 (arm_skip_prologue): Better handling for frameless functions.
8338 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
8339 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
8341 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
8343 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
8344 NUM_PSEUDO_REGS can be used.
8346 2002-04-24 Andrew Cagney <ac131313@redhat.com>
8348 * arch-utils.h: Update copyright.
8350 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
8351 * gdbarch.h, gdbarch.c: Re-generate.
8353 * inferior.h (IN_SIGTRAMP): Delete definition.
8354 * arch-utils.c (legacy_pc_in_sigtramp): New function.
8355 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
8357 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
8358 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
8359 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
8360 (find_proc_framesize): Ditto.
8361 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
8362 (alpha_init_extra_frame_info): Ditto.
8363 * infrun.c (handle_inferior_event): Ditto.
8364 (handle_inferior_event): Ditto.
8365 (check_sigtramp2): Ditto.
8366 * blockframe.c (create_new_frame): Ditto.
8367 (get_prev_frame): Ditto.
8368 * ppc-linux-tdep.c: Update comments.
8369 * i386-linux-tdep.c: Update comments.
8370 * breakpoint.c (bpstat_what): Update comment.
8372 2002-04-24 David S. Miller <davem@redhat.com>
8374 * i960-tdep.c (register_in_window_p): New function.
8375 (i960_find_saved_register): Use it instead of
8376 REGISTER_IN_WINDOW_P.
8377 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
8379 * symtab.h (find_stab_function_addr): Kill extern.
8380 * minsyms.c (find_stab_function_addr): Remove from here...
8381 * dbxread.c: ... to here, and mark it static.
8383 2002-04-20 David S. Miller <davem@redhat.com>
8385 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
8386 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
8388 2002-04-21 David S. Miller <davem@redhat.com>
8390 * remote-vxsparc.c (vx_read_register): Fix typo, we want
8391 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
8392 (vx_write_register): Likewise.
8394 2002-04-23 J. Brobecker <brobecker@gnat.com>
8396 * source.c (is_regular_file): New function.
8397 (openp): Check wether file to open is a regular file
8398 to avoid opening directories.
8400 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8402 * findvar.c (extract_signed_integer): Cast printf argument
8403 to suppress format warning.
8404 (extract_unsigned_integer): Likewise.
8405 * infcmd.c (registers_info): Likewise.
8406 * top.c (get_prompt_1): Likewise.
8407 * valops.c (value_assign): Likewise.
8408 * valprint.c (print_decimal): Likewise.
8410 2002-04-22 H.J. Lu (hjl@gnu.org)
8412 * c-exp.y (typebase): Support
8414 [long|long long|short] [signed|unsigned] [int|]
8418 signed [long|long long|short] int
8420 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8422 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
8424 * vax-tdep.h: New file.
8425 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
8426 Make several routines static.
8427 (vax_get_saved_register): New function.
8428 (vax_gdbarch_init): New function.
8429 (_initialize_vax_tdep): Register vax_gdbarch_init.
8430 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
8431 Remove macros now under the control of gdbarch.
8433 2002-04-22 Michael Snyder <msnyder@redhat.com>
8435 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
8436 Some whitespace and coding standards tweaks.
8438 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8440 * vax-tdep.c: Include regcache.h.
8441 (vax_call_dummy_words): New.
8442 (sizeof_vax_call_dummy_words): New.
8443 (vax_fix_call_dummy): New function.
8444 (vax_saved_pc_after_call): Ditto.
8445 * config/vax/tm-vax.h: Don't include regcache.h.
8446 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
8447 (CALL_DUMMY): Remove.
8448 (CALL_DUMMY_WORDS): Define.
8449 (SIZEOF_CALL_DUMMY_WORDS): Define.
8450 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
8452 2002-04-18 Michael Snyder <msnyder@redhat.com>
8454 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
8456 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8458 * vax-tdep.c (vax_frame_chain): New function.
8459 (vax_push_dummy_frame): Ditto.
8460 (vax_pop_frame): Ditto.
8461 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
8462 (FRAMELESS_FUNCTION_INVOCATION): Use
8463 generic_frameless_function_invocation_not.
8464 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
8465 (POP_FRAME): Use vax_pop_frame.
8467 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8469 * vax-tdep.c (vax_store_struct_return): New function.
8470 (vax_extract_return_value): Ditto.
8471 (vax_store_return_value): Ditto.
8472 (vax_extract_struct_value_address): Ditto.
8473 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
8474 vax_store_struct_return.
8475 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
8476 (STORE_RETURN_VALUE): Use vax_store_return_value.
8477 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
8479 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8481 * vax-tdep.c (vax_frame_saved_pc): New function.
8482 (vax_frame_args_address_correct): Ditto.
8483 (vax_frame_args_address): Ditto.
8484 (vax_frame_locals_address): Ditto.
8485 (vax_frame_num_args): Move code to be in proximity to
8486 other frame-related functions.
8487 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
8488 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
8489 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
8490 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
8491 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
8493 2002-04-22 H.J. Lu (hjl@gnu.org)
8495 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
8498 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8500 * vax-tdep.c (vax_frame_init_saved_regs): New function.
8501 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
8502 (FRAME_INIT_SAVED_REGS): New macro.
8504 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8506 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
8508 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8510 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
8512 (fetch_osf_core_registers): Likewise.
8513 (supply_gregset): Likewise.
8515 2002-04-22 J. Brobecker <brobecker@gnat.com>
8517 * symfile.h (get_section_index): Define.
8518 * symfile.c (get_section_index): New function.
8519 * mdebugread.c (SC_IS_SBSS): New macro.
8520 (SC_IS_BSS): Return true for the scBss storage class only, as
8521 the scSBss storage class refers to the .sbss section.
8522 (parse_partial_symbols): Discard the symbols which associated
8523 section does not exist.
8524 Make sure to use the .sbss section index for symbols which
8525 storage class is scBss, rather than using the .bss section index.
8527 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
8529 * vax-tdep.c: Update copyright years.
8530 (vax_register_name): New function.
8531 (vax_register_byte): Ditto.
8532 (vax_register_raw_size): Ditto.
8533 (vax_register_virtual_size): Ditto.
8534 (vax_register_virtual_type): Ditto.
8535 * config/vax/tm-vax.h: Update copyright years.
8536 (REGISTER_NAMES): Remove.
8537 (REGISTER_NAME): Define.
8538 (REGISTER_BYTE): Use vax_register_byte.
8539 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
8540 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
8541 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
8543 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8545 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
8547 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
8549 2002-04-21 David S. Miller <davem@redhat.com>
8551 * arch-utils.c (generic_prologue_frameless_p): Kill
8552 SKIP_PROLOGUE_FRAMELESS_P code.
8553 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8555 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
8556 * arc-tdep.c (arc_prologue_frameless_p): Implement.
8557 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
8559 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
8560 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
8561 (sparc_gdbarch_init): Pass it to
8562 set_gdbarch_prologue_frameless_p.
8564 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8566 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
8567 (alphabsd-nat.o): New dependency list.
8569 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8571 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
8573 (alpha-linux-tdep.o): New dependency list.
8574 (alphafbsd-tdep.o): Likewise.
8576 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8578 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
8580 * alpha-tdep.c: ...from here.
8581 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
8583 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8585 * config/alpha/tm-alpha.h: Move alpha_software_single_step
8586 prototype from here...
8587 * alpha-tdep.h: ...to here.
8589 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8591 * frame.h (selected_frame_level): Document as deprecated.
8592 (frame_relative_level): Declare.
8593 * stack.c (frame_relative_level): New function.
8594 (selected_frame_level): Document as deprecated.
8595 (select_frame): Do not set the selected_frame_level.
8597 * stack.c (frame_info, record_selected_frame): Update.
8598 (frame_command, current_frame_command): Update.
8599 (up_silently_base, up_command, down_silently_base): Update.
8600 (down_command): Update.
8601 * inflow.c (kill_command): Update.
8602 * tracepoint.c (finish_tfind_command): Update.
8603 * corelow.c (core_open): Update.
8604 * thread.c (info_threads_command): Update.
8605 (do_captured_thread_select): Update.
8606 * infcmd.c (finish_command): Update.
8607 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
8609 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8611 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
8613 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8615 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
8618 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8620 * alphafbsd-tdep.c: Update copyright years. Include
8622 (alphafbsd_use_struct_convention): Make static.
8623 (alphafbsd_init_abi): New function.
8624 (_initialize_alphafbsd_tdep): New function.
8625 * config/alpha/tm-fbsd.h: Update copyright years.
8626 (USE_STRUCT_CONVENTION): Remove.
8628 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8630 * alpha-tdep.c (alpha_abi_handler): New structure to describe
8631 an Alpha ABI variant.
8632 (alpha_abi_handler_list): Declare.
8633 (alpha_gdbarch_register_os_abi): New function.
8634 (alpha_gdbarch_init): Give registered ABI variant handlers a
8635 chance to tweak the gdbarch once we have set up defaults.
8636 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
8638 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8640 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
8641 to standard_coerce_float_to_double.
8642 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
8644 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8646 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
8647 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
8648 from gdbarch_tdep rather than a constant.
8649 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
8650 the default text address for all Alpha Unix ABIs.
8651 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
8652 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
8654 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
8656 * alpha-tdep.h: New file. Includes several Alpha target constants
8658 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
8659 let gdbarch deal with.
8660 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
8661 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
8663 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
8664 Alpha target register names.
8665 * alphabsd-nat.c: Likewise.
8666 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
8667 Alpha target register names. Make serveral routines static.
8668 (alpha_get_saved_register): New function.
8669 (alpha_abi_names): New.
8670 (process_note_abi_tag_sections): New function.
8671 (get_elfosabi): New function.
8672 (alpha_gdbarch_init): New function.
8673 (alpha_dump_tdep): New function.
8674 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
8676 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8678 * frame.c (find_saved_register): Delete #ifdef
8679 HAVE_REGISTER_WINDOWS code.
8680 * config/sparc/tm-sparc.h: Update comments.
8681 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
8683 2002-04-21 Andrew Cagney <ac131313@redhat.com>
8685 * i960-tdep.c (i960_find_saved_register): New function.
8686 (i960_get_saved_register): New function.
8687 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
8688 (i960_get_saved_register): Declare.
8689 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
8691 2002-04-20 David S. Miller <davem@redhat.com>
8693 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
8695 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8697 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
8698 instead of NUM_PSEUDO_REGS.
8700 2002-04-20 David S. Miller <davem@redhat.com>
8702 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
8703 GDB_MULTI_ARCH_PARTIAL
8704 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
8705 define, let tm-sp64.h do it.
8707 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
8709 * frame.c (find_saved_register): Avoid a NULL pointer
8710 dereference and actually walk the frame list.
8712 2002-04-20 Andrew Cagney <ac131313@redhat.com>
8714 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
8715 sorted in most most-recent-used order. Document.
8716 * gdbarch.h, gdbarch.c: Regenerate.
8718 2002-04-19 Andrew Cagney <ac131313@redhat.com>
8720 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
8722 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
8723 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
8724 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
8727 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
8730 * gdbtypes.c (init_simd_type): Rewrite using new functions.
8731 (build_builtin_type_vec128): Ditto.
8732 (append_composite_type_field): Fix calculation of type length in
8735 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
8737 * config/djgpp/README: Update.
8739 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
8742 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
8744 * alpha-tdep.c (setup_arbitrary_frame): Rename...
8745 (alpha_setup_arbitrary_frame): ...to this.
8746 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
8747 for alpha_setup_arbitrary_frame.
8749 2002-04-18 Andrew Cagney <cagney@redhat.com>
8751 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
8752 * gdbarch.h, gdbarch.c: Regenerate.
8754 * defs.h (breakpoint_from_pc_fn): Delete type definition.
8755 * target.h (memory_breakpoint_from_pc): Update declaration.
8756 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
8758 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
8759 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
8760 * mem-break.c (memory_breakpoint_from_pc): Ditto.
8761 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
8762 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
8763 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
8764 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
8765 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
8766 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
8767 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
8768 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
8769 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
8771 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
8773 * monitor.c (monitor_insert_breakpoint): Ditto.
8774 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
8776 * config/mcore/tm-mcore.h: Update copyright.
8777 * mem-break.c: Ditto.
8778 * xstormy16-tdep.c: Ditto.
8780 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
8782 * p-exp.y: Add precedence rule for '^' token.
8783 This removes the shift/reduce conflicts.
8784 Remove the comment concerning these shift/reduce conflicts.
8786 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
8788 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
8789 (registers_powerpc_nofp): New register set for processors
8790 without floating point unit.
8792 2002-04-18 David S. Miller <davem@redhat.com>
8794 * MAINTAINERS: Add myself to write-after-approval.
8796 2002-04-17 Michael Snyder <msnyder@redhat.com>
8798 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
8800 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8802 * rs6000-tdep.c (frame_initial_stack_address): Use
8803 frame_register_read to read the alloca_reg.
8805 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8807 * frame.c (find_saved_register): Find saved registers in the next
8811 2002-04-17 Andrew Cagney <ac131313@redhat.com>
8813 * gdbarch.sh (LANG): Set to ``c''.
8815 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8817 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
8819 2002-04-15 Andrew Cagney <ac131313@redhat.com>
8821 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
8824 * hpread.c (hpread_get_lntt): Add declaration.
8825 Also fix PR gdb/391.
8827 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8829 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
8830 * aclocal.m4, configure: Re-generate.
8833 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8835 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
8836 instead of tm_print_insn.
8838 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
8840 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
8842 2002-04-14 Andrew Cagney <ac131313@redhat.com>
8844 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
8845 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
8846 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
8848 2002-04-12 Don Howard <dhoward@redhat.com>
8850 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
8851 max_user_call_depth.
8852 (init_cmd_lists): Initialize the new value;
8853 * cli/cli-script.c (execute_user_command): Limit the call depth of
8854 user defined commands. This avoids a core-dump when user commands
8855 are infinitly recursive.
8857 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8859 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
8860 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
8861 from tdep struct instead of DEFAULT_LR_SAVE.
8862 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
8863 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
8864 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
8866 2002-04-12 Michael Snyder <msnyder@redhat.com>
8868 * Remote.c: Spelling fix.
8869 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
8870 If no symbol found for "sbrk", try "_sbrk".
8871 (make_output_phdrs): Use bfd_section_name.
8872 (gcore_copy_callback): Use bfd_section_name.
8873 * eval.c: Indentation fix-ups.
8874 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
8875 in case it gets applied to an address that is already
8876 in the instruction space.
8877 * cli/cli-decode.c (help_list): Allow long lines to wrap.
8878 * symfile.c: Fix indentation, long lines.
8879 * source.c: White space fix-up.
8881 2002-04-12 Andrew Cagney <cagney@redhat.com>
8883 * defs.h (read_relative_register_raw_bytes): Delete declaration.
8884 * frame.c (frame_register_read): New function. Return non-zero on
8886 (read_relative_register_raw_bytes_for_frame): Delete.
8887 (read_relative_register_raw_bytes): Delete.
8888 * frame.h (frame_register_read): Declare.
8889 * d30v-tdep.c: Update Copyright. Use frame_register_read.
8891 * infcmd.c (do_registers_info): Ditto.
8892 * hppa-tdep.c: Ditto.
8893 * rs6000-tdep.c: Ditto.
8894 * h8500-tdep.c: Ditto.
8895 * mips-tdep.c: Ditto.
8896 * h8300-tdep.c: Ditto.
8897 * z8k-tdep.c: Ditto.
8899 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8901 From Jimi X <jimix@watson.ibm.com>:
8902 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
8905 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8907 From Jimi X <jimix@watson.ibm.com>:
8908 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
8911 2002-04-12 Kevin Buettner <kevinb@redhat.com>
8913 From Jimi X <jimix@watson.ibm.com>:
8914 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
8915 register sets for these processor variants.
8917 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
8919 * regformats/reg-ppc.dat: Support FPSCR.
8921 2002-04-11 Kevin Buettner <kevinb@redhat.com>
8923 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
8924 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
8925 Add fpscr as an invalid/unfetchable register.
8926 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
8927 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
8928 (fill_fpregset): Add support for register fpscr.
8929 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
8930 (fill_gregset): Account for the fact that register ``mq'' might
8932 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
8933 (registers_power): Add fpscr to register set at slot 71.
8934 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
8935 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
8937 2002-04-11 Michael Snyder <msnyder@redhat.com>
8939 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
8940 * configure: Regenerate.
8941 * config.in: Regenerate.
8942 * acconfig.h: Add define for _SYSCALL32.
8943 * core-sol2.c: Remove #define _SYSCALL32.
8944 * solib-legacy.c: Remove #define _SYSCALL32.
8946 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8948 * stack.c (select_frame): Cleanup internal error message, do not
8951 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8953 * stack.c (select_frame): Check that selected_frame and the
8954 specified level are as expected.
8955 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
8957 * frame.h (struct frame_info): Add field `level'. Update
8959 Work-in-progress PR gdb/464.
8961 2002-04-10 Andrew Cagney <ac131313@redhat.com>
8963 * maint.c (maint_print_section_info): Rename print_section_info.
8964 (print_bfd_section_info, print_objfile_section_info): Update.
8965 * inferior.h (struct gdbarch): Add opaque declaration.
8966 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
8967 * gdbarch.h: Regenerate.
8969 2002-04-10 Michal Ludvig <mludvig@suse.cz>
8971 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
8972 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
8973 (kernel_u_size): Added.
8974 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
8975 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
8977 2002-04-04 Jim Ingham <jingham@apple.com>
8979 * valarith.c (find_size_for_pointer_math): New function, either returns
8980 the size for a pointer's target, returns 1 for void *, or errors for
8982 (value_add, value_sub): use find_size_for_pointer_math.
8984 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
8986 * linux-low.c (linux_look_up_symbols): New hook.
8987 (linux_target_ops): Add linux_look_up_symbols.
8988 * remote-utils.c (decode_address): New function.
8989 (look_up_one_symbol): New function.
8990 * server.c (handle_query): Call target look_up_symbols hook.
8991 * server.h (look_up_one_symbol): Add prototype.
8992 * target.h (struct target_ops): Add look_up_symbols hook.
8994 2002-04-09 Andrew Cagney <ac131313@redhat.com>
8996 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
8997 override FP_REGNUM with frame->fp. Update copyright.
8998 * parse.c (num_std_regs, std_regs): Delete.
8999 (target_map_name_to_register): Do not search std_regs. Update
9000 function description.
9001 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9002 declarations. Update copyright.
9005 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9007 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9008 after the last symbol in a block.
9010 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9012 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9013 is non zero as a found symbol.
9015 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9017 * findvar.c: Include "builtin-regs.h".
9018 (value_of_register): Call value_of_builtin_reg when applicable.
9019 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9020 (target_map_name_to_register): Call
9021 builtin_reg_map_name_to_regnum.
9022 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9023 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9024 (builtin_regs_h): Define.
9025 (builtin-regs.o): New target.
9026 (findvar.o): Add $(builtin_regs_h).
9027 * builtin-regs.c, builtin-regs.h: New files.
9028 * std-regs.c: New file.
9029 Partial fix for PR gdb/251.
9031 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9033 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9034 it's no longer required.
9036 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9038 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9040 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9042 From Jimi X <jimix@watson.ibm.com>:
9043 * rs6000-tdep.c (rs6000_software_single_step): Use
9044 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9045 and size. Use target_insert_breakpoint() and
9046 target_remove_breakpoint() to insert and remove breakpoints
9047 instead of explicit memory reads and writes.
9049 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9051 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9052 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9053 ELF_OBJECT_FORMAT ifdef.
9055 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9057 From Jimi X <jimix@watson.ibm.com>:
9058 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9060 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9062 From Jimi X <jimix@watson.ibm.com>:
9063 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9064 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9066 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9068 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9069 s/asprintf/xasprintf/.
9070 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9072 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9074 I believe Jeff Law denies responsability for this one:
9075 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9076 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9077 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9078 Work-around for PR gdb/366.
9080 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9082 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9083 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9084 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9086 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9088 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9089 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9092 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9094 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9097 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9099 * README (Reporting Bugs in GDB): Document the bug web page as the
9100 prefered way of submitting bugs.
9103 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9105 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9107 * gdbarch.h, gdbarch.c: Re-generate.
9109 2002-04-07 Andreas Schwab <schwab@suse.de>
9111 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9112 buffer to regcache_collect.
9114 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9116 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9117 * gdbarch.c, gdbarch.h: Re-generate.
9119 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9121 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9122 declaration. Fix -Werror.
9124 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9126 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9127 * gdbarch.c: Regenerate.
9129 2002-04-05 Michael Snyder <msnyder@redhat.com>
9131 * breakpoint.c (clear_command): Rewrite middle section to
9132 combine two loops with identical control conditions.
9133 Add a cleanup to eliminate a memory leak.
9134 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9136 2002-04-05 H.J. Lu (hjl@gnu.org)
9138 * solib-svr4.c (bkpt_names): Add "__start".
9140 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9142 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9143 as test for 64 bit target.
9145 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9147 * h8500-tdep.c (h8500_write_fp): Delete function.
9148 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9149 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9150 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9152 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9153 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9155 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9156 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9157 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9158 (d10v_write_fp): Delete function.
9159 * inferior.h (write_fp, generic_target_write_fp): Delete
9161 * regcache.c (generic_target_write_fp): Delete function.
9162 (write_fp): Delete function.
9163 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9164 * gdbarch.h, gdbarch.c: Regenerate.
9165 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9166 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9167 (sparc64_write_fp): Delete declaration.
9168 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9169 (h8500_write_fp): Delete declaration.
9171 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9173 * sparc-tdep.c (sparc64_write_fp): Delete.
9174 (sparc_push_dummy_frame): Replace write_fp call with code to store
9176 (sparc_gdbarch_init): Do not initialize write_fp.
9178 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9180 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9183 2002-03-29 Jim Blandy <jimb@redhat.com>
9185 * stack.c (get_selected_block): Add new argument `addr_in_block',
9186 used to return the exact code address we used to select the block,
9188 * blockframe.c (get_frame_block, get_current_block): Same.
9189 * frame.h (get_frame_block, get_current_block,
9190 get_selected_block): Update declarations.
9191 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9192 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9194 2002-04-05 Michael Snyder <msnyder@redhat.com>
9196 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9199 2002-04-05 J. Brobecker <brobecker@gnat.com>
9201 * utils.c (xfullpath): New function.
9202 * defs.h (xfullpath): Add declaration.
9203 * source.c (openp): Use xfullpath in place of gdb_realpath to
9204 avoid resolving the basename part of filenames when the
9205 associated file is a symbolic link. This fixes a potential
9206 inconsistency between the filenames known to GDB and the
9207 filenames it prints in the annotations.
9208 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9209 to be able to match a filename with either the real filename, or
9210 the name of any symbolic link to this file.
9211 (lookup_partial_symtab): Ditto.
9213 2002-04-04 Michael Snyder <msnyder@redhat.com>
9215 * breakpoint.c: Add support for hardware breakpoints in overlays.
9216 (overlay_events_enabled): New state variable.
9217 (insert_breakpoints): Use overlay_events_enabled to decide
9218 whether to attempt to set a breakpoint at the overlay load addr.
9219 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9220 (remove_breakpoint): Use overlay_events_enabled to decide
9221 whether breakpoints need to be removed from overlay load addr.
9222 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9223 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9224 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9225 disable_overlay_breakpoints): Update overlay_events_enabled.
9227 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9229 * dwarf2read.c (struct function_range): New.
9230 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9231 (check_cu_functions): New.
9232 (read_file_scope): Initialize global function lists.
9233 Call dwarf_decode_line after processing children.
9234 (read_func_scope): Add to global function list.
9235 (dwarf_decode_lines): Call check_cu_functions everywhere
9236 record_line is called. Call record_line with a linenumber
9237 of 0 to mark sequence ends.
9239 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9241 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9242 change sync with glibc.
9244 2002-04-03 Jim Blandy <jimb@redhat.com>
9246 * configure.in: Call AC_C_INLINE.
9247 * configure: Regenerated.
9249 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9251 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9252 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9254 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9256 * NEWS: Mention gcore support on FreeBSD/i386.
9258 * fbsd-proc.c: New file.
9259 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9260 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9262 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9265 2002-03-29 Jim Blandy <jimb@redhat.com>
9267 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9268 unescaped newlines in string literals, but newer ones don't. So
9271 2002-03-26 Michael Snyder <msnyder@redhat.com>
9272 Andrew Cagney <cagney@redhat.com>
9274 * cli/cli-dump.c: New file. Dump memory to file,
9275 restore file to memory.
9276 * cli/cli-dump.h: New file.
9277 * Makefile.in: Add rules, dependencies for cli-dump.o.
9278 * NEWS: Mention new commands.
9280 2002-03-28 Michael Snyder <msnyder@redhat.com>
9282 * symfile.c (symbol_file_add): Move test for null symbols to later.
9284 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9286 From veksler at il.ibm.com:
9287 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
9288 the xstrduped original path.
9291 2002-03-27 Michael Snyder <msnyder@redhat.com>
9293 * breakpoint.c (_initialize_breakpoint): Clean up help string.
9294 * infcmd.c (_initialize_infcmd): Ditto.
9295 * language.c (_initialize_language): Ditto.
9296 * symfile.c (_initialize_symfile): Ditto.
9297 * top.c (_init_main): Ditto.
9298 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9300 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
9302 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
9303 vector registers handling.
9304 (skip_prologue): Handle new AltiVec instructions. Fill in new
9305 fields of frame data.
9306 (frame_get_saved_regs): Fill in information for AltiVec registers.
9308 2002-03-27 Jim Blandy <jimb@redhat.com>
9310 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
9311 a function; leave this macro here to invoke that function.
9312 (symbol_init_mangled_name): Declaration for that function.
9313 * symtab.c (symbol_init_mangled_name): New function.
9315 2002-03-27 Andrew Cagney <ac131313@redhat.com>
9317 * valarith.c: Replace strerror with safe_strerror.
9318 * tracepoint.c: Ditto.
9320 * go32-nat.c: Ditto.
9324 2002-03-27 Andreas Schwab <schwab@suse.de>
9326 * event-top.c (command_line_handler): Remove useless if.
9328 2002-03-27 Andreas Jaeger <aj@suse.de>
9330 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
9333 2002-03-27 Michal Ludvig <mludvig@suse.cz>
9335 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
9336 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
9337 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
9338 (x86_64_linux_dr_get_status, supply_gregset),
9339 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
9340 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
9341 (x86_64_register_info_table): Add.
9342 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
9343 (x86_64_register_raw_size, x86_64_register_virtual_type),
9344 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
9345 general x86_64_register_info_table.
9346 (i386_gdbarch_init): gdbarch_register_bytes is now set
9347 dynamicaly during initialization.
9348 * regformats/reg-x86-64.dat: Synced with changes to registers above.
9349 * gdbserver/linux-x86-64-low.c: Ditto.
9351 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9353 * gdbserver/server.c (main): Call target_signal_to_host_p
9354 and target_signal_to_host on signals received from the remote.
9355 * gdbserver/remote-utils.c (prepare_resume_reply): Call
9356 target_signal_from_host on signals sent to the remote.
9357 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
9358 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
9360 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9362 * signals/signals.c: Include "server.h" in gdbserver build.
9363 (target_signal_from_name): Don't use STREQ.
9364 (_initialize_signals): Likewise. Don't include function in
9367 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
9369 * signals.c: Moved to...
9370 * signals/signals.c: Here.
9371 * Makefile (signals.o): Update.
9373 2002-03-26 Jeff Law (law@redhat.com)
9375 * somread.c (som_symtab_read): Remove some commented out code and
9376 updated related comments. Do not set the minimal symbol table to
9377 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
9378 in a dynamic executable.
9379 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
9380 where we are unable to find the minimal symbol for the given
9383 2002-03-25 Jeff Law (law@redhat.com)
9385 * linux-proc.c (read_mapping): Scan up to end of line for filename.
9387 2002-03-25 Michal Ludvig <mludvig@suse.cz>
9389 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
9391 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9393 * command.h: Update copyright.
9394 (struct cmd_list_element): Replace definition with opaque
9396 (enum cmd_types): Document that it will eventually be moved to
9398 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
9399 (MALLOCED_REPLACEMENT): Delete macro.
9400 * Makefile.in (cli_decode_h): Add $(command_h).
9401 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
9402 * top.c: Include "cli/cli-decode.h".
9403 * completer.c: Include "cli/cli-decode.h".
9404 * maint.c: Include "cli/cli-decode.h".
9405 * cli/cli-decode.h: Include "command.h".
9406 (enum command_class): Delete.
9407 (enum cmd_types): Comment out.
9408 (enum cmd_auto_boolean): Delete.
9409 (enum var_types): Delete.
9411 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9413 * cli/cli-decode.c: Include "gdb_assert.h".
9414 (add_set_or_show_cmd): New static function.
9415 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
9416 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
9417 all fields, such as func, from the set command.
9419 2002-03-23 Andrew Cagney <ac131313@redhat.com>
9421 * MAINTAINERS (sh-elf): Change warning flag to -w.
9423 2002-03-23 Andrew Cagney <cagney@redhat.com>
9425 * defs.h (error): Add printf format attribute.
9426 * thread-db.c (thread_from_lwp): Fix error format string.
9427 * stack.c (parse_frame_specification): Ditto.
9428 * cli/cli-decode.c (undef_cmd_error): Ditto.
9429 * scm-lang.c (scm_lookup_name): Ditto.
9430 * tracepoint.c (trace_error): Ditto.
9431 * remote-utils.c (usage): Ditto.
9432 * remote.c (compare_sections_command): Ditto.
9435 2002-03-22 Andrew Cagney <ac131313@redhat.com>
9437 * gdbtypes.c (append_composite_type_field): New function.
9438 (init_composite_type): New function.
9439 * gdbtypes.h (append_composite_type_field): Declare.
9440 (init_composite_type): Ditto.
9442 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
9444 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
9446 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
9447 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
9448 structure returning convention for SYSV ABI case, but not
9449 for GNU/Linux, FreeBSD, or NetBSD.
9451 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
9453 * symtab.h (lookup_block_symbol): Add mangled_name argument
9456 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
9457 with new mangled_name argument.
9458 * linespec.c (decode_line_1): Likewise.
9459 * valops (value_of_this): Likewise.
9460 * symtab.c (lookup_transparent_type): Likewise.
9461 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
9462 (lookup_symbol): If we are given a mangled name, pass it down
9463 to lookup_symbol_aux.
9464 (lookup_block_symbol): If we are given a mangled name to check
9465 against, only return symbols which match it.
9467 2002-03-22 Christopher Faylor <cgf@redhat.com>
9469 * win32-nat.c (child_create_inferior): Check for proper shell to use
9470 here, in case the user changes it on the fly.
9471 (_initialize_inftarg): Remove shell path considerations.
9473 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
9475 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
9476 for gdbarch_max_register_raw_size and max_register_virtual_size.
9477 Adjust copyright year.
9479 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
9481 * dbxread.c (process_one_symbol): Extend the first N_SLINE
9482 in a function to cover the entire beginning of the function
9483 as well if it does not already.
9485 2002-03-21 Tom Rix <trix@redhat.com>
9487 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
9488 (rs6000_ptrace64): Renamed from ptrace64.
9490 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9492 * gdbserver/remote-utils.c (remote_open): Don't call
9493 getprotobyname, we're all using TCP here so just use
9495 * gdbserver/gdbreplay.c (remote_open): Ditto.
9497 2002-03-20 Martin M. Hunt <hunt@redhat.com>
9499 * regcache.c (_initialize_regcache): No need to call
9500 build_regcache() at this time; it gets called whenever
9501 the gdbarch changes.
9503 2002-03-20 David O'Brien <obrien@FreeBSD.org>
9505 * sparc-nat.c: Include sys/param.h where possible.
9507 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
9510 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
9511 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
9512 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
9514 * stabsread.c (rs6000_builtin_type): Likewise.
9515 (read_sun_floating_type): Likewise.
9517 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9519 * stabsread.c (read_member_functions): Remove skip code for duplicate
9520 constructor/destructor methods. Use standard parsing for these
9521 methods and just do not chain them to the list of methods after
9524 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
9526 * coffread.c: Remove redundant static declarations. Replace
9527 occurrences of `PTR' with `void *'.
9528 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
9529 * top.h (quit_cover): Likewise.
9530 * defs.h (catch_errors): Likewise.
9532 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9534 * defs.h (XMALLOC): Define.
9535 * gdb-events.sh (XMALLOC): Delete macro.
9536 * gdb-events.c, gdb-events.h: Regenerate.
9537 * gdbarch.sh (XMALLOC): Delete macro.
9538 * gdbarch.c: Regenerate.
9539 * serial.c (XMALLOC): Delete macro.
9540 * ui-file.c (XMALLOC): Ditto.
9541 * ser-unix.h (XMALLOC): Ditto.
9542 * sh-tdep.c (XMALLOC): Ditto.
9543 * ui-out.c (XMALLOC): Ditto.
9544 * utils.c (XMALLOC): Ditto.
9545 * i386-tdep.c (XMALLOC): Ditto.
9546 * gdb-events.c (XMALLOC): Ditto.
9547 * d10v-tdep.c (XMALLOC): Ditto.
9548 * cli-out.c (XMALLOC): Ditto.
9550 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
9551 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
9552 * ui-file.c, ui-out.c: Ditto.
9554 2002-03-18 Andrew Cagney <ac131313@redhat.com>
9556 * command.h (struct cmd_list_element): Add field context.
9557 (set_cmd_context, get_cmd_context): Declare.
9558 * cli/cli-decode.h: Ditto.
9559 * cli/cli-decode.c (get_cmd_context): New function.
9560 (set_cmd_context): New function.
9561 (add_cmd): Initialize context.
9562 Part of fixing PR gdb/145 and PR gdb/146.
9564 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9566 * cli/cli-decode.c (cmd_type): New function.
9567 * command.h (cmd_type): Declare.
9568 * infrun.c (set_schedlock_func): Call function cmd_type.
9569 * kod.c (kod_set_os): Call cmd_type.
9570 * cris-tdep.c (cris_version_update): Use function cmd_type.
9571 (cris_mode_update, cris_abi_update): Ditto.
9573 * command.h: (execute_cmd_post_hook): Declare.
9574 (execute_cmd_pre_hook): Declare.
9575 * cli/cli-script.c (clear_hook_in_cleanup): New function.
9576 (execute_cmd_post_hook, execute_cmd_pre_hook): New
9577 functions. Execute pre/post hook while ensuring that afterwords
9579 * top.c (execute_command): Use execute_cmd_post_hook, and
9580 execute_cmd_pre_hook to execute pre/post commands.
9581 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
9583 (hook_stop_stub): Call execute_cmd_pre_hook.
9585 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9587 * kod.c (kod_set_os): Revert previous change. Is called by ``info
9588 set'' and this leads to a core dump. Move xstrdup of
9589 operating_system to after check that it is not NULL.
9591 2002-03-17 Andrew Cagney <ac131313@redhat.com>
9593 * kod.c (kod_set_os): Remove unnecessary check that
9594 ``command->type'' is set_cmd.
9596 * valprint.c (set_input_radix): Use input_radix.
9597 (set_output_radix): Use output_radix.
9598 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
9601 2002-03-16 Andrew Cagney <ac131313@redhat.com>
9603 * value.h (struct value): Delete field ``substring_addr''. Change
9604 aligner fields to force_doublest_align, force_longest_align,
9605 force_core_addr_align and force_pointer_aligh.
9607 * value.h (struct value): Fix typo in above change.
9609 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9611 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
9612 to fix internal_error from ``maintenance print architecture''.
9614 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9616 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
9617 for gcc versions after gcc-2.8.1.
9619 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9621 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
9622 for method resolution. Restore adjustment of ``this'' pointer after
9623 calling value_struct_elt, which was accidentally removed during the
9626 2002-03-15 Andrew Cagney <ac131313@redhat.com>
9628 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
9630 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
9632 * value.h (value_of_register): Update.
9634 2002-03-14 Richard Henderson <rth@redhat.com>
9636 * configure.in: Detect declaration for canonicalize_file_name.
9637 * utils.c (canonicalize_file_name): Declare, if needed.
9638 (gdb_realpath): Prefer realpath if available and usable.
9639 * config.in, configure: Rebuild.
9641 2002-03-14 Richard Henderson <rth@redhat.com>
9643 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
9644 a constant array bound.
9646 * MAINTAINERS: Add myself to write-after-approval.
9648 2002-03-14 Michael Snyder <msnyder@redhat.com>
9650 * symfile.c (syms_from_objfile): Return immediately if no syms.
9651 (symbol_file_add): Return immediately if no syms.
9652 (find_sym_fns): Return immediately if no syms.
9654 2002-03-13 Michal Ludvig <mludvig@suse.cz>
9656 * gdbserver/remote-util.c (remote_open): Print remote-side's
9657 IP address when remote debugging over the network.
9659 2002-03-12 David O'Brien <obrien@FreeBSD.org>
9661 * config/sparc/fbsd.mh: Fix copyright.
9662 * config/sparc/fbsd.mt: Likewise.
9664 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
9666 * MAINTAINERS: Fix typo in name of gdb warnings option.
9667 (x86-64): Fix formating so that this can be parsed by awk.
9669 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9671 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
9672 * defs.h: Include "gdb/signals.h".
9673 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
9675 2002-03-10 Michal Ludvig <mludvig@suse.cz>
9677 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
9678 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
9681 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
9682 Don Howard <dhoward@redhat.com>
9684 * mips-tdep.c (ST0_FR): Define.
9685 (mips2_fp_compat): New function, temporarily disabled.
9686 (mips_read_fp_register_single): New function.
9687 (mips_read_fp_register_double): New function.
9688 (mips_print_register): Use them.
9689 (do_fp_register_row): Likewise.
9691 2002-03-09 Andrew Cagney <ac131313@redhat.com>
9693 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
9696 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9698 * stabsread.c (read_member_functions): Fix is_stub test for
9699 static member functions, improve comment.
9701 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
9703 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
9704 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
9705 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
9706 commands that set boolean values.
9707 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
9708 (arm_rdi_resume): Always initialize PC.
9709 (arm_rdi_open): Don't use rslt as a boolean.
9710 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
9711 (arm_rdi_fetch_registers, arm_rdi_store_registers)
9712 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
9713 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
9715 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
9717 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
9718 * configure: Rebuilt.
9720 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
9722 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
9723 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
9725 2002-03-06 Andrew Cagney <ac131313@redhat.com>
9727 * cli/cli-decode.c (set_cmd_completer): New function.
9728 * command.h (set_cmd_completer): Declare.
9729 * cli/cli-decode.h (set_cmd_completer): Ditto.
9731 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
9732 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9733 * win32-nat.c (_initialize_inftarg): Ditto.
9734 * remote-rdi.c (_initialize_remote_rdi): Ditto.
9735 * proc-api.c (_initialize_proc_api): Ditto.
9736 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
9737 * source.c (_initialize_source): Ditto.
9738 * exec.c (_initialize_exec): Ditto.
9739 * solib.c (_initialize_solib): Ditto.
9740 * top.c (init_main): Ditto.
9741 * tracepoint.c (_initialize_tracepoint): Ditto.
9742 * symfile.c (_initialize_symfile): Ditto.
9743 * printcmd.c (_initialize_printcmd): Ditto.
9744 * infcmd.c (_initialize_infcmd): Ditto.
9745 * corefile.c (_initialize_core): Ditto.
9747 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9749 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
9751 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9753 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
9755 2002-03-05 Andrew Cagney <ac131313@redhat.com>
9757 * NEWS: Update headings, 5.2 has branched.
9759 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
9761 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
9762 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
9763 (register_addr, REGISTER_RAW_SIZE): Likewise.
9764 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
9765 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
9767 2002-03-03 Michal Ludvig <mludvig@suse.cz>
9769 * MAINTAINERS (x86-64): Add myself.
9770 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
9771 changed value_ptr -> struct value *
9773 2002-03-01 David O'Brien <obrien@FreeBSD.org>
9775 * configure.host (sparc64-*-freebsd): Add.
9776 * configure.tgt: Likewise.
9777 * config/sparc/fbsd.mh: New file.
9778 * config/sparc/fbsd.mt: Likewise.
9779 * config/sparc/nm-fbsd.h: Likewise.
9780 * config/sparc/tm-fbsd.h: Likewise.
9782 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
9784 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
9785 regformats/reg-s390x.dat.
9787 2002-03-01 Andrew Cagney <ac131313@redhat.com>
9789 * utils.c: Add FIXME explaining true/false problem.
9791 2002-02-28 Andrew Cagney <ac131313@redhat.com>
9793 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
9795 2002-02-28 Michael Chastain <mec@shout.net>
9797 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
9799 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
9801 * gdbserver/linux-s390-low.c: New file.
9802 * regformats/reg-s390.dat: New file.
9803 * regformats/reg-s390x.dat: New file.
9804 * gdbserver/configure.srv: Add S/390.
9805 * gdbserver/Makefile.in: Add S/390.
9806 * configure.tgt: Enable gdbserver for S/390.
9808 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
9810 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
9811 first line of the doc string for "info dos", except at the end of
9812 the sentence, since the short help stops at the first period.
9814 2002-02-28 Jason Merrill <jason@redhat.com>
9816 * dwarf2read.c (dwarf_cfi_name): Add new codes.
9818 2002-02-27 Fred Fish <fnf@redhat.com>
9820 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
9821 comment (dumy -> dummy).
9823 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9825 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
9827 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
9829 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
9831 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9833 * gdbserver/acconfig.h: New file.
9834 * gdbserver/i387-fp.c: New file.
9835 * gdbserver/i387-fp.h: New file.
9836 * gdbserver/linux-x86-64.c: New file.
9837 * regformats/reg-x86-64.dat: New file.
9838 * configure.tgt: Add x86_64-*-linux* gdbserver support.
9839 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
9840 * gdbserver/configure.in: Add support for regsets.
9841 * gdbserver/config.in: Regenerate.
9842 * gdbserver/configure: Regenerate.
9843 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
9844 * gdbserver/linux-low.h: New file.
9845 * gdbserver/linux-low.c: Include "linux-low.h". Add support
9847 * gdbserver/linux-arm-low.c: Include "linux-low.h".
9848 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
9849 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
9850 * gdbserver/linux-mips-low.c: Include "linux-low.h".
9851 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
9852 * gdbserver/linux-sh-low.c: Include "linux-low.h".
9853 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
9854 "i387-fp.h". Add PTRACE_GETREGS and friends.
9855 * gdbserver/regcache.c (supply_register): New function.
9856 (supply_register_by_name): New function.
9857 (collect_register): New function.
9858 (collect_register_by_name): New function.
9860 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9862 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
9863 (config.status): Add configure.srv dependency.
9864 (server_h): Add config.h dependency.
9866 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
9868 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
9869 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
9870 * gdbserver/configure.srv: Change i386-*-linux* to use
9873 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9875 * x86-64-tdep.c: Re-indent. Update copyright date.
9877 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9879 From Michal Ludvig <mludvig@suse.cz>:
9880 * x86-64-tdep.c (value.h): Delete.
9881 (gdb_assert.h): Include.
9882 (x86_64_register_convert_to_virtual,
9883 x86_64_register_convert_to_raw ): Add check which lets only
9884 floating-point values to be converted.
9885 (value_push): Delete.
9886 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
9887 (i386_gdbarch_init): Number of register_bytes fixed.
9889 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9891 * MAINTAINERS: Add x86-64 target.
9893 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9895 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
9896 * osfsolib.c (solib_map_sections): Ditto.
9897 * irix5-nat.c (solib_map_sections): Ditto.
9898 * corelow.c (gdb_check_format): Ditto.
9899 * symfile.c (symfile_bfd_open): Ditto.
9900 * solib.c (solib_map_sections): Ditto.
9903 2002-02-26 Andrew Cagney <ac131313@redhat.com>
9905 * remote.c (_initialize_remote): By default, disable ``e'' and
9906 ``E'' step out-of-range packets.
9908 2002-02-26 Andreas Schwab <schwab@suse.de>
9910 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
9911 m68k_linux_frame_saved_pc.
9912 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
9914 (SIGCONTEXT_PC_OFFSET): Remove.
9915 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
9916 m68k_linux_sigtramp_saved_pc): New functions.
9917 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
9918 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
9919 (UCONTEXT_PC_OFFSET): Define.
9920 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
9921 non-RT and RT signal trampolines.
9923 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
9925 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
9926 (TARGET_NBPG, STACK_END_ADDR): Delete
9927 (VARIABLES_INSIDE_BLOCK): Delete.
9929 2002-02-25 Andrew Cagney <ac131313@redhat.com>
9931 * utils.c (perror_with_name): Make string parameter constant.
9932 (print_sys_errmsg): Ditto.
9934 * defs.h (perror_with_name): Update.
9935 (print_sys_errmsg): Update.
9938 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
9940 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
9941 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
9943 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9945 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
9946 if it already matches the current architecture from the exec file.
9947 Include arch-utils.h for gdbarch_info_init prototype.
9948 * Makefile.in (rs6000-nat.o): Update dependencies.
9950 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
9952 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
9953 list of exported variables.
9955 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
9957 * gdbserver/configure.srv: New file.
9958 * gdbserver/configure.in: Use configure.srv instead
9959 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
9961 * gdbserver/configure: Regenerated.
9962 * gdbserver/terminal.h: New file.
9963 * gdbserver/Makefile.in: Update for configure changes. Remove
9964 more unneeded include paths.
9966 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9968 From wiz at danbala:
9969 * config/sparc/tm-sp64.h: Fix grammar and typos.
9972 2002-02-24 Andrew Cagney <ac131313@redhat.com>
9974 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
9975 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
9976 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
9977 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
9978 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
9979 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
9980 * s390-tdep.c: Ditto.
9981 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
9982 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
9983 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
9984 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
9985 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
9986 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
9987 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
9988 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
9989 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
9990 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
9993 2002-02-23 Andrew Cagney <ac131313@redhat.com>
9995 * lin-thread.c: Delete file.
9996 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
9997 to gdb_proc_service.h.
9998 * configure: Re-generate.
10000 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10001 * serial.c (serial_open): Delete check for "ocd".
10004 * Makefile.in (linux-thread.o): Delete target.
10005 * linux-thread.c: Delete file.
10007 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10008 renamed SH files to be consistent.
10010 * symtab.c (sort_search_symbols): Use xfree.
10012 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10014 * arm-linux-tdep.c (arm_linux_init_abi): Register
10015 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10016 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10017 definition with undef, since we don't want the sysvr4 definition.
10018 (SKIP_TRAMPOLINE_CODE): Likewise.
10020 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10022 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10024 * configure.in: (AC_CHECK_FUNCS) Added test for
10025 canonicalize_file_name Regenerated.
10026 * config.in, configure: Regenerated.
10027 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10028 defined use canonicalize_file_name.
10030 2002-02-23 Michael Chastain <mec@shout.net>
10032 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10034 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10036 * README: Remove references to cygnus.com.
10037 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10038 dot com'' form. Remove references to cygnus.com and sourceware.
10040 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10042 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10043 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10044 1003.1-2001 no longer allows "head -1".
10045 * gdb/Makefile.in (version.c): Likewise.
10046 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10047 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10048 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10050 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10052 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10053 * command.h (cmd_cfunc_eq): Declare.
10054 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10056 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10057 ``struct cmd_list_element *''.
10058 * cli/cli-cmds.c (is_complete_command): Update. Use
10060 * top.c (execute_command): Pass the command to
10061 is_complete_command.
10062 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10064 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10066 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10067 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10068 architecture defines.
10069 * s390-tdep.c (s390_gdbarch_init): Likewise.
10071 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10073 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10074 (arm_linux_push_arguments): Likewise.
10075 (arm_linux_init_abi): Register them. Also register linux-specific
10077 (find_minsym_and_objfile): Use strcmp, not STREQ.
10078 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10079 (arm_linux_call_dummy_words): Delete declaration.
10080 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10081 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10083 (LOWEST_PC): Delete.
10085 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10087 * maint.c (print_section_info): Do not prepend `0x' to filepos
10088 output, it will be handled by local_hex_string_custom.
10090 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10092 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10093 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10094 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10096 2002-02-22 Jim Blandy <jimb@redhat.com>
10098 Indicate that the bcache functions don't change the strings
10100 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10101 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10103 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10105 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10107 2002-02-21 Christopher Faylor <cgf@redhat.com>
10109 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10110 find the complete path to a loaded DLL.
10112 2002-02-21 Fred Fish <fnf@redhat.com>
10114 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10115 that marks the end of the range of a function, enter a line number
10116 entry that has a line number of zero and a PC offset that matches
10117 the end of the function. This starts a range of PC's for which no
10118 line number information is known.
10119 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10120 PC's for which no line number info is found (line number is zero)
10121 then we didn't find any valid line information.
10122 * symtab.h: Document use of zero line number entry.
10124 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10126 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10127 (have_ptrace_getvrregs): Define for run time checks.
10128 (gdb_vrregset_t): New type for Altivec register handling.
10129 (fetch_register, store_register): Fetch/store altivec register
10131 (fetch_altivec_register, store_altivec_register): New functions.
10132 (supply_vrregset, fill_vrregset): New functions.
10133 (fetch_altivec_registers, store_altivec_registers): New functions.
10134 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10137 2002-02-21 Jiri Smid <smid@suse.cz>
10139 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10141 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10143 * Makefile.in (armnbsd-nat.o): Update dependencies.
10144 * armnbsd-nat.c (supply_gregset): New function. Common code to
10145 supply the integer register set.
10146 (supply_fparegset): New function. Similar for FPA registers.
10147 (fetch_regs, fetch_fp_regs): Use them.
10148 (fetch_core_registers): Likewise.
10149 (fetch_elfcore_registers): New function.
10150 (arm_netbsd_elfcore_fns): New core-file type specification.
10151 (_initialize_arm_netbsd_nat): Register it.
10153 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10155 * armnbsd-nat.c: Include gdbcore.h.
10156 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10157 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10158 'void' to declaration, to shut up ARI.
10159 (fetch_core_registers): Make static. Rewrite using supply_register.
10160 (arm_netbsd_core_fns): New core-file type specification.
10161 (_initialize_arm_netbsd_nat): New function.
10163 2002-02-21 Christopher Faylor <cgf@redhat.com>
10165 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10168 2002-02-20 Christopher Faylor <cgf@redhat.com>
10170 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10173 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10175 * jv-exp.y (parse_number): Change type of implicit longs
10176 to builtin_type_uint64.
10178 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10180 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10181 to be an integer instead of a `union wait'.
10183 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10185 * mips-linux-nat.c: Call the operating system GNU/Linux.
10186 * mips-linux-tdep.c: Likewise.
10187 * mips-tdep.c: Likewise.
10189 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10192 * jv-exp.y (parse_number): Handle 64-bit integers.
10194 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10196 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10197 AC_STDC_HEADERS to AC_HEADER_STDC.
10198 * gdbserver/configure: Regenerated.
10200 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10202 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10204 * sparc-tdep.c (get_longjmp_target): Likewise.
10206 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10208 * News: Add news about ARM and Multi-arch. Mention the new target
10211 2002-02-19 Jim Blandy <jimb@redhat.com>
10213 * stabsread.c (error_type_complaint): Improve error message.
10215 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10217 * gdbserver/README: Update documentation.
10218 * gdbserver/configure.in: Update configury to match documentation.
10219 * gdbserver/Makefile.in: Likewise.
10220 * gdbserver/configure: Regenerated.
10221 * gdbserver/aclocal.m4: New file, generated by aclocal.
10222 * gdbserver/config.in: New file, generated by autoheader.
10224 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10226 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10229 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10231 * arm-tdep.h (enum arm_float_model): New enum.
10232 (struct gdbarch_tdep): Add fp_model.
10233 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10234 up floating-point conversions until we know the floating-point model
10235 in use by the inferior. Don't complain about being unable to
10236 determine the ABI of the inferior when we don't have one.
10237 (arm_extract_return_value): Support different floating-point models.
10238 (arm_store_return_value): Likewise.
10239 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10241 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10243 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10245 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10246 of ``current_gdbarch''.
10248 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10250 * armnbsd-nat.c : ANSIfy all function declarations.
10251 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10252 (fetch_inferior_registers): Re-implement in terms of above.
10253 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10254 (store_inferior_registers): Re-implement in terms of above.
10256 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10258 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10260 * arm-linux-tdep.c: Likewise.
10261 * config/arm/tm-linux.h: Likewise.
10263 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10265 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10266 * config/arm/nbsd.mt (TM_FILE): Delete.
10267 * config/arm/tm-nbsd.h: Delete.
10269 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10271 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10272 Initialize CALL_DUMMY_LENGTH.
10274 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10276 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
10278 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
10279 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
10280 defines one thing and that is incorrect for this port.
10281 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
10283 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10285 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
10287 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10289 * win32-nat.c (display_selector): New function. Displays information
10290 about the information returned by GetThreadSelectorEntry API function.
10291 (display_selectors): New function. Displays the infomation of
10292 the selector given as argument, or of CS, DS ans FS selectors
10293 if no argument is given.
10294 ( _initialize_inftarg): Add "w32" as info prefix command.
10295 Add "info w32 selector" as command calling display_selectors.
10297 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
10299 * i386-tdep.c (get_longjmp_target): Fix compilation failure
10300 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
10303 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10305 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
10307 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10309 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
10310 (arm_fix_call_dummy): Call it.
10311 (arm_call_dummy_breakpoint_offset): Delete.
10312 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
10313 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10315 2002-02-18 Andrew Cagney <ac131313@redhat.com>
10317 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
10318 Default to func_frame_chain_valid.
10319 * gdbarch.h, gdbarch.c: Re-generate.
10320 * frame.h (FRAME_CHAIN_VALID): Delete definition.
10322 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
10324 * ppc-linux-nat.c: Update copyright.
10325 (fetch_register, store_register): Add tid parameter, don't compute
10327 (fetch_ppc_registers, store_ppc_registers): Add tid
10328 parameter. Pass it along to callees.
10329 (fetch_inferior_registers, store_inferior_registers): Compute tid
10330 here, and pass it to calleed functions.
10331 (fill_gregset, supply_fpregset): Clean up formatting.
10333 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10335 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
10336 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
10338 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
10340 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
10341 * gdbarch.c gdbarch.h: Regenerate.
10342 * breakpoint.c (create_longjmp_breakpoint): Always compile this
10344 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
10345 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
10346 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
10348 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
10349 * arm-tdep.c (arm_get_longjmp_target): New function.
10350 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
10351 this to a positive value register arm_get_longjmp_target as the
10353 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
10354 (arm_linux_init_abi): Set up longjmp description in tdep.
10355 * armnbsd-nat.c (get_longjmp_target): Delete.
10356 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
10357 description in tdep.
10358 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
10359 (get_longjmp_target): Delete declaration.
10360 (GET_LONGJMP_TARGET): Delete.
10361 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
10362 (GET_LONGJMP_TARGET): Delete.
10364 2002-02-17 Kevin Buettner <kevinb@redhat.com>
10366 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
10367 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
10368 of ``current_gdbarch''.
10370 2002-02-17 Tom Tromey <tromey@redhat.com>
10372 * cli/cli-cmds.c (compare_strings): New function.
10373 (complete_command): Only print each unique item once.
10374 * completer.h (complete_line): Declare.
10375 * completer.c (complete_line): New function.
10376 (line_completion_function): Use it.
10378 2002-02-16 Andrew Cagney <ac131313@redhat.com>
10380 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
10381 * gdbarch.h, gdbarch.c: Re-generate.
10383 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10385 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
10387 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
10389 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10390 * valops.c (value_arg_coerce): Don't take the address of a reference
10391 to convert an argument to a reference.
10393 2002-02-15 Christopher Faylor <cgf@redhat.com>
10395 * win32-nat.c (get_image_name): New function.
10396 (handle_load_dll): Use get_image_name function.
10397 (get_child_debug_event): Avoid registering debug events until possibly
10398 execed process is started.
10399 (child_create_inferior): Allow invocation via shell so that command
10400 line redirection, etc. works ok.
10401 (_initialize_inftarg): Add new command: "set shell" to control whether
10402 a shell is used to start a process.
10404 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10406 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
10407 instead of find_register_by_number.
10408 (cannot_store_register): Likewise.
10410 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
10412 * dwarf2read.c: Replace fprintf (stderr, ...) by
10413 fprintf_unfiltered (gdb_stderr, ...).
10415 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
10417 * gdbserver/gdbserver.1: Document --attach.
10419 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10421 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
10423 * arm-tdep.c (arm_default_arm_le_breakpoint)
10424 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
10425 (arm_default_thumb_be_breakpoint): New. Initialize them from
10426 traditional breakpoint defines.
10427 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
10428 (arm_gdbarch_init): Initialize new breakpoint variables.
10429 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
10430 (arm_linux_init_abi): Initialize linux-specific breakpoint.
10431 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
10432 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
10434 (arm_netbsd_init_abi_common): ... here; new function.
10435 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
10436 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
10437 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
10438 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
10440 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
10442 * arm-tdep.h (enum arm_abi): New enum.
10443 (struct gdbarch_tdep): New structure.
10444 (LOWEST_PC): Provide a default.
10445 (arm_gdbarch_register_os_abi): Declare new function.
10446 * arm-tdep.c (arm_abi_names): New array.
10447 (process_note_abi_tag_sections): New function.
10448 (get_elfosabi): New function.
10449 (arm_gdbarch_register_os_abi): New function.
10450 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
10451 support for that ABI has been built in, then call the appropriate
10452 configuration routine. Use gdbarch_num_regs() to get the number
10454 (arm_dump_tdep): New function.
10455 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
10456 place-holder functions.
10457 (_initialize_arm_tdep): Register them.
10458 * config/arm/tm-arm.h (LOWEST_PC): Delete.
10460 * armnbsd-tdep.c: New file.
10461 * Makefile.in (armnbsd-tdep.o): Add dependencies.
10462 * config/arm/nbsd.mt (TDEPFILES): Add it.
10463 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
10465 * armnbsd-nat.c: Include regcache.h.
10466 * Makefile.in (armnbsd-nat.o): Update dependency list.
10468 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
10470 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10472 * gdbserver/Makefile.in: Fix typos in target rules.
10474 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10476 Fix part of PR gdb/267.
10477 * linespec.c (find_methods): Handle constructors specially for now.
10479 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
10481 * arm-tdep.c (arm_push_arguments): Eliminate special float type
10483 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
10484 standard_coerce_float_to_double().
10486 2002-02-14 Christopher Faylor <cgf@redhat.com>
10488 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
10491 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
10493 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
10494 find_variant_by_name, because it confuses the multiarch
10495 framework. Return NULL if there isn't an architecture with the
10496 user supplied name, instead of forcing a different one without
10497 recording the change with the multiarch machinery.
10498 (find_variant_by_name): Delete.
10500 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10502 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
10503 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
10505 2002-02-13 Martin M. Hunt <hunt@redhat.com>
10507 * stack.c (print_frame_info_base): When calling
10508 print_frame_info_listing_hook, set current_source_symtab.
10510 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10512 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
10513 and remove unused $(INCLUDE_DIR).
10514 Add regcache.c to OBS.
10515 Add generated register protocol files to clean target.
10516 Update dependencies for new objects, obsolete old target code.
10518 * gdbserver/linux-low.c: Remove all platform-specific code to
10519 new files. Remove various dead code. Update to use regcache
10521 * gdbserver/remote-utils.c (fromhex): Add return statement
10523 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
10525 (input_interrupt): Add integer parameter to match prototype
10526 of a signal handler.
10527 (outreg): Use register_data ().
10528 (prepare_resume_reply): Use gdbserver_expedite_regs.
10529 * gdbserver/server.c (main): Dynamically allocate own_buf because
10530 PBUFSIZ is no longer constant. Use registers_to_string () and
10531 registers_from_string ().
10532 * gdbserver/server.h: No longer include "defs.h". Add prototypes
10533 for error (), fatal (), and warning (). Update definition of
10534 PBUFSIZ to use regcache functionality. Add include guard.
10535 * gdbserver/utils.c (fatal): Add missing ``const''.
10536 (warning): New function.
10538 * regformats/regdat.sh: Include "regcache.h" in generated files.
10539 Provide init_registers () function.
10540 * regformats/regdef.h: Add prototype for set_register_cache ().
10543 * gdbserver/linux-arm-low.c: New file.
10544 * gdbserver/linux-i386-low.c: New file.
10545 * gdbserver/linux-ia64-low.c: New file.
10546 * gdbserver/linux-m68k-low.c: New file.
10547 * gdbserver/linux-mips-low.c: New file.
10548 * gdbserver/linux-ppc-low.c: New file.
10549 * gdbserver/linux-sh-low.c: New file.
10551 * gdbserver/regcache.c: New file.
10552 * gdbserver/regcache.h: New file.
10554 * gdbserver/low-linux.c: Removed obsolete file.
10556 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10558 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
10559 * config/i386/linux.mt: Likewise.
10560 * config/ia64/linux.mt: Likewise.
10561 * config/m68k/linux.mh: Likewise.
10562 * config/powerpc/linux.mh: Likewise.
10563 * config/mips/linux.mt: Likewise.
10565 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
10567 * config/i386/i386lynx.mh: Mark gdbserver variables
10568 as (currently) obsolete for this target.
10569 * config/i386/nbsd.mt: Likewise.
10570 * config/i386/nbsdelf.mt: Likewise.
10571 * config/m32r/m32r.mt: Likewise.
10572 * config/m68k/m68klynx.mh: Likewise.
10573 * config/m68k/nbsd.mt: Likewise.
10574 * config/m68k/sun3os4.mh: Likewise.
10575 * config/mips/vr5000.mt: Likewise.
10576 * config/ns32k/nbsd.mt: Likewise.
10577 * config/pa/hppabsd.mh: Likewise.
10578 * config/pa/hppaosf.mh: Likewise.
10579 * config/powerpc/nbsd.mt: Likewise.
10580 * config/rs6000/rs6000lynx.mh: Likewise.
10581 * config/s390/s390.mt: Likewise.
10582 * config/s390/s390x.mt: Likewise.
10583 * config/sparc/sparclynx.mh: Likewise.
10584 * config/sparc/sun4os4.mh: Likewise.
10585 * config/i386/x86-64linux.mt: Likewise.
10586 * config/sparc/linux.mh: Likewise.
10588 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
10590 * configure.tgt: Configure gdbserver only for known working
10591 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
10592 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
10593 SUBDIRS if it is configured. Update comment for ${nativefile}.
10594 * configure: Regenerated.
10596 2002-02-13 Michael Snyder <msnyder@redhat.com>
10598 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
10600 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
10601 (default_gcore_mach): Just return 0, work around a problem in bfd.
10602 (default_gcore_target): OK to return NULL if exec_bfd is null.
10603 (make_mem_sec): Use a cast, avoid a warning.
10605 * procfs.c (find_memory_regions_callback): Use a cast instead of
10606 calling host_pointer_to_address (which complains if
10607 sizeof (host pointer) != sizeof (target pointer)).
10608 (procfs_make_note_section): Avoid overflow in psargs string.
10610 * procfs.c (procfs_make_note_section): Make the default
10611 implementation return an error.
10613 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
10615 * procfs.c (procfs_make_note_section): Provide a default definition
10616 (for alpha-dec-osf4.0f). Fix typos.
10618 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
10620 * linux-proc.c: Add include of regcache.h.
10621 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
10623 2002-02-13 Andrew Cagney <ac131313@redhat.com>
10625 From 2002-01-18 Greg McGary <greg@mcgary.org>:
10626 * memattr.c (create_mem_region): Disallow useless empty region.
10627 Regions are half-open intervals, so allow [A..B) [B..C) as
10630 2002-02-13 Michael Chastain <mec@shout.net>
10632 * defs.h: Kill CONST_PTR.
10633 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
10634 * c-lang.c (c_builtin_types): Likewise.
10635 * ch-lang.c (ch_builtin_types): Likewise.
10636 * f-lang.c (f_builtin_types): Likewise.
10637 * language.c (unknown_builtin_types): Likewise.
10638 * m2-lang.c (m2_builtin_types): Likewise.
10639 * p-lang.c (pascal_builtin_types): Likewise.
10640 * scm-lang.c (c_builtin_types): Likewise.
10642 2002-02-13 Keith Seitz <keiths@redhat.com>
10644 * arm-tdep.h (arm_get_next_pc): Add declaration.
10646 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
10648 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
10649 with other related struct-returning functions.
10650 (arm_extract_struct_value_address): New function.
10651 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
10652 initialize float_format, double_format and long_double_format as
10653 appropriate to the endianness of the target.
10654 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
10655 (arm_use_struct_convention): Delete declaration.
10656 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10658 2002-02-13 Keith Seitz <keiths@redhat.com>
10660 * defs.h (core_addr_to_string_nz): New function.
10662 2002-02-13 Mark Kettenis <kettenis@gnu.org>
10664 Apply missing bits of 2002-01-15 patch.
10665 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
10666 (fill_fpregset): Use i387_fill_fsave.
10668 2002-02-12 Keith Seitz <keiths@redhat.com>
10670 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
10671 (core_addr_to_string_nz): New function.
10673 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10675 * arm-linux-nat.c: Really include arm-tdep.h.
10676 * config/arm/tm-linux.h (struct type, struct value): Declare.
10678 2002-02-11 Michael Snyder <msnyder@redhat.com>
10680 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
10681 (gcore section): Ifdef for Solaris and Unixware only.
10682 (procfs_do_thread_registers): Unixware needs one lwpstatus
10683 per thread (not one prstatus or pstatus).
10684 (procfs_make_note_section): Iterate only over kernel threads (lwps),
10685 not over all gdb threads. For unixware, call elfcore_write_pstatus
10686 once before iterating over threads.
10688 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10690 * arm-tdep.h: New file.
10691 * arm-tdep.c: Include arm-tdep.h.
10692 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10693 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10694 (arm_print_float_info, arm_register_type, convert_to_extended)
10695 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10696 (arm_extract_return_value, arm_register_name): Make static.
10697 (arm_software_single_step): Similarly. Fix types in declaration.
10698 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
10699 (arm_store_return_value, arm_store_struct_return): New functions.
10700 (arm_gdbarch_init): Register the above functions. Also register
10701 call_dummy_start_offset, sizeof_call_dummy_words,
10702 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
10703 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
10704 max_register_virtual_size, register_size. Set up
10705 prologue_cache.saved_regs here, rather than ...
10706 (_initialize_arm_tdep): ... here.
10707 * config/arm/tm-arm.h (struct type, struct value): Delete forward
10709 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
10710 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
10711 (arm_print_float_info, arm_register_type, convert_to_extended)
10712 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
10713 (arm_extract_return_value, arm_register_name): Delete declarations.
10714 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
10715 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
10716 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
10717 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
10718 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
10719 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
10720 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
10721 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
10722 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
10723 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
10724 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
10725 (arm_get_next_pc): No-longer static -- these are needed by the RDI
10727 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
10728 * remote-rdi.c remote-rdp.c: Likewise.
10729 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
10730 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
10731 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
10734 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
10735 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
10736 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
10737 from non-ARM_ prefixed definitions.
10738 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
10740 * remote-rdi.c remote-rdp.c: Likewise.
10741 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
10743 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
10745 * arm-tdep.c (arm_frameless_function_invocation)
10746 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10747 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10748 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10749 (arm_pop_frame, arm_get_next_pc): Make static.
10750 (arm_gdbarch_init): Register above in gdbarch structure.
10751 (arm_read_fp): Renamed from arm_target_read_fp.
10752 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
10753 * config/arm/tm-arm.h (arm_frameless_function_invocation)
10754 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
10755 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
10756 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
10757 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
10758 (arm_pc_is_thumb_dummy): Delete declarations.
10759 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
10760 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
10761 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
10762 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
10764 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
10766 * symtab.c (compare_search_syms): New function.
10767 (sort_search_symbols): New function.
10768 (search_symbols): Sort symbols after searching rather than
10771 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10773 * NEWS: Linux -> GNU/Linux.
10775 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10777 * gdbarch.sh: For for level one methods, disallow a definition
10778 when partially multi-arched. Add comments explaining rationale.
10779 * gdbarch.h: Re-generate.
10781 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10783 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
10784 multi-arch partial.
10786 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10788 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
10789 field. Use diff -u.
10790 * gdbarch.c: Re-generate.
10792 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10794 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
10795 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
10798 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10800 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
10801 multi-arch partial.
10802 (PUSH_ARGUMENTS): Switch to using predefault.
10803 * gdbarch.c: Regenerate.
10805 2002-02-10 Andrew Cagney <ac131313@redhat.com>
10807 * valops.c (PUSH_ARGUMENTS): Delete definition.
10808 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
10809 partial. Default to default_push_arguments.
10810 * gdbarch.h, gdbarch.c: Regenerate.
10812 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10814 * defs.h (throw_exception): Rename return_to_top_level. Update
10816 * utils.c (error_stream, internal_verror, quit): Ditto.
10817 * top.c (throw_exception, catcher): Ditto.
10818 * sparclet-rom.c (sparclet_load): Ditto.
10819 * remote.c (interrupt_query, minitelnet): Ditto.
10820 * remote-sds.c (interrupt_query): Ditto.
10821 * remote-mips.c (mips_error, mips_kill): Ditto.
10822 * ocd.c (interrupt_query): Ditto.
10823 * monitor.c (monitor_interrupt_query): Ditto.
10824 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
10825 * target.h: Update comment.
10827 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
10829 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10831 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
10832 default_double_format.
10833 * gdbarch.h, gdbarch.c: Re-generate.
10834 * findvar.c (floatformat_unknown): Delete variable definition.
10835 * doublest.h (floatformat_unknown): Delete variable declaration.
10837 2002-02-09 Jim Blandy <jimb@redhat.com>
10839 * stabsread.c (read_type): Add code to parse Sun's syntax for
10840 prototyped function types.
10842 2002-02-09 Andrew Cagney <ac131313@redhat.com>
10844 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
10845 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
10847 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10849 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
10850 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
10851 now _initialize_xcoffsolib gets called again and overrides the
10852 commands from solib.c in a native configuration.
10854 2002-02-09 Mark Kettenis <kettenis@gnu.org>
10856 * doublest.c (store_typed_floating): Don't try to return a value.
10859 2002-02-08 Jim Blandy <jimb@redhat.com>
10861 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
10862 is prototyped and has no arguments, print its argument list as
10865 2002-02-08 Chris Demetriou <cgd@broadcom.com>
10867 * MAINTAINERS (write-after-approval): Add myself.
10868 (paper-trail): I've escaped!
10870 2002-02-08 Christopher Faylor <cgf@redhat.com>
10872 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
10874 (_initialize_check_for_gdb_ini): Ditto.
10876 2002-02-08 Martin M. Hunt <hunt@redhat.com>
10878 * win32-nat.c (cygwin_pid_to_str): Fix typo.
10879 xaprintf -> xasprintf.
10881 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
10883 * win32-nat.c: Remove use of printf and sprintf functions.
10885 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
10887 * arm-tdep.c (arm_frame_chain_valid): Make static.
10888 (arm_push_arguments): Likewise.
10889 (arm_gdbarch_init): New function.
10890 (_initialize_arm_tdep): Call it.
10891 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
10892 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
10893 (FRAME_CHAIN_VALID): Delete.
10894 (arm_frame_chain_valid): Delete declaration.
10895 (PUSH_ARGUMENTS): Delete.
10896 (arm_push_arguments): Delete declaration.
10897 (CALL_DUMMY_P): Delete.
10899 2002-02-08 Andrew Cagney <ac131313@redhat.com>
10900 Corinna Vinschen <vinschen@redhat.com>
10902 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
10903 on builtin float types.
10905 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
10907 * utils.c: Include <curses.h> before "bfd.h".
10908 * tui/tui-hooks.c: Likewise.
10909 * tui/tui.c: Likewise.
10910 * tui/tuiCommand.c: Likewise.
10911 * tui/tuiData.c: Likewise.
10912 * tui/tuiDataWin.c: Likewise.
10913 * tui/tuiDisassem.c: Likewise.
10914 * tui/tuiGeneralWin.c: Likewise.
10915 * tui/tuiIO.c: Likewise.
10916 * tui/tuiLayout.c: Likewise.
10917 * tui/tuiRegs.c: Likewise.
10918 * tui/tuiSource.c: Likewise.
10919 * tui/tuiSourceWin.c: Likewise.
10920 * tui/tuiStack.c: Likewise.
10921 * tui/tuiWin.c: Likewise.
10923 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
10925 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
10926 to include space for pseudoregs as well. Update loops accordingly.
10927 (sh_fp_frame_init_saved_regs): Ditto.
10928 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
10930 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10932 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
10933 Add Richard Earnshaw to Arm maintainers.
10935 2002-02-07 Andrew Cagney <ac131313@redhat.com>
10937 * defs.h (warning_begin): Delete declaration.
10939 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
10942 2002-02-07 Michael Snyder <msnyder@redhat.com>
10944 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10945 Logic bug, remove misplaced else.
10947 2002-02-07 Klee Dienes <klee@apple.com>
10949 * fork-inferior.c (fork_inferior): Add '!' to the list of
10950 characters that need to be quoted when building a string for the
10951 shell. Quote '!' specifically with a backslash, since CSH chokes
10952 when trying to evaluate "str!str".
10954 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
10956 * rdi-share/host.h: Only provide a typedef for bool if it is not
10959 2002-02-04 Michael Snyder <msnyder@redhat.com>
10961 * breakpoint.h (enum bptype): Add new overlay event bp type.
10962 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
10964 * breakpoint.c (create_internal_breakpoint): New function.
10965 (internal_breakpoint_number): Moved into create_internal_breakpoint.
10966 (create_longjmp_breakpoint): Use create_internal_breakpoint.
10967 (create_thread_event_breakpoint): Ditto.
10968 (create_solib_event_breakpoint): Ditto.
10969 (create_overlay_event_breakpoint): New function.
10970 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
10971 (update_breakpoints_after_exec): Delete and re-initialize
10972 overlay event breakpoints after an exec. Add FIXME comment
10973 about longjmp breakpoint.
10974 (print_it_typical): Ignore overlay event breakpoints.
10975 (print_one_breakpoint): Ditto.
10977 (bpstat_what): Do not stop for overlay event breakpoints.
10978 (delete_breakpoint): Don't delete overlay event breakpoints.
10979 (breakpoint_re_set_one): Delete the overlay event breakpoint.
10980 (breakpoint_re_set): Re-create overlay event breakpoint.
10982 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
10983 (overlay_manual_command): Disable overlay breakpoints.
10984 (overlay_off_command): Disable overlay breakpoints.
10986 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
10988 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
10989 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
10990 to here from config/tm-arm.h.
10991 (coff_sym_is_thumb): Make static.
10992 (arm_elf_make_msymbol_special): New function.
10993 (arm_coff_make_msymbol_special): New function.
10994 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
10995 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
10996 (coff_sym_is_thumb): Delete declaration.
10997 (arm_elf_make_msymbol_special): Declare.
10998 (arm_coff_make_msymbol_special): Declare.
10999 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11000 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11002 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11004 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11006 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11008 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11009 * gdbarch.c gdbarch.h: Regenerate.
11010 * arch-utils.c (default_print_float_info): New function.
11011 * arch-utils.h (default_print_float_info): Prototype it.
11012 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11013 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11014 (PRINT_FLOAT_INFO): Document it.
11016 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11017 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11018 (PRINT_FLOAT_INFO): Define.
11020 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11022 * win32-nat.c (_initialize_check_for_gdb_ini):
11023 Add typecast to sprintf argument to suppress a warning.
11025 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11027 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11028 to allow easier handling of pass state.
11029 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11030 that gives exception name and address.
11031 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11032 and set last_sig value to ourstatus->value.sig. Some missing
11034 (child_continue): Correctly report continue_status.
11035 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11036 TARGET_SIGNAL_0 (new default value).
11037 (child_resume): consider sig argument passed to decide if
11038 the exception should be passed to debuggee or not.
11040 2002-02-05 Michael Snyder <msnyder@redhat.com>
11042 * regcache.c (fetch_register): Call target_fetch_register
11043 only if we don't call FETCH_PSEUDO_REGISTER.
11044 (store_register): Call target_store_register only if we
11045 don't call STORE_PSEUDO_REGISTER.
11047 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11049 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11050 ELF_MAKE_MSYMBOL_SPECIAL.
11051 * gdbarch.c, gdbarch.h: Regenerate.
11052 * arch-utils.c (default_make_msymbol_special): New function.
11053 * arch-utils.h (default_make_msymbol_special): Export.
11054 * elfread.c (elf_symtab_read): Compile use of
11055 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11057 * coffread.c (coff_symtab_read): Ditto, for
11058 COFF_MAKE_MSYMBOL_SPECIAL.
11060 2002-02-05 Jim Blandy <jimb@redhat.com>
11062 * solib-svr4.c (svr4_truncate_ptr): New function.
11063 (svr4_relocate_section_addresses): Do the address arithmetic with
11064 the appropriate truncation for target addresses, even when
11065 CORE_ADDR is larger than a target address.
11067 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11069 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11072 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11074 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11077 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11079 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11081 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11083 * gdbserver/linux-low.c: Remove unused include files.
11085 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11087 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11088 (read_inferior_memory): Use it.
11089 (write_inferior_memory): Likewise.
11091 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11093 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11094 grubbing through sys_errlist.
11096 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11098 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11100 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11101 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11103 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11105 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11106 (do_sfunc, set_cmd_sfunc): New functions.
11108 * command.h (struct cmd_list_element): Add field func.
11109 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11110 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11111 * cli/cli-decode.h: Ditto.
11113 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11114 (help_all, help_cmd_list): Ditto.
11115 (find_cmd, complete_on_cmdlist): Ditto.
11116 * top.c (execute_command): Ditto.
11118 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11121 * infcmd.c (notice_args_read): Fix function signature.
11123 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11124 * cli/cli-decode.c (add_set_cmd): Ditto.
11125 * utils.c (initialize_utils): Ditto.
11126 * maint.c (_initialize_maint_cmds): Ditto.
11127 * infrun.c (_initialize_infrun): Ditto.
11128 * demangle.c (_initialize_demangler): Ditto.
11129 * remote.c (add_packet_config_cmd): Ditto.
11130 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11131 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11132 * proc-api.c (_initialize_proc_api): Ditto.
11133 * kod.c (_initialize_kod): Ditto.
11134 * valprint.c (_initialize_valprint): Ditto.
11135 * top.c (init_main): Ditto.
11136 * infcmd.c (_initialize_infcmd): Ditto.
11137 * corefile.c (_initialize_core): Ditto.
11138 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11139 * arch-utils.c (initialize_current_architecture): Ditto.
11140 (_initialize_gdbarch_utils): Ditto.
11141 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11143 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11144 * wince.c (_initialize_inftarg): Ditto.
11145 * symfile.c (_initialize_symfile): Ditto.
11146 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11147 * language.c (_initialize_language): Ditto.
11148 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11150 2002-02-04 Michael Snyder <msnyder@redhat.com>
11152 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11154 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11156 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11157 Add rules for building the register data files.
11159 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11161 * regformats/regdat.sh: Add braces to the definition of
11162 expedite_regs_${arch}.
11164 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11166 * regformats/regdef.h (struct reg): Add comment describing the
11167 requirements for offset and size fields.
11169 2002-02-04 Andreas Schwab <schwab@suse.de>
11171 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11172 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11174 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11176 * gdbarch.sh (copyright): Update years in generated header.
11177 (SMASH_TEXT_ADDRESS): Add rule.
11178 * gdbarch.h, gdbarch.c: Re-generate.
11179 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11180 * dbxread.c: Likewise.
11181 * dwarfread.c: Likewise.
11182 * elfread.c: Likewise.
11183 * somread.c: Likewise.
11185 * arm-tdep.c (arm_smash_text_address): New function.
11186 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11188 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11190 Add support for hardware watchpoints on win32 native.
11191 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11192 CONTEXT_DEBUG_REGISTERS.
11193 (dr variable): New variable. Static array containing a local copy
11194 of debug registers.
11195 (debug_registers_changed): New variable. Reflects when debug registers
11196 are changed and need to be written to inferior.
11197 (debug_registers_used): New variable. Reflects when any debug register
11198 was set, used when new threads are created.
11199 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11201 (thread_rec): Set dr array if id is the thread of current_event .
11202 (child_continue, child_resume): Change the debug registers for all
11203 threads if debug_registers_changed.
11204 (child_add_thread): Change the debug registers if debug_registers_used.
11205 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11206 Link nm.h to new nm-cygwin.h file.
11207 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11208 of hardware registers.
11210 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11212 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11213 Restore behavour broken by 2002-01-20 Andrew Cagney
11214 <ac131313@redhat.com> IEEE_FLOAT removal.
11216 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11218 * c-valprint.c (c_val_print): Pass a proper valaddr to
11219 cp_print_class_method.
11220 * valops.c (search_struct_method): If there is only one method
11221 and args is NULL, return that method.
11223 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11225 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11226 accessing tag_name directly.
11228 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11230 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11231 of accessing tag_name directly.
11233 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11236 * gdbtypes.c (replace_type): New function.
11237 * gdbtypes.h (replace_type): Add prototype.
11238 * stabsread.c (read_type): Use replace_type.
11240 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11242 * Makefile.in (memattr.o): Add missing dependencies rule.
11244 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11246 * breakpoint.c (break_at_finish_command): Really export.
11247 (break_at_finish_at_depth_command): Ditto.
11248 (tbreak_at_finish_command): Ditto.
11249 * hppa-tdep.c: Include completer.h.
11250 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11251 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11253 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11255 * utils.c (do_write): New function.
11256 (error_stream): Rewrite combining the code from error_begin and
11258 (verror): Rewrite using error_stream.
11259 (error_begin): Delete function.
11261 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11263 * utils.c (error_begin): Make static.
11264 * defs.h (error_begin): Delete declaration.
11266 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11267 (decode_line_1): Use cplusplus_error instead of error_begin,
11268 cplusplus_hint and return_to_top_level.
11269 * coffread.c (coff_symfile_read): Use error instead of error_begin
11270 and return_to_top_level.
11271 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11273 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11275 * language.h (type_error, range_error): Make string parameter
11277 * language.c (warning_pre_print): Delete extern declaration.
11278 * dwarfread.c (warning_pre_print): Ditto.
11279 * language.c (type_error, range_error): Rewrite to use verror and
11280 vwarning instead of warning_begin.
11282 2002-02-01 Michael Snyder <msnyder@redhat.com>
11284 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
11285 (set_ignore_count): Move misplaced comment back where it belongs.
11287 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11289 * command.h (NO_FUNCTION): Delete macro.
11290 * cli/cli-decode.h (NO_FUNCTION): Ditto.
11291 * top.c (execute_command): Replace NO_FUNCTION with NULL.
11292 * tracepoint.c (_initialize_tracepoint): Ditto.
11293 * cli/cli-decode.c (add_set_cmd): Ditto.
11294 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11296 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11298 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
11299 Update ``this'' pointer when calling virtual functions.
11301 2002-02-01 Michael Snyder <msnyder@redhat.com>
11303 * breakpoint.c (create_temp_exception_breakpoint): Delete.
11304 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
11306 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
11308 * regformats/reg-arm.dat: New file.
11309 * regformats/reg-i386.dat: New file.
11310 * regformats/reg-ia64.dat: New file.
11311 * regformats/reg-m68k.dat: New file.
11312 * regformats/reg-mips.dat: New file.
11313 * regformats/reg-ppc.dat: New file.
11314 * regformats/reg-sh.dat: New file.
11315 * regformats/regdef.h: New file.
11316 * regformats/regdat.sh: New file.
11318 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
11320 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
11321 (arm_frame_args_address, arm_frame_locals_address): New functions.
11322 (arm_frame_num_args): New function.
11323 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
11324 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
11325 (FRMA_NUM_ARGS): Call arm_frame_num_args.
11327 2002-01-31 Michael Snyder <msnyder@redhat.com>
11329 * breakpoint.c (break_at_finish_command): Export.
11330 (break_at_finish_at_depth_command): Export.
11331 (tbreak_at_finish_command): Export.
11332 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
11333 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
11334 "txbreak" commands, which are HPPA specific.
11336 * printcmd.c (disassemble_command): Remove an ancient
11337 artifact of an old merge.
11339 * symfile.h (enum overlay_debugging_state):
11340 Define enum constant values for overlay mode.
11341 * symfile.c (overlay_debugging): Use enums instead of literals.
11342 (overlay_is_mapped, overlay_auto_command,
11343 overlay_manual_command): Ditto.
11345 * breakpoint.c (insert_breakpoints, remove_breakpoint,
11346 breakpoint_here_p, breakpoint_inserted_here_p,
11347 breakpoint_thread_match, bpstat_stop_status,
11348 describe_other_breakpoints, check_duplicates, clear_command):
11349 Coding standard fixes.
11351 * target.c (target_xfer_memory): Add spaces, coding standard.
11352 (do_xfer_memory): Add missing line to trust-readonly
11353 code: check bfd SEC_READONLY flag for section.
11355 2002-01-31 Andrew Cagney <ac131313@redhat.com>
11357 * PROBLEMS: Fix typo, 5.1->5.1.1.
11359 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
11361 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
11362 data symbols, since we search based on textlow and texthigh.
11363 (find_pc_sect_symtab): Likewise.
11365 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11367 * defs.h (vwarning): Declare.
11368 * utils.c (vwarning): New function.
11369 (warning): Call vwarning.
11370 (warning_begin): Delete function.
11372 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
11373 the warning message.
11374 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
11377 2002-01-30 Michael Snyder <msnyder@redhat.com>
11379 * NEWS: Mention "set trust-readonly-sections" command.
11380 Mention generate-core-file command.
11382 2002-01-15 Michael Snyder <msnyder@redhat.com>
11384 * target.c: New command, "set trust-readonly-sections on".
11385 (do_xfer_memory): Honor the suggestion to trust readonly sections
11386 by reading them from the object file instead of from the target.
11387 (initialize_targets): Register command "set trust-readonly-sections".
11389 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11391 * parse.c (target_map_name_to_register): Simplify, search regs and
11392 pseudo-regs using a single loop.
11394 2002-01-30 Andrew Cagney <ac131313@redhat.com>
11396 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
11398 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
11400 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
11401 * config/i386/i386v42mp.mh: Add i387-nat.o .
11402 * i386v4-nat.c: Include i387-nat.h.
11403 (supply_fpregset): Use i387_supply_fsave.
11404 (fill_fpregset): Use i387_fill_fsave.
11406 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
11408 * arm-tdep.c (arm_call_dummy_words): Define.
11409 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
11410 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
11411 (CALL_DUMMY_WORDS): Define.
11412 (arm_call_dummy_words): Declare.
11413 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
11414 (arm_linux_call_dummy_words): Declare.
11416 2002-01-30 Andreas Schwab <schwab@suse.de>
11418 * m68klinux-nat.c: Fix last change to use regcache_collect
11419 instead of referencing registers[] directly.
11421 2002-01-29 Andrew Cagney <ac131313@redhat.com>
11423 * parse.c (target_map_name_to_register): Delete code wrapped in
11424 #ifdef REGISTER_NAME_ALIAS_HOOK.
11426 2002-01-28 Michael Snyder <msnyder@redhat.com>
11428 * regcache.c (legacy_read_register_gen): Need to be able to
11429 read pseudo-register as well as real register.
11430 (legacy_write_register_gen): Ditto.
11432 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11434 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11435 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
11436 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
11437 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
11438 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
11439 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
11440 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
11441 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
11442 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
11443 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
11444 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
11445 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
11446 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
11447 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
11448 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
11449 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
11450 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
11451 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
11452 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
11453 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
11455 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11457 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
11458 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
11459 (initialize_current_architecture): Update target_byte_order using
11460 information from BFD.
11461 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
11462 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
11464 2002-01-28 Andrew Cagney <ac131313@redhat.com>
11466 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
11467 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
11469 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
11470 #ifdef INVALID_FLOAT.
11471 * infcmd.c (do_registers_info): Ditto.
11472 * values.c (unpack_double): Ditto. Add comment.
11474 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
11475 already commented out.
11477 2002-01-26 Andreas Schwab <schwab@suse.de>
11479 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
11480 * m68klinux-nat.c: Update ptrace interface for fetching/storing
11481 registers and add support for PTRACE_GETREGS.
11483 2002-01-24 Andrew Cagney <ac131313@redhat.com>
11485 GDB 5.1.1 released from 5.1 branch.
11486 * NEWS: Add 5.1.1 news.
11487 * README: Sync with 5.1 branch.
11489 2002-01-23 Fred Fish <fnf@redhat.com>
11491 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
11492 stabstring on initial malloc. Reallocing will copy it for us,
11495 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11497 * Makefile.in (hpread_h): Delete.
11498 (HFILES_NO_SRCDIR): Remove hpread.h.
11499 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
11500 (hpread.o): Update dependencies.
11501 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
11503 * hp-psymtab-read.c: Remove file.
11504 * hp-symtab-read.c: Remove file.
11505 * hpread.h: Remove file.
11507 * hpread.c: Merge all contents of hp-psymtab-read.c,
11508 hp-symtab-read.c and hpread.h into this file, as it was prior to
11511 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
11512 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
11513 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
11514 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
11516 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
11518 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
11519 fill_gregset): Call gdbarch_tdep() just once, assign result to
11520 variable and use that, instead of calling the function several
11523 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
11525 * configure.host: Accept sparcv9 as alias for sparc64.
11526 * configure.tgt: Likewise.
11528 2002-01-22 Kevin Buettner <kevinb@redhat.com>
11530 * solib-aix5.c (build_so_list_from_mapfile)
11531 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
11532 arguments is not reversed.
11533 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
11534 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
11536 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
11538 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
11539 modified version of obsolete sh_fetch_pseudo_register.
11540 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
11541 (sh4_register_read): New function.
11542 (sh_pseudo_register_write): New function. Renamed and modified
11543 version of obsolete sh_store_pseudo_register.
11544 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
11545 (sh4_register_write): New function.
11546 (sh_gdbarch_init): Remove setting of gdbarch function
11547 fetch_pseudo_register and store_pseudo_register. Remove setting of
11548 register_convert_to_raw, register_convert_to_virtual,
11549 register_convertible.
11550 (sh_sh4_register_convertible): Delete. No longer needed. All is
11551 taken care by architecture specific functions
11552 register_read/register_write.
11553 (sh_sh4_register_convert_to_virtual): Make static.
11554 (sh_sh4_register_convert_to_raw): Ditto.
11556 2002-01-22 Andrew Cagney <ac131313@redhat.com>
11558 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
11559 (floatformat_is_nan, floatformat_mantissa): Ditto.
11561 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
11562 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
11563 builtin_type_ieee_double_little,
11564 builtin_type_ieee_double_littlebyte_bigword,
11565 builtin_type_m68881_ext, builtin_type_i960_ext,
11566 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
11567 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
11568 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
11569 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
11571 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
11573 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
11574 parameter. Set frameless flag if it exists and depended of
11575 whether the scanned function is frameless or not.
11576 (xstormy16_skip_prologue): If function is frameless, return
11577 result of xstormy16_scan_prologue().
11578 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
11581 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
11583 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
11584 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
11585 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
11586 sh_sh4_register_byte, sh_sh4_register_raw_size,
11587 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
11588 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
11589 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
11590 sh_store_pseudo_register, sh_do_pseudo_register): Call
11591 gdbarch_tdep() just once, assign result to variable and use that,
11592 instead of calling the function several times.
11594 2002-01-20 Mark Kettenis <kettenis@gnu.org>
11596 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
11597 macros instead of LAST_FPU_CTRL_REGNUM.
11598 (store_register): Likewise.
11600 2002-01-21 Jim Blandy <jimb@redhat.com>
11602 * infcmd.c (run_command): Check that the `exec' target layer's BFD
11603 is up-to-date before running the program, not just when a program
11606 2002-01-21 Fred Fish <fnf@redhat.com>
11608 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
11609 when we have found all instructions we are looking for.
11611 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11613 * arm-tdep.c (arm_register_name): New function.
11614 (arm_registers_names): Make static.
11615 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
11616 (arm_register_name): Declare.
11617 (REGISTER_NAME): Use it.
11619 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
11620 Kevin Buettner <kevinb@redhat.com>
11622 Convert arm targets to new FRAME interface.
11623 * arm-tdep.c (struct frame_extra_info): Remove fsr.
11624 (arm_frame_find_save_regs): Delete.
11625 (arm_frame_init_saved_regs): New.
11626 (arm_init_extra_frame_info): Alloacte saved_regs as required.
11627 Allocate extra_info as required. Convert all uses of fsr.regs
11628 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
11630 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
11631 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
11632 (check_prologue_cache, save_prologue_cache): Likewise.
11633 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
11634 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
11635 (FRAME_FIND_SAVED_REGS): Delete.
11636 (arm_frame_find_saved_regs): Delete prototype.
11637 (arm_frame_init_saved_regs): New prototype.
11638 (FRAME_INIT_SAVED_REGS): Define.
11640 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11642 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
11644 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11646 From Jeff Law <law@redhat.com>:
11647 * infttrace.c: Include <sys/pstat.h>.
11648 (child_pid_to_exec_file): Revamp. Use pstat call to get the
11649 exec file if the ttrace equivalent fails.
11651 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11653 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
11654 (closeLogFile): Ditto.
11656 2002-01-20 Michael Chastain <mec@shout.net>
11658 * top.c (print_gdb_version): Bump copyright year to 2002.
11660 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11662 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
11663 Zannoni and Eli Zaretskii.
11665 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11667 * buildsym.c: Update copyright years.
11668 * c-typeprint.c: Likewise.
11669 * dwarf2read.c: Likewise.
11670 * f-typeprint.c: Likewise.
11671 * gdbtypes.c: Likewise.
11672 * gdbtypes.h: Likewise.
11673 * hp-symtab-read.c: Likewise.
11674 * hpread.c: Likewise.
11675 * mdebugread.c: Likewise.
11676 * p-typeprint.c: Likewise.
11678 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11680 * remote-sim.c (gdbsim_open): Simplify code testing the macro
11681 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
11682 byte-order selectable.
11683 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
11684 * arch-utils.c: Ditto.
11685 (set_endian): Ditto.
11686 (set_endian_from_file): Ditto.
11687 * gdbserver/low-sim.c (create_inferior): Ditto.
11688 * gdbarch.sh: Ditto.
11689 * gdbarch.h: Re-generate.
11690 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11691 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
11692 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
11693 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11694 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11695 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
11696 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
11697 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
11699 * config/mips/tm-wince.h: Remove #undef of macro
11700 TARGET_BYTE_ORDER_SELECTABLE.
11701 * config/sh/tm-wince.h: Ditto.
11703 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11705 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
11706 member function fields. Add accessor macro
11707 TYPE_FN_FIELD_ARTIFICIAL.
11708 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
11709 * c-typeprint.c (c_type_print_base): Skip artificial member
11712 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11714 * f-typeprint.c: Delete unused function f_type_print_args.
11715 * p-typeprint.c: Delete unused function pascal_type_print_args.
11717 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
11719 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
11720 comment. Add ``artificial'' to ``union field_location''.
11722 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
11724 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
11725 * mdebugread.c (parse_symbol): Likewise.
11726 * stabsread.c (define_symbol): Likewise.
11727 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
11728 initializing TYPE_FIELD_BITPOS to n (obsolete).
11729 (hpread_doc_function_type): Likewise.
11730 * hpread.c (hpread_function_type): Likewise.
11732 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11734 * configure.in (host_makefile_frag): Only require a host makefile
11735 fragment when a native build.
11736 * configure: Re-generate.
11738 2002-01-20 Andrew Cagney <ac131313@redhat.com>
11740 * doublest.h (floatformat_from_type): Declare.
11741 * doublest.c (floatformat_from_type): New function.
11742 (convert_typed_floating): Use.
11744 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
11745 call to function floatformat_from_type.
11747 * gdbarch.sh (IEEE_FLOAT): Delete.
11748 * gdbarch.h, gdbarch.c: Re-generate.
11749 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
11750 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
11751 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
11752 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
11753 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
11754 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
11755 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
11756 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
11757 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
11758 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
11759 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
11760 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
11762 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
11763 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11764 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
11765 * sh-tdep.c (sh_gdbarch_init): Ditto.
11766 * mips-tdep.c (mips_gdbarch_init): Ditto.
11767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11768 * cris-tdep.c (cris_gdbarch_init): Ditto.
11770 2002-01-20 Jiri Smid <smid@suse.cz>
11772 * configure.host, configure.tgt: Support x86-64.
11773 * NEWS: Note new target x86-64.
11775 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
11776 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
11777 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
11778 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
11779 x86-64-linux-nat.o): Fix dependencies.
11781 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11783 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
11784 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
11785 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
11786 * config/sparc/xm-sun4os4.h: Delete file.
11787 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
11789 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11791 * config/sparc/sparclynx.mh (XM_FILE): Delete.
11792 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
11793 * config/m68k/m68klynx.mh (XM_FILE): Delete.
11794 * config/i386/i386lynx.mh (XM_FILE): Delete.
11795 * config/rs6000/xm-rs6000ly.h: Delete file.
11796 * config/sparc/xm-sparclynx.h: Delete file.
11797 * config/m68k/xm-m68klynx.h: Delete file.
11798 * config/i386/xm-i386lynx.h: Delete file.
11799 * config/xm-lynx.h: Delete file.
11800 * config/djgpp/fnchange.lst: Update.
11802 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11804 * alpha-tdep.c (alpha_register_byte): New function.
11805 (alpha_register_raw_size): Ditto.
11806 (alpha_register_virtual_size): Ditto.
11807 (alpha_skip_prologue_internal): Renamed from
11808 alpha_skip_prologue.
11809 (alpha_skip_prologue): New version that calls
11810 alpha_skip_prologue_internal.
11811 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
11812 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
11813 second argument from alpha_skip_prologue.
11814 (REGISTER_BYTE): Use alpha_register_byte.
11815 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
11816 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
11817 (FRAMELESS_FUNCTION_INVOCATION): Use
11818 generic_frameless_function_invocation_not.
11819 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
11820 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
11822 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11824 * config/mips/xm-news-mips.h: Delete file.
11825 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
11827 * config/m88k/xm-m88k.h: Delete file.
11828 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
11829 * config/m88k/xm-delta88v4.h: Ditto.
11830 * config/m88k/xm-delta88.h: Ditto.
11832 * config/alpha/xm-fbsd.h: Delete file.
11833 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
11835 * config/sparc/xm-sparc.h: Delete file.
11836 * Makefile.in (xm-sun4os4.h): Delete dependency.
11837 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
11838 * config/sparc/xm-sun4os4.h: Ditto.
11839 * config/sparc/xm-linux.h: Ditto.
11841 * config/i386/xm-windows.h: Delete file.
11843 2002-01-19 Andrew Cagney <ac131313@redhat.com>
11845 * utils.c: Include <sys/param.h> for MAXPATHLEN.
11846 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
11848 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11850 * alpha-tdep.c (alpha_call_dummy_words): New.
11851 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
11852 (CALL_DUMMY_P): Define.
11853 (CALL_DUMMY_WORDS): Define.
11854 (SIZEOF_CALL_DUMMY_WORDS): Define.
11856 2002-01-19 Per Bothner <per@bothner.com>
11858 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
11859 isn't NULL, which can happen with some gcj-3.x-produced code.
11861 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
11863 * alpha-tdep.c (alpha_register_virtual_type): New function.
11864 (alpha_init_frame_pc_first): Ditto.
11865 (alpha_fix_call_dummy): Ditto.
11866 (alpha_store_struct_return): Ditto.
11867 (alpha_extract_struct_value_address): Ditto.
11868 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
11869 alpha_register_virtual_type.
11870 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
11871 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
11872 alpha_extract_struct_value_address.
11873 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
11874 (INIT_FRAME_PC): Use init_frame_pc_noop.
11875 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
11877 2002-01-19 Mark Kettenis <kettenis@gnu.org>
11879 * i386gnu-nat.c: Include "i386-tdep.h".
11880 (fetch_fpregs): Simplify code dealing with uninitialized floating
11881 point states such that it doesn't require FP7_REGNUM.
11883 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11885 * alpha-tdep.c (frame_extra_info): New.
11886 (alpha_find_saved_regs): Make static. Use
11888 (alpha_frame_init_saved_regs): New function.
11889 (alpha_frame_saved_pc): Use frame->extra_info.
11890 (temp_saved_regs): Don't declare as struct frame_saved_regs.
11891 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
11892 (init_extra_frame_info): Rename to...
11893 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
11894 (alpha_print_extra_frame_info): New function.
11895 (alpha_frame_locals_address): Ditto.
11896 (alpha_frame_args_address): Ditto.
11897 (alpha_pop_frame): Use frame->extra_info.
11898 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
11899 alpha_frame_args_address.
11900 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
11901 (alpha_find_saved_regs): Remove prototype.
11902 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
11903 (EXTRA_FRAME_INFO): Remove.
11904 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
11905 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
11907 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11909 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
11910 (alpha_cannot_fetch_register): Ditto.
11911 (alpha_cannot_store_register): Ditto.
11912 (alpha_register_convertible): Ditto.
11913 (alpha_use_struct_convention): Ditto.
11914 * config/alpha/tm-alpha.h: Update copyright years.
11915 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
11916 (INNER_THAN): Use core_addr_lessthan.
11917 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
11918 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
11919 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
11920 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
11921 (FRAME_CHAIN): Remove unnecessary cast.
11923 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11925 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
11928 2002-01-18 Andrew Cagney <ac131313@redhat.com>
11930 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
11931 * monitor.c, remote-array.c, remote-bug.c: Ditto.
11932 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
11933 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
11934 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
11935 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
11936 * x86-64-linux-nat.c: Ditto.
11938 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11940 * alpha-tdep.c (alpha_register_name): New function.
11941 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
11942 (REGISTER_NAME): Define.
11944 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11946 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
11948 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11950 * alpha-tdep.c: Update copyright years.
11951 (alpha_next_pc): New function.
11952 (alpha_software_single_step): Ditto.
11953 * config/alpha/tm-alpha.h: Add prototype for
11954 alpha_software_single_step.
11956 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
11958 * alphabsd-nat.c: Update copyright years.
11959 (fill_gregset): Use regcache_collect.
11960 (fill_fpregset): Likewise.
11961 (fetch_inferior_registers): Only fetch integer registers
11962 if requested to do so.
11963 (store_inferior_registers): Only store integer registers
11964 if requested to do so.
11966 2002-01-17 Andrew Cagney <ac131313@redhat.com>
11968 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
11969 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
11970 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
11971 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
11972 * config/alpha/fbsd.mh (XDEPFILES): Delete.
11973 * config/arm/linux.mh (XDEPFILES): Delete.
11974 * config/arm/nbsd.mh (XDEPFILES): Delete.
11975 * config/i386/i386dgux.mh (XDEPFILES): Delete.
11976 * config/i386/i386sol2.mh (XDEPFILES): Delete.
11977 * config/i386/i386m3.mh (XDEPFILES): Delete.
11978 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
11979 * config/i386/i386gnu.mh (XDEPFILES): Delete.
11980 * config/i386/fbsd.mh (XDEPFILES): Delete.
11981 * config/i386/i386bsd.mh (XDEPFILES): Delete.
11982 * config/i386/i386sco5.mh (XDEPFILES): Delete.
11983 * config/i386/i386v4.mh (XDEPFILES): Delete.
11984 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
11985 * config/i386/i386sco4.mh (XDEPFILES): Delete.
11986 * config/i386/i386aix.mh (XDEPFILES): Delete.
11987 * config/i386/go32.mh (XDEPFILES): Delete.
11988 * config/i386/cygwin.mh (XDEPFILES): Delete.
11989 * config/i386/i386lynx.mh (XDEPFILES): Delete.
11990 * config/i386/i386mach.mh (XDEPFILES): Delete.
11991 * config/i386/i386v32.mh (XDEPFILES): Delete.
11992 * config/i386/linux.mh (XDEPFILES): Delete.
11993 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
11994 * config/i386/ncr3000.mh (XDEPFILES): Delete.
11995 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
11996 * config/i386/i386sco.mh (XDEPFILES): Delete.
11997 * config/i386/i386v.mh (XDEPFILES): Delete.
11998 * config/i386/nbsd.mh (XDEPFILES): Delete.
11999 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12000 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12001 * config/i386/symmetry.mh (XDEPFILES): Delete.
12002 * config/i386/obsd.mh (XDEPFILES): Delete.
12003 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12004 * config/ia64/linux.mh (XDEPFILES): Delete.
12005 * config/ia64/aix.mh (XDEPFILES): Delete.
12006 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12007 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12008 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12009 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12010 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12011 * config/m68k/linux.mh (XDEPFILES): Delete.
12012 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12013 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12014 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12015 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12016 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12017 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12018 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12019 * config/m88k/delta88.mh (XDEPFILES): Delete.
12020 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12021 * config/m88k/m88k.mh (XDEPFILES): Delete.
12022 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12023 * config/mips/linux.mh (XDEPFILES): Delete.
12024 * config/mips/irix6.mh (XDEPFILES): Delete.
12025 * config/mips/irix5.mh (XDEPFILES): Delete.
12026 * config/mips/irix4.mh (XDEPFILES): Delete.
12027 * config/mips/irix3.mh (XDEPFILES): Delete.
12028 * config/mips/decstation.mh (XDEPFILES): Delete.
12029 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12030 (NATDEPFILES): Move core-aout.o to here.
12031 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12032 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12033 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12034 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12035 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12036 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12037 * config/pa/hpux11.mh (XDEPFILES): Delete.
12038 * config/powerpc/aix.mh (XDEPFILES): Delete.
12039 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12040 * config/powerpc/linux.mh (XDEPFILES): Delete.
12041 * config/romp/rtbsd.mh: Rename XDEPFILES.
12042 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12043 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12044 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12045 * config/s390/s390.mh (XDEPFILES): Delete.
12046 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12047 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12048 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12049 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12050 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12051 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12052 * config/sparc/linux.mh (XDEPFILES): Delete.
12053 * config/vax/vaxult.mh (XDEPFILES): Delete.
12054 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12055 * Makefile.in (DEPFILES): Remove XDEPFILES.
12057 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12059 * utils.c (internal_verror): Fix comments, default is yes not no.
12060 Update queries to match. Default to quit and dump core.
12062 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12064 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12066 * defs.h, event-top.c, gdbcmd.h: Ditto.
12067 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12068 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12069 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12070 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12071 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12072 * mi/mi-main.c:Ditto.
12074 * stack.c, symfile.c: Update copyright.
12076 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12078 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12079 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12080 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12081 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12083 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12085 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12086 * gdbserver/low-lynx.c (myattach): Likewise.
12087 * gdbserver/low-nbsd.c (myattach): Likewise.
12088 * gdbserver/low-sim.c (myattach): Likewise.
12089 * gdbserver/low-sparc.c (myattach): Likewise.
12090 * gdbserver/low-sun3.c (myattach): Likewise.
12092 * gdbserver/low-linux.c (myattach): New function.
12094 * gdbserver/server.c (attach_inferior): New function.
12095 (main): Handle "--attach".
12097 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12099 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12102 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12104 * c-typeprint.c (is_type_conversion_operator): Add additional
12105 check for non-conversion operators.
12107 2002-01-15 Michael Snyder <msnyder@redhat.com>
12109 * linux-proc.c: Add "info proc" command, a la procfs.c.
12110 (read_mapping): New function, abstract and re-use code.
12111 (linux_find_memory_regions): Use new func read_mapping.
12112 (linux_info_proc_cmd): New function, implement "info proc".
12113 (_initialize_linux_proc): Add new command "info proc".
12115 2002-01-15 Michael Snyder <msnyder@redhat.com>
12117 * symfile.c (generic_load): Use bfd_map_over_sections method
12118 instead of manipulating bfd structure members directly.
12119 (add_section_size_callback): New function, bfd sections callback
12120 used by generic_load.
12121 (load_sections_callback): New function, bfd sections callback
12122 used by generic_load.
12124 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12126 [Based on work by Jim Blandy]
12127 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12128 (builtin_type_vec128): Export.
12129 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12131 (builtin_type_vec128): New builtin type for 128 bit vector
12133 (build_gdbtypes): Initialize builtin_type_v16qi and
12134 builtin_type_v8hi. Create the vec128 register builtin type
12136 (build_builtin_type_vec128): New function.
12137 (_initialize_gdbtypes): Register builtin_type_v16qi and
12138 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12139 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12140 AltiVec register to new builtin type.
12142 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12144 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12147 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12149 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12150 CLEAN_UP_REGISTER_VALUE.
12151 * regcache.c (supply_register): Update only call.
12153 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12155 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12156 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12157 a29k-*-vxworks* targets as obsolete.
12159 2002-01-14 Michael Snyder <msnyder@redhat.com>
12161 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12162 until we can resolve portability issues.
12163 * gregset.h: Remove references to fpxregs.
12164 * gcore.c (gcore_command): Initialize note_sec to NULL.
12166 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12168 * signals.c (target_signal_to_name): Rewrite. Only use
12169 signals[].name when in bounds and non-NULL.
12171 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12173 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12174 * signals.c (target_signal_to_name): Verify that SIG is within the
12175 bounds of the signals array.
12177 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12179 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12181 2002-01-13 Keith Seitz <keiths@redhat.com>
12183 * stack.c (print_frame_info_base): Print the frame's pc
12184 only if when print_frame_info_listing_hook is not defined.
12186 2002-01-13 Keith Seitz <keiths@redhat.com>
12188 * varobj.c (varobj_set_value): Make sure that there were no
12189 errors evaluating the object before attempting to set its
12191 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12192 so this offset adjustment is no longer necessary.
12193 (create_child): Don't set the error flag if the child is
12194 a CPLUS_FAKE_CHILD.
12195 (value_of_child): If value_fetch_lazy fails, return NULL
12196 so that callers will be notified that an error occurred.
12197 (c_value_of_variable): Delay check of variable's validity
12198 until later. We actually want all structs and unions to have
12200 Do not return "???" for variables which could not be evaluated.
12201 This error condition must be returned to the caller so that it
12202 can get the error condition from gdb.
12203 (cplus_name_of_child): Adjust index for vptr before figuring
12204 out the name of the child.
12205 (cplus_value_of_child): If a child's (real) parent is not valid,
12206 don't even bother trying to give a value for it. Just return
12207 an error. Change all instances in this function.
12208 (cplus_type_of_child): If our parent is one of the "fake"
12209 parents, we need to get at the type of the real parent, and
12210 derive the child's true type using this information.
12212 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12214 From 2002-01-09 John Marshall <johnm@falch.net>:
12215 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12216 sources.redhat.com, and tweak some related URLs which had
12217 suffered from linkrot.
12219 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12222 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12223 structures passed in registers.
12225 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12227 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12228 white space which prevented compilation. Reported by DSK
12229 <dsk@student.unsw.edu.au>.
12231 2002-01-11 Michael Snyder <msnyder@redhat.com>
12233 * symfile.c (build_section_addr_info_from_section_tab):
12234 Use bfd access method instead of manipulating bfd directly.
12235 (syms_from_objfile): Ditto.
12236 (simple_overlay_update_1): Ditto.
12237 (simple_overlay_update): Ditto.
12238 (generic_load): Ditto.
12239 (overlay_unmapped_address): FIXME comment, bfd access methods.
12240 (sections_overlap): FIXME comment, bfd access methods.
12241 (pc_in_mapped_range): FIXME comment, bfd access methods.
12242 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12243 (section_is_mapped): FIXME comment, bfd access methods.
12244 (section_is_overlay): FIXME comment, bfd access methods.
12246 * symfile.c (generic_load): Whitespace and long line cleanups.
12247 Remove duplicate variable, change several local variables to
12248 more appropriate data types.
12249 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12251 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12253 From Peter Schauer:
12254 * language.c (longest_local_hex_string_custom): Use phex_nz to
12255 convert NUM to a hex string.
12257 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12259 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12261 Update Copyright year.
12263 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12265 * language.c (longest_raw_hex_string): Delete unused function.
12267 2002-01-11 Petr Sorfa <petrs@caldera.com>
12269 * MAINTAINERS (write-after-approval): Add myself.
12270 * dwarf2read.c (read_tag_string_type): Handling of
12272 (read_tag_string_type): FORTRAN fix to prevent propagation of
12274 (set_cu_language): Handling of DW_LANG_Fortran95
12276 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
12278 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
12279 GETPID(inferior_ptid).
12280 (store_inferior_registers): Likewise.
12282 2002-01-10 Jason Merrill <jason@redhat.com>
12284 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
12287 2002-01-10 Andrew Cagney <ac131313@redhat.com>
12289 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
12290 and bfd/elf32-sh-nbsd.c.
12292 2002-01-10 Michael Snyder <msnyder@redhat.com>
12294 * NEWS: Mention --pid and corefile/proc-id behavior change.
12296 * Makefile.in: Add rules for gcore.o and linux-proc.o.
12297 * gcore.c: Include cli/cli-decode.h instead of command.h.
12299 * main.c (captured_main): Add new command line option "--pid".
12300 If the second command line argument (following the symbol-file)
12301 begins with a digit, try to attach to it before trying to open
12303 (print_gdb_help): Document the "--pid" argument.
12305 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
12307 * completer.c (command_completer): New function.
12309 * completer.h <command_completer>: Add prototype.
12311 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
12312 completer for the "help" command.
12314 2002-01-09 Jason Merrill <jason@redhat.com>
12316 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
12318 2002-01-09 Michael Snyder <msnyder@redhat.com>
12320 * i386-linux-nat.c (fill_fpxregset): Make global.
12321 (store_fpxregset): Ditto.
12323 * gregset.h (gdb_fpxregset_t): Define.
12324 (supply_fpxregset): Prototype.
12325 (fill_fpxregset): Prototype.
12327 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
12329 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12331 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
12332 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
12333 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
12335 2002-01-09 Andrew Cagney <ac131313@redhat.com>
12337 * MAINTAINERS: Update target maintainer rules so that any
12338 Maintainer can approve a tested patch for a maintenance-only
12341 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
12343 * MAINTAINERS (write-after-approval): Add myself.
12345 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
12348 2002-01-08 Michael Snyder <msnyder@redhat.com>
12350 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
12351 real name of the executable, rather than the /proc name.
12353 2002-01-03 Michael Snyder <msnyder@redhat.com>
12355 Implement a "generate-core-file" command in gdb, save target state.
12356 * gcore.c: New file. Implement new command 'generate-core-file'.
12357 Save a corefile image of the current state of the inferior.
12358 * linux-proc.c: Add linux-specific code for saving corefiles.
12359 * target.h (struct target_ops): Add new target vectors for saving
12360 corefiles; to_find_memory_regions and to_make_corefile_notes.
12361 (target_find_memory_regions): New macro.
12362 (target_make_corefile_notes): New macro.
12363 * target.c (update_current_target): Inherit new target methods.
12364 (dummy_find_memory_regions): New place-holder method.
12365 (dummy_make_corefile_notes): New place-holder method.
12366 (init_dummy_target): Initialize new dummy target vectors.
12367 * exec.c (exec_set_find_memory_regions): New function.
12368 Allow the exec_ops vector for memory regions to be taken over.
12369 (exec_make_note_section): New function, target vector method.
12370 * defs.h (exec_set_find_memory_regions): Export prototype.
12371 * procfs.c (proc_find_memory_regions): New function, corefile method.
12372 (procfs_make_note_section): New function, corefile method.
12373 (init_procfs_ops): Set new target vector pointers.
12374 (find_memory_regions_callback): New function.
12375 (procfs_do_thread_registers): New function.
12376 (procfs_corefile_thread_callback): New function.
12377 * sol-thread.c (sol_find_memory_regions): New function.
12378 (sol_make_note_section): New function.
12379 (init_sol_thread_ops): Initialize new target vectors.
12380 * inftarg.c (inftarg_set_find_memory_regions): New function.
12381 Allow to_find_memory_regions vector to be taken over.
12382 (inftarg_set_make_corefile_notes): New function.
12383 Allow to_make_corefile_notes vector to be taken over.
12384 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
12385 interface layer if not target_has_execution (may be a corefile).
12386 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
12387 * config/sparc/sun4sol2.mh: Ditto.
12388 * config/alpha/alpha-linux.mh: Ditto.
12389 * config/arm/linux.mh: Ditto.
12390 * config/i386/x86-64linux.mh: Ditto.
12391 * config/ia64/linux.mh: Ditto.
12392 * config/m68k/linux.mh: Ditto.
12393 * config/mips/linux.mh: Ditto.
12394 * config/powerpc/linux.mh: Ditto.
12395 * config/sparc/linux.mh: Ditto.
12397 2002-01-07 Michael Snyder <msnyder@redhat.com>
12399 * arm-linux-nat.c: Remove references to regcache.c internal data
12400 (registers[] and register_valid[]).
12402 2002-01-07 Michael Snyder <msnyder@redhat.com>
12404 * linux-proc.c: New file. Implement child_pid_to_exec_file,
12405 so that attaching to a pid will automatically read the process's
12406 symbol file and shlibs.
12407 * Makefile.in: Add rule for linux-proc.o.
12408 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
12409 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
12410 * config/arm/linux.mh: Ditto.
12411 * config/i386/linux.mh: Ditto.
12412 * config/i386/x86-64linux.mh: Ditto.
12413 * config/ia64/linux.mh: Ditto.
12414 * config/m68k/linux.mh: Ditto.
12415 * config/mips/linux.mh: Ditto.
12416 * config/powerpc/linux.mh: Ditto.
12417 * config/sparc/linux.mh: Ditto.
12419 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
12421 * win32-nat.c: Add i386-tdep.h dependency.
12423 2002-01-07 Michael Snyder <msnyder@redhat.com>
12425 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
12426 instead of bfd_get_arch_size. Don't bail out just because
12427 there's no exec_bfd.
12429 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
12430 * p-valprint.c (pascal_object_print_value): Ditto.
12431 * somread.c (som_symtab_read): Ditto.
12432 * symfile.c (simple_free_overlay_region_table): Ditto.
12433 * valops.c (value_assign): Ditto.
12435 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
12436 use tilde_expand and strerror for opening save-tracepoints file.
12438 * thread-db.c (thread_db_new_objfile): Indendation fix.
12440 * infptrace.c (GDB_MAX_ALLOCA): New define.
12441 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
12442 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
12443 can be overridden with whatever value is appropriate to the host).
12444 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
12445 alloca to allocate potentially large buffer.
12446 * rs6000-nat.c (child_xfer_memory): Ditto.
12447 * symm-nat.c (child_xfer_memory): Ditto.
12448 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
12450 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
12452 From Nick Clifton <nickc@redhat.com>
12453 * d10v-tdep.c: Set STACK_START to 0x200bffe.
12455 2002-01-07 Michael Snyder <msnyder@redhat.com>
12457 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12458 Don't use exec_bfd if it's NULL.
12460 2002-01-06 Mark Kettenis <kettenis@gnu.org>
12462 * valops.c (value_arg_coerce): Fix formatting.
12464 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12466 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
12467 * gnu-nat.c: Ditto.
12469 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12471 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
12472 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
12473 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
12474 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
12475 z8k-coff have not been multi-arched. Update z8k-coff build
12478 2002-01-06 Andrew Cagney <ac131313@redhat.com>
12480 * MAINTAINERS: Mark a29k target as obsolete.
12481 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
12482 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
12484 * NEWS: Note that a29k targets are obsolete.
12485 * a29k-tdep.c: Mark as obsolete.
12486 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12487 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12488 a29k-*-vxworks* targets as obsolete.
12489 * remote-adapt.c: Obsolete.
12490 * remote-eb.c: Obsolete.
12491 * remote-mm.c: Obsolete.
12492 * remote-udi.c: Obsolete.
12493 * config/a29k/a29k-udi.mt: Obsolete.
12494 * config/a29k/a29k.mt: Obsolete.
12495 * config/a29k/tm-a29k.h: Obsolete.
12496 * config/a29k/tm-vx29k.h: Obsolete.
12497 * config/a29k/vx29k.mt: Obsolete.
12499 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12501 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
12502 with BFD_ENDIAN_BIG.
12504 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12506 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
12507 * configure, config.in: Re-generate.
12508 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
12509 * defs.h: Do not include <endian.h>.
12511 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
12513 * acconfig.h (HAVE_PT_GETXMMREGS): New.
12514 * config.in: Regenerate.
12515 * configure.in: Update copyright years.
12516 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
12517 * configure: Regenerate.
12518 * i386bsd-nat.c: Update copyright years.
12519 (fill_gregset): Use regcache_collect.
12520 (fetch_inferior_registers): Only fetch integer registers
12521 if requested to do so. Add support for XMM registers
12522 using PT_GETXMMREGS.
12523 (store_inferior_registers): Only store integer registers
12524 if requested to do so. Add support for XMM registers
12525 using PT_SETXMMREGS.
12526 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
12527 (store_inferior_registers): Remove.
12528 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
12529 (fetch_elfcore_registers): New function.
12530 (i386nbsd_elfcore_fns): New.
12531 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
12532 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
12534 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
12535 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
12536 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
12537 * config/i386/tm-nbsd.h: Update copyright years.
12538 (HAVE_SSE_REGS): Define.
12539 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
12540 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
12541 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
12542 (SIGCONTEXT_PC_OFFSET): Remove.
12543 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
12545 2002-01-05 Andrew Cagney <ac131313@redhat.com>
12547 * configure.tgt: Remove powerpc-*-macos* target.
12548 * config/m68k/xm-mpw.h: Delete file.
12549 * config/xm-mpw.h: Delete file.
12550 * ser-mac.c: Delete file.
12551 * mpw-make.sed: Delete file.
12552 * mpw-config.in: Delete file.
12553 * mac-xdep.c: Delete file.
12554 * mac-gdb.r: Delete file.
12555 * mac-defs.h: Delete file.
12556 * mac-nat.c: Delete file.
12557 * config/powerpc/macos.mh: Delete file.
12558 * config/powerpc/macos.mt: Delete file.
12559 * config/powerpc/nm-macos.h: Delete file.
12560 * config/powerpc/tm-macos.h: Delete file.
12561 * source.c (openp, open_source_file): Remove obsolete code.
12562 * top.c (gdb_readline): Ditto.
12563 * utils.c (query): Ditto.
12564 * event-top.c (display_gdb_prompt): Ditto.
12565 * Makefile.in (ser-mac.o): Delete obsolete target.
12568 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12570 * defs.h (BIG_ENDIAN): Delete macro definition.
12571 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
12572 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
12573 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
12574 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
12575 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
12576 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
12577 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
12578 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
12579 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
12580 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
12581 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
12582 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
12583 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12584 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
12585 * gdbarch.c: Re-generate.
12587 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12589 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
12592 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12594 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
12596 2002-01-04 Andrew Cagney <ac131313@redhat.com>
12598 * value.h (value_ptr): Delete typedef.
12600 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
12602 * i386nbsd-nat.c: Update copyright years.
12603 Include i386-tdep.h.
12605 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
12607 * stabsread.c: Update copyright years.
12609 From Debashis Mahata <debashis.mahata@wipro.com>:
12610 (read_struct_fields): Deal with Sun C compiler erroneous stab
12611 output for structs and unions.
12614 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12616 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
12619 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12621 * cp-abi.c: Fix whitespace.
12622 (baseclass_offset): New wrapper function.
12623 * cp-abi.h (baseclass_offset): Add prototype.
12624 (struct cp_abi_ops): Add baseclass_offset pointer.
12626 * valops.c (vb_match): Move to...
12627 * gnu-v2-abi.c (vb_match): here.
12628 * valops.c (baseclass_offset): Move to...
12629 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
12631 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
12633 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
12634 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
12635 * hpacc-abi.c (init_hpacc_ops): Likewise.
12637 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12639 * valops.c (find_overload_match): Accept obj as a
12640 reference parameter. Update it before returning.
12641 * value.h (find_overload_match): Update prototype.
12642 * eval.c (evaluate_subexp_standard): Pass object to
12643 find_overload_match by reference.
12645 2002-01-03 Andrew Cagney <ac131313@redhat.com>
12647 * valarith.c: Replace value_ptr with struct value pointer. Remove
12648 register attribute from value declarations.
12651 * scm-lang.c (scm_lookup_name): Ditto.
12653 2002-01-03 Michael Snyder <msnyder@redhat.com>
12655 Abstract the functionality of iterating over mapped memory
12656 regions into a general purpose iterator function.
12657 * procfs.c (iterate_over_mappings): New function, general purpose
12658 iterator for memory sections.
12659 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
12660 (solib_mappings_callback): New function, callback for above.
12661 (info_proc_mappings): Reimpliment using iterate_over_mappings.
12662 (info_mappings_callback): New function, callback for above.
12664 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
12666 2002-01-01 Mark Kettenis <kettenis@gnu.org>
12668 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
12669 * i386-tdep.c: Include "elf-bfd.h".
12670 (process_note_abi_tag_sections): New function.
12671 (i386_gdbarch_init): Add code to recognize various OS/ABI
12674 * maint.c (_initialize_maint_cmds): Add missing \ in
12677 For older changes see ChangeLog-2001
12683 version-control: never