1 2002-12-10 Andrew Cagney <cagney@redhat.com>
3 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
4 Change to a function with predicate.
5 * gdbarch.h, gdbarch.c: Re-generate.
6 * frame.c (get_prev_frame): Update. Test
7 DEPRECATED_INIT_FRAME_PC_P.
8 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
9 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
10 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
11 * alpha-tdep.c (alpha_gdbarch_init): Update.
12 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
13 * mips-tdep.c (mips_gdbarch_init): Update.
14 * i386-interix-tdep.c (i386_interix_init_abi): Update.
15 * arm-tdep.c: Update comments.
16 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
17 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
18 * frv-tdep.c (frv_gdbarch_init): Ditto.
19 * x86-64-tdep.c (x86_64_init_abi): Ditto.
20 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
21 * s390-tdep.c (s390_gdbarch_init): Ditto.
22 * v850-tdep.c (v850_gdbarch_init): Ditto.
23 * vax-tdep.c (vax_gdbarch_init): Ditto.
24 * sh-tdep.c (sh_gdbarch_init): Ditto.
25 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
26 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
27 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
28 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
29 * i386-tdep.c (i386_gdbarch_init): Ditto.
30 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
31 * cris-tdep.c (cris_gdbarch_init): Ditto.
32 * avr-tdep.c (avr_gdbarch_init): Ditto.
33 * arm-tdep.c (arm_gdbarch_init): Ditto.
34 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
35 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
37 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
39 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
41 * hppah-nat.c (saved_vfork_pid): Add.
42 (child_post_follow_vfork): Remove.
43 (child_follow_fork): New function.
44 (child_wait): Call detach_breakpoints after receiving the child vfork.
45 Call child_resume directly instead of going through resume ().
46 Make sure we have the exec before reporting the vfork.
47 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
48 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
49 (follow_fork): New function. Call target_follow_fork.
50 (follow_inferior_reset_breakpoints): New function broken out from
51 old follow_inferior_fork.
52 (resume): Remove hack to follow exec after vfork.
53 * inftarg.c (child_post_follow_vfork): Remove.
54 (child_follow_fork): New function.
55 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
56 * target.c (cleanup_target): Replace to_post_follow_vfork with
58 (update_current_target): Likewise.
59 (setup_target_debug): Likewise.
60 (debug_to_post_follow_vfork): Remove.
61 (debug_to_follow_fork): New function.
62 * target.h (struct target_ops): Replace to_post_folow_vfork with
64 (child_post_follow_vfork): Remove prototype.
65 (child_follow_fork): Add prototype.
66 (target_post_follow_vfork): Remove macro.
67 (target_follow_fork): Add macro.
69 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
71 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
72 (child_post_follow_vfork): Cancel pending exec event if we follow
74 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
75 events have been processed. Return a fake TARGET_WAITKIND_EXECD
76 event at the following wait call if necessary.
77 * infrun.c (follow_vfork): Don't follow_exec here.
78 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
79 case about HP/UX 10.20. Remove code pushed down to
80 hppah-nat.c:child_wait.
81 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
82 vfork_in_flight is set.
84 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
86 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
87 for the parent's fork event.
88 * infrun.c (handle_inferior_event): Only expect one fork event.
89 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
90 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
92 2002-12-10 Andrew Cagney <ac131313@redhat.com>
94 * PROBLEMS: Delete reference to PR gdb/725.
96 * MAINTAINERS (gdb.c++): Add David Carlton.
98 2002-12-09 David Carlton <carlton@math.stanford.edu>
100 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
101 * cli/cli-cmds.c: Ditto.
103 2002-12-09 Andrew Cagney <cagney@redhat.com>
105 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
106 function address in <>.
107 * gdbarch.c: Re-generate.
109 2002-12-09 David Carlton <carlton@math.stanford.edu>
111 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
113 2002-12-09 David Carlton <carlton@math.stanford.edu>
115 * linespec.c (symtab_from_filename): New function.
116 (decode_line_1): Move code into symtab_from_filename.
118 2002-12-09 Kevin Buettner <kevinb@redhat.com>
120 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
122 2002-12-07 Andrew Cagney <ac131313@redhat.com>
124 * f-valprint.c (info_common_command): Use get_frame_pc.
125 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
126 * ax-gdb.c (agent_command): Ditto.
127 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
128 (rs6000_pop_frame): Ditto.
129 (rs6000_frameless_function_invocation): Ditto.
130 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
131 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
132 * macroscope.c (default_macro_scope): Ditto.
133 * stack.c (print_frame_info_base): Ditto.
134 (print_frame, frame_info, print_frame_label_vars): Ditto.
135 (return_command, func_command, get_frame_language): Ditto.
136 * infcmd.c (finish_command): Ditto.
137 * dummy-frame.c (cached_find_dummy_frame): Ditto.
138 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
139 (break_at_finish_at_depth_command_1): Ditto.
140 (break_at_finish_command_1): Ditto.
141 (until_break_command, get_catch_sals): Ditto.
142 * blockframe.c (func_frame_chain_valid): Ditto.
143 (frameless_look_for_prologue): Ditto.
144 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
146 2002-12-08 Andrew Cagney <ac131313@redhat.com>
148 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
149 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
151 2002-12-08 Andrew Cagney <ac131313@redhat.com>
153 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
155 * gdbarch.h, gdbarch.c: Re-generate.
156 * frame.c (get_prev_frame): Explictly assign prev's pc with value
157 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
159 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
160 declaration to a function returning a CORE_ADDR.
161 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
162 * arch-utils.c (init_frame_pc_noop): Return the PC value.
163 (init_frame_pc_default): Ditto.
164 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
165 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
166 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
167 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
168 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
169 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
171 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
172 to init_frame_pc_noop.
173 (i386_interix_init_frame_pc): Delete function.
174 * z8k-tdep.c (init_frame_pc): Delete function.
175 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
176 (INIT_FRAME_PC_FIRST): Ditto.
177 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
178 (INIT_FRAME_PC_FIRST): Ditto.
179 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
180 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
182 (INIT_FRAME_PC_FIRST): Convert to an expression.
183 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
185 2002-12-08 Andrew Cagney <ac131313@redhat.com>
187 * blockframe.c: Use get_frame_base instead of directly accessing
188 the `struct frame_info' member frame.
189 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
190 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
192 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
194 * Makefile.in (readline_h): Define.
195 (completer.o): Depend on readline_h.
197 (event-top.o): Ditto.
204 (tracepoint.o): Ditto.
207 (tui-hooks.o): Ditto.
210 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
212 More cleanup from import of readline 4.3.
213 * completer.h (complete_line, readline_line_completion_function):
215 (line_completion_function): Removed, not used outside of completer.c.
216 * completer.c (readline_line_completion_function,
217 complete_function, line_completion_function): Use const for first
219 (line_completion_function): Make static.
220 (filename_completer): filename_completion_function is now called
221 rl_filename_completion_function
222 * corelow.c: Include <readline/readline.h>.
228 * top.c (init_main): No need to coerce
229 readline_line_completion_function anymore.
230 * cli/cli-dump.c: Include <readline/readline.h>.
232 2002-12-08 Andrew Cagney <ac131313@redhat.com>
234 * stack.c (frame_info): Use get_prev_frame.
235 * blockframe.c (frame_address_in_block): Ditto.
236 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
237 (rs6000_frameless_function_invocation): Ditto.
238 (rs6000_frame_saved_pc): Ditto.
239 (rs6000_frame_chain): Ditto.
240 * arch-utils.c (init_frame_pc_default): Ditto.
242 2002-12-08 Andrew Cagney <ac131313@redhat.com>
244 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
245 Delete redundant definition.
247 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
249 Import of readline 4.3:
250 * cli/cli-cmds.c: Include readline/tilde.h.
251 * cli/cli-setshow.c: Ditto.
252 * defs.h: Don't declare tilde_expand anymore, since readline
255 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
257 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
258 -Werror on this file.
260 2002-12-07 Andrew Cagney <ac131313@redhat.com>
262 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
264 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
265 * gdbarch.c: Regenerate.
267 2002-12-06 Andrew Cagney <ac131313@redhat.com>
269 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
270 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
271 provide a default value.
272 * gdbarch.h, gdbarch.c: Regenerate.
273 * frame.c (get_prev_frame): Update. Check
274 DEPRECATED_INIT_FRAME_PC_FIRST_P.
275 * s390-tdep.c (s390_gdbarch_init): Update.
276 * mips-tdep.c (mips_gdbarch_init): Update.
277 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
278 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
279 * alpha-tdep.c (alpha_gdbarch_init): Update.
281 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
283 * ia64-linux-nat.c: Include gdb_string.h.
284 * alpha-nat.c: Ditto.
285 * ppc-linux-nat.c: Ditto.
286 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
289 2002-12-05 Andrew Cagney <ac131313@redhat.com>
291 * gdbthread.h: Include "frame.h".
292 (struct thread_info): Replace step_frame_address with
294 * inferior.h: Include "frame.h".
295 (step_frame_id): Replace external variable step_frame_address.
296 * gdbthread.h (save_infrun_state): Replace step_frame_address
297 parameter with step_frame_id parameter.
298 (load_infrun_state): Ditto.
299 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
300 * infcmd.c (step_frame_id, step_1, step_once): Update.
301 * thread.c (load_infrun_state, save_infrun_state): Update.
302 * infrun.c (clear_proceed_status, save_inferior_status): Update.
303 (handle_inferior_event, step_over_function): Update.
304 (normal_stop, context_switch, restore_inferior_status): Update.
305 (struct inferior_status): Replace step_frame_address with
308 2002-12-05 David Carlton <carlton@math.stanford.edu>
310 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
311 DW_TAG_member as well as a declaration as being a C++ static data
313 (read_structure_scope): Combine tests for DW_TAG_member and
316 2002-12-05 David Carlton <carlton@math.stanford.edu>
318 * linespec.c (decode_compound): New function.
319 (decode_line_1): Move code into decode_compound.
321 2002-12-05 David Carlton <carlton@math.stanford.edu>
323 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
325 (lookup_symbol_aux): Do the 'field_of_this' check before checking
326 the static block. See PR gdb/804.
328 2002-12-05 David Carlton <carlton@math.stanford.edu>
330 * symtab.c (lookup_symbol_aux_block): New function.
331 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
333 2002-12-05 Andrew Cagney <ac131313@redhat.com>
335 * gdbarch.sh: Dump the predicate function and macro values.
336 (read): Print error on standard error.
337 * gdbarch.c: Regenerate.
339 2002-12-04 Kevin Buettner <kevinb@redhat.com>
341 * Makefile.in (mips_tdep_h): Define.
342 (mips-tdep.o): Add mips_tdep_h to dependency list.
343 * mips-tdep.h: New file.
344 * mips-tdep.c (mips-tdep.h): Include.
345 (enum mips_abi): Move to mips-tdep.h.
346 (mips_abi): New function.
348 2002-12-04 David Carlton <carlton@math.stanford.edu>
350 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
352 2002-12-04 David Carlton <carlton@math.stanford.edu>
354 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
356 (lookup_symbol_aux_minsyms): New function.
358 2002-12-04 J. Brobecker <brobecker@gnat.com>
360 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
362 2002-12-04 J. Brobecker <brobecker@gnat.com>
364 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
365 which is an obsolete macro name.
367 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
369 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
370 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
372 2002-12-03 H.J. Lu (hjl@gnu.org)
374 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
375 (create_breakpoints): Make sure the addr_string field is not
378 2002-12-03 Andrew Cagney <ac131313@redhat.com>
380 * sparc-nat.c (fetch_inferior_registers)
381 (store_inferior_registers): Add comment on problem of LWP vs
384 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
385 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
386 (lin_lwp_store_registers): Remove.
387 (init_lin_lwp_ops): Use fetch_inferior_registers
388 and store_inferior_registers directly.
389 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
390 (store_inferior_registers): Likewise.
393 2002-12-03 Andrew Cagney <ac131313@redhat.com>
395 * frame.h (get_frame_id): Convert to a function.
396 (null_frame_id, frame_id_p): Declare.
397 (frame_id_eq, frame_id_inner): Declare.
398 (frame_id_build): New function.
399 * frame.c (get_frame_id): Update. Use null_frame_id.
400 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
402 (null_frame_id, frame_id_p): Define.
403 (frame_id_eq, frame_id_inner): Define.
404 (frame_id_build): New function.
405 * varobj.c (varobj_create): Update.
406 (varobj_update): Update.
407 * valops.c (value_assign): Update.
408 (new_root_variable): Update.
409 * infrun.c (save_inferior_status): Update.
410 * breakpoint.c (watch_command_1): Update.
412 2002-12-03 J. Brobecker <brobecker@gnat.com>
414 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
417 2002-12-03 Andrew Cagney <cagney@redhat.com>
419 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
422 * PROBLEMS: Mention PR gdb/725.
424 2002-12-03 Andreas Schwab <schwab@suse.de>
426 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
428 2002-12-02 Adam Fedor <fedor@gnu.org>
429 Klee Dienes <kdienes@apple.com>
431 * objc-lang.c (objc_printstr): Add width arg to match
433 (compare_selectors): Add 'const' to arg types.
434 (compare_classes): Likewise.
435 (find_imps): Cast msym pointer to avoid compiler warning.
436 (print_object_command): Validate the address before
437 passing it to the print routine.
438 (find_objc_msgcall_submethod): Change function argument to
440 * objc-lang.h: Add 'extern' to all function declarations.
441 (value_nsstring): Add declaration.
443 2002-12-02 J. Brobecker <brobecker@gnat.com>
445 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
446 Fixes a build failure on HP/UX.
448 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
450 (hpread_has_name): Advance declaration to avoid a compilation warning.
451 (pst_syms_count): Add missing variable type. By change, the compiler
452 was defaulting to int, which seems a good choice. Fixes a compilation
454 (pst_syms_size): Likewise.
456 2002-12-02 J. Brobecker <brobecker@gnat.com>
458 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
459 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
460 later to set the proper gdbarch methods depending on the osabi.
461 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
463 2002-12-02 J. Brobecker <brobecker@gnat.com>
465 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
466 * osabi.c (gdb_osabi_name): Add strings images for the two new
468 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
470 2002-12-02 Andrew Cagney <ac131313@redhat.com>
472 * MAINTAINERS (Java): Global maintainers are responible for Java.
473 (Past Maintainers): Mention both Anthony Green and Per Bothner as
474 part Java maintainers.
476 2002-12-02 J. Brobecker <brobecker@gnat.com>
478 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
479 Fixes a compilation failure on AiX.
481 2002-12-02 J. Brobecker <brobecker@gnat.com>
483 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
484 why aix-thread.o is not listed.
486 2002-12-01 Andrew Cagney <ac131313@redhat.com>
488 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
489 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
490 * gdbarch.h, gdbarch.c: Re-generate.
491 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
492 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
493 * config/pa/tm-hppa.h, frame.h: Update.
494 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
495 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
496 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
497 * cris-tdep.c, alpha-tdep.c: Update.
498 * frame.c (set_unwind_by_pc, create_new_frame): Use either
499 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
500 (get_prev_frame): Ditto.
502 2002-11-30 Andrew Cagney <cagney@redhat.com>
504 * exec.c (xfer_memory): Replace boolean with int.
505 * p-exp.y: Use 0 instead of false.
506 * corelow.c (gdb_check_format): Change return type to int from
508 * utils.c: Don't include <curses.h> or <term.h> first.
510 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
512 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
513 (m68hc11_register_byte): Remove.
514 (m68hc11_gdbarch_init): Don't set the above.
516 2002-11-29 Andrew Cagney <cagney@redhat.com>
518 * remote-mips.c (mips_initialize): Force a selected frame rebuild
519 by calling get_selected_frame.
520 * ocd.c (ocd_start_remote): Use get_selected frame instead of
521 set_current_frame, create_new_frame, select_frame and
523 * remote-e7000.c (e7000_start_remote): Ditto.
524 * remote-mips.c (common_open): Ditto
525 * remote-rdp.c (remote_rdp_open): Ditto.
527 2002-11-29 Andreas Schwab <schwab@suse.de>
529 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
530 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
531 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
532 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
533 read_memory_unsigned_integer instead of read_memory_integer when
534 dealing with addresses and instruction opcodes.
535 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
536 (m68k_linux_frame_saved_pc): Likewise.
538 2002-11-29 Andrew Cagney <ac131313@redhat.com>
540 * stack.c (selected_frame, select_frame): Move from here ...
541 * frame.c (selected_frame, select_frame): ... to here. Include
543 * Makefile.in (frame.o): Update dependencies.
544 * frame.c (get_selected_frame): New function.
545 * frame.h (get_selected_frame): Declare.
546 (deprecated_selected_frame): Rename selected_frame.
547 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
548 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
549 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
550 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
551 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
552 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
553 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
554 * z8k-tdep.c, cli/cli-cmds.c: Update.
556 2002-11-29 Andrew Cagney <ac131313@redhat.com>
558 * frame.h (get_selected_block): Add comments.
560 2002-11-28 Andrew Cagney <ac131313@redhat.com>
562 * frame.c (pc_notcurrent): New function.
563 (find_frame_sal): New function.
564 * frame.h (find_frame_sal): Declare.
565 (struct symtab_and_line): Add opaque declaration.
566 * stack.c (print_frame_info_base): Use find_frame_sal instead of
569 * ada-lang.c (find_printable_frame): Ditto.
571 2002-11-28 J. Brobecker <brobecker@gnat.com>
573 * configure.in: Check that the pthdebug library is recent enough
574 before enabling thread support on native AiX.
575 * configure: Regenerate.
577 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
578 from the list of object files as it is now appended by configure
579 if thread support is enabled.
580 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
581 if thread support is enabled.
583 2002-11-28 Andrew Cagney <cagney@redhat.com>
585 * stack.c (get_selected_block): In-line get_current_block.
586 * frame.h (get_current_block): Delete declaration.
587 * blockframe.c (get_current_block): Delete function.
589 2002-11-28 Andrew Cagney <ac131313@redhat.com>
591 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
592 USE_GENERIC_DUMMY_FRAMES.
593 * gdbarch.h, gdbarch.c: Regenerate.
594 * valops.c, frame.c: Update.
595 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
596 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
597 * config/pa/tm-hppa.h, blockframe.c: Update.
598 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
599 * m68k-tdep.c, alpha-tdep.c: Ditto.
601 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
602 * mips-tdep.c: Ditto.
604 2002-11-27 Andrew Cagney <ac131313@redhat.com>
606 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
607 (USE_GENERIC_DUMMY_FRAMES): Default to true.
608 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
609 * gdbarch.c, gdbarch.h: Re-generate.
610 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
611 (CALL_DUMMY_LOCATION): Delete macro definition.
612 (PC_IN_CALL_DUMMY): Delete macro definitions.
614 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
615 default is already generic_pc_in_call_dummy.
616 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
617 * v850-tdep.c (v850_gdbarch_init): Ditto.
618 * sh-tdep.c (sh_gdbarch_init): Ditto.
619 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
620 * mips-tdep.c (mips_gdbarch_init): Ditto.
621 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
622 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
623 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
624 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
625 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
626 * avr-tdep.c (avr_gdbarch_init): Ditto.
628 * arm-tdep.c (arm_gdbarch_init): Do not set
629 use_generic_dummy_frames, default is already 1.
630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
631 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
632 * v850-tdep.c (v850_gdbarch_init): Ditto.
633 * sh-tdep.c (sh_gdbarch_init): Ditto.
634 * s390-tdep.c (s390_gdbarch_init): Ditto.
635 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
636 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
637 * mips-tdep.c (mips_gdbarch_init): Ditto.
638 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
639 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
640 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
641 * i386-tdep.c (i386_gdbarch_init): Ditto.
642 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
643 * frv-tdep.c (frv_gdbarch_init): Ditto.
644 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
645 * cris-tdep.c (cris_gdbarch_init): Ditto.
646 * avr-tdep.c (avr_gdbarch_init): Ditto.
648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
649 call_dummy_location, default is already AT_ENTRY_POINT.
650 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
651 * v850-tdep.c (v850_gdbarch_init): Ditto.
652 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
653 * sh-tdep.c (sh_gdbarch_init): Ditto.
654 * s390-tdep.c (s390_gdbarch_init): Ditto.
655 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
656 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
657 * mips-tdep.c (mips_gdbarch_init): Ditto.
658 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
660 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
661 * i386-tdep.c (i386_gdbarch_init): Ditto.
662 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
663 * frv-tdep.c (frv_gdbarch_init): Ditto.
664 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
665 * cris-tdep.c (cris_gdbarch_init): Ditto.
666 * avr-tdep.c (avr_gdbarch_init): Ditto.
667 * arm-tdep.c (arm_gdbarch_init): Ditto.
668 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
670 2002-11-28 Andrew Cagney <cagney@redhat.com>
672 * frame.h: Update comments on set_current_frame, create_new_frame,
673 flush_cached_frames, reinit_frame_cache, select_frame and
676 2002-11-27 Andrew Cagney <cagney@redhat.com>
678 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
679 deprecated pc_in_call_dummy function.
680 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
681 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
682 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
683 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
684 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
686 2002-11-26 Martin M. Hunt <hunt@redhat.com>
688 * Makefile.in: Remove Tix dependencies.
689 * acinclude.m4: Ditto.
691 * configure.in: Ditto.
692 * configure: Regenerated.
694 2002-11-26 Andrew Cagney <ac131313@redhat.com>
696 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
697 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
698 * gdbarch.c: Re-generate.
700 2002-11-26 Andrew Cagney <ac131313@redhat.com>
702 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
703 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
704 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
705 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
706 pc_in_call_dummy_at_entry_point.
707 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
708 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
709 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
710 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
711 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
712 pc_in_call_dummy_on_stack.
713 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
714 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
715 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
716 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
717 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
719 2002-11-26 Andrew Cagney <ac131313@redhat.com>
721 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
722 pc_in_call_dummy_before_text_end
723 (deprecated_pc_in_call_dummy_after_text_end): Rename
724 pc_in_call_dummy_after_text_end.
725 (deprecated_pc_in_call_dummy_on_stack): Rename
726 pc_in_call_dummy_on_stack.
727 (deprecated_pc_in_call_dummy_at_entry_point): Rename
728 pc_in_call_dummy_at_entry_point.
729 * m68k-tdep.c (m68k_gdbarch_init): Update.
730 * s390-tdep.c (s390_gdbarch_init): Update.
731 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
732 * vax-tdep.c (vax_gdbarch_init): Update.
733 * sparc-tdep.c (sparc_gdbarch_init): Update.
734 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
735 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
736 * i386-tdep.c (i386_gdbarch_init): Update.
737 * frv-tdep.c (frv_gdbarch_init): Update.
738 * cris-tdep.c (cris_gdbarch_init): Update.
739 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
740 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
741 (deprecated_pc_in_call_dummy_after_text_end)
742 (deprecated_pc_in_call_dummy_on_stack)
743 (deprecated_pc_in_call_dummy_at_entry_point): Update.
744 * alpha-tdep.c (alpha_gdbarch_init): Update.
746 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
748 * acconfig.h (HAVE_PREAD64): Add.
749 * configure.in: Check for pread64.
750 * config.in: Regenerated.
751 * configure: Regenerated.
752 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
753 * linux-proc.c (linux_proc_xfer_memory): New function.
754 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
756 2002-11-25 David Carlton <carlton@math.stanford.edu>
758 * dwarf2read.c (scan_partial_symbols): Descend into namespace
761 2002-11-25 Andrew Cagney <ac131313@redhat.com>
763 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
764 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
766 2002-11-25 Jim Blandy <jimb@redhat.com>
768 * symfile.c (init_objfile_sect_indices): New function.
769 (default_symfile_offsets): Move the section-index-initializing
770 stuff into init_objfile_sect_indices, and call that.
772 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
773 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
775 * symfile.c (syms_from_objfile): Adjust indentation.
777 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
778 || info_verbose isn't true.
780 2002-11-24 Andrew Cagney <ac131313@redhat.com>
782 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
783 default to get_frame_base.
784 * gdbarch.h, gdbarch.c: Regenerate.
785 * arch-utils.c (default_frame_address): Delete function.
786 * arch-utils.h (default_frame_address): Delete declaration
788 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
790 * varobj.c (find_frame_addr_in_frame_chain):
791 Use get_frame_base instead of FRAME_FP,
794 2002-11-19 Andrew Cagney <ac131313@redhat.com>
796 * frame.h (FRAME_FP): Delete macro.
797 (get_frame_base): New function declaration.
798 * frame.c (get_frame_base): New function.
799 (get_frame_id): Use ->frame.
800 (frame_find_by_id): Rewrite to use get_frame_id.
801 * blockframe.c: Use get_frame_base instead of FRAME_FP.
802 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
803 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
804 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
805 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
806 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
807 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
809 2002-11-24 Andrew Cagney <ac131313@redhat.com>
811 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
813 2002-11-24 Andrew Cagney <ac131313@redhat.com>
815 * frame.c (set_unwind_by_pc): Revert change below, use
817 (get_prev_frame): Ditto.
819 2002-11-24 Andrew Cagney <ac131313@redhat.com>
821 * dummy-frame.c (pc_in_dummy_frame): New function.
822 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
823 (find_dummy_frame): Update comment.
824 (generic_pop_current_frame): Use get_frame_type.
825 * dummy-frame.h (pc_in_dummy_frame): Declare.
826 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
827 (create_new_frame): Use pc_in_dummy_frame.
828 (get_prev_frame): Use pc_in_dummy_frame.
829 (frame_saved_regs_register_unwind): Use get_prev_frame.
830 (deprecated_generic_get_saved_register): Use get_prev_frame.
832 2002-11-23 Andrew Cagney <ac131313@redhat.com>
834 * blockframe.c (find_frame_addr_in_frame_chain): Move function
836 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
837 (varobj_create): Note that frame ID should be used.
838 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
840 2002-11-23 Andrew Cagney <ac131313@redhat.com>
842 * breakpoint.c: Include "gdb_assert.h".
843 (deprecated_frame_in_dummy): Assert that generic dummy frames are
845 * Makefile.in (breakpoint.o): Update dependencies.
846 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
847 deprecated_frame_in_dummy.
848 * stack.c (print_frame_info_base): Ditto.
850 (print_frame_info_base): Ditto. Delete dead code.
852 2002-11-23 Andreas Schwab <schwab@suse.de>
854 * Makefile.in (m68k_tdep_h): Define.
855 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
856 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
857 * m68k-tdep.c: Move register number enum ...
858 * m68k-tdep.h: ... to this new file and rename the constants from
859 E_* to M68K_*. All uses changed.
860 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
861 * abug-rom.c: Include "m68k-tdep.h". Use
862 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
863 * cpu32bug-rom.c: Likewise.
864 * dbug-rom.c: Likewise.
865 * m68k-tdep.c: Likewise.
866 * m68klinux-nat.c: Likewise.
867 * remote-est.c: Likewise.
868 * rom68k-rom.c: Likewise.
869 * config/m68k/tm-linux.h: Likewise.
871 2002-11-23 Andrew Cagney <ac131313@redhat.com>
873 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
874 dummy frame initialization code.
875 * mips-tdep.c (mips_gdbarch_init): Ditto.
877 2002-11-22 Christopher Faylor <cgf@redhat.com>
879 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
882 2002-11-22 Andrew Cagney <ac131313@redhat.com>
884 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
885 to default_frame_address.
886 * gdbarch.h, gdbarch.c: Re-generate.
888 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
889 or frame_locals_address to default_frame_address.
890 * m68k-tdep.c (m68k_gdbarch_init): Update.
891 * i386-tdep.c (i386_gdbarch_init): Update.
892 * frv-tdep.c (frv_gdbarch_init): Update.
893 * sh-tdep.c (sh_gdbarch_init): Update.
894 * v850-tdep.c (v850_gdbarch_init): Update.
895 * sparc-tdep.c (sparc_gdbarch_init): Update.
896 * mips-tdep.c (mips_gdbarch_init): Update.
897 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
898 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
901 * cris-tdep.c (cris_frame_args_address): Delete function.
902 (cris_frame_locals_address): Delete function.
903 (cris_gdbarch_init): Do not set frame_args_address or
904 frame_locals_address.
906 2002-11-22 Michael Snyder <msnyder@redhat.com>
908 * thread-db.c (thread_db_load): Tell the user what's going on
909 if dlopen fails on libthread_db.
911 2002-11-23 Andreas Schwab <schwab@suse.de>
913 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
914 invariant return values.
916 2002-11-22 Andreas Schwab <schwab@suse.de>
918 * valops.c (value_slice): Move declaration of `offset' to avoid
921 2002-11-22 Christopher Faylor <cgf@redhat.com>
923 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
924 (struct so_stuff): Add end_addr field.
925 (register_loaded_dll): Calculate and store end address of loaded dll.
926 (solib_address): New function.
927 (child_solib_loaded_library_pathname): Pass carefully constructed
928 section info to safe_symbol_file_add rather than ignoring it.
929 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
931 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
932 (child_create_inferior): Fix a compiler warning.
933 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
934 (solib_address): Declare new function.
936 2002-11-22 Andreas Schwab <schwab@suse.de>
938 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
941 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
943 * maint.c (_initialize_maint_cmds): Fix typo. From
944 Francesco Potorti` <pot@gnu.org>.
946 2002-11-21 Andrew Cagney <cagney@redhat.com>
948 * mips-tdep.c (mips_dump_tdep): Delete references to
949 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
950 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
951 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
952 * printcmd.c (build_address_symbolic): Delete calls to
953 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
954 (address_info): Ditto.
957 2002-11-19 Klee Dienes <kdienes@apple.com>
958 Adam Fedor <fedor@gnu.org>
960 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
961 the ability to explicitly specify the quote characters and word
962 break characters; if NULL is specified for either, use the old
963 behavior of using the characters used by the completer.
964 (skip_chars): New function. Convenience wrapper around
965 skip_quoted_chars to provide the original skip_chars behavior.
966 * completer.h (skip_quoted_chars): Add prototype.
968 2002-11-19 Andrew Cagney <ac131313@redhat.com>
970 Problems reported by Paul Eggert.
971 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
973 2002-11-19 Andreas Schwab <schwab@suse.de>
975 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
976 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
977 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
978 (m68k_linux_frame_saved_pc): Move to ...
979 * m68klinux-tdep.c: ... here. New file.
980 * Makefile.in (m68klinux-tdep.o): Add dependencies.
981 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
983 2002-11-19 Adam Fedor <fedor@gnu.org>
985 * objc-exp.y: Revert to old skip_quoted usage.
987 2002-11-19 Adam Fedor <fedor@gnu.org>
989 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
990 (objc_lang_h): Define.
991 (YYFILES): Add objc-exp.tab.c.
992 (local-maintainer-clean): Remove objc-exp.tab.c.
993 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
995 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
997 * p-exp.y (typecast rule): Add automatic dereference of
998 pascal classes if needed.
999 (THIS): Set current_type.
1000 Automatically dereference pascal classes.
1001 (typebase rule): Add ^typebase recognition.
1003 2002-11-18 Adam Fedor <fedor@gnu.org>
1005 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1006 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1007 (op_name): Handle OP_OBJC_SELF.
1008 * Makefile.in (expprint.o): Add additional depends.
1010 2002-11-18 Adam Fedor <fedor@gnu.org>
1012 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1013 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1014 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1015 * objc-exp.y: Likewise.
1017 2002-11-18 Adam Fedor <fedor@gnu.org>
1019 * gdb/parser-defs.h: (struct objc_class_str): New structure
1020 for parsing ObjC classes.
1022 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1024 * stack.c (frame_relative_level): Copy function from here ...
1025 * frame.c (frame_relative_level): ...to here.
1027 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1029 * frame.h (enum frame_type): Define.
1030 (get_frame_type): Declare.
1031 (struct frame_info): Add field `type'. Delete field
1032 signal_handler_caller.
1033 (deprecated_set_frame_signal_handler_caller): Declare.
1034 * frame.c (get_frame_type): New function.
1035 (deprecated_set_frame_type): New function.
1036 (create_new_frame): Set the frame's type.
1037 (get_prev_frame): Similar.
1038 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1039 * s390-tdep.c: Ditto.
1040 * m68klinux-nat.c: Ditto.
1041 * ns32k-tdep.c: Ditto.
1042 * x86-64-linux-tdep.c: Ditto.
1043 * vax-tdep.c: Ditto.
1044 * rs6000-tdep.c: Ditto.
1045 * ppc-linux-tdep.c: Ditto.
1046 * i386-interix-tdep.c: Ditto.
1047 * mips-tdep.c: Ditto.
1048 * m68k-tdep.c: Ditto.
1049 * hppa-tdep.c: Ditto.
1050 * ia64-tdep.c: Ditto.
1051 * cris-tdep.c: Ditto.
1052 * arm-tdep.c: Ditto.
1053 * alpha-tdep.c: Ditto.
1054 * i386-tdep.c: Ditto.
1056 * ada-lang.c: Ditto.
1057 * blockframe.c: Update.
1058 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1059 deprecated_set_frame_type instead of signal_handler_caller.
1060 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1061 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1062 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1064 2002-11-18 Klee Dienes <kdienes@apple.com>
1066 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1068 2002-11-18 Klee Dienes <kdienes@apple.com>
1070 * buildsym.c (pop_context): Add comment.
1072 2002-11-18 Klee Dienes <kdienes@apple.com>
1074 * buildsym.h (pop_context): Convert to function, defined in
1076 * buildsym.c: Include gdb_assert.h.
1077 (pop_context): Implement as C function. Add check for stack
1079 * dbxread.c (process_one_symbol): Complain and stop processing
1080 that symbol if we are already at the top of the context stack for
1081 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1082 when processing N_RBRAC.
1084 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1086 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1088 (struct target_waitstatus): Add opaque definition.
1089 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1090 * exec.c (init_exec_ops): Likewise.
1091 * fork-child.c (clone_and_follow_inferior): Remove.
1092 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1093 * inferior.h (clone_and_follow_inferior): Remove prototype.
1094 * infrun.c (follow_fork_mode_both): Remove.
1095 (follow_fork_mode_kind_names): Remove commented out "both".
1096 (follow_inferior_fork): Remove follow_fork_mode_both support.
1097 * inftarg.c (child_clone_and_follow_inferior): Remove.
1098 (child_post_follow_inferior_by_clone): Remove.
1099 (init_child_ops): Don't set to_clone_and_follow_inferior
1100 or to_post_follow_inferior_by_clone.
1101 * target.c (default_clone_and_follow_inferior): Remove.
1102 (cleanup_target): Don't set to_clone_and_follow_inferior
1103 or to_post_follow_inferior_by_clone.
1104 (find_default_clone_and_follow_inferior): Remove.
1105 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1106 (debug_to_clone_and_follow_inferior): Remove.
1107 (debug_to_post_follow_inferior_by_clone): Remove.
1108 (setup_target_debug): Don't set to_clone_and_follow_inferior
1109 or to_post_follow_inferior_by_clone.
1110 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1111 and to_post_follow_inferior_by_clone.
1112 (child_clone_and_follow_inferior): Remove prototype.
1113 (child_post_follow_inferior_by_clone): Remove prototype.
1114 (target_clone_and_follow_inferior): Remove macro.
1115 (target_post_follow_inferior_by_clone): Remove macro.
1116 (find_default_clone_and_follow_inferior): Remove prototype.
1118 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1120 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1121 inferior_has_vforked, and inferior_has_execd instead of
1122 target_has_forked, target_has_vforked, and target_has_execd.
1123 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1124 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1125 (CHILD_WAIT): Define.
1126 (child_wait): Add prototype.
1127 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1129 (hpux_has_vforked): Likewise, from child_has_vforked.
1130 (hpux_has_execd): Likewise, from child_has_execd.
1131 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1132 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1133 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1134 and hpux_has_syscall_event instead of the target hooks.
1135 * infrun.c (inferior_has_forked, inferior_has_vforked)
1136 (inferior_has_execd): New functions.
1137 * inftarg.c (not_same_real_pid): Remove.
1138 (child_wait): Remove references to not_same_real_pid,
1139 target_has_forked, target_has_vforked, target_has_execd,
1140 and target_has_syscall_event.
1141 (child_has_forked, child_has_vforked, child_has_execd)
1142 (child_has_syscall_event): Remove.
1143 (init_child_ops): Remove references to child_has_forked,
1144 child_has_vforked, child_has_execd, and child_has_syscall_event.
1145 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1146 (hpux_has_vforked): Likewise, from child_has_vforked.
1147 (hpux_has_execd): Likewise, from child_has_execd.
1148 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1149 * target.c (cleanup_target): Remove references to
1150 to_has_forked, to_has_vforked, to_has_execd, and
1151 to_has_syscall_event.
1152 (update_current_target): Likewise.
1153 (setup_target_debug): Likewise.
1154 (debug_to_has_forked): Remove.
1155 (debug_to_has_vforked): Remove.
1156 (debug_to_has_execd): Remove.
1157 (debug_to_has_syscall_event): Remove.
1158 * target.h (struct target_ops): Remove to_has_forked.
1159 to_has_vforked, to_has_execd, and to_has_syscall_event.
1160 (child_has_forked, child_has_vforked, child_has_execd)
1161 (child_has_syscall_event): Remove prototypes.
1162 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1164 (target_has_forked, target_has_vforked, target_has_execd)
1165 (target_has_syscall_event): Remove macros.
1167 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1169 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1170 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1171 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1172 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1173 * target.c (cleanup_target): Remove reference to
1174 to_can_follow_vfork_prior_to_exec.
1175 (update_current_target): Likewise.
1176 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1177 (setup_target_debug): Remove reference to
1178 to_can_follow_vfork_prior_to_exec.
1179 * target.h (struct target_ops): Remove
1180 to_can_follow_vfork_prior_to_exec.
1181 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1182 (target_can_follow_vfork_prior_to_exec): Remove definition.
1183 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1185 * infrun.c (follow_vfork_when_exec): Remove.
1186 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1187 (follow_exec): Likewise.
1188 (handle_inferior_event): Likewise.
1189 (keep_going): Likewise.
1191 2002-11-15 Andrew Cagney <cagney@redhat.com>
1193 * frame.c (generic_unwind_get_saved_register): Make static.
1194 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1195 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1196 defaults to generic_unwind_get_saved_register.
1197 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1198 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1199 * frv-tdep.c (frv_gdbarch_init): Ditto.
1200 * i386-tdep.c (i386_gdbarch_init): Ditto.
1201 * s390-tdep.c (s390_gdbarch_init): Ditto.
1202 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1203 * v850-tdep.c (v850_gdbarch_init): Ditto.
1204 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1205 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1206 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1208 2002-11-15 Andrew Cagney <cagney@redhat.com>
1210 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1213 2002-11-15 Andrew Cagney <cagney@redhat.com>
1215 * frame.h (sigtramp_saved_pc): Delete declaration.
1216 * blockframe.c (sigtramp_saved_pc): Delete function.
1217 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1218 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1219 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1220 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1222 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1224 * frame.c (frame_pc_unwind): New function.
1225 (frame_saved_regs_pc_unwind): New function.
1226 (frame_register_unwind): Pass unwind_cache instead of
1227 register_unwind_cache.
1228 (set_unwind_by_pc): Add unwind_pc parameter, set.
1229 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1230 (get_prev_frame): Ditto.
1231 * frame.h (frame_pc_unwind_ftype): Declare.
1232 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1233 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1234 (frame_pc_unwind): Declare.
1235 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1236 (struct dummy_frame): Add comment mentioning that values are for
1238 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1239 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1240 (generic_file_frame_chain_valid): Ditto.
1241 * stack.c (frame_info): Ditto.
1243 2002-11-15 David Carlton <carlton@math.stanford.edu>
1245 * linespec.c (locate_first_half): New function.
1246 (decode_line_1): Move code into locate_first_half.
1248 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1250 * complaints.h: Add comment explaining how to eliminate a
1251 deprecated_complain call.
1252 * complaints.h: Fix spelling errors.
1254 2002-11-15 David Carlton <carlton@math.stanford.edu>
1256 * printcmd.c: Remove #include "disasm.h".
1258 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1260 * frame.h: Move the most relevant interface functions to the start
1263 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1265 * regcache.h (deprecated_registers): Rename registers.
1266 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1267 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1268 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1269 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1270 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1271 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1272 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1273 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1274 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1275 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1276 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1277 * v850ice.c: Update.
1279 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1281 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1284 2002-11-13 Andrew Cagney <cagney@redhat.com>
1286 * regcache.h (deprecated_read_register_bytes): Rename
1287 read_register_bytes.
1288 (deprecated_write_register_bytes): Rename write_register_bytes.
1289 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1290 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1291 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1292 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1293 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1294 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1295 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1296 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1297 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1298 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1299 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1300 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1301 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1302 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1304 2002-11-13 Jim Blandy <jimb@redhat.com>
1306 * findvar.c (read_var_value): Doc fix.
1308 2002-11-13 Andrew Cagney <cagney@redhat.com>
1310 * regcache.c (struct regcache): Replace passthough_p with
1312 (regcache_xmalloc): Initialize readonly_p.
1313 (build_regcache): Initialize readonly_p.
1314 (regcache_save): New function.
1315 (regcache_restore): New function.
1316 (regcache_cpy): Re-implement using regcache_save and
1318 (regcache_raw_read): Update.
1319 (regcache_cooked_read): When a read-only cache, checked for cached
1320 pseudo register values.
1321 (regcache_raw_write): Assert that the cache is not read-only.
1322 Remove code handling a non-passthrough cache.
1323 * regcache.h (regcache_save): Declare.
1324 (regcache_restore): Declare.
1326 2002-11-13 Andrew Cagney <cagney@redhat.com>
1328 * regcache.c (struct regcache_descr): Add fields
1329 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1330 (init_legacy_regcache_descr): Compute the size of a cooked
1331 register cache and then assign that to sizeof_raw_registers. Set
1332 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1333 (init_legacy_regcache_descr): Ditto.
1335 2002-11-13 Andrew Cagney <cagney@redhat.com>
1337 * regcache.c (register_buffer): Move to near start of file, update
1339 (regcache_raw_read): Use.
1340 (regcache_raw_write): Use.
1341 (struct regcache): Rename raw_registers to registers and
1342 raw_register_valid_p to register_valid_p.
1343 (regcache_xmalloc): Update.
1344 (regcache_xfree): Update.
1345 (register_buffer): Update.
1346 (regcache_cpy): Update.
1347 (regcache_cpy_no_passthrough): Update.
1348 (regcache_valid_p): Update.
1349 (deprecated_grub_regcache_for_registers): Update.
1350 (deprecated_grub_regcache_for_register_valid): Update.
1351 (set_register_cached): Update.
1352 (regcache_raw_write): Update.
1354 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1356 * p-exp.y (name_not_typename): Use copy_name to
1357 set current_type variable for fields of THIS.
1359 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1361 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1362 * monitor.c (init_base_monitor_ops): Likewise.
1363 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1364 * remote-array.c (init_array_ops): Likewise.
1365 * remote-e7000.c (init_e7000_ops): Likewise.
1366 * remote-es.c (init_es1800_ops): Likewise.
1367 (init_es1800_child_ops): Likewise.
1368 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1369 * remote-sim.c (init_gdbsim_ops): Likewise.
1370 * remote-st.c (init_st2000_ops): Likewise.
1371 * sol-thread.c (init_sol_core_ops): Likewise.
1372 (init_sol_thread_ops): Likewise.
1373 * v850ice.c (init_850ice_ops): Likewise.
1374 * win32-nat.c (init_child_ops): Likewise.
1375 * wince.c (init_child_ops): Likewise.
1377 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1379 * utils.c (gdb_realpath): Make rp a constant pointer.
1381 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1383 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1384 a constant buffer; cannonicalize_file_name(); realpath() with a
1385 pathconf() defined buffer, xstrdup().
1387 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1389 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1390 to hang2.C; hang3.c to hang3.C.
1392 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1394 * findvar.c (read_var_value): Reenable TLS code.
1396 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1397 Jim Blandy <jimb@redhat.com>
1399 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1400 * target.c (update_current_target): Add
1401 to_get_thread_local_address.
1402 * target.h (to_get_thread_local_address): Export.
1403 (target_get_thread_local_address): Define.
1404 (target_get_thread_local_address_p): Define.
1405 * thread-db.c: Include solib-svr4.h.
1406 (td_thr_tls_get_addr_p): Define.
1407 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1408 (thread_db_get_thread_local_address): New function.
1409 (init_thread_db_ops): Initialize to_get_thread_local_address.
1410 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1411 * configure: Regenerate.
1412 * config.in: Regenerate.
1414 2002-11-11 David Carlton <carlton@math.stanford.edu>
1416 * linespec.c (set_flags): New function.
1417 (decode_line_1): Move code into set_flags.
1419 2002-11-11 David Carlton <carlton@math.stanford.edu>
1421 * linespec.c (decode_line_1): Move chunks of code to separate
1423 (initialize_defaults): New function.
1424 (decode_indirect): New function.
1426 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1428 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1429 instead of void_code_ptr.
1430 (sigtramp_saved_pc): Ditto.
1432 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1435 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1437 * gdbtypes.h (struct main_type): Move artificial flag out of
1438 loc. New member of ``struct field'' named static_kind. Reduce
1439 overloaded meaning of bitsize.
1440 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1441 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1442 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1444 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1446 (template_to_fixed_record_type, template_to_static_fixed_type)
1447 (to_record_with_fixed_variant_part): Likewise.
1448 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1449 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1450 * dwarfread.c (struct_type, enum_type): Likewise.
1451 * hpread.c (hpread_read_enum_type)
1452 (hpread_read_function_type, hpread_read_doc_function_type)
1453 (hpread_read_struct_type): Likewise.
1454 * mdebugread.c (parse_symbol): Likewise.
1456 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1458 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1459 * stack.c (print_frame_info_base): Update.
1460 (print_frame_info_base, frame_info): Update.
1461 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1462 (sparc_frame_saved_pc): Update.
1463 * ada-lang.c (find_printable_frame): Update.
1464 * breakpoint.c (deprecated_frame_in_dummy): Update.
1466 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1468 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1470 (regmap): Extend to cover all registers.
1471 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1472 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1474 (fetch_register, sore_register): Simplify.
1475 (old_fetch_inferior_registers, old_store_inferior_registers):
1477 (cannot_fetch_register, cannot_store_register): Change
1478 implementation to use regmap array to decide which registers
1479 cannot be fetched/stored. This removes $orig_eax from the
1480 registers that cannot be fetched/stored.
1481 (fetch_inferior_registers): Call fetch_register directly instead
1482 of calling old_fetch_inferior_registers.
1483 (store_inferior_registers): Call store_register directly instead
1484 of calling old_store_inferior_registers.
1485 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1486 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1487 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1489 2002-11-09 Klee Dienes <kdienes@apple.com>
1491 * i387-tdep.c (i387_supply_register): When called with NULL as a
1492 buffer, mark the register as not provided (to mirror the behavior
1493 of supply_register).
1494 (i387_supply_fxsave): Ditto.
1495 (i387_supply_fsave): Ditto (inherits the behavior from
1496 i387_supply_register).
1498 2002-11-09 Klee Dienes <kdienes@apple.com>
1500 * blockframe.c (sigtramp_saved_pc): Use
1501 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1502 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1503 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1505 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1507 * frame.c (get_prev_frame): Test prev_p to identify a previously
1508 unwound frame. Initialize prev_p.
1509 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1512 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1514 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1515 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1516 more comments. Zap dead code.
1518 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1520 * infcmd.c (print_vector_info, print_float_info): Move code that
1521 checks whether the target has any registers and whether there is a
1522 selected frame up, such that it is also used if a target provides
1523 multi-arch definitions of these functions.
1525 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1527 * Makefile.in (DESTDIR): Define.
1528 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1531 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1532 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1534 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1536 * i386-linux-tdep.c: Include "reggroups.h".
1537 (i386_linux_register_reggroup_p): New function.
1538 (i386_linux_init_abi): Set register_reggroup_p to
1539 i386_linux_register_reggroup_p.
1540 * i386-tdep.h (i386_register_reggroup_p): Declare.
1541 * i386-tdep.c: Include "reggroups.h".
1542 (i386_init_reggroups): New function.
1543 (i386_add_reggroups): New function.
1544 (i386_register_reggroup_p): New function.
1545 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1546 (_initialize_i386_tdep): Call i386_init_reggroups.
1547 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1550 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1552 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1553 request that's available in *BSD.
1555 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1557 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1560 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1562 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1563 * dummy-frame.c (find_dummy_frame): Rename
1564 generic_find_dummy_frame, make static. Return the dummy frame
1565 instead of the regcache.
1566 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1567 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1568 (dummy_frame_register_unwind): Rename
1569 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1570 * dummy-frame.h (dummy_frame_register_unwind): Rename
1571 generic_call_dummy_register_unwind.
1573 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1575 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1576 except the inclusion of "i386/tm-i386.h", to...
1577 * config/i386/nm-i386v42mp.h: ...here.
1578 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1580 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1582 * Makefile.in (frame.o): Update dependencies.
1583 * blockframe.c (current_frame, frame_obstack_alloc)
1584 (frame_saved_regs_zalloc, get_current_frame)
1585 (set_current_frame, create_new_frame)
1586 (set_unwind_by_pc, get_next_frame)
1587 (flush_cached_frames, reinit_frame_cache)
1588 (frame_saved_regs_register_unwind)
1589 (deprecated_generic_get_saved_register)
1590 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1591 (_initialize_blockframe): Move frame code from here...
1592 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1593 "annotate.h" and "dummy-frame.h".
1594 (_initialize_frame): New function.
1596 2002-11-08 Jim Blandy <jimb@redhat.com>
1598 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1599 when we finish a function a context.
1600 * buildsym.h (outermost_context_p): New macro.
1601 (Bug analyzed by David Edelsohn.)
1603 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1605 * blockframe.c: Include "dummy-frame.h".
1606 (struct dummy_frame, dummy_frame_stack)
1607 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1608 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1609 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1610 (generic_save_call_dummy_addr, generic_pop_current_frame)
1611 (generic_pop_dummy_frame, generic_fix_call_dummy)
1612 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1613 dummy frame code from here...
1614 * dummy-frame.c: ...to here. New file.
1615 * dummy-frame.h: New file.
1616 (generic_call_dummy_register_unwind): Declare.
1617 (generic_find_dummy_frame): Declare.
1618 * Makefile.in (SFILES): Add dummy-frame.c.
1619 (dummy-frame.o): Specify dependencies.
1620 (dummy_frame_h): Define.
1621 (COMMON_OBS): Add dummy-frame.o.
1622 (blockframe.o): Update dependencies.
1624 2002-11-08 Jim Blandy <jimb@redhat.com>
1626 * dwarf2read.c (read_func_scope): Restore local_symbols and
1627 param_symbols after we finish the function context. (Based on a
1628 patch from David Edelsohn.)
1630 2002-11-08 David Carlton <carlton@math.stanford.edu>
1632 * linespec.c (symbol_found): New function.
1633 (minsym_found): New function.
1634 (decode_line_1): Separate out some code into separate functions.
1636 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1638 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1639 the benefit of the interix target.
1640 * i386-tdep.h (i386_frameless_signal_p): Declare.
1642 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1644 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1645 declaration that snuck in from change below.
1647 2002-11-06 Andrew Cagney <cagney@redhat.com>
1649 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1651 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1652 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1653 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1654 (i386_mxcsr_regnum_p): new function. Use instead of
1656 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1657 (i386_sse_regnum_p): Declare.
1658 (i386_mxcsr_regnum_p): Declare.
1659 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1660 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1661 (IS_FP_REGNUM): Update definition.
1662 (IS_FPU_CTRL_REGNUM): Update definition..
1663 (IS_SSE_REGNUM): Update definition..
1664 * i386v-nat.c (register_u_addr): Update.
1665 * go32-nat.c (fetch_register): Update.
1666 (store_register): Update.
1668 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1670 Preparation work to convert the hppa targets to multiarch partial.
1672 * hppa-tdep.c: Add new functions replacing macro bodies from
1673 config/pa/tm-hppa.h. These function will be used to initialize
1674 the gdbarch structure. Import some comments from tm-hppa.h,
1675 and place them where appropriate, to avoid loosing them when
1676 we cleanup this file.
1677 (hppa_reg_struct_has_addr): New function.
1678 (hppa_inner_than): New function.
1679 (hppa_stack_align): New function.
1680 (hppa_pc_requires_run_before_use): New function.
1681 (hppa_instruction_nullified): New function.
1682 (hppa_register_byte): New function.
1683 (hppa_register_virtual_type): New function.
1684 (hppa_store_struct_return): New function.
1685 (hppa_cannot_store_register): New function.
1686 (hppa_frame_args_address): New function.
1687 (hppa_frame_locals_address): New function.
1688 (hppa_smash_text_address): New function.
1689 (hppa_coerce_float_to_double): New function. Requires the inclusion
1692 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1694 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1695 gdbarch-eligible macro to a call to the new associated function
1696 created in hppa-tdep.c.
1697 (INNER_THAN): Likewise.
1698 (STACK_ALIGN): Likewise.
1699 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1700 (INSTRUCTION_NULLIFIED): Likewise.
1701 (REGISTER_BYTE): Likewise.
1702 (REGISTER_VIRTUAL_TYPE): Likewise.
1703 (STORE_STRUCT_RETURN): Likewise.
1704 (CANNOT_STORE_REGISTER): Likewise.
1705 (FRAME_ARGS_ADDRESS): Likewise.
1706 (FRAME_LOCALS_ADDRESS): Likewise.
1707 (SMASH_TEXT_ADDRESS): Likewise.
1708 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1709 (ABOUT_TO_RETURN): Delete, as no longer used.
1711 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1713 * printcmd.c (disassemble_command): Remove obsolete function.
1714 (_initialize_printcmd): Do not create disassemble command here.
1715 * cli/cli-cmds.c (disassemble_command): New function. Implements
1716 disassemble command.
1717 (init_cli_cmds): Create disassemble command here instead.
1719 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1721 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1723 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1725 * regcache.h (regcache_cooked_read_using_offset_hack)
1726 (regcache_cooked_write_using_offset_hack): Delete declarations.
1727 (register_changed): Delete declaration.
1728 * regcache.c (regcache_cooked_read_using_offset_hack)
1729 (regcache_cooked_write_using_offset_hack): Delete functions.
1730 (cooked_xfer_using_offset_hack): Delete function.
1731 (register_changed): Delete function.
1733 2002-11-07 Jim Blandy <jimb@redhat.com>
1735 * macroscope.c: #include "complaints.h".
1736 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1737 but not in the macro table.
1738 * Makefile.in (macroscope.o): Record dependency.
1740 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1742 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1744 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1746 * regcache.c (deprecated_registers_fetched): Update.
1747 * regcache.h (deprecated_registers_fetched): Rename
1749 * remote-vxsparc.c (vx_read_register): Update.
1750 * remote-vxmips.c (vx_read_register): Update.
1751 * remote-vx68.c (vx_read_register): Update.
1752 * irix5-nat.c (fetch_core_registers): Update.
1753 * mipsm3-nat.c (fetch_inferior_registers): Update.
1754 * sun3-nat.c (fetch_inferior_registers): Update.
1755 * symm-nat.c (fetch_inferior_registers): Update.
1756 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1757 (fetch_core_registers): Update.
1758 (fetch_kcore_registers): Update.
1759 * mips-nat.c (fetch_inferior_registers): Update.
1760 * corelow.c (get_core_registers): Update.
1761 * a68v-nat.c (fetch_inferior_registers): Update.
1763 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1765 Put in place the framework necessary for multiarching the hppa targets.
1766 * hppa-tdep.c (hppa_gdbarch_init): New function.
1767 (hppa_dump_tdep): New function.
1768 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1769 tdep structure dumper.
1770 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1771 until the multi-arching conversion has partially been completed.
1773 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1775 * valops.c (value_assign): Merge lval_register case into
1776 lval_reg_frame_relative. Use frame_register and
1777 regcache_cooked_write instead of get_saved_register and
1778 write_register_bytes. After flushing the register cache, try to
1779 re-select the selected frame.
1781 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1783 * regcache.h (deprecated_register_valid): Rename register_valid.
1784 * regcache.c: Update.
1785 * ia64-aix-nat.c: Update.
1786 * i386gnu-nat.c: Update.
1787 * alpha-nat.c: Update.
1788 * sparc-nat.c: Update.
1789 * lynx-nat.c: Update.
1790 * remote-mips.c: Update.
1792 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1794 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1795 to end of file, to be more consistent with the pratice followed
1798 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1800 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1801 (print_float_info): Print registers in float_reggroup.
1802 (print_vector_info): Print registers in vector_reggroup.
1803 (default_print_registers_info): When all, print registers in
1804 all_reggroup. Otherwize, print registers in general_reggroup.
1805 (registers_info): Rewrite. Add support for register groups.
1808 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1810 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1812 (symtab_symbol_info): Remove eons old ifdeffed out code.
1813 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1816 2002-11-06 Theodore A. Roth <troth@openavr.org>
1818 * c-exp.y: Add missing semi-colons.
1819 * f-exp.y: Add missing semi-colons.
1820 * m2-exp.y: Add missing semi-colons.
1821 * p-exp.y: Add missing semi-colons.
1822 Add empty action to start rule to avoid a type clash error when
1823 building with bison >= 1.50.
1825 2002-11-06 Jim Blandy <jimb@redhat.com>
1827 * macrotab.h (struct macro_source_file): Doc fix.
1829 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1831 * varobj.c (child_exists, cplus_number_of_children): Change
1832 STREQ macro references to strcmp.
1833 (cplus_name_of_child): Change code to handle the fact that
1834 fields are not necessarily contiguous with regards to their
1835 access control. This is a fix for PR gdb/792.
1837 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1839 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1840 * gdbarch.h, gdbarch.c: Regnerate.
1841 * frame.h (frame_register): Declare.
1842 * frame.c (frame_register): New function.
1843 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1844 GET_SAVED_REGISTER, otherwize call
1845 generic_unwind_get_saved_register.
1846 (frame_register_read): Use frame_register instead of
1849 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1851 From Jim Ingham <jingham@apple.com>:
1852 * event-top.c (gdb_disable_readline): New function.
1853 (_initialize_event_loop): Move comment.
1855 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1857 * event-loop.c (start_event_loop): Add comment.
1860 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1862 * infcmd.c (default_print_registers_info): Do not call
1863 PRINT_REGISTER_HOOK.
1865 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1867 * sparc-tdep.c (sparc_print_register_hook): Make static.
1868 (sparc_print_registers_info): New function.
1869 (sparc_do_registers_info): New function.
1870 (sparclet_print_registers_info): New function.
1871 (sparclet_do_registers_info): New function.
1872 (do_sparc_print_registers_info): New function.
1873 (sparc_print_registers): New static function, clone of infcmd.c's
1874 default_print_registers_info.
1875 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1876 (sparclet_do_registers_info): Declare.
1877 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1878 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1880 (sparc_do_registers_info): Declare.
1881 (PRINT_REGISTER_HOOK): Delete macro.
1882 (sparc_print_register_hook): Delete declaration.
1884 2002-11-05 David Carlton <carlton@math.stanford.edu>
1886 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1888 (lookup_symbol_aux_local): New function.
1889 (lookup_symbol_aux_symtabs): New function.
1890 (lookup_symbol_aux_psymtabs): New function.
1892 2002-11-05 David Carlton <carlton@math.stanford.edu>
1894 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1895 previous values of 'objfile' and 'block'.
1897 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1899 * values.c (value_change_enclosing_type): Set
1900 enclosing_type field correctly also for the case where
1901 more memory needs to be allocated.
1903 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1905 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1908 * i387-tdep.c (i387_print_float_info): Replace calls to
1909 register_read and deprecated_read_register_gen with calls to
1910 frame_register_read, and make the necessary adjustments to the
1913 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1915 * gdbarch.sh (register_reggroup_p): Allow default value.
1916 * gdbarch.h, gdbarch.c: Regenerate.
1918 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1920 * regcache.h: Add coment indicating replacements for deprecated
1923 2002-11-02 Andrew Cagney <cagney@redhat.com>
1925 * reggroups.h, reggroups.c: New files.
1926 * regcache.c: Include "reggroups.h".
1927 (enum regcache_dump_what): Add `regcache_dump_groups'.
1928 (regcache_dump): Contract size of the "Type" column. When
1929 specified, dump the register's groups.
1930 (maintenance_print_register_groups): New function.
1931 (_initialize_regcache): Add command `maint print register-groups'.
1932 * Makefile.in (COMMON_OBS): Add reggroups.o
1933 (SFILES): Add reggroups.c.
1934 (reggroups_h): Define.
1935 (regcache.o, gdbarch.o): Update dependencies.
1936 (reggroups.o): Specify dependencies.
1937 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1938 Add opaque declaration for `struct reggroup' in generated .h file.
1939 Include "reggroups.h" in generated .c file.
1940 gdbarch.h, gdbarch.c: Re-generate.
1942 2002-11-02 Andrew Cagney <cagney@redhat.com>
1944 * regcache.h (deprecated_read_register_gen): Rename
1946 (deprecated_write_register_gen): Rename write_register_gen.
1947 * i387-tdep.c: Update.
1948 * x86-64-linux-nat.c: Update
1950 * thread-db.c: Update.
1951 * win32-nat.c: Update.
1952 * mips-tdep.c: Update.
1953 * d10v-tdep.c: Update.
1954 * cris-tdep.c: Update.
1955 * remote-sim.c: Update.
1956 * remote-rdi.c: Update.
1957 * remote-rdp.c: Update.
1960 * blockframe.c: Update.
1961 * x86-64-tdep.c: Update.
1962 * xstormy16-tdep.c: Update.
1963 * sh-tdep.c: Update.
1964 * s390-tdep.c: Update.
1965 * rs6000-tdep.c: Update.
1966 * sparc-tdep.c: Update.
1967 * i386-tdep.c: Update.
1968 * dwarf2cfi.c: Update.
1969 * regcache.c: Update.
1971 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1973 New interix-specific files:
1974 * config/i386/nm-interix.h: New file.
1975 * config/i386/interix.mh: New file.
1976 * config/i386/interix.mt: New file.
1977 * i386-interix-nat.c: New file.
1978 * i386-interix-tdep.c: New file.
1980 2002-11-01 Andrew Cagney <cagney@redhat.com>
1982 * frame.h (deprecated_generic_get_saved_register): Rename
1983 generic_get_saved_register.
1984 * blockframe.c (deprecated_generic_get_saved_register): Update.
1985 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1986 (xstormy16_frame_saved_register): Update.
1987 * sh-tdep.c (sh_gdbarch_init): Update.
1988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1989 * ia64-tdep.c (ia64_get_saved_register): Update.
1990 * cris-tdep.c (cris_gdbarch_init): Update.
1991 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1992 * arm-tdep.c (arm_gdbarch_init): Update.
1994 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1996 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1998 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2000 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2001 trampolines in sigaction.
2003 2002-10-31 Andrew Cagney <cagney@redhat.com>
2005 * h8300-tdep.c: Include "gdb_assert.h".
2006 (h8300_print_register): Add gdbarch, file and frame parameters.
2007 Use frame_read_unsigned_register to read the register's value.
2008 Use fprintf_filtered to display output.
2009 (h8300_print_registers_info): Replace h8300_do_registers_info.
2010 (h8300_gdbarch_init): Set print_registers_info.
2012 2002-10-31 Andrew Cagney <cagney@redhat.com>
2014 * frame.c (frame_read_unsigned_register): New function.
2015 (frame_read_signed_register): New function.
2016 * frame.h (frame_read_unsigned_register): Declare.
2017 (frame_read_signed_register): Declare.
2019 2002-10-31 Andrew Cagney <cagney@redhat.com>
2021 * h8500-tdep.c (h8500_print_registers_info): New static function,
2022 clone of infcmd.c's default_print_registers_info.
2023 (h8500_do_registers_info): New funtion.
2024 (h8500_print_register_hook): Rename print_register_hook, make
2027 * config/h8500/tm-h8500.h: Update copyright.
2028 (DEPRECATED_DO_REGISTERS_INFO): Define.
2029 (h8500_do_registers_info: Declare.
2030 (PRINT_REGISTER_HOOK): Delete macro.
2031 (print_register_hook): Delete function.
2033 2002-10-31 Andrew Cagney <cagney@redhat.com>
2035 * z8k-tdep.c (z8k_print_register_hook): Make static.
2036 (z8k_print_registers_info): New static function, clone of
2037 infcmd.c's default_print_registers_info.
2038 (z8k_do_registers_info): New function. Wrap
2039 z8k_print_registers_info.
2040 * config/z8k/tm-z8k.h: Update copyright.
2041 (PRINT_REGISTER_HOOK): Delete macro.
2042 (z8k_print_register_hook): Delete declaration.
2043 (DEPRECATED_DO_REGISTERS_INFO): Define.
2044 (z8k_do_registers_info): Declare.
2046 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2048 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2049 as this is already provided by value.h, and was actually causing
2050 a compilation error because of a conflict in parameter type
2051 declaration due to a missing const keyword.
2052 (low_text_segment_addres): Fix a compilation warning.
2054 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2056 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2057 registers without a name.
2058 (mips_linux_cannot_store_register): Don't store registers without
2061 2002-10-28 David Carlton <carlton@math.stanford.edu>
2063 * symtab.c (find_addr_symbol): Delete. (It was already commented
2065 * symtab.h: Delete prototype for find_addr_symbol.
2067 2002-10-26 Andrew Cagney <cagney@redhat.com>
2069 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2071 gdbarch.h, gdbarch.c: Re-generate.
2072 * infcmd.c (default_print_registers_info): Update reference.
2073 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2074 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2075 * sh-tdep.c (sh_gdbarch_init): Ditto.
2076 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2077 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2079 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2081 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2082 cfi_init_extra_frame_info.
2083 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2084 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2086 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2087 target where necessary. Add more comments and remove the ones
2088 that don't provide any useful information.
2090 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2091 deprecated_read_register_dummy with
2092 frame_unwind_unsigned_register.
2094 * i386-tdep.c (i386_extract_struct_value_address): Use
2095 regcache_raw_read_unsigned instead of
2096 regcache_cooked_read_unsigned since we know that the register
2097 we're reading isn't a pseudo register. Rename variable 'val' into
2098 the more descriptive 'addr'.
2100 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2101 (x86_64_push_return_address): Add comment.
2102 (x86_64_pop_frame): Make static.
2103 (examine_argument): Clarify comment.
2104 (x86_64_skip_prologue): Make prolog_expact variable static.
2106 * dwarf2cfi.c: Fix some formatting problems.
2107 (context_cpy, read_encoded_pointer): Clarify comments.
2109 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2110 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2111 i386 target back into x86_64_gdbarch_init. Add some comments and
2112 remove meaningless ones.
2114 2002-10-25 Andrew Cagney <cagney@redhat.com>
2116 * complaints.h (struct deprecated_complaint): Rename `struct
2118 * complaints.c (complain): Update.
2119 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2120 incorrect comment indicating that "symfile.h" was being included
2121 for the `struct complaint' definition.
2122 * remote-vx.c: Update.
2123 * objc-lang.c: Update.
2124 * xcoffread.c: Update.
2126 * mdebugread.c: Update.
2127 * stabsread.c: Update.
2128 * dwarf2read.c: Update.
2129 * dwarfread.c: Update.
2130 * elfread.c: Update.
2131 * coffread.c: Update.
2132 * stabsread.h: Update.
2133 * dbxread.c: Update.
2134 * buildsym.c: Update.
2135 * gdbtypes.c: Update.
2136 * macrotab.c: Update.
2138 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2140 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2141 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2142 (x86_64_init_abi): ...new function.
2144 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2145 * i386v-nat.c: Include "i386-tdep.h".
2147 2002-10-25 Andrew Cagney <cagney@redhat.com>
2149 * gdbtypes.c (address_space_name_to_int): Update.
2150 (address_space_int_to_name): Update.
2151 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2152 multi-arch predicate.
2153 (address_class_name_to_type_flags): Ditto.
2154 * gdbarch.h, gdbarch.c: Re-generate.
2156 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2158 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2160 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2162 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2164 * symtab.h (INIT_SAL): Delete macro.
2166 * symtab.c (init_sal): New function.
2168 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2169 to init_sal function call.
2170 (find_sal_from_funcs_and_line): Ditto.
2171 (all_sals_for_line): Ditto.
2172 * breakpoint.c (create_internal_breakpoint): Ditto.
2173 (create_fork_vfork_event_catchpoint): Ditto.
2174 (create_exec_event_catchpoint): Ditto.
2175 (parse_breakpoint_sals): Ditto.
2176 (watch_command_1): Ditto.
2177 (handle_gnu_4_16_catch_command): Ditto.
2178 (clear_command): Ditto.
2179 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2180 * infcmd.c (run_stack_dummy): Ditto.
2181 * infrun.c (process_event_stop_test): Ditto.
2182 (check_sigtramp2): Ditto.
2183 (step_over_function): Ditto.
2184 * linespec.c (decode_line_2): Ditto.
2185 (decode_line_1): Ditto.
2186 * source.c (line_info): Ditto.
2187 * symtab.c (find_pc_sect_line): Ditto.
2189 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2191 * dwarf2cfi.c (struct context)
2192 (struct context_reg): Moved to dwarf2cfi.h
2193 (context_alloc, frame_state_alloc, context_cpy):
2194 Made extern instead of static, removed prototypes.
2195 * dwarf2cfi.h (struct context)
2196 (struct context_reg): New, moved from dwarf2cfi.c
2197 (context_alloc, frame_state_alloc, context_cpy):
2199 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2200 Changed from static to extern.
2201 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2202 (LINUX_SIGCONTEXT_FP_OFFSET)
2203 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2204 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2205 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2206 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2207 set_gdbarch_*() calls now use x86-64 specific functions
2208 instead of DWARF2 CFI ones.
2209 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2210 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2211 (x86_64_init_extra_frame_info): New prototypes.
2213 2002-10-23 David Carlton <carlton@math.stanford.edu>
2215 * linespec.c: #include "parser-defs.h".
2216 Delete prototype for find_template_name_end.
2217 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2219 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2221 * NEWS: add recent mi fixes.
2222 * varobj.c (struct varobj): Add new "updated" flag.
2223 (new_variable): Default "updated" flag to 0.
2224 (varobj_set_value): Set "updated" flag to 1 if value
2226 (varobj_update): Check varobj "updated" flag before
2227 comparing old and refreshed values. Fix for
2230 2002-10-23 David Carlton <carlton@math.stanford.edu>
2232 * parse.c (parse_exp_1): Use BLOCK_START.
2233 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2235 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2237 2002-10-23 David Carlton <carlton@math.stanford.edu>
2239 * symtab.c: Delete cplusplus_hint.
2240 Delete prototype for find_template_name_end.
2242 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2244 * symtab.h: Update comment.
2246 2002-10-23 Michael Snyder <msnyder@redhat.com>
2248 * printcmd.c (address_info): Restore quotes in output.
2249 * valops.c (value_of_local): Restore quotes in error message.
2251 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2253 * symtab.c (symbol_demangled_name): New function.
2254 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2255 turning most of it into a function.
2256 (symbol_demangled_name): Export.
2258 2002-10-23 Michael Snyder <msnyder@redhat.com>
2260 * valops.c (value_of_local): Restore quotes in error message.
2262 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2264 * symtab.c (symbol_init_language_specific): New function.
2265 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2266 turning most of it into a function.
2267 (symbol_init_language_specific): Export.
2269 2002-10-23 David Carlton <carlton@math.stanford.edu>
2271 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2272 (dwarf_attr_name): Ditto.
2273 (dwarf_type_encoding_name): Ditto.
2274 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2275 (process_die): Handle DW_TAG_namespace,
2276 DW_TAG_imported_declaration, DW_TAG_imported_module.
2277 (read_namespace): New function.
2279 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2281 * configure.in: Define NEW_PROC_API on Interix too.
2282 * configure: Regenerate.
2284 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2286 * configure: Regenerate using the proper version of autoconf.
2288 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2290 * findvar.c (read_var_value): Temporarily disable TLS code, until
2291 complete TLS support is added.
2293 2002-10-21 Jim Blandy <jimb@redhat.com>
2294 Elena Zannoni <ezannoni@redhat.com>
2296 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2297 for thread local storage locations.
2298 (struct symbol): Add objfile field.
2299 (SYMBOL_OBJFILE): Define.
2300 * dwarf2read.c (is_thread_local): New static variable.
2301 (new_symbol): If variable is in thread local fill in address class
2302 and objfile appropriately.
2303 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2305 * printcmd.c (address_info): Print the information for thread
2306 local storage variable.
2307 * findvar.c (read_var_value): In case of thread local variable,
2308 defer to the target vector code to compute address.
2310 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2312 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2313 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2315 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2317 * symtab.h (address_class): Rename
2318 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2319 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2320 * printcmd.c (address_info): Ditto.
2321 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2323 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2325 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2326 DBREG_DRX macro to acces debug registers.
2328 * Makefile.in (i386obsd-tdep.o): New target.
2330 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2331 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2333 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2334 * config/i386/obsd.mt: New file.
2335 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2336 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2337 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2338 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2339 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2340 * i386obsd-tdep.c: New file.
2342 2002-10-19 Adam Fedor <fedor@gnu.org>
2344 * objc-exp.y (name_not_typename): Fix invalid comment.
2346 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2348 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2349 to allocate partial syms and macro byte caches.
2351 2002-10-18 David Carlton <carlton@math.stanford.edu>
2353 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2355 2002-10-18 Adam Fedor <fedor@gnu.org>
2357 * stabsread.c (find_name_end): New function.
2358 (define_symbol): Use it.
2360 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2362 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2363 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2364 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2365 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2367 2002-10-17 David Carlton <carlton@math.stanford.edu>
2369 * symfile.h: Add opaque declaration for struct obstack.
2370 Declare obsavestring to take a const char *.
2371 * symfile.c (obsavestring): Make first argument a const char *.
2373 2002-10-16 Adam Fedor <fedor@gnu.org>
2375 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2376 names when matching breakpoints in current file.
2378 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2380 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2381 (read_tag_pointer_type): Add address class support.
2382 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2383 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2385 * gdbarch.h, gdbarch.c: Regenerate.
2386 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2387 (make_type_with_address_space, recursive_type_dump): Add address
2389 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2390 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2391 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2393 2002-10-16 Klee Dienes <kdienes@apple.com>
2395 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2396 to get the last character of a char[] buffer, not
2397 name[sizeof(vptr_name)-1].
2399 2002-10-14 Adam Fedor <fedor@gnu.org>
2401 * symtab.h: New objc_specific struct.
2402 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2403 (SYMBOL_DEMANGLED_NAME): Likewise.
2405 2002-10-14 Adam Fedor <fedor@gnu.org>
2407 * symfile.c (init_filename_language_table): Add ObjC file extension.
2409 2002-10-14 Adam Fedor <fedor@gnu.org>
2411 * utils.c (puts_filtered_tabular): New function.
2412 (fprintf_symbol_filtered): Get ObjC demangled name.
2413 * defs.h (puts_filtered_tabular): Declared.
2415 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2417 * c-lang.h (c_type_print_varspec_prefix): Delete.
2418 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2419 ``need_post_space'' parameter. Adjust all callers.
2421 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2423 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2424 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2425 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2426 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2428 2002-10-13 Adam Fedor <fedor@gnu.org>
2430 * source.c (print_source_lines): Update comments.
2432 2002-10-13 Adam Fedor <fedor@gnu.org>
2434 * valops.c (value_of_local): New function.
2435 (value_of_this): Use it.
2436 * value.h (value_of_local): Declared.
2438 2002-10-13 Adam Fedor <fedor@gnu.org>
2440 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2441 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2443 2002-10-12 Adam Fedor <fedor@gnu.org>
2445 * language.c (binop_result_type): Add language_objc to case.
2446 (integral_type): Likewise.
2447 (character_type): Likewise.
2448 (string_type): Likewise.
2449 (boolean_type): Likewise.
2450 (structured_type): Likewise.
2451 (binop_type_check): Likewise.
2453 2002-10-11 Adam Fedor <fedor@gnu.org>
2455 * printcmd.c (address_info): Print 'self' for ObjC.
2457 2002-10-11 Adam Fedor <fedor@gnu.org>
2459 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2462 2002-10-11 Adam Fedor <fedor@gnu.org>
2464 * language.h (CAST_IS_CONVERSION): Add language_objc.
2466 2002-10-11 Adam Fedor <fedor@gnu.org>
2468 * defs.h (enum language): Add language_objc.
2470 2002-10-11 Klee Dienes <kdienes@apple.com>
2472 * corefile.c (read_memory_typed_address): New function.
2473 * gdbcore.h (read_memory_typed_address): Add prototype.
2474 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2475 to read a value destined for a CORE_ADDR, not read_memory_integer.
2476 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2477 (f77_get_dynamic_lowerbound): Ditto.
2479 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2481 * utils.c (string_to_core_addr): After turning string into
2482 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2483 which will do necessary sign-extension, etc.
2485 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2487 * c-exp.y (THIS): Delete token and grammar rule.
2488 (yylex): Don't return THIS.
2489 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2490 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2491 * demangle.c (cplus_markers): Update comment. Put '$'
2492 first. Remove CPLUS_MARKER.
2493 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2494 * jv-exp.y (THIS): Delete token and grammar rule.
2495 (yylex): Don't return THIS.
2496 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2497 * objc-exp.y (THIS): Delete token and grammar rule.
2498 (yylex): Don't return THIS.
2499 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2500 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2501 (read_member_functions): Likewise for opname.
2502 (read_tilde_fields): Use is_cplus_marker.
2504 * defs.h (CPLUS_MARKER): Don't define.
2505 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2506 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2507 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2508 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2509 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2511 * config/i386/tm-i386v4.h: Delete file.
2512 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2513 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2514 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2515 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2516 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2517 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2518 * config/i386/i386v4.mt (TM_FILE): Likewise.
2519 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2521 2002-10-10 Marko Mlinar <markom@opencores.org>
2523 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2524 accidentially not commited 2002-10-09
2525 * gdbarch.h, gdbarch.c: Re-generate.
2527 2002-10-09 Marko Mlinar <markom@opencores.org>
2529 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2530 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2531 * gdbarch.h, gdbarch.c: Re-generate.
2533 2002-10-08 Petr Sorfa <petrs@caldera.com>
2535 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2537 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2538 so we can work on more than one compilation unit at a time. This
2539 helps prepare GDB to handle inter-CU die references.
2540 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2541 the code to be defined before struct comp_unit_head.
2542 (comp_unit_head): Added new members - offset, cu_head,
2543 begin_die, next and dwarf2_abbrevs.
2544 (dwarf2_abbrevs): Removed single static var; now member of
2545 struct comp_unit_head.
2546 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2548 (psymtab_to_symtab_1): Changed to work with the new
2549 struct comp_unit_head.
2550 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2551 constructs the dwarf2_abbrevs[] inside the cu_header.
2552 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2553 dwarf2_abbrev table to clean up.
2554 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2555 handling of dwarf2_abbrevs inside the cu_header.
2556 (read_partial_die): Now supports the call to the new
2557 dwarf2_lookup_abbrev.
2558 (read_full_die): Now supports the call to the new
2559 dwarf2_lookup_abbrev.
2561 2002-10-06 Christopher Faylor <cgf@redhat.com>
2563 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2564 insure that shell variables, such as "transformed_name" are propagated
2565 to later shell statements in rule.
2567 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2569 * config/i386/nm-i386sco.h: Add protection against
2570 multiple-inclusion. Include "i386/nm-i386v.h".
2571 (REGISTER_U_ADDR): Remove define.
2572 (i386_register_u_addr): Remove prototype.
2574 2002-10-04 Michael Snyder <msnyder@redhat.com>
2576 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2577 before treating it as a single-step event.
2579 2002-10-03 Adam Fedor <fedor@gnu.org>
2581 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2582 (objc_demangle): Remove assignment in if statements, Replace
2584 (add_msglist): Likewise.
2585 (end_msglist): Likewise.
2586 (complare_selectors): Likewise.
2587 (selectors_info): Likewise.
2588 (compare_classes): Likewise.
2589 (classes_info): Likewise.
2590 (print_object_command): Likewise.
2591 (find_objc_msgcall_submethod): Replace PTR with void *.
2592 * objc-lang.h: Remove check for __STDC__.
2594 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2596 * ui-out.h (ui_out_field_fmt_int): New prototype.
2597 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2598 of field width and alignment.
2599 * stack.c (print_frame_info_base): When printing frame level, use
2600 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2603 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2605 * MAINTAINERS: Add self to Write After Approval list.
2607 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2609 * infcmd.c (interrupt_target_command_wrapper): Delete.
2610 (interrupt_target_command): Make non static.
2611 (nofp_registers_info): Make static.
2612 * stack.c (return_command_wrapper): Delete.
2613 (return_command): Make non static.
2615 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2617 * event-top.c (gdb_setup_readline): New function. Code moved from
2618 _initialize_event_loop().
2619 (_initialize_event_loop): Call gdb_setup_readline().
2621 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2623 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2624 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2625 * gdbarch.h, gdbarch.c: Re-generate.
2627 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2630 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2632 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2633 of fill_in_vptr_fieldno.
2635 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2637 * inferior.h (registers_info, stepi_command, nexti_command,
2638 continue_command, interrupt_target_command): Export from infcmd.c.
2639 * frame.h (args_info, selected_frame_level_changed_hook,
2640 return_command): Export from stack.c.
2641 * v850ice.c (stepi_command, nexti_command, continue_command): use
2642 prototypes from inferior.h.
2643 * tracepoint.c (registers_info, args_info, locals_info): Use
2644 prototypes from frame.h and inferior.h.
2645 * Makefile.in (mi-main.o): Add dependency on frame.h.
2647 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2649 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2650 value in register 3 adjusted by ppc_gp0_regnum.
2652 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2654 2002-10-02 Marko Mlinar <markom@opencores.org>
2656 * MAINTAINERS: Add myself to the Write After Approval list.
2658 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2660 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2661 of the section for the N64 ABI, fixed.
2663 * config/mips/tm-irix6.h: Include solib.h.
2665 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2667 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2670 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2672 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2673 and that "mi0" syntax has been removed.
2675 2002-09-30 David Carlton <carlton@math.stanford.edu>
2677 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2678 * ppc-sysv-tdep.c: #include "gdb_string.h".
2679 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2682 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2684 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2685 "vrsave"'s register number.
2687 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2689 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2690 use frame_unwind_signed_register to obtain the PC.
2691 (mips_frame_chain): Handle a generic dummy frame.
2692 (mips_init_extra_frame_info): When a generic dummy frame, don't
2693 re-compute the frame base.
2694 (mips_pop_frame): Handle generic dummy frames.
2695 (mips_gdbarch_init): When generic dummy frames, set
2696 use_generic_dummy_frames, push_dummy_frame to
2697 generic_push_dummy_frame, pc_in_call_dummy to
2698 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2699 generic_save_dummy_frame_tos.
2701 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2703 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2704 against TOP when TOP was explictly set.
2705 (generic_push_dummy_frame): Set TOP to zero.
2707 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2709 * event-loop.c (start_event_loop): Rename variable 'result' to
2710 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2712 2002-09-30 Keith Seitz <keiths@redhat.com>
2714 * gdb-events.sh (selected_thread_changed): New event.
2715 * gdb-events.c: Regenerated.
2716 * gdb-events.h: Regenerated.
2718 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2720 * MAINTAINERS: Add self to Write After Approval list.
2722 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2724 * disasm.c: New file.
2725 * disasm.h: New file.
2726 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2727 (compare_lines): Ditto.
2728 (dump_insns): Ditto.
2729 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2731 (do_assembly_only): Ditto.
2732 (do_disassembly): Renamed to gdb_disassembly and moved to
2733 disasm.c. Sdded uiout argument.
2734 * Makefile.in: Add new files. Reorder SFILES list. Update
2735 dependencies. Include libgdb.a later in the insight executable.
2737 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2739 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2740 bfd/elf64-alpha-fbsd.c.
2742 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2744 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2747 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2749 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2751 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2753 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2754 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2755 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2756 (S_msg_sig_post_reply): Ditto.
2758 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2760 * sh-tdep.c (sh_use_struct_convention): Use definition according
2762 (sh_push_arguments): Store in register with correct endianess.
2763 (sh_default_store_return_value): Ditto.
2764 (sh_gdbarch_init): Set sizeof long double to 8.
2766 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2768 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2769 Fix some whitespace problems.
2771 2002-09-27 David Carlton <carlton@math.stanford.edu>
2773 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2774 (mcore-tdep.o): Ditto.
2775 (ns32k-tdep.o): Ditto.
2776 (ns32knbsd-tdep.o): Ditto.
2778 (vax-tdep.o): Ditto.
2779 * cris-tdep.c: #include "gdb_string.h"
2780 * mcore-tdep.c: Ditto.
2781 * ns32k-tdep.c: Ditto.
2782 * ns32knbsd-tdep.c: Ditto.
2784 * vax-tdep.c: Ditto.
2786 2002-09-27 David Carlton <carlton@math.stanford.edu>
2788 * config/djgpp/fnchange.lst: Add entries for
2789 gdb/testsuite/gdb.c++/m-static files.
2791 2002-09-27 Jim Wilson <wilson@redhat.com>
2793 * MAINTAINERS: Add myself to the Write After Approval list.
2795 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2797 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2800 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2802 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2805 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2807 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2808 (rs6000_struct_return_address): Delete variable.
2809 (rs6000_store_struct_return): Update.
2810 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2811 deprecated_extract_struct_value_address.
2812 (rs6000_frame_align): New function.
2813 (rs6000_gdbarch_init): Set frame_align.
2815 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2817 From Grace Sainsbury <graces@redhat.com>:
2818 * Makefile.in (gdbtk-main.o): New target.
2819 (gdb.o): New target.
2821 (main.o): Update dependencies.
2822 (gdb$(EXEEXT)): Add gdb.o.
2823 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2824 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2825 (SUBDIR_GDBTK_CLEAN): Set.
2826 (install-gdbtk): Install the insight binary.
2827 (uninstall-gdbtk): New target.
2828 (all-gdbtk, clean-gdbtk): New rule.
2829 * top.c (use_windows): Default to zero.
2830 * main.c: Include "main.h".
2832 (struct captured_main_args): Delete.
2833 (gdb_main): New function.
2837 2002-09-25 Andrew Cagney <cagney@redhat.com>
2839 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2840 (frame_map_regnum_to_name): New function.
2841 (frame_map_name_to_regnum): New function.
2842 * frame.h (frame_map_name_to_regnum): Declare.
2843 (frame_map_regnum_to_name): Declare.
2844 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2845 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2846 * parse.c: Do not include "builtin-regs.h".
2847 (target_map_name_to_register): Delete function.
2848 (write_dollar_variable): Use frame_map_name_to_regnum.
2849 * parser-defs.h (target_map_name_to_register): Delete declaration.
2850 * expprint.c: Include "frame.h".
2851 (print_subexp): Use frame_map_regnum_to_name.
2852 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2853 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2855 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2857 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2858 wasn't saved, and the next innermost frame is a dummy, return the
2859 dummy frame's link register.
2861 2002-09-24 Jim Blandy <jimb@redhat.com>
2863 Fix from Paul Breed:
2864 * main.c (captured_main): Add a `break' after the case for 'b'.
2866 2002-09-24 Keith Seitz <keiths@redhat.com>
2868 * varobj.c (c_type_of_child): Use get_target_type instead
2869 of TYPE_TARGET_TYPE.
2871 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2873 * source.c (get_current_or_default_source_symtab_and_line): Remove
2875 (set_default_source_symtab_and_line): New function. Attempts to
2876 determine a source file to list lines from if one is not currently
2878 (get_current_source_symtab_and_line): Initialize sal.pc and
2880 (set_current_source_symtab_and_line): Mark argument as const.
2881 * source.h: Update declarations and comments.
2882 * linespec.c (decode_line_1): Replace call to removed routine above.
2883 * stack.c (print_frame_info_base): Ditto.
2884 * cli/cli-cmds.c (edit_command): Ditto.
2885 (list_command): Ditto.
2887 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2889 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2890 sal.pc and sal.end fields.
2891 (get_current_or_default_source_symtab_and_line): Ditto.
2892 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2893 so we do not cause a new source symtab to be searched for (reverting an
2894 unintentional change from the 2002-09-20 patch).
2895 * scm-lang.c (scm_unpac): Ditto.
2897 2002-09-21 Andrew Cagney <cagney@redhat.com>
2899 * complaints.c (symfile_explanations): Remove new-line from
2900 ``isolated_message''.
2901 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2902 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2904 2002-09-20 Nick Clifton <nickc@redhat.com>
2906 * NEWS: Announce that V850EA ISA is no longer supported.
2907 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2909 2002-09-20 David Carlton <carlton@math.stanford.edu>
2911 * Makefile.in (c-lang.o): Correct dependencies.
2912 (utils.o): Gather dependencies.
2914 * c-lang.c: #include "gdb_string.h"
2916 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2918 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2919 * cli/cli-cmds.c (list_command): New function. Implements the new
2921 (_init_cli_cmds): Add new command definition.
2922 * gdb.1: Document edit command.
2923 * doc/gdb.texinfo: Document edit command.
2925 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2927 * source.c: Make global variables current_source_symtab and
2928 current_source_line static.
2929 (list_command): Moved to cli/cli-cmds.c.
2930 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2931 (get_first_line_listed): New accessor function.
2932 (get_lines_to_list): New accessor function.
2933 (get_current_source_symtab_and_line): New function. Retrieves the
2934 position in the source code that we consider current.
2935 (get_current_or_default_source_symtab_and_line): New function.
2936 Like the above but attempts to determine a default position if one
2937 is not currently defined.
2938 (set_current_source_symtab_and_line): New function. Sets the source
2939 code position considered current and returns the previously set one.
2940 (clear_current_source_symtab_and_line): Reset stored information about
2941 a current source line.
2942 (_initialize_source): Remove registration for the "list" command and
2944 * source.h: Add declarations for the new functions above.
2945 * symtab.h: Remove declarations for the global variables mentioned
2947 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2948 obtain current source line.
2949 * linespec.c (decode_line_1): Ditto.
2950 * macroscope.c (default_macro_scope): Ditto.
2951 * scm-lang.c (scm_unpac): Ditto.
2952 * stack.c (print_frame_info_base): Ditto.
2953 * symfile.c (clear_symtab_users): Ditto.
2954 * symtab.c (decode_line_spec): Ditto.
2955 * cli/cli-cmds.c (list_command): Moved here from source.c.
2956 (ambiguous_line_spec): Moved here from source.c.
2957 (_init_cli_cmds): Add definition for "list" and its alias.
2958 * Makefile.in: Update dependencies.
2960 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2962 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2963 with what gcc thinks is correct.
2965 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2967 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2968 multiple register push instruction.
2970 2002-09-19 Jim Blandy <jimb@redhat.com>
2972 Add support for distinct host and target character sets.
2973 * charset.c, charset.h: New files.
2974 * c-exp.y: #include "charset.h".
2975 (yylex): Convert character and string literals to the target
2976 character set, before returning them as the semantic value of the
2978 * c-lang.c: #include "charset.h".
2979 (c_emit_char): Use charset-specific methods to recognize
2980 characters with backslash escape forms, to decide which characters
2981 to print literally and which to print using numeric escape
2982 sequences, and to convert target characters to host characters
2984 * utils.c: #include "charset.h".
2985 (no_control_char_error): New function.
2986 (parse_escape): Use charset-specific methods to recognize
2987 backslash escapes, parse `control character' notation, and convert
2988 characters from the host character set to the target character set.
2989 * configure.in: Set the default host character set.
2990 Check where to find iconv, and what its argument types might be.
2991 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2992 * Makefile.in (SFILES): List charset.c.
2993 (COMMON_OBS): List charset.o.
2994 (charset.o): New rule.
2995 (charset_h): New header dependency variable.
2996 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2997 (LIBICONV): New variable, set by configure.
2998 (CLIBS): Include $(LIBICONV) here.
2999 * aclocal.m4, config.in, configure: Regenerated.
3001 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3003 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3006 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3008 * gdb_mbuild.sh: New file.
3010 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3012 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3014 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3016 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3017 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3018 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3019 valops.c, value.h: Revert previous change.
3021 2002-09-18 Michael Snyder <msnyder@redhat.com>
3023 Preliminary support for Objective-C:
3024 * defs.h (language_objc): New enum value.
3025 (puts_filtered_tabular): Declaration only, exported from utils.c.
3026 (skip_quoted): Delete, declared in completer.h.
3027 * c-exp.y: Include completer.h.
3030 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3031 New operator enum values.
3032 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3033 * language.c (binop_result_type): Handle language_objc case.
3034 (integral_type, character_type, string_type, boolean_type,
3035 structured_type, binop_type_check): Ditto.
3036 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3037 (struct objc_specific): Add to general_symbol_info.
3038 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3039 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3040 * parser-defs.h (struct objc_class_str): New struct type.
3041 (start_msglist, end_msglist, add_msglist): Declaration only,
3042 exported from objc-lang.c.
3043 * value.h (value_of_local, value_nsstring,
3044 call_function_by_hand_expecting_type): Exported from valops.c.
3045 * valops.c (find_function_addr): Export.
3046 (call_function_by_hand_expecting_type): New function.
3047 (value_of_local): New function.
3048 * symfile.c (init_filename_language_table): Add ".m" extension
3050 * utils.c (puts_filtered_tabular): New function.
3051 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3052 (set/show demangle): Extend help-string to refer to ObjC.
3053 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3054 * stabsread.c (symbol_reference_defined): Objective-C symbols
3055 may contain colons: make allowances when scanning stabs strings
3057 (objc_find_colon): New function.
3058 * printcmd.c (address_info): If language == objc then print
3059 "self" instead of "this".
3060 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3061 OP_NSSTRING, and OP_SELF.
3062 (prefixify_subexp): Ditto.
3063 * source.c (print_source_lines): Mention objc in comment.
3064 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3067 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3069 * complaints.h: Update copyright.
3070 (struct complaints): Declare.
3071 (struct complaint): Make `message' constant.
3072 (internal_complaint): Declare.
3073 (complaint): Declare.
3074 (complaint_root): Delete declaration.
3075 (symfile_complaints): Delete declaration.
3076 (struct complaints): Add opaque declaration.
3077 (clear_complaints): Add a complaints parameter.
3078 * complaints.c: Update copyright.
3079 (enum complaint_series): Define.
3080 (complaint_root): Delete.
3081 (struct complaints): Define.
3082 (complaint_sentinel, symfile_complaint_book): New variables.
3083 (symfile_explanations, symfile_complaints): New variables.
3085 (get_complaints): New function.
3086 (vcomplaint): New function.
3087 (complaint): New function.
3088 (internal_complaint): New function.
3089 (complain): Call vcomplain with symfile_complaint.
3090 (clear_complaints): Rewrite.
3091 (_initialize_complaints): Use add_setshow_command.
3092 * Makefile.in (complaints.o): Update dependencies.
3093 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3094 to call to clear_complaints.
3095 (new_symfile_objfile, reread_symbols): Ditto.
3096 (oldsyms_complaint): Delete.
3097 (empty_symtab_complaint, unknown_option_complaint): Delete.
3098 (free_named_symtabs): Use complaint instead of complain.
3100 2002-09-18 Michael Snyder <msnyder@redhat.com>
3102 Contributed by Apple Computer, Inc. Merged with current sources
3103 by Adam Fedor <fedor@doc.com> [cagney].
3105 * objc-lang.c: First clean-up round: comments, indentation.
3106 * objc-lang.h: Ditto.
3107 * objc-lang.y: Ditto.
3109 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3111 * maint.c (maintenance_internal_error): Print the parameter as the
3113 (maintenance_internal_warning): New function.
3114 (_initialize_maint_cmds): Add command `maint internal-warning'.
3116 * defs.h (internal_warning, internal_vwarning): Declare.
3117 * utils.c (struct internal_problem): Define.
3118 (internal_vproblem): New function.
3119 (internal_warning): New function.
3120 (internal_vwarning): New function.
3121 (internal_warning_problem, internal_error_problem): New variables.
3122 (internal_verror): Just call internal_vproblem.
3124 2002-09-18 Michael Snyder <msnyder@redhat.com>
3126 * objc-lang.c: New file, support for Objective-C.
3127 Preliminary check-in, not yet integrated into gdb.
3128 * objc-lang.h: New file.
3129 * objc-exp.y: New file.
3131 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3133 * infrun.c (signal_stop_update): Convert definition to ISO C.
3134 (signal_print_update): Ditto.
3135 (signal_pass_update): Ditto.
3136 * inflow.c (terminal_save_ours): Ditto.
3138 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3141 * config/djgpp/fnchange.lst: Handle name clashes between
3142 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3145 * i386-linux-tdep.h: Fix tipo.
3147 2002-09-18 Adam Fedor <fedor@gnu.org>
3149 * MAINTAINERS: Add myself to the Write After Approval list.
3151 2002-09-18 Jim Blandy <jimb@redhat.com>
3153 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3154 texthigh and textlow to reader-specific structs caused
3155 objfile_relocate to miss them. This is fixable, but the work that
3156 the change was supposed to prepare GDB for never got done anyway.
3158 2002-09-18 David Carlton <carlton@math.stanford.edu>
3160 * MAINTAINERS: Alphabetize Write After Approval list.
3162 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3165 * values.c (value_static_field): Call read_var_value.
3167 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3169 * valops.c (hand_function_call): Align the initial stack pointer
3170 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3171 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3173 * mips-tdep.c (mips_frame_align): New function.
3174 (mips_gdbarch_init): Set frame_align.
3175 * gdbarch.sh (FRAME_ALIGN): New method.
3176 * gdbarch.h, gdbarch.c: Re-generate.
3178 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3180 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3183 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3185 * NEWS: Mention that MIPS $fp behavior changed.
3186 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3187 reference to FP_REGNUM.
3188 (mipsnbsd_cannot_store_register): Ditto.
3189 * mips-linux-nat.c: Update copyright.
3190 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3191 (mips_linux_cannot_store_register): Ditto.
3192 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3193 * config/mips/tm-mips.h: Update copyright.
3194 (FP_REGNUM): Delete macro.
3195 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3196 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3197 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3198 (mips_r3041_reg_names, mips_r3051_reg_names)
3199 (mips_r3081_reg_names): Replace "fp" with "".
3202 2002-09-17 Theodore A. Roth <troth@verinet.com>
3204 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3205 generic_read_register_dummy() (PR gdb/703).
3206 (avr_push_return_address): #if 0 out unused vars.
3207 (avr_gdbarch_init): Enable use of avr_push_return_address().
3209 2002-09-17 Michael Snyder <msnyder@redhat.com>
3211 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3212 RTE will take care of it.
3214 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3216 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3217 invalid, return SP_REGNUM.
3219 2002-09-17 Michael Snyder <msnyder@redhat.com>
3221 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3222 point registers without sign extension.
3224 2002-09-17 Andrew Cagney <cagney@redhat.com>
3226 * blockframe.c (deprecated_read_register_dummy): Rename
3227 generic_read_register_dummy.
3228 * frame.c (frame_unwind_signed_register): New function.
3229 (frame_unwind_unsigned_register): New function.
3230 * frame.h (frame_unwind_signed_register): Declare.
3231 (frame_unwind_unsigned_register): Declare.
3232 (deprecated_read_register_dummy): Rename
3233 generic_read_register_dummy.
3235 * h8300-tdep.c (h8300_frame_chain): Update.
3236 (h8300_frame_saved_pc): Update.
3237 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3238 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3239 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3240 (s390_frame_chain): Update.
3241 * v850-tdep.c (v850_find_callers_reg): Update.
3242 (v850_frame_saved_pc): Update.
3243 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3244 (m32r_find_callers_reg): Update.
3245 (m32r_frame_saved_pc): Update.
3246 * sh-tdep.c (sh_find_callers_reg): Update.
3247 (sh64_get_saved_pr): Update.
3248 (sh_init_extra_frame_info): Update.
3249 (sh_init_extra_frame_info): Update.
3250 (sh64_init_extra_frame_info): Update.
3251 (sh64_init_extra_frame_info): Update.
3252 * mcore-tdep.c (mcore_find_callers_reg): Update.
3253 (mcore_frame_saved_pc): Update.
3254 (mcore_init_extra_frame_info): Update.
3255 * i386-tdep.c (i386_frame_saved_pc): Update.
3256 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3257 (ia64_init_extra_frame_info): Update.
3258 (ia64_init_extra_frame_info): Update.
3259 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3260 * cris-tdep.c (cris_init_extra_frame_info): Update.
3261 * avr-tdep.c (avr_frame_chain): Update.
3262 (avr_init_extra_frame_info): Update.
3263 (avr_frame_saved_pc): Update.
3264 * arm-tdep.c (arm_find_callers_reg): Update.
3265 (arm_init_extra_frame_info): Update.
3266 (arm_frame_saved_pc): Update.
3268 2002-09-17 Tom Tromey <tromey@redhat.com>
3270 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3273 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3275 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3276 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3278 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3281 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3283 * osfsolib.c: Remove file, replaced by solib-osf.c.
3284 * Makefile.in: Remove compilation rules for osfsolib.c.
3286 2002-09-16 David Carlton <carlton@math.stanford.edu>
3288 * cp-valprint.c (cp_print_class_method): Correct args to
3289 check_stub_method_group.
3291 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3293 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3294 `set architecture'. Unify naming convention of functions.
3295 (h8300_skip_prologue): Improve prologue analysis.
3296 (h8300_push_arguments): Rewritten to more closely match GCC's
3297 bizarre argument-passing behavior, along with the comment describing
3299 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3300 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3301 sim, remote-e7000.c, remote-hms.c and remote.c
3303 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3305 * i386-tdep.c (gdb_print_insn_i386): Removed.
3306 (i386_print_insn): New function.
3307 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3308 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3311 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3313 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3316 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3318 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3319 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3320 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3322 2002-09-13 Christopher Faylor <cgf@redhat.com>
3324 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3326 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3328 * gdbtypes.c (check_stub_method): Make static.
3329 (check_stub_method_group): New function.
3330 * gdbtypes.h: Update prototypes.
3331 * cp-support.c: New file.
3332 * cp-support.h: New file.
3334 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3335 (update_method_name_from_physname): New function.
3336 (read_member_functions): Correct method names for operators
3337 and v3 constructors/destructors. Separate v2 constructors and
3339 * Makefile.in (stabsread.o): Update dependencies.
3340 (SFILES): Add cp-support.c.
3341 (COMMON_OBS): Add cp-support.o.
3342 (cp_support_h, cp-support.o): Add.
3344 * cp-valprint.c (cp_print_class_method): Call
3345 check_stub_method_group instead of check_stub_method. Remove
3347 * p-valprint.c (pascal_object_print_class_method): Likewise.
3348 * valops.c (search_struct_method): Likewise.
3349 (find_method_list, value_struct_elt_for_reference): Likewise.
3351 2002-09-13 Andrew Cagney <cagney@redhat.com>
3353 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3354 * gdbarch.h, gdbarch.c: Regenerate.
3356 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3358 * frame.c (find_saved_register): Delete function.
3359 * frame.h (find_saved_register): Delete declaration.
3362 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3364 * mips-tdep.c (read_next_frame_reg): Re-hack using
3365 frame_register_unwind.
3367 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3369 * mips-tdep.c (mips_get_saved_register): Re-hack using
3370 frame_register_unwind.
3372 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3374 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3375 vector. Will be useful for Interix.
3376 * gdbarch.h, gdbarch.c: Regenerate.
3378 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3379 name of the malloc function by NAME_OF_MALLOC.
3381 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3383 * value.h (find_function_in_inferior): Add const keyword to
3384 one of the parameters. Allows us to invoke this function with
3386 * valops.c (find_function_in_inferior): Likewise.
3388 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3390 * exec.c (xfer_memory): Fix compilation warning with old versions
3392 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3394 2002-09-12 David Carlton <carlton@math.stanford.edu>
3396 * symtab.h: Run through gdb_indent.h.
3397 Add 2002 to Copyright year list.
3399 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3401 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3403 * MAINTAINERS: Add myself to write after approval list.
3405 2002-09-11 J. Brobecker <brobecker@gnat.com>
3407 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3409 2002-09-11 J. Brobecker <brobecker@gnat.com>
3411 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3414 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3416 * procfs.c (do_detach): Clear current signal, not just fault.
3417 Corrects problem with breakpoint trap signal leaking to detached
3420 2002-09-10 Michael Snyder <msnyder@redhat.com>
3422 * buildsym.c (finish_block): Protect against null pointer.
3424 2002-09-10 Andrew Cagney <cagney@redhat.com>
3426 * infcmd.c (default_print_registers_info): Send all output to
3427 ``file'' instead of ``gdb_stdout''.
3429 2002-09-10 Michael Snyder <msnyder@redhat.com>
3431 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3432 LONGEST, and use signed register read (addresses are sign-
3435 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3437 * event-loop.c (gdb_do_one_event): Make public.
3438 * event-loop.h (gdb_do_one_event): Declare.
3440 2002-09-10 Jeff Law <law@redhat.com>
3442 * infttrace.c (child_resume): Simplify and rework to avoid
3445 2002-09-09 Fred Fish <fnf@intrinsity.com>
3447 * printcmd.c (print_scalar_formatted): "len" is the number of
3448 target bytes, NOT the number of target bits.
3450 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3452 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3453 * top.c (init_main): Set rl_terminal_name.
3455 2002-09-08 Aidan Skinner <aidan@velvet.net>
3457 * ada-lang.c (ada_array_bound, ada_type_match,
3458 _initialize_ada_language): Fix K&R definitions.
3459 * ada-tasks.c (get_current_task): Fix K&R definitions.
3460 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3462 2002-09-07 Christopher Faylor <cgf@redhat.com>
3464 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3467 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3469 * i386-tdep.c (i386_register_virtual_type,
3470 i386_register_convertible, i386_register_convert_to_virtual,
3471 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3472 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3473 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3474 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3475 Don't set push_arguments twice.
3477 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3478 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3479 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3480 sigtramp_end to NULL.
3481 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3483 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3485 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3488 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3489 * gdbarch.h, gdbarch.c: Re-generate.
3490 * blockframe.c (find_pc_sect_partial_function): Convert to use
3491 SIGTRAMP_START_P predicate.
3493 2002-09-05 Michael Snyder <msnyder@redhat.com>
3495 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3496 generic_dummy_frame method and old method. Also distinguish
3497 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3498 (arm_extract_return_value): Use new regcache method.
3500 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3501 adjustment that doesn't conform to the ABI.
3502 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3503 saved regcache, not from current regcache.
3505 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3507 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3510 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3512 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3513 if arm_apcs_32 is false.
3515 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3517 GDB 5.3 branch created.
3519 2002-09-03 Theodore A. Roth <troth@verinet.com>
3521 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3522 generic_unwind_get_saved_register.
3524 2002-09-03 David Carlton <carlton@math.stanford.edu>
3526 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3527 argument (PR gdb/653). Update call to smash_to_method_type.
3528 (read_structure_scope): Update call to dwarf2_add_member_fn.
3530 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3532 * x86-64-linux-tdep.c: Include gdb_string.h
3533 * x86-64-linux-nat.c: Ditto.
3535 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3537 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3538 when YYDEBUG is set to 1.
3539 * c-exp.y: Likewise.
3540 * f-exp.y: Likewise.
3541 * jv-exp.y: Likewise.
3542 * m2-exp.y: Likewise.
3543 * p-exp.y: Likewise.
3545 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3547 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3549 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3550 solib_svr4_fetch_link_map_offsets to
3551 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3552 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3553 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3554 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3555 solib-svr4.o, and solib-legacy.o.
3556 * config/i386/tm-nbsd.h: Include solib.h.
3558 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3560 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3561 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3562 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3563 comment noting that this needs its own target configuration.
3564 * config/i386/nbsd.mt: New file.
3565 * config/i386/nbsdaout.mt: Remove.
3566 * config/i386/nbsdelf.mt: Ditto.
3567 * config/i386/tm-nbsdaout.h: Ditto.
3569 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3571 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3572 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3573 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3575 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3576 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3577 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3579 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3581 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3582 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3583 * i386-tdep.h (i386bsd_init_abi): New prototype.
3584 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3585 function declaration.
3586 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3587 for NetBSD-a.out or NetBSD-ELF.
3588 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3589 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3590 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3591 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3593 (i386nbsd_pc_in_sigtramp): New function.
3594 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3595 i386nbsd_pc_in_sigtramp.
3596 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3597 and i386nbsdelf_init_abi OS ABI handlers.
3598 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3599 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3601 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3603 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3604 registers if the target really has them.
3606 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3608 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3611 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3613 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3615 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3616 (alphanbsd_skip_sigtramp_frame): New functions.
3617 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3618 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3619 to alphanbsd_sigcontext_addr.
3621 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3623 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3625 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3626 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3627 nbsd_pc_in_sigtramp.
3628 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3629 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3630 * nbsd-tdep.c: Include gdb_string.h.
3631 (nbsd_pc_in_sigtramp): New function.
3632 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3633 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3634 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3635 ppcnbsd_pc_in_sigtramp.
3636 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3637 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3638 shnbsd_pc_in_sigtramp.
3639 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3640 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3641 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3643 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3645 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3646 watchpoints to NULL.
3647 (insert_breakpoints): set val field of watchpoints if NULL.
3650 2002-08-29 Jim Blandy <jimb@redhat.com>
3652 * symtab.c (lookup_symbol_aux): In the cases where we find a
3653 minimal symbol of an appropriate name and use its address to
3654 select a symtab to read and search, use `name' (as passed to us)
3655 as the demangled name when searching the symtab's global and
3656 static blocks, not the minsym's name.
3658 2002-08-29 Keith Seitz <keiths@redhat.com>
3660 * stack.c (print_frame_info_base): Always set current_source_symtab
3661 and current_source_line.
3663 2002-08-29 Donn Terry <donnte@microsoft.com>
3665 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3667 2002-08-28 Keith Seitz <keiths@redhat.com>
3669 * stack.c (select_frame): Add FIXME concerning selected-frame
3671 (select_frame_command): Send selected-frame-level-changed
3672 event notification, but only if the level actually changed.
3673 (up_silently_base): Add selected-frame-level-changed event
3675 (down_silently_base): Likewise.
3677 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3679 * Makefile.in: Update dependencies for all gdb/*.c files.
3681 2002-08-27 Tom Tromey <tromey@redhat.com>
3683 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3684 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3685 Update dependencies.
3686 * i387-tdep.c: Include gdb_string.h.
3687 * osabi.c: Likewise.
3688 * i386-linux-nat.c: Likewise.
3689 * lin-lwp.c: Likewise.
3690 * ax-gdb.c: Likewise.
3691 * signals/signals.c: Likewise.
3692 * jv-valprint.c: Likewise.
3693 * p-lang.c: Likewise.
3694 * c-valprint.c: Likewise.
3695 * cp-abi.c: Likewise.
3697 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3699 * cli/cli-script.h (copy_command_lines): Export.
3700 * breakpoint.c: Include cli/cli-script.h.
3701 * Makefile.in (breakpoint.o): Update dependencies.
3703 2002-08-26 Michael Snyder <msnyder@redhat.com>
3705 * breakpoint.c (insert_breakpoints): Protect all references
3706 to 'process_warning'. Shorten long lines.
3708 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3710 * cli/cli-script.c (copy_command_lines): New function.
3711 * defs.h (copy_command_lines): Export.
3712 * testsuite/gdb.base/commands.exp: New tests for commands
3713 attached to a temporary breakpoint, and for commands that
3714 delete the breakpoint they are attached to.
3716 2002-08-26 Michael Snyder <msnyder@redhat.com>
3718 * breakpoint.c (bpstat_stop_status): Instead of copying the
3719 pointer to the breakpoint commands struct, make a new copy
3720 of the struct and point to that.
3721 (bpstat_clear): Free the commands struct.
3722 (bpstat_clear_actions): Free the commands struct.
3723 (bpstat_do_actions): Free the command actions. Also execute
3724 the local cleanups, instead of deleting them.
3725 (delete_breakpoint): Leave the commands field of the bpstat
3726 chain alone -- it will be freed later.
3728 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3730 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3731 deleted in 2002-08-20 commit. This function is still used by
3734 2002-08-26 Keith Seitz <keiths@redhat.com>
3736 * gdb-events.sh: Add selected-frame-level-changed event.
3737 * gdb-events.c: Regenerated.
3738 * gdb-events.h: Regenerated.
3740 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3743 * inflow.c (terminal_save_ours): New function to save terminal
3745 * inferior.h (terminal_save_ours): Declare.
3746 * target.c (debug_to_terminal_save_ours): New function.
3747 (cleanup_target): Defaults to_terminal_save_ours.
3748 (update_current_target): Inherit to_terminal_save_ours.
3749 (setup_target_debug): Set to_terminal_save_ours.
3750 * target.h (target_terminal_save_ours): New to save terminal settings.
3751 (target_ops): New member to_terminal_save_ours.
3752 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3753 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3754 * inftarg.c (init_child_ops): Likewise.
3755 * m3-nat.c (init_m3_ops): Likewise.
3756 * procfs.c (init_procfs_ops): Likewise.
3757 * wince.c (init_child_ops): Likewise.
3758 * win32-nat.c (init_child_ops): Likewise.
3759 * sol-thread.c (init_sol_thread_ops): Likewise.
3761 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3763 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3764 use regcache_* functions.
3765 (i386_gdbarch_init): Set store_return_value instead of
3766 deprecated_store_return_value.
3768 * regcache.c (regcache_raw_write_signed,
3769 regcache_raw_write_unsigned): New functions.
3770 * regcache.h (regcache_raw_write_signed,
3771 regcache_raw_write_unsigned): New prototypes.
3773 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3775 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3776 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3777 source file dependencies. Cleanup corresponding generator rules.
3779 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3781 * regcache.h (register_offset_hack): Declare.
3782 (regcache_cooked_read_using_offset_hack): Declare.
3783 (regcache_cooked_write_using_offset_hack): Declare.
3785 * regcache.c (register_offset_hack): New function.
3786 (regcache_cooked_read_using_offset_hack): New function.
3787 (regcache_cooked_write_using_offset_hack): New function.
3788 (regcache_dump): Check that the registers, according to their
3789 offset, are packed hard against each other.
3790 (cooked_xfer_using_offset_hack): New function.
3792 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3794 * regcache.c (struct regcache_descr): Add field register_type.
3795 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3797 (init_regcache_descr): Initialize register_type. Pass the descr
3798 to init_legacy_regcache_descr. Use register_type instead of
3799 REGISTER_VIRTUAL_TYPE.
3800 (register_type): New function.
3801 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3802 * regcache.h (register_type): Declare.
3804 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3806 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3807 instead of deprecated_store_return_value. Fix fallout from
3808 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3810 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3812 * regcache.c (max_register_size): New function.
3813 (init_legacy_regcache_descr): Ensure that max_register_size is
3814 large enough for REGISTER_VIRTUAL_SIZE.
3815 * regcache.h (max_register_size): Declare.
3817 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3819 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3821 (e500_extract_return_value): Change type of valbuf pointer to
3824 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3826 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3829 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3830 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3831 long long) to prevent compiler warning on 64-bit systems.
3833 2002-08-23 Andrew Cagney <cagney@redhat.com>
3835 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3836 (DEPRECATED_STORE_RETURN_VALUE): New method.
3837 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3838 * gdbarch.h, gdbarch.c: Re-generate.
3840 * values.c (set_return_value): Pass current_regcache to
3842 * arch-utils.h (legacy_store_return_value): Declare.
3843 * arch-utils.c (legacy_store_return_value): New function.
3844 (legacy_extract_return_value): Update parameters.
3846 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3848 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3849 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3850 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3851 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3852 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3853 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3854 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3855 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3856 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3857 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3860 * i386-tdep.c (i386_extract_return_value): Update.
3861 * arch-utils.c (legacy_extract_return_value): Update.
3862 * frv-tdep.c (frv_gdbarch_init): Update.
3863 * cris-tdep.c (cris_gdbarch_init): Update.
3864 * d10v-tdep.c (d10v_gdbarch_init): Update.
3865 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3866 * m68k-tdep.c (m68k_gdbarch_init): Update.
3867 * mcore-tdep.c (mcore_gdbarch_init): Update.
3868 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3869 * s390-tdep.c (s390_gdbarch_init): Update.
3870 * sparc-tdep.c (sparc_gdbarch_init): Update.
3871 * sh-tdep.c (sh_gdbarch_init): Update.
3872 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3873 * v850-tdep.c (v850_gdbarch_init): Update.
3874 * avr-tdep.c (avr_gdbarch_init): Update.
3875 * ia64-tdep.c (ia64_gdbarch_init): Update.
3876 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3877 * vax-tdep.c (vax_gdbarch_init): Update.
3878 * alpha-tdep.c (alpha_gdbarch_init): Update.
3879 * arm-tdep.c (arm_gdbarch_init): Update.
3880 * mips-tdep.c (mips_gdbarch_init): Update.
3881 * i386-tdep.c (i386_gdbarch_init): Update.
3883 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3885 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3886 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3888 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3890 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3893 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3895 * infrun.c (handle_inferior_event): Move a comment outside of a
3896 function call, in order to avoid indent reformatting this part
3897 of the code in an unreadable way.
3899 2002-08-23 Grace Sainsbury <graces@redhat.com>
3901 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3902 when breakpoints fail. Move general breakpoint error messages to
3904 * breakpoint.c (insert_breakpoints): Change warnings when
3905 breakpoints are nto inserted to specify the type. Remove call to
3906 memory_error when hardware breakpoints can't be inserted. Remove
3907 multiple calls to warning so all messages are sent to the user at
3909 (delete_breakpoints): Make insert error messsages more explicit.
3911 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3913 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3914 gdbserver/ChangeLog.
3916 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3918 * i386-tdep.c: Include "objfiles.h".
3919 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3920 skip_trampoline_code.
3921 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3922 (CPLUS_MARKER): Define to '.'.
3924 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3926 (linux_corefile_thread_callback): Increase args->num_notes.
3927 (linux_make_note_section): Initialize thread_args.num_notes, and
3928 use it to determine whether notes for any threads were created.
3930 2002-08-23 Donn Terry <donnte@microsoft.com>
3932 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3933 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3935 (write_with_trace): Conditionalize out the switch branch handling
3936 PCSHOLD if the corresponding macro is not defined. Likewise for
3937 PRSABORT and PRSTOP.
3938 This change will be needed by the Interix port.
3940 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3942 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3943 write_register wherever possible instead of manipulating the
3944 register bytes directly.
3945 Assign VALUE_CONTENTS to a variable and use that.
3946 The GPR numbers are now dependent on the architecture.
3948 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3950 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3952 (skip_prologue): Add support for BookE/e500 instructions.
3953 (e500_extract_return_value): New function.
3954 (frame_get_saved_regs): Add support for saving ev registers and
3956 (e500_store_return_value): New function.
3957 (rs6000_gdbarch_init): Move up default intializations of
3958 deprecated_extract_return_value and store_return_value. Overwrite
3959 init of store_return_value with e500 specific version.
3960 Set extract_return_value for e500.
3962 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3964 * blockframe.c (generic_call_dummy_register_unwind): Use
3965 regcache_cooked_read to catch cases in which the variable is
3966 stored in a pseudo register.
3968 2002-08-22 Andrew Cagney <cagney@redhat.com>
3970 * NEWS: Mention that the i960 has been made obsolete.
3971 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3973 (remote-nrom.o): Obsolete target.
3974 (remote-nindy.o, i960-tdep.o): Ditto.
3975 * remote-nrom.c: Make file obsolete.
3976 * remote-nindy.c, remote-vx960.c: Ditto.
3977 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3978 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3979 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3980 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3981 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3982 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3983 i960-*-vxworks* obsolete.
3984 * MAINTAINERS: Note that the i960 is obsolete.
3986 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3988 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3989 detach to allow reinitialization.
3991 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3993 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3996 2002-08-22 Jim Blandy <jimb@redhat.com>
3998 * coffread.c (coff_symfile_read): Don't try to read the line
3999 number table from disk if the image file doesn't have a symbol
4000 table; we'll never actually look at the info anyway, and Windows
4001 ships DLL's with bogus file offsets for the line number data.
4003 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4005 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4008 2002-08-21 Michael Snyder <msnyder@redhat.com>
4010 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4011 (MSYMBOL_SIZE): Replace macro with function.
4012 (DEFAULT_MIPS_TYPE): Delete unused macro.
4013 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4014 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4016 2002-08-21 Jim Blandy <jimb@redhat.com>
4018 * valops.c (value_cast): Simplify and correct logic for doing a
4019 static cast from a pointer to a base class to a pointer to a
4022 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4024 * infcmd.c (default_print_registers_info): Replace
4026 (registers_info): Use gdbarch_print_registers_info instead of
4028 * inferior.h (default_print_registers_info): Replace
4030 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4031 (DO_REGISTERS_INFO): Change to a predicate function.
4032 * gdbarch.h, gdbarch.c: Regenerate.
4034 2002-08-21 Keith Seitz <keiths@redhat.com>
4036 * gdb-events.sh: Add target-changed event.
4037 * gdb-events.c: Regenerated.
4038 * gdb-events.c: Regenerated.
4039 * valops.c (value_assign): Add target-changed event notification
4040 to inlval_register, lval_memory, and lval_reg_frame_relative.
4042 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4044 * NEWS: Add an entry regarding the improvement of the next/step
4045 operation on Alpha Tru64 multi-processor machines.
4047 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4049 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4051 * Makefile.in: Update all _h macro definitions.
4052 * Makefile.in (install-gdbtk): Move to install section.
4053 (rdi-share/libangsd.a): Move to end of file.
4055 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4057 * frame.c (frame_register_unwind): When a register, set addrp to
4058 the register's byte.
4060 2002-08-20 Michael Snyder <msnyder@redhat.com>
4062 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4063 used locally, so move them from the target machine header to here.
4064 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4065 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4067 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4069 2002-08-20 Andrew Cagney <cagney@redhat.com>
4071 * NEWS: Mention that the Apollo line was made obsolete.
4072 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4073 m68*-hp-hpux* obsolete.
4074 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4075 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4076 * buildsym.c (make_blockvector): Make static.
4077 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4078 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4079 (ALLDEPFILES): Remove dstread.c.
4080 (dstread.o): Obsolete make rule.
4081 * dstread.c: Makefile obsolete.
4083 * config/m68k/hp300hpux.mt: Ditto.
4084 * config/m68k/hp300hpux.mh: Ditto.
4085 * config/m68k/hp300bsd.mt: Ditto.
4086 * config/m68k/hp300bsd.mh: Ditto.
4087 * config/m68k/apollo68b.mt: Ditto.
4088 * config/m68k/apollo68v.mh: Ditto.
4089 * config/m68k/apollo68b.mh: Ditto.
4091 2002-08-20 Michael Snyder <msnyder@redhat.com>
4093 * mips-tdep.c (mips_in_return_stub): Make static.
4094 (mips_gdbarch_init): Set in_solib_return_trampoline.
4095 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4097 2002-08-20 Michael Snyder <msnyder@redhat.com>
4099 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4100 * gdbarch.c, gdbarch.h: Regenerate.
4101 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4103 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4105 2002-08-20 Michael Snyder <msnyder@redhat.com>
4107 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4108 (mips_gdbarch_init): Set skip_trampoline_code,
4109 in_solib_call_trampoline.
4110 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4111 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4113 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4115 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4117 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4118 vector type for ev registers.
4119 (e500_pseudo_register_read): New function.
4120 (e500_pseudo_register_write): New function.
4121 (e500_dwarf2_reg_to_regnum): New function.
4122 (PPC_UISA_NOFP_SPRS): New macro.
4123 (PPC_EV_REGS): New macro.
4124 (PPC_GPRS_PSEUDO_REGS): New macro.
4125 (registers_e500): New register set for e500.
4126 (variants): Add e500 variant.
4127 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4128 before setting architectural dependent variations. Initialize ev
4129 registers numbers. Add case for e500 architecture. Set the
4130 number of pseudo registers.
4132 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4134 * rs6000-tdep.c: Clean up comments.
4136 2002-08-20 Andrew Cagney <cagney@redhat.com>
4138 * h8300-tdep.c: Re-indent file.
4140 2002-08-20 Jim Blandy <jimb@redhat.com>
4142 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4145 2002-08-20 Keith Seitz <keiths@redhat.com>
4147 * breakpoints.c (watch_command_1): Use internal breakpoint
4148 when setting a watchpoint_scope breakpoint.
4150 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4152 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4153 (build_builtin_type_vec64i): Ditto.
4154 (build_builtin_type_vec128): Ditto.
4155 (build_builtin_type_vec128i): Ditto.
4157 2002-08-19 Michael Snyder <msnyder@redhat.com>
4159 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4160 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4161 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4162 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4163 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4164 CALL_DUMMY_ADDRESS): Delete.
4165 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4166 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4167 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4168 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4169 push_return_address.
4170 (mips_register_raw_size, mips_eabi_use_struct_convention,
4171 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4172 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4173 mips_init_extra_frame_info, mips_eabi_push_arguments,
4174 mips_n32n64_push_arguments, mips_push_return_address,
4175 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4176 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4178 2002-08-19 Michael Snyder <msnyder@redhat.com>
4180 * mips-tdep.c (mips_frame_num_args): New function.
4181 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4182 frame_saved_pc, frame_args_address, frame_locals_address,
4183 frame_num_args, and frame_args_skip.
4184 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4185 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4186 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4187 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4189 2002-08-20 Michael Snyder <msnyder@redhat.com>
4191 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4192 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4193 * mips-tdep.c (mips_store_struct_return): New function.
4194 (mips_extract_struct_value_address): New function.
4195 (mips_gdbarch_init): Set store_struct_return and
4196 extract_struct_value_address.
4198 2002-08-20 David Carlton <carlton@math.stanford.edu>
4200 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4201 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4202 (read_file_scope): Check that line_header is nonzero before
4203 decoding macro information.
4205 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4207 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4208 flag the general-purpose registers as floating-point on targets
4209 that don't support the floating-point registers.
4211 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4213 * rs6000-tdep.c (altivec_register_p): Delete.
4214 (rs6000_do_altivec_registers): Delete.
4215 (rs6000_altivec_registers_info): Delete.
4216 (rs6000_do_registers_info): Delete.
4217 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4218 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4220 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4222 * infcmd.c (do_registers_info): Print vector registers in hex
4224 (print_vector_info): Check that printing registers
4226 (print_float_info): Ditto.
4228 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4230 * mips-tdep.c (mips_gdbarch_init): Update.
4231 (mips_o32_extract_return_value): Rewrite.
4232 (mips_o32_store_return_value): Rewrite.
4233 (mips_o32_xfer_return_value): New function.
4234 (mips_xfer_register): Tweak debug print message. Allow for
4235 buf_offset when dumping the value transfered.
4237 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4239 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4240 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4241 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4242 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4243 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4245 2002-08-14 Michael Snyder <msnyder@redhat.com>
4247 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4249 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4251 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4253 (P): New macro to define a register as a pseudo register.
4254 (R, R4, R8, R16, FR32, R64, R0): Updated.
4255 (struct variant): Add new fields for number of pseudo registers
4256 and number of total registers.
4257 (tot_num_registers): New macro replacing....
4258 (num_registers): ...deleted macro.
4259 (num_registers): New function.
4260 (num_pseudo_registers): New function.
4261 (variants): Update all variants to intialize new fields correctly.
4262 Postpone initialization of number of pseudo regs and real regs.
4263 (init_variants): New function.
4264 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4267 2002-08-19 David Carlton <carlton@math.stanford.edu>
4269 * valops.c (search_struct_field): Change error message to treat
4270 return value of 0 from value_static_field as meaning that field is
4272 (value_struct_elt_for_reference): Ditto.
4273 * values.c (value_static_field): Treat an unresolved location the
4274 same as a nonexistent symbol. Fix PR gdb/635.
4275 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4276 enclosed. Fix PR gdb/574.
4277 * MAINTAINERS: Add self to Write After Approval list.
4279 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4281 * mips-tdep.c (mips_xfer_register): New function.
4282 (mips_n32n64_extract_return_value): Rewrite.
4283 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4284 instead of deprecated_extract_return_value.
4286 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4288 * rs6000-tdep.c (TDEP): Delete macro.
4289 (branch_dest): Replace use of TDEP macro with its body.
4290 (rs6000_pop_frame): Ditto.
4291 (rs6000_push_arguments): Ditto.
4292 (rs6000_skip_trampoline_code): Ditto.
4293 (rs6000_frame_saved_pc): Ditto.
4294 (rs6000_frame_chain): Ditto.
4295 (rs6000_register_name): Ditto.
4296 (rs6000_register_byte): Ditto.
4297 (rs6000_register_raw_size): Ditto.
4298 (rs6000_register_virtual_type): Ditto.
4299 (rs6000_register_convertible): Ditto.
4300 (rs6000_convert_from_func_ptr_addr): Ditto.
4302 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4304 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4306 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4307 MIPS_LINUX_JB_ELEMENT_SIZE.
4308 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4309 for MAX_REGISTER_RAW_SIZE arrays.
4310 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4311 MIPS_LINUX_JB_ELEMENT_SIZE.
4313 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4315 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4317 2002-08-19 Aidan Skinner <aidan@velvet.net>
4319 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4320 ada-valprint.c ada-tasks.c.
4321 (YYFILES): Add ada-exp.y.
4322 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4323 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4324 (ada-exp.tab.o): New target.
4326 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4328 * regcache.c (regcache_xfer_part): New function.
4329 (regcache_raw_read_part): New function.
4330 (regcache_raw_write_part): New function.
4331 (regcache_cooked_read_part): New function.
4332 (regcache_cooked_write_part): New function.
4333 * regcache.h (regcache_raw_read_part): Declare.
4334 (regcache_raw_write_part): Declare.
4335 (regcache_cooked_read_part): Declare.
4336 (regcache_cooked_write_part): Declare.
4338 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4340 * remote.c (remote_open_1): Add async_p.
4341 (remote_async_open_1): Delete.
4342 (open_remote_target): Delete.
4343 (remote_open, extended_remote_open): Update calls to remote_open_1.
4344 (remote_async_open, extended_remote_async_open): Call
4345 remote_open_1 instead of remote_async_open_1.
4347 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4349 * blockframe.c: Fix a few coding standard violations.
4351 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4353 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4355 * config/i386/tm-i386sco5.h: ... here. File removed.
4356 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4358 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4359 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4360 (TM_FILE): Set to tm-i386.h.
4361 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4362 * config/i386/tm-i386v.h: Remove file.
4363 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4364 instead of "i386/tm-i386v.h".
4365 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4366 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4368 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4369 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4372 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4374 * config/i386/nm-i386v.h: Add protection against
4376 (i386_register_u_addr): Remove prototype.
4377 (register_u_addr): New prototype.
4378 (REGISTER_U_ADDR): Redefine accordingly.
4379 * i386v-nat.c: Improve several comments.
4380 (i386_register_u_addr): Change signature and rename to
4381 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4384 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4386 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4387 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4388 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4389 deprecated_extract_return_value.
4390 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4391 rename mips_o32o64_push_arguments.
4392 (mips_gdbarch_init): Update.
4393 (mips_extract_return_value): Delete.
4394 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4395 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4396 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4397 (mips_n32n64_extract_return_value): Clone
4398 mips_extract_return_value.
4399 (mips_store_return_value): Delete.
4400 (mips_o32_store_return_value): Clone mips_store_return_value.
4401 (mips_o64_store_return_value): Clone mips_store_return_value.
4402 (mips_eabi_store_return_value): Clone mips_store_return_value.
4403 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4405 2002-08-18 Aidan Skinner <aidan@velvet.net>
4407 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4408 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4410 2002-08-18 Aidan Skinner <aidan@velvet.net>
4412 * ada-lang.c: Run through gdb_indent.sh.
4413 * ada-lang.h: Run through gdb_indent.sh.
4414 * ada-tasks.c: Run through gdb_indent.sh.
4415 * ada-typeprint.c: Run through gdb_indent.sh.
4416 * ada-valprint.c: Run through gdb_indent.sh.
4418 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4420 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4423 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4425 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4427 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4428 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4430 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4431 write_register_gen instead of write_register_bytes.
4433 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4434 i[3456]-*-osf1mk* configurations have been made obsolete.
4435 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4436 i[3456]86-*-osf1mk* hosts obsolete.
4437 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4439 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4440 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4441 config/i386/i386m3.mt, config/i386/nm-m3.h,
4442 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4443 config/i386/i386mk.mh, config/i386/i386mk.mt,
4444 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4446 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4447 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4448 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4450 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4452 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4453 (hppa_value_returned_from_stack): Declare.
4454 (hppa_extract_return_value): Declare.
4455 * config/pa/hppa.mt: New file.
4456 * configure.tgt: Recognize hppa*-*-*.
4457 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4459 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4461 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4464 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4466 * top.c (gdb_rl_operate_and_get_next): Make sure
4467 operate-and-get-next functions correctly even when the history
4468 list is completely filled.
4470 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4472 * MAINTAINERS (Target Instruction Set Architectures): Rename
4473 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4474 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4475 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4476 already listed under Host/Native.
4478 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4479 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4482 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4484 * config/ia64/ia64.mt: New file.
4485 * config/alpha/alpha.mt: New file.
4486 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4487 ia64-linux-gnu. Mention that ia64-elf is broken.
4488 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4490 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4492 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4493 generic_func_frame_valid instead of func_frame_valid.
4495 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4497 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4498 procfs appears to be broken when debugging on multi-processor
4499 machines. So enable software single stepping in order to avoid
4500 using the procfs interface to do next/step operations, using
4501 internal breakpoints instead.
4503 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4504 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4505 make this pc address equal to the value it would have if the
4506 system stepping capability was used. Also set a new flag used
4507 to ensure that we don't readjust the PC one more time later.
4509 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4510 address by DECR_PC_AFTER_BREAK when software single step is
4511 in use for this architecture, as this has already been taken
4512 care of in handle_inferior_event().
4514 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4516 * infrun.c (handle_inferior_event): Minor reformatting, to make
4517 a rather long condition expression easier to read.
4519 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4521 * Makefile.in (gdbtk.o): Move to end of file.
4522 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4523 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4524 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4525 (gdbtk-wrapper.o, gdbres.o): Ditto.
4527 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4529 * Makefile.in (copying.o): Separate out compile rule.
4530 (hpux-thread.o, procfs.o, signals.o): Ditto.
4531 (v850ice.o, z8k-tdep.o): Ditto.
4532 (tui-file.o): Move to TUI section.
4533 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4534 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4536 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4538 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4539 skip_trampoline_code, for better namespace-proofing.
4541 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4543 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4545 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4547 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4549 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4550 signal, check whether we hit a breakpoint before checking for a
4551 single step breakpoint. Otherwise, GDB fails to notice that a
4552 breakpoint has been hit when stepping onto a breakpoint.
4554 2002-08-16 Keith Seitz <keiths@redhat.com>
4556 * gdb-events.sh (clear_gdb_event_hooks): New function.
4557 * gdb-events.c: Regenerate.
4558 * gdb-events.h: Regenerate.
4560 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4562 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4563 not_a_sw_breakpoint.
4564 * breakpoint.h (bpstat_stop_status): Add parameter names.
4566 2002-08-16 Grace Sainsbury <graces@redhat.com>
4568 * remote.c (remote_insert_hw_breakpoint)
4569 (remote_remove_hw_breakpoint): Fix calculation of length field
4572 2002-08-15 Michael Snyder <msnyder@redhat.com>
4574 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4575 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4576 (supply_fpregset): Ditto.
4578 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4579 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4580 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4581 (TARGET_READ_SP): Delete.
4582 (DO_REGISTERS_INFO): Delete.
4583 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4585 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4586 from macros to functions.
4588 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4589 (mips_register_convertible, mips_register_convert_to_virtual,
4590 mips_register_convert_to_raw): Make static.
4591 (mips_read_sp): New function.
4592 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4593 (mips_do_registers_info): Make static.
4594 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4595 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4596 (mips_register_convert_from_type, mips_register_convert_to_type):
4598 (mips_gdbarch_init): Set up function_start_offset,
4599 register_virtual_size, pc_in_sigtramp.
4601 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4603 * infcmd.c (vector_info): New function.
4604 (_initialize_infcmd): Add command "info vector".
4605 (print_vector_info): New function.
4607 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4608 * gdbarch.h, gdbarch.c: Regenerate.
4610 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4612 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4613 ``print_all''. Only print vector registers when ``print_all''.
4615 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4617 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4618 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4620 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4621 Add `args' parameter.
4622 * gdbarch.h, gdbarch.c: Regenerate.
4624 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4626 * infcmd.c (float_info): Call print_float_info.
4627 (print_float_info): New function. By default, print the
4628 floating-point registers.
4630 * arch-utils.h (default_print_float_info): Delete declaration.
4631 * arch-utils.c (default_print_float_info): Delete function.
4633 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4635 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4638 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4641 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4642 * configure.host: Make i[3456]86-*-aix host obsolete.
4643 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4644 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4645 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4646 config/i386/xm-i386aix.h: Make files obsolete.
4647 * i386aix-nat.c: Make file obsolete.
4648 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4649 (i386aix-nat.o): Make target obsolete.
4651 * config/i386/nm-gnu.h: Removed.
4652 * config/i386/nm-i386gnu.h: New file.
4653 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4654 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4656 * config/i386/tm-i386gnu.h: ... here. Removed.
4657 * config/i386/xm-i386gnu.h: Removed.
4658 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4659 (NAT_FILE): Set to nm-i386gnu.h.
4660 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4661 * i386-tdep.c: New file.
4662 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4663 (i386gnu-tdep.o): Specify dependencies.
4665 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4667 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4668 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4669 Adjust a few comments to reflect reality a bit closer.
4670 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4671 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4672 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4673 target_insert_watchpoint, target_remove_watchpoint):
4675 * config/i386/nm-i386sco5.h: ... here.
4676 (kernel_u_size): Add prototype. Improve a few comments and add
4677 protection against multiple inclusion.
4679 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4682 * uw-thread.c (SP_ARG0): Define if not already defined.
4683 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4685 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4687 * config/i386/tm-i386.h: Don't include "regcache.h".
4689 * i387-tdep.h (i387_print_float_info): New prototype.
4690 * i387-tdep.c (print_i387_value, print_i387_ext,
4691 print_i387_status_word, print_i387_control_word): Add `struct
4692 ui_file *' argument and use it for output.
4693 (i387_print_float_info): Renamed from i387_float_info. Add
4694 `struct gdbarch *' and `struct ui_file *' arguments and use the
4696 * i386-tdep.c: Include "i387-tdep.h".
4697 (i386_gdbarch_init): Set print_float_info.
4698 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4699 (FLOAT_INFO): Remove define.
4701 2002-08-13 Michael Snyder <msnyder@redhat.com>
4703 * mips-tdep.c (mips_push_arguments): Rename to
4704 mips_eabi_push_arguments, and tune for EABI.
4705 (MIPS_REGS_HAVE_HOME_P): Delete.
4706 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4707 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4708 Delete references to mips_regs_have_home_p.
4710 2002-08-14 Keith Seitz <keiths@redhat.com>
4712 * Makefile.in (install-gdbtk): Create insight plugin directory.
4713 Install plugins.tcl file.
4715 2002-08-14 Keith Seitz <keiths@redhat.com>
4717 * configure.in: Move SUBDIRS to near top of the file so that
4718 --enable options may add things to it.
4719 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4720 * configure: Regenerate.
4722 2002-08-13 Michael Snyder <msnyder@redhat.com>
4724 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4725 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4726 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4728 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4730 * vax-tdep.c (vax_get_saved_register): Delete function.
4731 (vax_gdbarch_init): Update.
4732 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4733 (ns32k_gdbarch_init): Update.
4734 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4735 (alpha_gdbarch_init): Update.
4737 2002-08-13 Andrew Cagney <cagney@redhat.com>
4739 * regcache.c (init_regcache_descr): Overallocate the
4740 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4741 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4743 (set_register_cached): Add range checking assertions. Use
4746 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4748 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4749 numbers for MMX registers.
4751 2002-08-13 Andrew Cagney <cagney@redhat.com>
4753 * i386-tdep.c (i386_gdbarch_init): Use
4754 generic_unwind_get_saved_register.
4756 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4758 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4759 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4761 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4762 Delete. Add comment regarding this now-deleted target method.
4764 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4766 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4767 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4768 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4769 real PC and the page number (if it's within the memory bank window).
4770 (m68hc11_pseudo_register_write): Likewise when saving.
4771 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4772 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4773 (m68hc11_register_raw_size): And use 32-bit for it.
4774 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4775 16K memory bank is used by the prog; also use the virtual pc.
4777 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4779 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4780 (m68hc11_gdbarch_init): Install it in gdbarch.
4781 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4782 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4783 (MSYMBOL_SIZE): New for documentation.
4784 (insn_return_kind): Enum to specify how a function returns.
4785 (frame_extra_info): Cleanup and record the return mode.
4786 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4787 register in address computation.
4788 (m68hc11_get_return_insn): New to obtain the return instruction used
4790 (m68hc11_frame_init_saved_regs): Take into account the return
4791 instruction used by the function for far and interrupt functions.
4792 (m68hc11_init_extra_frame_info): Take into account page register.
4793 (m68hc11_frame_args_address): Adjust according to the return mode.
4794 (show_regs): Print page register only when it's used.
4796 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4798 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4799 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4800 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4802 (m68hc11_register_raw_size): Likewise.
4804 2002-08-13 Andrew Cagney <cagney@redhat.com>
4806 * i386-tdep.c (i386_register_name): Handle mmx registers.
4807 (mmx_regnum_p): New function.
4808 (i386_mmx_names): New array.
4809 (mmx_num_regs): New variable.
4810 (i386_pseudo_register_read): New function.
4811 (i386_pseudo_register_write): New function.
4812 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4814 * regcache.c (regcache_raw_read_unsigned): New function.
4815 (regcache_raw_read_signed): New function.
4816 * regcache.h (regcache_raw_read_unsigned): Declare.
4817 (regcache_raw_read_signed): Declare.
4819 2002-08-13 Andrew Cagney <cagney@redhat.com>
4821 * regcache.c (regcache_raw_read_as_address): Delete function.
4822 (regcache_cooked_read_signed): New function.
4823 (regcache_cooked_read_unsigned): New function.
4824 * regcache.h (regcache_cooked_read_signed): Declare.
4825 (regcache_cooked_read_unsigned): Declare.
4826 (regcache_raw_read_as_address): Delete declaration.
4828 * blockframe.c (generic_read_register_dummy): Use
4829 regcache_cooked_read_unsigned.
4830 * i386-tdep.c (i386_extract_struct_value_address): Use
4831 regcache_cooked_read_unsigned.
4833 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4835 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4836 double sizes according to ELF ABI flags.
4837 (gdbarch_tdep): Record elf_flags.
4839 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4841 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4842 (m6812_prolog): They can appear in 68HC12 function prologue.
4843 (m68hc11_frame_chain): Cleanup.
4845 2002-08-12 Andrew Cagney <cagney@redhat.com>
4847 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4849 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4850 (i386_linux_register_raw_size): Delete function.
4851 (i386_linux_init_abi): Update.
4852 * i386-tdep.c (i386_register_raw_size): Delete function.
4853 (i386_register_byte): Delete function.
4854 (i386_gdbarch_init): Update.
4855 (i386_register_size): Delete array.
4856 (i386_register_offset): Delete array.
4858 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4859 (REGISTER_RAW_SIZE): Delete macro.
4860 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4861 (REGISTER_BYTE): Delete macro.
4863 2002-08-11 Aidan Skinner <aidan@velvet.net>
4865 * ada-lang.c (ada_lookup_partial_symbol)
4866 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4867 prototype names so that grep ^func works properly.
4869 * ada-lang.c (ada_array_element_type)
4870 (ada_lookup_partial_symbol): Fix typos in parameter list.
4872 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4873 Fix prototype names so that grep ^func works properly.
4875 2002-08-10 Andrew Cagney <cagney@redhat.com>
4876 Elena Zannoni <ezannoni@redhat.com>
4877 Martin M. Hunt <hunt@redhat.com>
4879 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4880 (build_builtin_type_vec128i): Set the vector bit.
4881 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4882 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4883 (build_builtin_type_vec64): New function.
4884 (build_builtin_type_vec64i): New function.
4885 (build_gdbtypes): Initialize builtin_type_vec64 and
4886 builtin_type_vec64i.
4888 2002-08-09 Andrew Cagney <cagney@redhat.com>
4890 * regcache.c (regcache_dump): Compare the register offset
4892 * arch-utils.c (generic_register_byte): New function.
4893 * arch-utils.h (generic_register_byte): Declare.
4894 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4895 * gdbarch.h, gdbarch.c: Regenerate.
4897 2002-08-09 Andrew Cagney <cagney@redhat.com>
4899 * regcache.c: Include "gdbcmd.h"
4900 (_initialize_regcache): Add commands "maintenance print
4901 registers", "maintenance print raw-registers" and "maintenance
4902 print cooked-registers".
4903 (enum regcache_dump_what): Define.
4904 (dump_endian_bytes): New function.
4905 (regcache_dump): New function.
4906 (regcache_print): New function.
4907 (maintenance_print_registers): New function.
4908 (maintenance_print_raw_registers): New function.
4909 (maintenance_print_cooked_registers): New function.
4910 * Makefile.in (regcache.o): Update dependencies.
4912 2002-08-09 Michael Snyder <msnyder@redhat.com>
4914 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4915 (mips_push_arguments): Correct some comments. Use paddr_nz
4916 for printing addresses in debug output. Replace static
4917 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4918 (mips_n32n64_push_arguments): New function, cloned from
4919 mips_push_arguments and tuned for the n32/n64 ABI.
4920 (mips_push_register): Buffer needs dynamic allocation.
4921 (mips_print_register): Ditto.
4922 (do_gp_register_row): Ditto.
4923 (mips_store_return_value): Ditto.
4924 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4926 2002-08-09 Don Howard <dhoward@redhat.com>
4928 * memattr.c (mem_info_command): Print special case of upper bound
4929 as max CORE_ADDR + 1.
4931 2002-08-08 Michael Snyder <msnyder@redhat.com>
4933 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4934 returns structs by ref if they're too big to fit in two registers.
4936 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4938 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4940 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4941 mips_find_saved_regs().
4942 (mips_pop_frame): Likewise.
4944 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4946 * blockframe.c (frame_saved_regs_register_unwind): Revise
4947 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4950 2002-08-09 Grace Sainsbury <graces@redhat.com>
4952 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4953 T-packets; the 'a' is not taken as a register number.
4954 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4955 (remote_stopped_data_address): New functions; add to target
4957 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4958 prototypes to match other implementations of this
4959 function. replace integer argument with pointer -- the length
4960 field in the Z-packet is the length of what is pointed to or 1 if
4961 pointer is null. Add to target vector.
4962 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4966 * remote.c (remote_wait): Add support to extract optional
4967 watchpoint information from T-packet. Ignore unrecognized
4968 optional info in T-packet.
4969 (remote_async_wait): Ditto.
4971 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4973 * cli/cli-dump.c: Change fopen modes to use binary open modes
4974 as defined in include/fopen-bin.h throughout.
4976 2002-08-08 Michael Snyder <msnyder@redhat.com>
4978 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4980 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4982 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4983 assertion failure by returning early after a warning.
4985 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4987 * mips-tdep.c (mips_find_saved_regs): Make static.
4988 (mips_frame_init_saved_regs): New function.
4989 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4990 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4991 (mips_find_saved_regs): Delete declaration.
4993 2002-08-08 Grace Sainsbury <graces@redhat.com>
4995 * remote.c (remote_wait, remote_async_wait): Change
4996 thread_num from int to ULONGEST.
4997 (unpack_varlen_hex): Change result parameter from
4998 int * to ULONGEST *.
5000 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5002 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5003 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5005 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5007 2002-08-08 Andrew Cagney <cagney@redhat.com>
5009 * gcore.c (override_derive_stack_segment): Delete variable.
5010 (preempt_derive_stack_segment): Delete function.
5011 (derive_stack_segment): Delete function.
5012 (default_derive_stack_segment): Renamed to derive_stack_segment.
5013 (override_derive_heap_segment): Delete variable.
5014 (preempt_derive_heap_segment): Delete function.
5015 (derive_heap_segment): Delete function.
5016 (default_derive_heap_segment): Rename to derive_heap_segment.
5018 2002-08-06 Michael Snyder <msnyder@redhat.com>
5020 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5021 * mips-tdep.c (mips_EABI_use_struct_convention,
5022 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5023 New functions. (mips_use_struct_convention): Delete.
5024 (mips_gdbarch_init): set use_gdbarch_convention.
5026 2002-08-06 Michael Snyder <msnyder@redhat.com>
5028 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5029 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5030 mips_o32_reg_struct_has_addr): New functions.
5031 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5033 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5035 * regcache.c (pseudo_register): Delete function.
5036 (fetch_register): Delete function.
5037 (store_register): Delete function.
5038 (regcache_raw_read, legacy_read_register_gen): Use
5039 target_fetch_registers instead of fetch_register.
5040 (legacy_write_register_gen, regcache_raw_write): Use
5041 target_store_register instead of store_register.
5042 (write_register_bytes): Ditto.
5044 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5045 (STORE_PSEUDO_REGISTER): Delete.
5046 * gdbarch.h, gdbarch.c: Regenerate.
5048 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5050 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5051 write dump file binary.
5053 2002-08-05 Michael Snyder <msnyder@redhat.com>
5055 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5056 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5057 (mips_gdbarch_init): Set N32 target to be mips64.
5059 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5061 * frame.c (find_saved_register): Break out of loop once saved
5062 register address is found. Don't mention sparc in loop comment
5065 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5067 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5068 mips_default_saved_regsize to 8.
5070 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5072 * gcore.c: Do not include <sys/procfs.h>.
5073 * Makefile.in (gcore.o): Update dependencies.
5075 2002-08-06 Andrew Cagney <cagney@redhat.com>
5077 * configure.tgt: Make arc-*-* obsolete.
5078 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5079 * MAINTAINERS: Make arc-elf obsolete.
5080 * arc-tdep.c: Make file obsolete.
5081 * config/arc/arc.mt: Ditto.
5082 * config/arc/tm-arc.h: Ditto.
5084 2002-08-05 Theodore A. Roth <troth@verinet.com>
5086 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5088 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5090 * mcore-tdep.c (mcore_gdbarch_init): Use
5091 generic_unwind_get_saved_register instead of
5092 generic_get_saved_register.
5093 * v850-tdep.c (v850_gdbarch_init): Ditto.
5094 * frv-tdep.c (frv_gdbarch_init): Ditto.
5095 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5096 * s390-tdep.c (s390_gdbarch_init): Ditto.
5097 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5098 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5099 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5101 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5103 * objfiles.h: Add missing #include "symfile.h"
5105 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5107 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5109 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5110 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5113 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5115 * NEWS: Cleanup and nitpick.
5117 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5119 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5121 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5123 * Makefile.in (gdbtk-bp.o): Update dependencies.
5124 (gdbtk-register.o): Ditto.
5125 (gdbtk-varobj.o): Ditto.
5127 2002-08-03 Andrew Cagney <cagney@redhat.com>
5129 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5130 m68hc11_fetch_pseudo_register.
5131 (m68hc11_pseudo_register_write): Replace
5132 m68hc11_store_pseudo_register.
5133 (m68hc11_gdbarch_init): Update.
5135 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5137 * gdbarch.sh: Include "gdb_string.h".
5138 * gdbarch.c: Regenerate.
5140 * regcache.c: Include "gdb_string.h".
5141 * ax-general.c: Ditto.
5143 * std-regs.c: Ditto.
5144 * fbsd-proc.c: Ditto.
5147 * Makefile.in (regcache.o): Update dependencies.
5148 (thread.o, gdbarch.o): Ditto.
5149 (ax-general.o, gdbarch.o): Ditto.
5150 (varobj.o, std-regs.o): Ditto.
5151 (fbsd-proc.o): Specify dependencies.
5153 2002-08-02 Andrew Cagney <cagney@redhat.com>
5155 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5157 (regcache_cooked_write): Ditto.
5159 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5161 * regcache.c (regcache_cooked_read): New function.
5162 (regcache_cooked_write): New function.
5163 (read_register_gen): Rewrite using regcache_cooked_read.
5164 (write_register_gen): Rewrite using regcache_cooked_write.
5166 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5169 2002-08-02 Andrew Cagney <cagney@redhat.com>
5171 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5172 Replace the architecture methods register_read and register_write.
5173 * gdbarch.h, gdbarch.c: Regenerate.
5174 * regcache.c (init_regcache_descr): Update.
5175 (read_register_gen): Update.
5176 (write_register_gen): Update.
5177 (supply_register): Update comment.
5179 * sh-tdep.c (sh_gdbarch_init): Update.
5180 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5181 `regcache' and `gdbarch' parameters. Make `buffer' a void
5182 pointer. Update code.
5183 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5184 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5185 void pointer. Update code.
5186 (sh64_register_write): Delete.
5187 (sh4_register_read): Delete.
5188 (sh64_register_read): Delete.
5189 (sh4_register_write): Delete.
5190 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5191 void pointer, `to' parameter a void pointer.
5192 (sh_sh64_register_convert_to_raw): Ditto.
5194 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5196 * mips-tdep.c (mips_register_virtual_type): Use architecture
5197 invariant return values.
5199 2002-08-01 Andrew Cagney <cagney@redhat.com>
5201 * linux-proc.c: Include "gdb_string.h".
5202 * Makefile.in (linux-proc.o): Update dependency list.
5204 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5206 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5209 2002-08-01 Grace Sainsbury <graces@redhat.com>
5211 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5212 to_insert_watchpoint, to_remove_watchpoint,
5213 to_stopped_by_watchpoint, to_stopped_data_address,
5214 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5215 target vecctor. Define their corresponding macros so they call
5218 * target.c: Add default and debug versions of for
5219 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5220 to_insert_watchpoint, to_remove_watchpoint,
5221 to_stopped_by_watchpoint, to_stopped_data_address,
5222 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5224 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5226 * mips-tdep.c (mips_register_virtual_type): New function.
5227 (mips_gdbarch_init): Register mips_register_virtual_type()
5228 with gdbarch machinery.
5229 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5230 this file instead of tm-bigmips.h.
5231 (MIPS_REGSIZE): Delete this macro.
5232 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5233 multiarch version in mips-tdep.c will be found.
5235 2002-08-01 Andrew Cagney <cagney@redhat.com>
5237 * NEWS: Menion that CHILL has been made obsolete.
5239 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5240 * stabsread.c (read_range_type): Ditto.
5241 * gdbtypes.h: Ditto.
5242 * language.c (binop_type_check): Ditto.
5243 (binop_result_type): Ditto.
5244 (integral_type): Ditto.
5245 (character_type): Ditto.
5246 (string_type): Ditto.
5247 (boolean_type): Ditto.
5248 (structured_type): Ditto.
5249 (lang_bool_type): Ditto.
5250 (binop_type_check): Ditto.
5251 * language.h (_LANG_chill): Ditto.
5252 * dwarfread.c (set_cu_language): Ditto.
5253 * dwarfread.c (CHILL_PRODUCER): Ditto.
5254 * dwarfread.c (handle_producer): Ditto.
5255 * expression.h (enum exp_opcode): Ditto.
5256 * eval.c: Ditto for comments.
5257 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5258 * expprint.c (print_subexp): Ditto.
5259 (print_subexp): Ditto.
5260 * valops.c (value_cast): Ditto.
5261 (search_struct_field): Ditto.
5262 * value.h (COERCE_VARYING_ARRAY): Ditto.
5263 * symfile.c (init_filename_language_table): Ditto.
5264 (add_psymbol_with_dem_name_to_list): Ditto.
5265 * valarith.c (value_binop): Ditto.
5267 * valops.c (value_slice): Ditto.
5268 * symtab.h (union language_specific): Ditto.
5269 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5270 (SYMBOL_DEMANGLED_NAME): Ditto.
5271 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5272 * defs.h (enum language): Ditto.
5273 * symtab.c (got_symtab): Ditto.
5274 * utils.c (fprintf_symbol_filtered): Ditto.
5276 * ch-typeprint.c: Make file obsolete.
5277 * ch-valprint.c: Make file obsolete.
5278 * ch-lang.h: Make file obsolete.
5279 * ch-exp.c: Make file obsolete.
5280 * ch-lang.c: Make file obsolete.
5282 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5284 (TARGET_FLAGS_TO_PASS): Ditto.
5285 (CHILLFLAGS): Obsolete.
5287 (CHILL_FOR_TARGET): Obsolete.
5288 (CHILL_LIB): Obsolete.
5289 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5291 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5292 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5294 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5297 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5299 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5300 This does not change anything at the moment, but will be helpful
5301 later when full Ada support is integrated.
5303 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5305 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5308 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5310 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5311 and save it in a local variable. Use variable in later test.
5313 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5315 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5316 test. (Thanks to Daniel Jacobowitz.)
5318 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5320 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5321 (mips_abi_strings): Add "n64".
5322 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5324 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5326 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5327 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5329 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5331 * utils.c (host_pointer_to_address, address_to_host_pointer):
5332 Use gdb_assert() instead of explicit call to internal_error().
5334 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5336 * Makefile.in (rs6000-nat.o): Update dependencies.
5338 From Nicholas Duffek:
5339 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5340 (aix-thread.o): New rule.
5341 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5342 * config/powerpc/aix432.mh: New file.
5344 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5346 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5347 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5348 (fetch_core_registers, ppc_linux_supply_gregset)
5349 (ppc_linux_supply_fpregset): New functions.
5350 (ppc_linux_regset_core_fns): New.
5351 (_initialize_ppc_linux_tdep): Call add_core_fns.
5352 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5353 and ppc_linux_supply_gregset.
5354 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5355 (supply_fpregset): Call ppc_linux_supply_fpregset.
5356 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5358 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5360 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5362 * symtab.c (lookup_symbol): Demangle before lowercasing.
5364 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5366 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5368 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5369 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5370 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5371 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5373 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5374 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5375 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5376 (avr-tdep.o, mon960-rom.o): Ditto.
5377 (aout_stabs_gnu_h): Define.
5378 (symtab_h): Remove $(gdb_obstack_h).
5380 2002-07-30 Jim Blandy <jimb@redhat.com>
5382 Patch from David Carlton <carlton@math.stanford.edu>:
5383 * gdbinit.in: Move the `dir' commands that add GDB's own source
5384 directory to the search path to the end, so that the `gdb' source
5385 directory will be searched first.
5387 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5389 * gdb_obstack.h: New file.
5390 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5391 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5392 * objfiles.h: Include "gdb_obstack.h".
5393 * Makefile.in (gdb_obstack_h): Define.
5394 (symtab_h): Add $(gdb_obstack_h).
5395 (objfiles_h): Add $(gdb_obstack_h).
5397 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5398 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5399 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5400 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5401 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5402 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5403 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5404 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5406 * Makefile.in (bcache.o): Update dependencies.
5407 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5408 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5409 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5410 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5411 (stabsread.o, symfile.o, symmisc.o): Ditto.
5412 (symtab.o, typeprint.o, macroexp.o): Ditto.
5413 (macrotab.o, mdebugread.o): Ditto.
5414 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5415 (coff_ecoff_h, aout_aout64_h): Define.
5416 (aout_stabs_gnu_h, libaout_h): Define.
5418 2002-07-29 Andrew Cagney <cagney@redhat.com>
5420 * regcache.c (struct regcache_descr): Rename nr_registers to
5421 nr_cooked_registers. Revise comments describing the structure
5423 (init_regcache_descr): Update.
5424 (init_legacy_regcache_descr): Update.
5425 (read_register_gen, write_register_gen): When a cooked register in
5426 the raw register range, directly access the value from the raw
5429 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5431 * z8k-tdep.c: Do not include "obstack.h".
5432 * h8300-tdep.c, h8500-tdep.c: Ditto.
5433 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5434 * valprint.c, v850-tdep.c: Ditto.
5435 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5436 * mn10200-tdep.c: Ditto.
5438 * Makefile.in (z8k-tdep.o): Update dependencies.
5439 (m68hc11-tdep.o, valprint.o): Ditto.
5440 (v850-tdep.o, d10v-tdep.o): Ditto.
5441 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5442 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5443 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5444 (sh_opc_h, gdb_sim_sh_h): Define.
5445 (elf_sh_h, elf_bfd_h): Define.
5446 (opcode_m68hc11_h): Define.
5447 (OPCODES_SRC, OPCODES_DIR): define.
5448 (OPCODES): Use $(OPCODES_DIR).
5449 (gdb_sim_d10v_h): Rename sim_d10v_h.
5450 (gdb_sim_arm_h): Rename sim_arm_h.
5452 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5454 * utils.c (host_pointer_to_address, address_to_host_pointer):
5455 Change internal_error() message to indicate function responsible
5458 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5460 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5461 calls to local_hex_string_custom().
5463 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5465 * irix5-nat.c: Move IRIX shared library support from here...
5466 * solib-irix.c: ...to here. Revised substantially to work with
5467 generic solib framework.
5469 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5470 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5471 * mips-irix-tdep.c: New file.
5473 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5474 (mips-irix-tdep.o, solib-irix.o): New rules.
5475 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5477 * config/mips/irix6.mt (TDEPFILES): Likewise.
5478 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5480 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5482 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5483 disabled (via ``#if 0'') includes.
5485 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5487 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5488 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5489 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5490 Add support for the fpscr register.
5491 * rs6000-nat.c (regmap, fetch_inferior_registers)
5492 (store_inferior_registers, fetch_core_registers): Likewise.
5494 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5496 * rs6000-nat.c (language.h): Include.
5497 (special_regs): Delete this array.
5498 (regmap): New function.
5499 (fetch_register, store_register): Use regmap() to map gdb
5500 register numbers to ptrace register numbers. Also, use
5501 outputs from regmap() to make decisions regarding type of
5502 ptrace() call to make. In particular, don't compare against
5503 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5504 (fetch_inferior_registers, store_inferior_registers): Where
5505 possible, obtain register numbers from tdep struct. Don't
5506 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5507 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5508 (LAST_UISA_SP_REGNUM): Delete.
5510 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5512 * rs6000-nat.c (ppc-tdep.h): Include.
5513 (fetch_registers, store_register, fetch_core_registers): Don't
5514 access registers[] directly. Instead, use supply_register() or
5515 regcache_collect() as appropriate.
5516 (find_toc_address): Format hex address with local_hex_string().
5518 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5520 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5523 2002-07-24 Tom Tromey <tromey@redhat.com>
5525 * jv-exp.y: Marked all strings with _().
5526 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5528 (MethodInvocation, CastExpression, parse_number, yyerror,
5529 java_type_from_name, push_expression_name, yylex): Typo fixes.
5531 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5533 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5534 (tee_file_flush, tee_file_write, tee_file_fputs)
5535 (tee_file_isatty): New.
5536 * ui-file.h (tee_file_new): Add prototype.
5538 2002-07-24 Aidan Skinner <aidan@velvet.net>
5540 * ada-lang.c: Change k&r style function definitions to prototyped
5542 * ada-typeprint.c: Change k&r style function definitions to prototyped
5544 * ada-valprint.c: Change k&r style function definitions to prototyped
5547 2002-07-24 Andrew Cagney <cagney@redhat.com>
5549 * README: Remove reference to remote-bug.
5550 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5552 (m88k-nat.o): Delete rule.
5553 (m88k-tdep.o): Delete rule.
5554 (remote-bug.o): Delete rule.
5555 * MAINTAINERS: Mark as obsolete.
5556 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5557 * m88k-tdep.c: Make file obsolete.
5558 * config/m88k/m88k.mh: Ditto.
5559 * config/m88k/delta88v4.mh: Ditto.
5560 * config/m88k/delta88v4.mt: Ditto.
5561 * config/m88k/delta88.mt: Ditto.
5562 * config/m88k/delta88.mh: Ditto.
5563 * remote-bug.c: Ditto.
5564 * config/m88k/tm-delta88.h: Ditto.
5565 * config/m88k/nm-delta88v4.h: Ditto.
5566 * config/m88k/xm-delta88.h: Ditto.
5567 * config/m88k/xm-dgux.h: Ditto.
5568 * config/m88k/tm-m88k.h: Ditto.
5569 * config/m88k/nm-m88k.h: Ditto.
5570 * config/m88k/tm-delta88v4.h: Ditto.
5571 * m88k-nat.c: Ditto.
5572 * cxux-nat.c: Ditto.
5573 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5574 and m88*-*-* obsolete.
5575 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5578 2002-07-24 Andrew Cagney <cagney@redhat.com>
5580 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5581 constant. Same for local pointer variables.
5582 (extract_signed_integer): Ditto.
5583 * defs.h (extract_unsigned_integer): Update.
5584 (extract_signed_integer): Update.
5586 2002-07-24 Andrew Cagney <cagney@redhat.com>
5588 * regcache.c (regcache_raw_write): Change buf parameter to a
5589 constant void pointer.
5590 (regcache_raw_read): Change buf parameter to a void pointer.
5591 (legacy_write_register_gen): Change myaddr parameter a constant
5593 (supply_register): Change val parameter to a const void pointer.
5594 * regcache.h (regcache_raw_write): Update declaration.
5595 (regcache_raw_read): Update declaration.
5596 (supply_register): Update declaration.
5598 2002-07-24 Tom Tromey <tromey@redhat.com>
5600 * defs.h (gdb_readline_wrapper): Declare.
5601 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5602 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5603 * top.c (gdb_readline_wrapper): New function.
5604 (command_line_input): Use it.
5606 2002-07-24 Andrew Cagney <cagney@redhat.com>
5608 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5609 regcache_read and regcache_write.
5610 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5611 * regcache.c: Update.
5612 * sh-tdep.c (sh64_push_arguments): Update comment.
5613 (sh_pseudo_register_read): Update.
5614 (sh_pseudo_register_write): Update.
5615 (sh4_register_read): Update.
5616 (sh4_register_write): Update.
5617 (sh64_pseudo_register_read): Update.
5618 (sh64_pseudo_register_write): Update.
5619 (sh64_register_read): Update.
5620 (sh64_register_write): Update.
5621 * i386-tdep.c (i386_extract_return_value): Update.
5622 (i386_extract_struct_value_address): Update.
5623 (i386_extract_return_value): Update.
5624 * blockframe.c (generic_read_register_dummy): Update.
5625 (generic_call_dummy_register_unwind): Update
5626 * infrun.c (write_inferior_status_register): Update.
5628 2002-07-23 Jim Blandy <jimb@redhat.com>
5630 * parser-defs.h (expression_context_pc): Make this extern.
5631 (Thanks to Michael Snyder.)
5633 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5635 GDB 5.2.1 released from 5.2 branch.
5636 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5637 * README: Update to mention 5.2.1.
5639 2002-07-23 Mark Salter <msalter@redhat.com>
5641 * remote.c (remote_read_bytes): Fix check for error.
5643 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5645 * aix-thread.c (language.h): Include.
5646 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5647 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5648 Print newlines at end of debug messages.
5649 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5650 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5652 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5654 * aix-thread.c (ppc-tdep.h): Include.
5655 (special_register_p): New function.
5656 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5657 (store_regs_user_thread): Use register number information from
5658 gdbarch_tdep struct instead of hardcoded offsets relative to
5659 FIRST_UISA_SP_REGNUM.
5660 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5661 special_register_p() instead of using FPLAST_REGNUM and
5662 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5663 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5664 will be MQ's register number.
5666 2002-07-22 Michael Snyder <msnyder@redhat.com>
5668 * aix-thread.c (ops): Rename to aix_thread_ops.
5669 (base_ops): Rename to base_target.
5670 (ops_attach): Rename to aix_thread_attach.
5671 (ops_detach): Rename to aix_thread_detach.
5672 (ops_resume): Rename to aix_thread_detach.
5673 (ops_wait): Rename to aix_thread_wait.
5674 (ops_kill): Rename to aix_thread_kill.
5675 (init_ops): Rename to init_aix_thread_ops.
5676 (ops_fetch_register): Rename to aix_thread_fetch_register.
5677 (ops_store_register): Rename to aix_thread_store_register.
5678 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5679 (ops_thread_alive): Rename to aix_thread_thread_alive.
5680 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5681 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5682 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5683 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5684 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5685 (store_regs_lib): Rename to store_regs_user_thread.
5686 (store_regs_kern): Rename to store_regs_kernel_thread.
5688 2002-07-22 Michael Snyder <msnyder@redhat.com>
5690 * aix-thread.c (ops_prepare_to_store): Eliminate.
5691 (init_ops): Don't initialize ops.prepare_to_store.
5692 (store_regs_kern): Pre-fetch register buffers from child,
5693 because some registers may not be in the cache. Copy
5694 regs from register cache only if they are cached.
5695 (store_regs_lib): Copy regs from register cache only
5697 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5698 fill_gprs64): Ditto.
5700 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5702 * aix-thread.c (gdb_assert.h): Include.
5703 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5704 register sizes (from register cache) match size of buffer holding
5706 (fill_sprs32): Change parameter types to match those in the ptrace()
5708 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5709 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5711 2002-07-22 Michael Snyder <msnyder@redhat.com>
5713 * aix-thread.c (supply_sprs64): Cosmetic change.
5714 (supply_sprs32): Cosmetic change.
5715 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5716 (fill_sprs64): Use regcache_collect instead of read_register.
5717 (store_regs_lib): Use regcache_collect instead of
5718 read_register. Use fill_sprs32 instead of fill_sprs64,
5719 if debugging a 32-bit architecture.
5720 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5721 out of the register cache, instead of passing a pointer into
5722 the register cache directly to ptrace. Use regcache_collect
5723 insteaad of read_register.
5724 (ops_prepare_to_store): Use target_read_registers instead
5725 of read_register_bytes.
5727 2002-07-20 Aidan Skinner <aidan@velvet.net>
5729 * MAINTAINERS: Add self under write after approval.
5731 2002-07-20 Aidan Skinner <aidan@velvet.net>
5733 * ada-tasks.c: Change k&r style function definitions to prototyped
5736 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5738 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5739 * x86-64-tdep.c: Include "objfiles.h".
5740 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5741 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5743 2002-07-17 Michal Ludvig <michal@suse.cz>
5745 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5746 (update_context): Initialise cfa variable.
5748 2002-07-17 Michael Snyder <msnyder@redhat.com>
5750 * aix-thread.c: Shorten some long lines.
5751 Bring comments into line with code spec.
5753 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5755 * infrun.c: Re-indent using gdb_indent.sh.
5757 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5759 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5760 Leave the indentation temporarily untouched, to minimize the diffs.
5762 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5764 * stabsread.c: Make os9k sections of the code obsolete,
5766 * stabsread.h: Make os9k sections of the code obsolete.
5768 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5770 * linux-low.c (regsets_store_inferior_registers): Add free()
5771 at the end of a loop to prevent memory leak.
5772 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5773 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5774 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5776 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5778 2002-07-17 Jim Blandy <jimb@redhat.com>
5780 * macrocmd.c (info_macro_command): Remove newline from error
5783 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5785 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5786 (sh_gdbarch_init): Use it for sh-dsp.
5788 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5790 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5791 64-bit DWARF2 format.
5793 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5795 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5796 <sys/proc.h> when not available.
5798 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5800 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5801 * stabsread.c: Make os9k sections of the code obsolete.
5802 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5803 * config/i386/i386os9k.mt: Make file obsolete.
5804 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5805 (COMMON_OBS): Remove os9kread.o
5806 (SFILES): Remove os9kread.c.
5807 (os9kread.o, remote-os9k.o): Make target obsolete.
5808 * remote-os9k.c: Make file obsolete.
5809 * os9kread.c: Make file obsolete.
5812 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5814 * NEWS: Mention that the FR30 has been made obsolete.
5815 * fr30-tdep.c: Make file obsolete.
5816 * config/fr30/tm-fr30.h: Ditto.
5817 * config/fr30/fr30.mt: Ditto.
5818 * configure.tgt: Make fr30-*-elf obsolete.
5819 * MAINTAINERS: Make fr30-elf obsolete.
5821 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5823 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5824 found is not inside a section.
5826 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5828 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5830 (pdc_realloc): Use xrealloc() instead of realloc().
5832 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5834 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5835 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5836 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5839 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5841 * aix-thread.c (ptrace_check): Eliminate goto.
5842 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5845 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5847 * aix-thread.c (gdbcmd.h): Include.
5848 (DEBUG, DBG, DBG2, dbg): Eliminate.
5849 (debug_aix_thread): New static global.
5850 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5851 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5852 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5853 invocations to DBG and DBG2 macros to test against
5854 ``debug_aix_thread'' and call fprintf_unfiltered().
5855 (_initialize_aix_thread): Add new command "set debug aix-thread".
5857 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5859 From Gerhard Tonn <TON@de.ibm.com>:
5860 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5861 instead of supply_register.
5863 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5865 * dwarf2cfi.c: Include "gdb_assert.h".
5866 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5868 (update_context): Do not use __func__. Add missing ``break''.
5869 (update_context): Do not use __func__.
5871 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5873 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5874 and its setting. Set gdbarch instruction printing functions
5875 directly. For non-rs6000 case use new function
5876 gdb_print_insn_powerpc.
5877 (gdb_print_insn_powerpc): New function.
5879 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5881 * NEWS: Mention that the d30v has been marked obsolete.
5882 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5883 * configure.tgt: Mark d30v-*-* as obsolete.
5884 * d30v-tdep.c: Mark file as obsolete.
5885 * config/d30v/d30v.mt: Ditto.
5886 * config/d30v/tm-d30v.h: Ditto.
5888 2002-07-13 Aidan Skinner <aidan@velvet.net>
5890 * ada-tasks.c (add_task_entry): replace calls to
5891 malloc() with xmalloc
5892 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5894 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5895 ada_finish_decode_line_1, all_sals_for_line
5896 ada_breakpoint_rewrite): replace calls to free() with xfree()
5898 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5900 From Nicholas Duffek (with minor changes by Martin Hunt,
5901 Louis Hamilton, and Kevin Buettner):
5902 * aix-thread.c: New file.
5904 2002-07-12 Petr Sorfa <petrs@caldera.com>
5906 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5907 complaint for invalid attribute class or form.
5908 (read_func_scope): DW_AT_frame_base
5909 better handling of DW_AT_block*.
5910 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5911 better handling of DW_AT_block*.
5912 (read_common_block): DW_AT_location
5913 better handling of DW_AT_block*.
5914 (read_partial_die): DW_AT_location better handling
5916 (new_symbol): DW_AT_external better handling of
5917 DW_AT_block*. Proper initialization of variable
5919 (attr_form_is_block): New function that returns true
5920 if the attribute's form is of DW_FORM_block*.
5922 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5924 * valops.c (find_method_list): Remove comment about
5925 removed STATIC_MEMFUNCP argument.
5926 (value_find_oload_method_list): Likewise.
5928 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5930 From Nicholas Duffek:
5931 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5932 target_new_objfile_hook.
5934 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5936 From Nicholas Duffek:
5937 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5940 2002-07-12 Andrew Cagney <cagney@redhat.com>
5942 * MAINTAINERS: Mention --enable-sim-build-warnings.
5943 (m68hc11-elf): Disable sim build warnings.
5944 (m32r-elf): Mark as broken obsolete candidate.
5945 (x86_64-linux-gnu): Mark as buildable with -Werror.
5946 (arm-elf): Change -w to ``,'' which enables warnings but not
5949 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5951 * bcache.h: Update copyright.
5952 (struct bstring, struct bcache): Move definition to "bcache.c".
5953 Replaced by opaque declaration.
5954 (bcache_xfree): Replace free_bcache.
5955 (bcache_xmalloc, bcache_memory_used): Declare.
5957 * bcache.c: Update copyright.
5958 (struct bstring, struct bcache): Moved to here from "bcache.h".
5960 (bcache_xmalloc, bcache_memory_used): New functions.
5961 (bcache_xfree): Replace function free_bcache.
5963 * Makefile.in (objfiles.o): Add $(bcache_h).
5964 (objfiles_h): Remove $(bcache_h).
5965 (symfile.o): Add $(bcache_h).
5967 * symmisc.c: Update copyright.
5968 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5969 (print_objfile_statistics): Use bcache_memory_used.
5971 * symfile.c: Include "bcache.h".
5972 (reread_symbols): Use bcache_xfree.
5973 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5974 (add_psymbol_to_list): Pass psymbol_cache by value.
5975 (add_psymbol_with_dem_name_to_list): Ditto.
5977 * objfiles.h: Update copyright.
5978 (struct bcache): Declare opaque. Do not include "bcache.h".
5979 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5981 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5983 * objfiles.c: Include "bcache.h". Update copyright.
5984 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5986 (free_objfile): Use bcache_xfree.
5988 2002-07-11 Grace Sainsbury <graces@redhat.com>
5990 * monitor.c (monitor_fetch_register): Make name a constant.
5991 (monitor_store_register): Same.
5993 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5995 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5996 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5997 (finish_block) For non-function blocks, hash the symbol table. For
5998 function blocks, mark the symbol table as unhashed.
5999 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6000 (msymbol_hash_iw): Likewise.
6001 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6003 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6004 (lookup_minimal_symbol): Likewise for both.
6005 * symtab.h (struct block): Add `hashtable' flag. Comment the
6007 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6008 (ALL_BLOCK_SYMBOLS): Update.
6009 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6010 (struct symbol): Add `hash_next' pointer.
6011 * symtab.c (lookup_block_symbol): Search using the hash table when
6013 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6014 (search_symbols, find_addr_symbol): Likewise.
6016 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6017 (read_dst_symtab): Likewise.
6018 * jv-lang.c (get_java_class_symtab): Likewise.
6019 * mdebugread.c: Include "gdb_assert.h".
6020 (shrink_block): Assert that the block being modified is not hashed.
6021 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6022 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6024 (dump_symtab): Recognize hashed blocks.
6025 * printcmd.c (print_frame_args): Assert that function blocks do not
6026 have hashed symbol tables.
6027 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6028 (fill_in_ada_prototype, debug_print_block): Likewise.
6029 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6031 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6033 * stack.c (print_frame): Use result of frame_address_in_block()
6034 instead of fi->pc when evaluating symbols.
6035 (backtrace_command_1): Ditto.
6037 2002-07-11 Andrew Cagney <cagney@redhat.com>
6039 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6042 * arm-tdep.c (arm_register_name): Make return type constant.
6044 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6046 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6048 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6049 * s390-tdep.c (s390_fp_regnum): Ditto.
6050 (s390_read_fp): Ditto.
6051 (s390_pop_frame): Ditto.
6052 (_initialize_s390_tdep): Ditto.
6053 * remote.c (get_remote_state): Ditto.
6054 * procfs.c (mappingflags): Ditto.
6055 * memattr.c (_initialize_mem): Ditto.
6056 * mcore-tdep.c (mcore_pop_frame): Ditto.
6057 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6058 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6059 * language.c (set_case_str): Ditto.
6060 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6061 * frv-tdep.c (new_variant): Ditto.
6062 (frv_stopped_data_address): Ditto.
6063 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6064 (context_alloc): Ditto.
6065 (frame_state_alloc): Ditto.
6066 (unwind_tmp_obstack_init): Ditto.
6067 (unwind_tmp_obstack_free): Ditto.
6068 (cfi_read_fp): Ditto.
6069 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6070 (cris_pop_frame): Ditto.
6071 * c-lang.c (scanning_macro_expansion): Ditto.
6072 (finished_macro_expansion): Ditto.
6073 (c_preprocess_and_parse): Ditto.
6074 * gdbarch.sh: Ditto.
6075 * gdbarch.h, gdbarch.c: Regenerate.
6076 * config/mn10200/tm-mn10200.h: Adjust indentation.
6077 * target.c: Adjust indentation.
6078 * symtab.h: Adjust indentation.
6079 * stabsread.h: Adjust indentation.
6080 * remote-es.c: Adjust indentation.
6081 * os9kread.c: Adjust indentation.
6083 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6085 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6086 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6088 2002-07-10 Grace Sainsbury <graces@redhat.com>
6090 * NEWS: Mention m68k, mcore multi-arching.
6091 * MAINTAINERS: Change status of m68k, mcore to reflect
6094 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6096 * valops.c (find_overload_match): Free oload_syms.
6098 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6100 Define HAVE_SYS_PROC_H if sys/proc.h exists
6101 * configure.in: Add check for sys/proc.h
6102 * config.in: Regenerate.
6103 * configure: Regenerate.
6105 2002-07-09 Grace Sainsbury <graces@redhat.com>
6107 * config/m68k/tm-m68k.h: Remove macros wrapped in
6108 #if !GDB_MULTI_ARCH.
6110 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6112 * config.in, configure: Regenerate.
6114 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6116 * dwarf2cfi.c: Include "gcore.h".
6117 (execute_stack_op): Fix implementation of the
6118 DW_OP_deref and DW_OP_deref_size operators by letting do their
6119 lookup in the target.
6121 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6123 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6124 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6127 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6129 Fix PR gdb/595, gdb/602
6130 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6131 Don't call value_cast, just read the vtable pointer; update comments
6134 2002-07-05 Grace Sainsbury <graces@redhat.com>
6136 * config/mcore/tm-mcore.h: Remove file.
6137 * config/mcore/mcore.mt: Remove definition of TM_FILE
6138 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6140 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6142 * i386bsd-tdep.c: Include "gdb_string.h".
6144 2002-07-04 Grace Sainsbury <graces@redhat.com>
6146 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6147 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6149 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6150 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6151 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6152 (RETVAL_REGNUM): Move macros from tm-mcore.h
6153 (mcore_reg_struct_has_addr): New function.
6154 (mcore_gdbarch_init): Added initializations for the macros removed
6157 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6159 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6160 traditonal string branding within the ELF header.
6162 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6164 * symtab.c (remove_params): New function.
6165 (make_symbol_overload_list): Use it instead of cplus_demangle.
6166 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6168 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6170 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6172 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6174 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6175 and tdep->sigtramp_end.
6176 * i386obsd-nat.c: New file.
6177 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6179 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6180 Don't call get_current_frame().
6182 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6184 * i386-nat.c (child_post_startup_inferior): New function
6185 calling i386_cleanup_dregs if
6186 I386_USE_GENERIC_WATCHPOINTS is defined.
6187 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6188 conditional to acknowledge that i386-nat.c has its
6189 own child_post_startup_inferior function.
6191 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6193 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6194 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6195 instead of MAX_REGISTER_RAW_SIZE.
6196 (i386_extract_return_value, i386_extract_struct_value_address):
6197 Convert to use regcache.
6198 (i386_gdbarch_init): Set max_register_raw_size and
6199 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6200 Set extract_return_value and extract_struct_value_address instead
6201 of their deprecated variants.
6203 Convert i386 target to generic dummy frames.
6204 * i386-tdep.c: Include "symfile.h".
6205 (i386_frameless_signal_p): Consider a function to be frameless if
6206 the pc points at the first instruction of the function.
6207 (i386_frame_chain): Handle (generic) call dummies.
6208 (i386_frame_saved_pc): Likewise.
6209 (i386_frame_init_saved_regs): Remove code dealing with call
6210 dummies on the stack.
6211 (i386_push_dummy_frame): Removed.
6212 (i386_call_dummy_words): Removed.
6213 (i386_fix_call_dummy): Removed.
6214 (i386_push_return_address): New function.
6215 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6216 parameter, and don't call get_current_frame.
6217 (i386_pop_frame): New function.
6218 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6219 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6220 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6221 call_dummy_length to 0, set call_dummy_words to NULL, set
6222 sizeof_call_dummy_words to 0, set fix_call_dummy to
6223 generic_fix_call_dummy, set pc_in_call_dummy to
6224 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6225 generic_push_dummy_frame, set push_return_address to
6226 i386_push_return_address and set frame_chain_valid to
6227 generic_file_frame_chain_valid.
6229 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6231 * gdbarch.sh (struct regcache): Add opaque declaration.
6232 (EXTRACT_RETURN_VALUE): New architecture method.
6233 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6234 * gdbarch.h, gdbarch.c: Regenerate.
6235 * arch-utils.c (legacy_extract_return_value): New function.
6236 * arch-utils.h (legacy_extract_return_value): Declare.
6237 * values.c (value_being_returned): Re-enable code handling
6238 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6239 deprecated_grub_regcache_for_registers call to block handling
6240 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6241 (EXTRACT_RETURN_VALUE): Do not define.
6243 2002-07-03 Grace Sainsbury <graces@redhat.com>
6245 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6246 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6247 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6248 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6249 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6250 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6251 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6252 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6253 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6254 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6255 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6256 argument so the function fits the prototype in the architecture
6258 (mcore_pop_frame): Remove argument so the function fits the
6259 prototype. Use get_current_frame instead of the argument.
6260 (mcore_push_arguments): Change type of struct_return so the
6261 function can be used in the architecture vector.
6262 (mcore_store_struct_return): Add.
6263 (mcore_frame_init_saved_regs): Add.
6264 (mcore_gdbarch_init): Add function calls to replace the macros
6265 removed from tm-mcore.h
6267 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6269 * infcmd.c (print_return_value): Remove compatibility code calling
6270 deprecated_grub_regcache_for_registers.
6272 * values.c: Include "regcache.h".
6273 (value_being_returned): Update. Use
6274 deprecated_grub_regcache_for_registers to extract the register
6276 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6277 ``struct regcache''.
6278 * Makefile.in (values.o): Add dependency on $(regcache_h).
6280 * inferior.h (run_stack_dummy): Change type of second parameter to
6281 a ``struct regcache''.
6282 * valops.c (hand_function_call): Change type of retbuf to ``struct
6283 regcache''. Allocate using regcache_xmalloc, clean using
6284 make_cleanup_regcache_xfree.
6285 * infcmd.c (run_stack_dummy): Update. Use
6286 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6288 * regcache.c (do_regcache_xfree): New function.
6289 (make_cleanup_regcache_xfree): New function.
6290 * regcache.h (make_cleanup_regcache_xfree): Declare.
6292 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6294 * event-top.c (command_line_handler): Don't read past
6295 beginning of buffer.
6297 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6299 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6301 (varobj_create): Store frame_id for root.
6302 (varobj_gen_name): Use xasprintf.
6303 (varobj_update): Save and restore frame using get_frame_id() and
6305 (create_child): Use xasprintf.
6306 (new_root_variable): Initialize frame_id.
6307 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6308 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6309 to prevent memory leak.
6311 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6313 * valops.c (hand_function_call): Move declaration of retbuf to
6314 start of function, allocate using malloc, add a cleanup but before
6315 the inf_status cleanup, cleanup the buffer. Rename local variable
6316 old_chain to inf_status_cleanup.
6318 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6320 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6322 * cli/cli-decode.c (cmd_func_p): New function.
6323 (cmd_func): New function.
6325 * command.h: Add cmd_func() and cmd_func_p().
6327 2002-07-03 Grace Sainsbury <graces@redhat.com>
6329 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6330 (REGISTER_SIZE): Remove.
6331 (MAX_REGISTER_RAW_SIZE): Remove.
6332 (REGISTER_VIRTUAL_TYPE): Remove.
6333 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6334 (REGISTER_NAME): Remove.
6335 (USE_GENERIC_DUMMY_FRAMES): Remove.
6336 (CALL_DUMMY): Remove.
6337 (CALL_DUMMY_START_OFFSET): Remove.
6338 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6339 (CALL_DUMMY_LOCATION): Remove.
6340 (FIX_CALL_DUMMY): Remove.
6341 (CALL_DUMMY_ADDRESS): Remove.
6342 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6343 (SAVE_DUMMY_FRAME_TOS): Remove.
6344 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6345 (mcore_register_virtual_type): New function.
6346 (mcore_register_byte): New function.
6347 (mcore_register_size): New function.
6348 (mcore_register_name): New function.
6349 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6350 macros removed from tm-mcore.h.
6351 (mcore_dump_tdep): Add.
6352 (_initialize_mcore_tdep): Add gdbarch_register call.
6354 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6356 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6357 frameless_look_for_prologue, such that we actually call this
6360 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6362 * frame.h (frame_address_in_block): New function.
6364 * blockframe.c (frame_address_in_block): New function extracted
6365 from get_frame_block().
6366 (get_frame_block): Use frame_address_in_block().
6367 (block_innermost_frame): Use frame_address_in_block() to match
6368 the frame pc address against the block boundaries rather than
6369 the frame pc directly. This prevents a failure when a frame pc
6370 is actually a return-address pointing immediately after the end
6373 2002-07-02 Grace Sainsbury <graces@redhat.com>
6375 * MAINTAINERS: Add self under write after approval.
6377 2002-07-02 Grace Sainsbury <graces@redhat.com>
6379 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6380 used in architecture vector. The default is
6381 m68k_local_breakpoint_from_pc.
6382 (m68k_local_breakpoint_from_pc): Add.
6383 (enum): Add register numbers from tm-m68k.h.
6384 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6386 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6387 GDB_MULTI_ARCH_PARTIAL.
6388 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6389 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6391 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6392 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6393 to enum in m68k-tdep.c
6395 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6397 * solib-osf.c (open_map): Compute the list of shared libraries
6398 loaded by the inferior, rather than the list of libraries loaded
6399 by GDB itself. Otherwise, GDB ends up reading the symbols from
6400 the wrong shared libraries...
6402 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6404 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6405 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6407 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6409 (FRAMELESS_SIGNAL): Remove function.
6410 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6411 i386_linux_saved_pc_after_call): Removed.
6412 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6413 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6414 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6416 * i386-tdep.c (i386_frameless_signal_p): New function.
6417 (i386_frame_chain): Deal with frameless signals.
6418 (i386_sigtramp_saved_sp): New function.
6419 (i386_frame_saved_pc): Deal with frameless signals.
6420 (i386_saved_pc_after_call): Make sure the correct value is
6421 returned just after entry into a sigtramp.
6422 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6423 i386fbsd4_sc_sp_offset): New variables.
6424 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6425 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6426 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6427 similiar to what we already did for sc_pc_offset.
6428 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6431 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6433 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6435 * config/i386/tm-x86-64linux.h: New.
6436 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6438 * config/i386/nm-x86-64.h: Rename to ...
6439 * config/i386/nm-x86-64linux.h: ... this one.
6440 * config/i386/x86-64linux.mh: Reflect the above change.
6442 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6444 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6445 with sigcontext_addr. Add sc_sp_offset.
6446 (i386bsd_sigtramp_saved_pc): Remove prototype.
6447 (i386bsd_sicontext_addr): Add prototype.
6448 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6449 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6450 (i386_svr4_sigtramp_saved_pc): Removed.
6451 (i386_svr4_sigcontext_addr): New function.
6452 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6453 Initialize tdep->sigcontext_addr instead. Initialize
6454 tdep->sc_pc_offset and tdep->sc_sp_offset.
6455 (i386_gdbarch_init): Likewise.
6456 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6458 (i386bsd_sigtramp_saved_pc): Remove function.
6459 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6460 Initialize tdep->sigcontext_addr instead. Initialize
6462 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6463 of tdep->sigtramp_saved_pc.
6464 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6465 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6468 * i386-tdep.c (i386_frameless_function_invocation,
6469 i386_frame_num_args, i386_frame_init_saved_regs,
6470 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6471 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6472 i386_extract_return_value, i386_store_return_value,
6473 i386_extract_struct_value_address, i386_register_virtual_type,
6474 i386_register_convertible, i386_register_convert_to_virtual,
6475 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6476 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6479 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6481 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6483 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6484 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6485 this macro. Include "value.h".
6487 2002-06-30 Aidan Skinner <aidan@velvet.net>
6489 * ada-exp.tab.c: remove as it's a generated file
6490 * ada-lex.c: remove as it's a generated file
6492 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6494 * config/i386/tm-i386.h (struct frame_info, struct
6495 frame_saved_regs, struct value, struct type): Remove forward
6498 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6499 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6500 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6501 (FILL_FPXREGSET): Define.
6503 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6505 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6506 i[3456]86-*-netbsd* case.
6507 * config/i386/tm-obsd.h: Removed.
6508 * config/i386/obsd.mt: Removed.
6509 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6511 (MH_CFLAGS): Add -DYYDEBUG=0.
6513 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6514 i386nbsd_sc_pc_offset on OpenBSD too.
6516 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6517 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6518 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6520 * i386bsd-tdep.c: Include "arch-utils.h".
6521 (i386bsd_aout_in_solib_call_trampoline): New function.
6522 (i386bsd_init_abi): Set in_solib_call_trampoline to
6523 i386bsd_aout_in_solib_call_trampoline.
6524 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6525 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6527 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6529 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6530 (struct obstack, struct bcache): Add opaque declarations.
6531 * Makefile.in (macrotab_h): Update
6533 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6535 * blockframe.c (generic_find_dummy_frame): Change return type to
6536 ``struct regcache''.
6537 (struct dummy_frame): Replace field ``registers'' with regcache, a
6538 struct regcache object.
6539 (generic_find_dummy_frame): Update.
6540 (generic_push_dummy_frame): Update. Use regcache_xfree,
6541 regcache_xmalloc and regcache_cpy.
6542 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6544 (deprecated_generic_find_dummy_frame): Update.
6545 (generic_read_register_dummy): Update. Use
6546 regcache_read_as_address.
6547 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6548 (generic_get_saved_register): Update. Use regcache_read.
6550 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6552 * Makefile.in (objfiles_h): Add $(bcache_h).
6553 * objfiles.h: Include "bcache.h".
6555 * Makefile.in (symtab_h): Remove $(bcache_h).
6556 * symtab.h: Do not include "bcache.h".
6558 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6560 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6561 generic_func_frame_chain_valid.
6563 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6565 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6566 * config/i386/tm-fbsd.h: Likewise.
6568 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6570 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6571 generic_unwind_get_saved_register.
6573 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6575 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6576 * regcache.c (supply_register): Add missing argument to
6577 register_buffer call.
6579 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6581 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6582 Solaris /bin/grep does not not like it. From Peter Schauer.
6584 2002-06-26 Tom Tromey <tromey@redhat.com>
6586 * command.h (add_setshow_cmd): Declare.
6587 (add_setshow_cmd_full): Declare.
6588 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6589 returns void. Use add_setshow_cmd_full.
6590 (add_setshow_cmd_full): New function.
6591 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6592 (add_setshow_boolean_cmd): Likewise.
6594 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6596 * config/vax/tm-vax.h: Protect from multiple inclusion.
6597 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6598 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6599 * config/vax/tm-vaxbsd.h: ...here. New file.
6600 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6602 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6604 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6605 (BELIEVE_PCC_PROMOTION): Remove.
6606 (AP_REGNUM): Move to...
6607 * config/vax/nm-vax.h: ...here.
6608 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6609 (vax_breakpoint_from_pc): New function.
6610 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6611 and gdbarch_believe_pcc_promotion.
6613 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6615 * Makefile.in (vax_tdep_h): Define.
6616 (vax-tdep.o): Use $(vax_tdep_h).
6617 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6618 (vax_dump_tdep): New function.
6619 (_initialize_vax_tdep): Register vax_dump_tdep.
6620 * vax-tdep.h: Include osabi.h.
6621 (struct gdbarch_tdep): New.
6623 2002-06-26 Andrew Cagney <cagney@redhat.com>
6625 * frame.h (deprecated_generic_find_dummy_frame): Rename
6626 generic_find_dummy_frame.
6627 * blockframe.c (generic_find_dummy_frame): Make static.
6628 (deprecated_generic_find_dummy_frame): New function.
6629 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6630 generic_find_dummy_frame with deprecated_find_dummy_frame.
6631 (sh64_nofp_frame_init_saved_regs): Ditto.
6632 (sh_fp_frame_init_saved_regs): Ditto.
6633 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6634 (s390_frame_chain): Ditto.
6635 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6637 2002-06-26 Grace Sainsbury <graces@redhat.com>
6639 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6640 gdbarch vector are at the top.
6642 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6643 (FRAME_ARGS_ADDRESS): Remove.
6644 (FRAME_LOCALS_ADDRESS): Remove.
6645 (FRAME_NUM_ARGS): Remove.
6646 (FRAME_ARGS_SKIP): Remove.
6647 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6648 (m68k_gdbarch_init): Add gdbarch initializations for macros
6649 undefined in tm-m68k.h
6651 2002-06-26 Grace Sainsbury <graces@redhat.com>
6653 * monitor.h: Add the function regname to monitor_ops
6654 structure. This way NUM_REGS does not have to be a constant.
6655 * monitor.c (monitor_fetch_register): Added support for regname
6656 function. The function is called if the array regnames is NULL.
6657 (monitor_store_register): Same.
6658 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6660 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6661 cpu32bug_cmds.regname to point to new function.
6662 * abug-rom.c (abug_regname): Same as above.
6663 (init_abug_cmds): Same.
6664 * dbug-rom.c (dbug_regname): Same as above.
6665 (init_dbug_cmds): Same.
6666 * remote-est.c (est_regname): Same.
6667 (init_est_cmds): Same.
6668 * rom68k-rom.c (rom68k_regname): Same.
6669 (init_rom68k_cmds): Same.
6671 2002-06-25 Tom Tromey <tromey@redhat.com>
6673 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6675 2002-06-25 Andrew Cagney <cagney@redhat.com>
6677 * infrun.c (stop_registers): Change variable's type to ``struct
6679 (xmalloc_inferior_status): Delete function.
6680 (free_inferior_status): Delete function.
6681 (normal_stop): Use regcache_cpy.
6682 (struct inferior_status): Change type of fields ``stop_registers''
6683 and ``registers'' to ``struct regcache''.
6684 (write_inferior_status_register): Use regcache_write.
6685 (save_inferior_status): Instead of calling
6686 xmalloc_inferior_status, allocate the inf_status buffer directly.
6687 Use regcache_dup_no_passthrough and regcache_dup to save the
6689 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6690 Replace the stop_registers regcache instead of overriding it. Use
6691 regcache_xfree. Instead of calling free_inferior_status, xfree
6692 the buffer directly.
6693 (discard_inferior_status): Use regcache_xfree. Instead of calling
6694 free_inferior_status, xfree the buffer directly.
6695 (build_infrun): Use regcache_xmalloc.
6696 (_initialize_infrun): Delete redundant call to build_infrun.
6698 * Makefile.in (infcmd.o): Add $(regcache_h).
6700 * infcmd.c: Include "regcache.h".
6701 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6702 obtain the address of `stop_registers' register buffer.
6703 (print_return_value): Ditto.
6705 * inferior.h (struct regcache): Add opaque declaration.
6706 (stop_registers): Change variable's declared type to ``struct
6709 2002-06-24 Tom Tromey <tromey@redhat.com>
6711 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6712 * target.c (initialize_targets): Fixed typo in
6713 trust-readonly-sections `show' documentation.
6715 * main.c: Marked all strings with _().
6717 2002-06-24 Don Howard <dhoward@redhat.com>
6719 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6720 that means max CORE_ADDR+1.
6721 (lookup_mem_region): Ditto.
6722 (mem_info_command): Ditto.
6724 2002-06-24 Grace Sainsbury <graces@redhat.com>
6726 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6727 (REGISTER_BYTES_OK): Remove.
6728 (REGISTER_BYTES): Remove.
6729 (STORE_STRUCT_RETURN): Remove.
6730 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6731 (STORE_RETURN_VALUE): Remove.
6732 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6733 (FRAME_CHAIN): Remove.
6734 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6735 (FRAME_SAVED_PC): Remove.
6736 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6737 (m68k_store_struct_return): Add.
6738 (m68k_deprecated_extract_return_value): Add.
6739 (m68k_deprecated_extract_struct_value_address): Add.
6740 (m68k_store_return_value): Add.
6741 (m68k_frame_chain): Add.
6742 (m68k_frameless_function_invocation): Add.
6743 (m68k_frame_saved_pc): Add.
6744 (m68k_gdbarch_init): added set_gdbarch calls for new
6745 functions and deleted macros.
6747 2002-06-23 Tom Tromey <tromey@redhat.com>
6749 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6750 (ALLDEPFILES): Likewise.
6751 (udiheaders): Removed.
6752 (udip2soc.o): Likewise.
6753 (udi2go32.o): Likewise.
6755 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6757 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6759 * infrun.c (_initialize_infrun): Delete unnecessary call to
6762 * regcache.h: Update comments describing the regcache_cpy family
6764 (regcache_save, regcache_restore): Delete declaration.
6765 (regcache_save_no_passthrough): Delete declaration.
6766 (regcache_restore_no_passthrough): Delete declaration.
6767 * regcache.c (regcache_save): Delete function.
6768 (regcache_save_no_passthrough): Delete function.
6769 (regcache_restore): Delete function.
6770 (regcache_restore_no_passthrough): Delete function.
6772 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6774 * config/m68k/tm-m68k.h: Fix typo.
6775 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6776 (m68k_frame_init_saved_regs): Declare.
6778 2002-06-21 Jim Blandy <jimb@redhat.com>
6780 Remove some vestiges of Harris 88k support.
6781 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6782 register numbering quirk.
6783 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6784 odd symbols occurring in Harris 88k ELF targets.
6786 2002-06-21 Tom Tromey <tromey@redhat.com>
6788 * gdb_locale.h: New file.
6789 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6790 (defs_h): Added gdb_locale.h.
6791 * configure, config.in: Rebuilt.
6792 * configure.in (PACKAGE): Define.
6793 * defs.h: Include gdb_locale.h.
6794 * main.c (captured_main): Call setlocale, bindtextdomain,
6797 2002-06-21 Dave Brolley <brolley@redhat.com>
6799 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6800 * config/frv/frv.mt: New file.
6801 * config/frv/tm-frv.h: New file.
6802 * configure.tgt: Support frv-*-*.
6803 * Makefile.in (frv-tdep.o): New target.
6804 * frv-tdep.c: New file.
6805 * NEWS: Mention frv.
6807 2002-06-21 Dave Brolley <brolley@redhat.com>
6809 * MAINTAINERS: Add self to "Write After Approval" list.
6811 2002-06-21 Grace Sainsbury <graces@redhat.com>
6813 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6814 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6815 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6816 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6817 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6819 * m68k-tdep.c: Include arch-utils.h
6820 (m68k_register_raw_size): Add.
6821 (m68k_register_virtual_size): Add.
6822 (m68k_register_virtual_type): Add.
6823 (m68k_register_name): Add.
6824 (m68k_stack_align): Add.
6825 (m68k_register_byte): Add.
6826 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6829 2002-06-21 Grace Sainsbury <graces@redhat.com>
6831 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6832 m68k_find_saved_regs.
6833 (m68k_pop_frame): Removed saved_regs structure, and replaced
6834 references to it with frame->saved_regs.
6835 (m68k_gdbarch_init): Added function calls to initialize the
6837 (m68k_fix_call_dummy): Add.
6838 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6839 (CALL_DUMMY): Remove.
6840 (CALL_DUMMY_LENGTH): Remove.
6841 (CALL_DUMMY_START_OFFSET): Remove.
6842 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6843 (FIX_CALL_DUMMY): Remove.
6844 (PUSH_DUMMY_FRAME): Remove.
6845 (POP_FRAME): Remove.
6847 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6849 * parse.c (parse_fprintf): New function used to avoid calls to
6850 fprintf in bison parser generated debug code.
6851 * parser-defs.h: Declaration of new parse_fprintf function.
6852 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6853 Set YYDEBUG to 1 by default.
6854 Set YYFPRINTF as parse_fprintf.
6856 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6858 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6860 (pointer_encoding, enum ptr_encoding): New.
6861 (execute_cfa_program): Take care about pointer encoding.
6862 (dwarf2_build_frame_info): Only call parse_frame_info for
6863 .debug_frame and .eh_frame.
6864 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6865 fixed augmentation handling, added relative addressing,
6866 ignore duplicate FDEs. Added comments.
6867 * dwarf2cfi.c: Reindented.
6869 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6871 * event-top.c (command_handler): Don't use space_at_cmd_start
6872 unless there is sbrk() on the host. Assign time and space data
6873 to union fields of the appropriate length.
6875 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6877 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6878 x86_64_register_name. Return type changed to 'const char *'.
6879 (x86_64_register_name2nr): Rename to x86_64_register_number.
6880 (x86_64_gdbarch_init): Update to reflect the change.
6881 * x86-64-tdep.h: Ditto.
6882 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6883 (supply_fpregset): Ditto.
6885 2002-06-19 Andrew Cagney <cagney@redhat.com>
6887 * regcache.h: Update copyright.
6888 (struct regcache, struct gdbarch): Add opaque declarations.
6889 (current_regcache): Declare global variable.
6890 (regcache_read, regcache_write): Add gdbarch parameter.
6891 (regcache_save, regcache_save_no_passthrough)
6892 (regcache_restore, regcache_restore_no_passthrough)
6893 (regcache_dup, regcache_dup_no_passthrough)
6894 (regcache_cpy, regcache_cpy_no_passthrough)
6895 (deprecated_grub_regcache_for_registers)
6896 (deprecated_grub_regcache_for_register_valid)
6897 (regcache_valid_p): Add function declarations.
6899 * regcache.c: Update copyright.
6900 (regcache_descr_handle): New global variable.
6901 (struct regcache_descr): Define.
6902 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6903 (regcache_descr, xfree_regcache_descr): New functions.
6904 (struct regcache): Define.
6905 (regcache_xmalloc, regcache_xfree): New functions.
6906 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6907 (regcache_dup, regcache_dup_no_passthrough): New functions.
6908 (regcache_valid_p, regcache_read_as_address): New functions.
6909 (deprecated_grub_regcache_for_registers): New function.
6910 (deprecated_grub_regcache_for_register_valid): New function.
6911 (current_regcache): New global variable.
6912 (register_buffer): Add regcache parameter. Update calls.
6913 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6914 (read_register_gen, write_register_gen): Update register_buffer
6915 call. Test for legacy_p instead of gdbarch_register_read_p or
6916 gdbarch_register_write_p.
6917 (regcache_collect): Update register_buffer call.
6918 (build_regcache): Rewrite. Use deprecated grub functions.
6919 (regcache_save, regcache_save_no_passthrough): New functions.
6920 (regcache_restore, regcache_restore_no_passthrough): New
6922 (_initialize_regcache): Create the regcache_data_handle. Swap
6923 current_regcache global variable.
6925 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6926 parameter to regcache_read and regcache_write calls.
6927 (sh4_register_read): Ditto.
6928 (sh64_pseudo_register_read): Ditto.
6929 (sh64_register_read): Ditto.
6930 (sh_pseudo_register_write): Ditto.
6931 (sh4_register_write): Ditto.
6932 (sh64_pseudo_register_write): Ditto.
6933 (sh64_register_write): Ditto.
6935 * defs.h (XCALLOC): Define.
6937 2002-06-19 Grace Sainsbury <graces@redhat.com>
6939 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6940 * m68k-tdep.c (m68k_gdbarch_init): Added.
6941 (m68k_dump_tdep): Added.
6943 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6945 * ada-lang.c (fill_in_ada_prototype): Update comment.
6947 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6949 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6951 (mips_abi_string, mips_abi_strings): New.
6952 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6953 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6954 tdep->mips_abi_string. Honor mips_abi_string. Default to
6955 O32 if no ABI is found.
6956 (mips_dump_tdep): Use mips_abi_strings.
6957 (mips_abi_update): New function.
6958 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6959 ``set mips abi'' and ``show mips abi''. Check the size of
6962 2002-06-19 Andrew Cagney <cagney@redhat.com>
6964 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6967 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6969 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6970 current frame using only the first stack size adjustment. All
6971 subsequent size adjustments are not considered to be part of
6972 the "static" part of the current frame.
6973 Compute the address of the saved registers relative to the
6974 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6975 in use in this frame.
6977 2002-06-18 Don Howard <dhoward@redhat.com>
6979 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6980 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6981 suggesting this solution.
6983 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6985 * config/romp/xm-rtbsd.h: Delete file.
6986 * config/romp/rtbsd.mh: Delete file.
6988 2002-06-18 Keith Seitz <keiths@redhat.com>
6990 * breakpoint.c (condition_command): Post breakpoint_modify
6991 when a condition is added to an existing breakpoint.
6992 (commands_command): Likewise for commands.
6993 (set_ignore_count): Likewise for ignore counts.
6994 If no tty, do not simply return, still need to send event
6996 (ignore_command): Only print a newline if the command came
6998 Don't call breakpoints_changed, since this is now properly
6999 handled by set_ignore_count.
7001 2002-06-18 Andrew Cagney <cagney@redhat.com>
7003 * MAINTAINERS: Note that cris-elf target can be compiled with
7005 * cris-tdep.c (cris_register_name): Make return type constant.
7006 (cris_breakpoint_from_pc): Ditto.
7008 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7010 * frame.h (struct frame_info): Change type of context to
7013 2002-06-17 Andrew Cagney <cagney@redhat.com>
7015 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7017 * gdbarch.h, gdbarch.c: Regenerate.
7018 * config/mips/tm-mips.h (mips_register_name): Update.
7019 * i386-tdep.h (i386_register_name): Update.
7020 * mips-tdep.c (mips_register_name): Update
7021 * alpha-tdep.c (alpha_register_name): Update.
7022 * arch-utils.c (legacy_register_name): Update.
7023 * arch-utils.h (legacy_register_name): Update.
7024 * avr-tdep.c (avr_register_name): Update.
7025 * ia64-tdep.c (ia64_register_name): Update.
7026 * i386-tdep.c (i386_register_name): Update.
7027 * sparc-tdep.c (sparc32_register_name): Update.
7028 (sparc64_register_name): Update.
7029 (sparclite_register_name): Update.
7030 (sparclet_register_name): Update.
7031 * sh-tdep.c (sh_generic_register_name): Update.
7032 (sh_sh_register_name): Update.
7033 (sh_sh3_register_name): Update.
7034 (sh_sh3e_register_name): Update.
7035 (sh_sh_dsp_register_name): Update.
7036 (sh_sh3_dsp_register_name): Update.
7037 (sh_sh4_register_name): Update.
7038 (sh_sh64_register_name): Update.
7039 * s390-tdep.c (s390_register_name): Update.
7040 * rs6000-tdep.c (rs6000_register_name): Update.
7041 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7042 (ns32k_register_name_32382): Update.
7043 * d10v-tdep.c (d10v_ts2_register_name): Update.
7044 (d10v_ts3_register_name): Update.
7045 * xstormy16-tdep.c (xstormy16_register_name): Update.
7046 * vax-tdep.c (vax_register_name): Update.
7047 * v850-tdep.c (v850_register_name): Update.
7048 * m68hc11-tdep.c (m68hc11_register_name): Update.
7049 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7050 (am33_register_name): Update.
7052 2002-06-17 Grace Sainsbury <graces@redhat.com>
7054 * m68k-tdep.c: Reindented.
7056 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7058 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7059 list of predefined types.
7061 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7063 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7064 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7065 REGISTER_CONVERT_TO_RAW): Remove defines.
7066 (i386_register_virtual_type, i386_register_convertible,
7067 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7069 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7070 macros mentioned above.
7072 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7073 (i386lynx_saved_pc_after_call): Remove prototype.
7074 * i386ly-tdep.c: Include "i386-tdep.h".
7075 (i386lynx_saved_pc_after_call): Make static. Use
7076 read_memory_nobpt instead of read_memory. Use
7077 read_memory_unsigned_integer instead of read_memory_integer.
7078 (i386lynx_init_abi): New function.
7079 (i386lynx_coff_osabi_sniffer): New function.
7080 (_initialize_i386bsd_tdep): New function.
7082 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7083 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7084 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7085 (i386_fix_call_dummy): Remove prototype.
7086 * i386-tdep.c (i386_call_dummy_words): New variable.
7087 (i386_gdbarch_init): Adjust for removal of the
7088 macros mentioned above.
7090 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7092 * command.h (add_setshow_auto_boolean_cmd): Replace
7093 add_set_auto_boolean_cmd.
7094 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7095 add_set_auto_boolean_cmd.
7096 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7097 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7098 mask-address'' command.
7099 (show_mask_address): Add cmd parameter.
7100 * remote.c (add_packet_config_cmd): Update. Change type of
7101 set_func and show_func to cmd_sfunc_ftype.
7102 (_initialize_remote): Update `set remote Z-packet'
7103 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7104 (show_remote_protocol_e_packet_cmd): Ditto.
7105 (show_remote_protocol_E_packet_cmd): Ditto.
7106 (show_remote_protocol_P_packet_cmd): Ditto.
7107 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7108 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7109 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7110 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7111 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7112 (show_remote_protocol_Z_packet_cmd): Ditto.
7113 (show_remote_protocol_binary_download_cmd): Ditto.
7114 (show_remote_cmd): Pass NULL to all of above.
7116 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7118 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7119 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7120 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7121 POP_FRAME): Remove defines.
7122 (i386_push_arguments, i386_store_struct_return,
7123 i386_extract_return_value, i386_store_return_value,
7124 i386_extract_struct_value_address, i386_push_dummy_frame,
7125 i386_pop_frame): Renove prototypes.
7126 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7127 macros mentioned above.
7129 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7131 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7132 add_set_boolean_cmd.
7133 (add_setshow_cmd): New function.
7134 * command.h (add_setshow_boolean_cmd): Replace
7135 add_set_boolean_cmd.
7136 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7137 and ``set rdiromatzero''.
7138 * maint.c (_initialize_maint_cmds): Update commented out code.
7139 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7140 * target.c (initialize_targets): Update `set
7141 trust-readonly-sections'.
7142 * remote.c (_initialize_remote): Update `set remotebreak'.
7144 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7146 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7147 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7148 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7149 fit into multi-arch framework.
7150 (i386_breakpoint_from_pc): New function.
7151 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7154 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7155 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7156 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7157 (i386_frameless_function_invocation, i386_frame_num_args,
7158 i386_frame_init_saved_regs): Remove prototypes.
7159 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7160 macros mentioned above.
7162 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7164 * cli/cli-decode.c (set_cmd_cfunc): Update.
7165 (set_cmd_sfunc): Update.
7166 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7167 (set_cmd_sfunc, set_cmd_cfunc): Update.
7168 * cli/cli-decode.h: Update.
7170 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7172 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7173 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7175 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7177 * defs.h (auto_boolean): Declare enum.
7178 * command.h (cmd_auto_boolean): Delete enum.
7179 * mips-tdep.c (mask_address_var): Update.
7180 (mips_mask_address_p): Update.
7181 (show_mask_address): Update.
7182 * remote.c (struct packet_config): Update.
7183 (update_packet_config): Update.
7184 (show_packet_config_cmd): Update.
7185 (packet_ok): Update.
7186 (add_packet_config_cmd): Update.
7187 (_initialize_remote):
7188 * command.h: Update.
7189 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7190 (do_setshow_command): Update.
7191 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7192 * cli/cli-decode.h: Update.
7194 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7196 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7197 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7198 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7199 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7200 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7201 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7203 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7204 list of DJGPP COFF targets.
7206 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7207 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7208 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7209 (FP0_REGNUM): Remove define.
7210 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7211 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7212 (i386_register_virtual_size): Remove protoype.
7213 * i386-tdep.c (i386_register_virtual_size): Removed.
7214 (i386_extract_return_value, i386_store_return_value): Use
7215 FP0_REGNUM instead of NUM_FREGS to determine whether the
7216 floating-point registers are available.
7217 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7218 Adjust for removal of macros mentioned above.
7220 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7222 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7224 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7226 (supply_gregset, fill_gregset): Remove use of register keyword and
7227 remove declaration for regmap. Use I386_NUM_GREGS instead of
7228 NUM_REGS and NUM_FREGS.
7229 (FPREGSET_FSAVE_OFFSET): Remove.
7230 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7231 NUM_FREGS to determine whether the floating-point registers are
7234 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7235 gnu_store_registers): Replace usage of NUM_GREGS with
7238 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7239 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7240 usage of NUM_GREGS with I386_NUM_GREGS.
7242 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7244 * i386bsd-nat.c: Include "i386-tdep.h".
7245 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7248 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7249 and associated comment. They no longer make any sense, since we
7250 don't use this file anymore on Linux.
7252 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7253 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7254 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7255 elements in these arrays.
7256 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7259 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7261 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7262 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7264 2002-06-14 Andrew Cagney <cagney@redhat.com>
7266 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7267 EXTRACT_RETURN_VALUE.
7268 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7269 EXTRACT_STRUCT_VALUE_ADDRESS.
7270 * gdbarch.h, gdbarch.c: Regenerate.
7272 * values.c (value_being_returned): Handle
7273 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7274 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7276 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7277 * arm-tdep.c (arm_gdbarch_init): Update.
7278 * avr-tdep.c (avr_gdbarch_init): Update.
7279 * cris-tdep.c (cris_gdbarch_init): Update.
7280 * d10v-tdep.c (d10v_gdbarch_init): Update.
7281 * ia64-tdep.c (ia64_gdbarch_init): Update.
7282 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7283 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7284 * s390-tdep.c (s390_gdbarch_init): Update.
7285 * sh-tdep.c (sh_gdbarch_init): Update.
7286 * s390-tdep.c (s390_gdbarch_init): Update.
7287 * sparc-tdep.c (sparc_gdbarch_init): Update.
7288 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7289 * v850-tdep.c (v850_gdbarch_init): Update.
7290 * vax-tdep.c (vax_gdbarch_init): Update.
7291 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7292 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7294 * config/arc/tm-arc.h: Update.
7295 * config/d30v/tm-d30v.h: Update.
7296 * config/fr30/tm-fr30.h: Update.
7297 * config/h8300/tm-h8300.h: Update.
7298 * config/h8500/tm-h8500.h: Update.
7299 * config/i386/tm-i386.h: Update.
7300 * config/i386/tm-ptx.h: Update.
7301 * config/i386/tm-symmetry.h: Update.
7302 * config/i960/tm-i960.h: Update.
7303 * config/m32r/tm-m32r.h: Update.
7304 * config/m68k/tm-delta68.h: Update.
7305 * config/m68k/tm-linux.h: Update.
7306 * config/m68k/tm-m68k.h: Update.
7307 * config/m88k/tm-m88k.h: Update.
7308 * config/mcore/tm-mcore.h: Update.
7309 * config/mips/tm-mips.h: Update.
7310 * config/mn10200/tm-mn10200.h: Update.
7311 * config/pa/tm-hppa.h: Update.
7312 * config/pa/tm-hppa64.h: Update.
7313 * config/sparc/tm-sp64.h: Update.
7314 * config/sparc/tm-sparc.h: Update.
7315 * config/sparc/tm-sparclet.h: Update.
7316 * config/z8k/tm-z8k.h: Update.
7318 2002-06-14 Andrew Cagney <cagney@redhat.com>
7320 * Makefile.in (i386_linux_tdep_h): Define.
7321 (i386_tdep_h, i387_tdep_h): Define.
7322 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7323 $(i386_tdep_h) and $(i387_tdep_h).
7324 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7326 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7328 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7329 Already covered by the default.
7331 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7332 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7333 (i386_gdbarch_init): Initialize long_double_format and long_double
7336 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7337 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7339 * config/i386/i386sol2.mh: ... here.
7340 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7341 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7342 (SIGCONTEXT_PC_OFFSET): Remove define.
7343 (IN_SIGTRAMP): Remove define.
7344 * i386-sol2-tdep.c: New file.
7346 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7347 * config/i386/tm-i386nw.h: Removed.
7349 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7350 USE_STRUCT_CONVENTION): Remove defines.
7351 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7352 (get_longjmp_target): Remove prototype.
7353 (IN_SIGTRAMP): Remove define.
7354 (i386bsd_in_sigtramp): Remove prototype.
7355 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7356 function. Update comment accordingly
7357 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7358 (FRAME_SAVED_PC): Remove define.
7359 (i386bsd_frame_saved_pc): Remove prototype.
7360 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7361 GET_LONGJMP_TARGET): Remove defines.
7362 (get_longjmp_target): Remove prototype.
7363 (IN_SIGTRAMP): Remove define.
7364 (i386bsd_in_sigtramp): Remove prototype.
7365 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7366 function. Update comment accordingly
7367 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7368 (FRAME_SAVED_PC): Remove define.
7369 (i386bsd_frame_saved_pc): Remove prototype.
7370 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7372 (USE_STRUCT_CONVENTION): Remove prototype.
7373 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7375 (_initialize_i386bsd_nat): Revise logic to determine some
7376 constants at compile time when compiling a native GDB. Warn if
7377 things don't match up with what we expect.
7378 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7380 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7381 to use date stored in `struct gdbarch_tdep'.
7382 (i386bsd_sigcontext_offset): Remove varaible.
7383 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7384 stored in `struct gdbarch_tdep'.
7385 (i386bsd_frame_saved_pc): Make static.
7386 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7387 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7388 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7389 i386fbsd4_sc_pc_offset): New variables.
7390 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7391 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7393 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7395 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7396 Modify the value of i386fbsd_sigtramp_start and
7397 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7398 i386fbsd_sigtramp_end.
7399 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7402 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7403 define to i386-linux-tdep.h.
7404 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7405 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7407 (i386_linux_register_name, i386_linux_register_byte,
7408 i386_linux_register_raw_size): Remove prototypes.
7409 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7410 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7411 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7412 TARGET_WRITE_PC): Remove defines.
7413 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7414 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7415 i386_linux_write_pc): Remove prototypes.
7416 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7417 (get_longjmp_target): Remove prototype.
7418 * i386-linux-tdep.h: New file.
7419 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7420 * i386-linux-tdep.c: Include "i386-tdep.h" and
7421 "i386-linux-tdep.h".
7422 (i386_linux_register_name, i386_linux_register_byte,
7423 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7424 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7426 (i386_linux_init_abi): New function.
7427 (_initialize_i386_linux_tdep): New function.
7429 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7430 (i386_saved_pc_after_call): Remove prototype.
7431 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7432 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7433 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7434 (i386_register_name, i386_stab_reg_to_regnum,
7435 i386_dwarf_reg_to_regnum): Remove prototypes.
7436 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7437 SIZEOF_SSE_REGS): Remove defines.
7438 (REGISTER_BYTES): Remove define.
7439 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7440 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7441 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7442 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7443 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7444 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7445 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7446 (get_longjmp_target): Remove prototype.
7447 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7448 (sigtramp_saved_pc): Remove define.
7449 (i386v4_sigtramp_saved_pc): Remove prototype.
7450 * config/i386/tm-go32.h (FRAME_CHAIN,
7451 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7452 (i386go32_frame_saved_pc): Remove prototype.
7453 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7454 (get_longjmp_target): Remove prototype.
7455 * i386-tdep.h: Include "osabi.h".
7456 (enum i386_abi): Removed.
7457 (enum struct_return): New enum.
7458 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7459 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7460 sc_pc_offset members.
7461 (i386_gdbarch_register_os_abi): Remove prototype.
7462 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7463 I386_SSE_NUM_REGS): New defines.
7464 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7465 I386_SSE_SIZEOF_REGS): New defines.
7466 (i386_register_name, i386_register_byte, i386_register_raw_size):
7468 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7469 (i386bsd_sigtramp_saved_pc): New prototype.
7470 * i386-tdep.c: Don't include "elf-bfd.h".
7471 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7472 i386_frame_chain, i386_saved_pc_after_call): Make static.
7473 (i386_frame_saved_pc): Rewrite to call architecture dependent
7474 function to deal with signal handlers. Make static.
7475 (i386go32_frame_saved_pc): Removed.
7476 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7478 (i386_get_longjmp_target): New function.
7479 (default_struct_convention, pcc_struct_convention,
7480 reg_struct_convention, valid_conventions, struct_convention): New
7482 (i386_use_struct_convention): New function.
7483 (i386v4_sigtramp_saved_pc): Renamed to
7484 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7485 (i386_pc_in_sigtramp): New function.
7486 (i386_abi_names): Removed.
7487 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7488 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7490 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7491 i386_gdbarch_register_os_abi): Removed.
7492 (struct i386_abi_handler): Removed.
7493 (i386_abi_handler_list): Removed.
7494 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7496 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7497 i386_nw_init_abi): New functions.
7498 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7499 Use set_gdbarch_xxx() calls instead of relying on macros for a
7501 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7502 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7503 Register the various architecture variants defined in this file.
7505 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7507 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7508 (struct main_type): Remove arg_types member. Update comments for
7510 (TYPE_ARG_TYPES): Remove.
7511 (TYPE_FN_FIELD_ARGS): Update.
7512 (smash_to_method_type): Update prototype.
7514 * c-typeprint.c (cp_type_print_method_args): Take method type
7515 instead of argument list. Use new argument layout. Simplify.
7516 (c_type_print_args): Use new argument layout. Simplify.
7517 (c_type_print_base): Update call to cp_type_print_method_args.
7518 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7519 argument; use die->type instead. Update call to
7520 smash_to_method_type.
7521 (read_structure_scope): Update call to dwarf2_add_member_fn.
7522 * gdbtypes.c (allocate_stub_method): Update comment.
7523 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7524 Use new argument layout.
7525 (check_stub_method): Use new argument layout. Don't count
7526 void as an argument.
7527 (print_arg_types): Update comments. Use new argument layout.
7528 (recursive_dump_type): Don't print arg_types member.
7529 * hpread.c (hpread_read_struct_type): Use new argument layout.
7530 (fixup_class_method_type): Likewise.
7531 (hpread_type_lookup): Likewise.
7532 * stabsread.c (read_type): Update calls to read_args and
7533 smash_to_method_type.
7534 (read_args): Use new argument layout. Simplify.
7535 * valops.c (typecmp): Use new argument layout. Update parameters
7536 and comments. Simplify.
7537 (hand_function_call): Use new argument layout.
7538 (search_struct_method): Update call to typecmp.
7539 (find_overload_match): Use new argument layout.
7541 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7543 * NEWS: Mention multithreaded debug support for gdbserver.
7545 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7547 * MAINTAINERS: Mention NEWS.
7549 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7551 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7552 (struct mips_objfile_private, compare_pdr_entries): New.
7553 (non_heuristic_proc_desc): Read the ".pdr" section if it
7556 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7558 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7559 (arm_debug): New static variable.
7560 (_initialize_arm_tdep): Add ``set debug arm'' command.
7562 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7564 * Makefile.in (sim_arm_h): Define.
7565 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7566 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7567 (arm_register_sim_regno): New function, map an internal REGNUM
7568 onto a simulator register number.
7569 (arm_gdbarch_init): Set register_sim_regno.
7571 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7573 * MAINTAINERS: Add self.
7575 2002-06-11 Jim Blandy <jimb@redhat.com>
7577 * source.c (source_info): Mention whether the symtab has
7578 information about preprocessor macros.
7580 Call the command `info macro', not `show macro'.
7581 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7583 (_initialize_macrocmd): Register `info_macro_command' in
7584 `infolist', not `showlist'.
7586 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7588 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7589 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7590 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7591 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7592 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7594 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7595 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7596 (_initialize_mips_tdep): Remove dead code.
7597 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7598 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7599 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7600 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7601 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7602 MIPS_LAST_FP_ARG_REGNUM): Remove.
7604 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7606 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7607 (unwind_tmp_obstack_free, parse_frame_info)
7608 (update_context, cfi_read_fp, cfi_write_fp)
7609 (cfi_frame_chain, cfi_init_extra_frame_info)
7610 (cfi_virtual_frame_pointer): Use the above function.
7611 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7613 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7615 * v850-tdep.c (v850_type_is_scalar): New function.
7616 (v850_use_struct_convention): Match current gcc implementation
7617 as close as possible.
7618 (v850_push_arguments): Fix stack_offset handling. Don't write
7619 struct_addr into register. This is done by v850_store_struct_return.
7620 (v850_extract_return_value): Care for structs.
7621 (v850_store_return_value): Ditto.
7622 (v850_store_struct_return): Actually write address.
7624 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7626 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7627 without debug information too.
7629 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7631 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7632 Make multi-arch pure.
7633 * gdbarch.h, gdbarch.c: Re-generate.
7634 * arm-tdep.c (arm_print_float_info): Update.
7635 * arch-utils.h (default_print_float_info): Update.
7636 * arch-utils.c (default_print_float_info): Update.
7637 * infcmd.c (float_info): Update call.
7639 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7641 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7642 the front of the initialize list.
7644 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7646 * infrun.c (struct inferior_status): Replace fields
7647 selected_frame_address and selected_level with field
7649 (save_inferior_status): Update. Use get_frame_id.
7650 (struct restore_selected_frame_args): Delete.
7651 (restore_selected_frame): Update. Use frame_find_by_id.
7652 (restore_inferior_status): Update.
7654 * breakpoint.h (struct breakpoint): Change type of
7655 watchpoint_frame to frame_id.
7656 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7657 call to get_current_frame.
7658 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7660 (watchpoint_check): Use frame_find_by_id.
7662 * frame.h (record_selected_frame): Delete declaration.
7663 * stack.c (record_selected_frame): Delete function.
7665 * frame.h (struct frame_id): Define.
7666 (get_frame_id): Declare.
7667 (frame_find_by_id): Declare.
7668 * frame.c (frame_find_by_id): New function.
7669 (get_frame_id): New function.
7671 2002-06-10 Andrey Volkov <avolkov@transas.com>
7673 * ser-e7kpc.c: Fix duplicated define and call of
7674 _initialize_ser_e7000pc
7676 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7678 * signals/signals.c (target_signal_from_host): Fix #ifdef
7680 (do_target_signal_to_host): Likewise.
7682 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7684 * mips-tdep.c (mips_find_abi_section): New function.
7685 (mips_gdbarch_init): Call it.
7687 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7689 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7690 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7691 after Andrew's 2002-06-08 gdbarch change.
7693 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7695 * i386-linux-nat.c (suppy_gregset): Don't supply
7696 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7698 (fill_gregset): Don't fetch it under the same circumstances.
7700 2002-06-09 Andrew Cagney <cagney@redhat.com>
7702 * Makefile.in (callback_h): Define.
7703 (remote_sim_h): Update path to remote-sim.h.
7704 (remote-rdp.o): Add $(callback_h).
7705 (remote-sim.o): Use $(callback_h).
7706 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7707 * remote-rdp.c: Include "gdb/callback.h".
7709 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7711 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7712 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7714 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7716 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7717 * rdi-share/serpardr.c: Ditto.
7718 * rdi-share/unixcomm.c: Ditto.
7719 * rdi-share/serdrv.c: Ditto.
7720 * rdi-share/hostchan.h: Ditto.
7721 * rdi-share/hostchan.c: Ditto.
7722 * rdi-share/host.h: Ditto.
7723 * rdi-share/devsw.c: Ditto.
7725 * objfiles.h: Change type of obj_private to void pointer.
7726 * pa64solib.c: Update copyright. Don't include "assert.h", use
7727 strcmp instead of STREQ, use LONGEST, do not use PTR
7728 * somsolib.c: Ditto.
7730 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7731 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7732 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7734 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7736 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7737 (default_get_saved_register): Delete function.
7738 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7739 generic_unwind_get_saved_register.
7740 * gdbarch.h, gdbarch.c: Re-generate.
7742 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7744 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7745 generic_func_frame_chain_valid.
7746 * gdbarch.h, gdbarch.c: Re-generate.
7747 * blockframe.c (generic_func_frame_chain_valid): Only check
7748 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7749 passing FP to PC_IN_CALL_DUMMY.
7752 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7754 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7755 (register_gdbarch_data): Initialize init_p.
7756 (gdbarch_data): Initialize data pointer using the init function.
7757 (init_gdbarch_data): Delete function.
7758 (gdbarch_update_p): Update.
7759 (initialize_non_multiarch): Update.
7760 (struct gdbarch): Add field initialized_p.
7761 * gdbarch.h, gdbarch.c: Re-generate.
7763 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7765 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7766 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7767 better do the things actually here.
7768 * x86-64-tdep.c (x86_64_register_name2nr): New.
7769 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7770 (x86_64_gdbarch_init): Respect the above change.
7771 * x86-64-tdep.h (x86_64_register_name2nr)
7772 (x86_64_register_nr2name): Add prototypes.
7773 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7775 2002-06-06 Michael Snyder <msnyder@redhat.com>
7777 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7778 Delete extra braces and re-indent.
7779 (d10v_store_return_value): Char return values
7780 must be shifted over by one byte in R0.
7781 (d10v_extract_return_value): Delete extra braces, re-indent.
7783 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7785 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7786 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7787 (d10v_integer_to_address): Rewrite.
7788 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7789 the d10v specific functions which take care of converting to the
7792 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7794 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7795 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7797 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7799 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7801 * config/tm-linux.h: Ditto.
7802 * config/alpha/tm-alphalinux.h: Ditto.
7803 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7804 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7805 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7806 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7807 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7808 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7809 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7810 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7811 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7812 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7813 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7814 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7815 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7816 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7817 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7818 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7819 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7820 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7821 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7822 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7823 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7824 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7825 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7826 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7827 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7828 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7829 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7830 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7831 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7832 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7833 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7834 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7835 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7836 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7837 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7838 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7839 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7841 2002-05-04 Aidan Skinner <aidan@velvet.net>
7843 * ada-exp.tab.c: New file
7844 * ada-exp.y: New file
7845 * ada-lang.c: New file
7846 * ada-lang.h: New file
7847 * ada-lex.c: New file
7848 * ada-lex.l: New file
7849 * ada-tasks.c: New file
7850 * ada-typeprint.c: New file
7851 * ada-valprint.c: New file
7853 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7855 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7856 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7858 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7860 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7861 insetead of ppc-linux-tdep.o.
7862 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7863 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7865 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7867 2002-05-07 Christian Groessler <chris@groessler.org>
7868 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7869 bit register contents for little endian hosts.
7871 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7873 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7876 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7878 * gdbarch.h: Regenerate.
7880 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7882 * MAINTAINERS: Add everyone to write-after-approval list.
7884 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7886 * stack.c (frame_info): Use frame_register_unwind instead of
7887 saved_regs. Mention when the SP is on the stack or in a register.
7889 * frame.h (frame_register_unwind_ftype): Define. Document.
7890 (struct frame_info): Add field register_unwind and
7891 register_unwind_cache.
7892 (frame_register_unwind): Declare.
7893 (generic_unwind_get_saved_register): Declare.
7895 * frame.c (frame_register_unwind): New function.
7896 (generic_unwind_get_saved_register): New function.
7898 * blockframe.c (generic_call_dummy_register_unwind): New function.
7899 (frame_saved_regs_register_unwind): New function.
7900 (set_unwind_by_pc): New function.
7901 (create_new_frame): New function.
7902 (get_prev_frame): New function.
7904 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7906 * a29k-share/: Delete directory.
7907 * remote-vx29k.c: Delete file.
7909 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7911 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7912 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7914 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7916 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7917 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7920 (sparcnbsd-tdep.o): New dependency lists.
7921 * NEWS: Note new UltraSPARC NetBSD native configuration.
7922 * configure.host (sparc64-*-netbsd*): New host.
7923 * configure.tgt (sparc-*-netbsdelf*)
7924 (sparc-*-netbsd*): Set gdb_target to nbsd.
7925 (sparc64-*-netbsd*): New target.
7926 * sparc64nbsd-nat.c: New file.
7927 * sparcnbsd-nat.c: New file.
7928 * sparcnbsd-tdep.c: New file.
7929 * sparcnbsd-tdep.h: New file.
7930 * config/sparc/nbsd.mt: New file.
7931 * config/sparc/nbsd64.mh: New file.
7932 * config/sparc/nbsd64.mt: New file.
7933 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7934 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7936 * config/sparc/nbsdaout.mt: Remove.
7937 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7938 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7940 * config/sparc/nbsdelf.mt: Remove.
7941 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7942 sparc-nat.c compatiblity defines.
7943 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7944 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7945 * config/sparc/tm-nbsd64.h: New file.
7946 * config/sparc/tm-nbsdaout.h: Remove.
7947 * config/sparc/xm-nbsd.h: Remove.
7949 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7951 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7952 * sparc-tdep.c: Include osabi.h.
7953 (gdbarch_tdep): Add osabi member.
7954 (_initialize_sparc_tdep): Use gdbarch_register.
7955 (sparc_gdbarch_init): Use generic OS ABI framework.
7956 (sparc_dump_tdep): New function.
7958 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7960 * corefile.c (do_captured_read_memory_integer): Return non-zero
7962 (safe_read_memory_integer): Copy result of memory read when
7963 status is non-zero. Also, add comments.
7965 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7967 * Makefile.in (ppc_tdep_h): Define.
7970 (rs6000-tdep.o): Use $(ppc_tdep_h).
7973 (ppcnbsd-tdep.o): New dependency lists.
7974 * ppc-tdep.h: Use generic OS ABI framework.
7975 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7976 (ppc_linux_init_abi): New functions.
7977 (ppc_sysv_abi_broken_use_struct_convention)
7978 (ppc_sysv_abi_use_struct_convention)
7979 (ppc_sysv_abi_push_arguments): Move to...
7980 * ppc-sysv-tdep.c: ...here.
7981 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7982 * rs6000-tdep.c (process_note_abi_tag_sections)
7983 (get_elfosabi): Remove.
7984 (rs6000_gdbarch_init): Use generic OS ABI framework.
7985 (rs6000_dump_tdep): New function.
7986 (_initialize_rs6000_tdep): Use gdbarch_register.
7987 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7988 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7989 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7990 of ppc-linux-tdep.o.
7991 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7992 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7993 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7994 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7995 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7996 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7998 2002-05-29 Jim Blandy <jimb@redhat.com>
8000 * macroscope.c (default_macro_scope): Put `void' in empty argument
8003 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8005 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8006 * arch-utils.c: Include "sim-regno.h".
8007 * gdbarch.sh: Don't include "sim-regno.h".
8008 * gdbarch.h, gdbarch.c: Regenerate.
8009 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8011 * arch-utils.h (legacy_register_sim_regno): To here.
8012 * remote-sim.c (legacy_register_sim_regno): Move function from
8014 * arch-utils.c (legacy_register_sim_regno): To here.
8016 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8018 * sim-regno.h: New file.
8019 * Makefile.in (sim_regno_h): Define.
8020 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8021 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8022 (legacy_register_sim_regno): New function.
8023 (one2one_register_sim_regno): New function.
8024 (gdbsim_fetch_register): Rewrite.
8025 (gdbsim_store_register): Only store a register when
8026 REGISTER_SIM_REGNO is valid.
8027 * d10v-tdep.c: Include "sim-regno.h".
8028 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8029 (d10v_ts3_register_sim_regno): Ditto.
8030 * gdbarch.sh: Include "sim-regno.h".
8031 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8032 * gdbarch.h, gdbarch.c: Regenerate.
8033 * arch-utils.h (default_register_sim_regno): Delete declaration.
8034 * arch-utils.c (default_register_sim_regno): Delete function.
8036 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8038 * ppcnbsd-nat.c: Rewrite.
8039 * ppcnbsd-tdep.c: New file.
8040 * ppcnbsd-tdep.h: New file.
8041 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8042 solib.o, and solib-svr4.o.
8043 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8044 nbsd-tdep.o, and corelow.o.
8046 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8048 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8049 `tr' and `sed'. Mention that `broken' targets are not expected to
8052 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8054 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8055 Let PC point right after the prologue before looking up symbols.
8057 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8059 * i386-tdep.c (i386_register_virtual_type): Return
8060 builtin_type_vec128i for SSE registers.
8062 * gdbtypes.h (builtin_type_vec128i): Declare.
8064 * gdbtypes.c (build_builtin_type_vec128i): New function.
8065 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8066 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8067 (build_gdbtypes): Initialize new builtin vector types.
8068 (_initialize_gdbtypes): Register new vector types with gdbarch.
8070 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8072 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8073 since it has been multi-arch'd.
8074 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8075 Move Alpha and VAX multi-arch news entries to same section
8076 as other multi-arch news.
8078 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8080 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8081 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8082 static. Rename some register numbers to put them in ns32k-tdep
8084 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8085 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8087 (_initialize_ns32k_tdep): Use gdbarch_register.
8088 * ns32k-tdep.h: New file.
8089 * ns32knbsd-tdep.c: New file.
8090 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8091 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8092 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8093 REGISTER_BYTES, REGISTER_BYTE): Remove.
8094 * config/ns32k/tm-ns32k.h: New file.
8095 * config/ns32k/tm-umax.h: Remove.
8097 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8099 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8100 ns32k_store_struct_return, ns32k_extract_return_value,
8101 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8103 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8104 ns32k_saved_pc_after_call.
8105 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8106 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8107 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8108 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8109 ns32k_extract_struct_value_address.
8111 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8113 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8114 ns32k_fix_call_dummy): New.
8115 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8116 ns32k_call_dummy_words.
8117 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8118 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8119 CALL_DUMMY_NARGS): Remove.
8120 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8122 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8124 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8125 ns32k_frame_saved_pc, ns32k_frame_args_address,
8126 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8127 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8128 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8129 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8130 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8131 (BREAKPOINT): Remove..
8132 (FRAME_CHAIN): Define as ns32k_frame_chain.
8133 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8134 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8135 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8136 (FRAME_FIND_SAVED_REGS): Remove.
8137 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8138 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8139 (POP_FRAME): Define as ns32k_pop_frame.
8141 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8143 * ns32k-tdep.c (ns32k_register_byte_32082,
8144 ns32k_register_byte_32382, ns32k_register_raw_size,
8145 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8147 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8148 ns32k_register_byte_32382.
8149 * config/ns32k/tm-umax.h: Update copyright years.
8150 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8151 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8152 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8153 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8154 (ns32k_get_enter_addr): Fix prototype.
8156 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8158 * ns32k-tdep.c: Update copyright years.
8159 (ns32k_register_name_32082): New function.
8160 (ns32k_register_name_32382): Ditto.
8161 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8162 (REGISTER_NAME): Define as ns32k_register_name_32382.
8163 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8164 (REGISTER_NAME): Define as ns32k_register_name_32082.
8166 2002-05-24 Jim Blandy <jimb@redhat.com>
8168 * dwarf2read.c (free_line_header): Use xfree, not free.
8170 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8172 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8173 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8175 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8177 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8179 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8181 From Ross Alexander at NEC Europe:
8182 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8184 2002-05-23 Michael Snyder <msnyder@redhat.com>
8186 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8187 for input, rather than parse_and_eval_address.
8189 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8191 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8192 * Makefile.in (sim_d10v_h): Update definition.
8194 2002-05-24 Andrew Cagney <cagney@redhat.com>
8196 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8197 change `2002-05-22 Michael Snyder' below.
8198 (d10v_push_arguments): Ditto.
8199 (d10v_extract_return_value): Ditto.
8201 2002-05-23 Jim Blandy <jimb@redhat.com>
8203 * macrotab.c (check_for_redefinition): Don't complain if the new
8204 definition is the same as the previous one. Take more arguments
8205 to allow the comparison.
8206 (macro_define_object, macro_define_function): Pass more arguments
8207 to check_for_redefinition.
8209 2002-05-22 Michael Snyder <msnyder@redhat.com>
8211 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8212 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8213 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8214 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8215 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8216 Add a temp variable to save a call (and a memory read).
8217 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8218 if possible (so that PC_IN_CALL_DUMMY will work).
8220 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8222 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8224 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8226 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8228 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8229 (dwarf2_build_frame_info): Add offset to fde->initial_location
8230 so that frames of shared libraries are mapped correctly.
8231 (execute_stack_op): Change type of 'result' from ULONGEST to
8234 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8236 * config/alpha/tm-nbsd.h: Include solib.h.
8238 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8240 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8241 assumptions about the host's byte order.
8243 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8245 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8247 * alphanbsd-tdep.c: Include solib-svr4.h.
8248 * shnbsd-tdep.c: Ditto.
8250 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8252 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8253 nbsd-tdep.h to dependency list.
8254 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8255 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8256 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8257 nbsdaout.mh and nbsdelf.mh consistently.
8258 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8259 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8260 nbsdaout.mt and nbsdelf.mh consistently.
8261 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8262 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8263 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8264 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8265 a.out shared library stuff from here...
8266 * config/nm-nbsdaout.h: ...to here.
8267 * config/tm-nbsd.h: Remove.
8268 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8269 * config/arm/nbsd.mh: Remove.
8270 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8272 * config/arm/nbsdaout.mh: New file.
8273 * config/arm/nbsdelf.mh: New file.
8274 * config/arm/nm-nbsdaout.h: New file.
8275 * config/i386/nbsd.mh: Remove.
8276 * config/i386/nbsd.mt: Remove.
8277 * config/i386/nbsdaout.mh: New file.
8278 * config/i386/nbsdaout.mt: New file.
8279 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8280 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8281 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8282 i386_register_u_addr): Remove.
8283 * config/i386/nm-nbsdaout.h: New file.
8284 * config/i386/nm-nbsdelf.h: Remove.
8285 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8286 (USE_STRUCT_CONVENTION): Remove.
8287 * config/i386/tm-nbsdaout.h: New file.
8288 * config/i386/tm-nbsdelf.h: Remove.
8289 * config/m68k/nbsd.mh: Remove.
8290 * config/m68k/nbsd.mt: Remove.
8291 * config/m68k/nbsdaout.mh: New file.
8292 * config/m68k/nbsdaout.mt: New file.
8293 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8294 * config/m68k/nm-nbsdaout.h: New file.
8295 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8296 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8297 * config/ns32k/nbsd.mh: Remove.
8298 * config/ns32k/nbsd.mt: Remove.
8299 * config/ns32k/nbsdaout.mh: New file.
8300 * config/ns32k/nbsdaout.mt: New file.
8301 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8302 * config/ns32k/nm-nbsdaout.h: New file.
8303 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8304 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8305 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8306 (SVR4_SHARED_LIBS): Remove.
8307 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8308 * config/sparc/nbsd.mh: Remove.
8309 * config/sparc/nbsd.mt: Remove.
8310 * config/sparc/nbsdaout.mh: New file.
8311 * config/sparc/nbsdaout.mt: New file.
8312 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8313 * config/sparc/nbsdelf.mt: New file.
8314 * config/sparc/nm-nbsdaout.h: New file.
8315 * config/sparc/nm-nbsdelf.h: Remove.
8316 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8317 * config/sparc/tm-nbsdaout.h: New file.
8319 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8321 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8323 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8325 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8327 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8329 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8331 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8333 * NEWS: Note new MIPS NetBSD native configuration.
8334 * configure.host (mips*-*-netbsd*): New host.
8335 * configure.tgt (mips*-*-netbsd*): New target.
8336 * mipsnbsd-nat.c: New file.
8337 * mipsnbsd-tdep.c: New file.
8338 * mipsnbsd-tdep.h: New file.
8339 * config/mips/nbsd.mh: New file.
8340 * config/mips/nbsd.mt: New file.
8341 * config/mips/nm-nbsd.h: New file.
8342 * config/mips/tm-nbsd.h: New file.
8344 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8346 * Makefile.in (SFILES): Add osabi.c.
8347 (COMMON_OBS): Add osabi.o.
8348 (osabi.o): New dependency list.
8349 * osabi.c: New file.
8350 * osabi.h: New file.
8351 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8353 * Makefile.in (alpha_tdep_h): Define and use instead of
8355 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8356 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8358 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8359 * alpha-tdep.h: Include osabi.h.
8360 (alpha_abi): Remove.
8361 (gdbarch_tdep): Use generic OS ABI framework.
8362 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8363 gdbarch_register_osabi.
8364 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8365 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8366 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8368 * Makefile.in (sh_tdep_h): Add osabi.h.
8369 * sh-tdep.h (sh_osabi): Remove.
8370 (gdbarch_tdep): Use generic OS ABI framework.
8371 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8372 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8373 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8374 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8376 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8377 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8378 gdbarch_register_osabi.
8379 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8380 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8381 (get_elfosabi): Rename to...
8382 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8383 ABI framework support routines.
8384 (arm_gdbarch_init): Use generic OS ABI framework.
8385 (arm_dump_tdep): Likewise.
8386 (_initialize_arm_tdep): Likewise.
8387 * arm-tdep.h: Include osabi.h.
8389 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8391 (arm_gdbarch_register_os_abi): Remove prototype.
8392 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8393 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8395 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8396 * mips-tdep.c: Include osabi.h.
8397 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8400 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8402 * h8300-tdep.c: Fix formatting.
8404 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8406 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8407 printing vector registers.
8409 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8411 From Fernando Nasser:
8412 * remote.c (remote_async_open_1): Re-throw the exception when the
8414 (remote_cisco_open): Ditto.
8415 (remote_open_1): Ditto.
8417 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8419 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8420 (remote_start_remote): Add uiout parameter. Pass through to
8421 remote_start_remote_dummy.
8422 (remote_open_1): Use catch_exception instead of catch_errors.
8423 (remote_async_open_1): Ditto.
8424 (remote_cisco_open): Ditto.
8426 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8428 * remote.c (remote_start_remote): Replace PTR with void pointer.
8429 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8432 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8434 * gdb_indent.sh: Allow the script to be run in the sim directory.
8436 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8438 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8439 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8441 * corelow.c (core_open): Only call set_gdbarch_from_file if
8444 2002-05-17 Andrey Volkov <avolkov@transas.com>
8446 * h8300-tdep.c: Add support of EXR register
8447 * config/h8300/tm-h8300.h: Ditto.
8449 2002-05-17 Andrey Volkov <avolkov@transas.com>
8451 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8453 2002-05-17 Andrey Volkov <avolkov@transas.com>
8455 * h8300-tdep.c: Change literal regnums to REGNO.
8457 2002-05-17 Jim Blandy <jimb@redhat.com>
8459 * NEWS: Note addition of macro support.
8461 Expand preprocessor macros in C expressions.
8462 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8463 (scan_macro_expansion, scanning_macro_expansion,
8464 finished_macro_expansion): New function declarations.
8465 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8466 variable declarations.
8467 * parser-defs.h (expression_context_pc): New declaration.
8468 * parse.c (expression_context_pc): New variable.
8469 (parse_exp_1): Set expression_context_pc, as well as
8470 expression_context_block.
8471 * c-exp.y (yylex): If we're not already reading the result of a
8472 macro expansion, try to macro-expand the next token. When we're
8473 done scanning a macro expansion, switch back to the mainline text.
8474 Commas and `if's in a macro's expansion don't terminate the input.
8475 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8476 (macro_original_text, macro_expanded_text,
8477 expression_macro_lookup_func, expression_macro_lookup_baton): New
8479 (scan_macro_expansion, scanning_macro_expansion,
8480 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8481 c_preprocess_and_parse): New functions.
8482 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8483 c_preprocess_and_parse, instead of c_parse.
8484 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8485 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8487 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8489 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8490 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8491 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8493 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8495 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8497 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8499 * Makefile.in (sh_tdep_h): Define and use.
8500 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8501 register enum): Move to...
8502 * * sh-tdep.h: ...here.
8503 * sh-tdep.c: Include sh-tdep.h.
8504 * sh3-rom.c: Likewise.
8505 * shnbsd-tdep.c: Likewise.
8507 2002-05-16 Michael Snyder <msnyder@redhat.com>
8509 * arm-tdep.c: Spelling fix in comment.
8511 2002-05-16 Jim Blandy <jimb@redhat.com>
8513 Add commands for manually expanding macros and showing their
8515 * macrocmd.c, macroscope.c, macroscope.h: New files.
8516 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8517 (macroscope_h): New variable.
8518 (HFILES_NO_SRCDIR): Add macroscope.h.
8519 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8520 (macroscope.o, macrocmd.o): New rules.
8522 Teach the Dwarf 2 reader to read macro information.
8523 * dwarf2read.c: #include "macrotab.h".
8524 (dwarf_macinfo_buffer): New variable.
8525 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8527 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8528 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8529 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8530 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8531 dwarf2_macro_spaces_in_definition): New complaints.
8532 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8533 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8534 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8535 the partial symbol table.
8536 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8537 from what's recorded in the partial symbol table.
8538 (read_file_scope): If the compilation unit has a
8539 `DW_AT_macro_info' attribute, read its macro information.
8540 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8542 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8545 * ser-tcp.c: Don't include <netinet/udp.h>.
8547 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8549 * MAINTAINERS: Update my email address.
8551 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8553 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8554 include file of the same name.
8556 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8558 * configure.tgt: Mark v850 as multi-arched.
8559 * config/v850/tm-v850.h: Remove file.
8560 * config/v850/v850.mt: Eliminate TM_FILE.
8562 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8564 * v850-tdep.c: Full multi-arch.
8565 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8566 Define GDB_MULTI_ARCH to 2.
8568 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8570 * p-exp.y (current_type): New static variable.
8571 Carries the type of the expression at the position that is parsed.
8572 (push_current_type, pop_current_type): Two new functions. Used
8573 to store/restore current_type in expression on specific tokens.
8574 (search_field): New static variable. Set to one after parsing a point
8575 as at that point only a FIELDNAME token should be searched.
8576 (FIELDNAME): New token. After a point only a token belonging to
8577 current_type type definition is allowed.
8578 (all over token rules): reset and change current_type according
8580 (exp '[' rule): insert implicit array index field if
8581 exp is a pascal string type.
8583 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8585 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8586 frame info. Use frame_info's saved_regs instead of matching member
8587 in extra_frame_info throughout.
8588 (v850_frame_init_saved_regs): New function.
8589 (v850_init_extra_frame_info): Move most functionality into
8590 v850_frame_init_saved_regs().
8591 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8592 (v850_frame_find_saved_regs): Remove declaration.
8593 (FRAME_FIND_SAVED_REGS): Remove definition.
8594 (v850_frame_init_saved_regs): Add declaration.
8595 (FRAME_INIT_SAVED_REGS): Add definition.
8597 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8599 * v850-tdep.c: Begin multi-arch'ing v850.
8600 (v850_target_architecture_hook): Remove function.
8601 (v850_gdbarch_init): New function. Add code previously in
8602 v850_target_architecture_hook().
8603 (_initialize_v850_tdep): Don't set target_architecture_hook.
8604 Call register_gdbarch_init() instead.
8606 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8608 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8609 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8610 (fixup_class_method_type): Likewise.
8612 2002-05-15 Jim Blandy <jimb@redhat.com>
8614 Add macro structures to GDB's symbol tables. Nobody puts anything
8616 * symtab.h (struct symtab): New member: `macro_table'.
8617 * buildsym.h (pending_macros): New global variable.
8618 * buildsym.c: #include "macrotab.h".
8619 (buildsym_init): Initialize `pending_macros'.
8620 (end_symtab): If we found macro information while reading a CU's
8621 debugging info, do build a symtab structure for it. Make the
8622 symtab point to the macro information, and clear the
8623 `pending_macros' pointer which held it while we were reading the
8625 (really_free_pendings): Free any pending macro table.
8626 * objfiles.h (struct objfile): New member: `macro_cache'.
8627 * objfiles.c (allocate_objfile): Set allocate and free functions
8628 for the macro cache's objstack.
8629 (free_objfile): Empty the macro cache's obstack.
8630 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8631 set new allocate and free functions for it.
8632 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8633 free functions for the macro cache's objstack. (Why is this
8634 function building its own objfile?)
8635 * symmisc.c (print_objfile_statistics): Print statistics on the
8637 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8639 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8641 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8642 (REGISTER_U_ADDR): Delete definition.
8643 (arm_register_u_addr): Delete declaration.
8645 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8647 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8648 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8650 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8652 * regcache.c (register_valid): Revise comments refering to "Not
8653 available" and "unavailable".
8654 * frame.c (frame_register_read): Ditto.
8655 * findvar.c (value_of_register): Ditto.
8657 2002-05-15 Andrew Cagney <cagney@redhat.com>
8659 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8660 (remote-sim.o): Update dependencies.
8661 (d10v-tdep.o): Specify dependencies.
8662 (sim_d10v_h): Define.
8664 2002-05-14 Jim Blandy <jimb@redhat.com>
8666 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8667 * macrotab.c (macro_lookup_inclusion, find_definition,
8668 new_macro_table): Same.
8670 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8671 not `! strcmp ()'. This is a dubious improvement.
8672 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8674 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8675 although it's not necessary, to avoid a warning.
8677 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8679 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8680 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8681 TYPE_INSTANCE_FLAGS.
8682 (struct main_type): New.
8683 (struct type): Move most members to struct main_type. Change
8684 cv_type and as_type to new type_chain member. Add instance_flags.
8685 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8686 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8687 (finish_cv_type): Remove prototype.
8688 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8690 (alloc_type_instance): New function.
8691 (smash_type): New function.
8692 (make_pointer_type, make_reference_type, make_function_type)
8693 (smash_to_member_type, smash_to_method_type): Call smash_type.
8694 (make_qualified_type): New function.
8695 (make_type_with_address_space): Call make_qualified_type.
8696 (make_cv_type): Likewise.
8697 (finish_cv_type): Remove unnecessary function.
8698 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8699 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8700 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8701 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8702 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8703 * hpread.c (hpread_read_struct_type): Likewise.
8704 * stabsread.c (read_struct_type): Likewise.
8706 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8708 * configure.tgt: Add a catch all sh* target, for cases like
8709 sh[2,3,4]-elf and sh-hms.
8711 2002-05-14 Keith Seitz <keiths@redhat.com>
8713 * event-loop.c (create_file_handler): Don't do anything but
8714 update data when we are given a fd which we are already
8717 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8719 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8720 (update_context): Use __func__ in warnings.
8722 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8724 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8725 and tcp_close to net_open and net_close.
8726 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8727 using UDP if requested. Don't try to disable Nagle on UDP
8729 * remote.c (remote_serial_open): New function. Warn about UDP.
8730 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8732 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8734 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8736 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8738 * configure.tgt: Remove sh-hms target.
8739 * MAINTAINERS: Don't list sh-hms as a separate target.
8741 2002-05-13 Jim Blandy <jimb@redhat.com>
8743 Add first preprocessor macro-expansion files.
8744 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8745 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8746 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8747 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8748 (COMMON_OBS): Add macrotab.o, macroexp.o.
8749 (macroexp.o, macrotab.o): New rules.
8751 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8753 * config/m88k/tm-m88k.h: Update copyright.
8754 (m88k_target_write_pc): Declare
8755 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8756 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8757 (SHIFT_INST_REGS): Update definition.
8758 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8759 using old definition of TARGET_WRITE_PC.
8760 * regcache.c (generic_target_write_pc): Delete code handling
8762 * gdbarch.sh (NNPC_REGNUM): Delete.
8763 * gdbarch.h, gdbarch.c: Regenerate.
8765 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8767 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8770 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8772 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8773 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8774 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8776 * c-typeprint.c (cp_type_print_method_args): Likewise.
8777 (c_type_print_args): Likewise.
8778 * d10v-tdep.c (d10v_push_arguments): Likewise.
8779 (d10v_extract_return_value): Likewise.
8780 * expprint.c (print_subexp): Likewise.
8781 * gdbtypes.c (lookup_primitive_typename): Likewise.
8782 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8783 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8784 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8785 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8786 (TYPE_VECTOR): Likewise.
8787 * hpread.c (hpread_read_struct_type)
8788 (fix_static_member_physnames, fixup_class_method_type)
8789 (hpread_type_lookup): Likewise.
8790 * mdebugread.c (parse_symbol, parse_type): Likewise.
8791 * p-lang.c (is_pascal_string_type): Likewise.
8792 * valops.c (hand_function_call): Likewise.
8793 * x86-64-tdep.c (classify_argument): Likewise.
8795 * hpread.c (hpread_read_function_type)
8796 (hpread_read_doc_function_type): Call replace_type.
8797 * dstread.c (create_new_type): Delete.
8798 (decode_dst_structure, process_dst_function): Call alloc_type.
8799 Use type access macros.
8801 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8803 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8804 the're not supported by the current architecture.
8805 (i387_fill_fxsave): Likewise.
8807 2002-05-12 Fred Fish <fnf@redhat.com>
8809 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8810 sect_index_xxx members to index the first slot in section_offsets
8811 if all of the section_offsets are zero.
8813 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8815 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8816 checked in with last change.
8818 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8820 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8821 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8824 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8826 * Makefile.in: Update dependencies.
8828 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8830 * language.c (local_hex_string_custom): Simplify. Do not depend
8831 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8833 * memattr.c (mem_info_command): Replace calls to
8834 longest_local_hex_string and longest_local_hex_string_custom.
8835 * buildsym.c (make_blockvector): Ditto.
8836 * solib.c (info_sharedlibrary_command): Ditto.
8837 * tracepoint.c (tracepoints_info): Ditto.
8838 * symtab.c (print_msymbol_info): Ditto.
8840 * language.c (local_hex_string): Delete.
8841 (local_hex_string_custom): Delete.
8842 (longest_local_hex_string): Rename to local_hex_string.
8843 (longest_local_hex_string_custom): Rename to
8844 local_hex_string_custom.
8845 * language.h (local_hex_string): Change parameter type to LONGEST.
8846 (local_hex_string_custom): Ditto.
8847 (longest_local_hex_string): Delete declaration.
8848 (longest_local_hex_string_custom): Ditto.
8850 * solib.c: Update copyright.
8851 * memattr.c: Update copyright.
8853 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8855 * arch-utils.h (legacy_register_to_value): Declare.
8856 (legacy_value_to_register): Declare.
8857 (legacy_convert_register_p): Declare.
8858 * arch-utils.c (legacy_register_to_value): New function.
8859 (legacy_value_to_register): New function.
8860 (legacy_convert_register_p): New function.
8862 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8863 (VALUE_TO_REGISTER): Define.
8864 (CONVERT_REGISTER_P): Define.
8865 * gdbarch.h, gdbarch.c: Regenerate.
8867 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8869 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8872 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8873 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8875 * Makefile.in: Update dependencies for valops.c.
8876 * valops.c: Include "gdb_assert.h".
8877 (typecmp): Skip THIS parameter to methods.
8878 (find_method_list): Remove static_memfuncp argument,
8879 update callers. Check for stub methods.
8880 (find_value_oload_method_list): Don't set *static_memfuncp.
8881 (find_overload_match): Don't check for stub methods. Assert
8882 that methods are not stubbed. Handle static methods.
8883 (value_find_oload_method_list): Remove static_memfuncp argument.
8884 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8885 to the argument list for static stub methods.
8886 * value.h (value_find_oload_method_list): Update prototype.
8888 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8890 * arch-utils.h (generic_register_size): Declare.
8891 (generic_register_raw_size, generic_register_virtual_size): Delete
8893 * arch-utils.c (generic_register_raw_size): Delete.
8894 (generic_register_size): New function.
8895 (generic_register_virtual_size): Delete.
8897 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8898 default generic_register_size.
8899 * gdbarch.h, gdbarch.c: Re-generate.
8901 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8902 register_virtual_size.
8903 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8904 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8906 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8908 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8909 * gdbarch.h, gdbarch.c: Regenerate.
8910 * gnu-v3-abi.c: Update copyright.
8911 (vtable_address_point_offset): Update.
8912 (gnuv3_rtti_type): Update.
8913 (gnuv3_baseclass_offset): Update.
8914 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8915 (init_fetch_link_map_offsets): Update.
8916 * remote.c (get_remote_state): Update.
8918 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8920 * TODO: Remove value_headof/value_from_vtable_info comment.
8921 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8922 * values.c (value_headof, value_from_vtable_info): Delete.
8923 * value.h (value_from_vtable_info): Delete prototype.
8925 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8927 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8928 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8930 (gdb_assert_h): Define.
8931 (gdb_wait_h): Define.
8932 (gdb_regex_h): Define.
8934 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8936 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8937 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8939 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8941 * nbsd-tdep.c: Fix comment.
8943 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8945 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8946 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8947 (nbsd-tdep.o): New dependency list.
8948 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8950 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8951 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8952 * nbsd-tdep.c: New file.
8953 * nbsd-tdep.h: New file.
8954 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8956 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8957 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8958 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8959 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8961 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8963 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8964 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8965 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8966 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8967 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8968 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8970 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8972 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8973 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8974 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8975 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8976 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8977 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8978 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8980 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8982 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8983 fetch_elfcore_registers to...
8984 * i386nbsd-tdep.c: ...here.
8985 (i386nbsd_use_struct_convention): Rename to...
8986 (i386nbsd_aout_use_struct_convention): ...this.
8987 (i386nbsd_supply_reg): New function.
8988 (i386nbsd_fill_reg): New function.
8989 (fetch_core_registers): Use i386nbsd_supply_reg.
8990 (fetch_elfcore_registers): Likewise.
8991 (_initialize_i386nbsd_tdep): New function.
8992 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8993 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8994 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8995 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8996 (i386nbsd_aout_use_struct_convention): ...this.
8998 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9000 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9001 (store_inferior_registers): Use shnbsd_fill_reg.
9002 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9003 sh_nbsd_supply_register): Collapse into...
9004 (shnbsd_supply_reg): ...this.
9005 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9006 (shnbsd_fill_reg): ...this.
9007 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9008 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9009 (fetch_core_registers): Use shnbsd_supply_reg.
9010 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9011 (sh_nbsd_core_fns): Rename to...
9012 (shnbsd_core_fns): ...this.
9013 (sh_nbsd_elfcore_fns): Rename to...
9014 (shnbsd_elfcore_fns): ...this.
9015 (sh_nbsd_init_abi): Rename to...
9016 (shnbsd_init_abi): ...this.
9017 (_initialize_sh_nbsd_tdep): Rename to...
9018 (_initialize_shnbsd_tdep): ...this.
9019 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9020 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9021 sh_nbsd_fill_register): Remove prototypes.
9022 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9024 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9026 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9027 (i387-nat.o): Delete dependency list.
9028 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9029 (x86-64-linux-nat.o): Likewise.
9030 * i387-nat.c: Delete file, moving contents to...
9031 * i387-tdep.c: ...here.
9032 * i387-nat.h: Rename...
9033 * i387-tdep.h: ...to this.
9034 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9035 * i386-linux-nat.c: Likewise.
9036 * i386bsd-nat.c: Likewise.
9037 * i386gnu-nat.c: Likewise.
9038 * i386nbsd-nat.c: Likewise.
9039 * i386v4-nat.c: Likewise.
9040 * x86-64-linux-nat.c: Likewise.
9041 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9042 * config/i386/go32.mh (NATDEPFILES): Likewise.
9043 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9044 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9045 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9046 * config/i386/linux.mh (NATDEPFILES): Likewise.
9047 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9048 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9049 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9050 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9052 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9054 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9055 (alphanbsd-nat.o): Remove dependency list.
9056 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9057 * alphanbsd-nat.c: Delete. Contents moved to...
9058 * alphanbsd-tdep.c: ...here.
9059 (_initialize_alphanbsd_tdep): Register core functions.
9060 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9062 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9064 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9065 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9066 (alphanbsd-nat.o): Likewise.
9067 (alphabsd-tdep.o): New dependency list.
9068 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9069 (fill_gregset): Use alphabsd_fill_reg.
9070 (supply_fpregset): Use alphabsd_supply_fpreg.
9071 (fill_fpregset): Use alphabsd_fill_fpreg.
9072 (fetch_inferior_registers): Use struct reg and struct fpreg
9073 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9074 and alphabsd_supply_fpreg.
9075 (store_inferior_registers): Use struct reg and struct fpreg
9076 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9077 and alphabsd_fill_fpreg.
9078 * alphabsd-tdep.c: New file.
9079 * alphabsd-tdep.h: New file.
9080 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9081 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9082 alphabsd_supply_fpreg.
9083 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9084 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9086 2002-05-11 Eric Christopher <echristo@redhat.com>
9088 * mips-tdep.c (mips_double_register_type): Fix thinko.
9089 (mips_single_register_type): Ditto.
9090 * MAINTAINERS: Add self.
9092 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9094 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9095 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9096 right thing on architectures with different endianness and/or
9099 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9101 From Christian Limpach <chris@Pin.LU>
9102 * configure.in: Change sed expression which comments out
9103 NATDEPFILES to also comment out continuation lines.
9104 * configure: Regenerate.
9106 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9108 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9111 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9113 * sh-tdep.c: Include correct file.
9115 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9117 New support for sh64-elf (sh5) target.
9119 * configure.tgt: For sh64-elf target, default to sh-elf.
9121 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9122 (struct gdbarch_tdep): Add new fields for new registers and ABI
9125 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9126 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9127 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9128 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9129 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9130 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9131 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9132 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9133 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9134 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9135 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9136 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9137 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9138 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9139 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9140 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9141 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9142 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9143 sign_extend, sh64_nofp_frame_init_saved_regs,
9144 sh64_init_extra_frame_info, sh64_get_saved_register,
9145 sh64_extract_struct_value_address, sh64_pop_frame,
9146 sh64_push_arguments, sh64_extract_return_value,
9147 sh64_store_return_value, sh64_show_media_regs,
9148 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9149 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9150 sh_sh64_register_virtual_type,
9151 sh_sh64_register_convert_to_virtual,
9152 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9153 sh64_register_read, sh64_pseudo_register_write,
9154 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9155 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9156 sh64_do_pseudo_register, sh_compact_do_registers_info,
9157 sh64_do_registers_info, sh_gdbarch_init): New functions.
9159 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9161 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9163 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9165 * linespec.c (decode_line_1): Check for a double quote after
9166 a filename correctly.
9168 2002-05-10 Jim Blandy <jimb@redhat.com>
9170 Properly track the size of the current objfile's .debug_line section.
9171 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9172 (DWARF_LINE_SIZE): New macro.
9173 (dwarf2_build_psymtabs_hard): Record the line section's size in
9174 the partial symbol table.
9175 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9178 2002-05-10 Petr Sorfa <petrs@caldera.com>
9180 * ia64-tdep.c: Handle breakpoints on L instruction type
9181 in MLX instruction bundle by moving the breakpoint to
9182 the third slot (X instruction type) as L holds only data.
9184 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9186 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9187 (process_one_symbol): Complain about discarding local symbols
9188 due to a misplaced N_LBRAC entry.
9190 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9192 From Daniel Berlin <dan@cgsoftware.com>
9193 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9194 decrease the depth we are at, in the case of templates.
9196 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9198 * mips-tdep.c (mips_float_register_type): New function.
9199 (mips_double_register_type): New function.
9200 (mips_print_register): Use them.
9201 (do_fp_register_row): Likewise.
9203 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9205 * signals/signals.c (signals): Remove conditional compilation around
9206 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9207 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9209 2002-05-09 Michael Snyder <msnyder@redhat.com>
9211 * remote-rdp.c (remote_rdp_can_run): Remove.
9213 2002-05-09 Tom Tromey <tromey@redhat.com>
9215 * jv-valprint.c (java_val_print): Handle `char' as a special case
9218 2002-05-09 Michael Snyder <msnyder@redhat.com>
9220 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9221 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9222 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9223 str r(0123),[sp,#nn].
9224 (arm_skip_prologue): Ditto. Also make disassembly
9225 order-independent by placing it in a loop.
9227 2002-05-06 Michael Snyder <msnyder@redhat.com>
9229 * stabsread.c (read_type): Add recognition for new attribute:
9230 "@V;" means that an array type is actually a vector.
9231 This is analogous to the vector flag that's been added to dwarf2.
9233 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9235 * i386-tdep.h (i386_abi): New enum.
9236 (struct gdbarch_tdep): Replace os_ident member with abi.
9237 (i386_gdbarch_register_os_abi): New prototype.
9238 * i386-tdep.c (i386_abi_names): New array.
9239 (process_note_abi_tag_sections): Removed.
9240 (process_note_sections): New function.
9241 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9242 (struct i386_abi_handler): New struct.
9243 (i386_abi_handler_list): New variable.
9244 (i386_gdbarch_register_os_abi): New function.
9245 (i386_gdbarch_init): Adapt for the changes given above.
9247 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9249 * gregset.h: Say "GNU/Linux".
9251 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9253 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9254 (build_gdbtypes): Build builtin_type_v2_float.
9255 (_initialize_gdbtypes): Register new builtin type.
9257 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9259 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9260 (clear_gdbarch_swap): New function.
9261 (initialize_non_multiarch): Call.
9262 (gdbarch_update_p): Before calling init(), swap out and clear the
9263 existing architecture.
9264 * gdbarch.c: Regenerate.
9266 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9268 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9271 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9273 * sh-nbsd-nat.c: Rename to...
9274 * shnbsd-nat.c: ...this.
9275 * sh-nbsd-tdep.c: Rename to...
9276 * shnbsd-tdep.c: ...this.
9277 * sh-nbsd-tdep.h: Rename to...
9278 * shnbsd-tdep.h: ...this.
9279 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9280 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9282 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9284 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9285 concatenation for command help messages.
9287 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9289 * NEWS: Note new sh*-*-netbsdelf* configuration.
9290 * configure.host: Set gdb_host_cpu to sh for all sh*.
9291 (sh*-*-netbsdelf*): New host.
9292 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9293 (sh*-*-netbsdelf*): New target.
9294 * sh-nbsd-nat.c: New file.
9295 * sh-nbsd-tdep.c: New file.
9296 * sh-nbsd-tdep.h: New file.
9297 * config/sh/nbsd.mh: New file.
9298 * config/sh/nbsd.mt: New file.
9299 * config/sh/nm-nbsd.h: New file.
9300 * config/sh/tm-nbsd.h: New file.
9302 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9304 * sh-tdep.c (sh_osabi_names): Declare.
9305 (process_note_abi_tag_sections): New function.
9306 (get_elfosabi): Ditto.
9307 (sh_gdbarch_register_os_abi): Ditto.
9308 (sh_dump_tdep): Ditto.
9309 _initialize_sh_tdep): Use gdbarch_register to register
9310 sh_gdbarch_init and sh_dump_tdep.
9311 * config/sh/tm-sh.h (sh_osabi): Declare.
9312 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9314 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9316 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9317 (thumb_scan_prologue): Ditto.
9318 (arm_find_callers_reg): Ditto.
9319 (arm_frame_chain): Ditto.
9320 (arm_init_extra_frame_info): Ditto.
9321 (arm_frame_saved_pc): Ditto.
9322 (arm_pop_frame): Ditto.
9323 (arm_push_return_address): New function.
9324 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9325 call_dummy_location, call_dummy_breakpoint_offset_p,
9326 call_dummy_breakpoint_offset, call_dummy_p,
9327 call_dummy_stack_adjust_p, call_dummy_words,
9328 sizeof_call_dummy_words, call_dummy_start_offset,
9329 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9330 call_dummy_address, push_return_address and push_dummy_frame for
9331 generic dummy frames.
9333 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9335 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9336 size computation for alloca.
9337 (sh_fp_frame_init_saved_regs): Likewise.
9339 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9341 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9342 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9343 * arm-tdep.c (arm_store_return_value): Use them.
9344 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9345 * remote-rdp.c (remote_rdp_fetch_register): Use
9346 ARM_MAX_REGISTER_RAW_SIZE.
9347 (remote_rdp_store_register): Likewise.
9349 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9351 * dwarf2cfi.c: Code cleanup, removed unused variables,
9352 added default labels to switch {} statements.
9353 * x86-64-tdep.c: Ditto.
9354 * x86-64-linux-nat.c: Ditto.
9356 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9358 * solib.h: Protect against multiple inclusion.
9360 2002-05-06 Jim Blandy <jimb@redhat.com>
9362 Add first preprocessor macro-expansion files.
9363 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9364 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9365 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9366 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9367 (COMMON_OBS): Add macrotab.o, macroexp.o.
9368 (macroexp.o, macrotab.o): New rules.
9370 Separate the job of reading the line number info statement program
9371 header (...expialidocious) out into its own function.
9372 * dwarf2read.c (struct line_head, struct filenames, struct
9373 directories): Replace with...
9374 (struct line_header): New structure, containing the full
9375 contents of the statement program header, including the
9376 include directory and file name tables.
9377 (read_file_scope): If we have line number info, instead of just
9378 calling dwarf_decode_lines to do all the work, call
9379 dwarf_decode_line_header first to get a `struct line_header'
9380 containing the data in the statement program header, and then
9381 pass that to dwarf_decode_lines, which will pick up where that
9382 left off. Be sure to clean up the `struct line_header' object.
9383 (dwarf_decode_line_header, free_line_header, add_include_dir,
9384 add_file_name): New functions.
9385 (dwarf_decode_lines): Move all the code to read the statement
9386 program header into dwarf_decode_line_header. Take the line
9387 header it built as the first argument, instead of the offset to
9388 the compilation unit's line number info. Use the new `struct
9389 line_header' type instead of the old structures. No need to do
9390 cleanups here now, since we don't allocate anything.
9391 (dwarf2_statement_list_fits_in_line_number_section,
9392 dwarf2_line_header_too_long): New complaints.
9394 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9396 * gdbtypes.c (init_vector_type): New function.
9397 (build_builtin_type_vec128): Simplify the representation of SIMD
9399 (build_gdbtypes): Initialize new builtin vector types.
9400 (_initialize_gdbtypes): Register new vector types with gdbarch.
9401 (builtin_type_v4_float, builtin_type_v4_int32,
9402 builtin_type_v8_int16, builtin_type_v16_int8,
9403 builtin_type_v2_int32, builtin_type_v4_int16,
9404 builtin_type_v8_int8): New (renamed) SIMD types.
9406 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9408 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9409 (i387_fill_fxsave): Likewise.
9411 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9413 * alpha-tdep.c (alpha_extract_return_value): Don't use
9414 non-constant array size in prototype.
9416 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9418 From Brian Taylor <briant at model dot com>:
9419 * ui-out.c (ui_out_field_core_addr): Use the function
9420 longest_local_hex_string_custom'to format addresses > 32 bits
9423 * ui-out.c (ui_out_field_core_addr): Update comment.
9425 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9427 * stack.c (select_and_print_frame): Make static. Delete the
9429 (func_command): Update call.
9430 (select_frame_command): Delete code computing the frame level.
9431 * frame.h (select_and_print_frame): Delete declaration.
9433 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9435 * sparc-tdep.c (sparc_get_saved_register): Comment why
9436 get_prev_frame call is safe.
9438 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9440 * frame.h (select_frame): Delete level parameter.
9441 * stack.c (select_frame): Update. Use frame_relative_level to
9442 obtain the frame's level.
9443 (select_and_print_frame): Update call.
9444 (select_frame_command): Ditto.
9445 (up_silently_base): Ditto.
9446 (down_silently_base): Ditto.
9447 * ocd.c (ocd_start_remote): Ditto.
9448 * remote-rdp.c (remote_rdp_open): Ditto.
9449 * remote-mips.c (mips_initialize): Ditto.
9450 (common_open): Ditto.
9451 * remote-e7000.c (e7000_start_remote): Ditto.
9452 * m3-nat.c (select_thread): Ditto.
9453 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9454 (child_get_current_exception_event): Ditto.
9455 * varobj.c (varobj_create): Ditto.
9456 (varobj_update): Ditto.
9457 (c_value_of_root): Ditto.
9458 * tracepoint.c (finish_tfind_command): Ditto.
9459 * corelow.c (core_open): Ditto.
9460 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9461 * thread.c (info_threads_command): Ditto.
9462 (switch_to_thread): Ditto.
9463 * infrun.c (normal_stop): Ditto.
9464 (restore_selected_frame): Ditto.
9465 (restore_inferior_status): Ditto.
9466 * breakpoint.c (insert_breakpoints): Ditto.
9467 (watchpoint_check): Ditto.
9468 (bpstat_stop_status): Ditto.
9469 (do_enable_breakpoint): Ditto.
9470 * blockframe.c (flush_cached_frames): Ditto.
9471 (reinit_frame_cache): Ditto.
9473 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9475 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9478 2002-05-04 Jim Blandy <jimb@redhat.com>
9480 * gdbtypes.c (replace_type): Doc fix.
9482 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9484 * valprint.c (strcat_longest): Delete commented out function.
9487 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9489 * MAINTAINERS: Mark a29k as deleted.
9490 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9491 Move new configurations to the top.
9492 * configure.tgt: Remove a29k.
9493 * config/a29k/tm-vx29k.h: Delete.
9494 * config/a29k/vx29k.mt: Delete.
9495 * config/a29k/tm-a29k.h: Delete.
9496 * config/a29k/a29k-udi.mt: Delete.
9497 * config/a29k/a29k.mt: Delete.
9498 * a29k-tdep.c: Delete.
9499 * remote-udi.c: Delete.
9500 * remote-mm.c: Delete.
9501 * remote-eb.c: Delete.
9502 * remote-adapt.c: Delete.
9503 * Makefile.in: Remove obsolete code.
9504 * config/s390/s390x.mt: Ditto.
9505 * config/s390/s390.mt: Ditto.
9506 * config/sparc/sparclynx.mh: Ditto.
9507 * config/sparc/linux.mh: Ditto.
9508 * config/pa/hppaosf.mh: Ditto.
9509 * config/pa/hppabsd.mh: Ditto.
9510 * config/ns32k/nbsd.mt: Ditto.
9511 * config/mips/vr5000.mt: Ditto.
9512 * config/m68k/sun3os4.mh: Ditto.
9513 * config/m68k/nbsd.mt: Ditto.
9514 * config/m68k/m68klynx.mh: Ditto.
9515 * config/m32r/m32r.mt: Ditto.
9516 * config/i386/x86-64linux.mt: Ditto.
9517 * config/i386/nbsdelf.mt: Ditto.
9518 * config/i386/nbsd.mt: Ditto.
9519 * config/i386/i386lynx.mh: Ditto.
9521 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9523 * target.c (debug_print_register): New function. Handle oversize
9525 (debug_to_fetch_registers): Call.
9526 (debug_to_store_registers): Call.
9528 2002-05-03 Jim Blandy <jimb@redhat.com>
9530 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9531 (read_type): Doc fix.
9532 * gdbtypes.c (replace_type): Doc fix.
9534 * stabsread.c (multiply_defined_struct): New complaint.
9535 (read_struct_type): If the type we were passed isn't empty, or
9536 incomplete, don't read the new struct type into it; complain,
9537 and return the original type unchanged. Take a new `type_code'
9538 argument, which is the type code for the new type.
9539 (read_type): Rather than storing the type's type code here, pass
9540 it as an argument to read_struct_type, and let that take care of
9541 storing it. That way, we don't overwrite the original type code,
9542 so read_struct_type can use it to decide whether we're overwriting
9543 something we shouldn't.
9544 (complain_about_struct_wipeout): New function.
9546 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9548 * gdbarch.sh: Assert that gdbarch is non-NULL.
9549 * gdbarch.c: Regenerate.
9551 2002-05-03 Jason Merrill <jason@redhat.com>
9553 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9556 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9558 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9559 (x86_64_dwarf2gdb_regno_map_length),
9560 (x86_64_dwarf2_reg_to_regnum): Added.
9561 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9562 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9563 (_initialize_x86_64_tdep): Synced with the change above.
9564 (x86_64_skip_prologue): Reformulated message.
9566 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9568 * f-exp.y: Also use new prev_lexptr variable
9569 to improve error reporting. Based on Michael Snyder
9570 2002-04-24 dated patch to c-exp.y.
9571 * jv-exp.y: Likewise.
9572 * m2-exp.y: Likewise.
9574 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9576 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9577 we are dealing with vectors.
9579 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9581 * config/m68k/tm-nbsd.h: Obvious fix,
9582 correct machine name.
9584 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9586 * p-typeprint.c (pascal_type_print_base): Add support
9587 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9589 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9591 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9592 for fondamental pascal 'char' type.
9594 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9596 * p-lang.h (is_pascal_string_type): Declaration changed,
9597 new sixth argument of type char ** added.
9598 * p-lang.c (is_pascal_string_type): Implementation
9599 changed. Args length_pos, length_size, string_pos, char_size
9600 can now be NULL. New argument arrayname set to the field
9601 name of the char array. Return value set to char array
9602 field index plus one.
9603 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9604 is_pascal_string_type function.
9606 2002-05-02 Andrew Cagney <cagney@redhat.com>
9608 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9609 <cagney@redhat.com> change.
9610 * gdbarch.c: Regenerate.
9612 2002-05-02 Andrew Cagney <cagney@redhat.com>
9614 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9615 before probing for a new one. Detect errorenous gdbarch_init
9617 * gdbarch.c: Regenerate.
9619 2002-05-01 Andrew Cagney <cagney@redhat.com>
9621 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9622 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9623 * config/v850/tm-v850.h: Ditto. Update copyright.
9625 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9627 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9630 2002-04-30 Michael Snyder <msnyder@redhat.com>
9632 * arm-tdep.c: Whitespace clean-ups.
9633 (arm_skip_prologue): Fix thinko; two lines
9634 should have been removed as part of 4/24 change.
9636 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9638 * rs6000-tdep.c: Added comment describing how fpscr register
9639 numbers were chosen.
9641 2002-04-30 Michael Snyder <msnyder@redhat.com>
9643 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9645 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9647 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9648 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9649 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9651 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9653 From Louis Hamilton <hamilton@redhat.com>:
9654 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9655 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9656 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9657 not bfd-private xcoff data, to determine wordsize.
9658 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9660 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9662 GDB 5.2 released from 5.2 branch.
9664 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9666 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9667 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9668 (x86_64_register_info_table): Added comments with register numbers.
9670 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9672 * rs6000-tdep.c (rs6000_extract_return_value,
9673 rs6000_store_return_value): Handle returning vectors.
9674 (rs6000_gdbarch_init): Use
9675 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9676 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9678 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9680 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9681 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9683 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9685 * hpread.c (hpread_psymtab_to_symtab_1,
9686 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9687 with fprintf_unfiltered (gdb_stderr,...).
9689 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9691 * remote-array.c (printf_monitor, write_monitor,
9692 array_insert_breakpoint, array_remove_breakpoint ):
9693 Replace fprintf (stderr,...
9694 with fprintf_unfiltered (gdb_stderr,....
9695 * remote-es.c: Likewise.
9696 * remote-os9k.c: Likewise.
9697 * remote-st.c: Likewise.
9699 2002-04-28 Andreas Schwab <schwab@suse.de>
9701 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9702 linux-proc.o and gcore.o.
9704 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9706 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9707 code without frame pointers.
9709 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9711 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9714 2002-04-26 Ben Elliston <bje@redhat.com>
9716 * target.c (do_xfer_memory): Correct reference to the new option
9717 "trust-readonly-sections".
9719 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9721 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9722 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9723 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9725 (read_array_type): Record the fact that this array type is really a
9726 vector (i.e. are passed in by value).
9728 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9730 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9731 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9732 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9733 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9734 * alpha-linux-tdep.c: Include frame.h.
9735 (alpha_linux_sigcontext_addr): New function.
9736 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9737 alpha_linux_sigcontext_addr.
9738 * alpha-osf1-tdep.c: Include gdbcore.h.
9739 (alpha_osf1_sigcontext_addr): New function.
9740 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9741 alpha_osf1_sigcontext_addr.
9742 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9743 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9745 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9747 * stack.c (selected_frame_level):
9748 (select_frame): Do not set selected_frame_level.
9749 * frame.h (selected_frame_level): Delete declaration.
9751 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9753 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9754 convert_from_func_ptr-addr when AIX / PowerOpen.
9756 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9758 * valops.c (hand_function_call): Call
9759 generic_save_call_dummy_addr.
9760 * frame.h (generic_save_call_dummy_addr): Declare.
9761 * blockframe.c (struct dummy_frame): Add fields call_lo and
9763 (generic_find_dummy_frame): Check for PC in range call_lo to
9764 call_hi instead of entry_point_address.
9765 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9766 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9767 (generic_save_call_dummy_addr): New function.
9769 2002-04-24 David S. Miller <davem@redhat.com>
9771 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9772 sparc_skip_prologue.
9773 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9774 information to find prologue when possible.
9775 (sparc_prologue_frameless_p): Call examine_prologue directly.
9776 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9777 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9779 (SKIP_PROLOGUE): Likewise.
9781 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9783 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9784 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9785 indicate that the condition it was testing is always true.
9786 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9787 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9788 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9790 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9792 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9793 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9794 tdep->jb_pc and tdep->jb_elt_size.
9795 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9796 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9797 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9798 * alpha-nat.c (get_longjmp_target): Remove.
9799 (JB_ELEMENT_SIZE): Ditto.
9801 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9802 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9803 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9804 to alpha_get_longjmp_target.
9805 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9806 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9807 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9809 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9811 * README: Update to GDB 5.2.
9813 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9815 * gdbarch.sh (LC_ALL): Set to `c'.
9817 2002-04-25 Theodore A. Roth <troth@verinet.com>
9819 * avr-tdep.c: Ran through gdb_indent.sh.
9821 2002-04-25 Theodore A. Roth <troth@verinet.com>
9823 * MAINTAINERS: Add myself as AVR maintainer.
9824 * NEWS: Note new target avr.
9826 2002-04-25 Theodore A. Roth <troth@verinet.com>
9828 * Makefile.in: Add support for AVR target.
9829 * configure.tgt: Add support for AVR target.
9830 * avr-tdep.c: New file
9831 * config/avr/avr.mt: New file.
9833 2002-04-25 Theodore A. Roth <troth@verinet.com>
9835 * MAINTAINERS: Add myself to write-after-approval.
9837 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9839 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9840 with fprintf_unfiltered (gdb_stderr,....
9842 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9845 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9847 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9849 * p-exp.y: Also use new prev_lexptr variable
9850 to improve error reporting. Based on Michael Snyder
9851 2002-04-24 dated patch to c-exp.y.
9853 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9855 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9856 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9857 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9859 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9861 (FUNCTION_START_OFFSET): Remove.
9862 (BREAKPOINT): Ditto.
9864 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9866 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9869 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9871 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9872 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9873 alpha_linux_pc_in_sigtramp.
9874 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9875 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9876 alpha_osf1_pc_in_sigtramp.
9877 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9878 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9879 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9880 alphafbsd_pc_in_sigtramp.
9881 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9882 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9883 alphanbsd_pc_in_sigtramp.
9884 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9885 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9887 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9889 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9891 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9893 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9895 (alphanbsd-nat.o): New dependency list.
9896 (alphanbsd-tdep.o): Ditto.
9897 * NEWS: Note new native NetBSD/alpha configuration.
9898 * alphanbsd-nat.c: New file.
9899 * alphanbsd-tdep.c: Ditto.
9900 * configure.host (alpha*-*-netbsd*): New host.
9901 * configure.tgt (alpha*-*-netbsd*): New target.
9902 * config/alpha/nbsd.mh: New file.
9903 * config/alpha/nbsd.mt: Ditto.
9904 * config/alpha/nm-nbsd.h: Ditto.
9905 * config/alpha/tm-nbsd.h: Ditto.
9907 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9909 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9910 (alpha-osf1-tdep.o): New dependency list.
9911 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9912 and skip_sigtramp_frame members.
9913 * alpha-linux-tdep.c: Include gdbcore.h.
9914 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9915 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9916 * alpha-osf1-tdep.c: New file.
9917 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9919 (alpha_frame_past_sigtramp_frame): New function.
9920 (alpha_dynamic_sigtramp_offset): Ditto.
9921 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9922 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9923 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9924 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9925 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9926 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9927 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9928 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9929 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9930 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9931 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9932 to find_solib_trampoline_target.
9933 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9934 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9935 (SKIP_TRAMPOLINE_CODE): Remove.
9936 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9937 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9938 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9939 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9940 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9941 (PROC_SIGTRAMP_MAGIC): Ditto.
9942 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9943 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9944 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9945 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9946 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9948 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9950 * NEWS: Note that Alpha targets are now multi-arch.
9952 2002-04-24 Michael Snyder <msnyder@redhat.com>
9954 * parser-defs.h (prev_lexptr): New external variable.
9955 * parse.c (parse_exp_1): Set prev_lexptr to null before
9956 calling the language-specific parser.
9957 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9958 (yyerror): Use prev_lexptr in error reporting.
9960 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9962 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9963 * gregset.h: If FILL_FPXREGSET is defined, provide
9964 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9965 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9966 is defined, call fill_fpxregset.
9968 2002-04-24 Roland McGrath <roland@frob.com>
9970 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9971 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9972 (supply_gregset, supply_fpregset): New functions.
9974 * gnu-nat.c (gnu_find_memory_regions): New function.
9975 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9976 (gnu_xfer_memory): Add a cast.
9978 2002-04-24 Michael Snyder <msnyder@redhat.com>
9980 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9981 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9982 of argument regs ("str r(0123), [r11, #-nn"]).
9983 (arm_skip_prologue): Better handling for frameless functions.
9984 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9985 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9987 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9989 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9990 NUM_PSEUDO_REGS can be used.
9992 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9994 * arch-utils.h: Update copyright.
9996 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9997 * gdbarch.h, gdbarch.c: Re-generate.
9999 * inferior.h (IN_SIGTRAMP): Delete definition.
10000 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10001 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10003 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10004 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10005 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10006 (find_proc_framesize): Ditto.
10007 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10008 (alpha_init_extra_frame_info): Ditto.
10009 * infrun.c (handle_inferior_event): Ditto.
10010 (handle_inferior_event): Ditto.
10011 (check_sigtramp2): Ditto.
10012 * blockframe.c (create_new_frame): Ditto.
10013 (get_prev_frame): Ditto.
10014 * ppc-linux-tdep.c: Update comments.
10015 * i386-linux-tdep.c: Update comments.
10016 * breakpoint.c (bpstat_what): Update comment.
10018 2002-04-24 David S. Miller <davem@redhat.com>
10020 * i960-tdep.c (register_in_window_p): New function.
10021 (i960_find_saved_register): Use it instead of
10022 REGISTER_IN_WINDOW_P.
10023 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10025 * symtab.h (find_stab_function_addr): Kill extern.
10026 * minsyms.c (find_stab_function_addr): Remove from here...
10027 * dbxread.c: ... to here, and mark it static.
10029 2002-04-20 David S. Miller <davem@redhat.com>
10031 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10032 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10034 2002-04-21 David S. Miller <davem@redhat.com>
10036 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10037 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10038 (vx_write_register): Likewise.
10040 2002-04-23 J. Brobecker <brobecker@gnat.com>
10042 * source.c (is_regular_file): New function.
10043 (openp): Check wether file to open is a regular file
10044 to avoid opening directories.
10046 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10048 * findvar.c (extract_signed_integer): Cast printf argument
10049 to suppress format warning.
10050 (extract_unsigned_integer): Likewise.
10051 * infcmd.c (registers_info): Likewise.
10052 * top.c (get_prompt_1): Likewise.
10053 * valops.c (value_assign): Likewise.
10054 * valprint.c (print_decimal): Likewise.
10056 2002-04-22 H.J. Lu (hjl@gnu.org)
10058 * c-exp.y (typebase): Support
10060 [long|long long|short] [signed|unsigned] [int|]
10064 signed [long|long long|short] int
10066 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10068 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10070 * vax-tdep.h: New file.
10071 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10072 Make several routines static.
10073 (vax_get_saved_register): New function.
10074 (vax_gdbarch_init): New function.
10075 (_initialize_vax_tdep): Register vax_gdbarch_init.
10076 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10077 Remove macros now under the control of gdbarch.
10079 2002-04-22 Michael Snyder <msnyder@redhat.com>
10081 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10082 Some whitespace and coding standards tweaks.
10084 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10086 * vax-tdep.c: Include regcache.h.
10087 (vax_call_dummy_words): New.
10088 (sizeof_vax_call_dummy_words): New.
10089 (vax_fix_call_dummy): New function.
10090 (vax_saved_pc_after_call): Ditto.
10091 * config/vax/tm-vax.h: Don't include regcache.h.
10092 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10093 (CALL_DUMMY): Remove.
10094 (CALL_DUMMY_WORDS): Define.
10095 (SIZEOF_CALL_DUMMY_WORDS): Define.
10096 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10098 2002-04-18 Michael Snyder <msnyder@redhat.com>
10100 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10102 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10104 * vax-tdep.c (vax_frame_chain): New function.
10105 (vax_push_dummy_frame): Ditto.
10106 (vax_pop_frame): Ditto.
10107 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10108 (FRAMELESS_FUNCTION_INVOCATION): Use
10109 generic_frameless_function_invocation_not.
10110 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10111 (POP_FRAME): Use vax_pop_frame.
10113 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10115 * vax-tdep.c (vax_store_struct_return): New function.
10116 (vax_extract_return_value): Ditto.
10117 (vax_store_return_value): Ditto.
10118 (vax_extract_struct_value_address): Ditto.
10119 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10120 vax_store_struct_return.
10121 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10122 (STORE_RETURN_VALUE): Use vax_store_return_value.
10123 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10125 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10127 * vax-tdep.c (vax_frame_saved_pc): New function.
10128 (vax_frame_args_address_correct): Ditto.
10129 (vax_frame_args_address): Ditto.
10130 (vax_frame_locals_address): Ditto.
10131 (vax_frame_num_args): Move code to be in proximity to
10132 other frame-related functions.
10133 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10134 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10135 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10136 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10137 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10139 2002-04-22 H.J. Lu (hjl@gnu.org)
10141 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10144 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10146 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10147 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10148 (FRAME_INIT_SAVED_REGS): New macro.
10150 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10152 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10154 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10156 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10158 (fetch_osf_core_registers): Likewise.
10159 (supply_gregset): Likewise.
10161 2002-04-22 J. Brobecker <brobecker@gnat.com>
10163 * symfile.h (get_section_index): Define.
10164 * symfile.c (get_section_index): New function.
10165 * mdebugread.c (SC_IS_SBSS): New macro.
10166 (SC_IS_BSS): Return true for the scBss storage class only, as
10167 the scSBss storage class refers to the .sbss section.
10168 (parse_partial_symbols): Discard the symbols which associated
10169 section does not exist.
10170 Make sure to use the .sbss section index for symbols which
10171 storage class is scBss, rather than using the .bss section index.
10173 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10175 * vax-tdep.c: Update copyright years.
10176 (vax_register_name): New function.
10177 (vax_register_byte): Ditto.
10178 (vax_register_raw_size): Ditto.
10179 (vax_register_virtual_size): Ditto.
10180 (vax_register_virtual_type): Ditto.
10181 * config/vax/tm-vax.h: Update copyright years.
10182 (REGISTER_NAMES): Remove.
10183 (REGISTER_NAME): Define.
10184 (REGISTER_BYTE): Use vax_register_byte.
10185 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10186 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10187 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10189 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10191 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10193 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10195 2002-04-21 David S. Miller <davem@redhat.com>
10197 * arch-utils.c (generic_prologue_frameless_p): Kill
10198 SKIP_PROLOGUE_FRAMELESS_P code.
10199 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10201 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10202 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10203 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10205 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10206 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10207 (sparc_gdbarch_init): Pass it to
10208 set_gdbarch_prologue_frameless_p.
10210 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10212 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10213 (alphabsd-nat.o): New dependency list.
10215 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10217 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10219 (alpha-linux-tdep.o): New dependency list.
10220 (alphafbsd-tdep.o): Likewise.
10222 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10224 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10226 * alpha-tdep.c: ...from here.
10227 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10229 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10231 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10232 prototype from here...
10233 * alpha-tdep.h: ...to here.
10235 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10237 * frame.h (selected_frame_level): Document as deprecated.
10238 (frame_relative_level): Declare.
10239 * stack.c (frame_relative_level): New function.
10240 (selected_frame_level): Document as deprecated.
10241 (select_frame): Do not set the selected_frame_level.
10243 * stack.c (frame_info, record_selected_frame): Update.
10244 (frame_command, current_frame_command): Update.
10245 (up_silently_base, up_command, down_silently_base): Update.
10246 (down_command): Update.
10247 * inflow.c (kill_command): Update.
10248 * tracepoint.c (finish_tfind_command): Update.
10249 * corelow.c (core_open): Update.
10250 * thread.c (info_threads_command): Update.
10251 (do_captured_thread_select): Update.
10252 * infcmd.c (finish_command): Update.
10253 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10255 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10257 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10259 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10261 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10264 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10266 * alphafbsd-tdep.c: Update copyright years. Include
10268 (alphafbsd_use_struct_convention): Make static.
10269 (alphafbsd_init_abi): New function.
10270 (_initialize_alphafbsd_tdep): New function.
10271 * config/alpha/tm-fbsd.h: Update copyright years.
10272 (USE_STRUCT_CONVENTION): Remove.
10274 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10276 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10277 an Alpha ABI variant.
10278 (alpha_abi_handler_list): Declare.
10279 (alpha_gdbarch_register_os_abi): New function.
10280 (alpha_gdbarch_init): Give registered ABI variant handlers a
10281 chance to tweak the gdbarch once we have set up defaults.
10282 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10284 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10286 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10287 to standard_coerce_float_to_double.
10288 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10290 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10292 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10293 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10294 from gdbarch_tdep rather than a constant.
10295 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10296 the default text address for all Alpha Unix ABIs.
10297 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10298 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10300 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10302 * alpha-tdep.h: New file. Includes several Alpha target constants
10304 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10305 let gdbarch deal with.
10306 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10307 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10308 to dependency list.
10309 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10310 Alpha target register names.
10311 * alphabsd-nat.c: Likewise.
10312 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10313 Alpha target register names. Make serveral routines static.
10314 (alpha_get_saved_register): New function.
10315 (alpha_abi_names): New.
10316 (process_note_abi_tag_sections): New function.
10317 (get_elfosabi): New function.
10318 (alpha_gdbarch_init): New function.
10319 (alpha_dump_tdep): New function.
10320 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10322 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10324 * frame.c (find_saved_register): Delete #ifdef
10325 HAVE_REGISTER_WINDOWS code.
10326 * config/sparc/tm-sparc.h: Update comments.
10327 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10329 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10331 * i960-tdep.c (i960_find_saved_register): New function.
10332 (i960_get_saved_register): New function.
10333 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10334 (i960_get_saved_register): Declare.
10335 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10337 2002-04-20 David S. Miller <davem@redhat.com>
10339 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10341 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10343 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10344 instead of NUM_PSEUDO_REGS.
10346 2002-04-20 David S. Miller <davem@redhat.com>
10348 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10349 GDB_MULTI_ARCH_PARTIAL
10350 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10351 define, let tm-sp64.h do it.
10353 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10355 * frame.c (find_saved_register): Avoid a NULL pointer
10356 dereference and actually walk the frame list.
10358 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10360 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10361 sorted in most most-recent-used order. Document.
10362 * gdbarch.h, gdbarch.c: Regenerate.
10364 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10366 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10368 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10369 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10370 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10373 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10376 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10377 (build_builtin_type_vec128): Ditto.
10378 (append_composite_type_field): Fix calculation of type length in
10381 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10383 * config/djgpp/README: Update.
10385 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10388 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10390 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10391 (alpha_setup_arbitrary_frame): ...to this.
10392 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10393 for alpha_setup_arbitrary_frame.
10395 2002-04-18 Andrew Cagney <cagney@redhat.com>
10397 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10398 * gdbarch.h, gdbarch.c: Regenerate.
10400 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10401 * target.h (memory_breakpoint_from_pc): Update declaration.
10402 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10404 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10405 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10406 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10407 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10408 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10409 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10410 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10411 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10412 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10413 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10414 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10415 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10417 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10419 * monitor.c (monitor_insert_breakpoint): Ditto.
10420 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10422 * config/mcore/tm-mcore.h: Update copyright.
10423 * mem-break.c: Ditto.
10424 * xstormy16-tdep.c: Ditto.
10426 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10428 * p-exp.y: Add precedence rule for '^' token.
10429 This removes the shift/reduce conflicts.
10430 Remove the comment concerning these shift/reduce conflicts.
10432 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10434 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10435 (registers_powerpc_nofp): New register set for processors
10436 without floating point unit.
10438 2002-04-18 David S. Miller <davem@redhat.com>
10440 * MAINTAINERS: Add myself to write-after-approval.
10442 2002-04-17 Michael Snyder <msnyder@redhat.com>
10444 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10446 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10448 * rs6000-tdep.c (frame_initial_stack_address): Use
10449 frame_register_read to read the alloca_reg.
10451 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10453 * frame.c (find_saved_register): Find saved registers in the next
10457 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10459 * gdbarch.sh (LANG): Set to ``c''.
10461 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10463 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10465 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10467 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10470 * hpread.c (hpread_get_lntt): Add declaration.
10471 Also fix PR gdb/391.
10473 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10475 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10476 * aclocal.m4, configure: Re-generate.
10479 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10481 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10482 instead of tm_print_insn.
10484 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10486 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10488 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10490 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10491 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10492 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10494 2002-04-12 Don Howard <dhoward@redhat.com>
10496 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10497 max_user_call_depth.
10498 (init_cmd_lists): Initialize the new value;
10499 * cli/cli-script.c (execute_user_command): Limit the call depth of
10500 user defined commands. This avoids a core-dump when user commands
10501 are infinitly recursive.
10503 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10505 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10506 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10507 from tdep struct instead of DEFAULT_LR_SAVE.
10508 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10509 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10510 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10512 2002-04-12 Michael Snyder <msnyder@redhat.com>
10514 * Remote.c: Spelling fix.
10515 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10516 If no symbol found for "sbrk", try "_sbrk".
10517 (make_output_phdrs): Use bfd_section_name.
10518 (gcore_copy_callback): Use bfd_section_name.
10519 * eval.c: Indentation fix-ups.
10520 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10521 in case it gets applied to an address that is already
10522 in the instruction space.
10523 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10524 * symfile.c: Fix indentation, long lines.
10525 * source.c: White space fix-up.
10527 2002-04-12 Andrew Cagney <cagney@redhat.com>
10529 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10530 * frame.c (frame_register_read): New function. Return non-zero on
10532 (read_relative_register_raw_bytes_for_frame): Delete.
10533 (read_relative_register_raw_bytes): Delete.
10534 * frame.h (frame_register_read): Declare.
10535 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10536 * sh-tdep.c: Ditto.
10537 * infcmd.c (do_registers_info): Ditto.
10538 * hppa-tdep.c: Ditto.
10539 * rs6000-tdep.c: Ditto.
10540 * h8500-tdep.c: Ditto.
10541 * mips-tdep.c: Ditto.
10542 * h8300-tdep.c: Ditto.
10543 * z8k-tdep.c: Ditto.
10545 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10547 From Jimi X <jimix@watson.ibm.com>:
10548 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10551 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10553 From Jimi X <jimix@watson.ibm.com>:
10554 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10557 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10559 From Jimi X <jimix@watson.ibm.com>:
10560 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10561 register sets for these processor variants.
10563 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10565 * regformats/reg-ppc.dat: Support FPSCR.
10567 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10569 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10570 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10571 Add fpscr as an invalid/unfetchable register.
10572 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10573 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10574 (fill_fpregset): Add support for register fpscr.
10575 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10576 (fill_gregset): Account for the fact that register ``mq'' might
10578 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10579 (registers_power): Add fpscr to register set at slot 71.
10580 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10581 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10583 2002-04-11 Michael Snyder <msnyder@redhat.com>
10585 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10586 * configure: Regenerate.
10587 * config.in: Regenerate.
10588 * acconfig.h: Add define for _SYSCALL32.
10589 * core-sol2.c: Remove #define _SYSCALL32.
10590 * solib-legacy.c: Remove #define _SYSCALL32.
10592 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10594 * stack.c (select_frame): Cleanup internal error message, do not
10597 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10599 * stack.c (select_frame): Check that selected_frame and the
10600 specified level are as expected.
10601 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10603 * frame.h (struct frame_info): Add field `level'. Update
10605 Work-in-progress PR gdb/464.
10607 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10609 * maint.c (maint_print_section_info): Rename print_section_info.
10610 (print_bfd_section_info, print_objfile_section_info): Update.
10611 * inferior.h (struct gdbarch): Add opaque declaration.
10612 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10613 * gdbarch.h: Regenerate.
10615 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10617 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10618 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10619 (kernel_u_size): Added.
10620 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10621 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10623 2002-04-04 Jim Ingham <jingham@apple.com>
10625 * valarith.c (find_size_for_pointer_math): New function, either returns
10626 the size for a pointer's target, returns 1 for void *, or errors for
10628 (value_add, value_sub): use find_size_for_pointer_math.
10630 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10632 * linux-low.c (linux_look_up_symbols): New hook.
10633 (linux_target_ops): Add linux_look_up_symbols.
10634 * remote-utils.c (decode_address): New function.
10635 (look_up_one_symbol): New function.
10636 * server.c (handle_query): Call target look_up_symbols hook.
10637 * server.h (look_up_one_symbol): Add prototype.
10638 * target.h (struct target_ops): Add look_up_symbols hook.
10640 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10642 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10643 override FP_REGNUM with frame->fp. Update copyright.
10644 * parse.c (num_std_regs, std_regs): Delete.
10645 (target_map_name_to_register): Do not search std_regs. Update
10646 function description.
10647 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10648 declarations. Update copyright.
10651 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10653 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10654 after the last symbol in a block.
10656 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10658 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10659 is non zero as a found symbol.
10661 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10663 * findvar.c: Include "builtin-regs.h".
10664 (value_of_register): Call value_of_builtin_reg when applicable.
10665 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10666 (target_map_name_to_register): Call
10667 builtin_reg_map_name_to_regnum.
10668 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10669 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10670 (builtin_regs_h): Define.
10671 (builtin-regs.o): New target.
10672 (findvar.o): Add $(builtin_regs_h).
10673 * builtin-regs.c, builtin-regs.h: New files.
10674 * std-regs.c: New file.
10675 Partial fix for PR gdb/251.
10677 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10679 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10680 it's no longer required.
10682 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10684 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10686 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10688 From Jimi X <jimix@watson.ibm.com>:
10689 * rs6000-tdep.c (rs6000_software_single_step): Use
10690 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10691 and size. Use target_insert_breakpoint() and
10692 target_remove_breakpoint() to insert and remove breakpoints
10693 instead of explicit memory reads and writes.
10695 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10697 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10698 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10699 ELF_OBJECT_FORMAT ifdef.
10701 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10703 From Jimi X <jimix@watson.ibm.com>:
10704 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10706 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10708 From Jimi X <jimix@watson.ibm.com>:
10709 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10710 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10712 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10714 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10715 s/asprintf/xasprintf/.
10716 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10718 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10720 I believe Jeff Law denies responsability for this one:
10721 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10722 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10723 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10724 Work-around for PR gdb/366.
10726 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10728 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10729 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10730 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10732 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10734 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10735 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10738 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10740 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10743 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10745 * README (Reporting Bugs in GDB): Document the bug web page as the
10746 prefered way of submitting bugs.
10749 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10751 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10752 -1. Update comment.
10753 * gdbarch.h, gdbarch.c: Re-generate.
10755 2002-04-07 Andreas Schwab <schwab@suse.de>
10757 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10758 buffer to regcache_collect.
10760 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10762 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10763 * gdbarch.c, gdbarch.h: Re-generate.
10765 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10767 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10768 declaration. Fix -Werror.
10770 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10772 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10773 * gdbarch.c: Regenerate.
10775 2002-04-05 Michael Snyder <msnyder@redhat.com>
10777 * breakpoint.c (clear_command): Rewrite middle section to
10778 combine two loops with identical control conditions.
10779 Add a cleanup to eliminate a memory leak.
10780 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10782 2002-04-05 H.J. Lu (hjl@gnu.org)
10784 * solib-svr4.c (bkpt_names): Add "__start".
10786 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10788 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10789 as test for 64 bit target.
10791 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10793 * h8500-tdep.c (h8500_write_fp): Delete function.
10794 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10795 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10796 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10798 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10799 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10801 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10802 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10803 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10804 (d10v_write_fp): Delete function.
10805 * inferior.h (write_fp, generic_target_write_fp): Delete
10807 * regcache.c (generic_target_write_fp): Delete function.
10808 (write_fp): Delete function.
10809 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10810 * gdbarch.h, gdbarch.c: Regenerate.
10811 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10812 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10813 (sparc64_write_fp): Delete declaration.
10814 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10815 (h8500_write_fp): Delete declaration.
10817 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10819 * sparc-tdep.c (sparc64_write_fp): Delete.
10820 (sparc_push_dummy_frame): Replace write_fp call with code to store
10822 (sparc_gdbarch_init): Do not initialize write_fp.
10824 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10826 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10829 2002-03-29 Jim Blandy <jimb@redhat.com>
10831 * stack.c (get_selected_block): Add new argument `addr_in_block',
10832 used to return the exact code address we used to select the block,
10833 not just the block.
10834 * blockframe.c (get_frame_block, get_current_block): Same.
10835 * frame.h (get_frame_block, get_current_block,
10836 get_selected_block): Update declarations.
10837 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10838 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10840 2002-04-05 Michael Snyder <msnyder@redhat.com>
10842 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10845 2002-04-05 J. Brobecker <brobecker@gnat.com>
10847 * utils.c (xfullpath): New function.
10848 * defs.h (xfullpath): Add declaration.
10849 * source.c (openp): Use xfullpath in place of gdb_realpath to
10850 avoid resolving the basename part of filenames when the
10851 associated file is a symbolic link. This fixes a potential
10852 inconsistency between the filenames known to GDB and the
10853 filenames it prints in the annotations.
10854 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10855 to be able to match a filename with either the real filename, or
10856 the name of any symbolic link to this file.
10857 (lookup_partial_symtab): Ditto.
10859 2002-04-04 Michael Snyder <msnyder@redhat.com>
10861 * breakpoint.c: Add support for hardware breakpoints in overlays.
10862 (overlay_events_enabled): New state variable.
10863 (insert_breakpoints): Use overlay_events_enabled to decide
10864 whether to attempt to set a breakpoint at the overlay load addr.
10865 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10866 (remove_breakpoint): Use overlay_events_enabled to decide
10867 whether breakpoints need to be removed from overlay load addr.
10868 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10869 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10870 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10871 disable_overlay_breakpoints): Update overlay_events_enabled.
10873 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10875 * dwarf2read.c (struct function_range): New.
10876 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10877 (check_cu_functions): New.
10878 (read_file_scope): Initialize global function lists.
10879 Call dwarf_decode_line after processing children.
10880 (read_func_scope): Add to global function list.
10881 (dwarf_decode_lines): Call check_cu_functions everywhere
10882 record_line is called. Call record_line with a linenumber
10883 of 0 to mark sequence ends.
10885 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10887 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10888 change sync with glibc.
10890 2002-04-03 Jim Blandy <jimb@redhat.com>
10892 * configure.in: Call AC_C_INLINE.
10893 * configure: Regenerated.
10895 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10897 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10898 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10900 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10902 * NEWS: Mention gcore support on FreeBSD/i386.
10904 * fbsd-proc.c: New file.
10905 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10906 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10908 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10911 2002-03-29 Jim Blandy <jimb@redhat.com>
10913 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10914 unescaped newlines in string literals, but newer ones don't. So
10917 2002-03-26 Michael Snyder <msnyder@redhat.com>
10918 Andrew Cagney <cagney@redhat.com>
10920 * cli/cli-dump.c: New file. Dump memory to file,
10921 restore file to memory.
10922 * cli/cli-dump.h: New file.
10923 * Makefile.in: Add rules, dependencies for cli-dump.o.
10924 * NEWS: Mention new commands.
10926 2002-03-28 Michael Snyder <msnyder@redhat.com>
10928 * symfile.c (symbol_file_add): Move test for null symbols to later.
10930 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10932 From veksler at il.ibm.com:
10933 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10934 the xstrduped original path.
10937 2002-03-27 Michael Snyder <msnyder@redhat.com>
10939 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10940 * infcmd.c (_initialize_infcmd): Ditto.
10941 * language.c (_initialize_language): Ditto.
10942 * symfile.c (_initialize_symfile): Ditto.
10943 * top.c (_init_main): Ditto.
10944 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10946 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10948 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10949 vector registers handling.
10950 (skip_prologue): Handle new AltiVec instructions. Fill in new
10951 fields of frame data.
10952 (frame_get_saved_regs): Fill in information for AltiVec registers.
10954 2002-03-27 Jim Blandy <jimb@redhat.com>
10956 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10957 a function; leave this macro here to invoke that function.
10958 (symbol_init_mangled_name): Declaration for that function.
10959 * symtab.c (symbol_init_mangled_name): New function.
10961 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10963 * valarith.c: Replace strerror with safe_strerror.
10964 * tracepoint.c: Ditto.
10965 * lin-lwp.c: Ditto.
10966 * go32-nat.c: Ditto.
10968 * gnu-nat.c: Ditto.
10970 2002-03-27 Andreas Schwab <schwab@suse.de>
10972 * event-top.c (command_line_handler): Remove useless if.
10974 2002-03-27 Andreas Jaeger <aj@suse.de>
10976 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10979 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10981 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10982 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10983 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10984 (x86_64_linux_dr_get_status, supply_gregset),
10985 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10986 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10987 (x86_64_register_info_table): Add.
10988 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10989 (x86_64_register_raw_size, x86_64_register_virtual_type),
10990 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10991 general x86_64_register_info_table.
10992 (i386_gdbarch_init): gdbarch_register_bytes is now set
10993 dynamicaly during initialization.
10994 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10995 * gdbserver/linux-x86-64-low.c: Ditto.
10997 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10999 * gdbserver/server.c (main): Call target_signal_to_host_p
11000 and target_signal_to_host on signals received from the remote.
11001 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11002 target_signal_from_host on signals sent to the remote.
11003 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11004 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11006 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11008 * signals/signals.c: Include "server.h" in gdbserver build.
11009 (target_signal_from_name): Don't use STREQ.
11010 (_initialize_signals): Likewise. Don't include function in
11013 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11015 * signals.c: Moved to...
11016 * signals/signals.c: Here.
11017 * Makefile (signals.o): Update.
11019 2002-03-26 Jeff Law (law@redhat.com)
11021 * somread.c (som_symtab_read): Remove some commented out code and
11022 updated related comments. Do not set the minimal symbol table to
11023 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11024 in a dynamic executable.
11025 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11026 where we are unable to find the minimal symbol for the given
11029 2002-03-25 Jeff Law (law@redhat.com)
11031 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11033 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11035 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11037 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11039 * command.h: Update copyright.
11040 (struct cmd_list_element): Replace definition with opaque
11042 (enum cmd_types): Document that it will eventually be moved to
11044 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11045 (MALLOCED_REPLACEMENT): Delete macro.
11046 * Makefile.in (cli_decode_h): Add $(command_h).
11047 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11048 * top.c: Include "cli/cli-decode.h".
11049 * completer.c: Include "cli/cli-decode.h".
11050 * maint.c: Include "cli/cli-decode.h".
11051 * cli/cli-decode.h: Include "command.h".
11052 (enum command_class): Delete.
11053 (enum cmd_types): Comment out.
11054 (enum cmd_auto_boolean): Delete.
11055 (enum var_types): Delete.
11057 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11059 * cli/cli-decode.c: Include "gdb_assert.h".
11060 (add_set_or_show_cmd): New static function.
11061 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11062 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11063 all fields, such as func, from the set command.
11065 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11067 * MAINTAINERS (sh-elf): Change warning flag to -w.
11069 2002-03-23 Andrew Cagney <cagney@redhat.com>
11071 * defs.h (error): Add printf format attribute.
11072 * thread-db.c (thread_from_lwp): Fix error format string.
11073 * stack.c (parse_frame_specification): Ditto.
11074 * cli/cli-decode.c (undef_cmd_error): Ditto.
11075 * scm-lang.c (scm_lookup_name): Ditto.
11076 * tracepoint.c (trace_error): Ditto.
11077 * remote-utils.c (usage): Ditto.
11078 * remote.c (compare_sections_command): Ditto.
11081 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11083 * gdbtypes.c (append_composite_type_field): New function.
11084 (init_composite_type): New function.
11085 * gdbtypes.h (append_composite_type_field): Declare.
11086 (init_composite_type): Ditto.
11088 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11090 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11092 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11093 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11094 structure returning convention for SYSV ABI case, but not
11095 for GNU/Linux, FreeBSD, or NetBSD.
11097 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11099 * symtab.h (lookup_block_symbol): Add mangled_name argument
11102 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11103 with new mangled_name argument.
11104 * linespec.c (decode_line_1): Likewise.
11105 * valops (value_of_this): Likewise.
11106 * symtab.c (lookup_transparent_type): Likewise.
11107 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11108 (lookup_symbol): If we are given a mangled name, pass it down
11109 to lookup_symbol_aux.
11110 (lookup_block_symbol): If we are given a mangled name to check
11111 against, only return symbols which match it.
11113 2002-03-22 Christopher Faylor <cgf@redhat.com>
11115 * win32-nat.c (child_create_inferior): Check for proper shell to use
11116 here, in case the user changes it on the fly.
11117 (_initialize_inftarg): Remove shell path considerations.
11119 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11121 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11122 for gdbarch_max_register_raw_size and max_register_virtual_size.
11123 Adjust copyright year.
11125 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11127 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11128 in a function to cover the entire beginning of the function
11129 as well if it does not already.
11131 2002-03-21 Tom Rix <trix@redhat.com>
11133 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11134 (rs6000_ptrace64): Renamed from ptrace64.
11136 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11138 * gdbserver/remote-utils.c (remote_open): Don't call
11139 getprotobyname, we're all using TCP here so just use
11141 * gdbserver/gdbreplay.c (remote_open): Ditto.
11143 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11145 * regcache.c (_initialize_regcache): No need to call
11146 build_regcache() at this time; it gets called whenever
11147 the gdbarch changes.
11149 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11151 * sparc-nat.c: Include sys/param.h where possible.
11153 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11156 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11157 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11158 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11160 * stabsread.c (rs6000_builtin_type): Likewise.
11161 (read_sun_floating_type): Likewise.
11163 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11165 * stabsread.c (read_member_functions): Remove skip code for duplicate
11166 constructor/destructor methods. Use standard parsing for these
11167 methods and just do not chain them to the list of methods after
11170 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11172 * coffread.c: Remove redundant static declarations. Replace
11173 occurrences of `PTR' with `void *'.
11174 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11175 * top.h (quit_cover): Likewise.
11176 * defs.h (catch_errors): Likewise.
11178 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11180 * defs.h (XMALLOC): Define.
11181 * gdb-events.sh (XMALLOC): Delete macro.
11182 * gdb-events.c, gdb-events.h: Regenerate.
11183 * gdbarch.sh (XMALLOC): Delete macro.
11184 * gdbarch.c: Regenerate.
11185 * serial.c (XMALLOC): Delete macro.
11186 * ui-file.c (XMALLOC): Ditto.
11187 * ser-unix.h (XMALLOC): Ditto.
11188 * sh-tdep.c (XMALLOC): Ditto.
11189 * ui-out.c (XMALLOC): Ditto.
11190 * utils.c (XMALLOC): Ditto.
11191 * i386-tdep.c (XMALLOC): Ditto.
11192 * gdb-events.c (XMALLOC): Ditto.
11193 * d10v-tdep.c (XMALLOC): Ditto.
11194 * cli-out.c (XMALLOC): Ditto.
11196 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11197 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11198 * ui-file.c, ui-out.c: Ditto.
11200 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11202 * command.h (struct cmd_list_element): Add field context.
11203 (set_cmd_context, get_cmd_context): Declare.
11204 * cli/cli-decode.h: Ditto.
11205 * cli/cli-decode.c (get_cmd_context): New function.
11206 (set_cmd_context): New function.
11207 (add_cmd): Initialize context.
11208 Part of fixing PR gdb/145 and PR gdb/146.
11210 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11212 * cli/cli-decode.c (cmd_type): New function.
11213 * command.h (cmd_type): Declare.
11214 * infrun.c (set_schedlock_func): Call function cmd_type.
11215 * kod.c (kod_set_os): Call cmd_type.
11216 * cris-tdep.c (cris_version_update): Use function cmd_type.
11217 (cris_mode_update, cris_abi_update): Ditto.
11219 * command.h: (execute_cmd_post_hook): Declare.
11220 (execute_cmd_pre_hook): Declare.
11221 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11222 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11223 functions. Execute pre/post hook while ensuring that afterwords
11224 hook_in is cleared.
11225 * top.c (execute_command): Use execute_cmd_post_hook, and
11226 execute_cmd_pre_hook to execute pre/post commands.
11227 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11229 (hook_stop_stub): Call execute_cmd_pre_hook.
11231 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11233 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11234 set'' and this leads to a core dump. Move xstrdup of
11235 operating_system to after check that it is not NULL.
11237 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11239 * kod.c (kod_set_os): Remove unnecessary check that
11240 ``command->type'' is set_cmd.
11242 * valprint.c (set_input_radix): Use input_radix.
11243 (set_output_radix): Use output_radix.
11244 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11247 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11249 * value.h (struct value): Delete field ``substring_addr''. Change
11250 aligner fields to force_doublest_align, force_longest_align,
11251 force_core_addr_align and force_pointer_aligh.
11253 * value.h (struct value): Fix typo in above change.
11255 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11257 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11258 to fix internal_error from ``maintenance print architecture''.
11260 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11262 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11263 for gcc versions after gcc-2.8.1.
11265 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11267 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11268 for method resolution. Restore adjustment of ``this'' pointer after
11269 calling value_struct_elt, which was accidentally removed during the
11272 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11274 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11276 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11277 get_saved_register.
11278 * value.h (value_of_register): Update.
11280 2002-03-14 Richard Henderson <rth@redhat.com>
11282 * configure.in: Detect declaration for canonicalize_file_name.
11283 * utils.c (canonicalize_file_name): Declare, if needed.
11284 (gdb_realpath): Prefer realpath if available and usable.
11285 * config.in, configure: Rebuild.
11287 2002-03-14 Richard Henderson <rth@redhat.com>
11289 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11290 a constant array bound.
11292 * MAINTAINERS: Add myself to write-after-approval.
11294 2002-03-14 Michael Snyder <msnyder@redhat.com>
11296 * symfile.c (syms_from_objfile): Return immediately if no syms.
11297 (symbol_file_add): Return immediately if no syms.
11298 (find_sym_fns): Return immediately if no syms.
11300 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11302 * gdbserver/remote-util.c (remote_open): Print remote-side's
11303 IP address when remote debugging over the network.
11305 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11307 * config/sparc/fbsd.mh: Fix copyright.
11308 * config/sparc/fbsd.mt: Likewise.
11310 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11312 * MAINTAINERS: Fix typo in name of gdb warnings option.
11313 (x86-64): Fix formating so that this can be parsed by awk.
11315 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11317 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11318 * defs.h: Include "gdb/signals.h".
11319 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11321 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11323 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11324 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11327 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11328 Don Howard <dhoward@redhat.com>
11330 * mips-tdep.c (ST0_FR): Define.
11331 (mips2_fp_compat): New function, temporarily disabled.
11332 (mips_read_fp_register_single): New function.
11333 (mips_read_fp_register_double): New function.
11334 (mips_print_register): Use them.
11335 (do_fp_register_row): Likewise.
11337 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11339 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11342 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11344 * stabsread.c (read_member_functions): Fix is_stub test for
11345 static member functions, improve comment.
11347 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11349 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11350 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11351 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11352 commands that set boolean values.
11353 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11354 (arm_rdi_resume): Always initialize PC.
11355 (arm_rdi_open): Don't use rslt as a boolean.
11356 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11357 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11358 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11359 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11361 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11363 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11364 * configure: Rebuilt.
11366 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11368 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11369 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11371 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11373 * cli/cli-decode.c (set_cmd_completer): New function.
11374 * command.h (set_cmd_completer): Declare.
11375 * cli/cli-decode.h (set_cmd_completer): Ditto.
11377 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11378 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11379 * win32-nat.c (_initialize_inftarg): Ditto.
11380 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11381 * proc-api.c (_initialize_proc_api): Ditto.
11382 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11383 * source.c (_initialize_source): Ditto.
11384 * exec.c (_initialize_exec): Ditto.
11385 * solib.c (_initialize_solib): Ditto.
11386 * top.c (init_main): Ditto.
11387 * tracepoint.c (_initialize_tracepoint): Ditto.
11388 * symfile.c (_initialize_symfile): Ditto.
11389 * printcmd.c (_initialize_printcmd): Ditto.
11390 * infcmd.c (_initialize_infcmd): Ditto.
11391 * corefile.c (_initialize_core): Ditto.
11393 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11395 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11397 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11399 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11401 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11403 * NEWS: Update headings, 5.2 has branched.
11405 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11407 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11408 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11409 (register_addr, REGISTER_RAW_SIZE): Likewise.
11410 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11411 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11413 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11415 * MAINTAINERS (x86-64): Add myself.
11416 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11417 changed value_ptr -> struct value *
11419 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11421 * configure.host (sparc64-*-freebsd): Add.
11422 * configure.tgt: Likewise.
11423 * config/sparc/fbsd.mh: New file.
11424 * config/sparc/fbsd.mt: Likewise.
11425 * config/sparc/nm-fbsd.h: Likewise.
11426 * config/sparc/tm-fbsd.h: Likewise.
11428 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11430 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11431 regformats/reg-s390x.dat.
11433 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11435 * utils.c: Add FIXME explaining true/false problem.
11437 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11439 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11441 2002-02-28 Michael Chastain <mec@shout.net>
11443 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11445 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11447 * gdbserver/linux-s390-low.c: New file.
11448 * regformats/reg-s390.dat: New file.
11449 * regformats/reg-s390x.dat: New file.
11450 * gdbserver/configure.srv: Add S/390.
11451 * gdbserver/Makefile.in: Add S/390.
11452 * configure.tgt: Enable gdbserver for S/390.
11454 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11456 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11457 first line of the doc string for "info dos", except at the end of
11458 the sentence, since the short help stops at the first period.
11460 2002-02-28 Jason Merrill <jason@redhat.com>
11462 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11464 2002-02-27 Fred Fish <fnf@redhat.com>
11466 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11467 comment (dumy -> dummy).
11469 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11471 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11473 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11475 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11477 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11479 * gdbserver/acconfig.h: New file.
11480 * gdbserver/i387-fp.c: New file.
11481 * gdbserver/i387-fp.h: New file.
11482 * gdbserver/linux-x86-64.c: New file.
11483 * regformats/reg-x86-64.dat: New file.
11484 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11485 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11486 * gdbserver/configure.in: Add support for regsets.
11487 * gdbserver/config.in: Regenerate.
11488 * gdbserver/configure: Regenerate.
11489 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11490 * gdbserver/linux-low.h: New file.
11491 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11493 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11494 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11495 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11496 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11497 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11498 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11499 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11500 "i387-fp.h". Add PTRACE_GETREGS and friends.
11501 * gdbserver/regcache.c (supply_register): New function.
11502 (supply_register_by_name): New function.
11503 (collect_register): New function.
11504 (collect_register_by_name): New function.
11506 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11508 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11509 (config.status): Add configure.srv dependency.
11510 (server_h): Add config.h dependency.
11512 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11514 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11515 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11516 * gdbserver/configure.srv: Change i386-*-linux* to use
11519 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11521 * x86-64-tdep.c: Re-indent. Update copyright date.
11523 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11525 From Michal Ludvig <mludvig@suse.cz>:
11526 * x86-64-tdep.c (value.h): Delete.
11527 (gdb_assert.h): Include.
11528 (x86_64_register_convert_to_virtual,
11529 x86_64_register_convert_to_raw ): Add check which lets only
11530 floating-point values to be converted.
11531 (value_push): Delete.
11532 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11533 (i386_gdbarch_init): Number of register_bytes fixed.
11535 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11537 * MAINTAINERS: Add x86-64 target.
11539 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11541 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11542 * osfsolib.c (solib_map_sections): Ditto.
11543 * irix5-nat.c (solib_map_sections): Ditto.
11544 * corelow.c (gdb_check_format): Ditto.
11545 * symfile.c (symfile_bfd_open): Ditto.
11546 * solib.c (solib_map_sections): Ditto.
11549 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11551 * remote.c (_initialize_remote): By default, disable ``e'' and
11552 ``E'' step out-of-range packets.
11554 2002-02-26 Andreas Schwab <schwab@suse.de>
11556 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11557 m68k_linux_frame_saved_pc.
11558 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11560 (SIGCONTEXT_PC_OFFSET): Remove.
11561 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11562 m68k_linux_sigtramp_saved_pc): New functions.
11563 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11564 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11565 (UCONTEXT_PC_OFFSET): Define.
11566 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11567 non-RT and RT signal trampolines.
11569 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11571 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11572 (TARGET_NBPG, STACK_END_ADDR): Delete
11573 (VARIABLES_INSIDE_BLOCK): Delete.
11575 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11577 * utils.c (perror_with_name): Make string parameter constant.
11578 (print_sys_errmsg): Ditto.
11580 * defs.h (perror_with_name): Update.
11581 (print_sys_errmsg): Update.
11584 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11586 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11587 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11589 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11591 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11592 if it already matches the current architecture from the exec file.
11593 Include arch-utils.h for gdbarch_info_init prototype.
11594 * Makefile.in (rs6000-nat.o): Update dependencies.
11596 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11598 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11599 list of exported variables.
11601 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11603 * gdbserver/configure.srv: New file.
11604 * gdbserver/configure.in: Use configure.srv instead
11605 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11607 * gdbserver/configure: Regenerated.
11608 * gdbserver/terminal.h: New file.
11609 * gdbserver/Makefile.in: Update for configure changes. Remove
11610 more unneeded include paths.
11612 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11614 From wiz at danbala:
11615 * config/sparc/tm-sp64.h: Fix grammar and typos.
11618 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11620 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11621 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11622 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11623 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11624 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11625 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11626 * s390-tdep.c: Ditto.
11627 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11628 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11629 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11630 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11631 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11632 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11633 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11634 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11635 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11636 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11639 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11641 * lin-thread.c: Delete file.
11642 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11643 to gdb_proc_service.h.
11644 * configure: Re-generate.
11646 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11647 * serial.c (serial_open): Delete check for "ocd".
11650 * Makefile.in (linux-thread.o): Delete target.
11651 * linux-thread.c: Delete file.
11653 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11654 renamed SH files to be consistent.
11656 * symtab.c (sort_search_symbols): Use xfree.
11658 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11660 * arm-linux-tdep.c (arm_linux_init_abi): Register
11661 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11662 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11663 definition with undef, since we don't want the sysvr4 definition.
11664 (SKIP_TRAMPOLINE_CODE): Likewise.
11666 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11668 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11670 * configure.in: (AC_CHECK_FUNCS) Added test for
11671 canonicalize_file_name Regenerated.
11672 * config.in, configure: Regenerated.
11673 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11674 defined use canonicalize_file_name.
11676 2002-02-23 Michael Chastain <mec@shout.net>
11678 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11680 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11682 * README: Remove references to cygnus.com.
11683 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11684 dot com'' form. Remove references to cygnus.com and sourceware.
11686 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11688 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11689 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11690 1003.1-2001 no longer allows "head -1".
11691 * gdb/Makefile.in (version.c): Likewise.
11692 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11693 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11694 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11696 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11698 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11699 * command.h (cmd_cfunc_eq): Declare.
11700 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11702 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11703 ``struct cmd_list_element *''.
11704 * cli/cli-cmds.c (is_complete_command): Update. Use
11706 * top.c (execute_command): Pass the command to
11707 is_complete_command.
11708 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11710 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11712 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11713 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11714 architecture defines.
11715 * s390-tdep.c (s390_gdbarch_init): Likewise.
11717 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11719 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11720 (arm_linux_push_arguments): Likewise.
11721 (arm_linux_init_abi): Register them. Also register linux-specific
11723 (find_minsym_and_objfile): Use strcmp, not STREQ.
11724 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11725 (arm_linux_call_dummy_words): Delete declaration.
11726 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11727 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11729 (LOWEST_PC): Delete.
11731 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11733 * maint.c (print_section_info): Do not prepend `0x' to filepos
11734 output, it will be handled by local_hex_string_custom.
11736 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11738 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11739 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11740 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11742 2002-02-22 Jim Blandy <jimb@redhat.com>
11744 Indicate that the bcache functions don't change the strings
11746 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11747 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11749 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11751 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11753 2002-02-21 Christopher Faylor <cgf@redhat.com>
11755 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11756 find the complete path to a loaded DLL.
11758 2002-02-21 Fred Fish <fnf@redhat.com>
11760 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11761 that marks the end of the range of a function, enter a line number
11762 entry that has a line number of zero and a PC offset that matches
11763 the end of the function. This starts a range of PC's for which no
11764 line number information is known.
11765 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11766 PC's for which no line number info is found (line number is zero)
11767 then we didn't find any valid line information.
11768 * symtab.h: Document use of zero line number entry.
11770 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11772 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11773 (have_ptrace_getvrregs): Define for run time checks.
11774 (gdb_vrregset_t): New type for Altivec register handling.
11775 (fetch_register, store_register): Fetch/store altivec register
11777 (fetch_altivec_register, store_altivec_register): New functions.
11778 (supply_vrregset, fill_vrregset): New functions.
11779 (fetch_altivec_registers, store_altivec_registers): New functions.
11780 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11783 2002-02-21 Jiri Smid <smid@suse.cz>
11785 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11787 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11789 * Makefile.in (armnbsd-nat.o): Update dependencies.
11790 * armnbsd-nat.c (supply_gregset): New function. Common code to
11791 supply the integer register set.
11792 (supply_fparegset): New function. Similar for FPA registers.
11793 (fetch_regs, fetch_fp_regs): Use them.
11794 (fetch_core_registers): Likewise.
11795 (fetch_elfcore_registers): New function.
11796 (arm_netbsd_elfcore_fns): New core-file type specification.
11797 (_initialize_arm_netbsd_nat): Register it.
11799 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11801 * armnbsd-nat.c: Include gdbcore.h.
11802 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11803 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11804 'void' to declaration, to shut up ARI.
11805 (fetch_core_registers): Make static. Rewrite using supply_register.
11806 (arm_netbsd_core_fns): New core-file type specification.
11807 (_initialize_arm_netbsd_nat): New function.
11809 2002-02-21 Christopher Faylor <cgf@redhat.com>
11811 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11814 2002-02-20 Christopher Faylor <cgf@redhat.com>
11816 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11819 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11821 * jv-exp.y (parse_number): Change type of implicit longs
11822 to builtin_type_uint64.
11824 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11826 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11827 to be an integer instead of a `union wait'.
11829 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11831 * mips-linux-nat.c: Call the operating system GNU/Linux.
11832 * mips-linux-tdep.c: Likewise.
11833 * mips-tdep.c: Likewise.
11835 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11838 * jv-exp.y (parse_number): Handle 64-bit integers.
11840 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11842 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11843 AC_STDC_HEADERS to AC_HEADER_STDC.
11844 * gdbserver/configure: Regenerated.
11846 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11848 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11850 * sparc-tdep.c (get_longjmp_target): Likewise.
11852 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11854 * News: Add news about ARM and Multi-arch. Mention the new target
11857 2002-02-19 Jim Blandy <jimb@redhat.com>
11859 * stabsread.c (error_type_complaint): Improve error message.
11861 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11863 * gdbserver/README: Update documentation.
11864 * gdbserver/configure.in: Update configury to match documentation.
11865 * gdbserver/Makefile.in: Likewise.
11866 * gdbserver/configure: Regenerated.
11867 * gdbserver/aclocal.m4: New file, generated by aclocal.
11868 * gdbserver/config.in: New file, generated by autoheader.
11870 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11872 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11875 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11877 * arm-tdep.h (enum arm_float_model): New enum.
11878 (struct gdbarch_tdep): Add fp_model.
11879 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11880 up floating-point conversions until we know the floating-point model
11881 in use by the inferior. Don't complain about being unable to
11882 determine the ABI of the inferior when we don't have one.
11883 (arm_extract_return_value): Support different floating-point models.
11884 (arm_store_return_value): Likewise.
11885 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11887 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11889 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11891 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11892 of ``current_gdbarch''.
11894 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11896 * armnbsd-nat.c : ANSIfy all function declarations.
11897 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11898 (fetch_inferior_registers): Re-implement in terms of above.
11899 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11900 (store_inferior_registers): Re-implement in terms of above.
11902 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11904 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11906 * arm-linux-tdep.c: Likewise.
11907 * config/arm/tm-linux.h: Likewise.
11909 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11911 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11912 * config/arm/nbsd.mt (TM_FILE): Delete.
11913 * config/arm/tm-nbsd.h: Delete.
11915 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11917 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11918 Initialize CALL_DUMMY_LENGTH.
11920 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11922 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11924 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11925 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11926 defines one thing and that is incorrect for this port.
11927 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11929 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11931 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11933 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11935 * win32-nat.c (display_selector): New function. Displays information
11936 about the information returned by GetThreadSelectorEntry API function.
11937 (display_selectors): New function. Displays the infomation of
11938 the selector given as argument, or of CS, DS ans FS selectors
11939 if no argument is given.
11940 ( _initialize_inftarg): Add "w32" as info prefix command.
11941 Add "info w32 selector" as command calling display_selectors.
11943 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11945 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11946 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11949 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11951 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11953 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11955 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11956 (arm_fix_call_dummy): Call it.
11957 (arm_call_dummy_breakpoint_offset): Delete.
11958 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11959 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11961 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11963 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11964 Default to func_frame_chain_valid.
11965 * gdbarch.h, gdbarch.c: Re-generate.
11966 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11968 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11970 * ppc-linux-nat.c: Update copyright.
11971 (fetch_register, store_register): Add tid parameter, don't compute
11973 (fetch_ppc_registers, store_ppc_registers): Add tid
11974 parameter. Pass it along to callees.
11975 (fetch_inferior_registers, store_inferior_registers): Compute tid
11976 here, and pass it to calleed functions.
11977 (fill_gregset, supply_fpregset): Clean up formatting.
11979 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11981 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11982 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11984 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11986 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11987 * gdbarch.c gdbarch.h: Regenerate.
11988 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11990 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11991 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11992 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11994 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11995 * arm-tdep.c (arm_get_longjmp_target): New function.
11996 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11997 this to a positive value register arm_get_longjmp_target as the
11999 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12000 (arm_linux_init_abi): Set up longjmp description in tdep.
12001 * armnbsd-nat.c (get_longjmp_target): Delete.
12002 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12003 description in tdep.
12004 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12005 (get_longjmp_target): Delete declaration.
12006 (GET_LONGJMP_TARGET): Delete.
12007 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12008 (GET_LONGJMP_TARGET): Delete.
12010 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12012 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12013 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12014 of ``current_gdbarch''.
12016 2002-02-17 Tom Tromey <tromey@redhat.com>
12018 * cli/cli-cmds.c (compare_strings): New function.
12019 (complete_command): Only print each unique item once.
12020 * completer.h (complete_line): Declare.
12021 * completer.c (complete_line): New function.
12022 (line_completion_function): Use it.
12024 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12026 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12027 * gdbarch.h, gdbarch.c: Re-generate.
12029 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12031 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12033 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12035 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12036 * valops.c (value_arg_coerce): Don't take the address of a reference
12037 to convert an argument to a reference.
12039 2002-02-15 Christopher Faylor <cgf@redhat.com>
12041 * win32-nat.c (get_image_name): New function.
12042 (handle_load_dll): Use get_image_name function.
12043 (get_child_debug_event): Avoid registering debug events until possibly
12044 execed process is started.
12045 (child_create_inferior): Allow invocation via shell so that command
12046 line redirection, etc. works ok.
12047 (_initialize_inftarg): Add new command: "set shell" to control whether
12048 a shell is used to start a process.
12050 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12052 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12053 instead of find_register_by_number.
12054 (cannot_store_register): Likewise.
12056 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12058 * dwarf2read.c: Replace fprintf (stderr, ...) by
12059 fprintf_unfiltered (gdb_stderr, ...).
12061 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12063 * gdbserver/gdbserver.1: Document --attach.
12065 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12067 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12069 * arm-tdep.c (arm_default_arm_le_breakpoint)
12070 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12071 (arm_default_thumb_be_breakpoint): New. Initialize them from
12072 traditional breakpoint defines.
12073 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12074 (arm_gdbarch_init): Initialize new breakpoint variables.
12075 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12076 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12077 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12078 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12080 (arm_netbsd_init_abi_common): ... here; new function.
12081 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12082 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12083 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12084 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12086 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12088 * arm-tdep.h (enum arm_abi): New enum.
12089 (struct gdbarch_tdep): New structure.
12090 (LOWEST_PC): Provide a default.
12091 (arm_gdbarch_register_os_abi): Declare new function.
12092 * arm-tdep.c (arm_abi_names): New array.
12093 (process_note_abi_tag_sections): New function.
12094 (get_elfosabi): New function.
12095 (arm_gdbarch_register_os_abi): New function.
12096 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12097 support for that ABI has been built in, then call the appropriate
12098 configuration routine. Use gdbarch_num_regs() to get the number
12100 (arm_dump_tdep): New function.
12101 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12102 place-holder functions.
12103 (_initialize_arm_tdep): Register them.
12104 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12106 * armnbsd-tdep.c: New file.
12107 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12108 * config/arm/nbsd.mt (TDEPFILES): Add it.
12109 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12111 * armnbsd-nat.c: Include regcache.h.
12112 * Makefile.in (armnbsd-nat.o): Update dependency list.
12114 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12116 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12118 * gdbserver/Makefile.in: Fix typos in target rules.
12120 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12122 Fix part of PR gdb/267.
12123 * linespec.c (find_methods): Handle constructors specially for now.
12125 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12127 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12129 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12130 standard_coerce_float_to_double().
12132 2002-02-14 Christopher Faylor <cgf@redhat.com>
12134 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12137 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12139 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12140 find_variant_by_name, because it confuses the multiarch
12141 framework. Return NULL if there isn't an architecture with the
12142 user supplied name, instead of forcing a different one without
12143 recording the change with the multiarch machinery.
12144 (find_variant_by_name): Delete.
12146 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12148 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12149 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12151 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12153 * stack.c (print_frame_info_base): When calling
12154 print_frame_info_listing_hook, set current_source_symtab.
12156 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12158 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12159 and remove unused $(INCLUDE_DIR).
12160 Add regcache.c to OBS.
12161 Add generated register protocol files to clean target.
12162 Update dependencies for new objects, obsolete old target code.
12164 * gdbserver/linux-low.c: Remove all platform-specific code to
12165 new files. Remove various dead code. Update to use regcache
12167 * gdbserver/remote-utils.c (fromhex): Add return statement
12169 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12171 (input_interrupt): Add integer parameter to match prototype
12172 of a signal handler.
12173 (outreg): Use register_data ().
12174 (prepare_resume_reply): Use gdbserver_expedite_regs.
12175 * gdbserver/server.c (main): Dynamically allocate own_buf because
12176 PBUFSIZ is no longer constant. Use registers_to_string () and
12177 registers_from_string ().
12178 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12179 for error (), fatal (), and warning (). Update definition of
12180 PBUFSIZ to use regcache functionality. Add include guard.
12181 * gdbserver/utils.c (fatal): Add missing ``const''.
12182 (warning): New function.
12184 * regformats/regdat.sh: Include "regcache.h" in generated files.
12185 Provide init_registers () function.
12186 * regformats/regdef.h: Add prototype for set_register_cache ().
12189 * gdbserver/linux-arm-low.c: New file.
12190 * gdbserver/linux-i386-low.c: New file.
12191 * gdbserver/linux-ia64-low.c: New file.
12192 * gdbserver/linux-m68k-low.c: New file.
12193 * gdbserver/linux-mips-low.c: New file.
12194 * gdbserver/linux-ppc-low.c: New file.
12195 * gdbserver/linux-sh-low.c: New file.
12197 * gdbserver/regcache.c: New file.
12198 * gdbserver/regcache.h: New file.
12200 * gdbserver/low-linux.c: Removed obsolete file.
12202 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12204 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12205 * config/i386/linux.mt: Likewise.
12206 * config/ia64/linux.mt: Likewise.
12207 * config/m68k/linux.mh: Likewise.
12208 * config/powerpc/linux.mh: Likewise.
12209 * config/mips/linux.mt: Likewise.
12211 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12213 * config/i386/i386lynx.mh: Mark gdbserver variables
12214 as (currently) obsolete for this target.
12215 * config/i386/nbsd.mt: Likewise.
12216 * config/i386/nbsdelf.mt: Likewise.
12217 * config/m32r/m32r.mt: Likewise.
12218 * config/m68k/m68klynx.mh: Likewise.
12219 * config/m68k/nbsd.mt: Likewise.
12220 * config/m68k/sun3os4.mh: Likewise.
12221 * config/mips/vr5000.mt: Likewise.
12222 * config/ns32k/nbsd.mt: Likewise.
12223 * config/pa/hppabsd.mh: Likewise.
12224 * config/pa/hppaosf.mh: Likewise.
12225 * config/powerpc/nbsd.mt: Likewise.
12226 * config/rs6000/rs6000lynx.mh: Likewise.
12227 * config/s390/s390.mt: Likewise.
12228 * config/s390/s390x.mt: Likewise.
12229 * config/sparc/sparclynx.mh: Likewise.
12230 * config/sparc/sun4os4.mh: Likewise.
12231 * config/i386/x86-64linux.mt: Likewise.
12232 * config/sparc/linux.mh: Likewise.
12234 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12236 * configure.tgt: Configure gdbserver only for known working
12237 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12238 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12239 SUBDIRS if it is configured. Update comment for ${nativefile}.
12240 * configure: Regenerated.
12242 2002-02-13 Michael Snyder <msnyder@redhat.com>
12244 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12246 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12247 (default_gcore_mach): Just return 0, work around a problem in bfd.
12248 (default_gcore_target): OK to return NULL if exec_bfd is null.
12249 (make_mem_sec): Use a cast, avoid a warning.
12251 * procfs.c (find_memory_regions_callback): Use a cast instead of
12252 calling host_pointer_to_address (which complains if
12253 sizeof (host pointer) != sizeof (target pointer)).
12254 (procfs_make_note_section): Avoid overflow in psargs string.
12256 * procfs.c (procfs_make_note_section): Make the default
12257 implementation return an error.
12259 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12261 * procfs.c (procfs_make_note_section): Provide a default definition
12262 (for alpha-dec-osf4.0f). Fix typos.
12264 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12266 * linux-proc.c: Add include of regcache.h.
12267 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12269 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12271 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12272 * memattr.c (create_mem_region): Disallow useless empty region.
12273 Regions are half-open intervals, so allow [A..B) [B..C) as
12276 2002-02-13 Michael Chastain <mec@shout.net>
12278 * defs.h: Kill CONST_PTR.
12279 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12280 * c-lang.c (c_builtin_types): Likewise.
12281 * ch-lang.c (ch_builtin_types): Likewise.
12282 * f-lang.c (f_builtin_types): Likewise.
12283 * language.c (unknown_builtin_types): Likewise.
12284 * m2-lang.c (m2_builtin_types): Likewise.
12285 * p-lang.c (pascal_builtin_types): Likewise.
12286 * scm-lang.c (c_builtin_types): Likewise.
12288 2002-02-13 Keith Seitz <keiths@redhat.com>
12290 * arm-tdep.h (arm_get_next_pc): Add declaration.
12292 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12294 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12295 with other related struct-returning functions.
12296 (arm_extract_struct_value_address): New function.
12297 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12298 initialize float_format, double_format and long_double_format as
12299 appropriate to the endianness of the target.
12300 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12301 (arm_use_struct_convention): Delete declaration.
12302 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12304 2002-02-13 Keith Seitz <keiths@redhat.com>
12306 * defs.h (core_addr_to_string_nz): New function.
12308 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12310 Apply missing bits of 2002-01-15 patch.
12311 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12312 (fill_fpregset): Use i387_fill_fsave.
12314 2002-02-12 Keith Seitz <keiths@redhat.com>
12316 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12317 (core_addr_to_string_nz): New function.
12319 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12321 * arm-linux-nat.c: Really include arm-tdep.h.
12322 * config/arm/tm-linux.h (struct type, struct value): Declare.
12324 2002-02-11 Michael Snyder <msnyder@redhat.com>
12326 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12327 (gcore section): Ifdef for Solaris and Unixware only.
12328 (procfs_do_thread_registers): Unixware needs one lwpstatus
12329 per thread (not one prstatus or pstatus).
12330 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12331 not over all gdb threads. For unixware, call elfcore_write_pstatus
12332 once before iterating over threads.
12334 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12336 * arm-tdep.h: New file.
12337 * arm-tdep.c: Include arm-tdep.h.
12338 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12339 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12340 (arm_print_float_info, arm_register_type, convert_to_extended)
12341 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12342 (arm_extract_return_value, arm_register_name): Make static.
12343 (arm_software_single_step): Similarly. Fix types in declaration.
12344 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12345 (arm_store_return_value, arm_store_struct_return): New functions.
12346 (arm_gdbarch_init): Register the above functions. Also register
12347 call_dummy_start_offset, sizeof_call_dummy_words,
12348 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12349 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12350 max_register_virtual_size, register_size. Set up
12351 prologue_cache.saved_regs here, rather than ...
12352 (_initialize_arm_tdep): ... here.
12353 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12355 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12356 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12357 (arm_print_float_info, arm_register_type, convert_to_extended)
12358 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12359 (arm_extract_return_value, arm_register_name): Delete declarations.
12360 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12361 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12362 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12363 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12364 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12365 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12366 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12367 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12368 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12369 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12370 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12371 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12373 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12374 * remote-rdi.c remote-rdp.c: Likewise.
12375 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12376 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12377 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12380 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12381 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12382 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12383 from non-ARM_ prefixed definitions.
12384 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12386 * remote-rdi.c remote-rdp.c: Likewise.
12387 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12389 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12391 * arm-tdep.c (arm_frameless_function_invocation)
12392 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12393 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12394 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12395 (arm_pop_frame, arm_get_next_pc): Make static.
12396 (arm_gdbarch_init): Register above in gdbarch structure.
12397 (arm_read_fp): Renamed from arm_target_read_fp.
12398 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12399 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12400 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12401 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12402 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12403 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12404 (arm_pc_is_thumb_dummy): Delete declarations.
12405 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12406 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12407 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12408 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12410 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12412 * symtab.c (compare_search_syms): New function.
12413 (sort_search_symbols): New function.
12414 (search_symbols): Sort symbols after searching rather than
12417 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12419 * NEWS: Linux -> GNU/Linux.
12421 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12423 * gdbarch.sh: For for level one methods, disallow a definition
12424 when partially multi-arched. Add comments explaining rationale.
12425 * gdbarch.h: Re-generate.
12427 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12429 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12430 multi-arch partial.
12432 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12434 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12435 field. Use diff -u.
12436 * gdbarch.c: Re-generate.
12438 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12440 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12441 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12444 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12446 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12447 multi-arch partial.
12448 (PUSH_ARGUMENTS): Switch to using predefault.
12449 * gdbarch.c: Regenerate.
12451 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12453 * valops.c (PUSH_ARGUMENTS): Delete definition.
12454 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12455 partial. Default to default_push_arguments.
12456 * gdbarch.h, gdbarch.c: Regenerate.
12458 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12460 * defs.h (throw_exception): Rename return_to_top_level. Update
12462 * utils.c (error_stream, internal_verror, quit): Ditto.
12463 * top.c (throw_exception, catcher): Ditto.
12464 * sparclet-rom.c (sparclet_load): Ditto.
12465 * remote.c (interrupt_query, minitelnet): Ditto.
12466 * remote-sds.c (interrupt_query): Ditto.
12467 * remote-mips.c (mips_error, mips_kill): Ditto.
12468 * ocd.c (interrupt_query): Ditto.
12469 * monitor.c (monitor_interrupt_query): Ditto.
12470 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12471 * target.h: Update comment.
12473 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12475 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12477 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12478 default_double_format.
12479 * gdbarch.h, gdbarch.c: Re-generate.
12480 * findvar.c (floatformat_unknown): Delete variable definition.
12481 * doublest.h (floatformat_unknown): Delete variable declaration.
12483 2002-02-09 Jim Blandy <jimb@redhat.com>
12485 * stabsread.c (read_type): Add code to parse Sun's syntax for
12486 prototyped function types.
12488 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12490 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12491 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12493 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12495 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12496 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12497 now _initialize_xcoffsolib gets called again and overrides the
12498 commands from solib.c in a native configuration.
12500 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12502 * doublest.c (store_typed_floating): Don't try to return a value.
12505 2002-02-08 Jim Blandy <jimb@redhat.com>
12507 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12508 is prototyped and has no arguments, print its argument list as
12511 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12513 * MAINTAINERS (write-after-approval): Add myself.
12514 (paper-trail): I've escaped!
12516 2002-02-08 Christopher Faylor <cgf@redhat.com>
12518 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12520 (_initialize_check_for_gdb_ini): Ditto.
12522 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12524 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12525 xaprintf -> xasprintf.
12527 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12529 * win32-nat.c: Remove use of printf and sprintf functions.
12531 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12533 * arm-tdep.c (arm_frame_chain_valid): Make static.
12534 (arm_push_arguments): Likewise.
12535 (arm_gdbarch_init): New function.
12536 (_initialize_arm_tdep): Call it.
12537 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12538 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12539 (FRAME_CHAIN_VALID): Delete.
12540 (arm_frame_chain_valid): Delete declaration.
12541 (PUSH_ARGUMENTS): Delete.
12542 (arm_push_arguments): Delete declaration.
12543 (CALL_DUMMY_P): Delete.
12545 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12546 Corinna Vinschen <vinschen@redhat.com>
12548 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12549 on builtin float types.
12551 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12553 * utils.c: Include <curses.h> before "bfd.h".
12554 * tui/tui-hooks.c: Likewise.
12555 * tui/tui.c: Likewise.
12556 * tui/tuiCommand.c: Likewise.
12557 * tui/tuiData.c: Likewise.
12558 * tui/tuiDataWin.c: Likewise.
12559 * tui/tuiDisassem.c: Likewise.
12560 * tui/tuiGeneralWin.c: Likewise.
12561 * tui/tuiIO.c: Likewise.
12562 * tui/tuiLayout.c: Likewise.
12563 * tui/tuiRegs.c: Likewise.
12564 * tui/tuiSource.c: Likewise.
12565 * tui/tuiSourceWin.c: Likewise.
12566 * tui/tuiStack.c: Likewise.
12567 * tui/tuiWin.c: Likewise.
12569 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12571 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12572 to include space for pseudoregs as well. Update loops accordingly.
12573 (sh_fp_frame_init_saved_regs): Ditto.
12574 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12576 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12578 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12579 Add Richard Earnshaw to Arm maintainers.
12581 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12583 * defs.h (warning_begin): Delete declaration.
12585 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12588 2002-02-07 Michael Snyder <msnyder@redhat.com>
12590 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12591 Logic bug, remove misplaced else.
12593 2002-02-07 Klee Dienes <klee@apple.com>
12595 * fork-inferior.c (fork_inferior): Add '!' to the list of
12596 characters that need to be quoted when building a string for the
12597 shell. Quote '!' specifically with a backslash, since CSH chokes
12598 when trying to evaluate "str!str".
12600 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12602 * rdi-share/host.h: Only provide a typedef for bool if it is not
12605 2002-02-04 Michael Snyder <msnyder@redhat.com>
12607 * breakpoint.h (enum bptype): Add new overlay event bp type.
12608 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12610 * breakpoint.c (create_internal_breakpoint): New function.
12611 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12612 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12613 (create_thread_event_breakpoint): Ditto.
12614 (create_solib_event_breakpoint): Ditto.
12615 (create_overlay_event_breakpoint): New function.
12616 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12617 (update_breakpoints_after_exec): Delete and re-initialize
12618 overlay event breakpoints after an exec. Add FIXME comment
12619 about longjmp breakpoint.
12620 (print_it_typical): Ignore overlay event breakpoints.
12621 (print_one_breakpoint): Ditto.
12623 (bpstat_what): Do not stop for overlay event breakpoints.
12624 (delete_breakpoint): Don't delete overlay event breakpoints.
12625 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12626 (breakpoint_re_set): Re-create overlay event breakpoint.
12628 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12629 (overlay_manual_command): Disable overlay breakpoints.
12630 (overlay_off_command): Disable overlay breakpoints.
12632 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12634 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12635 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12636 to here from config/tm-arm.h.
12637 (coff_sym_is_thumb): Make static.
12638 (arm_elf_make_msymbol_special): New function.
12639 (arm_coff_make_msymbol_special): New function.
12640 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12641 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12642 (coff_sym_is_thumb): Delete declaration.
12643 (arm_elf_make_msymbol_special): Declare.
12644 (arm_coff_make_msymbol_special): Declare.
12645 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12646 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12648 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12650 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12652 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12654 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12655 * gdbarch.c gdbarch.h: Regenerate.
12656 * arch-utils.c (default_print_float_info): New function.
12657 * arch-utils.h (default_print_float_info): Prototype it.
12658 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12659 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12660 (PRINT_FLOAT_INFO): Document it.
12662 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12663 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12664 (PRINT_FLOAT_INFO): Define.
12666 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12668 * win32-nat.c (_initialize_check_for_gdb_ini):
12669 Add typecast to sprintf argument to suppress a warning.
12671 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12673 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12674 to allow easier handling of pass state.
12675 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12676 that gives exception name and address.
12677 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12678 and set last_sig value to ourstatus->value.sig. Some missing
12680 (child_continue): Correctly report continue_status.
12681 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12682 TARGET_SIGNAL_0 (new default value).
12683 (child_resume): consider sig argument passed to decide if
12684 the exception should be passed to debuggee or not.
12686 2002-02-05 Michael Snyder <msnyder@redhat.com>
12688 * regcache.c (fetch_register): Call target_fetch_register
12689 only if we don't call FETCH_PSEUDO_REGISTER.
12690 (store_register): Call target_store_register only if we
12691 don't call STORE_PSEUDO_REGISTER.
12693 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12695 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12696 ELF_MAKE_MSYMBOL_SPECIAL.
12697 * gdbarch.c, gdbarch.h: Regenerate.
12698 * arch-utils.c (default_make_msymbol_special): New function.
12699 * arch-utils.h (default_make_msymbol_special): Export.
12700 * elfread.c (elf_symtab_read): Compile use of
12701 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12703 * coffread.c (coff_symtab_read): Ditto, for
12704 COFF_MAKE_MSYMBOL_SPECIAL.
12706 2002-02-05 Jim Blandy <jimb@redhat.com>
12708 * solib-svr4.c (svr4_truncate_ptr): New function.
12709 (svr4_relocate_section_addresses): Do the address arithmetic with
12710 the appropriate truncation for target addresses, even when
12711 CORE_ADDR is larger than a target address.
12713 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12715 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12718 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12720 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12723 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12725 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12727 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12729 * gdbserver/linux-low.c: Remove unused include files.
12731 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12733 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12734 (read_inferior_memory): Use it.
12735 (write_inferior_memory): Likewise.
12737 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12739 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12740 grubbing through sys_errlist.
12742 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12744 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12746 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12747 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12749 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12751 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12752 (do_sfunc, set_cmd_sfunc): New functions.
12754 * command.h (struct cmd_list_element): Add field func.
12755 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12756 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12757 * cli/cli-decode.h: Ditto.
12759 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12760 (help_all, help_cmd_list): Ditto.
12761 (find_cmd, complete_on_cmdlist): Ditto.
12762 * top.c (execute_command): Ditto.
12764 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12767 * infcmd.c (notice_args_read): Fix function signature.
12769 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12770 * cli/cli-decode.c (add_set_cmd): Ditto.
12771 * utils.c (initialize_utils): Ditto.
12772 * maint.c (_initialize_maint_cmds): Ditto.
12773 * infrun.c (_initialize_infrun): Ditto.
12774 * demangle.c (_initialize_demangler): Ditto.
12775 * remote.c (add_packet_config_cmd): Ditto.
12776 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12777 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12778 * proc-api.c (_initialize_proc_api): Ditto.
12779 * kod.c (_initialize_kod): Ditto.
12780 * valprint.c (_initialize_valprint): Ditto.
12781 * top.c (init_main): Ditto.
12782 * infcmd.c (_initialize_infcmd): Ditto.
12783 * corefile.c (_initialize_core): Ditto.
12784 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12785 * arch-utils.c (initialize_current_architecture): Ditto.
12786 (_initialize_gdbarch_utils): Ditto.
12787 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12789 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12790 * wince.c (_initialize_inftarg): Ditto.
12791 * symfile.c (_initialize_symfile): Ditto.
12792 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12793 * language.c (_initialize_language): Ditto.
12794 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12796 2002-02-04 Michael Snyder <msnyder@redhat.com>
12798 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12800 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12802 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12803 Add rules for building the register data files.
12805 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12807 * regformats/regdat.sh: Add braces to the definition of
12808 expedite_regs_${arch}.
12810 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12812 * regformats/regdef.h (struct reg): Add comment describing the
12813 requirements for offset and size fields.
12815 2002-02-04 Andreas Schwab <schwab@suse.de>
12817 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12818 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12820 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12822 * gdbarch.sh (copyright): Update years in generated header.
12823 (SMASH_TEXT_ADDRESS): Add rule.
12824 * gdbarch.h, gdbarch.c: Re-generate.
12825 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12826 * dbxread.c: Likewise.
12827 * dwarfread.c: Likewise.
12828 * elfread.c: Likewise.
12829 * somread.c: Likewise.
12831 * arm-tdep.c (arm_smash_text_address): New function.
12832 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12834 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12836 Add support for hardware watchpoints on win32 native.
12837 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12838 CONTEXT_DEBUG_REGISTERS.
12839 (dr variable): New variable. Static array containing a local copy
12840 of debug registers.
12841 (debug_registers_changed): New variable. Reflects when debug registers
12842 are changed and need to be written to inferior.
12843 (debug_registers_used): New variable. Reflects when any debug register
12844 was set, used when new threads are created.
12845 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12847 (thread_rec): Set dr array if id is the thread of current_event .
12848 (child_continue, child_resume): Change the debug registers for all
12849 threads if debug_registers_changed.
12850 (child_add_thread): Change the debug registers if debug_registers_used.
12851 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12852 Link nm.h to new nm-cygwin.h file.
12853 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12854 of hardware registers.
12856 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12858 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12859 Restore behavour broken by 2002-01-20 Andrew Cagney
12860 <ac131313@redhat.com> IEEE_FLOAT removal.
12862 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12864 * c-valprint.c (c_val_print): Pass a proper valaddr to
12865 cp_print_class_method.
12866 * valops.c (search_struct_method): If there is only one method
12867 and args is NULL, return that method.
12869 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12871 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12872 accessing tag_name directly.
12874 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12876 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12877 of accessing tag_name directly.
12879 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12882 * gdbtypes.c (replace_type): New function.
12883 * gdbtypes.h (replace_type): Add prototype.
12884 * stabsread.c (read_type): Use replace_type.
12886 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12888 * Makefile.in (memattr.o): Add missing dependencies rule.
12890 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12892 * breakpoint.c (break_at_finish_command): Really export.
12893 (break_at_finish_at_depth_command): Ditto.
12894 (tbreak_at_finish_command): Ditto.
12895 * hppa-tdep.c: Include completer.h.
12896 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12897 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12899 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12901 * utils.c (do_write): New function.
12902 (error_stream): Rewrite combining the code from error_begin and
12904 (verror): Rewrite using error_stream.
12905 (error_begin): Delete function.
12907 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12909 * utils.c (error_begin): Make static.
12910 * defs.h (error_begin): Delete declaration.
12912 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12913 (decode_line_1): Use cplusplus_error instead of error_begin,
12914 cplusplus_hint and return_to_top_level.
12915 * coffread.c (coff_symfile_read): Use error instead of error_begin
12916 and return_to_top_level.
12917 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12919 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12921 * language.h (type_error, range_error): Make string parameter
12923 * language.c (warning_pre_print): Delete extern declaration.
12924 * dwarfread.c (warning_pre_print): Ditto.
12925 * language.c (type_error, range_error): Rewrite to use verror and
12926 vwarning instead of warning_begin.
12928 2002-02-01 Michael Snyder <msnyder@redhat.com>
12930 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12931 (set_ignore_count): Move misplaced comment back where it belongs.
12933 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12935 * command.h (NO_FUNCTION): Delete macro.
12936 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12937 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12938 * tracepoint.c (_initialize_tracepoint): Ditto.
12939 * cli/cli-decode.c (add_set_cmd): Ditto.
12940 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12942 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12944 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12945 Update ``this'' pointer when calling virtual functions.
12947 2002-02-01 Michael Snyder <msnyder@redhat.com>
12949 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12950 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12952 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12954 * regformats/reg-arm.dat: New file.
12955 * regformats/reg-i386.dat: New file.
12956 * regformats/reg-ia64.dat: New file.
12957 * regformats/reg-m68k.dat: New file.
12958 * regformats/reg-mips.dat: New file.
12959 * regformats/reg-ppc.dat: New file.
12960 * regformats/reg-sh.dat: New file.
12961 * regformats/regdef.h: New file.
12962 * regformats/regdat.sh: New file.
12964 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12966 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12967 (arm_frame_args_address, arm_frame_locals_address): New functions.
12968 (arm_frame_num_args): New function.
12969 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12970 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12971 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12973 2002-01-31 Michael Snyder <msnyder@redhat.com>
12975 * breakpoint.c (break_at_finish_command): Export.
12976 (break_at_finish_at_depth_command): Export.
12977 (tbreak_at_finish_command): Export.
12978 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12979 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12980 "txbreak" commands, which are HPPA specific.
12982 * printcmd.c (disassemble_command): Remove an ancient
12983 artifact of an old merge.
12985 * symfile.h (enum overlay_debugging_state):
12986 Define enum constant values for overlay mode.
12987 * symfile.c (overlay_debugging): Use enums instead of literals.
12988 (overlay_is_mapped, overlay_auto_command,
12989 overlay_manual_command): Ditto.
12991 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12992 breakpoint_here_p, breakpoint_inserted_here_p,
12993 breakpoint_thread_match, bpstat_stop_status,
12994 describe_other_breakpoints, check_duplicates, clear_command):
12995 Coding standard fixes.
12997 * target.c (target_xfer_memory): Add spaces, coding standard.
12998 (do_xfer_memory): Add missing line to trust-readonly
12999 code: check bfd SEC_READONLY flag for section.
13001 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13003 * PROBLEMS: Fix typo, 5.1->5.1.1.
13005 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13007 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13008 data symbols, since we search based on textlow and texthigh.
13009 (find_pc_sect_symtab): Likewise.
13011 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13013 * defs.h (vwarning): Declare.
13014 * utils.c (vwarning): New function.
13015 (warning): Call vwarning.
13016 (warning_begin): Delete function.
13018 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13019 the warning message.
13020 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13023 2002-01-30 Michael Snyder <msnyder@redhat.com>
13025 * NEWS: Mention "set trust-readonly-sections" command.
13026 Mention generate-core-file command.
13028 2002-01-15 Michael Snyder <msnyder@redhat.com>
13030 * target.c: New command, "set trust-readonly-sections on".
13031 (do_xfer_memory): Honor the suggestion to trust readonly sections
13032 by reading them from the object file instead of from the target.
13033 (initialize_targets): Register command "set trust-readonly-sections".
13035 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13037 * parse.c (target_map_name_to_register): Simplify, search regs and
13038 pseudo-regs using a single loop.
13040 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13042 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13044 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13046 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13047 * config/i386/i386v42mp.mh: Add i387-nat.o .
13048 * i386v4-nat.c: Include i387-nat.h.
13049 (supply_fpregset): Use i387_supply_fsave.
13050 (fill_fpregset): Use i387_fill_fsave.
13052 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13054 * arm-tdep.c (arm_call_dummy_words): Define.
13055 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13056 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13057 (CALL_DUMMY_WORDS): Define.
13058 (arm_call_dummy_words): Declare.
13059 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13060 (arm_linux_call_dummy_words): Declare.
13062 2002-01-30 Andreas Schwab <schwab@suse.de>
13064 * m68klinux-nat.c: Fix last change to use regcache_collect
13065 instead of referencing registers[] directly.
13067 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13069 * parse.c (target_map_name_to_register): Delete code wrapped in
13070 #ifdef REGISTER_NAME_ALIAS_HOOK.
13072 2002-01-28 Michael Snyder <msnyder@redhat.com>
13074 * regcache.c (legacy_read_register_gen): Need to be able to
13075 read pseudo-register as well as real register.
13076 (legacy_write_register_gen): Ditto.
13078 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13080 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13081 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13082 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13083 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13084 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13085 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13086 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13087 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13088 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13089 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13090 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13091 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13092 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13093 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13094 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13095 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13096 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13097 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13098 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13099 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13101 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13103 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13104 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13105 (initialize_current_architecture): Update target_byte_order using
13106 information from BFD.
13107 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13108 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13110 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13112 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13113 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13115 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13116 #ifdef INVALID_FLOAT.
13117 * infcmd.c (do_registers_info): Ditto.
13118 * values.c (unpack_double): Ditto. Add comment.
13120 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13121 already commented out.
13123 2002-01-26 Andreas Schwab <schwab@suse.de>
13125 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13126 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13127 registers and add support for PTRACE_GETREGS.
13129 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13131 GDB 5.1.1 released from 5.1 branch.
13132 * NEWS: Add 5.1.1 news.
13133 * README: Sync with 5.1 branch.
13135 2002-01-23 Fred Fish <fnf@redhat.com>
13137 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13138 stabstring on initial malloc. Reallocing will copy it for us,
13141 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13143 * Makefile.in (hpread_h): Delete.
13144 (HFILES_NO_SRCDIR): Remove hpread.h.
13145 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13146 (hpread.o): Update dependencies.
13147 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13149 * hp-psymtab-read.c: Remove file.
13150 * hp-symtab-read.c: Remove file.
13151 * hpread.h: Remove file.
13153 * hpread.c: Merge all contents of hp-psymtab-read.c,
13154 hp-symtab-read.c and hpread.h into this file, as it was prior to
13157 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13158 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13159 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13160 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13162 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13164 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13165 fill_gregset): Call gdbarch_tdep() just once, assign result to
13166 variable and use that, instead of calling the function several
13169 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13171 * configure.host: Accept sparcv9 as alias for sparc64.
13172 * configure.tgt: Likewise.
13174 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13176 * solib-aix5.c (build_so_list_from_mapfile)
13177 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13178 arguments is not reversed.
13179 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13180 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13182 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13184 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13185 modified version of obsolete sh_fetch_pseudo_register.
13186 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13187 (sh4_register_read): New function.
13188 (sh_pseudo_register_write): New function. Renamed and modified
13189 version of obsolete sh_store_pseudo_register.
13190 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13191 (sh4_register_write): New function.
13192 (sh_gdbarch_init): Remove setting of gdbarch function
13193 fetch_pseudo_register and store_pseudo_register. Remove setting of
13194 register_convert_to_raw, register_convert_to_virtual,
13195 register_convertible.
13196 (sh_sh4_register_convertible): Delete. No longer needed. All is
13197 taken care by architecture specific functions
13198 register_read/register_write.
13199 (sh_sh4_register_convert_to_virtual): Make static.
13200 (sh_sh4_register_convert_to_raw): Ditto.
13202 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13204 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13205 (floatformat_is_nan, floatformat_mantissa): Ditto.
13207 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13208 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13209 builtin_type_ieee_double_little,
13210 builtin_type_ieee_double_littlebyte_bigword,
13211 builtin_type_m68881_ext, builtin_type_i960_ext,
13212 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13213 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13214 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13215 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13217 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13219 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13220 parameter. Set frameless flag if it exists and depended of
13221 whether the scanned function is frameless or not.
13222 (xstormy16_skip_prologue): If function is frameless, return
13223 result of xstormy16_scan_prologue().
13224 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13227 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13229 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13230 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13231 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13232 sh_sh4_register_byte, sh_sh4_register_raw_size,
13233 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13234 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13235 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13236 sh_store_pseudo_register, sh_do_pseudo_register): Call
13237 gdbarch_tdep() just once, assign result to variable and use that,
13238 instead of calling the function several times.
13240 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13242 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13243 macros instead of LAST_FPU_CTRL_REGNUM.
13244 (store_register): Likewise.
13246 2002-01-21 Jim Blandy <jimb@redhat.com>
13248 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13249 is up-to-date before running the program, not just when a program
13252 2002-01-21 Fred Fish <fnf@redhat.com>
13254 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13255 when we have found all instructions we are looking for.
13257 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13259 * arm-tdep.c (arm_register_name): New function.
13260 (arm_registers_names): Make static.
13261 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13262 (arm_register_name): Declare.
13263 (REGISTER_NAME): Use it.
13265 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13266 Kevin Buettner <kevinb@redhat.com>
13268 Convert arm targets to new FRAME interface.
13269 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13270 (arm_frame_find_save_regs): Delete.
13271 (arm_frame_init_saved_regs): New.
13272 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13273 Allocate extra_info as required. Convert all uses of fsr.regs
13274 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13276 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13277 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13278 (check_prologue_cache, save_prologue_cache): Likewise.
13279 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13280 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13281 (FRAME_FIND_SAVED_REGS): Delete.
13282 (arm_frame_find_saved_regs): Delete prototype.
13283 (arm_frame_init_saved_regs): New prototype.
13284 (FRAME_INIT_SAVED_REGS): Define.
13286 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13288 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13290 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13292 From Jeff Law <law@redhat.com>:
13293 * infttrace.c: Include <sys/pstat.h>.
13294 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13295 exec file if the ttrace equivalent fails.
13297 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13299 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13300 (closeLogFile): Ditto.
13302 2002-01-20 Michael Chastain <mec@shout.net>
13304 * top.c (print_gdb_version): Bump copyright year to 2002.
13306 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13308 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13309 Zannoni and Eli Zaretskii.
13311 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13313 * buildsym.c: Update copyright years.
13314 * c-typeprint.c: Likewise.
13315 * dwarf2read.c: Likewise.
13316 * f-typeprint.c: Likewise.
13317 * gdbtypes.c: Likewise.
13318 * gdbtypes.h: Likewise.
13319 * hp-symtab-read.c: Likewise.
13320 * hpread.c: Likewise.
13321 * mdebugread.c: Likewise.
13322 * p-typeprint.c: Likewise.
13324 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13326 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13327 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13328 byte-order selectable.
13329 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13330 * arch-utils.c: Ditto.
13331 (set_endian): Ditto.
13332 (set_endian_from_file): Ditto.
13333 * gdbserver/low-sim.c (create_inferior): Ditto.
13334 * gdbarch.sh: Ditto.
13335 * gdbarch.h: Re-generate.
13336 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13337 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13338 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13339 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13340 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13341 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13342 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13343 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13345 * config/mips/tm-wince.h: Remove #undef of macro
13346 TARGET_BYTE_ORDER_SELECTABLE.
13347 * config/sh/tm-wince.h: Ditto.
13349 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13351 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13352 member function fields. Add accessor macro
13353 TYPE_FN_FIELD_ARTIFICIAL.
13354 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13355 * c-typeprint.c (c_type_print_base): Skip artificial member
13358 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13360 * f-typeprint.c: Delete unused function f_type_print_args.
13361 * p-typeprint.c: Delete unused function pascal_type_print_args.
13363 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13365 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13366 comment. Add ``artificial'' to ``union field_location''.
13368 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13370 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13371 * mdebugread.c (parse_symbol): Likewise.
13372 * stabsread.c (define_symbol): Likewise.
13373 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13374 initializing TYPE_FIELD_BITPOS to n (obsolete).
13375 (hpread_doc_function_type): Likewise.
13376 * hpread.c (hpread_function_type): Likewise.
13378 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13380 * configure.in (host_makefile_frag): Only require a host makefile
13381 fragment when a native build.
13382 * configure: Re-generate.
13384 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13386 * doublest.h (floatformat_from_type): Declare.
13387 * doublest.c (floatformat_from_type): New function.
13388 (convert_typed_floating): Use.
13390 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13391 call to function floatformat_from_type.
13393 * gdbarch.sh (IEEE_FLOAT): Delete.
13394 * gdbarch.h, gdbarch.c: Re-generate.
13395 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13396 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13397 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13398 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13399 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13400 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13401 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13402 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13403 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13404 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13405 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13406 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13408 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13409 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13410 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13411 * sh-tdep.c (sh_gdbarch_init): Ditto.
13412 * mips-tdep.c (mips_gdbarch_init): Ditto.
13413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13414 * cris-tdep.c (cris_gdbarch_init): Ditto.
13416 2002-01-20 Jiri Smid <smid@suse.cz>
13418 * configure.host, configure.tgt: Support x86-64.
13419 * NEWS: Note new target x86-64.
13421 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13422 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13423 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13424 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13425 x86-64-linux-nat.o): Fix dependencies.
13427 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13429 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13430 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13431 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13432 * config/sparc/xm-sun4os4.h: Delete file.
13433 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13435 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13437 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13438 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13439 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13440 * config/i386/i386lynx.mh (XM_FILE): Delete.
13441 * config/rs6000/xm-rs6000ly.h: Delete file.
13442 * config/sparc/xm-sparclynx.h: Delete file.
13443 * config/m68k/xm-m68klynx.h: Delete file.
13444 * config/i386/xm-i386lynx.h: Delete file.
13445 * config/xm-lynx.h: Delete file.
13446 * config/djgpp/fnchange.lst: Update.
13448 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13450 * alpha-tdep.c (alpha_register_byte): New function.
13451 (alpha_register_raw_size): Ditto.
13452 (alpha_register_virtual_size): Ditto.
13453 (alpha_skip_prologue_internal): Renamed from
13454 alpha_skip_prologue.
13455 (alpha_skip_prologue): New version that calls
13456 alpha_skip_prologue_internal.
13457 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13458 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13459 second argument from alpha_skip_prologue.
13460 (REGISTER_BYTE): Use alpha_register_byte.
13461 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13462 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13463 (FRAMELESS_FUNCTION_INVOCATION): Use
13464 generic_frameless_function_invocation_not.
13465 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13466 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13468 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13470 * config/mips/xm-news-mips.h: Delete file.
13471 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13473 * config/m88k/xm-m88k.h: Delete file.
13474 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13475 * config/m88k/xm-delta88v4.h: Ditto.
13476 * config/m88k/xm-delta88.h: Ditto.
13478 * config/alpha/xm-fbsd.h: Delete file.
13479 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13481 * config/sparc/xm-sparc.h: Delete file.
13482 * Makefile.in (xm-sun4os4.h): Delete dependency.
13483 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13484 * config/sparc/xm-sun4os4.h: Ditto.
13485 * config/sparc/xm-linux.h: Ditto.
13487 * config/i386/xm-windows.h: Delete file.
13489 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13491 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13492 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13494 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13496 * alpha-tdep.c (alpha_call_dummy_words): New.
13497 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13498 (CALL_DUMMY_P): Define.
13499 (CALL_DUMMY_WORDS): Define.
13500 (SIZEOF_CALL_DUMMY_WORDS): Define.
13502 2002-01-19 Per Bothner <per@bothner.com>
13504 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13505 isn't NULL, which can happen with some gcj-3.x-produced code.
13507 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13509 * alpha-tdep.c (alpha_register_virtual_type): New function.
13510 (alpha_init_frame_pc_first): Ditto.
13511 (alpha_fix_call_dummy): Ditto.
13512 (alpha_store_struct_return): Ditto.
13513 (alpha_extract_struct_value_address): Ditto.
13514 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13515 alpha_register_virtual_type.
13516 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13517 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13518 alpha_extract_struct_value_address.
13519 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13520 (INIT_FRAME_PC): Use init_frame_pc_noop.
13521 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13523 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13525 * i386gnu-nat.c: Include "i386-tdep.h".
13526 (fetch_fpregs): Simplify code dealing with uninitialized floating
13527 point states such that it doesn't require FP7_REGNUM.
13529 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13531 * alpha-tdep.c (frame_extra_info): New.
13532 (alpha_find_saved_regs): Make static. Use
13534 (alpha_frame_init_saved_regs): New function.
13535 (alpha_frame_saved_pc): Use frame->extra_info.
13536 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13537 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13538 (init_extra_frame_info): Rename to...
13539 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13540 (alpha_print_extra_frame_info): New function.
13541 (alpha_frame_locals_address): Ditto.
13542 (alpha_frame_args_address): Ditto.
13543 (alpha_pop_frame): Use frame->extra_info.
13544 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13545 alpha_frame_args_address.
13546 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13547 (alpha_find_saved_regs): Remove prototype.
13548 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13549 (EXTRA_FRAME_INFO): Remove.
13550 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13551 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13553 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13555 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13556 (alpha_cannot_fetch_register): Ditto.
13557 (alpha_cannot_store_register): Ditto.
13558 (alpha_register_convertible): Ditto.
13559 (alpha_use_struct_convention): Ditto.
13560 * config/alpha/tm-alpha.h: Update copyright years.
13561 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13562 (INNER_THAN): Use core_addr_lessthan.
13563 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13564 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13565 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13566 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13567 (FRAME_CHAIN): Remove unnecessary cast.
13569 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13571 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13574 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13576 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13577 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13578 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13579 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13580 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13581 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13582 * x86-64-linux-nat.c: Ditto.
13584 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13586 * alpha-tdep.c (alpha_register_name): New function.
13587 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13588 (REGISTER_NAME): Define.
13590 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13592 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13594 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13596 * alpha-tdep.c: Update copyright years.
13597 (alpha_next_pc): New function.
13598 (alpha_software_single_step): Ditto.
13599 * config/alpha/tm-alpha.h: Add prototype for
13600 alpha_software_single_step.
13602 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13604 * alphabsd-nat.c: Update copyright years.
13605 (fill_gregset): Use regcache_collect.
13606 (fill_fpregset): Likewise.
13607 (fetch_inferior_registers): Only fetch integer registers
13608 if requested to do so.
13609 (store_inferior_registers): Only store integer registers
13610 if requested to do so.
13612 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13614 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13615 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13616 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13617 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13618 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13619 * config/arm/linux.mh (XDEPFILES): Delete.
13620 * config/arm/nbsd.mh (XDEPFILES): Delete.
13621 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13622 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13623 * config/i386/i386m3.mh (XDEPFILES): Delete.
13624 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13625 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13626 * config/i386/fbsd.mh (XDEPFILES): Delete.
13627 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13628 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13629 * config/i386/i386v4.mh (XDEPFILES): Delete.
13630 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13631 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13632 * config/i386/i386aix.mh (XDEPFILES): Delete.
13633 * config/i386/go32.mh (XDEPFILES): Delete.
13634 * config/i386/cygwin.mh (XDEPFILES): Delete.
13635 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13636 * config/i386/i386mach.mh (XDEPFILES): Delete.
13637 * config/i386/i386v32.mh (XDEPFILES): Delete.
13638 * config/i386/linux.mh (XDEPFILES): Delete.
13639 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13640 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13641 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13642 * config/i386/i386sco.mh (XDEPFILES): Delete.
13643 * config/i386/i386v.mh (XDEPFILES): Delete.
13644 * config/i386/nbsd.mh (XDEPFILES): Delete.
13645 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13646 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13647 * config/i386/symmetry.mh (XDEPFILES): Delete.
13648 * config/i386/obsd.mh (XDEPFILES): Delete.
13649 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13650 * config/ia64/linux.mh (XDEPFILES): Delete.
13651 * config/ia64/aix.mh (XDEPFILES): Delete.
13652 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13653 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13654 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13655 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13656 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13657 * config/m68k/linux.mh (XDEPFILES): Delete.
13658 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13659 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13660 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13661 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13662 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13663 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13664 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13665 * config/m88k/delta88.mh (XDEPFILES): Delete.
13666 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13667 * config/m88k/m88k.mh (XDEPFILES): Delete.
13668 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13669 * config/mips/linux.mh (XDEPFILES): Delete.
13670 * config/mips/irix6.mh (XDEPFILES): Delete.
13671 * config/mips/irix5.mh (XDEPFILES): Delete.
13672 * config/mips/irix4.mh (XDEPFILES): Delete.
13673 * config/mips/irix3.mh (XDEPFILES): Delete.
13674 * config/mips/decstation.mh (XDEPFILES): Delete.
13675 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13676 (NATDEPFILES): Move core-aout.o to here.
13677 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13678 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13679 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13680 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13681 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13682 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13683 * config/pa/hpux11.mh (XDEPFILES): Delete.
13684 * config/powerpc/aix.mh (XDEPFILES): Delete.
13685 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13686 * config/powerpc/linux.mh (XDEPFILES): Delete.
13687 * config/romp/rtbsd.mh: Rename XDEPFILES.
13688 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13689 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13690 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13691 * config/s390/s390.mh (XDEPFILES): Delete.
13692 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13693 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13694 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13695 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13696 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13697 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13698 * config/sparc/linux.mh (XDEPFILES): Delete.
13699 * config/vax/vaxult.mh (XDEPFILES): Delete.
13700 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13701 * Makefile.in (DEPFILES): Remove XDEPFILES.
13703 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13705 * utils.c (internal_verror): Fix comments, default is yes not no.
13706 Update queries to match. Default to quit and dump core.
13708 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13710 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13712 * defs.h, event-top.c, gdbcmd.h: Ditto.
13713 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13714 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13715 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13716 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13717 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13718 * mi/mi-main.c:Ditto.
13720 * stack.c, symfile.c: Update copyright.
13722 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13724 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13725 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13726 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13727 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13729 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13731 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13732 * gdbserver/low-lynx.c (myattach): Likewise.
13733 * gdbserver/low-nbsd.c (myattach): Likewise.
13734 * gdbserver/low-sim.c (myattach): Likewise.
13735 * gdbserver/low-sparc.c (myattach): Likewise.
13736 * gdbserver/low-sun3.c (myattach): Likewise.
13738 * gdbserver/low-linux.c (myattach): New function.
13740 * gdbserver/server.c (attach_inferior): New function.
13741 (main): Handle "--attach".
13743 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13745 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13748 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13750 * c-typeprint.c (is_type_conversion_operator): Add additional
13751 check for non-conversion operators.
13753 2002-01-15 Michael Snyder <msnyder@redhat.com>
13755 * linux-proc.c: Add "info proc" command, a la procfs.c.
13756 (read_mapping): New function, abstract and re-use code.
13757 (linux_find_memory_regions): Use new func read_mapping.
13758 (linux_info_proc_cmd): New function, implement "info proc".
13759 (_initialize_linux_proc): Add new command "info proc".
13761 2002-01-15 Michael Snyder <msnyder@redhat.com>
13763 * symfile.c (generic_load): Use bfd_map_over_sections method
13764 instead of manipulating bfd structure members directly.
13765 (add_section_size_callback): New function, bfd sections callback
13766 used by generic_load.
13767 (load_sections_callback): New function, bfd sections callback
13768 used by generic_load.
13770 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13772 [Based on work by Jim Blandy]
13773 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13774 (builtin_type_vec128): Export.
13775 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13777 (builtin_type_vec128): New builtin type for 128 bit vector
13779 (build_gdbtypes): Initialize builtin_type_v16qi and
13780 builtin_type_v8hi. Create the vec128 register builtin type
13782 (build_builtin_type_vec128): New function.
13783 (_initialize_gdbtypes): Register builtin_type_v16qi and
13784 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13785 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13786 AltiVec register to new builtin type.
13788 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13790 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13793 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13795 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13796 CLEAN_UP_REGISTER_VALUE.
13797 * regcache.c (supply_register): Update only call.
13799 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13801 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13802 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13803 a29k-*-vxworks* targets as obsolete.
13805 2002-01-14 Michael Snyder <msnyder@redhat.com>
13807 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13808 until we can resolve portability issues.
13809 * gregset.h: Remove references to fpxregs.
13810 * gcore.c (gcore_command): Initialize note_sec to NULL.
13812 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13814 * signals.c (target_signal_to_name): Rewrite. Only use
13815 signals[].name when in bounds and non-NULL.
13817 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13819 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13820 * signals.c (target_signal_to_name): Verify that SIG is within the
13821 bounds of the signals array.
13823 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13825 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13827 2002-01-13 Keith Seitz <keiths@redhat.com>
13829 * stack.c (print_frame_info_base): Print the frame's pc
13830 only if when print_frame_info_listing_hook is not defined.
13832 2002-01-13 Keith Seitz <keiths@redhat.com>
13834 * varobj.c (varobj_set_value): Make sure that there were no
13835 errors evaluating the object before attempting to set its
13837 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13838 so this offset adjustment is no longer necessary.
13839 (create_child): Don't set the error flag if the child is
13840 a CPLUS_FAKE_CHILD.
13841 (value_of_child): If value_fetch_lazy fails, return NULL
13842 so that callers will be notified that an error occurred.
13843 (c_value_of_variable): Delay check of variable's validity
13844 until later. We actually want all structs and unions to have
13846 Do not return "???" for variables which could not be evaluated.
13847 This error condition must be returned to the caller so that it
13848 can get the error condition from gdb.
13849 (cplus_name_of_child): Adjust index for vptr before figuring
13850 out the name of the child.
13851 (cplus_value_of_child): If a child's (real) parent is not valid,
13852 don't even bother trying to give a value for it. Just return
13853 an error. Change all instances in this function.
13854 (cplus_type_of_child): If our parent is one of the "fake"
13855 parents, we need to get at the type of the real parent, and
13856 derive the child's true type using this information.
13858 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13860 From 2002-01-09 John Marshall <johnm@falch.net>:
13861 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13862 sources.redhat.com, and tweak some related URLs which had
13863 suffered from linkrot.
13865 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13868 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13869 structures passed in registers.
13871 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13873 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13874 white space which prevented compilation. Reported by DSK
13875 <dsk@student.unsw.edu.au>.
13877 2002-01-11 Michael Snyder <msnyder@redhat.com>
13879 * symfile.c (build_section_addr_info_from_section_tab):
13880 Use bfd access method instead of manipulating bfd directly.
13881 (syms_from_objfile): Ditto.
13882 (simple_overlay_update_1): Ditto.
13883 (simple_overlay_update): Ditto.
13884 (generic_load): Ditto.
13885 (overlay_unmapped_address): FIXME comment, bfd access methods.
13886 (sections_overlap): FIXME comment, bfd access methods.
13887 (pc_in_mapped_range): FIXME comment, bfd access methods.
13888 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13889 (section_is_mapped): FIXME comment, bfd access methods.
13890 (section_is_overlay): FIXME comment, bfd access methods.
13892 * symfile.c (generic_load): Whitespace and long line cleanups.
13893 Remove duplicate variable, change several local variables to
13894 more appropriate data types.
13895 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13897 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13899 From Peter Schauer:
13900 * language.c (longest_local_hex_string_custom): Use phex_nz to
13901 convert NUM to a hex string.
13903 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13905 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13907 Update Copyright year.
13909 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13911 * language.c (longest_raw_hex_string): Delete unused function.
13913 2002-01-11 Petr Sorfa <petrs@caldera.com>
13915 * MAINTAINERS (write-after-approval): Add myself.
13916 * dwarf2read.c (read_tag_string_type): Handling of
13918 (read_tag_string_type): FORTRAN fix to prevent propagation of
13920 (set_cu_language): Handling of DW_LANG_Fortran95
13922 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13924 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13925 GETPID(inferior_ptid).
13926 (store_inferior_registers): Likewise.
13928 2002-01-10 Jason Merrill <jason@redhat.com>
13930 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13933 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13935 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13936 and bfd/elf32-sh-nbsd.c.
13938 2002-01-10 Michael Snyder <msnyder@redhat.com>
13940 * NEWS: Mention --pid and corefile/proc-id behavior change.
13942 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13943 * gcore.c: Include cli/cli-decode.h instead of command.h.
13945 * main.c (captured_main): Add new command line option "--pid".
13946 If the second command line argument (following the symbol-file)
13947 begins with a digit, try to attach to it before trying to open
13949 (print_gdb_help): Document the "--pid" argument.
13951 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13953 * completer.c (command_completer): New function.
13955 * completer.h <command_completer>: Add prototype.
13957 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13958 completer for the "help" command.
13960 2002-01-09 Jason Merrill <jason@redhat.com>
13962 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13964 2002-01-09 Michael Snyder <msnyder@redhat.com>
13966 * i386-linux-nat.c (fill_fpxregset): Make global.
13967 (store_fpxregset): Ditto.
13969 * gregset.h (gdb_fpxregset_t): Define.
13970 (supply_fpxregset): Prototype.
13971 (fill_fpxregset): Prototype.
13973 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13975 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13977 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13978 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13979 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13981 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13983 * MAINTAINERS: Update target maintainer rules so that any
13984 Maintainer can approve a tested patch for a maintenance-only
13987 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13989 * MAINTAINERS (write-after-approval): Add myself.
13991 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13994 2002-01-08 Michael Snyder <msnyder@redhat.com>
13996 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13997 real name of the executable, rather than the /proc name.
13999 2002-01-03 Michael Snyder <msnyder@redhat.com>
14001 Implement a "generate-core-file" command in gdb, save target state.
14002 * gcore.c: New file. Implement new command 'generate-core-file'.
14003 Save a corefile image of the current state of the inferior.
14004 * linux-proc.c: Add linux-specific code for saving corefiles.
14005 * target.h (struct target_ops): Add new target vectors for saving
14006 corefiles; to_find_memory_regions and to_make_corefile_notes.
14007 (target_find_memory_regions): New macro.
14008 (target_make_corefile_notes): New macro.
14009 * target.c (update_current_target): Inherit new target methods.
14010 (dummy_find_memory_regions): New place-holder method.
14011 (dummy_make_corefile_notes): New place-holder method.
14012 (init_dummy_target): Initialize new dummy target vectors.
14013 * exec.c (exec_set_find_memory_regions): New function.
14014 Allow the exec_ops vector for memory regions to be taken over.
14015 (exec_make_note_section): New function, target vector method.
14016 * defs.h (exec_set_find_memory_regions): Export prototype.
14017 * procfs.c (proc_find_memory_regions): New function, corefile method.
14018 (procfs_make_note_section): New function, corefile method.
14019 (init_procfs_ops): Set new target vector pointers.
14020 (find_memory_regions_callback): New function.
14021 (procfs_do_thread_registers): New function.
14022 (procfs_corefile_thread_callback): New function.
14023 * sol-thread.c (sol_find_memory_regions): New function.
14024 (sol_make_note_section): New function.
14025 (init_sol_thread_ops): Initialize new target vectors.
14026 * inftarg.c (inftarg_set_find_memory_regions): New function.
14027 Allow to_find_memory_regions vector to be taken over.
14028 (inftarg_set_make_corefile_notes): New function.
14029 Allow to_make_corefile_notes vector to be taken over.
14030 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14031 interface layer if not target_has_execution (may be a corefile).
14032 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14033 * config/sparc/sun4sol2.mh: Ditto.
14034 * config/alpha/alpha-linux.mh: Ditto.
14035 * config/arm/linux.mh: Ditto.
14036 * config/i386/x86-64linux.mh: Ditto.
14037 * config/ia64/linux.mh: Ditto.
14038 * config/m68k/linux.mh: Ditto.
14039 * config/mips/linux.mh: Ditto.
14040 * config/powerpc/linux.mh: Ditto.
14041 * config/sparc/linux.mh: Ditto.
14043 2002-01-07 Michael Snyder <msnyder@redhat.com>
14045 * arm-linux-nat.c: Remove references to regcache.c internal data
14046 (registers[] and register_valid[]).
14048 2002-01-07 Michael Snyder <msnyder@redhat.com>
14050 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14051 so that attaching to a pid will automatically read the process's
14052 symbol file and shlibs.
14053 * Makefile.in: Add rule for linux-proc.o.
14054 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14055 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14056 * config/arm/linux.mh: Ditto.
14057 * config/i386/linux.mh: Ditto.
14058 * config/i386/x86-64linux.mh: Ditto.
14059 * config/ia64/linux.mh: Ditto.
14060 * config/m68k/linux.mh: Ditto.
14061 * config/mips/linux.mh: Ditto.
14062 * config/powerpc/linux.mh: Ditto.
14063 * config/sparc/linux.mh: Ditto.
14065 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14067 * win32-nat.c: Add i386-tdep.h dependency.
14069 2002-01-07 Michael Snyder <msnyder@redhat.com>
14071 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14072 instead of bfd_get_arch_size. Don't bail out just because
14073 there's no exec_bfd.
14075 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14076 * p-valprint.c (pascal_object_print_value): Ditto.
14077 * somread.c (som_symtab_read): Ditto.
14078 * symfile.c (simple_free_overlay_region_table): Ditto.
14079 * valops.c (value_assign): Ditto.
14081 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14082 use tilde_expand and strerror for opening save-tracepoints file.
14084 * thread-db.c (thread_db_new_objfile): Indendation fix.
14086 * infptrace.c (GDB_MAX_ALLOCA): New define.
14087 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14088 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14089 can be overridden with whatever value is appropriate to the host).
14090 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14091 alloca to allocate potentially large buffer.
14092 * rs6000-nat.c (child_xfer_memory): Ditto.
14093 * symm-nat.c (child_xfer_memory): Ditto.
14094 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14096 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14098 From Nick Clifton <nickc@redhat.com>
14099 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14101 2002-01-07 Michael Snyder <msnyder@redhat.com>
14103 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14104 Don't use exec_bfd if it's NULL.
14106 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14108 * valops.c (value_arg_coerce): Fix formatting.
14110 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14112 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14113 * gnu-nat.c: Ditto.
14115 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14117 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14118 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14119 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14120 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14121 z8k-coff have not been multi-arched. Update z8k-coff build
14124 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14126 * MAINTAINERS: Mark a29k target as obsolete.
14127 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14128 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14130 * NEWS: Note that a29k targets are obsolete.
14131 * a29k-tdep.c: Mark as obsolete.
14132 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14133 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14134 a29k-*-vxworks* targets as obsolete.
14135 * remote-adapt.c: Obsolete.
14136 * remote-eb.c: Obsolete.
14137 * remote-mm.c: Obsolete.
14138 * remote-udi.c: Obsolete.
14139 * config/a29k/a29k-udi.mt: Obsolete.
14140 * config/a29k/a29k.mt: Obsolete.
14141 * config/a29k/tm-a29k.h: Obsolete.
14142 * config/a29k/tm-vx29k.h: Obsolete.
14143 * config/a29k/vx29k.mt: Obsolete.
14145 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14147 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14148 with BFD_ENDIAN_BIG.
14150 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14152 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14153 * configure, config.in: Re-generate.
14154 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14155 * defs.h: Do not include <endian.h>.
14157 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14159 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14160 * config.in: Regenerate.
14161 * configure.in: Update copyright years.
14162 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14163 * configure: Regenerate.
14164 * i386bsd-nat.c: Update copyright years.
14165 (fill_gregset): Use regcache_collect.
14166 (fetch_inferior_registers): Only fetch integer registers
14167 if requested to do so. Add support for XMM registers
14168 using PT_GETXMMREGS.
14169 (store_inferior_registers): Only store integer registers
14170 if requested to do so. Add support for XMM registers
14171 using PT_SETXMMREGS.
14172 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14173 (store_inferior_registers): Remove.
14174 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14175 (fetch_elfcore_registers): New function.
14176 (i386nbsd_elfcore_fns): New.
14177 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14178 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14180 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14181 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14182 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14183 * config/i386/tm-nbsd.h: Update copyright years.
14184 (HAVE_SSE_REGS): Define.
14185 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14186 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14187 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14188 (SIGCONTEXT_PC_OFFSET): Remove.
14189 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14191 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14193 * configure.tgt: Remove powerpc-*-macos* target.
14194 * config/m68k/xm-mpw.h: Delete file.
14195 * config/xm-mpw.h: Delete file.
14196 * ser-mac.c: Delete file.
14197 * mpw-make.sed: Delete file.
14198 * mpw-config.in: Delete file.
14199 * mac-xdep.c: Delete file.
14200 * mac-gdb.r: Delete file.
14201 * mac-defs.h: Delete file.
14202 * mac-nat.c: Delete file.
14203 * config/powerpc/macos.mh: Delete file.
14204 * config/powerpc/macos.mt: Delete file.
14205 * config/powerpc/nm-macos.h: Delete file.
14206 * config/powerpc/tm-macos.h: Delete file.
14207 * source.c (openp, open_source_file): Remove obsolete code.
14208 * top.c (gdb_readline): Ditto.
14209 * utils.c (query): Ditto.
14210 * event-top.c (display_gdb_prompt): Ditto.
14211 * Makefile.in (ser-mac.o): Delete obsolete target.
14214 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14216 * defs.h (BIG_ENDIAN): Delete macro definition.
14217 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14218 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14219 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14220 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14221 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14222 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14223 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14224 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14225 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14226 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14227 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14228 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14229 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14230 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14231 * gdbarch.c: Re-generate.
14233 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14235 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14238 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14240 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14242 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14244 * value.h (value_ptr): Delete typedef.
14246 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14248 * i386nbsd-nat.c: Update copyright years.
14249 Include i386-tdep.h.
14251 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14253 * stabsread.c: Update copyright years.
14255 From Debashis Mahata <debashis.mahata@wipro.com>:
14256 (read_struct_fields): Deal with Sun C compiler erroneous stab
14257 output for structs and unions.
14260 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14262 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14265 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14267 * cp-abi.c: Fix whitespace.
14268 (baseclass_offset): New wrapper function.
14269 * cp-abi.h (baseclass_offset): Add prototype.
14270 (struct cp_abi_ops): Add baseclass_offset pointer.
14272 * valops.c (vb_match): Move to...
14273 * gnu-v2-abi.c (vb_match): here.
14274 * valops.c (baseclass_offset): Move to...
14275 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14277 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14279 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14280 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14281 * hpacc-abi.c (init_hpacc_ops): Likewise.
14283 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14285 * valops.c (find_overload_match): Accept obj as a
14286 reference parameter. Update it before returning.
14287 * value.h (find_overload_match): Update prototype.
14288 * eval.c (evaluate_subexp_standard): Pass object to
14289 find_overload_match by reference.
14291 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14293 * valarith.c: Replace value_ptr with struct value pointer. Remove
14294 register attribute from value declarations.
14297 * scm-lang.c (scm_lookup_name): Ditto.
14299 2002-01-03 Michael Snyder <msnyder@redhat.com>
14301 Abstract the functionality of iterating over mapped memory
14302 regions into a general purpose iterator function.
14303 * procfs.c (iterate_over_mappings): New function, general purpose
14304 iterator for memory sections.
14305 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14306 (solib_mappings_callback): New function, callback for above.
14307 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14308 (info_mappings_callback): New function, callback for above.
14310 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14312 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14314 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14315 * i386-tdep.c: Include "elf-bfd.h".
14316 (process_note_abi_tag_sections): New function.
14317 (i386_gdbarch_init): Add code to recognize various OS/ABI
14320 * maint.c (_initialize_maint_cmds): Add missing \ in
14323 For older changes see ChangeLog-2001
14329 version-control: never