1 2002-04-24 Michael Snyder <msnyder@redhat.com>
3 * parser-defs.h (prev_lexptr): New external variable.
4 * parse.c (parse_exp_1): Set prev_lexptr to null before
5 calling the language-specific parser.
6 * c-exp.y (yylex): Set prev_lexptr to start of current token.
7 (yyerror): Use prev_lexptr in error reporting.
9 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
12 * gregset.h: If FILL_FPXREGSET is defined, provide
13 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
14 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
15 is defined, call fill_fpxregset.
17 2002-04-24 Roland McGrath <roland@frob.com>
19 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
20 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
21 (supply_gregset, supply_fpregset): New functions.
23 * gnu-nat.c (gnu_find_memory_regions): New function.
24 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
25 (gnu_xfer_memory): Add a cast.
27 2002-04-24 Michael Snyder <msnyder@redhat.com>
29 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
30 loop. Add handling for "str lr, [sp, #-4]!" and for saves
31 of argument regs ("str r(0123), [r11, #-nn"]).
32 (arm_skip_prologue): Better handling for frameless functions.
33 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
34 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
36 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
38 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
39 NUM_PSEUDO_REGS can be used.
41 2002-04-24 Andrew Cagney <ac131313@redhat.com>
43 * arch-utils.h: Update copyright.
45 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
46 * gdbarch.h, gdbarch.c: Re-generate.
48 * inferior.h (IN_SIGTRAMP): Delete definition.
49 * arch-utils.c (legacy_pc_in_sigtramp): New function.
50 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
52 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
53 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
54 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
55 (find_proc_framesize): Ditto.
56 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
57 (alpha_init_extra_frame_info): Ditto.
58 * infrun.c (handle_inferior_event): Ditto.
59 (handle_inferior_event): Ditto.
60 (check_sigtramp2): Ditto.
61 * blockframe.c (create_new_frame): Ditto.
62 (get_prev_frame): Ditto.
63 * ppc-linux-tdep.c: Update comments.
64 * i386-linux-tdep.c: Update comments.
65 * breakpoint.c (bpstat_what): Update comment.
67 2002-04-24 Michal Ludvig <mludvig@suse.cz>
69 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
70 (regsets_store_inferior_registers): Removed cast to int from
72 * gdbserver/regcache.h: Added declaration of struct inferior_info.
74 2002-04-24 David S. Miller <davem@redhat.com>
76 * i960-tdep.c (register_in_window_p): New function.
77 (i960_find_saved_register): Use it instead of
79 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
81 * symtab.h (find_stab_function_addr): Kill extern.
82 * minsyms.c (find_stab_function_addr): Remove from here...
83 * dbxread.c: ... to here, and mark it static.
85 2002-04-20 David S. Miller <davem@redhat.com>
87 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
88 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
90 2002-04-21 David S. Miller <davem@redhat.com>
92 * remote-vxsparc.c (vx_read_register): Fix typo, we want
93 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
94 (vx_write_register): Likewise.
96 2002-04-23 J. Brobecker <brobecker@gnat.com>
98 * source.c (is_regular_file): New function.
99 (openp): Check wether file to open is a regular file
100 to avoid opening directories.
102 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
104 * findvar.c (extract_signed_integer): Cast printf argument
105 to suppress format warning.
106 (extract_unsigned_integer): Likewise.
107 * infcmd.c (registers_info): Likewise.
108 * top.c (get_prompt_1): Likewise.
109 * valops.c (value_assign): Likewise.
110 * valprint.c (print_decimal): Likewise.
112 2002-04-22 H.J. Lu (hjl@gnu.org)
114 * c-exp.y (typebase): Support
116 [long|long long|short] [signed|unsigned] [int|]
120 signed [long|long long|short] int
122 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
124 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
126 * vax-tdep.h: New file.
127 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
128 Make several routines static.
129 (vax_get_saved_register): New function.
130 (vax_gdbarch_init): New function.
131 (_initialize_vax_tdep): Register vax_gdbarch_init.
132 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
133 Remove macros now under the control of gdbarch.
135 2002-04-22 Michael Snyder <msnyder@redhat.com>
137 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
138 Some whitespace and coding standards tweaks.
140 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
142 * vax-tdep.c: Include regcache.h.
143 (vax_call_dummy_words): New.
144 (sizeof_vax_call_dummy_words): New.
145 (vax_fix_call_dummy): New function.
146 (vax_saved_pc_after_call): Ditto.
147 * config/vax/tm-vax.h: Don't include regcache.h.
148 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
149 (CALL_DUMMY): Remove.
150 (CALL_DUMMY_WORDS): Define.
151 (SIZEOF_CALL_DUMMY_WORDS): Define.
152 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
154 2002-04-18 Michael Snyder <msnyder@redhat.com>
156 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
158 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
160 * vax-tdep.c (vax_frame_chain): New function.
161 (vax_push_dummy_frame): Ditto.
162 (vax_pop_frame): Ditto.
163 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
164 (FRAMELESS_FUNCTION_INVOCATION): Use
165 generic_frameless_function_invocation_not.
166 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
167 (POP_FRAME): Use vax_pop_frame.
169 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
171 * vax-tdep.c (vax_store_struct_return): New function.
172 (vax_extract_return_value): Ditto.
173 (vax_store_return_value): Ditto.
174 (vax_extract_struct_value_address): Ditto.
175 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
176 vax_store_struct_return.
177 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
178 (STORE_RETURN_VALUE): Use vax_store_return_value.
179 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
181 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
183 * vax-tdep.c (vax_frame_saved_pc): New function.
184 (vax_frame_args_address_correct): Ditto.
185 (vax_frame_args_address): Ditto.
186 (vax_frame_locals_address): Ditto.
187 (vax_frame_num_args): Move code to be in proximity to
188 other frame-related functions.
189 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
190 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
191 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
192 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
193 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
195 2002-04-22 H.J. Lu (hjl@gnu.org)
197 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
200 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
202 * vax-tdep.c (vax_frame_init_saved_regs): New function.
203 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
204 (FRAME_INIT_SAVED_REGS): New macro.
206 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
208 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
210 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
212 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
214 (fetch_osf_core_registers): Likewise.
215 (supply_gregset): Likewise.
217 2002-04-22 J. Brobecker <brobecker@gnat.com>
219 * symfile.h (get_section_index): Define.
220 * symfile.c (get_section_index): New function.
221 * mdebugread.c (SC_IS_SBSS): New macro.
222 (SC_IS_BSS): Return true for the scBss storage class only, as
223 the scSBss storage class refers to the .sbss section.
224 (parse_partial_symbols): Discard the symbols which associated
225 section does not exist.
226 Make sure to use the .sbss section index for symbols which
227 storage class is scBss, rather than using the .bss section index.
229 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
231 * vax-tdep.c: Update copyright years.
232 (vax_register_name): New function.
233 (vax_register_byte): Ditto.
234 (vax_register_raw_size): Ditto.
235 (vax_register_virtual_size): Ditto.
236 (vax_register_virtual_type): Ditto.
237 * config/vax/tm-vax.h: Update copyright years.
238 (REGISTER_NAMES): Remove.
239 (REGISTER_NAME): Define.
240 (REGISTER_BYTE): Use vax_register_byte.
241 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
242 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
243 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
245 2002-04-21 Andrew Cagney <ac131313@redhat.com>
247 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
249 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
251 2002-04-21 David S. Miller <davem@redhat.com>
253 * arch-utils.c (generic_prologue_frameless_p): Kill
254 SKIP_PROLOGUE_FRAMELESS_P code.
255 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
257 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
258 * arc-tdep.c (arc_prologue_frameless_p): Implement.
259 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
261 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
262 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
263 (sparc_gdbarch_init): Pass it to
264 set_gdbarch_prologue_frameless_p.
266 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
268 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
269 (alphabsd-nat.o): New dependency list.
271 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
273 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
275 (alpha-linux-tdep.o): New dependency list.
276 (alphafbsd-tdep.o): Likewise.
278 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
280 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
282 * alpha-tdep.c: ...from here.
283 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
285 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
287 * config/alpha/tm-alpha.h: Move alpha_software_single_step
288 prototype from here...
289 * alpha-tdep.h: ...to here.
291 2002-04-21 Andrew Cagney <ac131313@redhat.com>
293 * frame.h (selected_frame_level): Document as deprecated.
294 (frame_relative_level): Declare.
295 * stack.c (frame_relative_level): New function.
296 (selected_frame_level): Document as deprecated.
297 (select_frame): Do not set the selected_frame_level.
299 * stack.c (frame_info, record_selected_frame): Update.
300 (frame_command, current_frame_command): Update.
301 (up_silently_base, up_command, down_silently_base): Update.
302 (down_command): Update.
303 * inflow.c (kill_command): Update.
304 * tracepoint.c (finish_tfind_command): Update.
305 * corelow.c (core_open): Update.
306 * thread.c (info_threads_command): Update.
307 (do_captured_thread_select): Update.
308 * infcmd.c (finish_command): Update.
309 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
311 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
313 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
315 2002-04-21 Andrew Cagney <ac131313@redhat.com>
317 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
320 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
322 * alphafbsd-tdep.c: Update copyright years. Include
324 (alphafbsd_use_struct_convention): Make static.
325 (alphafbsd_init_abi): New function.
326 (_initialize_alphafbsd_tdep): New function.
327 * config/alpha/tm-fbsd.h: Update copyright years.
328 (USE_STRUCT_CONVENTION): Remove.
330 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
332 * alpha-tdep.c (alpha_abi_handler): New structure to describe
333 an Alpha ABI variant.
334 (alpha_abi_handler_list): Declare.
335 (alpha_gdbarch_register_os_abi): New function.
336 (alpha_gdbarch_init): Give registered ABI variant handlers a
337 chance to tweak the gdbarch once we have set up defaults.
338 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
340 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
342 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
343 to standard_coerce_float_to_double.
344 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
346 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
348 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
349 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
350 from gdbarch_tdep rather than a constant.
351 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
352 the default text address for all Alpha Unix ABIs.
353 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
354 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
356 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
358 * alpha-tdep.h: New file. Includes several Alpha target constants
360 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
361 let gdbarch deal with.
362 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
363 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
365 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
366 Alpha target register names.
367 * alphabsd-nat.c: Likewise.
368 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
369 Alpha target register names. Make serveral routines static.
370 (alpha_get_saved_register): New function.
371 (alpha_abi_names): New.
372 (process_note_abi_tag_sections): New function.
373 (get_elfosabi): New function.
374 (alpha_gdbarch_init): New function.
375 (alpha_dump_tdep): New function.
376 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
378 2002-04-21 Andrew Cagney <ac131313@redhat.com>
380 * frame.c (find_saved_register): Delete #ifdef
381 HAVE_REGISTER_WINDOWS code.
382 * config/sparc/tm-sparc.h: Update comments.
383 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
385 2002-04-21 Andrew Cagney <ac131313@redhat.com>
387 * i960-tdep.c (i960_find_saved_register): New function.
388 (i960_get_saved_register): New function.
389 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
390 (i960_get_saved_register): Declare.
391 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
393 2002-04-20 David S. Miller <davem@redhat.com>
395 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
397 2002-04-20 Andrew Cagney <ac131313@redhat.com>
399 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
400 instead of NUM_PSEUDO_REGS.
402 2002-04-20 David S. Miller <davem@redhat.com>
404 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
405 GDB_MULTI_ARCH_PARTIAL
406 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
407 define, let tm-sp64.h do it.
409 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
411 * frame.c (find_saved_register): Avoid a NULL pointer
412 dereference and actually walk the frame list.
414 2002-04-20 Andrew Cagney <ac131313@redhat.com>
416 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
417 sorted in most most-recent-used order. Document.
418 * gdbarch.h, gdbarch.c: Regenerate.
420 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
422 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
423 (add_inferior): Call create_register_cache.
424 (clear_inferiors): Call free_register_cache.
425 (inferior_regcache_data, set_inferior_regcache_data): New functions.
426 * gdbserver/regcache.c (struct inferior_regcache_data): New.
428 (get_regcache): New function.
429 (create_register_cache, free_register_cache): New functions.
430 (set_register_cache): Don't initialize the register cache here.
431 (registers_to_string, registers_from_string, register_data): Call
433 * gdbserver/regcache.h: Add prototypes.
434 * gdbserver/server.h: Likewise.
436 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
438 * gdbserver/mem-break.c: New file.
439 * gdbserver/mem-break.h: New file.
440 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
442 * gdbserver/inferiors.c (struct inferior_info): Add target_data
444 (clear_inferiors): Free target_data member if set.
445 (inferior_target_data, set_inferior_target_data): New functions.
446 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
447 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
448 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
449 (struct inferior_linux_data): New.
450 (linux_create_inferior): Use set_inferior_target_data.
451 (linux_attach): Likewise. Call add_inferior.
452 (linux_wait_for_one_inferior): New function.
453 (linux_wait): Call it.
454 (linux_write_memory): Add const.
455 (initialize_low): Call set_breakpoint_data.
456 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
458 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
460 * gdbserver/server.h: Include mem-break.h. Update inferior.c
462 * gdbserver/target.c (read_inferior_memory)
463 (write_inferior_memory): New functions.
464 * gdbserver/target.h (read_inferior_memory)
465 (write_inferior_memory): Change macros to prototypes.
466 (struct target_ops): Update comments. Add const to write_memory
469 2002-04-19 Andrew Cagney <ac131313@redhat.com>
471 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
473 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
474 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
475 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
478 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
481 * gdbtypes.c (init_simd_type): Rewrite using new functions.
482 (build_builtin_type_vec128): Ditto.
483 (append_composite_type_field): Fix calculation of type length in
486 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
488 * config/djgpp/README: Update.
490 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
493 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
495 * alpha-tdep.c (setup_arbitrary_frame): Rename...
496 (alpha_setup_arbitrary_frame): ...to this.
497 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
498 for alpha_setup_arbitrary_frame.
500 2002-04-18 Andrew Cagney <cagney@redhat.com>
502 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
503 * gdbarch.h, gdbarch.c: Regenerate.
505 * defs.h (breakpoint_from_pc_fn): Delete type definition.
506 * target.h (memory_breakpoint_from_pc): Update declaration.
507 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
509 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
510 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
511 * mem-break.c (memory_breakpoint_from_pc): Ditto.
512 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
513 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
514 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
515 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
516 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
517 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
518 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
519 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
520 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
522 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
524 * monitor.c (monitor_insert_breakpoint): Ditto.
525 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
527 * config/mcore/tm-mcore.h: Update copyright.
528 * mem-break.c: Ditto.
529 * xstormy16-tdep.c: Ditto.
531 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
533 * p-exp.y: Add precedence rule for '^' token.
534 This removes the shift/reduce conflicts.
535 Remove the comment concerning these shift/reduce conflicts.
537 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
539 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
540 (registers_powerpc_nofp): New register set for processors
541 without floating point unit.
543 2002-04-18 David S. Miller <davem@redhat.com>
545 * MAINTAINERS: Add myself to write-after-approval.
547 2002-04-17 Michael Snyder <msnyder@redhat.com>
549 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
551 2002-04-17 Andrew Cagney <ac131313@redhat.com>
553 * rs6000-tdep.c (frame_initial_stack_address): Use
554 frame_register_read to read the alloca_reg.
556 2002-04-17 Andrew Cagney <ac131313@redhat.com>
558 * frame.c (find_saved_register): Find saved registers in the next
562 2002-04-17 Andrew Cagney <ac131313@redhat.com>
564 * gdbarch.sh (LANG): Set to ``c''.
566 2002-04-15 Andrew Cagney <ac131313@redhat.com>
568 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
570 2002-04-15 Andrew Cagney <ac131313@redhat.com>
572 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
575 * hpread.c (hpread_get_lntt): Add declaration.
578 2002-04-14 Andrew Cagney <ac131313@redhat.com>
580 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
581 * aclocal.m4, configure: Re-generate.
584 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
586 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
587 instead of tm_print_insn.
589 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
591 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
593 2002-04-14 Andrew Cagney <ac131313@redhat.com>
595 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
596 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
597 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
599 2002-04-12 Don Howard <dhoward@redhat.com>
601 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
603 (init_cmd_lists): Initialize the new value;
604 * cli/cli-script.c (execute_user_command): Limit the call depth of
605 user defined commands. This avoids a core-dump when user commands
606 are infinitly recursive.
608 2002-04-12 Kevin Buettner <kevinb@redhat.com>
610 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
611 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
612 from tdep struct instead of DEFAULT_LR_SAVE.
613 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
614 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
615 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
617 2002-04-12 Michael Snyder <msnyder@redhat.com>
619 * Remote.c: Spelling fix.
620 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
621 If no symbol found for "sbrk", try "_sbrk".
622 (make_output_phdrs): Use bfd_section_name.
623 (gcore_copy_callback): Use bfd_section_name.
624 * eval.c: Indentation fix-ups.
625 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
626 in case it gets applied to an address that is already
627 in the instruction space.
628 * cli/cli-decode.c (help_list): Allow long lines to wrap.
629 * symfile.c: Fix indentation, long lines.
630 * source.c: White space fix-up.
632 2002-04-12 Andrew Cagney <cagney@redhat.com>
634 * defs.h (read_relative_register_raw_bytes): Delete declaration.
635 * frame.c (frame_register_read): New function. Return non-zero on
637 (read_relative_register_raw_bytes_for_frame): Delete.
638 (read_relative_register_raw_bytes): Delete.
639 * frame.h (frame_register_read): Declare.
640 * d30v-tdep.c: Update Copyright. Use frame_register_read.
642 * infcmd.c (do_registers_info): Ditto.
643 * hppa-tdep.c: Ditto.
644 * rs6000-tdep.c: Ditto.
645 * h8500-tdep.c: Ditto.
646 * mips-tdep.c: Ditto.
647 * h8300-tdep.c: Ditto.
650 2002-04-12 Kevin Buettner <kevinb@redhat.com>
652 From Jimi X <jimix@watson.ibm.com>:
653 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
656 2002-04-12 Kevin Buettner <kevinb@redhat.com>
658 From Jimi X <jimix@watson.ibm.com>:
659 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
662 2002-04-12 Kevin Buettner <kevinb@redhat.com>
664 From Jimi X <jimix@watson.ibm.com>:
665 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
666 register sets for these processor variants.
668 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
670 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
671 registers which are allowed to fail to store.
672 * gdbserver/linux-low.h (linux_target_ops): Likewise.
673 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
674 (ppc_cannot_store_register): FPSCR may not be storable.
675 * regformats/reg-ppc.dat: Support FPSCR.
677 2002-04-11 Kevin Buettner <kevinb@redhat.com>
679 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
680 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
681 Add fpscr as an invalid/unfetchable register.
682 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
683 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
684 (fill_fpregset): Add support for register fpscr.
685 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
686 (fill_gregset): Account for the fact that register ``mq'' might
688 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
689 (registers_power): Add fpscr to register set at slot 71.
690 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
691 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
693 2002-04-11 Michael Snyder <msnyder@redhat.com>
695 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
696 * configure: Regenerate.
697 * config.in: Regenerate.
698 * acconfig.h: Add define for _SYSCALL32.
699 * core-sol2.c: Remove #define _SYSCALL32.
700 * solib-legacy.c: Remove #define _SYSCALL32.
702 2002-04-10 Andrew Cagney <ac131313@redhat.com>
704 * stack.c (select_frame): Cleanup internal error message, do not
707 2002-04-10 Andrew Cagney <ac131313@redhat.com>
709 * stack.c (select_frame): Check that selected_frame and the
710 specified level are as expected.
711 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
713 * frame.h (struct frame_info): Add field `level'. Update
715 Work-in-progress PR gdb/464.
717 2002-04-10 Andrew Cagney <ac131313@redhat.com>
719 * maint.c (maint_print_section_info): Rename print_section_info.
720 (print_bfd_section_info, print_objfile_section_info): Update.
721 * inferior.h (struct gdbarch): Add opaque declaration.
722 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
723 * gdbarch.h: Regenerate.
725 2002-04-10 Michal Ludvig <mludvig@suse.cz>
727 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
728 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
729 (kernel_u_size): Added.
730 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
731 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
733 2002-04-04 Jim Ingham <jingham@apple.com>
735 * valarith.c (find_size_for_pointer_math): New function, either returns
736 the size for a pointer's target, returns 1 for void *, or errors for
738 (value_add, value_sub): use find_size_for_pointer_math.
740 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
742 * linux-low.c (linux_look_up_symbols): New hook.
743 (linux_target_ops): Add linux_look_up_symbols.
744 * remote-utils.c (decode_address): New function.
745 (look_up_one_symbol): New function.
746 * server.c (handle_query): Call target look_up_symbols hook.
747 * server.h (look_up_one_symbol): Add prototype.
748 * target.h (struct target_ops): Add look_up_symbols hook.
750 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
752 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
753 * ChangeLog: Correct paths in last ChangeLog entry.
755 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
757 * gdbserver/linux-low.h: Remove obsolete prototypes.
758 (struct linux_target_ops): New.
759 (extern the_low_target): New.
760 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
761 (register_addr): Use the_low_target explicitly.
762 (fetch_register): Likewise.
763 (usr_fetch_inferior_registers): Likewise.
764 (usr_store_inferior_registers): Likewise.
765 * gdbserver/linux-arm-low.c (num_regs): Remove.
766 (arm_num_regs): Define.
767 (arm_regmap): Renamed from regmap, made static.
768 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
770 (arm_cannot_store_register): Renamed from cannot_store_register,
772 (the_low_target): New.
773 * gdbserver/linux-i386-low.c (num_regs): Remove.
774 (i386_num_regs): Define.
775 (i386_regmap): Renamed from regmap, made static.
776 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
778 (i386_cannot_store_register): Renamed from cannot_store_register,
780 (the_low_target): New.
781 * gdbserver/linux-ia64-low.c (num_regs): Remove.
782 (ia64_num_regs): Define.
783 (ia64_regmap): Renamed from regmap, made static.
784 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
786 (ia64_cannot_store_register): Renamed from cannot_store_register,
788 (the_low_target): New.
789 * gdbserver/linux-m68k-low.c (num_regs): Remove.
790 (m68k_num_regs): Define.
791 (m68k_regmap): Renamed from regmap, made static.
792 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
794 (m68k_cannot_store_register): Renamed from cannot_store_register,
796 (the_low_target): New.
797 * gdbserver/linux-mips-low.c (num_regs): Remove.
798 (mips_num_regs): Define.
799 (mips_regmap): Renamed from regmap, made static.
800 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
802 (mips_cannot_store_register): Renamed from cannot_store_register,
804 (the_low_target): New.
805 * gdbserver/linux-ppc-low.c (num_regs): Remove.
806 (ppc_num_regs): Define.
807 (ppc_regmap): Renamed from regmap, made static.
808 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
810 (ppc_cannot_store_register): Renamed from cannot_store_register,
812 (the_low_target): New.
813 * gdbserver/linux-s390-low.c (num_regs): Remove.
814 (s390_num_regs): Define.
815 (s390_regmap): Renamed from regmap, made static.
816 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
818 (s390_cannot_store_register): Renamed from cannot_store_register,
820 (the_low_target): New.
821 * gdbserver/linux-sh-low.c (num_regs): Remove.
822 (sh_num_regs): Define.
823 (sh_regmap): Renamed from regmap, made static.
824 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
826 (sh_cannot_store_register): Renamed from cannot_store_register,
828 (the_low_target): New.
829 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
830 (the_low_target): New.
832 2002-04-09 Andrew Cagney <ac131313@redhat.com>
834 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
835 override FP_REGNUM with frame->fp. Update copyright.
836 * parse.c (num_std_regs, std_regs): Delete.
837 (target_map_name_to_register): Do not search std_regs. Update
838 function description.
839 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
840 declarations. Update copyright.
843 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
845 * gdbserver/Makefile.in: Add stamp-h target.
846 * gdbserver/configure.in: Create stamp-h.
847 * gdbserver/configure: Regenerated.
849 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
851 * gdbserver/inferiors.c: New file.
852 * gdbserver/target.c: New file.
853 * gdbserver/target.h: New file.
854 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
856 * gdbserver/linux-low.c (inferior_pid): New static variable,
858 (linux_create_inferior): Renamed from create_inferior.
859 Call add_inferior. Return 0 on success instead of a PID.
860 (linux_attach): Renamed from myattach.
861 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
862 (linux_thread_alive): Renamed from mythread_alive.
863 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
865 (linux_resume): Renamed from myresume. Add missing ``return 0''.
866 (regsets_store_inferior_registers): Correct error message.
867 Add missing ``return 0''.
868 (linux_fetch_registers): Renamed from fetch_inferior_registers.
869 (linux_store_registers): Renamed from store_inferior_registers.
870 (linux_read_memory): Renamed from read_inferior_memory.
871 (linux_write_memory): Renamed from write_inferior_memory.
872 (linux_target_ops): New structure.
873 (initialize_low): Call set_target_ops ().
874 * gdbserver/remote-utils.c (unhexify): New function.
875 (hexify): New function.
876 (input_interrupt): Send signals to ``signal_pid''.
877 * gdbserver/server.c (inferior_pid): Remove.
878 (start_inferior): Update create_inferior call.
879 (attach_inferior): Call add_inferior.
880 (handle_query): New function.
881 (main): Call handle_query for `q' packets.
882 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
883 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
885 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
887 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
889 * gdbserver/configure.in: Check for <string.h>
890 * gdbserver/configure: Regenerate.
891 * gdbserver/config.in: Regenerate.
892 * gdbserver/gdbreplay.c: Include needed system headers.
893 (remote_open): Remove strchr prototype.
894 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
895 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
896 (supply_register_by_name): Likewise.
897 (collect_register): Change buf argument to void *.
898 (collect_register_by_name): Likewise.
899 * gdbserver/regcache.h: Add missing prototypes.
900 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
901 * gdbserver/server.c (handle_query): New function.
902 (attached): New static variable, moved out of main.
903 (main): Quiet longjmp clobber warnings.
904 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
905 * gdbserver/utils.c (error): Remove NORETURN.
908 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
910 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
911 after the last symbol in a block.
913 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
915 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
916 is non zero as a found symbol.
918 2002-04-08 Andrew Cagney <ac131313@redhat.com>
920 * findvar.c: Include "builtin-regs.h".
921 (value_of_register): Call value_of_builtin_reg when applicable.
922 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
923 (target_map_name_to_register): Call
924 builtin_reg_map_name_to_regnum.
925 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
926 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
927 (builtin_regs_h): Define.
928 (builtin-regs.o): New target.
929 (findvar.o): Add $(builtin_regs_h).
930 * builtin-regs.c, builtin-regs.h: New files.
931 * std-regs.c: New file.
932 Partial fix for PR gdb/251.
934 2002-04-08 Kevin Buettner <kevinb@redhat.com>
936 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
937 it's no longer required.
939 2002-04-08 Andrew Cagney <ac131313@redhat.com>
941 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
943 2002-04-08 Kevin Buettner <kevinb@redhat.com>
945 From Jimi X <jimix@watson.ibm.com>:
946 * rs6000-tdep.c (rs6000_software_single_step): Use
947 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
948 and size. Use target_insert_breakpoint() and
949 target_remove_breakpoint() to insert and remove breakpoints
950 instead of explicit memory reads and writes.
952 2002-04-08 Kevin Buettner <kevinb@redhat.com>
954 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
955 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
956 ELF_OBJECT_FORMAT ifdef.
958 2002-04-08 Kevin Buettner <kevinb@redhat.com>
960 From Jimi X <jimix@watson.ibm.com>:
961 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
963 2002-04-08 Kevin Buettner <kevinb@redhat.com>
965 From Jimi X <jimix@watson.ibm.com>:
966 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
967 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
969 2002-04-07 Mark Kettenis <kettenis@gnu.org>
971 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
972 s/asprintf/xasprintf/.
973 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
975 2002-04-07 Andrew Cagney <ac131313@redhat.com>
977 I believe Jeff Law denies responsability for this one:
978 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
979 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
980 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
981 Work-around for PR gdb/366.
983 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
985 * remote-e7000.c (write_small, e7000_read_inferior_memory,
986 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
987 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
989 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
991 * sh-tdep.c (sh_fp_frame_init_saved_regs,
992 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
995 2002-04-07 Andrew Cagney <ac131313@redhat.com>
997 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1000 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1002 * README (Reporting Bugs in GDB): Document the bug web page as the
1003 prefered way of submitting bugs.
1006 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1008 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1010 * gdbarch.h, gdbarch.c: Re-generate.
1012 2002-04-07 Andreas Schwab <schwab@suse.de>
1014 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1015 buffer to regcache_collect.
1017 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1019 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1020 * gdbarch.c, gdbarch.h: Re-generate.
1022 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1024 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1025 declaration. Fix -Werror.
1027 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1029 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1030 * gdbarch.c: Regenerate.
1032 2002-04-05 Michael Snyder <msnyder@redhat.com>
1034 * breakpoint.c (clear_command): Rewrite middle section to
1035 combine two loops with identical control conditions.
1036 Add a cleanup to eliminate a memory leak.
1037 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1039 2002-04-05 H.J. Lu (hjl@gnu.org)
1041 * solib-svr4.c (bkpt_names): Add "__start".
1043 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1045 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1046 as test for 64 bit target.
1048 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1050 * h8500-tdep.c (h8500_write_fp): Delete function.
1051 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1052 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1053 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1055 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1056 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1058 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1059 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1060 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1061 (d10v_write_fp): Delete function.
1062 * inferior.h (write_fp, generic_target_write_fp): Delete
1064 * regcache.c (generic_target_write_fp): Delete function.
1065 (write_fp): Delete function.
1066 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1067 * gdbarch.h, gdbarch.c: Regenerate.
1068 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1069 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1070 (sparc64_write_fp): Delete declaration.
1071 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1072 (h8500_write_fp): Delete declaration.
1074 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1076 * sparc-tdep.c (sparc64_write_fp): Delete.
1077 (sparc_push_dummy_frame): Replace write_fp call with code to store
1079 (sparc_gdbarch_init): Do not initialize write_fp.
1081 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1083 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1086 2002-03-29 Jim Blandy <jimb@redhat.com>
1088 * stack.c (get_selected_block): Add new argument `addr_in_block',
1089 used to return the exact code address we used to select the block,
1091 * blockframe.c (get_frame_block, get_current_block): Same.
1092 * frame.h (get_frame_block, get_current_block,
1093 get_selected_block): Update declarations.
1094 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1095 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1097 2002-04-05 Michael Snyder <msnyder@redhat.com>
1099 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1102 2002-04-05 J. Brobecker <brobecker@gnat.com>
1104 * utils.c (xfullpath): New function.
1105 * defs.h (xfullpath): Add declaration.
1106 * source.c (openp): Use xfullpath in place of gdb_realpath to
1107 avoid resolving the basename part of filenames when the
1108 associated file is a symbolic link. This fixes a potential
1109 inconsistency between the filenames known to GDB and the
1110 filenames it prints in the annotations.
1111 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1112 to be able to match a filename with either the real filename, or
1113 the name of any symbolic link to this file.
1114 (lookup_partial_symtab): Ditto.
1116 2002-04-04 Michael Snyder <msnyder@redhat.com>
1118 * breakpoint.c: Add support for hardware breakpoints in overlays.
1119 (overlay_events_enabled): New state variable.
1120 (insert_breakpoints): Use overlay_events_enabled to decide
1121 whether to attempt to set a breakpoint at the overlay load addr.
1122 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1123 (remove_breakpoint): Use overlay_events_enabled to decide
1124 whether breakpoints need to be removed from overlay load addr.
1125 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1126 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1127 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1128 disable_overlay_breakpoints): Update overlay_events_enabled.
1130 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1132 * dwarf2read.c (struct function_range): New.
1133 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1134 (check_cu_functions): New.
1135 (read_file_scope): Initialize global function lists.
1136 Call dwarf_decode_line after processing children.
1137 (read_func_scope): Add to global function list.
1138 (dwarf_decode_lines): Call check_cu_functions everywhere
1139 record_line is called. Call record_line with a linenumber
1140 of 0 to mark sequence ends.
1142 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1144 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1145 change sync with glibc.
1147 2002-04-03 Jim Blandy <jimb@redhat.com>
1149 * configure.in: Call AC_C_INLINE.
1150 * configure: Regenerated.
1152 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1154 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1155 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1157 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1159 * NEWS: Mention gcore support on FreeBSD/i386.
1161 * fbsd-proc.c: New file.
1162 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1163 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1165 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1168 2002-03-29 Jim Blandy <jimb@redhat.com>
1170 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1171 unescaped newlines in string literals, but newer ones don't. So
1174 2002-03-26 Michael Snyder <msnyder@redhat.com>
1175 Andrew Cagney <cagney@redhat.com>
1177 * cli/cli-dump.c: New file. Dump memory to file,
1178 restore file to memory.
1179 * cli/cli-dump.h: New file.
1180 * Makefile.in: Add rules, dependencies for cli-dump.o.
1181 * NEWS: Mention new commands.
1183 2002-03-28 Michael Snyder <msnyder@redhat.com>
1185 * symfile.c (symbol_file_add): Move test for null symbols to later.
1187 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1189 From veksler at il.ibm.com:
1190 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1191 the xstrduped original path.
1194 2002-03-27 Michael Snyder <msnyder@redhat.com>
1196 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1197 * infcmd.c (_initialize_infcmd): Ditto.
1198 * language.c (_initialize_language): Ditto.
1199 * symfile.c (_initialize_symfile): Ditto.
1200 * top.c (_init_main): Ditto.
1201 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1203 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1205 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1206 vector registers handling.
1207 (skip_prologue): Handle new AltiVec instructions. Fill in new
1208 fields of frame data.
1209 (frame_get_saved_regs): Fill in information for AltiVec registers.
1211 2002-03-27 Jim Blandy <jimb@redhat.com>
1213 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1214 a function; leave this macro here to invoke that function.
1215 (symbol_init_mangled_name): Declaration for that function.
1216 * symtab.c (symbol_init_mangled_name): New function.
1218 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1220 * valarith.c: Replace strerror with safe_strerror.
1221 * tracepoint.c: Ditto.
1223 * go32-nat.c: Ditto.
1227 2002-03-27 Andreas Schwab <schwab@suse.de>
1229 * event-top.c (command_line_handler): Remove useless if.
1231 2002-03-27 Andreas Jaeger <aj@suse.de>
1233 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1236 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1238 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1239 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1240 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1241 (x86_64_linux_dr_get_status, supply_gregset),
1242 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1243 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1244 (x86_64_register_info_table): Add.
1245 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1246 (x86_64_register_raw_size, x86_64_register_virtual_type),
1247 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1248 general x86_64_register_info_table.
1249 (i386_gdbarch_init): gdbarch_register_bytes is now set
1250 dynamicaly during initialization.
1251 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1252 * gdbserver/linux-x86-64-low.c: Ditto.
1254 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1256 * gdbserver/server.c (main): Call target_signal_to_host_p
1257 and target_signal_to_host on signals received from the remote.
1258 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1259 target_signal_from_host on signals sent to the remote.
1260 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1261 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1263 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1265 * signals/signals.c: Include "server.h" in gdbserver build.
1266 (target_signal_from_name): Don't use STREQ.
1267 (_initialize_signals): Likewise. Don't include function in
1270 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1272 * signals.c: Moved to...
1273 * signals/signals.c: Here.
1274 * Makefile (signals.o): Update.
1276 2002-03-26 Jeff Law (law@redhat.com)
1278 * somread.c (som_symtab_read): Remove some commented out code and
1279 updated related comments. Do not set the minimal symbol table to
1280 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1281 in a dynamic executable.
1282 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1283 where we are unable to find the minimal symbol for the given
1286 2002-03-25 Jeff Law (law@redhat.com)
1288 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1290 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1292 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1294 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1296 * command.h: Update copyright.
1297 (struct cmd_list_element): Replace definition with opaque
1299 (enum cmd_types): Document that it will eventually be moved to
1301 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1302 (MALLOCED_REPLACEMENT): Delete macro.
1303 * Makefile.in (cli_decode_h): Add $(command_h).
1304 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1305 * top.c: Include "cli/cli-decode.h".
1306 * completer.c: Include "cli/cli-decode.h".
1307 * maint.c: Include "cli/cli-decode.h".
1308 * cli/cli-decode.h: Include "command.h".
1309 (enum command_class): Delete.
1310 (enum cmd_types): Comment out.
1311 (enum cmd_auto_boolean): Delete.
1312 (enum var_types): Delete.
1314 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1316 * cli/cli-decode.c: Include "gdb_assert.h".
1317 (add_set_or_show_cmd): New static function.
1318 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1319 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1320 all fields, such as func, from the set command.
1322 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1324 * MAINTAINERS (sh-elf): Change warning flag to -w.
1326 2002-03-23 Andrew Cagney <cagney@redhat.com>
1328 * defs.h (error): Add printf format attribute.
1329 * thread-db.c (thread_from_lwp): Fix error format string.
1330 * stack.c (parse_frame_specification): Ditto.
1331 * cli/cli-decode.c (undef_cmd_error): Ditto.
1332 * scm-lang.c (scm_lookup_name): Ditto.
1333 * tracepoint.c (trace_error): Ditto.
1334 * remote-utils.c (usage): Ditto.
1335 * remote.c (compare_sections_command): Ditto.
1338 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1340 * gdbtypes.c (append_composite_type_field): New function.
1341 (init_composite_type): New function.
1342 * gdbtypes.h (append_composite_type_field): Declare.
1343 (init_composite_type): Ditto.
1345 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1347 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1349 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1350 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1351 structure returning convention for SYSV ABI case, but not
1352 for GNU/Linux, FreeBSD, or NetBSD.
1354 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1356 * symtab.h (lookup_block_symbol): Add mangled_name argument
1359 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1360 with new mangled_name argument.
1361 * linespec.c (decode_line_1): Likewise.
1362 * valops (value_of_this): Likewise.
1363 * symtab.c (lookup_transparent_type): Likewise.
1364 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1365 (lookup_symbol): If we are given a mangled name, pass it down
1366 to lookup_symbol_aux.
1367 (lookup_block_symbol): If we are given a mangled name to check
1368 against, only return symbols which match it.
1370 2002-03-22 Christopher Faylor <cgf@redhat.com>
1372 * win32-nat.c (child_create_inferior): Check for proper shell to use
1373 here, in case the user changes it on the fly.
1374 (_initialize_inftarg): Remove shell path considerations.
1376 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1378 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1379 for gdbarch_max_register_raw_size and max_register_virtual_size.
1380 Adjust copyright year.
1382 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1384 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1385 in a function to cover the entire beginning of the function
1386 as well if it does not already.
1388 2002-03-21 Tom Rix <trix@redhat.com>
1390 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1391 (rs6000_ptrace64): Renamed from ptrace64.
1393 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1395 * gdbserver/remote-utils.c (remote_open): Don't call
1396 getprotobyname, we're all using TCP here so just use
1398 * gdbserver/gdbreplay.c (remote_open): Ditto.
1400 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1402 * regcache.c (_initialize_regcache): No need to call
1403 build_regcache() at this time; it gets called whenever
1404 the gdbarch changes.
1406 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1408 * sparc-nat.c: Include sys/param.h where possible.
1410 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1413 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1414 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1415 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1417 * stabsread.c (rs6000_builtin_type): Likewise.
1418 (read_sun_floating_type): Likewise.
1420 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1422 * stabsread.c (read_member_functions): Remove skip code for duplicate
1423 constructor/destructor methods. Use standard parsing for these
1424 methods and just do not chain them to the list of methods after
1427 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1429 * coffread.c: Remove redundant static declarations. Replace
1430 occurrences of `PTR' with `void *'.
1431 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1432 * top.h (quit_cover): Likewise.
1433 * defs.h (catch_errors): Likewise.
1435 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1437 * defs.h (XMALLOC): Define.
1438 * gdb-events.sh (XMALLOC): Delete macro.
1439 * gdb-events.c, gdb-events.h: Regenerate.
1440 * gdbarch.sh (XMALLOC): Delete macro.
1441 * gdbarch.c: Regenerate.
1442 * serial.c (XMALLOC): Delete macro.
1443 * ui-file.c (XMALLOC): Ditto.
1444 * ser-unix.h (XMALLOC): Ditto.
1445 * sh-tdep.c (XMALLOC): Ditto.
1446 * ui-out.c (XMALLOC): Ditto.
1447 * utils.c (XMALLOC): Ditto.
1448 * i386-tdep.c (XMALLOC): Ditto.
1449 * gdb-events.c (XMALLOC): Ditto.
1450 * d10v-tdep.c (XMALLOC): Ditto.
1451 * cli-out.c (XMALLOC): Ditto.
1453 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1454 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1455 * ui-file.c, ui-out.c: Ditto.
1457 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1459 * command.h (struct cmd_list_element): Add field context.
1460 (set_cmd_context, get_cmd_context): Declare.
1461 * cli/cli-decode.h: Ditto.
1462 * cli/cli-decode.c (get_cmd_context): New function.
1463 (set_cmd_context): New function.
1464 (add_cmd): Initialize context.
1465 Part of fixing PR gdb/145 and PR gdb/146.
1467 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1469 * cli/cli-decode.c (cmd_type): New function.
1470 * command.h (cmd_type): Declare.
1471 * infrun.c (set_schedlock_func): Call function cmd_type.
1472 * kod.c (kod_set_os): Call cmd_type.
1473 * cris-tdep.c (cris_version_update): Use function cmd_type.
1474 (cris_mode_update, cris_abi_update): Ditto.
1476 * command.h: (execute_cmd_post_hook): Declare.
1477 (execute_cmd_pre_hook): Declare.
1478 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1479 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1480 functions. Execute pre/post hook while ensuring that afterwords
1482 * top.c (execute_command): Use execute_cmd_post_hook, and
1483 execute_cmd_pre_hook to execute pre/post commands.
1484 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1486 (hook_stop_stub): Call execute_cmd_pre_hook.
1488 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1490 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1491 set'' and this leads to a core dump. Move xstrdup of
1492 operating_system to after check that it is not NULL.
1494 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1496 * kod.c (kod_set_os): Remove unnecessary check that
1497 ``command->type'' is set_cmd.
1499 * valprint.c (set_input_radix): Use input_radix.
1500 (set_output_radix): Use output_radix.
1501 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1504 2002-03-16 Andrew Cagney <ac131313@redhat.com>
1506 * value.h (struct value): Delete field ``substring_addr''. Change
1507 aligner fields to force_doublest_align, force_longest_align,
1508 force_core_addr_align and force_pointer_aligh.
1510 * value.h (struct value): Fix typo in above change.
1512 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1514 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1515 to fix internal_error from ``maintenance print architecture''.
1517 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1519 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1520 for gcc versions after gcc-2.8.1.
1522 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1524 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1525 for method resolution. Restore adjustment of ``this'' pointer after
1526 calling value_struct_elt, which was accidentally removed during the
1529 2002-03-15 Andrew Cagney <ac131313@redhat.com>
1531 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1533 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1535 * value.h (value_of_register): Update.
1537 2002-03-14 Richard Henderson <rth@redhat.com>
1539 * configure.in: Detect declaration for canonicalize_file_name.
1540 * utils.c (canonicalize_file_name): Declare, if needed.
1541 (gdb_realpath): Prefer realpath if available and usable.
1542 * config.in, configure: Rebuild.
1544 2002-03-14 Richard Henderson <rth@redhat.com>
1546 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1547 a constant array bound.
1549 * MAINTAINERS: Add myself to write-after-approval.
1551 2002-03-14 Michael Snyder <msnyder@redhat.com>
1553 * symfile.c (syms_from_objfile): Return immediately if no syms.
1554 (symbol_file_add): Return immediately if no syms.
1555 (find_sym_fns): Return immediately if no syms.
1557 2002-03-13 Michal Ludvig <mludvig@suse.cz>
1559 * gdbserver/remote-util.c (remote_open): Print remote-side's
1560 IP address when remote debugging over the network.
1562 2002-03-12 David O'Brien <obrien@FreeBSD.org>
1564 * config/sparc/fbsd.mh: Fix copyright.
1565 * config/sparc/fbsd.mt: Likewise.
1567 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
1569 * MAINTAINERS: Fix typo in name of gdb warnings option.
1570 (x86-64): Fix formating so that this can be parsed by awk.
1572 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1574 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1575 * defs.h: Include "gdb/signals.h".
1576 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1578 2002-03-10 Michal Ludvig <mludvig@suse.cz>
1580 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1581 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1584 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1585 Don Howard <dhoward@redhat.com>
1587 * mips-tdep.c (ST0_FR): Define.
1588 (mips2_fp_compat): New function, temporarily disabled.
1589 (mips_read_fp_register_single): New function.
1590 (mips_read_fp_register_double): New function.
1591 (mips_print_register): Use them.
1592 (do_fp_register_row): Likewise.
1594 2002-03-09 Andrew Cagney <ac131313@redhat.com>
1596 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1599 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1601 * stabsread.c (read_member_functions): Fix is_stub test for
1602 static member functions, improve comment.
1604 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1606 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1607 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1608 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1609 commands that set boolean values.
1610 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1611 (arm_rdi_resume): Always initialize PC.
1612 (arm_rdi_open): Don't use rslt as a boolean.
1613 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1614 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1615 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1616 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1618 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
1620 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1621 * configure: Rebuilt.
1623 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1625 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1626 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1628 2002-03-06 Andrew Cagney <ac131313@redhat.com>
1630 * cli/cli-decode.c (set_cmd_completer): New function.
1631 * command.h (set_cmd_completer): Declare.
1632 * cli/cli-decode.h (set_cmd_completer): Ditto.
1634 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1635 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1636 * win32-nat.c (_initialize_inftarg): Ditto.
1637 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1638 * proc-api.c (_initialize_proc_api): Ditto.
1639 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1640 * source.c (_initialize_source): Ditto.
1641 * exec.c (_initialize_exec): Ditto.
1642 * solib.c (_initialize_solib): Ditto.
1643 * top.c (init_main): Ditto.
1644 * tracepoint.c (_initialize_tracepoint): Ditto.
1645 * symfile.c (_initialize_symfile): Ditto.
1646 * printcmd.c (_initialize_printcmd): Ditto.
1647 * infcmd.c (_initialize_infcmd): Ditto.
1648 * corefile.c (_initialize_core): Ditto.
1650 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1652 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1654 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1656 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1658 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1660 * NEWS: Update headings, 5.2 has branched.
1662 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
1664 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1665 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1666 (register_addr, REGISTER_RAW_SIZE): Likewise.
1667 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1668 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1670 2002-03-03 Michal Ludvig <mludvig@suse.cz>
1672 * MAINTAINERS (x86-64): Add myself.
1673 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1674 changed value_ptr -> struct value *
1676 2002-03-01 David O'Brien <obrien@FreeBSD.org>
1678 * configure.host (sparc64-*-freebsd): Add.
1679 * configure.tgt: Likewise.
1680 * config/sparc/fbsd.mh: New file.
1681 * config/sparc/fbsd.mt: Likewise.
1682 * config/sparc/nm-fbsd.h: Likewise.
1683 * config/sparc/tm-fbsd.h: Likewise.
1685 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
1687 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1688 regformats/reg-s390x.dat.
1690 2002-03-01 Andrew Cagney <ac131313@redhat.com>
1692 * utils.c: Add FIXME explaining true/false problem.
1694 2002-02-28 Andrew Cagney <ac131313@redhat.com>
1696 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1698 2002-02-28 Michael Chastain <mec@shout.net>
1700 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1702 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
1704 * gdbserver/linux-s390-low.c: New file.
1705 * regformats/reg-s390.dat: New file.
1706 * regformats/reg-s390x.dat: New file.
1707 * gdbserver/configure.srv: Add S/390.
1708 * gdbserver/Makefile.in: Add S/390.
1709 * configure.tgt: Enable gdbserver for S/390.
1711 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1713 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1714 first line of the doc string for "info dos", except at the end of
1715 the sentence, since the short help stops at the first period.
1717 2002-02-28 Jason Merrill <jason@redhat.com>
1719 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1721 2002-02-27 Fred Fish <fnf@redhat.com>
1723 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1724 comment (dumy -> dummy).
1726 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1728 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1730 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
1732 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1734 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1736 * gdbserver/acconfig.h: New file.
1737 * gdbserver/i387-fp.c: New file.
1738 * gdbserver/i387-fp.h: New file.
1739 * gdbserver/linux-x86-64.c: New file.
1740 * regformats/reg-x86-64.dat: New file.
1741 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1742 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1743 * gdbserver/configure.in: Add support for regsets.
1744 * gdbserver/config.in: Regenerate.
1745 * gdbserver/configure: Regenerate.
1746 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1747 * gdbserver/linux-low.h: New file.
1748 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1750 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1751 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1752 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1753 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1754 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1755 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1756 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1757 "i387-fp.h". Add PTRACE_GETREGS and friends.
1758 * gdbserver/regcache.c (supply_register): New function.
1759 (supply_register_by_name): New function.
1760 (collect_register): New function.
1761 (collect_register_by_name): New function.
1763 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1765 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1766 (config.status): Add configure.srv dependency.
1767 (server_h): Add config.h dependency.
1769 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1771 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1772 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1773 * gdbserver/configure.srv: Change i386-*-linux* to use
1776 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1778 * x86-64-tdep.c: Re-indent. Update copyright date.
1780 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1782 From Michal Ludvig <mludvig@suse.cz>:
1783 * x86-64-tdep.c (value.h): Delete.
1784 (gdb_assert.h): Include.
1785 (x86_64_register_convert_to_virtual,
1786 x86_64_register_convert_to_raw ): Add check which lets only
1787 floating-point values to be converted.
1788 (value_push): Delete.
1789 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1790 (i386_gdbarch_init): Number of register_bytes fixed.
1792 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1794 * MAINTAINERS: Add x86-64 target.
1796 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1798 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1799 * osfsolib.c (solib_map_sections): Ditto.
1800 * irix5-nat.c (solib_map_sections): Ditto.
1801 * corelow.c (gdb_check_format): Ditto.
1802 * symfile.c (symfile_bfd_open): Ditto.
1803 * solib.c (solib_map_sections): Ditto.
1806 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1808 * remote.c (_initialize_remote): By default, disable ``e'' and
1809 ``E'' step out-of-range packets.
1811 2002-02-26 Andreas Schwab <schwab@suse.de>
1813 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1814 m68k_linux_frame_saved_pc.
1815 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1817 (SIGCONTEXT_PC_OFFSET): Remove.
1818 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1819 m68k_linux_sigtramp_saved_pc): New functions.
1820 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1821 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1822 (UCONTEXT_PC_OFFSET): Define.
1823 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1824 non-RT and RT signal trampolines.
1826 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
1828 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1829 (TARGET_NBPG, STACK_END_ADDR): Delete
1830 (VARIABLES_INSIDE_BLOCK): Delete.
1832 2002-02-25 Andrew Cagney <ac131313@redhat.com>
1834 * utils.c (perror_with_name): Make string parameter constant.
1835 (print_sys_errmsg): Ditto.
1837 * defs.h (perror_with_name): Update.
1838 (print_sys_errmsg): Update.
1841 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
1843 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1844 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1846 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1848 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1849 if it already matches the current architecture from the exec file.
1850 Include arch-utils.h for gdbarch_info_init prototype.
1851 * Makefile.in (rs6000-nat.o): Update dependencies.
1853 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1855 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1856 list of exported variables.
1858 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
1860 * gdbserver/configure.srv: New file.
1861 * gdbserver/configure.in: Use configure.srv instead
1862 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1864 * gdbserver/configure: Regenerated.
1865 * gdbserver/terminal.h: New file.
1866 * gdbserver/Makefile.in: Update for configure changes. Remove
1867 more unneeded include paths.
1869 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1871 From wiz at danbala:
1872 * config/sparc/tm-sp64.h: Fix grammar and typos.
1875 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1877 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
1878 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1879 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1880 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
1881 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1882 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1883 * s390-tdep.c: Ditto.
1884 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1885 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1886 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1887 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1888 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1889 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1890 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1891 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1892 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1893 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
1896 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1898 * lin-thread.c: Delete file.
1899 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1900 to gdb_proc_service.h.
1901 * configure: Re-generate.
1903 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1904 * serial.c (serial_open): Delete check for "ocd".
1907 * Makefile.in (linux-thread.o): Delete target.
1908 * linux-thread.c: Delete file.
1910 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1911 renamed SH files to be consistent.
1913 * symtab.c (sort_search_symbols): Use xfree.
1915 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1917 * arm-linux-tdep.c (arm_linux_init_abi): Register
1918 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1919 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1920 definition with undef, since we don't want the sysvr4 definition.
1921 (SKIP_TRAMPOLINE_CODE): Likewise.
1923 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1925 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1927 * configure.in: (AC_CHECK_FUNCS) Added test for
1928 canonicalize_file_name Regenerated.
1929 * config.in, configure: Regenerated.
1930 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1931 defined use canonicalize_file_name.
1933 2002-02-23 Michael Chastain <mec@shout.net>
1935 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1937 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1939 * README: Remove references to cygnus.com.
1940 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
1941 dot com'' form. Remove references to cygnus.com and sourceware.
1943 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1945 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
1946 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1947 1003.1-2001 no longer allows "head -1".
1948 * gdb/Makefile.in (version.c): Likewise.
1949 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
1950 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
1951 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
1953 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1955 * cli/cli-decode.c (cmd_cfunc_eq): New function.
1956 * command.h (cmd_cfunc_eq): Declare.
1957 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
1959 * cli/cli-cmds.h (is_complete_command): Change parameter to a
1960 ``struct cmd_list_element *''.
1961 * cli/cli-cmds.c (is_complete_command): Update. Use
1963 * top.c (execute_command): Pass the command to
1964 is_complete_command.
1965 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
1967 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1969 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
1970 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
1971 architecture defines.
1972 * s390-tdep.c (s390_gdbarch_init): Likewise.
1974 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1976 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
1977 (arm_linux_push_arguments): Likewise.
1978 (arm_linux_init_abi): Register them. Also register linux-specific
1980 (find_minsym_and_objfile): Use strcmp, not STREQ.
1981 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
1982 (arm_linux_call_dummy_words): Delete declaration.
1983 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
1984 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
1986 (LOWEST_PC): Delete.
1988 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1990 * maint.c (print_section_info): Do not prepend `0x' to filepos
1991 output, it will be handled by local_hex_string_custom.
1993 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1995 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
1996 (store_newfpe_double, store_newfpe_extended, store_fpregister)
1997 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
1999 2002-02-22 Jim Blandy <jimb@redhat.com>
2001 Indicate that the bcache functions don't change the strings
2003 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2004 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2006 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2008 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2010 2002-02-21 Christopher Faylor <cgf@redhat.com>
2012 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2013 find the complete path to a loaded DLL.
2015 2002-02-21 Fred Fish <fnf@redhat.com>
2017 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2018 that marks the end of the range of a function, enter a line number
2019 entry that has a line number of zero and a PC offset that matches
2020 the end of the function. This starts a range of PC's for which no
2021 line number information is known.
2022 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2023 PC's for which no line number info is found (line number is zero)
2024 then we didn't find any valid line information.
2025 * symtab.h: Document use of zero line number entry.
2027 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2029 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2030 (have_ptrace_getvrregs): Define for run time checks.
2031 (gdb_vrregset_t): New type for Altivec register handling.
2032 (fetch_register, store_register): Fetch/store altivec register
2034 (fetch_altivec_register, store_altivec_register): New functions.
2035 (supply_vrregset, fill_vrregset): New functions.
2036 (fetch_altivec_registers, store_altivec_registers): New functions.
2037 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2040 2002-02-21 Jiri Smid <smid@suse.cz>
2042 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2044 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2046 * Makefile.in (armnbsd-nat.o): Update dependencies.
2047 * armnbsd-nat.c (supply_gregset): New function. Common code to
2048 supply the integer register set.
2049 (supply_fparegset): New function. Similar for FPA registers.
2050 (fetch_regs, fetch_fp_regs): Use them.
2051 (fetch_core_registers): Likewise.
2052 (fetch_elfcore_registers): New function.
2053 (arm_netbsd_elfcore_fns): New core-file type specification.
2054 (_initialize_arm_netbsd_nat): Register it.
2056 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2058 * armnbsd-nat.c: Include gdbcore.h.
2059 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2060 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2061 'void' to declaration, to shut up ARI.
2062 (fetch_core_registers): Make static. Rewrite using supply_register.
2063 (arm_netbsd_core_fns): New core-file type specification.
2064 (_initialize_arm_netbsd_nat): New function.
2066 2002-02-21 Christopher Faylor <cgf@redhat.com>
2068 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2071 2002-02-20 Christopher Faylor <cgf@redhat.com>
2073 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2076 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2078 * jv-exp.y (parse_number): Change type of implicit longs
2079 to builtin_type_uint64.
2081 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2083 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2084 to be an integer instead of a `union wait'.
2086 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2088 * mips-linux-nat.c: Call the operating system GNU/Linux.
2089 * mips-linux-tdep.c: Likewise.
2090 * mips-tdep.c: Likewise.
2092 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2095 * jv-exp.y (parse_number): Handle 64-bit integers.
2097 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2099 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2100 AC_STDC_HEADERS to AC_HEADER_STDC.
2101 * gdbserver/configure: Regenerated.
2103 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2105 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2107 * sparc-tdep.c (get_longjmp_target): Likewise.
2109 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2111 * News: Add news about ARM and Multi-arch. Mention the new target
2114 2002-02-19 Jim Blandy <jimb@redhat.com>
2116 * stabsread.c (error_type_complaint): Improve error message.
2118 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2120 * gdbserver/README: Update documentation.
2121 * gdbserver/configure.in: Update configury to match documentation.
2122 * gdbserver/Makefile.in: Likewise.
2123 * gdbserver/configure: Regenerated.
2124 * gdbserver/aclocal.m4: New file, generated by aclocal.
2125 * gdbserver/config.in: New file, generated by autoheader.
2127 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2129 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2132 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2134 * arm-tdep.h (enum arm_float_model): New enum.
2135 (struct gdbarch_tdep): Add fp_model.
2136 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2137 up floating-point conversions until we know the floating-point model
2138 in use by the inferior. Don't complain about being unable to
2139 determine the ABI of the inferior when we don't have one.
2140 (arm_extract_return_value): Support different floating-point models.
2141 (arm_store_return_value): Likewise.
2142 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2144 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2146 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2148 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2149 of ``current_gdbarch''.
2151 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2153 * armnbsd-nat.c : ANSIfy all function declarations.
2154 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2155 (fetch_inferior_registers): Re-implement in terms of above.
2156 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2157 (store_inferior_registers): Re-implement in terms of above.
2159 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2161 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2163 * arm-linux-tdep.c: Likewise.
2164 * config/arm/tm-linux.h: Likewise.
2166 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2168 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2169 * config/arm/nbsd.mt (TM_FILE): Delete.
2170 * config/arm/tm-nbsd.h: Delete.
2172 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2174 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2175 Initialize CALL_DUMMY_LENGTH.
2177 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2179 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2181 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2182 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2183 defines one thing and that is incorrect for this port.
2184 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2186 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2188 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2190 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2192 * win32-nat.c (display_selector): New function. Displays information
2193 about the information returned by GetThreadSelectorEntry API function.
2194 (display_selectors): New function. Displays the infomation of
2195 the selector given as argument, or of CS, DS ans FS selectors
2196 if no argument is given.
2197 ( _initialize_inftarg): Add "w32" as info prefix command.
2198 Add "info w32 selector" as command calling display_selectors.
2200 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2202 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2203 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2206 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2208 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2210 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2212 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2213 (arm_fix_call_dummy): Call it.
2214 (arm_call_dummy_breakpoint_offset): Delete.
2215 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2216 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2218 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2220 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2221 Default to func_frame_chain_valid.
2222 * gdbarch.h, gdbarch.c: Re-generate.
2223 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2225 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2227 * ppc-linux-nat.c: Update copyright.
2228 (fetch_register, store_register): Add tid parameter, don't compute
2230 (fetch_ppc_registers, store_ppc_registers): Add tid
2231 parameter. Pass it along to callees.
2232 (fetch_inferior_registers, store_inferior_registers): Compute tid
2233 here, and pass it to calleed functions.
2234 (fill_gregset, supply_fpregset): Clean up formatting.
2236 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2238 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2239 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2241 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2243 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2244 * gdbarch.c gdbarch.h: Regenerate.
2245 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2247 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2248 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2249 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2251 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2252 * arm-tdep.c (arm_get_longjmp_target): New function.
2253 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2254 this to a positive value register arm_get_longjmp_target as the
2256 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2257 (arm_linux_init_abi): Set up longjmp description in tdep.
2258 * armnbsd-nat.c (get_longjmp_target): Delete.
2259 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2260 description in tdep.
2261 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2262 (get_longjmp_target): Delete declaration.
2263 (GET_LONGJMP_TARGET): Delete.
2264 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2265 (GET_LONGJMP_TARGET): Delete.
2267 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2269 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2270 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2271 of ``current_gdbarch''.
2273 2002-02-17 Tom Tromey <tromey@redhat.com>
2275 * cli/cli-cmds.c (compare_strings): New function.
2276 (complete_command): Only print each unique item once.
2277 * completer.h (complete_line): Declare.
2278 * completer.c (complete_line): New function.
2279 (line_completion_function): Use it.
2281 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2283 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2284 * gdbarch.h, gdbarch.c: Re-generate.
2286 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2288 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2290 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2292 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2293 * valops.c (value_arg_coerce): Don't take the address of a reference
2294 to convert an argument to a reference.
2296 2002-02-15 Christopher Faylor <cgf@redhat.com>
2298 * win32-nat.c (get_image_name): New function.
2299 (handle_load_dll): Use get_image_name function.
2300 (get_child_debug_event): Avoid registering debug events until possibly
2301 execed process is started.
2302 (child_create_inferior): Allow invocation via shell so that command
2303 line redirection, etc. works ok.
2304 (_initialize_inftarg): Add new command: "set shell" to control whether
2305 a shell is used to start a process.
2307 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2309 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2310 instead of find_register_by_number.
2311 (cannot_store_register): Likewise.
2313 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2315 * dwarf2read.c: Replace fprintf (stderr, ...) by
2316 fprintf_unfiltered (gdb_stderr, ...).
2318 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2320 * gdbserver/gdbserver.1: Document --attach.
2322 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2324 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2326 * arm-tdep.c (arm_default_arm_le_breakpoint)
2327 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2328 (arm_default_thumb_be_breakpoint): New. Initialize them from
2329 traditional breakpoint defines.
2330 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2331 (arm_gdbarch_init): Initialize new breakpoint variables.
2332 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2333 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2334 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2335 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2337 (arm_netbsd_init_abi_common): ... here; new function.
2338 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2339 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2340 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2341 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2343 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2345 * arm-tdep.h (enum arm_abi): New enum.
2346 (struct gdbarch_tdep): New structure.
2347 (LOWEST_PC): Provide a default.
2348 (arm_gdbarch_register_os_abi): Declare new function.
2349 * arm-tdep.c (arm_abi_names): New array.
2350 (process_note_abi_tag_sections): New function.
2351 (get_elfosabi): New function.
2352 (arm_gdbarch_register_os_abi): New function.
2353 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2354 support for that ABI has been built in, then call the appropriate
2355 configuration routine. Use gdbarch_num_regs() to get the number
2357 (arm_dump_tdep): New function.
2358 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2359 place-holder functions.
2360 (_initialize_arm_tdep): Register them.
2361 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2363 * armnbsd-tdep.c: New file.
2364 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2365 * config/arm/nbsd.mt (TDEPFILES): Add it.
2366 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2368 * armnbsd-nat.c: Include regcache.h.
2369 * Makefile.in (armnbsd-nat.o): Update dependency list.
2371 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2373 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2375 * gdbserver/Makefile.in: Fix typos in target rules.
2377 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2379 Fix part of PR gdb/267.
2380 * linespec.c (find_methods): Handle constructors specially for now.
2382 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2384 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2386 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2387 standard_coerce_float_to_double().
2389 2002-02-14 Christopher Faylor <cgf@redhat.com>
2391 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2394 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2396 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2397 find_variant_by_name, because it confuses the multiarch
2398 framework. Return NULL if there isn't an architecture with the
2399 user supplied name, instead of forcing a different one without
2400 recording the change with the multiarch machinery.
2401 (find_variant_by_name): Delete.
2403 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2405 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2406 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2408 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2410 * stack.c (print_frame_info_base): When calling
2411 print_frame_info_listing_hook, set current_source_symtab.
2413 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2415 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2416 and remove unused $(INCLUDE_DIR).
2417 Add regcache.c to OBS.
2418 Add generated register protocol files to clean target.
2419 Update dependencies for new objects, obsolete old target code.
2421 * gdbserver/linux-low.c: Remove all platform-specific code to
2422 new files. Remove various dead code. Update to use regcache
2424 * gdbserver/remote-utils.c (fromhex): Add return statement
2426 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2428 (input_interrupt): Add integer parameter to match prototype
2429 of a signal handler.
2430 (outreg): Use register_data ().
2431 (prepare_resume_reply): Use gdbserver_expedite_regs.
2432 * gdbserver/server.c (main): Dynamically allocate own_buf because
2433 PBUFSIZ is no longer constant. Use registers_to_string () and
2434 registers_from_string ().
2435 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2436 for error (), fatal (), and warning (). Update definition of
2437 PBUFSIZ to use regcache functionality. Add include guard.
2438 * gdbserver/utils.c (fatal): Add missing ``const''.
2439 (warning): New function.
2441 * regformats/regdat.sh: Include "regcache.h" in generated files.
2442 Provide init_registers () function.
2443 * regformats/regdef.h: Add prototype for set_register_cache ().
2446 * gdbserver/linux-arm-low.c: New file.
2447 * gdbserver/linux-i386-low.c: New file.
2448 * gdbserver/linux-ia64-low.c: New file.
2449 * gdbserver/linux-m68k-low.c: New file.
2450 * gdbserver/linux-mips-low.c: New file.
2451 * gdbserver/linux-ppc-low.c: New file.
2452 * gdbserver/linux-sh-low.c: New file.
2454 * gdbserver/regcache.c: New file.
2455 * gdbserver/regcache.h: New file.
2457 * gdbserver/low-linux.c: Removed obsolete file.
2459 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2461 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2462 * config/i386/linux.mt: Likewise.
2463 * config/ia64/linux.mt: Likewise.
2464 * config/m68k/linux.mh: Likewise.
2465 * config/powerpc/linux.mh: Likewise.
2466 * config/mips/linux.mt: Likewise.
2468 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2470 * config/i386/i386lynx.mh: Mark gdbserver variables
2471 as (currently) obsolete for this target.
2472 * config/i386/nbsd.mt: Likewise.
2473 * config/i386/nbsdelf.mt: Likewise.
2474 * config/m32r/m32r.mt: Likewise.
2475 * config/m68k/m68klynx.mh: Likewise.
2476 * config/m68k/nbsd.mt: Likewise.
2477 * config/m68k/sun3os4.mh: Likewise.
2478 * config/mips/vr5000.mt: Likewise.
2479 * config/ns32k/nbsd.mt: Likewise.
2480 * config/pa/hppabsd.mh: Likewise.
2481 * config/pa/hppaosf.mh: Likewise.
2482 * config/powerpc/nbsd.mt: Likewise.
2483 * config/rs6000/rs6000lynx.mh: Likewise.
2484 * config/s390/s390.mt: Likewise.
2485 * config/s390/s390x.mt: Likewise.
2486 * config/sparc/sparclynx.mh: Likewise.
2487 * config/sparc/sun4os4.mh: Likewise.
2488 * config/i386/x86-64linux.mt: Likewise.
2489 * config/sparc/linux.mh: Likewise.
2491 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2493 * configure.tgt: Configure gdbserver only for known working
2494 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2495 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2496 SUBDIRS if it is configured. Update comment for ${nativefile}.
2497 * configure: Regenerated.
2499 2002-02-13 Michael Snyder <msnyder@redhat.com>
2501 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2503 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2504 (default_gcore_mach): Just return 0, work around a problem in bfd.
2505 (default_gcore_target): OK to return NULL if exec_bfd is null.
2506 (make_mem_sec): Use a cast, avoid a warning.
2508 * procfs.c (find_memory_regions_callback): Use a cast instead of
2509 calling host_pointer_to_address (which complains if
2510 sizeof (host pointer) != sizeof (target pointer)).
2511 (procfs_make_note_section): Avoid overflow in psargs string.
2513 * procfs.c (procfs_make_note_section): Make the default
2514 implementation return an error.
2516 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
2518 * procfs.c (procfs_make_note_section): Provide a default definition
2519 (for alpha-dec-osf4.0f). Fix typos.
2521 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
2523 * linux-proc.c: Add include of regcache.h.
2524 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2526 2002-02-13 Andrew Cagney <ac131313@redhat.com>
2528 From 2002-01-18 Greg McGary <greg@mcgary.org>:
2529 * memattr.c (create_mem_region): Disallow useless empty region.
2530 Regions are half-open intervals, so allow [A..B) [B..C) as
2533 2002-02-13 Michael Chastain <mec@shout.net>
2535 * defs.h: Kill CONST_PTR.
2536 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2537 * c-lang.c (c_builtin_types): Likewise.
2538 * ch-lang.c (ch_builtin_types): Likewise.
2539 * f-lang.c (f_builtin_types): Likewise.
2540 * language.c (unknown_builtin_types): Likewise.
2541 * m2-lang.c (m2_builtin_types): Likewise.
2542 * p-lang.c (pascal_builtin_types): Likewise.
2543 * scm-lang.c (c_builtin_types): Likewise.
2545 2002-02-13 Keith Seitz <keiths@redhat.com>
2547 * arm-tdep.h (arm_get_next_pc): Add declaration.
2549 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
2551 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2552 with other related struct-returning functions.
2553 (arm_extract_struct_value_address): New function.
2554 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2555 initialize float_format, double_format and long_double_format as
2556 appropriate to the endianness of the target.
2557 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2558 (arm_use_struct_convention): Delete declaration.
2559 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2561 2002-02-13 Keith Seitz <keiths@redhat.com>
2563 * defs.h (core_addr_to_string_nz): New function.
2565 2002-02-13 Mark Kettenis <kettenis@gnu.org>
2567 Apply missing bits of 2002-01-15 patch.
2568 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2569 (fill_fpregset): Use i387_fill_fsave.
2571 2002-02-12 Keith Seitz <keiths@redhat.com>
2573 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2574 (core_addr_to_string_nz): New function.
2576 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2578 * arm-linux-nat.c: Really include arm-tdep.h.
2579 * config/arm/tm-linux.h (struct type, struct value): Declare.
2581 2002-02-11 Michael Snyder <msnyder@redhat.com>
2583 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2584 (gcore section): Ifdef for Solaris and Unixware only.
2585 (procfs_do_thread_registers): Unixware needs one lwpstatus
2586 per thread (not one prstatus or pstatus).
2587 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2588 not over all gdb threads. For unixware, call elfcore_write_pstatus
2589 once before iterating over threads.
2591 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2593 * arm-tdep.h: New file.
2594 * arm-tdep.c: Include arm-tdep.h.
2595 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2596 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2597 (arm_print_float_info, arm_register_type, convert_to_extended)
2598 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2599 (arm_extract_return_value, arm_register_name): Make static.
2600 (arm_software_single_step): Similarly. Fix types in declaration.
2601 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2602 (arm_store_return_value, arm_store_struct_return): New functions.
2603 (arm_gdbarch_init): Register the above functions. Also register
2604 call_dummy_start_offset, sizeof_call_dummy_words,
2605 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2606 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2607 max_register_virtual_size, register_size. Set up
2608 prologue_cache.saved_regs here, rather than ...
2609 (_initialize_arm_tdep): ... here.
2610 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2612 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2613 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2614 (arm_print_float_info, arm_register_type, convert_to_extended)
2615 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2616 (arm_extract_return_value, arm_register_name): Delete declarations.
2617 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2618 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2619 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2620 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2621 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2622 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2623 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2624 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2625 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2626 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2627 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2628 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2630 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2631 * remote-rdi.c remote-rdp.c: Likewise.
2632 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2633 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2634 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2637 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2638 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2639 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2640 from non-ARM_ prefixed definitions.
2641 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2643 * remote-rdi.c remote-rdp.c: Likewise.
2644 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2646 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2648 * arm-tdep.c (arm_frameless_function_invocation)
2649 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2650 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2651 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2652 (arm_pop_frame, arm_get_next_pc): Make static.
2653 (arm_gdbarch_init): Register above in gdbarch structure.
2654 (arm_read_fp): Renamed from arm_target_read_fp.
2655 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2656 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2657 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2658 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2659 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2660 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2661 (arm_pc_is_thumb_dummy): Delete declarations.
2662 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2663 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2664 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2665 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2667 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2669 * symtab.c (compare_search_syms): New function.
2670 (sort_search_symbols): New function.
2671 (search_symbols): Sort symbols after searching rather than
2674 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2676 * NEWS: Linux -> GNU/Linux.
2678 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2680 * gdbarch.sh: For for level one methods, disallow a definition
2681 when partially multi-arched. Add comments explaining rationale.
2682 * gdbarch.h: Re-generate.
2684 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2686 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2689 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2691 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2693 * gdbarch.c: Re-generate.
2695 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2697 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2698 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2701 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2703 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2705 (PUSH_ARGUMENTS): Switch to using predefault.
2706 * gdbarch.c: Regenerate.
2708 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2710 * valops.c (PUSH_ARGUMENTS): Delete definition.
2711 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2712 partial. Default to default_push_arguments.
2713 * gdbarch.h, gdbarch.c: Regenerate.
2715 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2717 * defs.h (throw_exception): Rename return_to_top_level. Update
2719 * utils.c (error_stream, internal_verror, quit): Ditto.
2720 * top.c (throw_exception, catcher): Ditto.
2721 * sparclet-rom.c (sparclet_load): Ditto.
2722 * remote.c (interrupt_query, minitelnet): Ditto.
2723 * remote-sds.c (interrupt_query): Ditto.
2724 * remote-mips.c (mips_error, mips_kill): Ditto.
2725 * ocd.c (interrupt_query): Ditto.
2726 * monitor.c (monitor_interrupt_query): Ditto.
2727 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2728 * target.h: Update comment.
2730 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2732 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2734 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2735 default_double_format.
2736 * gdbarch.h, gdbarch.c: Re-generate.
2737 * findvar.c (floatformat_unknown): Delete variable definition.
2738 * doublest.h (floatformat_unknown): Delete variable declaration.
2740 2002-02-09 Jim Blandy <jimb@redhat.com>
2742 * stabsread.c (read_type): Add code to parse Sun's syntax for
2743 prototyped function types.
2745 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2747 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2748 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2750 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2752 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2753 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2754 now _initialize_xcoffsolib gets called again and overrides the
2755 commands from solib.c in a native configuration.
2757 2002-02-09 Mark Kettenis <kettenis@gnu.org>
2759 * doublest.c (store_typed_floating): Don't try to return a value.
2762 2002-02-08 Jim Blandy <jimb@redhat.com>
2764 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2765 is prototyped and has no arguments, print its argument list as
2768 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2770 * MAINTAINERS (write-after-approval): Add myself.
2771 (paper-trail): I've escaped!
2773 2002-02-08 Christopher Faylor <cgf@redhat.com>
2775 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2777 (_initialize_check_for_gdb_ini): Ditto.
2779 2002-02-08 Martin M. Hunt <hunt@redhat.com>
2781 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2782 xaprintf -> xasprintf.
2784 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2786 * win32-nat.c: Remove use of printf and sprintf functions.
2788 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
2790 * arm-tdep.c (arm_frame_chain_valid): Make static.
2791 (arm_push_arguments): Likewise.
2792 (arm_gdbarch_init): New function.
2793 (_initialize_arm_tdep): Call it.
2794 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2795 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2796 (FRAME_CHAIN_VALID): Delete.
2797 (arm_frame_chain_valid): Delete declaration.
2798 (PUSH_ARGUMENTS): Delete.
2799 (arm_push_arguments): Delete declaration.
2800 (CALL_DUMMY_P): Delete.
2802 2002-02-08 Andrew Cagney <ac131313@redhat.com>
2803 Corinna Vinschen <vinschen@redhat.com>
2805 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2806 on builtin float types.
2808 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2810 * utils.c: Include <curses.h> before "bfd.h".
2811 * tui/tui-hooks.c: Likewise.
2812 * tui/tui.c: Likewise.
2813 * tui/tuiCommand.c: Likewise.
2814 * tui/tuiData.c: Likewise.
2815 * tui/tuiDataWin.c: Likewise.
2816 * tui/tuiDisassem.c: Likewise.
2817 * tui/tuiGeneralWin.c: Likewise.
2818 * tui/tuiIO.c: Likewise.
2819 * tui/tuiLayout.c: Likewise.
2820 * tui/tuiRegs.c: Likewise.
2821 * tui/tuiSource.c: Likewise.
2822 * tui/tuiSourceWin.c: Likewise.
2823 * tui/tuiStack.c: Likewise.
2824 * tui/tuiWin.c: Likewise.
2826 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
2828 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2829 to include space for pseudoregs as well. Update loops accordingly.
2830 (sh_fp_frame_init_saved_regs): Ditto.
2831 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2833 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2835 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2836 Add Richard Earnshaw to Arm maintainers.
2838 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2840 * defs.h (warning_begin): Delete declaration.
2842 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2845 2002-02-07 Michael Snyder <msnyder@redhat.com>
2847 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2848 Logic bug, remove misplaced else.
2850 2002-02-07 Klee Dienes <klee@apple.com>
2852 * fork-inferior.c (fork_inferior): Add '!' to the list of
2853 characters that need to be quoted when building a string for the
2854 shell. Quote '!' specifically with a backslash, since CSH chokes
2855 when trying to evaluate "str!str".
2857 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2859 * rdi-share/host.h: Only provide a typedef for bool if it is not
2862 2002-02-04 Michael Snyder <msnyder@redhat.com>
2864 * breakpoint.h (enum bptype): Add new overlay event bp type.
2865 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
2867 * breakpoint.c (create_internal_breakpoint): New function.
2868 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2869 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2870 (create_thread_event_breakpoint): Ditto.
2871 (create_solib_event_breakpoint): Ditto.
2872 (create_overlay_event_breakpoint): New function.
2873 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2874 (update_breakpoints_after_exec): Delete and re-initialize
2875 overlay event breakpoints after an exec. Add FIXME comment
2876 about longjmp breakpoint.
2877 (print_it_typical): Ignore overlay event breakpoints.
2878 (print_one_breakpoint): Ditto.
2880 (bpstat_what): Do not stop for overlay event breakpoints.
2881 (delete_breakpoint): Don't delete overlay event breakpoints.
2882 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2883 (breakpoint_re_set): Re-create overlay event breakpoint.
2885 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2886 (overlay_manual_command): Disable overlay breakpoints.
2887 (overlay_off_command): Disable overlay breakpoints.
2889 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2891 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2892 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2893 to here from config/tm-arm.h.
2894 (coff_sym_is_thumb): Make static.
2895 (arm_elf_make_msymbol_special): New function.
2896 (arm_coff_make_msymbol_special): New function.
2897 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2898 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2899 (coff_sym_is_thumb): Delete declaration.
2900 (arm_elf_make_msymbol_special): Declare.
2901 (arm_coff_make_msymbol_special): Declare.
2902 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2903 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2905 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2907 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2909 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2911 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2912 * gdbarch.c gdbarch.h: Regenerate.
2913 * arch-utils.c (default_print_float_info): New function.
2914 * arch-utils.h (default_print_float_info): Prototype it.
2915 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2916 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2917 (PRINT_FLOAT_INFO): Document it.
2919 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2920 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2921 (PRINT_FLOAT_INFO): Define.
2923 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2925 * win32-nat.c (_initialize_check_for_gdb_ini):
2926 Add typecast to sprintf argument to suppress a warning.
2928 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2930 * win32-nat.c (last_sig): Changed type of variable to target_signal,
2931 to allow easier handling of pass state.
2932 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2933 that gives exception name and address.
2934 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
2935 and set last_sig value to ourstatus->value.sig. Some missing
2937 (child_continue): Correctly report continue_status.
2938 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
2939 TARGET_SIGNAL_0 (new default value).
2940 (child_resume): consider sig argument passed to decide if
2941 the exception should be passed to debuggee or not.
2943 2002-02-05 Michael Snyder <msnyder@redhat.com>
2945 * regcache.c (fetch_register): Call target_fetch_register
2946 only if we don't call FETCH_PSEUDO_REGISTER.
2947 (store_register): Call target_store_register only if we
2948 don't call STORE_PSEUDO_REGISTER.
2950 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
2952 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
2953 ELF_MAKE_MSYMBOL_SPECIAL.
2954 * gdbarch.c, gdbarch.h: Regenerate.
2955 * arch-utils.c (default_make_msymbol_special): New function.
2956 * arch-utils.h (default_make_msymbol_special): Export.
2957 * elfread.c (elf_symtab_read): Compile use of
2958 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
2960 * coffread.c (coff_symtab_read): Ditto, for
2961 COFF_MAKE_MSYMBOL_SPECIAL.
2963 2002-02-05 Jim Blandy <jimb@redhat.com>
2965 * solib-svr4.c (svr4_truncate_ptr): New function.
2966 (svr4_relocate_section_addresses): Do the address arithmetic with
2967 the appropriate truncation for target addresses, even when
2968 CORE_ADDR is larger than a target address.
2970 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2972 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
2975 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2977 * gdbserver/linux-low.c (kill_inferior): Remove commented out
2980 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2982 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2984 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2986 * gdbserver/linux-low.c: Remove unused include files.
2988 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2990 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
2991 (read_inferior_memory): Use it.
2992 (write_inferior_memory): Likewise.
2994 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2996 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
2997 grubbing through sys_errlist.
2999 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3001 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3003 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3004 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3006 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3008 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3009 (do_sfunc, set_cmd_sfunc): New functions.
3011 * command.h (struct cmd_list_element): Add field func.
3012 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3013 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3014 * cli/cli-decode.h: Ditto.
3016 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3017 (help_all, help_cmd_list): Ditto.
3018 (find_cmd, complete_on_cmdlist): Ditto.
3019 * top.c (execute_command): Ditto.
3021 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3024 * infcmd.c (notice_args_read): Fix function signature.
3026 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3027 * cli/cli-decode.c (add_set_cmd): Ditto.
3028 * utils.c (initialize_utils): Ditto.
3029 * maint.c (_initialize_maint_cmds): Ditto.
3030 * infrun.c (_initialize_infrun): Ditto.
3031 * demangle.c (_initialize_demangler): Ditto.
3032 * remote.c (add_packet_config_cmd): Ditto.
3033 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3034 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3035 * proc-api.c (_initialize_proc_api): Ditto.
3036 * kod.c (_initialize_kod): Ditto.
3037 * valprint.c (_initialize_valprint): Ditto.
3038 * top.c (init_main): Ditto.
3039 * infcmd.c (_initialize_infcmd): Ditto.
3040 * corefile.c (_initialize_core): Ditto.
3041 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3042 * arch-utils.c (initialize_current_architecture): Ditto.
3043 (_initialize_gdbarch_utils): Ditto.
3044 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3046 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3047 * wince.c (_initialize_inftarg): Ditto.
3048 * symfile.c (_initialize_symfile): Ditto.
3049 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3050 * language.c (_initialize_language): Ditto.
3051 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3053 2002-02-04 Michael Snyder <msnyder@redhat.com>
3055 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3057 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3059 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3060 Add rules for building the register data files.
3062 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3064 * regformats/regdat.sh: Add braces to the definition of
3065 expedite_regs_${arch}.
3067 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3069 * regformats/regdef.h (struct reg): Add comment describing the
3070 requirements for offset and size fields.
3072 2002-02-04 Andreas Schwab <schwab@suse.de>
3074 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3075 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3077 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3079 * gdbarch.sh (copyright): Update years in generated header.
3080 (SMASH_TEXT_ADDRESS): Add rule.
3081 * gdbarch.h, gdbarch.c: Re-generate.
3082 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3083 * dbxread.c: Likewise.
3084 * dwarfread.c: Likewise.
3085 * elfread.c: Likewise.
3086 * somread.c: Likewise.
3088 * arm-tdep.c (arm_smash_text_address): New function.
3089 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3091 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3093 Add support for hardware watchpoints on win32 native.
3094 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3095 CONTEXT_DEBUG_REGISTERS.
3096 (dr variable): New variable. Static array containing a local copy
3098 (debug_registers_changed): New variable. Reflects when debug registers
3099 are changed and need to be written to inferior.
3100 (debug_registers_used): New variable. Reflects when any debug register
3101 was set, used when new threads are created.
3102 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3104 (thread_rec): Set dr array if id is the thread of current_event .
3105 (child_continue, child_resume): Change the debug registers for all
3106 threads if debug_registers_changed.
3107 (child_add_thread): Change the debug registers if debug_registers_used.
3108 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3109 Link nm.h to new nm-cygwin.h file.
3110 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3111 of hardware registers.
3113 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3115 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3116 Restore behavour broken by 2002-01-20 Andrew Cagney
3117 <ac131313@redhat.com> IEEE_FLOAT removal.
3119 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3121 * c-valprint.c (c_val_print): Pass a proper valaddr to
3122 cp_print_class_method.
3123 * valops.c (search_struct_method): If there is only one method
3124 and args is NULL, return that method.
3126 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3128 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3129 accessing tag_name directly.
3131 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3133 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3134 of accessing tag_name directly.
3136 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3139 * gdbtypes.c (replace_type): New function.
3140 * gdbtypes.h (replace_type): Add prototype.
3141 * stabsread.c (read_type): Use replace_type.
3143 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3145 * Makefile.in (memattr.o): Add missing dependencies rule.
3147 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3149 * breakpoint.c (break_at_finish_command): Really export.
3150 (break_at_finish_at_depth_command): Ditto.
3151 (tbreak_at_finish_command): Ditto.
3152 * hppa-tdep.c: Include completer.h.
3153 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3154 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3156 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3158 * utils.c (do_write): New function.
3159 (error_stream): Rewrite combining the code from error_begin and
3161 (verror): Rewrite using error_stream.
3162 (error_begin): Delete function.
3164 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3166 * utils.c (error_begin): Make static.
3167 * defs.h (error_begin): Delete declaration.
3169 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3170 (decode_line_1): Use cplusplus_error instead of error_begin,
3171 cplusplus_hint and return_to_top_level.
3172 * coffread.c (coff_symfile_read): Use error instead of error_begin
3173 and return_to_top_level.
3174 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3176 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3178 * language.h (type_error, range_error): Make string parameter
3180 * language.c (warning_pre_print): Delete extern declaration.
3181 * dwarfread.c (warning_pre_print): Ditto.
3182 * language.c (type_error, range_error): Rewrite to use verror and
3183 vwarning instead of warning_begin.
3185 2002-02-01 Michael Snyder <msnyder@redhat.com>
3187 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3188 (set_ignore_count): Move misplaced comment back where it belongs.
3190 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3192 * command.h (NO_FUNCTION): Delete macro.
3193 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3194 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3195 * tracepoint.c (_initialize_tracepoint): Ditto.
3196 * cli/cli-decode.c (add_set_cmd): Ditto.
3197 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3199 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3201 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3202 Update ``this'' pointer when calling virtual functions.
3204 2002-02-01 Michael Snyder <msnyder@redhat.com>
3206 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3207 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3209 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3211 * regformats/reg-arm.dat: New file.
3212 * regformats/reg-i386.dat: New file.
3213 * regformats/reg-ia64.dat: New file.
3214 * regformats/reg-m68k.dat: New file.
3215 * regformats/reg-mips.dat: New file.
3216 * regformats/reg-ppc.dat: New file.
3217 * regformats/reg-sh.dat: New file.
3218 * regformats/regdef.h: New file.
3219 * regformats/regdat.sh: New file.
3221 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3223 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3224 (arm_frame_args_address, arm_frame_locals_address): New functions.
3225 (arm_frame_num_args): New function.
3226 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3227 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3228 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3230 2002-01-31 Michael Snyder <msnyder@redhat.com>
3232 * breakpoint.c (break_at_finish_command): Export.
3233 (break_at_finish_at_depth_command): Export.
3234 (tbreak_at_finish_command): Export.
3235 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3236 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3237 "tbreak" commands, which are HPPA specific.
3239 * printcmd.c (disassemble_command): Remove an ancient
3240 artifact of an old merge.
3242 * symfile.h (enum overlay_debugging_state):
3243 Define enum constant values for overlay mode.
3244 * symfile.c (overlay_debugging): Use enums instead of literals.
3245 (overlay_is_mapped, overlay_auto_command,
3246 overlay_manual_command): Ditto.
3248 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3249 breakpoint_here_p, breakpoint_inserted_here_p,
3250 breakpoint_thread_match, bpstat_stop_status,
3251 describe_other_breakpoints, check_duplicates, clear_command):
3252 Coding standard fixes.
3254 * target.c (target_xfer_memory): Add spaces, coding standard.
3255 (do_xfer_memory): Add missing line to trust-readonly
3256 code: check bfd SEC_READONLY flag for section.
3258 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3260 * PROBLEMS: Fix typo, 5.1->5.1.1.
3262 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3264 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3265 data symbols, since we search based on textlow and texthigh.
3266 (find_pc_sect_symtab): Likewise.
3268 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3270 * defs.h (vwarning): Declare.
3271 * utils.c (vwarning): New function.
3272 (warning): Call vwarning.
3273 (warning_begin): Delete function.
3275 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3276 the warning message.
3277 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3280 2002-01-30 Michael Snyder <msnyder@redhat.com>
3282 * NEWS: Mention "set trust-readonly-sections" command.
3283 Mention generate-core-file command.
3285 2002-01-15 Michael Snyder <msnyder@redhat.com>
3287 * target.c: New command, "set trust-readonly-sections on".
3288 (do_xfer_memory): Honor the suggestion to trust readonly sections
3289 by reading them from the object file instead of from the target.
3290 (initialize_targets): Register command "set trust-readonly-sections".
3292 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3294 * parse.c (target_map_name_to_register): Simplify, search regs and
3295 pseudo-regs using a single loop.
3297 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3299 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3301 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3303 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3304 * config/i386/i386v42mp.mh: Add i387-nat.o .
3305 * i386v4-nat.c: Include i387-nat.h.
3306 (supply_fpregset): Use i387_supply_fsave.
3307 (fill_fpregset): Use i387_fill_fsave.
3309 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3311 * arm-tdep.c (arm_call_dummy_words): Define.
3312 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3313 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3314 (CALL_DUMMY_WORDS): Define.
3315 (arm_call_dummy_words): Declare.
3316 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3317 (arm_linux_call_dummy_words): Declare.
3319 2002-01-30 Andreas Schwab <schwab@suse.de>
3321 * m68klinux-nat.c: Fix last change to use regcache_collect
3322 instead of referencing registers[] directly.
3324 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3326 * parse.c (target_map_name_to_register): Delete code wrapped in
3327 #ifdef REGISTER_NAME_ALIAS_HOOK.
3329 2002-01-28 Michael Snyder <msnyder@redhat.com>
3331 * regcache.c (legacy_read_register_gen): Need to be able to
3332 read pseudo-register as well as real register.
3333 (legacy_write_register_gen): Ditto.
3335 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3337 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3338 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3339 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3340 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3341 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3342 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3343 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3344 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3345 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3346 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3347 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3348 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3349 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3350 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3351 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3352 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3353 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3354 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3355 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3356 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3358 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3360 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3361 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3362 (initialize_current_architecture): Update target_byte_order using
3363 information from BFD.
3364 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3365 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3367 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3369 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3370 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3372 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3373 #ifdef INVALID_FLOAT.
3374 * infcmd.c (do_registers_info): Ditto.
3375 * values.c (unpack_double): Ditto. Add comment.
3377 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3378 already commented out.
3380 2002-01-26 Andreas Schwab <schwab@suse.de>
3382 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3383 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3384 registers and add support for PTRACE_GETREGS.
3386 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3388 GDB 5.1.1 released from 5.1 branch.
3389 * NEWS: Add 5.1.1 news.
3390 * README: Sync with 5.1 branch.
3392 2002-01-23 Fred Fish <fnf@redhat.com>
3394 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3395 stabstring on initial malloc. Reallocing will copy it for us,
3398 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3400 * Makefile.in (hpread_h): Delete.
3401 (HFILES_NO_SRCDIR): Remove hpread.h.
3402 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3403 (hpread.o): Update dependencies.
3404 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3406 * hp-psymtab-read.c: Remove file.
3407 * hp-symtab-read.c: Remove file.
3408 * hpread.h: Remove file.
3410 * hpread.c: Merge all contents of hp-psymtab-read.c,
3411 hp-symtab-read.c and hpread.h into this file, as it was prior to
3414 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3415 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3416 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3417 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3419 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3421 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3422 fill_gregset): Call gdbarch_tdep() just once, assign result to
3423 variable and use that, instead of calling the function several
3426 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3428 * configure.host: Accept sparcv9 as alias for sparc64.
3429 * configure.tgt: Likewise.
3431 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3433 * solib-aix5.c (build_so_list_from_mapfile)
3434 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3435 arguments is not reversed.
3436 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3437 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3439 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
3441 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3442 modified version of obsolete sh_fetch_pseudo_register.
3443 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3444 (sh4_register_read): New function.
3445 (sh_pseudo_register_write): New function. Renamed and modified
3446 version of obsolete sh_store_pseudo_register.
3447 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3448 (sh4_register_write): New function.
3449 (sh_gdbarch_init): Remove setting of gdbarch function
3450 fetch_pseudo_register and store_pseudo_register. Remove setting of
3451 register_convert_to_raw, register_convert_to_virtual,
3452 register_convertible.
3453 (sh_sh4_register_convertible): Delete. No longer needed. All is
3454 taken care by architecture specific functions
3455 register_read/register_write.
3456 (sh_sh4_register_convert_to_virtual): Make static.
3457 (sh_sh4_register_convert_to_raw): Ditto.
3459 2002-01-22 Andrew Cagney <ac131313@redhat.com>
3461 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3462 (floatformat_is_nan, floatformat_mantissa): Ditto.
3464 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3465 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3466 builtin_type_ieee_double_little,
3467 builtin_type_ieee_double_littlebyte_bigword,
3468 builtin_type_m68881_ext, builtin_type_i960_ext,
3469 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3470 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3471 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3472 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3474 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
3476 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3477 parameter. Set frameless flag if it exists and depended of
3478 whether the scanned function is frameless or not.
3479 (xstormy16_skip_prologue): If function is frameless, return
3480 result of xstormy16_scan_prologue().
3481 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3484 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
3486 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3487 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3488 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3489 sh_sh4_register_byte, sh_sh4_register_raw_size,
3490 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3491 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3492 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3493 sh_store_pseudo_register, sh_do_pseudo_register): Call
3494 gdbarch_tdep() just once, assign result to variable and use that,
3495 instead of calling the function several times.
3497 2002-01-20 Mark Kettenis <kettenis@gnu.org>
3499 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3500 macros instead of LAST_FPU_CTRL_REGNUM.
3501 (store_register): Likewise.
3503 2002-01-21 Jim Blandy <jimb@redhat.com>
3505 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3506 is up-to-date before running the program, not just when a program
3509 2002-01-21 Fred Fish <fnf@redhat.com>
3511 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3512 when we have found all instructions we are looking for.
3514 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3516 * arm-tdep.c (arm_register_name): New function.
3517 (arm_registers_names): Make static.
3518 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3519 (arm_register_name): Declare.
3520 (REGISTER_NAME): Use it.
3522 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3523 Kevin Buettner <kevinb@redhat.com>
3525 Convert arm targets to new FRAME interface.
3526 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3527 (arm_frame_find_save_regs): Delete.
3528 (arm_frame_init_saved_regs): New.
3529 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3530 Allocate extra_info as required. Convert all uses of fsr.regs
3531 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3533 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3534 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3535 (check_prologue_cache, save_prologue_cache): Likewise.
3536 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3537 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3538 (FRAME_FIND_SAVED_REGS): Delete.
3539 (arm_frame_find_saved_regs): Delete prototype.
3540 (arm_frame_init_saved_regs): New prototype.
3541 (FRAME_INIT_SAVED_REGS): Define.
3543 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3545 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3547 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3549 From Jeff Law <law@redhat.com>:
3550 * infttrace.c: Include <sys/pstat.h>.
3551 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3552 exec file if the ttrace equivalent fails.
3554 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3556 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3557 (closeLogFile): Ditto.
3559 2002-01-20 Michael Chastain <mec@shout.net>
3561 * top.c (print_gdb_version): Bump copyright year to 2002.
3563 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3565 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3566 Zannoni and Eli Zaretskii.
3568 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3570 * buildsym.c: Update copyright years.
3571 * c-typeprint.c: Likewise.
3572 * dwarf2read.c: Likewise.
3573 * f-typeprint.c: Likewise.
3574 * gdbtypes.c: Likewise.
3575 * gdbtypes.h: Likewise.
3576 * hp-symtab-read.c: Likewise.
3577 * hpread.c: Likewise.
3578 * mdebugread.c: Likewise.
3579 * p-typeprint.c: Likewise.
3581 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3583 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3584 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3585 byte-order selectable.
3586 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3587 * arch-utils.c: Ditto.
3588 (set_endian): Ditto.
3589 (set_endian_from_file): Ditto.
3590 * gdbserver/low-sim.c (create_inferior): Ditto.
3591 * gdbarch.sh: Ditto.
3592 * gdbarch.h: Re-generate.
3593 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3594 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3595 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3596 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3597 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3598 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3599 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3600 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3602 * config/mips/tm-wince.h: Remove #undef of macro
3603 TARGET_BYTE_ORDER_SELECTABLE.
3604 * config/sh/tm-wince.h: Ditto.
3606 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3608 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3609 member function fields. Add accessor macro
3610 TYPE_FN_FIELD_ARTIFICIAL.
3611 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3612 * c-typeprint.c (c_type_print_base): Skip artificial member
3615 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3617 * f-typeprint.c: Delete unused function f_type_print_args.
3618 * p-typeprint.c: Delete unused function pascal_type_print_args.
3620 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3622 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3623 comment. Add ``artificial'' to ``union field_location''.
3625 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3627 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3628 * mdebugread.c (parse_symbol): Likewise.
3629 * stabsread.c (define_symbol): Likewise.
3630 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3631 initializing TYPE_FIELD_BITPOS to n (obsolete).
3632 (hpread_doc_function_type): Likewise.
3633 * hpread.c (hpread_function_type): Likewise.
3635 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3637 * configure.in (host_makefile_frag): Only require a host makefile
3638 fragment when a native build.
3639 * configure: Re-generate.
3641 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3643 * doublest.h (floatformat_from_type): Declare.
3644 * doublest.c (floatformat_from_type): New function.
3645 (convert_typed_floating): Use.
3647 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3648 call to function floatformat_from_type.
3650 * gdbarch.sh (IEEE_FLOAT): Delete.
3651 * gdbarch.h, gdbarch.c: Re-generate.
3652 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3653 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3654 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3655 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3656 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3657 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3658 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3659 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3660 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3661 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3662 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3663 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3665 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3666 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3667 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3668 * sh-tdep.c (sh_gdbarch_init): Ditto.
3669 * mips-tdep.c (mips_gdbarch_init): Ditto.
3670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3671 * cris-tdep.c (cris_gdbarch_init): Ditto.
3673 2002-01-20 Jiri Smid <smid@suse.cz>
3675 * configure.host, configure.tgt: Support x86-64.
3676 * NEWS: Note new target x86-64.
3678 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3679 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3680 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3681 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3682 x86-64-linux-nat.o): Fix dependencies.
3684 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3686 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3687 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3688 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3689 * config/sparc/xm-sun4os4.h: Delete file.
3690 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3692 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3694 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3695 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3696 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3697 * config/i386/i386lynx.mh (XM_FILE): Delete.
3698 * config/rs6000/xm-rs6000ly.h: Delete file.
3699 * config/sparc/xm-sparclynx.h: Delete file.
3700 * config/m68k/xm-m68klynx.h: Delete file.
3701 * config/i386/xm-i386lynx.h: Delete file.
3702 * config/xm-lynx.h: Delete file.
3703 * config/djgpp/fnchange.lst: Update.
3705 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3707 * alpha-tdep.c (alpha_register_byte): New function.
3708 (alpha_register_raw_size): Ditto.
3709 (alpha_register_virtual_size): Ditto.
3710 (alpha_skip_prologue_internal): Renamed from
3711 alpha_skip_prologue.
3712 (alpha_skip_prologue): New version that calls
3713 alpha_skip_prologue_internal.
3714 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3715 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3716 second argument from alpha_skip_prologue.
3717 (REGISTER_BYTE): Use alpha_register_byte.
3718 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3719 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3720 (FRAMELESS_FUNCTION_INVOCATION): Use
3721 generic_frameless_function_invocation_not.
3722 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3723 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3725 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3727 * config/mips/xm-news-mips.h: Delete file.
3728 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3730 * config/m88k/xm-m88k.h: Delete file.
3731 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3732 * config/m88k/xm-delta88v4.h: Ditto.
3733 * config/m88k/xm-delta88.h: Ditto.
3735 * config/alpha/xm-fbsd.h: Delete file.
3736 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3738 * config/sparc/xm-sparc.h: Delete file.
3739 * Makefile.in (xm-sun4os4.h): Delete dependency.
3740 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3741 * config/sparc/xm-sun4os4.h: Ditto.
3742 * config/sparc/xm-linux.h: Ditto.
3744 * config/i386/xm-windows.h: Delete file.
3746 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3748 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3749 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3751 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3753 * alpha-tdep.c (alpha_call_dummy_words): New.
3754 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3755 (CALL_DUMMY_P): Define.
3756 (CALL_DUMMY_WORDS): Define.
3757 (SIZEOF_CALL_DUMMY_WORDS): Define.
3759 2002-01-19 Per Bothner <per@bothner.com>
3761 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3762 isn't NULL, which can happen with some gcj-3.x-produced code.
3764 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3766 * alpha-tdep.c (alpha_register_virtual_type): New function.
3767 (alpha_init_frame_pc_first): Ditto.
3768 (alpha_fix_call_dummy): Ditto.
3769 (alpha_store_struct_return): Ditto.
3770 (alpha_extract_struct_value_address): Ditto.
3771 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3772 alpha_register_virtual_type.
3773 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3774 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3775 alpha_extract_struct_value_address.
3776 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3777 (INIT_FRAME_PC): Use init_frame_pc_noop.
3778 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3780 2002-01-19 Mark Kettenis <kettenis@gnu.org>
3782 * i386gnu-nat.c: Include "i386-tdep.h".
3783 (fetch_fpregs): Simplify code dealing with uninitialized floating
3784 point states such that it doesn't require FP7_REGNUM.
3786 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3788 * alpha-tdep.c (frame_extra_info): New.
3789 (alpha_find_saved_regs): Make static. Use
3791 (alpha_frame_init_saved_regs): New function.
3792 (alpha_frame_saved_pc): Use frame->extra_info.
3793 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3794 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
3795 (init_extra_frame_info): Rename to...
3796 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
3797 (alpha_print_extra_frame_info): New function.
3798 (alpha_frame_locals_address): Ditto.
3799 (alpha_frame_args_address): Ditto.
3800 (alpha_pop_frame): Use frame->extra_info.
3801 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3802 alpha_frame_args_address.
3803 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
3804 (alpha_find_saved_regs): Remove prototype.
3805 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3806 (EXTRA_FRAME_INFO): Remove.
3807 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3808 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3810 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3812 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3813 (alpha_cannot_fetch_register): Ditto.
3814 (alpha_cannot_store_register): Ditto.
3815 (alpha_register_convertible): Ditto.
3816 (alpha_use_struct_convention): Ditto.
3817 * config/alpha/tm-alpha.h: Update copyright years.
3818 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3819 (INNER_THAN): Use core_addr_lessthan.
3820 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3821 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3822 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3823 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3824 (FRAME_CHAIN): Remove unnecessary cast.
3826 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3828 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3831 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3833 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3834 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3835 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3836 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3837 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3838 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3839 * x86-64-linux-nat.c: Ditto.
3841 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3843 * alpha-tdep.c (alpha_register_name): New function.
3844 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3845 (REGISTER_NAME): Define.
3847 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3849 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3851 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3853 * alpha-tdep.c: Update copyright years.
3854 (alpha_next_pc): New function.
3855 (alpha_software_single_step): Ditto.
3856 * config/alpha/tm-alpha.h: Add prototype for
3857 alpha_software_single_step.
3859 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3861 * alphabsd-nat.c: Update copyright years.
3862 (fill_gregset): Use regcache_collect.
3863 (fill_fpregset): Likewise.
3864 (fetch_inferior_registers): Only fetch integer registers
3865 if requested to do so.
3866 (store_inferior_registers): Only store integer registers
3867 if requested to do so.
3869 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3871 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3872 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3873 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3874 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3875 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3876 * config/arm/linux.mh (XDEPFILES): Delete.
3877 * config/arm/nbsd.mh (XDEPFILES): Delete.
3878 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3879 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3880 * config/i386/i386m3.mh (XDEPFILES): Delete.
3881 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3882 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3883 * config/i386/fbsd.mh (XDEPFILES): Delete.
3884 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3885 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3886 * config/i386/i386v4.mh (XDEPFILES): Delete.
3887 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3888 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3889 * config/i386/i386aix.mh (XDEPFILES): Delete.
3890 * config/i386/go32.mh (XDEPFILES): Delete.
3891 * config/i386/cygwin.mh (XDEPFILES): Delete.
3892 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3893 * config/i386/i386mach.mh (XDEPFILES): Delete.
3894 * config/i386/i386v32.mh (XDEPFILES): Delete.
3895 * config/i386/linux.mh (XDEPFILES): Delete.
3896 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3897 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3898 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3899 * config/i386/i386sco.mh (XDEPFILES): Delete.
3900 * config/i386/i386v.mh (XDEPFILES): Delete.
3901 * config/i386/nbsd.mh (XDEPFILES): Delete.
3902 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3903 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3904 * config/i386/symmetry.mh (XDEPFILES): Delete.
3905 * config/i386/obsd.mh (XDEPFILES): Delete.
3906 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3907 * config/ia64/linux.mh (XDEPFILES): Delete.
3908 * config/ia64/aix.mh (XDEPFILES): Delete.
3909 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3910 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3911 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3912 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3913 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3914 * config/m68k/linux.mh (XDEPFILES): Delete.
3915 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3916 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3917 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3918 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3919 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3920 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3921 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3922 * config/m88k/delta88.mh (XDEPFILES): Delete.
3923 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3924 * config/m88k/m88k.mh (XDEPFILES): Delete.
3925 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3926 * config/mips/linux.mh (XDEPFILES): Delete.
3927 * config/mips/irix6.mh (XDEPFILES): Delete.
3928 * config/mips/irix5.mh (XDEPFILES): Delete.
3929 * config/mips/irix4.mh (XDEPFILES): Delete.
3930 * config/mips/irix3.mh (XDEPFILES): Delete.
3931 * config/mips/decstation.mh (XDEPFILES): Delete.
3932 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3933 (NATDEPFILES): Move core-aout.o to here.
3934 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3935 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3936 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3937 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3938 * config/pa/hpux11w.mh (XDEPFILES): Delete.
3939 * config/pa/hppaosf.mh (XDEPFILES): Delete.
3940 * config/pa/hpux11.mh (XDEPFILES): Delete.
3941 * config/powerpc/aix.mh (XDEPFILES): Delete.
3942 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
3943 * config/powerpc/linux.mh (XDEPFILES): Delete.
3944 * config/romp/rtbsd.mh: Rename XDEPFILES.
3945 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
3946 * config/rs6000/aix4.mh (XDEPFILES): Delete.
3947 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
3948 * config/s390/s390.mh (XDEPFILES): Delete.
3949 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
3950 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
3951 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
3952 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
3953 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
3954 * config/sparc/nbsd.mh (XDEPFILES): Delete.
3955 * config/sparc/linux.mh (XDEPFILES): Delete.
3956 * config/vax/vaxult.mh (XDEPFILES): Delete.
3957 * config/vax/vaxult2.mh (XDEPFILES): Delete.
3958 * Makefile.in (DEPFILES): Remove XDEPFILES.
3960 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3962 * utils.c (internal_verror): Fix comments, default is yes not no.
3963 Update queries to match. Default to quit and dump core.
3965 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3967 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
3969 * defs.h, event-top.c, gdbcmd.h: Ditto.
3970 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
3971 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
3972 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
3973 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
3974 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
3975 * mi/mi-main.c:Ditto.
3977 * stack.c, symfile.c: Update copyright.
3979 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3981 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
3982 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
3983 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
3984 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
3986 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3988 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
3989 * gdbserver/low-lynx.c (myattach): Likewise.
3990 * gdbserver/low-nbsd.c (myattach): Likewise.
3991 * gdbserver/low-sim.c (myattach): Likewise.
3992 * gdbserver/low-sparc.c (myattach): Likewise.
3993 * gdbserver/low-sun3.c (myattach): Likewise.
3995 * gdbserver/low-linux.c (myattach): New function.
3997 * gdbserver/server.c (attach_inferior): New function.
3998 (main): Handle "--attach".
4000 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4002 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4005 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4007 * c-typeprint.c (is_type_conversion_operator): Add additional
4008 check for non-conversion operators.
4010 2002-01-15 Michael Snyder <msnyder@redhat.com>
4012 * linux-proc.c: Add "info proc" command, a la procfs.c.
4013 (read_mapping): New function, abstract and re-use code.
4014 (linux_find_memory_regions): Use new func read_mapping.
4015 (linux_info_proc_cmd): New function, implement "info proc".
4016 (_initialize_linux_proc): Add new command "info proc".
4018 2002-01-15 Michael Snyder <msnyder@redhat.com>
4020 * symfile.c (generic_load): Use bfd_map_over_sections method
4021 instead of manipulating bfd structure members directly.
4022 (add_section_size_callback): New function, bfd sections callback
4023 used by generic_load.
4024 (load_sections_callback): New function, bfd sections callback
4025 used by generic_load.
4027 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4029 [Based on work by Jim Blandy]
4030 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4031 (builtin_type_vec128): Export.
4032 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4034 (builtin_type_vec128): New builtin type for 128 bit vector
4036 (build_gdbtypes): Initialize builtin_type_v16qi and
4037 builtin_type_v8hi. Create the vec128 register builtin type
4039 (build_builtin_type_vec128): New function.
4040 (_initialize_gdbtypes): Register builtin_type_v16qi and
4041 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4042 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4043 AltiVec register to new builtin type.
4045 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4047 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4050 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4052 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4053 CLEAN_UP_REGISTER_VALUE.
4054 * regcache.c (supply_register): Update only call.
4056 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4058 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4059 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4060 a29k-*-vxworks* targets as obsolete.
4062 2002-01-14 Michael Snyder <msnyder@redhat.com>
4064 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4065 until we can resolve portability issues.
4066 * gregset.h: Remove references to fpxregs.
4067 * gcore.c (gcore_command): Initialize note_sec to NULL.
4069 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4071 * signals.c (target_signal_to_name): Rewrite. Only use
4072 signals[].name when in bounds and non-NULL.
4074 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4076 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4077 * signals.c (target_signal_to_name): Verify that SIG is within the
4078 bounds of the signals array.
4080 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4082 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4084 2002-01-13 Keith Seitz <keiths@redhat.com>
4086 * stack.c (print_frame_info_base): Print the frame's pc
4087 only if when print_frame_info_listing_hook is not defined.
4089 2002-01-13 Keith Seitz <keiths@redhat.com>
4091 * varobj.c (varobj_set_value): Make sure that there were no
4092 errors evaluating the object before attempting to set its
4094 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4095 so this offset adjustment is no longer necessary.
4096 (create_child): Don't set the error flag if the child is
4098 (value_of_child): If value_fetch_lazy fails, return NULL
4099 so that callers will be notified that an error occurred.
4100 (c_value_of_variable): Delay check of variable's validity
4101 until later. We actually want all structs and unions to have
4103 Do not return "???" for variables which could not be evaluated.
4104 This error condition must be returned to the caller so that it
4105 can get the error condition from gdb.
4106 (cplus_name_of_child): Adjust index for vptr before figuring
4107 out the name of the child.
4108 (cplus_value_of_child): If a child's (real) parent is not valid,
4109 don't even bother trying to give a value for it. Just return
4110 an error. Change all instances in this function.
4111 (cplus_type_of_child): If our parent is one of the "fake"
4112 parents, we need to get at the type of the real parent, and
4113 derive the child's true type using this information.
4115 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4117 From 2002-01-09 John Marshall <johnm@falch.net>:
4118 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4119 sources.redhat.com, and tweak some related URLs which had
4120 suffered from linkrot.
4122 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4125 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4126 structures passed in registers.
4128 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4130 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4131 white space which prevented compilation. Reported by DSK
4132 <dsk@student.unsw.edu.au>.
4134 2002-01-11 Michael Snyder <msnyder@redhat.com>
4136 * symfile.c (build_section_addr_info_from_section_tab):
4137 Use bfd access method instead of manipulating bfd directly.
4138 (syms_from_objfile): Ditto.
4139 (simple_overlay_update_1): Ditto.
4140 (simple_overlay_update): Ditto.
4141 (generic_load): Ditto.
4142 (overlay_unmapped_address): FIXME comment, bfd access methods.
4143 (sections_overlap): FIXME comment, bfd access methods.
4144 (pc_in_mapped_range): FIXME comment, bfd access methods.
4145 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4146 (section_is_mapped): FIXME comment, bfd access methods.
4147 (section_is_overlay): FIXME comment, bfd access methods.
4149 * symfile.c (generic_load): Whitespace and long line cleanups.
4150 Remove duplicate variable, change several local variables to
4151 more appropriate data types.
4152 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4154 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4157 * language.c (longest_local_hex_string_custom): Use phex_nz to
4158 convert NUM to a hex string.
4160 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4162 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4164 Update Copyright year.
4166 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4168 * language.c (longest_raw_hex_string): Delete unused function.
4170 2002-01-11 Petr Sorfa <petrs@caldera.com>
4172 * MAINTAINERS (write-after-approval): Add myself.
4173 * dwarf2read.c (read_tag_string_type): Handling of
4175 (read_tag_string_type): FORTRAN fix to prevent propagation of
4177 (set_cu_language): Handling of DW_LANG_Fortran95
4179 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4181 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4182 GETPID(inferior_ptid).
4183 (store_inferior_registers): Likewise.
4185 2002-01-10 Jason Merrill <jason@redhat.com>
4187 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4190 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4192 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4193 and bfd/elf32-sh-nbsd.c.
4195 2002-01-10 Michael Snyder <msnyder@redhat.com>
4197 * NEWS: Mention --pid and corefile/proc-id behavior change.
4199 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4200 * gcore.c: Include cli/cli-decode.h instead of command.h.
4202 * main.c (captured_main): Add new command line option "--pid".
4203 If the second command line argument (following the symbol-file)
4204 begins with a digit, try to attach to it before trying to open
4206 (print_gdb_help): Document the "--pid" argument.
4208 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4210 * completer.c (command_completer): New function.
4212 * completer.h <command_completer>: Add prototype.
4214 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4215 completer for the "help" command.
4217 2002-01-09 Jason Merrill <jason@redhat.com>
4219 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4221 2002-01-09 Michael Snyder <msnyder@redhat.com>
4223 * i386-linux-nat.c (fill_fpxregset): Make global.
4224 (store_fpxregset): Ditto.
4226 * gregset.h (gdb_fpxregset_t): Define.
4227 (supply_fpxregset): Prototype.
4228 (fill_fpxregset): Prototype.
4230 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4232 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4234 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4235 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4236 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4238 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4240 * MAINTAINERS: Update target maintainer rules so that any
4241 Maintainer can approve a tested patch for a maintenance-only
4244 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4246 * MAINTAINERS (write-after-approval): Add myself.
4248 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4251 2002-01-08 Michael Snyder <msnyder@redhat.com>
4253 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4254 real name of the executable, rather than the /proc name.
4256 2002-01-03 Michael Snyder <msnyder@redhat.com>
4258 Implement a "generate-core-file" command in gdb, save target state.
4259 * gcore.c: New file. Implement new command 'generate-core-file'.
4260 Save a corefile image of the current state of the inferior.
4261 * linux-proc.c: Add linux-specific code for saving corefiles.
4262 * target.h (struct target_ops): Add new target vectors for saving
4263 corefiles; to_find_memory_regions and to_make_corefile_notes.
4264 (target_find_memory_regions): New macro.
4265 (target_make_corefile_notes): New macro.
4266 * target.c (update_current_target): Inherit new target methods.
4267 (dummy_find_memory_regions): New place-holder method.
4268 (dummy_make_corefile_notes): New place-holder method.
4269 (init_dummy_target): Initialize new dummy target vectors.
4270 * exec.c (exec_set_find_memory_regions): New function.
4271 Allow the exec_ops vector for memory regions to be taken over.
4272 (exec_make_note_section): New function, target vector method.
4273 * defs.h (exec_set_find_memory_regions): Export prototype.
4274 * procfs.c (proc_find_memory_regions): New function, corefile method.
4275 (procfs_make_note_section): New function, corefile method.
4276 (init_procfs_ops): Set new target vector pointers.
4277 (find_memory_regions_callback): New function.
4278 (procfs_do_thread_registers): New function.
4279 (procfs_corefile_thread_callback): New function.
4280 * sol-thread.c (sol_find_memory_regions): New function.
4281 (sol_make_note_section): New function.
4282 (init_sol_thread_ops): Initialize new target vectors.
4283 * inftarg.c (inftarg_set_find_memory_regions): New function.
4284 Allow to_find_memory_regions vector to be taken over.
4285 (inftarg_set_make_corefile_notes): New function.
4286 Allow to_make_corefile_notes vector to be taken over.
4287 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4288 interface layer if not target_has_execution (may be a corefile).
4289 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4290 * config/sparc/sun4sol2.mh: Ditto.
4291 * config/alpha/alpha-linux.mh: Ditto.
4292 * config/arm/linux.mh: Ditto.
4293 * config/i386/x86-64linux.mh: Ditto.
4294 * config/ia64/linux.mh: Ditto.
4295 * config/m68k/linux.mh: Ditto.
4296 * config/mips/linux.mh: Ditto.
4297 * config/powerpc/linux.mh: Ditto.
4298 * config/sparc/linux.mh: Ditto.
4300 2002-01-07 Michael Snyder <msnyder@redhat.com>
4302 * arm-linux-nat.c: Remove references to regcache.c internal data
4303 (registers[] and register_valid[]).
4305 2002-01-07 Michael Snyder <msnyder@redhat.com>
4307 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4308 so that attaching to a pid will automatically read the process's
4309 symbol file and shlibs.
4310 * Makefile.in: Add rule for linux-proc.o.
4311 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4312 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4313 * config/arm/linux.mh: Ditto.
4314 * config/i386/linux.mh: Ditto.
4315 * config/i386/x86-64linux.mh: Ditto.
4316 * config/ia64/linux.mh: Ditto.
4317 * config/m68k/linux.mh: Ditto.
4318 * config/mips/linux.mh: Ditto.
4319 * config/powerpc/linux.mh: Ditto.
4320 * config/sparc/linux.mh: Ditto.
4322 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4324 * win32-nat.c: Add i386-tdep.h dependency.
4326 2002-01-07 Michael Snyder <msnyder@redhat.com>
4328 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4329 instead of bfd_get_arch_size. Don't bail out just because
4330 there's no exec_bfd.
4332 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4333 * p-valprint.c (pascal_object_print_value): Ditto.
4334 * somread.c (som_symtab_read): Ditto.
4335 * symfile.c (simple_free_overlay_region_table): Ditto.
4336 * valops.c (value_assign): Ditto.
4338 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4339 use tilde_expand and strerror for opening save-tracepoints file.
4341 * thread-db.c (thread_db_new_objfile): Indendation fix.
4343 * infptrace.c (GDB_MAX_ALLOCA): New define.
4344 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4345 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4346 can be overridden with whatever value is appropriate to the host).
4347 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4348 alloca to allocate potentially large buffer.
4349 * rs6000-nat.c (child_xfer_memory): Ditto.
4350 * symm-nat.c (child_xfer_memory): Ditto.
4351 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4353 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4355 From Nick Clifton <nickc@redhat.com>
4356 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4358 2002-01-07 Michael Snyder <msnyder@redhat.com>
4360 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4361 Don't use exec_bfd if it's NULL.
4363 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4365 * valops.c (value_arg_coerce): Fix formatting.
4367 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4369 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4372 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4374 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4375 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4376 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4377 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4378 z8k-coff have not been multi-arched. Update z8k-coff build
4381 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4383 * MAINTAINERS: Mark a29k target as obsolete.
4384 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4385 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4387 * NEWS: Note that a29k targets are obsolete.
4388 * a29k-tdep.c: Mark as obsolete.
4389 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4390 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4391 a29k-*-vxworks* targets as obsolete.
4392 * remote-adapt.c: Obsolete.
4393 * remote-eb.c: Obsolete.
4394 * remote-mm.c: Obsolete.
4395 * remote-udi.c: Obsolete.
4396 * config/a29k/a29k-udi.mt: Obsolete.
4397 * config/a29k/a29k.mt: Obsolete.
4398 * config/a29k/tm-a29k.h: Obsolete.
4399 * config/a29k/tm-vx29k.h: Obsolete.
4400 * config/a29k/vx29k.mt: Obsolete.
4402 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4404 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4405 with BFD_ENDIAN_BIG.
4407 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4409 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4410 * configure, config.in: Re-generate.
4411 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4412 * defs.h: Do not include <endian.h>.
4414 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4416 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4417 * config.in: Regenerate.
4418 * configure.in: Update copyright years.
4419 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4420 * configure: Regenerate.
4421 * i386bsd-nat.c: Update copyright years.
4422 (fill_gregset): Use regcache_collect.
4423 (fetch_inferior_registers): Only fetch integer registers
4424 if requested to do so. Add support for XMM registers
4425 using PT_GETXMMREGS.
4426 (store_inferior_registers): Only store integer registers
4427 if requested to do so. Add support for XMM registers
4428 using PT_SETXMMREGS.
4429 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4430 (store_inferior_registers): Remove.
4431 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4432 (fetch_elfcore_registers): New function.
4433 (i386nbsd_elfcore_fns): New.
4434 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4435 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4437 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4438 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4439 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4440 * config/i386/tm-nbsd.h: Update copyright years.
4441 (HAVE_SSE_REGS): Define.
4442 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4443 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4444 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4445 (SIGCONTEXT_PC_OFFSET): Remove.
4446 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4448 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4450 * configure.tgt: Remove powerpc-*-macos* target.
4451 * config/m68k/xm-mpw.h: Delete file.
4452 * config/xm-mpw.h: Delete file.
4453 * ser-mac.c: Delete file.
4454 * mpw-make.sed: Delete file.
4455 * mpw-config.in: Delete file.
4456 * mac-xdep.c: Delete file.
4457 * mac-gdb.r: Delete file.
4458 * mac-defs.h: Delete file.
4459 * mac-nat.c: Delete file.
4460 * config/powerpc/macos.mh: Delete file.
4461 * config/powerpc/macos.mt: Delete file.
4462 * config/powerpc/nm-macos.h: Delete file.
4463 * config/powerpc/tm-macos.h: Delete file.
4464 * source.c (openp, open_source_file): Remove obsolete code.
4465 * top.c (gdb_readline): Ditto.
4466 * utils.c (query): Ditto.
4467 * event-top.c (display_gdb_prompt): Ditto.
4468 * Makefile.in (ser-mac.o): Delete obsolete target.
4471 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4473 * defs.h (BIG_ENDIAN): Delete macro definition.
4474 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4475 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4476 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4477 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4478 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4479 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4480 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4481 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4482 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4483 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4484 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4485 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4486 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4487 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4488 * gdbarch.c: Re-generate.
4490 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4492 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4495 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4497 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4499 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4501 * value.h (value_ptr): Delete typedef.
4503 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4505 * i386nbsd-nat.c: Update copyright years.
4506 Include i386-tdep.h.
4508 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
4510 * stabsread.c: Update copyright years.
4512 From Debashis Mahata <debashis.mahata@wipro.com>:
4513 (read_struct_fields): Deal with Sun C compiler erroneous stab
4514 output for structs and unions.
4517 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4519 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4522 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4524 * cp-abi.c: Fix whitespace.
4525 (baseclass_offset): New wrapper function.
4526 * cp-abi.h (baseclass_offset): Add prototype.
4527 (struct cp_abi_ops): Add baseclass_offset pointer.
4529 * valops.c (vb_match): Move to...
4530 * gnu-v2-abi.c (vb_match): here.
4531 * valops.c (baseclass_offset): Move to...
4532 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4534 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4536 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4537 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4538 * hpacc-abi.c (init_hpacc_ops): Likewise.
4540 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4542 * valops.c (find_overload_match): Accept obj as a
4543 reference parameter. Update it before returning.
4544 * value.h (find_overload_match): Update prototype.
4545 * eval.c (evaluate_subexp_standard): Pass object to
4546 find_overload_match by reference.
4548 2002-01-03 Andrew Cagney <ac131313@redhat.com>
4550 * valarith.c: Replace value_ptr with struct value pointer. Remove
4551 register attribute from value declarations.
4554 * scm-lang.c (scm_lookup_name): Ditto.
4556 2002-01-03 Michael Snyder <msnyder@redhat.com>
4558 Abstract the functionality of iterating over mapped memory
4559 regions into a general purpose iterator function.
4560 * procfs.c (iterate_over_mappings): New function, general purpose
4561 iterator for memory sections.
4562 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4563 (solib_mappings_callback): New function, callback for above.
4564 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4565 (info_mappings_callback): New function, callback for above.
4567 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4569 2002-01-01 Mark Kettenis <kettenis@gnu.org>
4571 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4572 * i386-tdep.c: Include "elf-bfd.h".
4573 (process_note_abi_tag_sections): New function.
4574 (i386_gdbarch_init): Add code to recognize various OS/ABI
4577 * maint.c (_initialize_maint_cmds): Add missing \ in
4580 For older changes see ChangeLog-2001
4586 version-control: never