1 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
3 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
5 (alphanbsd-nat.o): New dependency list.
6 (alphanbsd-tdep.o): Ditto.
7 * NEWS: Note new native NetBSD/alpha configuration.
8 * alphanbsd-nat.c: New file.
9 * alphanbsd-tdep.c: Ditto.
10 * configure.host (alpha*-*-netbsd*): New host.
11 * configure.tgt (alpha*-*-netbsd*): New target.
12 * config/alpha/nbsd.mh: New file.
13 * config/alpha/nbsd.mt: Ditto.
14 * config/alpha/nm-nbsd.h: Ditto.
15 * config/alpha/tm-nbsd.h: Ditto.
17 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
19 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
20 (alpha-osf1-tdep.o): New dependency list.
21 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
22 and skip_sigtramp_frame members.
23 * alpha-linux-tdep.c: Include gdbcore.h.
24 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
25 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
26 * alpha-osf1-tdep.c: New file.
27 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
29 (alpha_frame_past_sigtramp_frame): New function.
30 (alpha_dynamic_sigtramp_offset): Ditto.
31 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
32 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
33 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
34 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
35 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
36 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
37 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
38 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
39 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
40 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
41 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
42 to find_solib_trampoline_target.
43 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
44 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
45 (SKIP_TRAMPOLINE_CODE): Remove.
46 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
47 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
48 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
49 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
50 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
51 (PROC_SIGTRAMP_MAGIC): Ditto.
52 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
53 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
54 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
55 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
56 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
58 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
60 * NEWS: Note that Alpha targets are now multi-arch.
62 2002-04-24 Michael Snyder <msnyder@redhat.com>
64 * parser-defs.h (prev_lexptr): New external variable.
65 * parse.c (parse_exp_1): Set prev_lexptr to null before
66 calling the language-specific parser.
67 * c-exp.y (yylex): Set prev_lexptr to start of current token.
68 (yyerror): Use prev_lexptr in error reporting.
70 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
72 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
73 * gregset.h: If FILL_FPXREGSET is defined, provide
74 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
75 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
76 is defined, call fill_fpxregset.
78 2002-04-24 Roland McGrath <roland@frob.com>
80 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
81 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
82 (supply_gregset, supply_fpregset): New functions.
84 * gnu-nat.c (gnu_find_memory_regions): New function.
85 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
86 (gnu_xfer_memory): Add a cast.
88 2002-04-24 Michael Snyder <msnyder@redhat.com>
90 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
91 loop. Add handling for "str lr, [sp, #-4]!" and for saves
92 of argument regs ("str r(0123), [r11, #-nn"]).
93 (arm_skip_prologue): Better handling for frameless functions.
94 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
95 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
97 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
99 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
100 NUM_PSEUDO_REGS can be used.
102 2002-04-24 Andrew Cagney <ac131313@redhat.com>
104 * arch-utils.h: Update copyright.
106 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
107 * gdbarch.h, gdbarch.c: Re-generate.
109 * inferior.h (IN_SIGTRAMP): Delete definition.
110 * arch-utils.c (legacy_pc_in_sigtramp): New function.
111 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
113 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
114 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
115 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
116 (find_proc_framesize): Ditto.
117 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
118 (alpha_init_extra_frame_info): Ditto.
119 * infrun.c (handle_inferior_event): Ditto.
120 (handle_inferior_event): Ditto.
121 (check_sigtramp2): Ditto.
122 * blockframe.c (create_new_frame): Ditto.
123 (get_prev_frame): Ditto.
124 * ppc-linux-tdep.c: Update comments.
125 * i386-linux-tdep.c: Update comments.
126 * breakpoint.c (bpstat_what): Update comment.
128 2002-04-24 Michal Ludvig <mludvig@suse.cz>
130 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
131 (regsets_store_inferior_registers): Removed cast to int from
133 * gdbserver/regcache.h: Added declaration of struct inferior_info.
135 2002-04-24 David S. Miller <davem@redhat.com>
137 * i960-tdep.c (register_in_window_p): New function.
138 (i960_find_saved_register): Use it instead of
139 REGISTER_IN_WINDOW_P.
140 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
142 * symtab.h (find_stab_function_addr): Kill extern.
143 * minsyms.c (find_stab_function_addr): Remove from here...
144 * dbxread.c: ... to here, and mark it static.
146 2002-04-20 David S. Miller <davem@redhat.com>
148 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
149 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
151 2002-04-21 David S. Miller <davem@redhat.com>
153 * remote-vxsparc.c (vx_read_register): Fix typo, we want
154 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
155 (vx_write_register): Likewise.
157 2002-04-23 J. Brobecker <brobecker@gnat.com>
159 * source.c (is_regular_file): New function.
160 (openp): Check wether file to open is a regular file
161 to avoid opening directories.
163 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
165 * findvar.c (extract_signed_integer): Cast printf argument
166 to suppress format warning.
167 (extract_unsigned_integer): Likewise.
168 * infcmd.c (registers_info): Likewise.
169 * top.c (get_prompt_1): Likewise.
170 * valops.c (value_assign): Likewise.
171 * valprint.c (print_decimal): Likewise.
173 2002-04-22 H.J. Lu (hjl@gnu.org)
175 * c-exp.y (typebase): Support
177 [long|long long|short] [signed|unsigned] [int|]
181 signed [long|long long|short] int
183 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
185 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
187 * vax-tdep.h: New file.
188 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
189 Make several routines static.
190 (vax_get_saved_register): New function.
191 (vax_gdbarch_init): New function.
192 (_initialize_vax_tdep): Register vax_gdbarch_init.
193 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
194 Remove macros now under the control of gdbarch.
196 2002-04-22 Michael Snyder <msnyder@redhat.com>
198 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
199 Some whitespace and coding standards tweaks.
201 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
203 * vax-tdep.c: Include regcache.h.
204 (vax_call_dummy_words): New.
205 (sizeof_vax_call_dummy_words): New.
206 (vax_fix_call_dummy): New function.
207 (vax_saved_pc_after_call): Ditto.
208 * config/vax/tm-vax.h: Don't include regcache.h.
209 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
210 (CALL_DUMMY): Remove.
211 (CALL_DUMMY_WORDS): Define.
212 (SIZEOF_CALL_DUMMY_WORDS): Define.
213 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
215 2002-04-18 Michael Snyder <msnyder@redhat.com>
217 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
219 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
221 * vax-tdep.c (vax_frame_chain): New function.
222 (vax_push_dummy_frame): Ditto.
223 (vax_pop_frame): Ditto.
224 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
225 (FRAMELESS_FUNCTION_INVOCATION): Use
226 generic_frameless_function_invocation_not.
227 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
228 (POP_FRAME): Use vax_pop_frame.
230 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
232 * vax-tdep.c (vax_store_struct_return): New function.
233 (vax_extract_return_value): Ditto.
234 (vax_store_return_value): Ditto.
235 (vax_extract_struct_value_address): Ditto.
236 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
237 vax_store_struct_return.
238 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
239 (STORE_RETURN_VALUE): Use vax_store_return_value.
240 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
242 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
244 * vax-tdep.c (vax_frame_saved_pc): New function.
245 (vax_frame_args_address_correct): Ditto.
246 (vax_frame_args_address): Ditto.
247 (vax_frame_locals_address): Ditto.
248 (vax_frame_num_args): Move code to be in proximity to
249 other frame-related functions.
250 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
251 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
252 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
253 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
254 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
256 2002-04-22 H.J. Lu (hjl@gnu.org)
258 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
261 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
263 * vax-tdep.c (vax_frame_init_saved_regs): New function.
264 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
265 (FRAME_INIT_SAVED_REGS): New macro.
267 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
269 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
271 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
273 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
275 (fetch_osf_core_registers): Likewise.
276 (supply_gregset): Likewise.
278 2002-04-22 J. Brobecker <brobecker@gnat.com>
280 * symfile.h (get_section_index): Define.
281 * symfile.c (get_section_index): New function.
282 * mdebugread.c (SC_IS_SBSS): New macro.
283 (SC_IS_BSS): Return true for the scBss storage class only, as
284 the scSBss storage class refers to the .sbss section.
285 (parse_partial_symbols): Discard the symbols which associated
286 section does not exist.
287 Make sure to use the .sbss section index for symbols which
288 storage class is scBss, rather than using the .bss section index.
290 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
292 * vax-tdep.c: Update copyright years.
293 (vax_register_name): New function.
294 (vax_register_byte): Ditto.
295 (vax_register_raw_size): Ditto.
296 (vax_register_virtual_size): Ditto.
297 (vax_register_virtual_type): Ditto.
298 * config/vax/tm-vax.h: Update copyright years.
299 (REGISTER_NAMES): Remove.
300 (REGISTER_NAME): Define.
301 (REGISTER_BYTE): Use vax_register_byte.
302 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
303 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
304 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
306 2002-04-21 Andrew Cagney <ac131313@redhat.com>
308 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
310 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
312 2002-04-21 David S. Miller <davem@redhat.com>
314 * arch-utils.c (generic_prologue_frameless_p): Kill
315 SKIP_PROLOGUE_FRAMELESS_P code.
316 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
318 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
319 * arc-tdep.c (arc_prologue_frameless_p): Implement.
320 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
322 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
323 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
324 (sparc_gdbarch_init): Pass it to
325 set_gdbarch_prologue_frameless_p.
327 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
329 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
330 (alphabsd-nat.o): New dependency list.
332 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
334 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
336 (alpha-linux-tdep.o): New dependency list.
337 (alphafbsd-tdep.o): Likewise.
339 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
341 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
343 * alpha-tdep.c: ...from here.
344 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
346 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
348 * config/alpha/tm-alpha.h: Move alpha_software_single_step
349 prototype from here...
350 * alpha-tdep.h: ...to here.
352 2002-04-21 Andrew Cagney <ac131313@redhat.com>
354 * frame.h (selected_frame_level): Document as deprecated.
355 (frame_relative_level): Declare.
356 * stack.c (frame_relative_level): New function.
357 (selected_frame_level): Document as deprecated.
358 (select_frame): Do not set the selected_frame_level.
360 * stack.c (frame_info, record_selected_frame): Update.
361 (frame_command, current_frame_command): Update.
362 (up_silently_base, up_command, down_silently_base): Update.
363 (down_command): Update.
364 * inflow.c (kill_command): Update.
365 * tracepoint.c (finish_tfind_command): Update.
366 * corelow.c (core_open): Update.
367 * thread.c (info_threads_command): Update.
368 (do_captured_thread_select): Update.
369 * infcmd.c (finish_command): Update.
370 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
372 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
374 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
376 2002-04-21 Andrew Cagney <ac131313@redhat.com>
378 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
381 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
383 * alphafbsd-tdep.c: Update copyright years. Include
385 (alphafbsd_use_struct_convention): Make static.
386 (alphafbsd_init_abi): New function.
387 (_initialize_alphafbsd_tdep): New function.
388 * config/alpha/tm-fbsd.h: Update copyright years.
389 (USE_STRUCT_CONVENTION): Remove.
391 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
393 * alpha-tdep.c (alpha_abi_handler): New structure to describe
394 an Alpha ABI variant.
395 (alpha_abi_handler_list): Declare.
396 (alpha_gdbarch_register_os_abi): New function.
397 (alpha_gdbarch_init): Give registered ABI variant handlers a
398 chance to tweak the gdbarch once we have set up defaults.
399 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
401 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
403 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
404 to standard_coerce_float_to_double.
405 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
407 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
409 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
410 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
411 from gdbarch_tdep rather than a constant.
412 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
413 the default text address for all Alpha Unix ABIs.
414 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
415 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
417 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
419 * alpha-tdep.h: New file. Includes several Alpha target constants
421 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
422 let gdbarch deal with.
423 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
424 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
426 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
427 Alpha target register names.
428 * alphabsd-nat.c: Likewise.
429 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
430 Alpha target register names. Make serveral routines static.
431 (alpha_get_saved_register): New function.
432 (alpha_abi_names): New.
433 (process_note_abi_tag_sections): New function.
434 (get_elfosabi): New function.
435 (alpha_gdbarch_init): New function.
436 (alpha_dump_tdep): New function.
437 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
439 2002-04-21 Andrew Cagney <ac131313@redhat.com>
441 * frame.c (find_saved_register): Delete #ifdef
442 HAVE_REGISTER_WINDOWS code.
443 * config/sparc/tm-sparc.h: Update comments.
444 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
446 2002-04-21 Andrew Cagney <ac131313@redhat.com>
448 * i960-tdep.c (i960_find_saved_register): New function.
449 (i960_get_saved_register): New function.
450 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
451 (i960_get_saved_register): Declare.
452 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
454 2002-04-20 David S. Miller <davem@redhat.com>
456 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
458 2002-04-20 Andrew Cagney <ac131313@redhat.com>
460 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
461 instead of NUM_PSEUDO_REGS.
463 2002-04-20 David S. Miller <davem@redhat.com>
465 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
466 GDB_MULTI_ARCH_PARTIAL
467 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
468 define, let tm-sp64.h do it.
470 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
472 * frame.c (find_saved_register): Avoid a NULL pointer
473 dereference and actually walk the frame list.
475 2002-04-20 Andrew Cagney <ac131313@redhat.com>
477 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
478 sorted in most most-recent-used order. Document.
479 * gdbarch.h, gdbarch.c: Regenerate.
481 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
483 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
484 (add_inferior): Call create_register_cache.
485 (clear_inferiors): Call free_register_cache.
486 (inferior_regcache_data, set_inferior_regcache_data): New functions.
487 * gdbserver/regcache.c (struct inferior_regcache_data): New.
489 (get_regcache): New function.
490 (create_register_cache, free_register_cache): New functions.
491 (set_register_cache): Don't initialize the register cache here.
492 (registers_to_string, registers_from_string, register_data): Call
494 * gdbserver/regcache.h: Add prototypes.
495 * gdbserver/server.h: Likewise.
497 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
499 * gdbserver/mem-break.c: New file.
500 * gdbserver/mem-break.h: New file.
501 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
503 * gdbserver/inferiors.c (struct inferior_info): Add target_data
505 (clear_inferiors): Free target_data member if set.
506 (inferior_target_data, set_inferior_target_data): New functions.
507 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
508 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
509 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
510 (struct inferior_linux_data): New.
511 (linux_create_inferior): Use set_inferior_target_data.
512 (linux_attach): Likewise. Call add_inferior.
513 (linux_wait_for_one_inferior): New function.
514 (linux_wait): Call it.
515 (linux_write_memory): Add const.
516 (initialize_low): Call set_breakpoint_data.
517 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
519 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
521 * gdbserver/server.h: Include mem-break.h. Update inferior.c
523 * gdbserver/target.c (read_inferior_memory)
524 (write_inferior_memory): New functions.
525 * gdbserver/target.h (read_inferior_memory)
526 (write_inferior_memory): Change macros to prototypes.
527 (struct target_ops): Update comments. Add const to write_memory
530 2002-04-19 Andrew Cagney <ac131313@redhat.com>
532 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
534 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
535 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
536 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
539 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
542 * gdbtypes.c (init_simd_type): Rewrite using new functions.
543 (build_builtin_type_vec128): Ditto.
544 (append_composite_type_field): Fix calculation of type length in
547 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
549 * config/djgpp/README: Update.
551 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
554 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
556 * alpha-tdep.c (setup_arbitrary_frame): Rename...
557 (alpha_setup_arbitrary_frame): ...to this.
558 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
559 for alpha_setup_arbitrary_frame.
561 2002-04-18 Andrew Cagney <cagney@redhat.com>
563 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
564 * gdbarch.h, gdbarch.c: Regenerate.
566 * defs.h (breakpoint_from_pc_fn): Delete type definition.
567 * target.h (memory_breakpoint_from_pc): Update declaration.
568 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
570 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
571 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
572 * mem-break.c (memory_breakpoint_from_pc): Ditto.
573 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
574 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
575 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
576 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
577 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
578 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
579 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
580 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
581 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
583 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
585 * monitor.c (monitor_insert_breakpoint): Ditto.
586 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
588 * config/mcore/tm-mcore.h: Update copyright.
589 * mem-break.c: Ditto.
590 * xstormy16-tdep.c: Ditto.
592 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
594 * p-exp.y: Add precedence rule for '^' token.
595 This removes the shift/reduce conflicts.
596 Remove the comment concerning these shift/reduce conflicts.
598 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
600 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
601 (registers_powerpc_nofp): New register set for processors
602 without floating point unit.
604 2002-04-18 David S. Miller <davem@redhat.com>
606 * MAINTAINERS: Add myself to write-after-approval.
608 2002-04-17 Michael Snyder <msnyder@redhat.com>
610 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
612 2002-04-17 Andrew Cagney <ac131313@redhat.com>
614 * rs6000-tdep.c (frame_initial_stack_address): Use
615 frame_register_read to read the alloca_reg.
617 2002-04-17 Andrew Cagney <ac131313@redhat.com>
619 * frame.c (find_saved_register): Find saved registers in the next
623 2002-04-17 Andrew Cagney <ac131313@redhat.com>
625 * gdbarch.sh (LANG): Set to ``c''.
627 2002-04-15 Andrew Cagney <ac131313@redhat.com>
629 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
631 2002-04-15 Andrew Cagney <ac131313@redhat.com>
633 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
636 * hpread.c (hpread_get_lntt): Add declaration.
639 2002-04-14 Andrew Cagney <ac131313@redhat.com>
641 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
642 * aclocal.m4, configure: Re-generate.
645 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
647 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
648 instead of tm_print_insn.
650 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
652 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
654 2002-04-14 Andrew Cagney <ac131313@redhat.com>
656 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
657 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
658 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
660 2002-04-12 Don Howard <dhoward@redhat.com>
662 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
664 (init_cmd_lists): Initialize the new value;
665 * cli/cli-script.c (execute_user_command): Limit the call depth of
666 user defined commands. This avoids a core-dump when user commands
667 are infinitly recursive.
669 2002-04-12 Kevin Buettner <kevinb@redhat.com>
671 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
672 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
673 from tdep struct instead of DEFAULT_LR_SAVE.
674 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
675 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
676 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
678 2002-04-12 Michael Snyder <msnyder@redhat.com>
680 * Remote.c: Spelling fix.
681 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
682 If no symbol found for "sbrk", try "_sbrk".
683 (make_output_phdrs): Use bfd_section_name.
684 (gcore_copy_callback): Use bfd_section_name.
685 * eval.c: Indentation fix-ups.
686 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
687 in case it gets applied to an address that is already
688 in the instruction space.
689 * cli/cli-decode.c (help_list): Allow long lines to wrap.
690 * symfile.c: Fix indentation, long lines.
691 * source.c: White space fix-up.
693 2002-04-12 Andrew Cagney <cagney@redhat.com>
695 * defs.h (read_relative_register_raw_bytes): Delete declaration.
696 * frame.c (frame_register_read): New function. Return non-zero on
698 (read_relative_register_raw_bytes_for_frame): Delete.
699 (read_relative_register_raw_bytes): Delete.
700 * frame.h (frame_register_read): Declare.
701 * d30v-tdep.c: Update Copyright. Use frame_register_read.
703 * infcmd.c (do_registers_info): Ditto.
704 * hppa-tdep.c: Ditto.
705 * rs6000-tdep.c: Ditto.
706 * h8500-tdep.c: Ditto.
707 * mips-tdep.c: Ditto.
708 * h8300-tdep.c: Ditto.
711 2002-04-12 Kevin Buettner <kevinb@redhat.com>
713 From Jimi X <jimix@watson.ibm.com>:
714 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
717 2002-04-12 Kevin Buettner <kevinb@redhat.com>
719 From Jimi X <jimix@watson.ibm.com>:
720 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
723 2002-04-12 Kevin Buettner <kevinb@redhat.com>
725 From Jimi X <jimix@watson.ibm.com>:
726 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
727 register sets for these processor variants.
729 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
731 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
732 registers which are allowed to fail to store.
733 * gdbserver/linux-low.h (linux_target_ops): Likewise.
734 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
735 (ppc_cannot_store_register): FPSCR may not be storable.
736 * regformats/reg-ppc.dat: Support FPSCR.
738 2002-04-11 Kevin Buettner <kevinb@redhat.com>
740 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
741 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
742 Add fpscr as an invalid/unfetchable register.
743 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
744 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
745 (fill_fpregset): Add support for register fpscr.
746 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
747 (fill_gregset): Account for the fact that register ``mq'' might
749 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
750 (registers_power): Add fpscr to register set at slot 71.
751 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
752 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
754 2002-04-11 Michael Snyder <msnyder@redhat.com>
756 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
757 * configure: Regenerate.
758 * config.in: Regenerate.
759 * acconfig.h: Add define for _SYSCALL32.
760 * core-sol2.c: Remove #define _SYSCALL32.
761 * solib-legacy.c: Remove #define _SYSCALL32.
763 2002-04-10 Andrew Cagney <ac131313@redhat.com>
765 * stack.c (select_frame): Cleanup internal error message, do not
768 2002-04-10 Andrew Cagney <ac131313@redhat.com>
770 * stack.c (select_frame): Check that selected_frame and the
771 specified level are as expected.
772 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
774 * frame.h (struct frame_info): Add field `level'. Update
776 Work-in-progress PR gdb/464.
778 2002-04-10 Andrew Cagney <ac131313@redhat.com>
780 * maint.c (maint_print_section_info): Rename print_section_info.
781 (print_bfd_section_info, print_objfile_section_info): Update.
782 * inferior.h (struct gdbarch): Add opaque declaration.
783 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
784 * gdbarch.h: Regenerate.
786 2002-04-10 Michal Ludvig <mludvig@suse.cz>
788 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
789 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
790 (kernel_u_size): Added.
791 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
792 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
794 2002-04-04 Jim Ingham <jingham@apple.com>
796 * valarith.c (find_size_for_pointer_math): New function, either returns
797 the size for a pointer's target, returns 1 for void *, or errors for
799 (value_add, value_sub): use find_size_for_pointer_math.
801 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
803 * linux-low.c (linux_look_up_symbols): New hook.
804 (linux_target_ops): Add linux_look_up_symbols.
805 * remote-utils.c (decode_address): New function.
806 (look_up_one_symbol): New function.
807 * server.c (handle_query): Call target look_up_symbols hook.
808 * server.h (look_up_one_symbol): Add prototype.
809 * target.h (struct target_ops): Add look_up_symbols hook.
811 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
813 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
814 * ChangeLog: Correct paths in last ChangeLog entry.
816 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
818 * gdbserver/linux-low.h: Remove obsolete prototypes.
819 (struct linux_target_ops): New.
820 (extern the_low_target): New.
821 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
822 (register_addr): Use the_low_target explicitly.
823 (fetch_register): Likewise.
824 (usr_fetch_inferior_registers): Likewise.
825 (usr_store_inferior_registers): Likewise.
826 * gdbserver/linux-arm-low.c (num_regs): Remove.
827 (arm_num_regs): Define.
828 (arm_regmap): Renamed from regmap, made static.
829 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
831 (arm_cannot_store_register): Renamed from cannot_store_register,
833 (the_low_target): New.
834 * gdbserver/linux-i386-low.c (num_regs): Remove.
835 (i386_num_regs): Define.
836 (i386_regmap): Renamed from regmap, made static.
837 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
839 (i386_cannot_store_register): Renamed from cannot_store_register,
841 (the_low_target): New.
842 * gdbserver/linux-ia64-low.c (num_regs): Remove.
843 (ia64_num_regs): Define.
844 (ia64_regmap): Renamed from regmap, made static.
845 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
847 (ia64_cannot_store_register): Renamed from cannot_store_register,
849 (the_low_target): New.
850 * gdbserver/linux-m68k-low.c (num_regs): Remove.
851 (m68k_num_regs): Define.
852 (m68k_regmap): Renamed from regmap, made static.
853 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
855 (m68k_cannot_store_register): Renamed from cannot_store_register,
857 (the_low_target): New.
858 * gdbserver/linux-mips-low.c (num_regs): Remove.
859 (mips_num_regs): Define.
860 (mips_regmap): Renamed from regmap, made static.
861 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
863 (mips_cannot_store_register): Renamed from cannot_store_register,
865 (the_low_target): New.
866 * gdbserver/linux-ppc-low.c (num_regs): Remove.
867 (ppc_num_regs): Define.
868 (ppc_regmap): Renamed from regmap, made static.
869 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
871 (ppc_cannot_store_register): Renamed from cannot_store_register,
873 (the_low_target): New.
874 * gdbserver/linux-s390-low.c (num_regs): Remove.
875 (s390_num_regs): Define.
876 (s390_regmap): Renamed from regmap, made static.
877 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
879 (s390_cannot_store_register): Renamed from cannot_store_register,
881 (the_low_target): New.
882 * gdbserver/linux-sh-low.c (num_regs): Remove.
883 (sh_num_regs): Define.
884 (sh_regmap): Renamed from regmap, made static.
885 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
887 (sh_cannot_store_register): Renamed from cannot_store_register,
889 (the_low_target): New.
890 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
891 (the_low_target): New.
893 2002-04-09 Andrew Cagney <ac131313@redhat.com>
895 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
896 override FP_REGNUM with frame->fp. Update copyright.
897 * parse.c (num_std_regs, std_regs): Delete.
898 (target_map_name_to_register): Do not search std_regs. Update
899 function description.
900 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
901 declarations. Update copyright.
904 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
906 * gdbserver/Makefile.in: Add stamp-h target.
907 * gdbserver/configure.in: Create stamp-h.
908 * gdbserver/configure: Regenerated.
910 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
912 * gdbserver/inferiors.c: New file.
913 * gdbserver/target.c: New file.
914 * gdbserver/target.h: New file.
915 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
917 * gdbserver/linux-low.c (inferior_pid): New static variable,
919 (linux_create_inferior): Renamed from create_inferior.
920 Call add_inferior. Return 0 on success instead of a PID.
921 (linux_attach): Renamed from myattach.
922 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
923 (linux_thread_alive): Renamed from mythread_alive.
924 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
926 (linux_resume): Renamed from myresume. Add missing ``return 0''.
927 (regsets_store_inferior_registers): Correct error message.
928 Add missing ``return 0''.
929 (linux_fetch_registers): Renamed from fetch_inferior_registers.
930 (linux_store_registers): Renamed from store_inferior_registers.
931 (linux_read_memory): Renamed from read_inferior_memory.
932 (linux_write_memory): Renamed from write_inferior_memory.
933 (linux_target_ops): New structure.
934 (initialize_low): Call set_target_ops ().
935 * gdbserver/remote-utils.c (unhexify): New function.
936 (hexify): New function.
937 (input_interrupt): Send signals to ``signal_pid''.
938 * gdbserver/server.c (inferior_pid): Remove.
939 (start_inferior): Update create_inferior call.
940 (attach_inferior): Call add_inferior.
941 (handle_query): New function.
942 (main): Call handle_query for `q' packets.
943 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
944 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
946 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
948 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
950 * gdbserver/configure.in: Check for <string.h>
951 * gdbserver/configure: Regenerate.
952 * gdbserver/config.in: Regenerate.
953 * gdbserver/gdbreplay.c: Include needed system headers.
954 (remote_open): Remove strchr prototype.
955 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
956 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
957 (supply_register_by_name): Likewise.
958 (collect_register): Change buf argument to void *.
959 (collect_register_by_name): Likewise.
960 * gdbserver/regcache.h: Add missing prototypes.
961 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
962 * gdbserver/server.c (handle_query): New function.
963 (attached): New static variable, moved out of main.
964 (main): Quiet longjmp clobber warnings.
965 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
966 * gdbserver/utils.c (error): Remove NORETURN.
969 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
971 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
972 after the last symbol in a block.
974 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
976 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
977 is non zero as a found symbol.
979 2002-04-08 Andrew Cagney <ac131313@redhat.com>
981 * findvar.c: Include "builtin-regs.h".
982 (value_of_register): Call value_of_builtin_reg when applicable.
983 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
984 (target_map_name_to_register): Call
985 builtin_reg_map_name_to_regnum.
986 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
987 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
988 (builtin_regs_h): Define.
989 (builtin-regs.o): New target.
990 (findvar.o): Add $(builtin_regs_h).
991 * builtin-regs.c, builtin-regs.h: New files.
992 * std-regs.c: New file.
993 Partial fix for PR gdb/251.
995 2002-04-08 Kevin Buettner <kevinb@redhat.com>
997 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
998 it's no longer required.
1000 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1002 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1004 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1006 From Jimi X <jimix@watson.ibm.com>:
1007 * rs6000-tdep.c (rs6000_software_single_step): Use
1008 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1009 and size. Use target_insert_breakpoint() and
1010 target_remove_breakpoint() to insert and remove breakpoints
1011 instead of explicit memory reads and writes.
1013 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1015 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1016 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1017 ELF_OBJECT_FORMAT ifdef.
1019 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1021 From Jimi X <jimix@watson.ibm.com>:
1022 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1024 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1026 From Jimi X <jimix@watson.ibm.com>:
1027 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1028 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1030 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1032 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1033 s/asprintf/xasprintf/.
1034 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1036 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1038 I believe Jeff Law denies responsability for this one:
1039 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1040 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1041 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1042 Work-around for PR gdb/366.
1044 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1046 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1047 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1048 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1050 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1052 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1053 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1056 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1058 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1061 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1063 * README (Reporting Bugs in GDB): Document the bug web page as the
1064 prefered way of submitting bugs.
1067 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1069 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1071 * gdbarch.h, gdbarch.c: Re-generate.
1073 2002-04-07 Andreas Schwab <schwab@suse.de>
1075 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1076 buffer to regcache_collect.
1078 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1080 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1081 * gdbarch.c, gdbarch.h: Re-generate.
1083 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1085 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1086 declaration. Fix -Werror.
1088 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1090 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1091 * gdbarch.c: Regenerate.
1093 2002-04-05 Michael Snyder <msnyder@redhat.com>
1095 * breakpoint.c (clear_command): Rewrite middle section to
1096 combine two loops with identical control conditions.
1097 Add a cleanup to eliminate a memory leak.
1098 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1100 2002-04-05 H.J. Lu (hjl@gnu.org)
1102 * solib-svr4.c (bkpt_names): Add "__start".
1104 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1106 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1107 as test for 64 bit target.
1109 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1111 * h8500-tdep.c (h8500_write_fp): Delete function.
1112 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1113 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1114 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1116 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1117 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1119 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1120 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1121 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1122 (d10v_write_fp): Delete function.
1123 * inferior.h (write_fp, generic_target_write_fp): Delete
1125 * regcache.c (generic_target_write_fp): Delete function.
1126 (write_fp): Delete function.
1127 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1128 * gdbarch.h, gdbarch.c: Regenerate.
1129 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1130 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1131 (sparc64_write_fp): Delete declaration.
1132 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1133 (h8500_write_fp): Delete declaration.
1135 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1137 * sparc-tdep.c (sparc64_write_fp): Delete.
1138 (sparc_push_dummy_frame): Replace write_fp call with code to store
1140 (sparc_gdbarch_init): Do not initialize write_fp.
1142 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1144 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1147 2002-03-29 Jim Blandy <jimb@redhat.com>
1149 * stack.c (get_selected_block): Add new argument `addr_in_block',
1150 used to return the exact code address we used to select the block,
1152 * blockframe.c (get_frame_block, get_current_block): Same.
1153 * frame.h (get_frame_block, get_current_block,
1154 get_selected_block): Update declarations.
1155 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1156 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1158 2002-04-05 Michael Snyder <msnyder@redhat.com>
1160 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1163 2002-04-05 J. Brobecker <brobecker@gnat.com>
1165 * utils.c (xfullpath): New function.
1166 * defs.h (xfullpath): Add declaration.
1167 * source.c (openp): Use xfullpath in place of gdb_realpath to
1168 avoid resolving the basename part of filenames when the
1169 associated file is a symbolic link. This fixes a potential
1170 inconsistency between the filenames known to GDB and the
1171 filenames it prints in the annotations.
1172 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1173 to be able to match a filename with either the real filename, or
1174 the name of any symbolic link to this file.
1175 (lookup_partial_symtab): Ditto.
1177 2002-04-04 Michael Snyder <msnyder@redhat.com>
1179 * breakpoint.c: Add support for hardware breakpoints in overlays.
1180 (overlay_events_enabled): New state variable.
1181 (insert_breakpoints): Use overlay_events_enabled to decide
1182 whether to attempt to set a breakpoint at the overlay load addr.
1183 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1184 (remove_breakpoint): Use overlay_events_enabled to decide
1185 whether breakpoints need to be removed from overlay load addr.
1186 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1187 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1188 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1189 disable_overlay_breakpoints): Update overlay_events_enabled.
1191 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1193 * dwarf2read.c (struct function_range): New.
1194 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1195 (check_cu_functions): New.
1196 (read_file_scope): Initialize global function lists.
1197 Call dwarf_decode_line after processing children.
1198 (read_func_scope): Add to global function list.
1199 (dwarf_decode_lines): Call check_cu_functions everywhere
1200 record_line is called. Call record_line with a linenumber
1201 of 0 to mark sequence ends.
1203 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1205 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1206 change sync with glibc.
1208 2002-04-03 Jim Blandy <jimb@redhat.com>
1210 * configure.in: Call AC_C_INLINE.
1211 * configure: Regenerated.
1213 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1215 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1216 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1218 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1220 * NEWS: Mention gcore support on FreeBSD/i386.
1222 * fbsd-proc.c: New file.
1223 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1224 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1226 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1229 2002-03-29 Jim Blandy <jimb@redhat.com>
1231 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1232 unescaped newlines in string literals, but newer ones don't. So
1235 2002-03-26 Michael Snyder <msnyder@redhat.com>
1236 Andrew Cagney <cagney@redhat.com>
1238 * cli/cli-dump.c: New file. Dump memory to file,
1239 restore file to memory.
1240 * cli/cli-dump.h: New file.
1241 * Makefile.in: Add rules, dependencies for cli-dump.o.
1242 * NEWS: Mention new commands.
1244 2002-03-28 Michael Snyder <msnyder@redhat.com>
1246 * symfile.c (symbol_file_add): Move test for null symbols to later.
1248 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1250 From veksler at il.ibm.com:
1251 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1252 the xstrduped original path.
1255 2002-03-27 Michael Snyder <msnyder@redhat.com>
1257 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1258 * infcmd.c (_initialize_infcmd): Ditto.
1259 * language.c (_initialize_language): Ditto.
1260 * symfile.c (_initialize_symfile): Ditto.
1261 * top.c (_init_main): Ditto.
1262 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1264 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1266 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1267 vector registers handling.
1268 (skip_prologue): Handle new AltiVec instructions. Fill in new
1269 fields of frame data.
1270 (frame_get_saved_regs): Fill in information for AltiVec registers.
1272 2002-03-27 Jim Blandy <jimb@redhat.com>
1274 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1275 a function; leave this macro here to invoke that function.
1276 (symbol_init_mangled_name): Declaration for that function.
1277 * symtab.c (symbol_init_mangled_name): New function.
1279 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1281 * valarith.c: Replace strerror with safe_strerror.
1282 * tracepoint.c: Ditto.
1284 * go32-nat.c: Ditto.
1288 2002-03-27 Andreas Schwab <schwab@suse.de>
1290 * event-top.c (command_line_handler): Remove useless if.
1292 2002-03-27 Andreas Jaeger <aj@suse.de>
1294 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1297 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1299 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1300 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1301 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1302 (x86_64_linux_dr_get_status, supply_gregset),
1303 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1304 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1305 (x86_64_register_info_table): Add.
1306 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1307 (x86_64_register_raw_size, x86_64_register_virtual_type),
1308 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1309 general x86_64_register_info_table.
1310 (i386_gdbarch_init): gdbarch_register_bytes is now set
1311 dynamicaly during initialization.
1312 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1313 * gdbserver/linux-x86-64-low.c: Ditto.
1315 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1317 * gdbserver/server.c (main): Call target_signal_to_host_p
1318 and target_signal_to_host on signals received from the remote.
1319 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1320 target_signal_from_host on signals sent to the remote.
1321 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1322 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1324 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1326 * signals/signals.c: Include "server.h" in gdbserver build.
1327 (target_signal_from_name): Don't use STREQ.
1328 (_initialize_signals): Likewise. Don't include function in
1331 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
1333 * signals.c: Moved to...
1334 * signals/signals.c: Here.
1335 * Makefile (signals.o): Update.
1337 2002-03-26 Jeff Law (law@redhat.com)
1339 * somread.c (som_symtab_read): Remove some commented out code and
1340 updated related comments. Do not set the minimal symbol table to
1341 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1342 in a dynamic executable.
1343 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1344 where we are unable to find the minimal symbol for the given
1347 2002-03-25 Jeff Law (law@redhat.com)
1349 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1351 2002-03-25 Michal Ludvig <mludvig@suse.cz>
1353 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1355 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1357 * command.h: Update copyright.
1358 (struct cmd_list_element): Replace definition with opaque
1360 (enum cmd_types): Document that it will eventually be moved to
1362 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1363 (MALLOCED_REPLACEMENT): Delete macro.
1364 * Makefile.in (cli_decode_h): Add $(command_h).
1365 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
1366 * top.c: Include "cli/cli-decode.h".
1367 * completer.c: Include "cli/cli-decode.h".
1368 * maint.c: Include "cli/cli-decode.h".
1369 * cli/cli-decode.h: Include "command.h".
1370 (enum command_class): Delete.
1371 (enum cmd_types): Comment out.
1372 (enum cmd_auto_boolean): Delete.
1373 (enum var_types): Delete.
1375 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1377 * cli/cli-decode.c: Include "gdb_assert.h".
1378 (add_set_or_show_cmd): New static function.
1379 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1380 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1381 all fields, such as func, from the set command.
1383 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1385 * MAINTAINERS (sh-elf): Change warning flag to -w.
1387 2002-03-23 Andrew Cagney <cagney@redhat.com>
1389 * defs.h (error): Add printf format attribute.
1390 * thread-db.c (thread_from_lwp): Fix error format string.
1391 * stack.c (parse_frame_specification): Ditto.
1392 * cli/cli-decode.c (undef_cmd_error): Ditto.
1393 * scm-lang.c (scm_lookup_name): Ditto.
1394 * tracepoint.c (trace_error): Ditto.
1395 * remote-utils.c (usage): Ditto.
1396 * remote.c (compare_sections_command): Ditto.
1399 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1401 * gdbtypes.c (append_composite_type_field): New function.
1402 (init_composite_type): New function.
1403 * gdbtypes.h (append_composite_type_field): Declare.
1404 (init_composite_type): Ditto.
1406 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1408 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1410 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1411 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1412 structure returning convention for SYSV ABI case, but not
1413 for GNU/Linux, FreeBSD, or NetBSD.
1415 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1417 * symtab.h (lookup_block_symbol): Add mangled_name argument
1420 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1421 with new mangled_name argument.
1422 * linespec.c (decode_line_1): Likewise.
1423 * valops (value_of_this): Likewise.
1424 * symtab.c (lookup_transparent_type): Likewise.
1425 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1426 (lookup_symbol): If we are given a mangled name, pass it down
1427 to lookup_symbol_aux.
1428 (lookup_block_symbol): If we are given a mangled name to check
1429 against, only return symbols which match it.
1431 2002-03-22 Christopher Faylor <cgf@redhat.com>
1433 * win32-nat.c (child_create_inferior): Check for proper shell to use
1434 here, in case the user changes it on the fly.
1435 (_initialize_inftarg): Remove shell path considerations.
1437 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1439 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1440 for gdbarch_max_register_raw_size and max_register_virtual_size.
1441 Adjust copyright year.
1443 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1445 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1446 in a function to cover the entire beginning of the function
1447 as well if it does not already.
1449 2002-03-21 Tom Rix <trix@redhat.com>
1451 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1452 (rs6000_ptrace64): Renamed from ptrace64.
1454 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1456 * gdbserver/remote-utils.c (remote_open): Don't call
1457 getprotobyname, we're all using TCP here so just use
1459 * gdbserver/gdbreplay.c (remote_open): Ditto.
1461 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1463 * regcache.c (_initialize_regcache): No need to call
1464 build_regcache() at this time; it gets called whenever
1465 the gdbarch changes.
1467 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1469 * sparc-nat.c: Include sys/param.h where possible.
1471 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1474 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1475 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1476 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1478 * stabsread.c (rs6000_builtin_type): Likewise.
1479 (read_sun_floating_type): Likewise.
1481 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1483 * stabsread.c (read_member_functions): Remove skip code for duplicate
1484 constructor/destructor methods. Use standard parsing for these
1485 methods and just do not chain them to the list of methods after
1488 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1490 * coffread.c: Remove redundant static declarations. Replace
1491 occurrences of `PTR' with `void *'.
1492 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1493 * top.h (quit_cover): Likewise.
1494 * defs.h (catch_errors): Likewise.
1496 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1498 * defs.h (XMALLOC): Define.
1499 * gdb-events.sh (XMALLOC): Delete macro.
1500 * gdb-events.c, gdb-events.h: Regenerate.
1501 * gdbarch.sh (XMALLOC): Delete macro.
1502 * gdbarch.c: Regenerate.
1503 * serial.c (XMALLOC): Delete macro.
1504 * ui-file.c (XMALLOC): Ditto.
1505 * ser-unix.h (XMALLOC): Ditto.
1506 * sh-tdep.c (XMALLOC): Ditto.
1507 * ui-out.c (XMALLOC): Ditto.
1508 * utils.c (XMALLOC): Ditto.
1509 * i386-tdep.c (XMALLOC): Ditto.
1510 * gdb-events.c (XMALLOC): Ditto.
1511 * d10v-tdep.c (XMALLOC): Ditto.
1512 * cli-out.c (XMALLOC): Ditto.
1514 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1515 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1516 * ui-file.c, ui-out.c: Ditto.
1518 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1520 * command.h (struct cmd_list_element): Add field context.
1521 (set_cmd_context, get_cmd_context): Declare.
1522 * cli/cli-decode.h: Ditto.
1523 * cli/cli-decode.c (get_cmd_context): New function.
1524 (set_cmd_context): New function.
1525 (add_cmd): Initialize context.
1526 Part of fixing PR gdb/145 and PR gdb/146.
1528 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1530 * cli/cli-decode.c (cmd_type): New function.
1531 * command.h (cmd_type): Declare.
1532 * infrun.c (set_schedlock_func): Call function cmd_type.
1533 * kod.c (kod_set_os): Call cmd_type.
1534 * cris-tdep.c (cris_version_update): Use function cmd_type.
1535 (cris_mode_update, cris_abi_update): Ditto.
1537 * command.h: (execute_cmd_post_hook): Declare.
1538 (execute_cmd_pre_hook): Declare.
1539 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1540 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1541 functions. Execute pre/post hook while ensuring that afterwords
1543 * top.c (execute_command): Use execute_cmd_post_hook, and
1544 execute_cmd_pre_hook to execute pre/post commands.
1545 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1547 (hook_stop_stub): Call execute_cmd_pre_hook.
1549 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1551 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1552 set'' and this leads to a core dump. Move xstrdup of
1553 operating_system to after check that it is not NULL.
1555 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1557 * kod.c (kod_set_os): Remove unnecessary check that
1558 ``command->type'' is set_cmd.
1560 * valprint.c (set_input_radix): Use input_radix.
1561 (set_output_radix): Use output_radix.
1562 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1565 2002-03-16 Andrew Cagney <ac131313@redhat.com>
1567 * value.h (struct value): Delete field ``substring_addr''. Change
1568 aligner fields to force_doublest_align, force_longest_align,
1569 force_core_addr_align and force_pointer_aligh.
1571 * value.h (struct value): Fix typo in above change.
1573 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1575 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1576 to fix internal_error from ``maintenance print architecture''.
1578 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1580 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1581 for gcc versions after gcc-2.8.1.
1583 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1585 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1586 for method resolution. Restore adjustment of ``this'' pointer after
1587 calling value_struct_elt, which was accidentally removed during the
1590 2002-03-15 Andrew Cagney <ac131313@redhat.com>
1592 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1594 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1596 * value.h (value_of_register): Update.
1598 2002-03-14 Richard Henderson <rth@redhat.com>
1600 * configure.in: Detect declaration for canonicalize_file_name.
1601 * utils.c (canonicalize_file_name): Declare, if needed.
1602 (gdb_realpath): Prefer realpath if available and usable.
1603 * config.in, configure: Rebuild.
1605 2002-03-14 Richard Henderson <rth@redhat.com>
1607 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1608 a constant array bound.
1610 * MAINTAINERS: Add myself to write-after-approval.
1612 2002-03-14 Michael Snyder <msnyder@redhat.com>
1614 * symfile.c (syms_from_objfile): Return immediately if no syms.
1615 (symbol_file_add): Return immediately if no syms.
1616 (find_sym_fns): Return immediately if no syms.
1618 2002-03-13 Michal Ludvig <mludvig@suse.cz>
1620 * gdbserver/remote-util.c (remote_open): Print remote-side's
1621 IP address when remote debugging over the network.
1623 2002-03-12 David O'Brien <obrien@FreeBSD.org>
1625 * config/sparc/fbsd.mh: Fix copyright.
1626 * config/sparc/fbsd.mt: Likewise.
1628 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
1630 * MAINTAINERS: Fix typo in name of gdb warnings option.
1631 (x86-64): Fix formating so that this can be parsed by awk.
1633 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1635 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1636 * defs.h: Include "gdb/signals.h".
1637 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1639 2002-03-10 Michal Ludvig <mludvig@suse.cz>
1641 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1642 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1645 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1646 Don Howard <dhoward@redhat.com>
1648 * mips-tdep.c (ST0_FR): Define.
1649 (mips2_fp_compat): New function, temporarily disabled.
1650 (mips_read_fp_register_single): New function.
1651 (mips_read_fp_register_double): New function.
1652 (mips_print_register): Use them.
1653 (do_fp_register_row): Likewise.
1655 2002-03-09 Andrew Cagney <ac131313@redhat.com>
1657 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1660 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1662 * stabsread.c (read_member_functions): Fix is_stub test for
1663 static member functions, improve comment.
1665 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1667 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1668 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1669 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1670 commands that set boolean values.
1671 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1672 (arm_rdi_resume): Always initialize PC.
1673 (arm_rdi_open): Don't use rslt as a boolean.
1674 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1675 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1676 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1677 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1679 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
1681 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1682 * configure: Rebuilt.
1684 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1686 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1687 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1689 2002-03-06 Andrew Cagney <ac131313@redhat.com>
1691 * cli/cli-decode.c (set_cmd_completer): New function.
1692 * command.h (set_cmd_completer): Declare.
1693 * cli/cli-decode.h (set_cmd_completer): Ditto.
1695 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1696 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1697 * win32-nat.c (_initialize_inftarg): Ditto.
1698 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1699 * proc-api.c (_initialize_proc_api): Ditto.
1700 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1701 * source.c (_initialize_source): Ditto.
1702 * exec.c (_initialize_exec): Ditto.
1703 * solib.c (_initialize_solib): Ditto.
1704 * top.c (init_main): Ditto.
1705 * tracepoint.c (_initialize_tracepoint): Ditto.
1706 * symfile.c (_initialize_symfile): Ditto.
1707 * printcmd.c (_initialize_printcmd): Ditto.
1708 * infcmd.c (_initialize_infcmd): Ditto.
1709 * corefile.c (_initialize_core): Ditto.
1711 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1713 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1715 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1717 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1719 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1721 * NEWS: Update headings, 5.2 has branched.
1723 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
1725 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1726 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1727 (register_addr, REGISTER_RAW_SIZE): Likewise.
1728 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1729 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1731 2002-03-03 Michal Ludvig <mludvig@suse.cz>
1733 * MAINTAINERS (x86-64): Add myself.
1734 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1735 changed value_ptr -> struct value *
1737 2002-03-01 David O'Brien <obrien@FreeBSD.org>
1739 * configure.host (sparc64-*-freebsd): Add.
1740 * configure.tgt: Likewise.
1741 * config/sparc/fbsd.mh: New file.
1742 * config/sparc/fbsd.mt: Likewise.
1743 * config/sparc/nm-fbsd.h: Likewise.
1744 * config/sparc/tm-fbsd.h: Likewise.
1746 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
1748 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1749 regformats/reg-s390x.dat.
1751 2002-03-01 Andrew Cagney <ac131313@redhat.com>
1753 * utils.c: Add FIXME explaining true/false problem.
1755 2002-02-28 Andrew Cagney <ac131313@redhat.com>
1757 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1759 2002-02-28 Michael Chastain <mec@shout.net>
1761 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1763 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
1765 * gdbserver/linux-s390-low.c: New file.
1766 * regformats/reg-s390.dat: New file.
1767 * regformats/reg-s390x.dat: New file.
1768 * gdbserver/configure.srv: Add S/390.
1769 * gdbserver/Makefile.in: Add S/390.
1770 * configure.tgt: Enable gdbserver for S/390.
1772 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1774 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1775 first line of the doc string for "info dos", except at the end of
1776 the sentence, since the short help stops at the first period.
1778 2002-02-28 Jason Merrill <jason@redhat.com>
1780 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1782 2002-02-27 Fred Fish <fnf@redhat.com>
1784 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1785 comment (dumy -> dummy).
1787 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1789 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1791 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
1793 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1795 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1797 * gdbserver/acconfig.h: New file.
1798 * gdbserver/i387-fp.c: New file.
1799 * gdbserver/i387-fp.h: New file.
1800 * gdbserver/linux-x86-64.c: New file.
1801 * regformats/reg-x86-64.dat: New file.
1802 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1803 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1804 * gdbserver/configure.in: Add support for regsets.
1805 * gdbserver/config.in: Regenerate.
1806 * gdbserver/configure: Regenerate.
1807 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1808 * gdbserver/linux-low.h: New file.
1809 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1811 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1812 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1813 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1814 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1815 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1816 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1817 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1818 "i387-fp.h". Add PTRACE_GETREGS and friends.
1819 * gdbserver/regcache.c (supply_register): New function.
1820 (supply_register_by_name): New function.
1821 (collect_register): New function.
1822 (collect_register_by_name): New function.
1824 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1826 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1827 (config.status): Add configure.srv dependency.
1828 (server_h): Add config.h dependency.
1830 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1832 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1833 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1834 * gdbserver/configure.srv: Change i386-*-linux* to use
1837 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1839 * x86-64-tdep.c: Re-indent. Update copyright date.
1841 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1843 From Michal Ludvig <mludvig@suse.cz>:
1844 * x86-64-tdep.c (value.h): Delete.
1845 (gdb_assert.h): Include.
1846 (x86_64_register_convert_to_virtual,
1847 x86_64_register_convert_to_raw ): Add check which lets only
1848 floating-point values to be converted.
1849 (value_push): Delete.
1850 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1851 (i386_gdbarch_init): Number of register_bytes fixed.
1853 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1855 * MAINTAINERS: Add x86-64 target.
1857 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1859 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1860 * osfsolib.c (solib_map_sections): Ditto.
1861 * irix5-nat.c (solib_map_sections): Ditto.
1862 * corelow.c (gdb_check_format): Ditto.
1863 * symfile.c (symfile_bfd_open): Ditto.
1864 * solib.c (solib_map_sections): Ditto.
1867 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1869 * remote.c (_initialize_remote): By default, disable ``e'' and
1870 ``E'' step out-of-range packets.
1872 2002-02-26 Andreas Schwab <schwab@suse.de>
1874 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1875 m68k_linux_frame_saved_pc.
1876 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1878 (SIGCONTEXT_PC_OFFSET): Remove.
1879 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1880 m68k_linux_sigtramp_saved_pc): New functions.
1881 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1882 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1883 (UCONTEXT_PC_OFFSET): Define.
1884 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1885 non-RT and RT signal trampolines.
1887 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
1889 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1890 (TARGET_NBPG, STACK_END_ADDR): Delete
1891 (VARIABLES_INSIDE_BLOCK): Delete.
1893 2002-02-25 Andrew Cagney <ac131313@redhat.com>
1895 * utils.c (perror_with_name): Make string parameter constant.
1896 (print_sys_errmsg): Ditto.
1898 * defs.h (perror_with_name): Update.
1899 (print_sys_errmsg): Update.
1902 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
1904 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1905 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1907 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1909 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1910 if it already matches the current architecture from the exec file.
1911 Include arch-utils.h for gdbarch_info_init prototype.
1912 * Makefile.in (rs6000-nat.o): Update dependencies.
1914 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1916 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1917 list of exported variables.
1919 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
1921 * gdbserver/configure.srv: New file.
1922 * gdbserver/configure.in: Use configure.srv instead
1923 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1925 * gdbserver/configure: Regenerated.
1926 * gdbserver/terminal.h: New file.
1927 * gdbserver/Makefile.in: Update for configure changes. Remove
1928 more unneeded include paths.
1930 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1932 From wiz at danbala:
1933 * config/sparc/tm-sp64.h: Fix grammar and typos.
1936 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1938 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
1939 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1940 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1941 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
1942 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1943 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1944 * s390-tdep.c: Ditto.
1945 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1946 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1947 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1948 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1949 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1950 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1951 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1952 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1953 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1954 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
1957 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1959 * lin-thread.c: Delete file.
1960 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1961 to gdb_proc_service.h.
1962 * configure: Re-generate.
1964 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1965 * serial.c (serial_open): Delete check for "ocd".
1968 * Makefile.in (linux-thread.o): Delete target.
1969 * linux-thread.c: Delete file.
1971 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1972 renamed SH files to be consistent.
1974 * symtab.c (sort_search_symbols): Use xfree.
1976 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1978 * arm-linux-tdep.c (arm_linux_init_abi): Register
1979 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1980 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1981 definition with undef, since we don't want the sysvr4 definition.
1982 (SKIP_TRAMPOLINE_CODE): Likewise.
1984 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1986 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1988 * configure.in: (AC_CHECK_FUNCS) Added test for
1989 canonicalize_file_name Regenerated.
1990 * config.in, configure: Regenerated.
1991 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1992 defined use canonicalize_file_name.
1994 2002-02-23 Michael Chastain <mec@shout.net>
1996 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1998 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2000 * README: Remove references to cygnus.com.
2001 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2002 dot com'' form. Remove references to cygnus.com and sourceware.
2004 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2006 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2007 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2008 1003.1-2001 no longer allows "head -1".
2009 * gdb/Makefile.in (version.c): Likewise.
2010 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2011 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2012 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2014 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2016 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2017 * command.h (cmd_cfunc_eq): Declare.
2018 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2020 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2021 ``struct cmd_list_element *''.
2022 * cli/cli-cmds.c (is_complete_command): Update. Use
2024 * top.c (execute_command): Pass the command to
2025 is_complete_command.
2026 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2028 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2030 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2031 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2032 architecture defines.
2033 * s390-tdep.c (s390_gdbarch_init): Likewise.
2035 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2037 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2038 (arm_linux_push_arguments): Likewise.
2039 (arm_linux_init_abi): Register them. Also register linux-specific
2041 (find_minsym_and_objfile): Use strcmp, not STREQ.
2042 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2043 (arm_linux_call_dummy_words): Delete declaration.
2044 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2045 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2047 (LOWEST_PC): Delete.
2049 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2051 * maint.c (print_section_info): Do not prepend `0x' to filepos
2052 output, it will be handled by local_hex_string_custom.
2054 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2056 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2057 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2058 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2060 2002-02-22 Jim Blandy <jimb@redhat.com>
2062 Indicate that the bcache functions don't change the strings
2064 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2065 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2067 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2069 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2071 2002-02-21 Christopher Faylor <cgf@redhat.com>
2073 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2074 find the complete path to a loaded DLL.
2076 2002-02-21 Fred Fish <fnf@redhat.com>
2078 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2079 that marks the end of the range of a function, enter a line number
2080 entry that has a line number of zero and a PC offset that matches
2081 the end of the function. This starts a range of PC's for which no
2082 line number information is known.
2083 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2084 PC's for which no line number info is found (line number is zero)
2085 then we didn't find any valid line information.
2086 * symtab.h: Document use of zero line number entry.
2088 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2090 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2091 (have_ptrace_getvrregs): Define for run time checks.
2092 (gdb_vrregset_t): New type for Altivec register handling.
2093 (fetch_register, store_register): Fetch/store altivec register
2095 (fetch_altivec_register, store_altivec_register): New functions.
2096 (supply_vrregset, fill_vrregset): New functions.
2097 (fetch_altivec_registers, store_altivec_registers): New functions.
2098 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2101 2002-02-21 Jiri Smid <smid@suse.cz>
2103 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2105 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2107 * Makefile.in (armnbsd-nat.o): Update dependencies.
2108 * armnbsd-nat.c (supply_gregset): New function. Common code to
2109 supply the integer register set.
2110 (supply_fparegset): New function. Similar for FPA registers.
2111 (fetch_regs, fetch_fp_regs): Use them.
2112 (fetch_core_registers): Likewise.
2113 (fetch_elfcore_registers): New function.
2114 (arm_netbsd_elfcore_fns): New core-file type specification.
2115 (_initialize_arm_netbsd_nat): Register it.
2117 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2119 * armnbsd-nat.c: Include gdbcore.h.
2120 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2121 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2122 'void' to declaration, to shut up ARI.
2123 (fetch_core_registers): Make static. Rewrite using supply_register.
2124 (arm_netbsd_core_fns): New core-file type specification.
2125 (_initialize_arm_netbsd_nat): New function.
2127 2002-02-21 Christopher Faylor <cgf@redhat.com>
2129 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2132 2002-02-20 Christopher Faylor <cgf@redhat.com>
2134 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2137 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2139 * jv-exp.y (parse_number): Change type of implicit longs
2140 to builtin_type_uint64.
2142 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2144 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2145 to be an integer instead of a `union wait'.
2147 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2149 * mips-linux-nat.c: Call the operating system GNU/Linux.
2150 * mips-linux-tdep.c: Likewise.
2151 * mips-tdep.c: Likewise.
2153 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2156 * jv-exp.y (parse_number): Handle 64-bit integers.
2158 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2160 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2161 AC_STDC_HEADERS to AC_HEADER_STDC.
2162 * gdbserver/configure: Regenerated.
2164 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2166 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2168 * sparc-tdep.c (get_longjmp_target): Likewise.
2170 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2172 * News: Add news about ARM and Multi-arch. Mention the new target
2175 2002-02-19 Jim Blandy <jimb@redhat.com>
2177 * stabsread.c (error_type_complaint): Improve error message.
2179 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2181 * gdbserver/README: Update documentation.
2182 * gdbserver/configure.in: Update configury to match documentation.
2183 * gdbserver/Makefile.in: Likewise.
2184 * gdbserver/configure: Regenerated.
2185 * gdbserver/aclocal.m4: New file, generated by aclocal.
2186 * gdbserver/config.in: New file, generated by autoheader.
2188 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2190 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2193 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2195 * arm-tdep.h (enum arm_float_model): New enum.
2196 (struct gdbarch_tdep): Add fp_model.
2197 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2198 up floating-point conversions until we know the floating-point model
2199 in use by the inferior. Don't complain about being unable to
2200 determine the ABI of the inferior when we don't have one.
2201 (arm_extract_return_value): Support different floating-point models.
2202 (arm_store_return_value): Likewise.
2203 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2205 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2207 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2209 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2210 of ``current_gdbarch''.
2212 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2214 * armnbsd-nat.c : ANSIfy all function declarations.
2215 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2216 (fetch_inferior_registers): Re-implement in terms of above.
2217 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2218 (store_inferior_registers): Re-implement in terms of above.
2220 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2222 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2224 * arm-linux-tdep.c: Likewise.
2225 * config/arm/tm-linux.h: Likewise.
2227 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2229 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2230 * config/arm/nbsd.mt (TM_FILE): Delete.
2231 * config/arm/tm-nbsd.h: Delete.
2233 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2235 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2236 Initialize CALL_DUMMY_LENGTH.
2238 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2240 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2242 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2243 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2244 defines one thing and that is incorrect for this port.
2245 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2247 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2249 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2251 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2253 * win32-nat.c (display_selector): New function. Displays information
2254 about the information returned by GetThreadSelectorEntry API function.
2255 (display_selectors): New function. Displays the infomation of
2256 the selector given as argument, or of CS, DS ans FS selectors
2257 if no argument is given.
2258 ( _initialize_inftarg): Add "w32" as info prefix command.
2259 Add "info w32 selector" as command calling display_selectors.
2261 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2263 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2264 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2267 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2269 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2271 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2273 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2274 (arm_fix_call_dummy): Call it.
2275 (arm_call_dummy_breakpoint_offset): Delete.
2276 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2277 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2279 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2281 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2282 Default to func_frame_chain_valid.
2283 * gdbarch.h, gdbarch.c: Re-generate.
2284 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2286 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2288 * ppc-linux-nat.c: Update copyright.
2289 (fetch_register, store_register): Add tid parameter, don't compute
2291 (fetch_ppc_registers, store_ppc_registers): Add tid
2292 parameter. Pass it along to callees.
2293 (fetch_inferior_registers, store_inferior_registers): Compute tid
2294 here, and pass it to calleed functions.
2295 (fill_gregset, supply_fpregset): Clean up formatting.
2297 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2299 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2300 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2302 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2304 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2305 * gdbarch.c gdbarch.h: Regenerate.
2306 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2308 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2309 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2310 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2312 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2313 * arm-tdep.c (arm_get_longjmp_target): New function.
2314 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2315 this to a positive value register arm_get_longjmp_target as the
2317 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2318 (arm_linux_init_abi): Set up longjmp description in tdep.
2319 * armnbsd-nat.c (get_longjmp_target): Delete.
2320 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2321 description in tdep.
2322 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2323 (get_longjmp_target): Delete declaration.
2324 (GET_LONGJMP_TARGET): Delete.
2325 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2326 (GET_LONGJMP_TARGET): Delete.
2328 2002-02-17 Kevin Buettner <kevinb@redhat.com>
2330 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2331 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2332 of ``current_gdbarch''.
2334 2002-02-17 Tom Tromey <tromey@redhat.com>
2336 * cli/cli-cmds.c (compare_strings): New function.
2337 (complete_command): Only print each unique item once.
2338 * completer.h (complete_line): Declare.
2339 * completer.c (complete_line): New function.
2340 (line_completion_function): Use it.
2342 2002-02-16 Andrew Cagney <ac131313@redhat.com>
2344 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2345 * gdbarch.h, gdbarch.c: Re-generate.
2347 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2349 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2351 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
2353 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2354 * valops.c (value_arg_coerce): Don't take the address of a reference
2355 to convert an argument to a reference.
2357 2002-02-15 Christopher Faylor <cgf@redhat.com>
2359 * win32-nat.c (get_image_name): New function.
2360 (handle_load_dll): Use get_image_name function.
2361 (get_child_debug_event): Avoid registering debug events until possibly
2362 execed process is started.
2363 (child_create_inferior): Allow invocation via shell so that command
2364 line redirection, etc. works ok.
2365 (_initialize_inftarg): Add new command: "set shell" to control whether
2366 a shell is used to start a process.
2368 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2370 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2371 instead of find_register_by_number.
2372 (cannot_store_register): Likewise.
2374 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2376 * dwarf2read.c: Replace fprintf (stderr, ...) by
2377 fprintf_unfiltered (gdb_stderr, ...).
2379 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
2381 * gdbserver/gdbserver.1: Document --attach.
2383 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2385 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2387 * arm-tdep.c (arm_default_arm_le_breakpoint)
2388 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2389 (arm_default_thumb_be_breakpoint): New. Initialize them from
2390 traditional breakpoint defines.
2391 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2392 (arm_gdbarch_init): Initialize new breakpoint variables.
2393 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2394 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2395 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2396 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2398 (arm_netbsd_init_abi_common): ... here; new function.
2399 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2400 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2401 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2402 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2404 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2406 * arm-tdep.h (enum arm_abi): New enum.
2407 (struct gdbarch_tdep): New structure.
2408 (LOWEST_PC): Provide a default.
2409 (arm_gdbarch_register_os_abi): Declare new function.
2410 * arm-tdep.c (arm_abi_names): New array.
2411 (process_note_abi_tag_sections): New function.
2412 (get_elfosabi): New function.
2413 (arm_gdbarch_register_os_abi): New function.
2414 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2415 support for that ABI has been built in, then call the appropriate
2416 configuration routine. Use gdbarch_num_regs() to get the number
2418 (arm_dump_tdep): New function.
2419 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2420 place-holder functions.
2421 (_initialize_arm_tdep): Register them.
2422 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2424 * armnbsd-tdep.c: New file.
2425 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2426 * config/arm/nbsd.mt (TDEPFILES): Add it.
2427 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2429 * armnbsd-nat.c: Include regcache.h.
2430 * Makefile.in (armnbsd-nat.o): Update dependency list.
2432 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2434 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2436 * gdbserver/Makefile.in: Fix typos in target rules.
2438 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2440 Fix part of PR gdb/267.
2441 * linespec.c (find_methods): Handle constructors specially for now.
2443 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2445 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2447 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2448 standard_coerce_float_to_double().
2450 2002-02-14 Christopher Faylor <cgf@redhat.com>
2452 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2455 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2457 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2458 find_variant_by_name, because it confuses the multiarch
2459 framework. Return NULL if there isn't an architecture with the
2460 user supplied name, instead of forcing a different one without
2461 recording the change with the multiarch machinery.
2462 (find_variant_by_name): Delete.
2464 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2466 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2467 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2469 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2471 * stack.c (print_frame_info_base): When calling
2472 print_frame_info_listing_hook, set current_source_symtab.
2474 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2476 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2477 and remove unused $(INCLUDE_DIR).
2478 Add regcache.c to OBS.
2479 Add generated register protocol files to clean target.
2480 Update dependencies for new objects, obsolete old target code.
2482 * gdbserver/linux-low.c: Remove all platform-specific code to
2483 new files. Remove various dead code. Update to use regcache
2485 * gdbserver/remote-utils.c (fromhex): Add return statement
2487 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2489 (input_interrupt): Add integer parameter to match prototype
2490 of a signal handler.
2491 (outreg): Use register_data ().
2492 (prepare_resume_reply): Use gdbserver_expedite_regs.
2493 * gdbserver/server.c (main): Dynamically allocate own_buf because
2494 PBUFSIZ is no longer constant. Use registers_to_string () and
2495 registers_from_string ().
2496 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2497 for error (), fatal (), and warning (). Update definition of
2498 PBUFSIZ to use regcache functionality. Add include guard.
2499 * gdbserver/utils.c (fatal): Add missing ``const''.
2500 (warning): New function.
2502 * regformats/regdat.sh: Include "regcache.h" in generated files.
2503 Provide init_registers () function.
2504 * regformats/regdef.h: Add prototype for set_register_cache ().
2507 * gdbserver/linux-arm-low.c: New file.
2508 * gdbserver/linux-i386-low.c: New file.
2509 * gdbserver/linux-ia64-low.c: New file.
2510 * gdbserver/linux-m68k-low.c: New file.
2511 * gdbserver/linux-mips-low.c: New file.
2512 * gdbserver/linux-ppc-low.c: New file.
2513 * gdbserver/linux-sh-low.c: New file.
2515 * gdbserver/regcache.c: New file.
2516 * gdbserver/regcache.h: New file.
2518 * gdbserver/low-linux.c: Removed obsolete file.
2520 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2522 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2523 * config/i386/linux.mt: Likewise.
2524 * config/ia64/linux.mt: Likewise.
2525 * config/m68k/linux.mh: Likewise.
2526 * config/powerpc/linux.mh: Likewise.
2527 * config/mips/linux.mt: Likewise.
2529 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2531 * config/i386/i386lynx.mh: Mark gdbserver variables
2532 as (currently) obsolete for this target.
2533 * config/i386/nbsd.mt: Likewise.
2534 * config/i386/nbsdelf.mt: Likewise.
2535 * config/m32r/m32r.mt: Likewise.
2536 * config/m68k/m68klynx.mh: Likewise.
2537 * config/m68k/nbsd.mt: Likewise.
2538 * config/m68k/sun3os4.mh: Likewise.
2539 * config/mips/vr5000.mt: Likewise.
2540 * config/ns32k/nbsd.mt: Likewise.
2541 * config/pa/hppabsd.mh: Likewise.
2542 * config/pa/hppaosf.mh: Likewise.
2543 * config/powerpc/nbsd.mt: Likewise.
2544 * config/rs6000/rs6000lynx.mh: Likewise.
2545 * config/s390/s390.mt: Likewise.
2546 * config/s390/s390x.mt: Likewise.
2547 * config/sparc/sparclynx.mh: Likewise.
2548 * config/sparc/sun4os4.mh: Likewise.
2549 * config/i386/x86-64linux.mt: Likewise.
2550 * config/sparc/linux.mh: Likewise.
2552 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2554 * configure.tgt: Configure gdbserver only for known working
2555 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2556 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2557 SUBDIRS if it is configured. Update comment for ${nativefile}.
2558 * configure: Regenerated.
2560 2002-02-13 Michael Snyder <msnyder@redhat.com>
2562 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2564 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2565 (default_gcore_mach): Just return 0, work around a problem in bfd.
2566 (default_gcore_target): OK to return NULL if exec_bfd is null.
2567 (make_mem_sec): Use a cast, avoid a warning.
2569 * procfs.c (find_memory_regions_callback): Use a cast instead of
2570 calling host_pointer_to_address (which complains if
2571 sizeof (host pointer) != sizeof (target pointer)).
2572 (procfs_make_note_section): Avoid overflow in psargs string.
2574 * procfs.c (procfs_make_note_section): Make the default
2575 implementation return an error.
2577 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
2579 * procfs.c (procfs_make_note_section): Provide a default definition
2580 (for alpha-dec-osf4.0f). Fix typos.
2582 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
2584 * linux-proc.c: Add include of regcache.h.
2585 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2587 2002-02-13 Andrew Cagney <ac131313@redhat.com>
2589 From 2002-01-18 Greg McGary <greg@mcgary.org>:
2590 * memattr.c (create_mem_region): Disallow useless empty region.
2591 Regions are half-open intervals, so allow [A..B) [B..C) as
2594 2002-02-13 Michael Chastain <mec@shout.net>
2596 * defs.h: Kill CONST_PTR.
2597 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2598 * c-lang.c (c_builtin_types): Likewise.
2599 * ch-lang.c (ch_builtin_types): Likewise.
2600 * f-lang.c (f_builtin_types): Likewise.
2601 * language.c (unknown_builtin_types): Likewise.
2602 * m2-lang.c (m2_builtin_types): Likewise.
2603 * p-lang.c (pascal_builtin_types): Likewise.
2604 * scm-lang.c (c_builtin_types): Likewise.
2606 2002-02-13 Keith Seitz <keiths@redhat.com>
2608 * arm-tdep.h (arm_get_next_pc): Add declaration.
2610 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
2612 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2613 with other related struct-returning functions.
2614 (arm_extract_struct_value_address): New function.
2615 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2616 initialize float_format, double_format and long_double_format as
2617 appropriate to the endianness of the target.
2618 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2619 (arm_use_struct_convention): Delete declaration.
2620 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2622 2002-02-13 Keith Seitz <keiths@redhat.com>
2624 * defs.h (core_addr_to_string_nz): New function.
2626 2002-02-13 Mark Kettenis <kettenis@gnu.org>
2628 Apply missing bits of 2002-01-15 patch.
2629 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2630 (fill_fpregset): Use i387_fill_fsave.
2632 2002-02-12 Keith Seitz <keiths@redhat.com>
2634 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2635 (core_addr_to_string_nz): New function.
2637 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2639 * arm-linux-nat.c: Really include arm-tdep.h.
2640 * config/arm/tm-linux.h (struct type, struct value): Declare.
2642 2002-02-11 Michael Snyder <msnyder@redhat.com>
2644 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2645 (gcore section): Ifdef for Solaris and Unixware only.
2646 (procfs_do_thread_registers): Unixware needs one lwpstatus
2647 per thread (not one prstatus or pstatus).
2648 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2649 not over all gdb threads. For unixware, call elfcore_write_pstatus
2650 once before iterating over threads.
2652 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2654 * arm-tdep.h: New file.
2655 * arm-tdep.c: Include arm-tdep.h.
2656 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2657 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2658 (arm_print_float_info, arm_register_type, convert_to_extended)
2659 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2660 (arm_extract_return_value, arm_register_name): Make static.
2661 (arm_software_single_step): Similarly. Fix types in declaration.
2662 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2663 (arm_store_return_value, arm_store_struct_return): New functions.
2664 (arm_gdbarch_init): Register the above functions. Also register
2665 call_dummy_start_offset, sizeof_call_dummy_words,
2666 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2667 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2668 max_register_virtual_size, register_size. Set up
2669 prologue_cache.saved_regs here, rather than ...
2670 (_initialize_arm_tdep): ... here.
2671 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2673 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2674 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2675 (arm_print_float_info, arm_register_type, convert_to_extended)
2676 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2677 (arm_extract_return_value, arm_register_name): Delete declarations.
2678 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2679 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2680 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2681 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2682 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2683 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2684 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2685 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2686 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2687 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2688 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2689 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2691 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2692 * remote-rdi.c remote-rdp.c: Likewise.
2693 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2694 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2695 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2698 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2699 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2700 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2701 from non-ARM_ prefixed definitions.
2702 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2704 * remote-rdi.c remote-rdp.c: Likewise.
2705 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2707 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2709 * arm-tdep.c (arm_frameless_function_invocation)
2710 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2711 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2712 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2713 (arm_pop_frame, arm_get_next_pc): Make static.
2714 (arm_gdbarch_init): Register above in gdbarch structure.
2715 (arm_read_fp): Renamed from arm_target_read_fp.
2716 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2717 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2718 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2719 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2720 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2721 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2722 (arm_pc_is_thumb_dummy): Delete declarations.
2723 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2724 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2725 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2726 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2728 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2730 * symtab.c (compare_search_syms): New function.
2731 (sort_search_symbols): New function.
2732 (search_symbols): Sort symbols after searching rather than
2735 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2737 * NEWS: Linux -> GNU/Linux.
2739 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2741 * gdbarch.sh: For for level one methods, disallow a definition
2742 when partially multi-arched. Add comments explaining rationale.
2743 * gdbarch.h: Re-generate.
2745 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2747 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2750 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2752 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2754 * gdbarch.c: Re-generate.
2756 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2758 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2759 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2762 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2764 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2766 (PUSH_ARGUMENTS): Switch to using predefault.
2767 * gdbarch.c: Regenerate.
2769 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2771 * valops.c (PUSH_ARGUMENTS): Delete definition.
2772 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2773 partial. Default to default_push_arguments.
2774 * gdbarch.h, gdbarch.c: Regenerate.
2776 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2778 * defs.h (throw_exception): Rename return_to_top_level. Update
2780 * utils.c (error_stream, internal_verror, quit): Ditto.
2781 * top.c (throw_exception, catcher): Ditto.
2782 * sparclet-rom.c (sparclet_load): Ditto.
2783 * remote.c (interrupt_query, minitelnet): Ditto.
2784 * remote-sds.c (interrupt_query): Ditto.
2785 * remote-mips.c (mips_error, mips_kill): Ditto.
2786 * ocd.c (interrupt_query): Ditto.
2787 * monitor.c (monitor_interrupt_query): Ditto.
2788 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2789 * target.h: Update comment.
2791 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2793 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2795 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2796 default_double_format.
2797 * gdbarch.h, gdbarch.c: Re-generate.
2798 * findvar.c (floatformat_unknown): Delete variable definition.
2799 * doublest.h (floatformat_unknown): Delete variable declaration.
2801 2002-02-09 Jim Blandy <jimb@redhat.com>
2803 * stabsread.c (read_type): Add code to parse Sun's syntax for
2804 prototyped function types.
2806 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2808 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2809 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2811 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2813 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2814 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2815 now _initialize_xcoffsolib gets called again and overrides the
2816 commands from solib.c in a native configuration.
2818 2002-02-09 Mark Kettenis <kettenis@gnu.org>
2820 * doublest.c (store_typed_floating): Don't try to return a value.
2823 2002-02-08 Jim Blandy <jimb@redhat.com>
2825 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2826 is prototyped and has no arguments, print its argument list as
2829 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2831 * MAINTAINERS (write-after-approval): Add myself.
2832 (paper-trail): I've escaped!
2834 2002-02-08 Christopher Faylor <cgf@redhat.com>
2836 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2838 (_initialize_check_for_gdb_ini): Ditto.
2840 2002-02-08 Martin M. Hunt <hunt@redhat.com>
2842 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2843 xaprintf -> xasprintf.
2845 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2847 * win32-nat.c: Remove use of printf and sprintf functions.
2849 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
2851 * arm-tdep.c (arm_frame_chain_valid): Make static.
2852 (arm_push_arguments): Likewise.
2853 (arm_gdbarch_init): New function.
2854 (_initialize_arm_tdep): Call it.
2855 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2856 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2857 (FRAME_CHAIN_VALID): Delete.
2858 (arm_frame_chain_valid): Delete declaration.
2859 (PUSH_ARGUMENTS): Delete.
2860 (arm_push_arguments): Delete declaration.
2861 (CALL_DUMMY_P): Delete.
2863 2002-02-08 Andrew Cagney <ac131313@redhat.com>
2864 Corinna Vinschen <vinschen@redhat.com>
2866 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2867 on builtin float types.
2869 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2871 * utils.c: Include <curses.h> before "bfd.h".
2872 * tui/tui-hooks.c: Likewise.
2873 * tui/tui.c: Likewise.
2874 * tui/tuiCommand.c: Likewise.
2875 * tui/tuiData.c: Likewise.
2876 * tui/tuiDataWin.c: Likewise.
2877 * tui/tuiDisassem.c: Likewise.
2878 * tui/tuiGeneralWin.c: Likewise.
2879 * tui/tuiIO.c: Likewise.
2880 * tui/tuiLayout.c: Likewise.
2881 * tui/tuiRegs.c: Likewise.
2882 * tui/tuiSource.c: Likewise.
2883 * tui/tuiSourceWin.c: Likewise.
2884 * tui/tuiStack.c: Likewise.
2885 * tui/tuiWin.c: Likewise.
2887 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
2889 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2890 to include space for pseudoregs as well. Update loops accordingly.
2891 (sh_fp_frame_init_saved_regs): Ditto.
2892 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2894 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2896 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2897 Add Richard Earnshaw to Arm maintainers.
2899 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2901 * defs.h (warning_begin): Delete declaration.
2903 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2906 2002-02-07 Michael Snyder <msnyder@redhat.com>
2908 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2909 Logic bug, remove misplaced else.
2911 2002-02-07 Klee Dienes <klee@apple.com>
2913 * fork-inferior.c (fork_inferior): Add '!' to the list of
2914 characters that need to be quoted when building a string for the
2915 shell. Quote '!' specifically with a backslash, since CSH chokes
2916 when trying to evaluate "str!str".
2918 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2920 * rdi-share/host.h: Only provide a typedef for bool if it is not
2923 2002-02-04 Michael Snyder <msnyder@redhat.com>
2925 * breakpoint.h (enum bptype): Add new overlay event bp type.
2926 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
2928 * breakpoint.c (create_internal_breakpoint): New function.
2929 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2930 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2931 (create_thread_event_breakpoint): Ditto.
2932 (create_solib_event_breakpoint): Ditto.
2933 (create_overlay_event_breakpoint): New function.
2934 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2935 (update_breakpoints_after_exec): Delete and re-initialize
2936 overlay event breakpoints after an exec. Add FIXME comment
2937 about longjmp breakpoint.
2938 (print_it_typical): Ignore overlay event breakpoints.
2939 (print_one_breakpoint): Ditto.
2941 (bpstat_what): Do not stop for overlay event breakpoints.
2942 (delete_breakpoint): Don't delete overlay event breakpoints.
2943 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2944 (breakpoint_re_set): Re-create overlay event breakpoint.
2946 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2947 (overlay_manual_command): Disable overlay breakpoints.
2948 (overlay_off_command): Disable overlay breakpoints.
2950 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2952 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2953 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2954 to here from config/tm-arm.h.
2955 (coff_sym_is_thumb): Make static.
2956 (arm_elf_make_msymbol_special): New function.
2957 (arm_coff_make_msymbol_special): New function.
2958 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2959 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2960 (coff_sym_is_thumb): Delete declaration.
2961 (arm_elf_make_msymbol_special): Declare.
2962 (arm_coff_make_msymbol_special): Declare.
2963 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2964 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2966 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2968 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2970 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2972 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2973 * gdbarch.c gdbarch.h: Regenerate.
2974 * arch-utils.c (default_print_float_info): New function.
2975 * arch-utils.h (default_print_float_info): Prototype it.
2976 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2977 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2978 (PRINT_FLOAT_INFO): Document it.
2980 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2981 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2982 (PRINT_FLOAT_INFO): Define.
2984 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2986 * win32-nat.c (_initialize_check_for_gdb_ini):
2987 Add typecast to sprintf argument to suppress a warning.
2989 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2991 * win32-nat.c (last_sig): Changed type of variable to target_signal,
2992 to allow easier handling of pass state.
2993 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2994 that gives exception name and address.
2995 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
2996 and set last_sig value to ourstatus->value.sig. Some missing
2998 (child_continue): Correctly report continue_status.
2999 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3000 TARGET_SIGNAL_0 (new default value).
3001 (child_resume): consider sig argument passed to decide if
3002 the exception should be passed to debuggee or not.
3004 2002-02-05 Michael Snyder <msnyder@redhat.com>
3006 * regcache.c (fetch_register): Call target_fetch_register
3007 only if we don't call FETCH_PSEUDO_REGISTER.
3008 (store_register): Call target_store_register only if we
3009 don't call STORE_PSEUDO_REGISTER.
3011 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3013 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3014 ELF_MAKE_MSYMBOL_SPECIAL.
3015 * gdbarch.c, gdbarch.h: Regenerate.
3016 * arch-utils.c (default_make_msymbol_special): New function.
3017 * arch-utils.h (default_make_msymbol_special): Export.
3018 * elfread.c (elf_symtab_read): Compile use of
3019 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3021 * coffread.c (coff_symtab_read): Ditto, for
3022 COFF_MAKE_MSYMBOL_SPECIAL.
3024 2002-02-05 Jim Blandy <jimb@redhat.com>
3026 * solib-svr4.c (svr4_truncate_ptr): New function.
3027 (svr4_relocate_section_addresses): Do the address arithmetic with
3028 the appropriate truncation for target addresses, even when
3029 CORE_ADDR is larger than a target address.
3031 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3033 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3036 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3038 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3041 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3043 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3045 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3047 * gdbserver/linux-low.c: Remove unused include files.
3049 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3051 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3052 (read_inferior_memory): Use it.
3053 (write_inferior_memory): Likewise.
3055 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3057 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3058 grubbing through sys_errlist.
3060 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3062 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3064 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3065 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3067 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3069 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3070 (do_sfunc, set_cmd_sfunc): New functions.
3072 * command.h (struct cmd_list_element): Add field func.
3073 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3074 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3075 * cli/cli-decode.h: Ditto.
3077 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3078 (help_all, help_cmd_list): Ditto.
3079 (find_cmd, complete_on_cmdlist): Ditto.
3080 * top.c (execute_command): Ditto.
3082 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3085 * infcmd.c (notice_args_read): Fix function signature.
3087 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3088 * cli/cli-decode.c (add_set_cmd): Ditto.
3089 * utils.c (initialize_utils): Ditto.
3090 * maint.c (_initialize_maint_cmds): Ditto.
3091 * infrun.c (_initialize_infrun): Ditto.
3092 * demangle.c (_initialize_demangler): Ditto.
3093 * remote.c (add_packet_config_cmd): Ditto.
3094 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3095 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3096 * proc-api.c (_initialize_proc_api): Ditto.
3097 * kod.c (_initialize_kod): Ditto.
3098 * valprint.c (_initialize_valprint): Ditto.
3099 * top.c (init_main): Ditto.
3100 * infcmd.c (_initialize_infcmd): Ditto.
3101 * corefile.c (_initialize_core): Ditto.
3102 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3103 * arch-utils.c (initialize_current_architecture): Ditto.
3104 (_initialize_gdbarch_utils): Ditto.
3105 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3107 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3108 * wince.c (_initialize_inftarg): Ditto.
3109 * symfile.c (_initialize_symfile): Ditto.
3110 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3111 * language.c (_initialize_language): Ditto.
3112 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3114 2002-02-04 Michael Snyder <msnyder@redhat.com>
3116 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3118 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3120 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3121 Add rules for building the register data files.
3123 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3125 * regformats/regdat.sh: Add braces to the definition of
3126 expedite_regs_${arch}.
3128 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3130 * regformats/regdef.h (struct reg): Add comment describing the
3131 requirements for offset and size fields.
3133 2002-02-04 Andreas Schwab <schwab@suse.de>
3135 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3136 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3138 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3140 * gdbarch.sh (copyright): Update years in generated header.
3141 (SMASH_TEXT_ADDRESS): Add rule.
3142 * gdbarch.h, gdbarch.c: Re-generate.
3143 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3144 * dbxread.c: Likewise.
3145 * dwarfread.c: Likewise.
3146 * elfread.c: Likewise.
3147 * somread.c: Likewise.
3149 * arm-tdep.c (arm_smash_text_address): New function.
3150 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3152 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3154 Add support for hardware watchpoints on win32 native.
3155 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3156 CONTEXT_DEBUG_REGISTERS.
3157 (dr variable): New variable. Static array containing a local copy
3159 (debug_registers_changed): New variable. Reflects when debug registers
3160 are changed and need to be written to inferior.
3161 (debug_registers_used): New variable. Reflects when any debug register
3162 was set, used when new threads are created.
3163 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3165 (thread_rec): Set dr array if id is the thread of current_event .
3166 (child_continue, child_resume): Change the debug registers for all
3167 threads if debug_registers_changed.
3168 (child_add_thread): Change the debug registers if debug_registers_used.
3169 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3170 Link nm.h to new nm-cygwin.h file.
3171 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3172 of hardware registers.
3174 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3176 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3177 Restore behavour broken by 2002-01-20 Andrew Cagney
3178 <ac131313@redhat.com> IEEE_FLOAT removal.
3180 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3182 * c-valprint.c (c_val_print): Pass a proper valaddr to
3183 cp_print_class_method.
3184 * valops.c (search_struct_method): If there is only one method
3185 and args is NULL, return that method.
3187 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3189 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3190 accessing tag_name directly.
3192 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3194 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3195 of accessing tag_name directly.
3197 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3200 * gdbtypes.c (replace_type): New function.
3201 * gdbtypes.h (replace_type): Add prototype.
3202 * stabsread.c (read_type): Use replace_type.
3204 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3206 * Makefile.in (memattr.o): Add missing dependencies rule.
3208 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3210 * breakpoint.c (break_at_finish_command): Really export.
3211 (break_at_finish_at_depth_command): Ditto.
3212 (tbreak_at_finish_command): Ditto.
3213 * hppa-tdep.c: Include completer.h.
3214 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3215 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3217 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3219 * utils.c (do_write): New function.
3220 (error_stream): Rewrite combining the code from error_begin and
3222 (verror): Rewrite using error_stream.
3223 (error_begin): Delete function.
3225 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3227 * utils.c (error_begin): Make static.
3228 * defs.h (error_begin): Delete declaration.
3230 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3231 (decode_line_1): Use cplusplus_error instead of error_begin,
3232 cplusplus_hint and return_to_top_level.
3233 * coffread.c (coff_symfile_read): Use error instead of error_begin
3234 and return_to_top_level.
3235 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3237 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3239 * language.h (type_error, range_error): Make string parameter
3241 * language.c (warning_pre_print): Delete extern declaration.
3242 * dwarfread.c (warning_pre_print): Ditto.
3243 * language.c (type_error, range_error): Rewrite to use verror and
3244 vwarning instead of warning_begin.
3246 2002-02-01 Michael Snyder <msnyder@redhat.com>
3248 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3249 (set_ignore_count): Move misplaced comment back where it belongs.
3251 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3253 * command.h (NO_FUNCTION): Delete macro.
3254 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3255 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3256 * tracepoint.c (_initialize_tracepoint): Ditto.
3257 * cli/cli-decode.c (add_set_cmd): Ditto.
3258 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3260 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3262 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3263 Update ``this'' pointer when calling virtual functions.
3265 2002-02-01 Michael Snyder <msnyder@redhat.com>
3267 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3268 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3270 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3272 * regformats/reg-arm.dat: New file.
3273 * regformats/reg-i386.dat: New file.
3274 * regformats/reg-ia64.dat: New file.
3275 * regformats/reg-m68k.dat: New file.
3276 * regformats/reg-mips.dat: New file.
3277 * regformats/reg-ppc.dat: New file.
3278 * regformats/reg-sh.dat: New file.
3279 * regformats/regdef.h: New file.
3280 * regformats/regdat.sh: New file.
3282 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3284 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3285 (arm_frame_args_address, arm_frame_locals_address): New functions.
3286 (arm_frame_num_args): New function.
3287 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3288 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3289 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3291 2002-01-31 Michael Snyder <msnyder@redhat.com>
3293 * breakpoint.c (break_at_finish_command): Export.
3294 (break_at_finish_at_depth_command): Export.
3295 (tbreak_at_finish_command): Export.
3296 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3297 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3298 "tbreak" commands, which are HPPA specific.
3300 * printcmd.c (disassemble_command): Remove an ancient
3301 artifact of an old merge.
3303 * symfile.h (enum overlay_debugging_state):
3304 Define enum constant values for overlay mode.
3305 * symfile.c (overlay_debugging): Use enums instead of literals.
3306 (overlay_is_mapped, overlay_auto_command,
3307 overlay_manual_command): Ditto.
3309 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3310 breakpoint_here_p, breakpoint_inserted_here_p,
3311 breakpoint_thread_match, bpstat_stop_status,
3312 describe_other_breakpoints, check_duplicates, clear_command):
3313 Coding standard fixes.
3315 * target.c (target_xfer_memory): Add spaces, coding standard.
3316 (do_xfer_memory): Add missing line to trust-readonly
3317 code: check bfd SEC_READONLY flag for section.
3319 2002-01-31 Andrew Cagney <ac131313@redhat.com>
3321 * PROBLEMS: Fix typo, 5.1->5.1.1.
3323 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3325 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3326 data symbols, since we search based on textlow and texthigh.
3327 (find_pc_sect_symtab): Likewise.
3329 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3331 * defs.h (vwarning): Declare.
3332 * utils.c (vwarning): New function.
3333 (warning): Call vwarning.
3334 (warning_begin): Delete function.
3336 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3337 the warning message.
3338 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3341 2002-01-30 Michael Snyder <msnyder@redhat.com>
3343 * NEWS: Mention "set trust-readonly-sections" command.
3344 Mention generate-core-file command.
3346 2002-01-15 Michael Snyder <msnyder@redhat.com>
3348 * target.c: New command, "set trust-readonly-sections on".
3349 (do_xfer_memory): Honor the suggestion to trust readonly sections
3350 by reading them from the object file instead of from the target.
3351 (initialize_targets): Register command "set trust-readonly-sections".
3353 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3355 * parse.c (target_map_name_to_register): Simplify, search regs and
3356 pseudo-regs using a single loop.
3358 2002-01-30 Andrew Cagney <ac131313@redhat.com>
3360 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3362 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
3364 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3365 * config/i386/i386v42mp.mh: Add i387-nat.o .
3366 * i386v4-nat.c: Include i387-nat.h.
3367 (supply_fpregset): Use i387_supply_fsave.
3368 (fill_fpregset): Use i387_fill_fsave.
3370 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
3372 * arm-tdep.c (arm_call_dummy_words): Define.
3373 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3374 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3375 (CALL_DUMMY_WORDS): Define.
3376 (arm_call_dummy_words): Declare.
3377 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3378 (arm_linux_call_dummy_words): Declare.
3380 2002-01-30 Andreas Schwab <schwab@suse.de>
3382 * m68klinux-nat.c: Fix last change to use regcache_collect
3383 instead of referencing registers[] directly.
3385 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3387 * parse.c (target_map_name_to_register): Delete code wrapped in
3388 #ifdef REGISTER_NAME_ALIAS_HOOK.
3390 2002-01-28 Michael Snyder <msnyder@redhat.com>
3392 * regcache.c (legacy_read_register_gen): Need to be able to
3393 read pseudo-register as well as real register.
3394 (legacy_write_register_gen): Ditto.
3396 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3398 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3399 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3400 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3401 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3402 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3403 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3404 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3405 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3406 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3407 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3408 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3409 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3410 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3411 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3412 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3413 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3414 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3415 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3416 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3417 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3419 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3421 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3422 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3423 (initialize_current_architecture): Update target_byte_order using
3424 information from BFD.
3425 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3426 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3428 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3430 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3431 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3433 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3434 #ifdef INVALID_FLOAT.
3435 * infcmd.c (do_registers_info): Ditto.
3436 * values.c (unpack_double): Ditto. Add comment.
3438 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3439 already commented out.
3441 2002-01-26 Andreas Schwab <schwab@suse.de>
3443 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3444 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3445 registers and add support for PTRACE_GETREGS.
3447 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3449 GDB 5.1.1 released from 5.1 branch.
3450 * NEWS: Add 5.1.1 news.
3451 * README: Sync with 5.1 branch.
3453 2002-01-23 Fred Fish <fnf@redhat.com>
3455 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3456 stabstring on initial malloc. Reallocing will copy it for us,
3459 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3461 * Makefile.in (hpread_h): Delete.
3462 (HFILES_NO_SRCDIR): Remove hpread.h.
3463 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3464 (hpread.o): Update dependencies.
3465 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3467 * hp-psymtab-read.c: Remove file.
3468 * hp-symtab-read.c: Remove file.
3469 * hpread.h: Remove file.
3471 * hpread.c: Merge all contents of hp-psymtab-read.c,
3472 hp-symtab-read.c and hpread.h into this file, as it was prior to
3475 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3476 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3477 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3478 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3480 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3482 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3483 fill_gregset): Call gdbarch_tdep() just once, assign result to
3484 variable and use that, instead of calling the function several
3487 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3489 * configure.host: Accept sparcv9 as alias for sparc64.
3490 * configure.tgt: Likewise.
3492 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3494 * solib-aix5.c (build_so_list_from_mapfile)
3495 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3496 arguments is not reversed.
3497 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3498 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3500 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
3502 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3503 modified version of obsolete sh_fetch_pseudo_register.
3504 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3505 (sh4_register_read): New function.
3506 (sh_pseudo_register_write): New function. Renamed and modified
3507 version of obsolete sh_store_pseudo_register.
3508 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3509 (sh4_register_write): New function.
3510 (sh_gdbarch_init): Remove setting of gdbarch function
3511 fetch_pseudo_register and store_pseudo_register. Remove setting of
3512 register_convert_to_raw, register_convert_to_virtual,
3513 register_convertible.
3514 (sh_sh4_register_convertible): Delete. No longer needed. All is
3515 taken care by architecture specific functions
3516 register_read/register_write.
3517 (sh_sh4_register_convert_to_virtual): Make static.
3518 (sh_sh4_register_convert_to_raw): Ditto.
3520 2002-01-22 Andrew Cagney <ac131313@redhat.com>
3522 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3523 (floatformat_is_nan, floatformat_mantissa): Ditto.
3525 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3526 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3527 builtin_type_ieee_double_little,
3528 builtin_type_ieee_double_littlebyte_bigword,
3529 builtin_type_m68881_ext, builtin_type_i960_ext,
3530 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3531 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3532 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3533 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3535 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
3537 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3538 parameter. Set frameless flag if it exists and depended of
3539 whether the scanned function is frameless or not.
3540 (xstormy16_skip_prologue): If function is frameless, return
3541 result of xstormy16_scan_prologue().
3542 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3545 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
3547 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3548 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3549 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3550 sh_sh4_register_byte, sh_sh4_register_raw_size,
3551 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3552 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3553 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3554 sh_store_pseudo_register, sh_do_pseudo_register): Call
3555 gdbarch_tdep() just once, assign result to variable and use that,
3556 instead of calling the function several times.
3558 2002-01-20 Mark Kettenis <kettenis@gnu.org>
3560 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3561 macros instead of LAST_FPU_CTRL_REGNUM.
3562 (store_register): Likewise.
3564 2002-01-21 Jim Blandy <jimb@redhat.com>
3566 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3567 is up-to-date before running the program, not just when a program
3570 2002-01-21 Fred Fish <fnf@redhat.com>
3572 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3573 when we have found all instructions we are looking for.
3575 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3577 * arm-tdep.c (arm_register_name): New function.
3578 (arm_registers_names): Make static.
3579 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3580 (arm_register_name): Declare.
3581 (REGISTER_NAME): Use it.
3583 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3584 Kevin Buettner <kevinb@redhat.com>
3586 Convert arm targets to new FRAME interface.
3587 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3588 (arm_frame_find_save_regs): Delete.
3589 (arm_frame_init_saved_regs): New.
3590 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3591 Allocate extra_info as required. Convert all uses of fsr.regs
3592 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3594 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3595 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3596 (check_prologue_cache, save_prologue_cache): Likewise.
3597 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3598 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3599 (FRAME_FIND_SAVED_REGS): Delete.
3600 (arm_frame_find_saved_regs): Delete prototype.
3601 (arm_frame_init_saved_regs): New prototype.
3602 (FRAME_INIT_SAVED_REGS): Define.
3604 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3606 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3608 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3610 From Jeff Law <law@redhat.com>:
3611 * infttrace.c: Include <sys/pstat.h>.
3612 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3613 exec file if the ttrace equivalent fails.
3615 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3617 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3618 (closeLogFile): Ditto.
3620 2002-01-20 Michael Chastain <mec@shout.net>
3622 * top.c (print_gdb_version): Bump copyright year to 2002.
3624 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3626 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3627 Zannoni and Eli Zaretskii.
3629 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3631 * buildsym.c: Update copyright years.
3632 * c-typeprint.c: Likewise.
3633 * dwarf2read.c: Likewise.
3634 * f-typeprint.c: Likewise.
3635 * gdbtypes.c: Likewise.
3636 * gdbtypes.h: Likewise.
3637 * hp-symtab-read.c: Likewise.
3638 * hpread.c: Likewise.
3639 * mdebugread.c: Likewise.
3640 * p-typeprint.c: Likewise.
3642 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3644 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3645 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3646 byte-order selectable.
3647 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3648 * arch-utils.c: Ditto.
3649 (set_endian): Ditto.
3650 (set_endian_from_file): Ditto.
3651 * gdbserver/low-sim.c (create_inferior): Ditto.
3652 * gdbarch.sh: Ditto.
3653 * gdbarch.h: Re-generate.
3654 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3655 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3656 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3657 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3658 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3659 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3660 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3661 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3663 * config/mips/tm-wince.h: Remove #undef of macro
3664 TARGET_BYTE_ORDER_SELECTABLE.
3665 * config/sh/tm-wince.h: Ditto.
3667 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3669 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3670 member function fields. Add accessor macro
3671 TYPE_FN_FIELD_ARTIFICIAL.
3672 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3673 * c-typeprint.c (c_type_print_base): Skip artificial member
3676 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3678 * f-typeprint.c: Delete unused function f_type_print_args.
3679 * p-typeprint.c: Delete unused function pascal_type_print_args.
3681 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3683 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3684 comment. Add ``artificial'' to ``union field_location''.
3686 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3688 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3689 * mdebugread.c (parse_symbol): Likewise.
3690 * stabsread.c (define_symbol): Likewise.
3691 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3692 initializing TYPE_FIELD_BITPOS to n (obsolete).
3693 (hpread_doc_function_type): Likewise.
3694 * hpread.c (hpread_function_type): Likewise.
3696 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3698 * configure.in (host_makefile_frag): Only require a host makefile
3699 fragment when a native build.
3700 * configure: Re-generate.
3702 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3704 * doublest.h (floatformat_from_type): Declare.
3705 * doublest.c (floatformat_from_type): New function.
3706 (convert_typed_floating): Use.
3708 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3709 call to function floatformat_from_type.
3711 * gdbarch.sh (IEEE_FLOAT): Delete.
3712 * gdbarch.h, gdbarch.c: Re-generate.
3713 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3714 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3715 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3716 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3717 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3718 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3719 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3720 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3721 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3722 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3723 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3724 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3726 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3727 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3728 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3729 * sh-tdep.c (sh_gdbarch_init): Ditto.
3730 * mips-tdep.c (mips_gdbarch_init): Ditto.
3731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3732 * cris-tdep.c (cris_gdbarch_init): Ditto.
3734 2002-01-20 Jiri Smid <smid@suse.cz>
3736 * configure.host, configure.tgt: Support x86-64.
3737 * NEWS: Note new target x86-64.
3739 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3740 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3741 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3742 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3743 x86-64-linux-nat.o): Fix dependencies.
3745 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3747 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3748 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3749 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3750 * config/sparc/xm-sun4os4.h: Delete file.
3751 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3753 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3755 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3756 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3757 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3758 * config/i386/i386lynx.mh (XM_FILE): Delete.
3759 * config/rs6000/xm-rs6000ly.h: Delete file.
3760 * config/sparc/xm-sparclynx.h: Delete file.
3761 * config/m68k/xm-m68klynx.h: Delete file.
3762 * config/i386/xm-i386lynx.h: Delete file.
3763 * config/xm-lynx.h: Delete file.
3764 * config/djgpp/fnchange.lst: Update.
3766 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3768 * alpha-tdep.c (alpha_register_byte): New function.
3769 (alpha_register_raw_size): Ditto.
3770 (alpha_register_virtual_size): Ditto.
3771 (alpha_skip_prologue_internal): Renamed from
3772 alpha_skip_prologue.
3773 (alpha_skip_prologue): New version that calls
3774 alpha_skip_prologue_internal.
3775 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3776 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3777 second argument from alpha_skip_prologue.
3778 (REGISTER_BYTE): Use alpha_register_byte.
3779 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3780 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3781 (FRAMELESS_FUNCTION_INVOCATION): Use
3782 generic_frameless_function_invocation_not.
3783 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3784 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3786 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3788 * config/mips/xm-news-mips.h: Delete file.
3789 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3791 * config/m88k/xm-m88k.h: Delete file.
3792 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3793 * config/m88k/xm-delta88v4.h: Ditto.
3794 * config/m88k/xm-delta88.h: Ditto.
3796 * config/alpha/xm-fbsd.h: Delete file.
3797 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3799 * config/sparc/xm-sparc.h: Delete file.
3800 * Makefile.in (xm-sun4os4.h): Delete dependency.
3801 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3802 * config/sparc/xm-sun4os4.h: Ditto.
3803 * config/sparc/xm-linux.h: Ditto.
3805 * config/i386/xm-windows.h: Delete file.
3807 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3809 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3810 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3812 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3814 * alpha-tdep.c (alpha_call_dummy_words): New.
3815 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3816 (CALL_DUMMY_P): Define.
3817 (CALL_DUMMY_WORDS): Define.
3818 (SIZEOF_CALL_DUMMY_WORDS): Define.
3820 2002-01-19 Per Bothner <per@bothner.com>
3822 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3823 isn't NULL, which can happen with some gcj-3.x-produced code.
3825 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3827 * alpha-tdep.c (alpha_register_virtual_type): New function.
3828 (alpha_init_frame_pc_first): Ditto.
3829 (alpha_fix_call_dummy): Ditto.
3830 (alpha_store_struct_return): Ditto.
3831 (alpha_extract_struct_value_address): Ditto.
3832 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3833 alpha_register_virtual_type.
3834 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3835 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3836 alpha_extract_struct_value_address.
3837 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3838 (INIT_FRAME_PC): Use init_frame_pc_noop.
3839 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3841 2002-01-19 Mark Kettenis <kettenis@gnu.org>
3843 * i386gnu-nat.c: Include "i386-tdep.h".
3844 (fetch_fpregs): Simplify code dealing with uninitialized floating
3845 point states such that it doesn't require FP7_REGNUM.
3847 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3849 * alpha-tdep.c (frame_extra_info): New.
3850 (alpha_find_saved_regs): Make static. Use
3852 (alpha_frame_init_saved_regs): New function.
3853 (alpha_frame_saved_pc): Use frame->extra_info.
3854 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3855 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
3856 (init_extra_frame_info): Rename to...
3857 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
3858 (alpha_print_extra_frame_info): New function.
3859 (alpha_frame_locals_address): Ditto.
3860 (alpha_frame_args_address): Ditto.
3861 (alpha_pop_frame): Use frame->extra_info.
3862 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3863 alpha_frame_args_address.
3864 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
3865 (alpha_find_saved_regs): Remove prototype.
3866 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3867 (EXTRA_FRAME_INFO): Remove.
3868 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3869 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3871 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3873 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3874 (alpha_cannot_fetch_register): Ditto.
3875 (alpha_cannot_store_register): Ditto.
3876 (alpha_register_convertible): Ditto.
3877 (alpha_use_struct_convention): Ditto.
3878 * config/alpha/tm-alpha.h: Update copyright years.
3879 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3880 (INNER_THAN): Use core_addr_lessthan.
3881 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3882 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3883 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3884 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3885 (FRAME_CHAIN): Remove unnecessary cast.
3887 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3889 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3892 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3894 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3895 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3896 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3897 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3898 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3899 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3900 * x86-64-linux-nat.c: Ditto.
3902 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3904 * alpha-tdep.c (alpha_register_name): New function.
3905 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3906 (REGISTER_NAME): Define.
3908 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3910 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3912 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3914 * alpha-tdep.c: Update copyright years.
3915 (alpha_next_pc): New function.
3916 (alpha_software_single_step): Ditto.
3917 * config/alpha/tm-alpha.h: Add prototype for
3918 alpha_software_single_step.
3920 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3922 * alphabsd-nat.c: Update copyright years.
3923 (fill_gregset): Use regcache_collect.
3924 (fill_fpregset): Likewise.
3925 (fetch_inferior_registers): Only fetch integer registers
3926 if requested to do so.
3927 (store_inferior_registers): Only store integer registers
3928 if requested to do so.
3930 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3932 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3933 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3934 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3935 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3936 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3937 * config/arm/linux.mh (XDEPFILES): Delete.
3938 * config/arm/nbsd.mh (XDEPFILES): Delete.
3939 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3940 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3941 * config/i386/i386m3.mh (XDEPFILES): Delete.
3942 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3943 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3944 * config/i386/fbsd.mh (XDEPFILES): Delete.
3945 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3946 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3947 * config/i386/i386v4.mh (XDEPFILES): Delete.
3948 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3949 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3950 * config/i386/i386aix.mh (XDEPFILES): Delete.
3951 * config/i386/go32.mh (XDEPFILES): Delete.
3952 * config/i386/cygwin.mh (XDEPFILES): Delete.
3953 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3954 * config/i386/i386mach.mh (XDEPFILES): Delete.
3955 * config/i386/i386v32.mh (XDEPFILES): Delete.
3956 * config/i386/linux.mh (XDEPFILES): Delete.
3957 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3958 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3959 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3960 * config/i386/i386sco.mh (XDEPFILES): Delete.
3961 * config/i386/i386v.mh (XDEPFILES): Delete.
3962 * config/i386/nbsd.mh (XDEPFILES): Delete.
3963 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3964 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3965 * config/i386/symmetry.mh (XDEPFILES): Delete.
3966 * config/i386/obsd.mh (XDEPFILES): Delete.
3967 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3968 * config/ia64/linux.mh (XDEPFILES): Delete.
3969 * config/ia64/aix.mh (XDEPFILES): Delete.
3970 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3971 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3972 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3973 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3974 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3975 * config/m68k/linux.mh (XDEPFILES): Delete.
3976 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3977 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3978 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3979 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3980 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3981 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3982 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3983 * config/m88k/delta88.mh (XDEPFILES): Delete.
3984 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3985 * config/m88k/m88k.mh (XDEPFILES): Delete.
3986 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3987 * config/mips/linux.mh (XDEPFILES): Delete.
3988 * config/mips/irix6.mh (XDEPFILES): Delete.
3989 * config/mips/irix5.mh (XDEPFILES): Delete.
3990 * config/mips/irix4.mh (XDEPFILES): Delete.
3991 * config/mips/irix3.mh (XDEPFILES): Delete.
3992 * config/mips/decstation.mh (XDEPFILES): Delete.
3993 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3994 (NATDEPFILES): Move core-aout.o to here.
3995 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3996 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3997 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3998 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3999 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4000 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4001 * config/pa/hpux11.mh (XDEPFILES): Delete.
4002 * config/powerpc/aix.mh (XDEPFILES): Delete.
4003 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4004 * config/powerpc/linux.mh (XDEPFILES): Delete.
4005 * config/romp/rtbsd.mh: Rename XDEPFILES.
4006 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4007 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4008 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4009 * config/s390/s390.mh (XDEPFILES): Delete.
4010 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4011 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4012 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4013 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4014 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4015 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4016 * config/sparc/linux.mh (XDEPFILES): Delete.
4017 * config/vax/vaxult.mh (XDEPFILES): Delete.
4018 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4019 * Makefile.in (DEPFILES): Remove XDEPFILES.
4021 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4023 * utils.c (internal_verror): Fix comments, default is yes not no.
4024 Update queries to match. Default to quit and dump core.
4026 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4028 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4030 * defs.h, event-top.c, gdbcmd.h: Ditto.
4031 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4032 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4033 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4034 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4035 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4036 * mi/mi-main.c:Ditto.
4038 * stack.c, symfile.c: Update copyright.
4040 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4042 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4043 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4044 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4045 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4047 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4049 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4050 * gdbserver/low-lynx.c (myattach): Likewise.
4051 * gdbserver/low-nbsd.c (myattach): Likewise.
4052 * gdbserver/low-sim.c (myattach): Likewise.
4053 * gdbserver/low-sparc.c (myattach): Likewise.
4054 * gdbserver/low-sun3.c (myattach): Likewise.
4056 * gdbserver/low-linux.c (myattach): New function.
4058 * gdbserver/server.c (attach_inferior): New function.
4059 (main): Handle "--attach".
4061 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4063 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4066 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4068 * c-typeprint.c (is_type_conversion_operator): Add additional
4069 check for non-conversion operators.
4071 2002-01-15 Michael Snyder <msnyder@redhat.com>
4073 * linux-proc.c: Add "info proc" command, a la procfs.c.
4074 (read_mapping): New function, abstract and re-use code.
4075 (linux_find_memory_regions): Use new func read_mapping.
4076 (linux_info_proc_cmd): New function, implement "info proc".
4077 (_initialize_linux_proc): Add new command "info proc".
4079 2002-01-15 Michael Snyder <msnyder@redhat.com>
4081 * symfile.c (generic_load): Use bfd_map_over_sections method
4082 instead of manipulating bfd structure members directly.
4083 (add_section_size_callback): New function, bfd sections callback
4084 used by generic_load.
4085 (load_sections_callback): New function, bfd sections callback
4086 used by generic_load.
4088 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4090 [Based on work by Jim Blandy]
4091 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4092 (builtin_type_vec128): Export.
4093 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4095 (builtin_type_vec128): New builtin type for 128 bit vector
4097 (build_gdbtypes): Initialize builtin_type_v16qi and
4098 builtin_type_v8hi. Create the vec128 register builtin type
4100 (build_builtin_type_vec128): New function.
4101 (_initialize_gdbtypes): Register builtin_type_v16qi and
4102 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4103 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4104 AltiVec register to new builtin type.
4106 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4108 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4111 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4113 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4114 CLEAN_UP_REGISTER_VALUE.
4115 * regcache.c (supply_register): Update only call.
4117 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4119 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4120 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4121 a29k-*-vxworks* targets as obsolete.
4123 2002-01-14 Michael Snyder <msnyder@redhat.com>
4125 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4126 until we can resolve portability issues.
4127 * gregset.h: Remove references to fpxregs.
4128 * gcore.c (gcore_command): Initialize note_sec to NULL.
4130 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4132 * signals.c (target_signal_to_name): Rewrite. Only use
4133 signals[].name when in bounds and non-NULL.
4135 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4137 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4138 * signals.c (target_signal_to_name): Verify that SIG is within the
4139 bounds of the signals array.
4141 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4143 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4145 2002-01-13 Keith Seitz <keiths@redhat.com>
4147 * stack.c (print_frame_info_base): Print the frame's pc
4148 only if when print_frame_info_listing_hook is not defined.
4150 2002-01-13 Keith Seitz <keiths@redhat.com>
4152 * varobj.c (varobj_set_value): Make sure that there were no
4153 errors evaluating the object before attempting to set its
4155 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4156 so this offset adjustment is no longer necessary.
4157 (create_child): Don't set the error flag if the child is
4159 (value_of_child): If value_fetch_lazy fails, return NULL
4160 so that callers will be notified that an error occurred.
4161 (c_value_of_variable): Delay check of variable's validity
4162 until later. We actually want all structs and unions to have
4164 Do not return "???" for variables which could not be evaluated.
4165 This error condition must be returned to the caller so that it
4166 can get the error condition from gdb.
4167 (cplus_name_of_child): Adjust index for vptr before figuring
4168 out the name of the child.
4169 (cplus_value_of_child): If a child's (real) parent is not valid,
4170 don't even bother trying to give a value for it. Just return
4171 an error. Change all instances in this function.
4172 (cplus_type_of_child): If our parent is one of the "fake"
4173 parents, we need to get at the type of the real parent, and
4174 derive the child's true type using this information.
4176 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4178 From 2002-01-09 John Marshall <johnm@falch.net>:
4179 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4180 sources.redhat.com, and tweak some related URLs which had
4181 suffered from linkrot.
4183 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4186 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4187 structures passed in registers.
4189 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4191 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4192 white space which prevented compilation. Reported by DSK
4193 <dsk@student.unsw.edu.au>.
4195 2002-01-11 Michael Snyder <msnyder@redhat.com>
4197 * symfile.c (build_section_addr_info_from_section_tab):
4198 Use bfd access method instead of manipulating bfd directly.
4199 (syms_from_objfile): Ditto.
4200 (simple_overlay_update_1): Ditto.
4201 (simple_overlay_update): Ditto.
4202 (generic_load): Ditto.
4203 (overlay_unmapped_address): FIXME comment, bfd access methods.
4204 (sections_overlap): FIXME comment, bfd access methods.
4205 (pc_in_mapped_range): FIXME comment, bfd access methods.
4206 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4207 (section_is_mapped): FIXME comment, bfd access methods.
4208 (section_is_overlay): FIXME comment, bfd access methods.
4210 * symfile.c (generic_load): Whitespace and long line cleanups.
4211 Remove duplicate variable, change several local variables to
4212 more appropriate data types.
4213 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4215 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4218 * language.c (longest_local_hex_string_custom): Use phex_nz to
4219 convert NUM to a hex string.
4221 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4223 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4225 Update Copyright year.
4227 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4229 * language.c (longest_raw_hex_string): Delete unused function.
4231 2002-01-11 Petr Sorfa <petrs@caldera.com>
4233 * MAINTAINERS (write-after-approval): Add myself.
4234 * dwarf2read.c (read_tag_string_type): Handling of
4236 (read_tag_string_type): FORTRAN fix to prevent propagation of
4238 (set_cu_language): Handling of DW_LANG_Fortran95
4240 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4242 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4243 GETPID(inferior_ptid).
4244 (store_inferior_registers): Likewise.
4246 2002-01-10 Jason Merrill <jason@redhat.com>
4248 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4251 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4253 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4254 and bfd/elf32-sh-nbsd.c.
4256 2002-01-10 Michael Snyder <msnyder@redhat.com>
4258 * NEWS: Mention --pid and corefile/proc-id behavior change.
4260 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4261 * gcore.c: Include cli/cli-decode.h instead of command.h.
4263 * main.c (captured_main): Add new command line option "--pid".
4264 If the second command line argument (following the symbol-file)
4265 begins with a digit, try to attach to it before trying to open
4267 (print_gdb_help): Document the "--pid" argument.
4269 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4271 * completer.c (command_completer): New function.
4273 * completer.h <command_completer>: Add prototype.
4275 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4276 completer for the "help" command.
4278 2002-01-09 Jason Merrill <jason@redhat.com>
4280 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4282 2002-01-09 Michael Snyder <msnyder@redhat.com>
4284 * i386-linux-nat.c (fill_fpxregset): Make global.
4285 (store_fpxregset): Ditto.
4287 * gregset.h (gdb_fpxregset_t): Define.
4288 (supply_fpxregset): Prototype.
4289 (fill_fpxregset): Prototype.
4291 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4293 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4295 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4296 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4297 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4299 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4301 * MAINTAINERS: Update target maintainer rules so that any
4302 Maintainer can approve a tested patch for a maintenance-only
4305 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4307 * MAINTAINERS (write-after-approval): Add myself.
4309 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4312 2002-01-08 Michael Snyder <msnyder@redhat.com>
4314 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4315 real name of the executable, rather than the /proc name.
4317 2002-01-03 Michael Snyder <msnyder@redhat.com>
4319 Implement a "generate-core-file" command in gdb, save target state.
4320 * gcore.c: New file. Implement new command 'generate-core-file'.
4321 Save a corefile image of the current state of the inferior.
4322 * linux-proc.c: Add linux-specific code for saving corefiles.
4323 * target.h (struct target_ops): Add new target vectors for saving
4324 corefiles; to_find_memory_regions and to_make_corefile_notes.
4325 (target_find_memory_regions): New macro.
4326 (target_make_corefile_notes): New macro.
4327 * target.c (update_current_target): Inherit new target methods.
4328 (dummy_find_memory_regions): New place-holder method.
4329 (dummy_make_corefile_notes): New place-holder method.
4330 (init_dummy_target): Initialize new dummy target vectors.
4331 * exec.c (exec_set_find_memory_regions): New function.
4332 Allow the exec_ops vector for memory regions to be taken over.
4333 (exec_make_note_section): New function, target vector method.
4334 * defs.h (exec_set_find_memory_regions): Export prototype.
4335 * procfs.c (proc_find_memory_regions): New function, corefile method.
4336 (procfs_make_note_section): New function, corefile method.
4337 (init_procfs_ops): Set new target vector pointers.
4338 (find_memory_regions_callback): New function.
4339 (procfs_do_thread_registers): New function.
4340 (procfs_corefile_thread_callback): New function.
4341 * sol-thread.c (sol_find_memory_regions): New function.
4342 (sol_make_note_section): New function.
4343 (init_sol_thread_ops): Initialize new target vectors.
4344 * inftarg.c (inftarg_set_find_memory_regions): New function.
4345 Allow to_find_memory_regions vector to be taken over.
4346 (inftarg_set_make_corefile_notes): New function.
4347 Allow to_make_corefile_notes vector to be taken over.
4348 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4349 interface layer if not target_has_execution (may be a corefile).
4350 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4351 * config/sparc/sun4sol2.mh: Ditto.
4352 * config/alpha/alpha-linux.mh: Ditto.
4353 * config/arm/linux.mh: Ditto.
4354 * config/i386/x86-64linux.mh: Ditto.
4355 * config/ia64/linux.mh: Ditto.
4356 * config/m68k/linux.mh: Ditto.
4357 * config/mips/linux.mh: Ditto.
4358 * config/powerpc/linux.mh: Ditto.
4359 * config/sparc/linux.mh: Ditto.
4361 2002-01-07 Michael Snyder <msnyder@redhat.com>
4363 * arm-linux-nat.c: Remove references to regcache.c internal data
4364 (registers[] and register_valid[]).
4366 2002-01-07 Michael Snyder <msnyder@redhat.com>
4368 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4369 so that attaching to a pid will automatically read the process's
4370 symbol file and shlibs.
4371 * Makefile.in: Add rule for linux-proc.o.
4372 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4373 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4374 * config/arm/linux.mh: Ditto.
4375 * config/i386/linux.mh: Ditto.
4376 * config/i386/x86-64linux.mh: Ditto.
4377 * config/ia64/linux.mh: Ditto.
4378 * config/m68k/linux.mh: Ditto.
4379 * config/mips/linux.mh: Ditto.
4380 * config/powerpc/linux.mh: Ditto.
4381 * config/sparc/linux.mh: Ditto.
4383 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4385 * win32-nat.c: Add i386-tdep.h dependency.
4387 2002-01-07 Michael Snyder <msnyder@redhat.com>
4389 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4390 instead of bfd_get_arch_size. Don't bail out just because
4391 there's no exec_bfd.
4393 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4394 * p-valprint.c (pascal_object_print_value): Ditto.
4395 * somread.c (som_symtab_read): Ditto.
4396 * symfile.c (simple_free_overlay_region_table): Ditto.
4397 * valops.c (value_assign): Ditto.
4399 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4400 use tilde_expand and strerror for opening save-tracepoints file.
4402 * thread-db.c (thread_db_new_objfile): Indendation fix.
4404 * infptrace.c (GDB_MAX_ALLOCA): New define.
4405 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4406 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4407 can be overridden with whatever value is appropriate to the host).
4408 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4409 alloca to allocate potentially large buffer.
4410 * rs6000-nat.c (child_xfer_memory): Ditto.
4411 * symm-nat.c (child_xfer_memory): Ditto.
4412 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4414 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4416 From Nick Clifton <nickc@redhat.com>
4417 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4419 2002-01-07 Michael Snyder <msnyder@redhat.com>
4421 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4422 Don't use exec_bfd if it's NULL.
4424 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4426 * valops.c (value_arg_coerce): Fix formatting.
4428 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4430 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4433 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4435 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4436 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4437 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4438 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4439 z8k-coff have not been multi-arched. Update z8k-coff build
4442 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4444 * MAINTAINERS: Mark a29k target as obsolete.
4445 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4446 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4448 * NEWS: Note that a29k targets are obsolete.
4449 * a29k-tdep.c: Mark as obsolete.
4450 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4451 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4452 a29k-*-vxworks* targets as obsolete.
4453 * remote-adapt.c: Obsolete.
4454 * remote-eb.c: Obsolete.
4455 * remote-mm.c: Obsolete.
4456 * remote-udi.c: Obsolete.
4457 * config/a29k/a29k-udi.mt: Obsolete.
4458 * config/a29k/a29k.mt: Obsolete.
4459 * config/a29k/tm-a29k.h: Obsolete.
4460 * config/a29k/tm-vx29k.h: Obsolete.
4461 * config/a29k/vx29k.mt: Obsolete.
4463 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4465 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4466 with BFD_ENDIAN_BIG.
4468 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4470 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4471 * configure, config.in: Re-generate.
4472 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4473 * defs.h: Do not include <endian.h>.
4475 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4477 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4478 * config.in: Regenerate.
4479 * configure.in: Update copyright years.
4480 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4481 * configure: Regenerate.
4482 * i386bsd-nat.c: Update copyright years.
4483 (fill_gregset): Use regcache_collect.
4484 (fetch_inferior_registers): Only fetch integer registers
4485 if requested to do so. Add support for XMM registers
4486 using PT_GETXMMREGS.
4487 (store_inferior_registers): Only store integer registers
4488 if requested to do so. Add support for XMM registers
4489 using PT_SETXMMREGS.
4490 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4491 (store_inferior_registers): Remove.
4492 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4493 (fetch_elfcore_registers): New function.
4494 (i386nbsd_elfcore_fns): New.
4495 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4496 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4498 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4499 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4500 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4501 * config/i386/tm-nbsd.h: Update copyright years.
4502 (HAVE_SSE_REGS): Define.
4503 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4504 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4505 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4506 (SIGCONTEXT_PC_OFFSET): Remove.
4507 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4509 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4511 * configure.tgt: Remove powerpc-*-macos* target.
4512 * config/m68k/xm-mpw.h: Delete file.
4513 * config/xm-mpw.h: Delete file.
4514 * ser-mac.c: Delete file.
4515 * mpw-make.sed: Delete file.
4516 * mpw-config.in: Delete file.
4517 * mac-xdep.c: Delete file.
4518 * mac-gdb.r: Delete file.
4519 * mac-defs.h: Delete file.
4520 * mac-nat.c: Delete file.
4521 * config/powerpc/macos.mh: Delete file.
4522 * config/powerpc/macos.mt: Delete file.
4523 * config/powerpc/nm-macos.h: Delete file.
4524 * config/powerpc/tm-macos.h: Delete file.
4525 * source.c (openp, open_source_file): Remove obsolete code.
4526 * top.c (gdb_readline): Ditto.
4527 * utils.c (query): Ditto.
4528 * event-top.c (display_gdb_prompt): Ditto.
4529 * Makefile.in (ser-mac.o): Delete obsolete target.
4532 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4534 * defs.h (BIG_ENDIAN): Delete macro definition.
4535 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4536 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4537 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4538 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4539 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4540 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4541 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4542 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4543 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4544 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4545 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4546 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4547 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4548 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4549 * gdbarch.c: Re-generate.
4551 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4553 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4556 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4558 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4560 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4562 * value.h (value_ptr): Delete typedef.
4564 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4566 * i386nbsd-nat.c: Update copyright years.
4567 Include i386-tdep.h.
4569 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
4571 * stabsread.c: Update copyright years.
4573 From Debashis Mahata <debashis.mahata@wipro.com>:
4574 (read_struct_fields): Deal with Sun C compiler erroneous stab
4575 output for structs and unions.
4578 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4580 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4583 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4585 * cp-abi.c: Fix whitespace.
4586 (baseclass_offset): New wrapper function.
4587 * cp-abi.h (baseclass_offset): Add prototype.
4588 (struct cp_abi_ops): Add baseclass_offset pointer.
4590 * valops.c (vb_match): Move to...
4591 * gnu-v2-abi.c (vb_match): here.
4592 * valops.c (baseclass_offset): Move to...
4593 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4595 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4597 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4598 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4599 * hpacc-abi.c (init_hpacc_ops): Likewise.
4601 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4603 * valops.c (find_overload_match): Accept obj as a
4604 reference parameter. Update it before returning.
4605 * value.h (find_overload_match): Update prototype.
4606 * eval.c (evaluate_subexp_standard): Pass object to
4607 find_overload_match by reference.
4609 2002-01-03 Andrew Cagney <ac131313@redhat.com>
4611 * valarith.c: Replace value_ptr with struct value pointer. Remove
4612 register attribute from value declarations.
4615 * scm-lang.c (scm_lookup_name): Ditto.
4617 2002-01-03 Michael Snyder <msnyder@redhat.com>
4619 Abstract the functionality of iterating over mapped memory
4620 regions into a general purpose iterator function.
4621 * procfs.c (iterate_over_mappings): New function, general purpose
4622 iterator for memory sections.
4623 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4624 (solib_mappings_callback): New function, callback for above.
4625 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4626 (info_mappings_callback): New function, callback for above.
4628 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4630 2002-01-01 Mark Kettenis <kettenis@gnu.org>
4632 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4633 * i386-tdep.c: Include "elf-bfd.h".
4634 (process_note_abi_tag_sections): New function.
4635 (i386_gdbarch_init): Add code to recognize various OS/ABI
4638 * maint.c (_initialize_maint_cmds): Add missing \ in
4641 For older changes see ChangeLog-2001
4647 version-control: never