1 2002-12-08 Andrew Cagney <ac131313@redhat.com>
3 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
4 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
6 2002-12-08 Andrew Cagney <ac131313@redhat.com>
8 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
10 * gdbarch.h, gdbarch.c: Re-generate.
11 * frame.c (get_prev_frame): Explictly assign prev's pc with value
12 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
14 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
15 declaration to a function returning a CORE_ADDR.
16 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
17 * arch-utils.c (init_frame_pc_noop): Return the PC value.
18 (init_frame_pc_default): Ditto.
19 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
20 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
21 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
22 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
23 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
24 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
26 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
27 to init_frame_pc_noop.
28 (i386_interix_init_frame_pc): Delete function.
29 * z8k-tdep.c (init_frame_pc): Delete function.
30 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
31 (INIT_FRAME_PC_FIRST): Ditto.
32 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
33 (INIT_FRAME_PC_FIRST): Ditto.
34 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
35 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
37 (INIT_FRAME_PC_FIRST): Convert to an expression.
38 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
40 2002-12-08 Andrew Cagney <ac131313@redhat.com>
42 * blockframe.c: Use get_frame_base instead of directly accessing
43 the `struct frame_info' member frame.
44 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
45 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
47 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
49 * Makefile.in (readline_h): Define.
50 (completer.o): Depend on readline_h.
59 (tracepoint.o): Ditto.
65 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
67 More cleanup from import of readline 4.3.
68 * completer.h (complete_line, readline_line_completion_function):
70 (line_completion_function): Removed, not used outside of completer.c.
71 * completer.c (readline_line_completion_function,
72 complete_function, line_completion_function): Use const for first
74 (line_completion_function): Make static.
75 (filename_completer): filename_completion_function is now called
76 rl_filename_completion_function
77 * corelow.c: Include <readline/readline.h>.
83 * top.c (init_main): No need to coerce
84 readline_line_completion_function anymore.
85 * cli/cli-dump.c: Include <readline/readline.h>.
87 2002-12-08 Andrew Cagney <ac131313@redhat.com>
89 * stack.c (frame_info): Use get_prev_frame.
90 * blockframe.c (frame_address_in_block): Ditto.
91 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
92 (rs6000_frameless_function_invocation): Ditto.
93 (rs6000_frame_saved_pc): Ditto.
94 (rs6000_frame_chain): Ditto.
95 * arch-utils.c (init_frame_pc_default): Ditto.
97 2002-12-08 Andrew Cagney <ac131313@redhat.com>
99 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
100 Delete redundant definition.
102 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
104 Import of readline 4.3:
105 * cli/cli-cmds.c: Include readline/tilde.h.
106 * cli/cli-setshow.c: Ditto.
107 * defs.h: Don't declare tilde_expand anymore, since readline
110 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
112 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
113 -Werror on this file.
115 2002-12-07 Andrew Cagney <ac131313@redhat.com>
117 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
119 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
120 * gdbarch.c: Regenerate.
122 2002-12-06 Andrew Cagney <ac131313@redhat.com>
124 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
125 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
126 provide a default value.
127 * gdbarch.h, gdbarch.c: Regenerate.
128 * frame.c (get_prev_frame): Update. Check
129 DEPRECATED_INIT_FRAME_PC_FIRST_P.
130 * s390-tdep.c (s390_gdbarch_init): Update.
131 * mips-tdep.c (mips_gdbarch_init): Update.
132 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
133 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
134 * alpha-tdep.c (alpha_gdbarch_init): Update.
136 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
138 * ia64-linux-nat.c: Include gdb_string.h.
139 * alpha-nat.c: Ditto.
140 * ppc-linux-nat.c: Ditto.
141 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
144 2002-12-05 Andrew Cagney <ac131313@redhat.com>
146 * gdbthread.h: Include "frame.h".
147 (struct thread_info): Replace step_frame_address with
149 * inferior.h: Include "frame.h".
150 (step_frame_id): Replace external variable step_frame_address.
151 * gdbthread.h (save_infrun_state): Replace step_frame_address
152 parameter with step_frame_id parameter.
153 (load_infrun_state): Ditto.
154 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
155 * infcmd.c (step_frame_id, step_1, step_once): Update.
156 * thread.c (load_infrun_state, save_infrun_state): Update.
157 * infrun.c (clear_proceed_status, save_inferior_status): Update.
158 (handle_inferior_event, step_over_function): Update.
159 (normal_stop, context_switch, restore_inferior_status): Update.
160 (struct inferior_status): Replace step_frame_address with
163 2002-12-05 David Carlton <carlton@math.stanford.edu>
165 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
166 DW_TAG_member as well as a declaration as being a C++ static data
168 (read_structure_scope): Combine tests for DW_TAG_member and
171 2002-12-05 David Carlton <carlton@math.stanford.edu>
173 * linespec.c (decode_compound): New function.
174 (decode_line_1): Move code into decode_compound.
176 2002-12-05 David Carlton <carlton@math.stanford.edu>
178 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
180 (lookup_symbol_aux): Do the 'field_of_this' check before checking
181 the static block. See PR gdb/804.
183 2002-12-05 David Carlton <carlton@math.stanford.edu>
185 * symtab.c (lookup_symbol_aux_block): New function.
186 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
188 2002-12-05 Andrew Cagney <ac131313@redhat.com>
190 * gdbarch.sh: Dump the predicate function and macro values.
191 (read): Print error on standard error.
192 * gdbarch.c: Regenerate.
194 2002-12-04 Kevin Buettner <kevinb@redhat.com>
196 * Makefile.in (mips_tdep_h): Define.
197 (mips-tdep.o): Add mips_tdep_h to dependency list.
198 * mips-tdep.h: New file.
199 * mips-tdep.c (mips-tdep.h): Include.
200 (enum mips_abi): Move to mips-tdep.h.
201 (mips_abi): New function.
203 2002-12-04 David Carlton <carlton@math.stanford.edu>
205 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
207 2002-12-04 David Carlton <carlton@math.stanford.edu>
209 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
211 (lookup_symbol_aux_minsyms): New function.
213 2002-12-04 J. Brobecker <brobecker@gnat.com>
215 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
217 2002-12-04 J. Brobecker <brobecker@gnat.com>
219 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
220 which is an obsolete macro name.
222 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
224 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
225 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
227 2002-12-03 H.J. Lu (hjl@gnu.org)
229 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
230 (create_breakpoints): Make sure the addr_string field is not
233 2002-12-03 Andrew Cagney <ac131313@redhat.com>
235 * sparc-nat.c (fetch_inferior_registers)
236 (store_inferior_registers): Add comment on problem of LWP vs
239 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
240 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
241 (lin_lwp_store_registers): Remove.
242 (init_lin_lwp_ops): Use fetch_inferior_registers
243 and store_inferior_registers directly.
244 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
245 (store_inferior_registers): Likewise.
248 2002-12-03 Andrew Cagney <ac131313@redhat.com>
250 * frame.h (get_frame_id): Convert to a function.
251 (null_frame_id, frame_id_p): Declare.
252 (frame_id_eq, frame_id_inner): Declare.
253 (frame_id_build): New function.
254 * frame.c (get_frame_id): Update. Use null_frame_id.
255 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
257 (null_frame_id, frame_id_p): Define.
258 (frame_id_eq, frame_id_inner): Define.
259 (frame_id_build): New function.
260 * varobj.c (varobj_create): Update.
261 (varobj_update): Update.
262 * valops.c (value_assign): Update.
263 (new_root_variable): Update.
264 * infrun.c (save_inferior_status): Update.
265 * breakpoint.c (watch_command_1): Update.
267 2002-12-03 J. Brobecker <brobecker@gnat.com>
269 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
272 2002-12-03 Andrew Cagney <cagney@redhat.com>
274 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
277 * PROBLEMS: Mention PR gdb/725.
279 2002-12-03 Andreas Schwab <schwab@suse.de>
281 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
283 2002-12-02 Adam Fedor <fedor@gnu.org>
284 Klee Dienes <kdienes@apple.com>
286 * objc-lang.c (objc_printstr): Add width arg to match
288 (compare_selectors): Add 'const' to arg types.
289 (compare_classes): Likewise.
290 (find_imps): Cast msym pointer to avoid compiler warning.
291 (print_object_command): Validate the address before
292 passing it to the print routine.
293 (find_objc_msgcall_submethod): Change function argument to
295 * objc-lang.h: Add 'extern' to all function declarations.
296 (value_nsstring): Add declaration.
298 2002-12-02 J. Brobecker <brobecker@gnat.com>
300 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
301 Fixes a build failure on HP/UX.
303 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
305 (hpread_has_name): Advance declaration to avoid a compilation warning.
306 (pst_syms_count): Add missing variable type. By change, the compiler
307 was defaulting to int, which seems a good choice. Fixes a compilation
309 (pst_syms_size): Likewise.
311 2002-12-02 J. Brobecker <brobecker@gnat.com>
313 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
314 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
315 later to set the proper gdbarch methods depending on the osabi.
316 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
318 2002-12-02 J. Brobecker <brobecker@gnat.com>
320 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
321 * osabi.c (gdb_osabi_name): Add strings images for the two new
323 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
325 2002-12-02 Andrew Cagney <ac131313@redhat.com>
327 * MAINTAINERS (Java): Global maintainers are responible for Java.
328 (Past Maintainers): Mention both Anthony Green and Per Bothner as
329 part Java maintainers.
331 2002-12-02 J. Brobecker <brobecker@gnat.com>
333 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
334 Fixes a compilation failure on AiX.
336 2002-12-02 J. Brobecker <brobecker@gnat.com>
338 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
339 why aix-thread.o is not listed.
341 2002-12-01 Andrew Cagney <ac131313@redhat.com>
343 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
344 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
345 * gdbarch.h, gdbarch.c: Re-generate.
346 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
347 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
348 * config/pa/tm-hppa.h, frame.h: Update.
349 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
350 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
351 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
352 * cris-tdep.c, alpha-tdep.c: Update.
353 * frame.c (set_unwind_by_pc, create_new_frame): Use either
354 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
355 (get_prev_frame): Ditto.
357 2002-11-30 Andrew Cagney <cagney@redhat.com>
359 * exec.c (xfer_memory): Replace boolean with int.
360 * p-exp.y: Use 0 instead of false.
361 * corelow.c (gdb_check_format): Change return type to int from
363 * utils.c: Don't include <curses.h> or <term.h> first.
365 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
367 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
368 (m68hc11_register_byte): Remove.
369 (m68hc11_gdbarch_init): Don't set the above.
371 2002-11-29 Andrew Cagney <cagney@redhat.com>
373 * remote-mips.c (mips_initialize): Force a selected frame rebuild
374 by calling get_selected_frame.
375 * ocd.c (ocd_start_remote): Use get_selected frame instead of
376 set_current_frame, create_new_frame, select_frame and
378 * remote-e7000.c (e7000_start_remote): Ditto.
379 * remote-mips.c (common_open): Ditto
380 * remote-rdp.c (remote_rdp_open): Ditto.
382 2002-11-29 Andreas Schwab <schwab@suse.de>
384 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
385 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
386 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
387 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
388 read_memory_unsigned_integer instead of read_memory_integer when
389 dealing with addresses and instruction opcodes.
390 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
391 (m68k_linux_frame_saved_pc): Likewise.
393 2002-11-29 Andrew Cagney <ac131313@redhat.com>
395 * stack.c (selected_frame, select_frame): Move from here ...
396 * frame.c (selected_frame, select_frame): ... to here. Include
398 * Makefile.in (frame.o): Update dependencies.
399 * frame.c (get_selected_frame): New function.
400 * frame.h (get_selected_frame): Declare.
401 (deprecated_selected_frame): Rename selected_frame.
402 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
403 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
404 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
405 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
406 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
407 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
408 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
409 * z8k-tdep.c, cli/cli-cmds.c: Update.
411 2002-11-29 Andrew Cagney <ac131313@redhat.com>
413 * frame.h (get_selected_block): Add comments.
415 2002-11-28 Andrew Cagney <ac131313@redhat.com>
417 * frame.c (pc_notcurrent): New function.
418 (find_frame_sal): New function.
419 * frame.h (find_frame_sal): Declare.
420 (struct symtab_and_line): Add opaque declaration.
421 * stack.c (print_frame_info_base): Use find_frame_sal instead of
424 * ada-lang.c (find_printable_frame): Ditto.
426 2002-11-28 J. Brobecker <brobecker@gnat.com>
428 * configure.in: Check that the pthdebug library is recent enough
429 before enabling thread support on native AiX.
430 * configure: Regenerate.
432 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
433 from the list of object files as it is now appended by configure
434 if thread support is enabled.
435 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
436 if thread support is enabled.
438 2002-11-28 Andrew Cagney <cagney@redhat.com>
440 * stack.c (get_selected_block): In-line get_current_block.
441 * frame.h (get_current_block): Delete declaration.
442 * blockframe.c (get_current_block): Delete function.
444 2002-11-28 Andrew Cagney <ac131313@redhat.com>
446 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
447 USE_GENERIC_DUMMY_FRAMES.
448 * gdbarch.h, gdbarch.c: Regenerate.
449 * valops.c, frame.c: Update.
450 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
451 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
452 * config/pa/tm-hppa.h, blockframe.c: Update.
453 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
454 * m68k-tdep.c, alpha-tdep.c: Ditto.
456 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
457 * mips-tdep.c: Ditto.
459 2002-11-27 Andrew Cagney <ac131313@redhat.com>
461 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
462 (USE_GENERIC_DUMMY_FRAMES): Default to true.
463 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
464 * gdbarch.c, gdbarch.h: Re-generate.
465 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
466 (CALL_DUMMY_LOCATION): Delete macro definition.
467 (PC_IN_CALL_DUMMY): Delete macro definitions.
469 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
470 default is already generic_pc_in_call_dummy.
471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
472 * v850-tdep.c (v850_gdbarch_init): Ditto.
473 * sh-tdep.c (sh_gdbarch_init): Ditto.
474 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
475 * mips-tdep.c (mips_gdbarch_init): Ditto.
476 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
478 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
479 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
480 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
481 * avr-tdep.c (avr_gdbarch_init): Ditto.
483 * arm-tdep.c (arm_gdbarch_init): Do not set
484 use_generic_dummy_frames, default is already 1.
485 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
486 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
487 * v850-tdep.c (v850_gdbarch_init): Ditto.
488 * sh-tdep.c (sh_gdbarch_init): Ditto.
489 * s390-tdep.c (s390_gdbarch_init): Ditto.
490 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
491 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
492 * mips-tdep.c (mips_gdbarch_init): Ditto.
493 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
495 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
496 * i386-tdep.c (i386_gdbarch_init): Ditto.
497 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
498 * frv-tdep.c (frv_gdbarch_init): Ditto.
499 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
500 * cris-tdep.c (cris_gdbarch_init): Ditto.
501 * avr-tdep.c (avr_gdbarch_init): Ditto.
503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
504 call_dummy_location, default is already AT_ENTRY_POINT.
505 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
506 * v850-tdep.c (v850_gdbarch_init): Ditto.
507 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
508 * sh-tdep.c (sh_gdbarch_init): Ditto.
509 * s390-tdep.c (s390_gdbarch_init): Ditto.
510 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
511 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
512 * mips-tdep.c (mips_gdbarch_init): Ditto.
513 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
515 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
516 * i386-tdep.c (i386_gdbarch_init): Ditto.
517 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
518 * frv-tdep.c (frv_gdbarch_init): Ditto.
519 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
520 * cris-tdep.c (cris_gdbarch_init): Ditto.
521 * avr-tdep.c (avr_gdbarch_init): Ditto.
522 * arm-tdep.c (arm_gdbarch_init): Ditto.
523 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
525 2002-11-28 Andrew Cagney <cagney@redhat.com>
527 * frame.h: Update comments on set_current_frame, create_new_frame,
528 flush_cached_frames, reinit_frame_cache, select_frame and
531 2002-11-27 Andrew Cagney <cagney@redhat.com>
533 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
534 deprecated pc_in_call_dummy function.
535 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
536 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
537 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
538 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
539 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
541 2002-11-26 Martin M. Hunt <hunt@redhat.com>
543 * Makefile.in: Remove Tix dependencies.
544 * acinclude.m4: Ditto.
546 * configure.in: Ditto.
547 * configure: Regenerated.
549 2002-11-26 Andrew Cagney <ac131313@redhat.com>
551 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
552 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
553 * gdbarch.c: Re-generate.
555 2002-11-26 Andrew Cagney <ac131313@redhat.com>
557 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
558 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
559 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
560 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
561 pc_in_call_dummy_at_entry_point.
562 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
563 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
564 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
565 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
566 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
567 pc_in_call_dummy_on_stack.
568 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
569 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
570 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
571 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
572 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
574 2002-11-26 Andrew Cagney <ac131313@redhat.com>
576 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
577 pc_in_call_dummy_before_text_end
578 (deprecated_pc_in_call_dummy_after_text_end): Rename
579 pc_in_call_dummy_after_text_end.
580 (deprecated_pc_in_call_dummy_on_stack): Rename
581 pc_in_call_dummy_on_stack.
582 (deprecated_pc_in_call_dummy_at_entry_point): Rename
583 pc_in_call_dummy_at_entry_point.
584 * m68k-tdep.c (m68k_gdbarch_init): Update.
585 * s390-tdep.c (s390_gdbarch_init): Update.
586 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
587 * vax-tdep.c (vax_gdbarch_init): Update.
588 * sparc-tdep.c (sparc_gdbarch_init): Update.
589 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
590 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
591 * i386-tdep.c (i386_gdbarch_init): Update.
592 * frv-tdep.c (frv_gdbarch_init): Update.
593 * cris-tdep.c (cris_gdbarch_init): Update.
594 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
595 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
596 (deprecated_pc_in_call_dummy_after_text_end)
597 (deprecated_pc_in_call_dummy_on_stack)
598 (deprecated_pc_in_call_dummy_at_entry_point): Update.
599 * alpha-tdep.c (alpha_gdbarch_init): Update.
601 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
603 * acconfig.h (HAVE_PREAD64): Add.
604 * configure.in: Check for pread64.
605 * config.in: Regenerated.
606 * configure: Regenerated.
607 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
608 * linux-proc.c (linux_proc_xfer_memory): New function.
609 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
611 2002-11-25 David Carlton <carlton@math.stanford.edu>
613 * dwarf2read.c (scan_partial_symbols): Descend into namespace
616 2002-11-25 Andrew Cagney <ac131313@redhat.com>
618 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
619 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
621 2002-11-25 Jim Blandy <jimb@redhat.com>
623 * symfile.c (init_objfile_sect_indices): New function.
624 (default_symfile_offsets): Move the section-index-initializing
625 stuff into init_objfile_sect_indices, and call that.
627 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
628 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
630 * symfile.c (syms_from_objfile): Adjust indentation.
632 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
633 || info_verbose isn't true.
635 2002-11-24 Andrew Cagney <ac131313@redhat.com>
637 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
638 default to get_frame_base.
639 * gdbarch.h, gdbarch.c: Regenerate.
640 * arch-utils.c (default_frame_address): Delete function.
641 * arch-utils.h (default_frame_address): Delete declaration
643 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
645 * varobj.c (find_frame_addr_in_frame_chain):
646 Use get_frame_base instead of FRAME_FP,
649 2002-11-19 Andrew Cagney <ac131313@redhat.com>
651 * frame.h (FRAME_FP): Delete macro.
652 (get_frame_base): New function declaration.
653 * frame.c (get_frame_base): New function.
654 (get_frame_id): Use ->frame.
655 (frame_find_by_id): Rewrite to use get_frame_id.
656 * blockframe.c: Use get_frame_base instead of FRAME_FP.
657 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
658 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
659 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
660 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
661 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
662 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
664 2002-11-24 Andrew Cagney <ac131313@redhat.com>
666 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
668 2002-11-24 Andrew Cagney <ac131313@redhat.com>
670 * frame.c (set_unwind_by_pc): Revert change below, use
672 (get_prev_frame): Ditto.
674 2002-11-24 Andrew Cagney <ac131313@redhat.com>
676 * dummy-frame.c (pc_in_dummy_frame): New function.
677 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
678 (find_dummy_frame): Update comment.
679 (generic_pop_current_frame): Use get_frame_type.
680 * dummy-frame.h (pc_in_dummy_frame): Declare.
681 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
682 (create_new_frame): Use pc_in_dummy_frame.
683 (get_prev_frame): Use pc_in_dummy_frame.
684 (frame_saved_regs_register_unwind): Use get_prev_frame.
685 (deprecated_generic_get_saved_register): Use get_prev_frame.
687 2002-11-23 Andrew Cagney <ac131313@redhat.com>
689 * blockframe.c (find_frame_addr_in_frame_chain): Move function
691 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
692 (varobj_create): Note that frame ID should be used.
693 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
695 2002-11-23 Andrew Cagney <ac131313@redhat.com>
697 * breakpoint.c: Include "gdb_assert.h".
698 (deprecated_frame_in_dummy): Assert that generic dummy frames are
700 * Makefile.in (breakpoint.o): Update dependencies.
701 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
702 deprecated_frame_in_dummy.
703 * stack.c (print_frame_info_base): Ditto.
705 (print_frame_info_base): Ditto. Delete dead code.
707 2002-11-23 Andreas Schwab <schwab@suse.de>
709 * Makefile.in (m68k_tdep_h): Define.
710 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
711 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
712 * m68k-tdep.c: Move register number enum ...
713 * m68k-tdep.h: ... to this new file and rename the constants from
714 E_* to M68K_*. All uses changed.
715 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
716 * abug-rom.c: Include "m68k-tdep.h". Use
717 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
718 * cpu32bug-rom.c: Likewise.
719 * dbug-rom.c: Likewise.
720 * m68k-tdep.c: Likewise.
721 * m68klinux-nat.c: Likewise.
722 * remote-est.c: Likewise.
723 * rom68k-rom.c: Likewise.
724 * config/m68k/tm-linux.h: Likewise.
726 2002-11-23 Andrew Cagney <ac131313@redhat.com>
728 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
729 dummy frame initialization code.
730 * mips-tdep.c (mips_gdbarch_init): Ditto.
732 2002-11-22 Christopher Faylor <cgf@redhat.com>
734 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
737 2002-11-22 Andrew Cagney <ac131313@redhat.com>
739 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
740 to default_frame_address.
741 * gdbarch.h, gdbarch.c: Re-generate.
743 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
744 or frame_locals_address to default_frame_address.
745 * m68k-tdep.c (m68k_gdbarch_init): Update.
746 * i386-tdep.c (i386_gdbarch_init): Update.
747 * frv-tdep.c (frv_gdbarch_init): Update.
748 * sh-tdep.c (sh_gdbarch_init): Update.
749 * v850-tdep.c (v850_gdbarch_init): Update.
750 * sparc-tdep.c (sparc_gdbarch_init): Update.
751 * mips-tdep.c (mips_gdbarch_init): Update.
752 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
753 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
756 * cris-tdep.c (cris_frame_args_address): Delete function.
757 (cris_frame_locals_address): Delete function.
758 (cris_gdbarch_init): Do not set frame_args_address or
759 frame_locals_address.
761 2002-11-22 Michael Snyder <msnyder@redhat.com>
763 * thread-db.c (thread_db_load): Tell the user what's going on
764 if dlopen fails on libthread_db.
766 2002-11-23 Andreas Schwab <schwab@suse.de>
768 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
769 invariant return values.
771 2002-11-22 Andreas Schwab <schwab@suse.de>
773 * valops.c (value_slice): Move declaration of `offset' to avoid
776 2002-11-22 Christopher Faylor <cgf@redhat.com>
778 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
779 (struct so_stuff): Add end_addr field.
780 (register_loaded_dll): Calculate and store end address of loaded dll.
781 (solib_address): New function.
782 (child_solib_loaded_library_pathname): Pass carefully constructed
783 section info to safe_symbol_file_add rather than ignoring it.
784 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
786 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
787 (child_create_inferior): Fix a compiler warning.
788 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
789 (solib_address): Declare new function.
791 2002-11-22 Andreas Schwab <schwab@suse.de>
793 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
796 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
798 * maint.c (_initialize_maint_cmds): Fix typo. From
799 Francesco Potorti` <pot@gnu.org>.
801 2002-11-21 Andrew Cagney <cagney@redhat.com>
803 * mips-tdep.c (mips_dump_tdep): Delete references to
804 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
805 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
806 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
807 * printcmd.c (build_address_symbolic): Delete calls to
808 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
809 (address_info): Ditto.
812 2002-11-19 Klee Dienes <kdienes@apple.com>
813 Adam Fedor <fedor@gnu.org>
815 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
816 the ability to explicitly specify the quote characters and word
817 break characters; if NULL is specified for either, use the old
818 behavior of using the characters used by the completer.
819 (skip_chars): New function. Convenience wrapper around
820 skip_quoted_chars to provide the original skip_chars behavior.
821 * completer.h (skip_quoted_chars): Add prototype.
823 2002-11-19 Andrew Cagney <ac131313@redhat.com>
825 Problems reported by Paul Eggert.
826 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
828 2002-11-19 Andreas Schwab <schwab@suse.de>
830 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
831 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
832 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
833 (m68k_linux_frame_saved_pc): Move to ...
834 * m68klinux-tdep.c: ... here. New file.
835 * Makefile.in (m68klinux-tdep.o): Add dependencies.
836 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
838 2002-11-19 Adam Fedor <fedor@gnu.org>
840 * objc-exp.y: Revert to old skip_quoted usage.
842 2002-11-19 Adam Fedor <fedor@gnu.org>
844 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
845 (objc_lang_h): Define.
846 (YYFILES): Add objc-exp.tab.c.
847 (local-maintainer-clean): Remove objc-exp.tab.c.
848 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
850 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
852 * p-exp.y (typecast rule): Add automatic dereference of
853 pascal classes if needed.
854 (THIS): Set current_type.
855 Automatically dereference pascal classes.
856 (typebase rule): Add ^typebase recognition.
858 2002-11-18 Adam Fedor <fedor@gnu.org>
860 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
861 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
862 (op_name): Handle OP_OBJC_SELF.
863 * Makefile.in (expprint.o): Add additional depends.
865 2002-11-18 Adam Fedor <fedor@gnu.org>
867 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
868 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
869 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
870 * objc-exp.y: Likewise.
872 2002-11-18 Adam Fedor <fedor@gnu.org>
874 * gdb/parser-defs.h: (struct objc_class_str): New structure
875 for parsing ObjC classes.
877 2002-11-18 Andrew Cagney <ac131313@redhat.com>
879 * stack.c (frame_relative_level): Copy function from here ...
880 * frame.c (frame_relative_level): ...to here.
882 2002-11-18 Andrew Cagney <ac131313@redhat.com>
884 * frame.h (enum frame_type): Define.
885 (get_frame_type): Declare.
886 (struct frame_info): Add field `type'. Delete field
887 signal_handler_caller.
888 (deprecated_set_frame_signal_handler_caller): Declare.
889 * frame.c (get_frame_type): New function.
890 (deprecated_set_frame_type): New function.
891 (create_new_frame): Set the frame's type.
892 (get_prev_frame): Similar.
893 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
894 * s390-tdep.c: Ditto.
895 * m68klinux-nat.c: Ditto.
896 * ns32k-tdep.c: Ditto.
897 * x86-64-linux-tdep.c: Ditto.
899 * rs6000-tdep.c: Ditto.
900 * ppc-linux-tdep.c: Ditto.
901 * i386-interix-tdep.c: Ditto.
902 * mips-tdep.c: Ditto.
903 * m68k-tdep.c: Ditto.
904 * hppa-tdep.c: Ditto.
905 * ia64-tdep.c: Ditto.
906 * cris-tdep.c: Ditto.
908 * alpha-tdep.c: Ditto.
909 * i386-tdep.c: Ditto.
912 * blockframe.c: Update.
913 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
914 deprecated_set_frame_type instead of signal_handler_caller.
915 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
916 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
917 * breakpoint.h: Delete FIXME suggesting get_frame_type.
919 2002-11-18 Klee Dienes <kdienes@apple.com>
921 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
923 2002-11-18 Klee Dienes <kdienes@apple.com>
925 * buildsym.c (pop_context): Add comment.
927 2002-11-18 Klee Dienes <kdienes@apple.com>
929 * buildsym.h (pop_context): Convert to function, defined in
931 * buildsym.c: Include gdb_assert.h.
932 (pop_context): Implement as C function. Add check for stack
934 * dbxread.c (process_one_symbol): Complain and stop processing
935 that symbol if we are already at the top of the context stack for
936 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
937 when processing N_RBRAC.
939 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
941 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
943 (struct target_waitstatus): Add opaque definition.
944 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
945 * exec.c (init_exec_ops): Likewise.
946 * fork-child.c (clone_and_follow_inferior): Remove.
947 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
948 * inferior.h (clone_and_follow_inferior): Remove prototype.
949 * infrun.c (follow_fork_mode_both): Remove.
950 (follow_fork_mode_kind_names): Remove commented out "both".
951 (follow_inferior_fork): Remove follow_fork_mode_both support.
952 * inftarg.c (child_clone_and_follow_inferior): Remove.
953 (child_post_follow_inferior_by_clone): Remove.
954 (init_child_ops): Don't set to_clone_and_follow_inferior
955 or to_post_follow_inferior_by_clone.
956 * target.c (default_clone_and_follow_inferior): Remove.
957 (cleanup_target): Don't set to_clone_and_follow_inferior
958 or to_post_follow_inferior_by_clone.
959 (find_default_clone_and_follow_inferior): Remove.
960 (init_dummy_target): Don't set to_clone_and_follow_inferior.
961 (debug_to_clone_and_follow_inferior): Remove.
962 (debug_to_post_follow_inferior_by_clone): Remove.
963 (setup_target_debug): Don't set to_clone_and_follow_inferior
964 or to_post_follow_inferior_by_clone.
965 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
966 and to_post_follow_inferior_by_clone.
967 (child_clone_and_follow_inferior): Remove prototype.
968 (child_post_follow_inferior_by_clone): Remove prototype.
969 (target_clone_and_follow_inferior): Remove macro.
970 (target_post_follow_inferior_by_clone): Remove macro.
971 (find_default_clone_and_follow_inferior): Remove prototype.
973 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
975 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
976 inferior_has_vforked, and inferior_has_execd instead of
977 target_has_forked, target_has_vforked, and target_has_execd.
978 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
979 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
980 (CHILD_WAIT): Define.
981 (child_wait): Add prototype.
982 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
984 (hpux_has_vforked): Likewise, from child_has_vforked.
985 (hpux_has_execd): Likewise, from child_has_execd.
986 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
987 (not_same_real_pid, child_wait): New, copied from inftarg.c.
988 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
989 and hpux_has_syscall_event instead of the target hooks.
990 * infrun.c (inferior_has_forked, inferior_has_vforked)
991 (inferior_has_execd): New functions.
992 * inftarg.c (not_same_real_pid): Remove.
993 (child_wait): Remove references to not_same_real_pid,
994 target_has_forked, target_has_vforked, target_has_execd,
995 and target_has_syscall_event.
996 (child_has_forked, child_has_vforked, child_has_execd)
997 (child_has_syscall_event): Remove.
998 (init_child_ops): Remove references to child_has_forked,
999 child_has_vforked, child_has_execd, and child_has_syscall_event.
1000 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1001 (hpux_has_vforked): Likewise, from child_has_vforked.
1002 (hpux_has_execd): Likewise, from child_has_execd.
1003 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1004 * target.c (cleanup_target): Remove references to
1005 to_has_forked, to_has_vforked, to_has_execd, and
1006 to_has_syscall_event.
1007 (update_current_target): Likewise.
1008 (setup_target_debug): Likewise.
1009 (debug_to_has_forked): Remove.
1010 (debug_to_has_vforked): Remove.
1011 (debug_to_has_execd): Remove.
1012 (debug_to_has_syscall_event): Remove.
1013 * target.h (struct target_ops): Remove to_has_forked.
1014 to_has_vforked, to_has_execd, and to_has_syscall_event.
1015 (child_has_forked, child_has_vforked, child_has_execd)
1016 (child_has_syscall_event): Remove prototypes.
1017 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1019 (target_has_forked, target_has_vforked, target_has_execd)
1020 (target_has_syscall_event): Remove macros.
1022 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1024 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1025 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1026 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1027 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1028 * target.c (cleanup_target): Remove reference to
1029 to_can_follow_vfork_prior_to_exec.
1030 (update_current_target): Likewise.
1031 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1032 (setup_target_debug): Remove reference to
1033 to_can_follow_vfork_prior_to_exec.
1034 * target.h (struct target_ops): Remove
1035 to_can_follow_vfork_prior_to_exec.
1036 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1037 (target_can_follow_vfork_prior_to_exec): Remove definition.
1038 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1040 * infrun.c (follow_vfork_when_exec): Remove.
1041 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1042 (follow_exec): Likewise.
1043 (handle_inferior_event): Likewise.
1044 (keep_going): Likewise.
1046 2002-11-15 Andrew Cagney <cagney@redhat.com>
1048 * frame.c (generic_unwind_get_saved_register): Make static.
1049 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1050 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1051 defaults to generic_unwind_get_saved_register.
1052 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1053 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1054 * frv-tdep.c (frv_gdbarch_init): Ditto.
1055 * i386-tdep.c (i386_gdbarch_init): Ditto.
1056 * s390-tdep.c (s390_gdbarch_init): Ditto.
1057 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1058 * v850-tdep.c (v850_gdbarch_init): Ditto.
1059 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1060 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1061 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1063 2002-11-15 Andrew Cagney <cagney@redhat.com>
1065 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1068 2002-11-15 Andrew Cagney <cagney@redhat.com>
1070 * frame.h (sigtramp_saved_pc): Delete declaration.
1071 * blockframe.c (sigtramp_saved_pc): Delete function.
1072 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1073 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1074 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1075 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1077 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1079 * frame.c (frame_pc_unwind): New function.
1080 (frame_saved_regs_pc_unwind): New function.
1081 (frame_register_unwind): Pass unwind_cache instead of
1082 register_unwind_cache.
1083 (set_unwind_by_pc): Add unwind_pc parameter, set.
1084 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1085 (get_prev_frame): Ditto.
1086 * frame.h (frame_pc_unwind_ftype): Declare.
1087 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1088 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1089 (frame_pc_unwind): Declare.
1090 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1091 (struct dummy_frame): Add comment mentioning that values are for
1093 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1094 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1095 (generic_file_frame_chain_valid): Ditto.
1096 * stack.c (frame_info): Ditto.
1098 2002-11-15 David Carlton <carlton@math.stanford.edu>
1100 * linespec.c (locate_first_half): New function.
1101 (decode_line_1): Move code into locate_first_half.
1103 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1105 * complaints.h: Add comment explaining how to eliminate a
1106 deprecated_complain call.
1107 * complaints.h: Fix spelling errors.
1109 2002-11-15 David Carlton <carlton@math.stanford.edu>
1111 * printcmd.c: Remove #include "disasm.h".
1113 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1115 * frame.h: Move the most relevant interface functions to the start
1118 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1120 * regcache.h (deprecated_registers): Rename registers.
1121 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1122 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1123 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1124 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1125 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1126 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1127 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1128 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1129 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1130 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1131 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1132 * v850ice.c: Update.
1134 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1136 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1139 2002-11-13 Andrew Cagney <cagney@redhat.com>
1141 * regcache.h (deprecated_read_register_bytes): Rename
1142 read_register_bytes.
1143 (deprecated_write_register_bytes): Rename write_register_bytes.
1144 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1145 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1146 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1147 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1148 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1149 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1150 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1151 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1152 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1153 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1154 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1155 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1156 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1157 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1159 2002-11-13 Jim Blandy <jimb@redhat.com>
1161 * findvar.c (read_var_value): Doc fix.
1163 2002-11-13 Andrew Cagney <cagney@redhat.com>
1165 * regcache.c (struct regcache): Replace passthough_p with
1167 (regcache_xmalloc): Initialize readonly_p.
1168 (build_regcache): Initialize readonly_p.
1169 (regcache_save): New function.
1170 (regcache_restore): New function.
1171 (regcache_cpy): Re-implement using regcache_save and
1173 (regcache_raw_read): Update.
1174 (regcache_cooked_read): When a read-only cache, checked for cached
1175 pseudo register values.
1176 (regcache_raw_write): Assert that the cache is not read-only.
1177 Remove code handling a non-passthrough cache.
1178 * regcache.h (regcache_save): Declare.
1179 (regcache_restore): Declare.
1181 2002-11-13 Andrew Cagney <cagney@redhat.com>
1183 * regcache.c (struct regcache_descr): Add fields
1184 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1185 (init_legacy_regcache_descr): Compute the size of a cooked
1186 register cache and then assign that to sizeof_raw_registers. Set
1187 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1188 (init_legacy_regcache_descr): Ditto.
1190 2002-11-13 Andrew Cagney <cagney@redhat.com>
1192 * regcache.c (register_buffer): Move to near start of file, update
1194 (regcache_raw_read): Use.
1195 (regcache_raw_write): Use.
1196 (struct regcache): Rename raw_registers to registers and
1197 raw_register_valid_p to register_valid_p.
1198 (regcache_xmalloc): Update.
1199 (regcache_xfree): Update.
1200 (register_buffer): Update.
1201 (regcache_cpy): Update.
1202 (regcache_cpy_no_passthrough): Update.
1203 (regcache_valid_p): Update.
1204 (deprecated_grub_regcache_for_registers): Update.
1205 (deprecated_grub_regcache_for_register_valid): Update.
1206 (set_register_cached): Update.
1207 (regcache_raw_write): Update.
1209 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1211 * p-exp.y (name_not_typename): Use copy_name to
1212 set current_type variable for fields of THIS.
1214 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1216 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1217 * monitor.c (init_base_monitor_ops): Likewise.
1218 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1219 * remote-array.c (init_array_ops): Likewise.
1220 * remote-e7000.c (init_e7000_ops): Likewise.
1221 * remote-es.c (init_es1800_ops): Likewise.
1222 (init_es1800_child_ops): Likewise.
1223 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1224 * remote-sim.c (init_gdbsim_ops): Likewise.
1225 * remote-st.c (init_st2000_ops): Likewise.
1226 * sol-thread.c (init_sol_core_ops): Likewise.
1227 (init_sol_thread_ops): Likewise.
1228 * v850ice.c (init_850ice_ops): Likewise.
1229 * win32-nat.c (init_child_ops): Likewise.
1230 * wince.c (init_child_ops): Likewise.
1232 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1234 * utils.c (gdb_realpath): Make rp a constant pointer.
1236 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1238 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1239 a constant buffer; cannonicalize_file_name(); realpath() with a
1240 pathconf() defined buffer, xstrdup().
1242 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1244 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1245 to hang2.C; hang3.c to hang3.C.
1247 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1249 * findvar.c (read_var_value): Reenable TLS code.
1251 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1252 Jim Blandy <jimb@redhat.com>
1254 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1255 * target.c (update_current_target): Add
1256 to_get_thread_local_address.
1257 * target.h (to_get_thread_local_address): Export.
1258 (target_get_thread_local_address): Define.
1259 (target_get_thread_local_address_p): Define.
1260 * thread-db.c: Include solib-svr4.h.
1261 (td_thr_tls_get_addr_p): Define.
1262 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1263 (thread_db_get_thread_local_address): New function.
1264 (init_thread_db_ops): Initialize to_get_thread_local_address.
1265 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1266 * configure: Regenerate.
1267 * config.in: Regenerate.
1269 2002-11-11 David Carlton <carlton@math.stanford.edu>
1271 * linespec.c (set_flags): New function.
1272 (decode_line_1): Move code into set_flags.
1274 2002-11-11 David Carlton <carlton@math.stanford.edu>
1276 * linespec.c (decode_line_1): Move chunks of code to separate
1278 (initialize_defaults): New function.
1279 (decode_indirect): New function.
1281 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1283 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1284 instead of void_code_ptr.
1285 (sigtramp_saved_pc): Ditto.
1287 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1290 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1292 * gdbtypes.h (struct main_type): Move artificial flag out of
1293 loc. New member of ``struct field'' named static_kind. Reduce
1294 overloaded meaning of bitsize.
1295 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1296 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1297 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1299 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1301 (template_to_fixed_record_type, template_to_static_fixed_type)
1302 (to_record_with_fixed_variant_part): Likewise.
1303 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1304 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1305 * dwarfread.c (struct_type, enum_type): Likewise.
1306 * hpread.c (hpread_read_enum_type)
1307 (hpread_read_function_type, hpread_read_doc_function_type)
1308 (hpread_read_struct_type): Likewise.
1309 * mdebugread.c (parse_symbol): Likewise.
1311 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1313 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1314 * stack.c (print_frame_info_base): Update.
1315 (print_frame_info_base, frame_info): Update.
1316 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1317 (sparc_frame_saved_pc): Update.
1318 * ada-lang.c (find_printable_frame): Update.
1319 * breakpoint.c (deprecated_frame_in_dummy): Update.
1321 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1323 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1325 (regmap): Extend to cover all registers.
1326 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1327 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1329 (fetch_register, sore_register): Simplify.
1330 (old_fetch_inferior_registers, old_store_inferior_registers):
1332 (cannot_fetch_register, cannot_store_register): Change
1333 implementation to use regmap array to decide which registers
1334 cannot be fetched/stored. This removes $orig_eax from the
1335 registers that cannot be fetched/stored.
1336 (fetch_inferior_registers): Call fetch_register directly instead
1337 of calling old_fetch_inferior_registers.
1338 (store_inferior_registers): Call store_register directly instead
1339 of calling old_store_inferior_registers.
1340 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1341 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1342 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1344 2002-11-09 Klee Dienes <kdienes@apple.com>
1346 * i387-tdep.c (i387_supply_register): When called with NULL as a
1347 buffer, mark the register as not provided (to mirror the behavior
1348 of supply_register).
1349 (i387_supply_fxsave): Ditto.
1350 (i387_supply_fsave): Ditto (inherits the behavior from
1351 i387_supply_register).
1353 2002-11-09 Klee Dienes <kdienes@apple.com>
1355 * blockframe.c (sigtramp_saved_pc): Use
1356 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1357 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1358 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1360 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1362 * frame.c (get_prev_frame): Test prev_p to identify a previously
1363 unwound frame. Initialize prev_p.
1364 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1367 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1369 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1370 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1371 more comments. Zap dead code.
1373 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1375 * infcmd.c (print_vector_info, print_float_info): Move code that
1376 checks whether the target has any registers and whether there is a
1377 selected frame up, such that it is also used if a target provides
1378 multi-arch definitions of these functions.
1380 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1382 * Makefile.in (DESTDIR): Define.
1383 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1386 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1387 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1389 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1391 * i386-linux-tdep.c: Include "reggroups.h".
1392 (i386_linux_register_reggroup_p): New function.
1393 (i386_linux_init_abi): Set register_reggroup_p to
1394 i386_linux_register_reggroup_p.
1395 * i386-tdep.h (i386_register_reggroup_p): Declare.
1396 * i386-tdep.c: Include "reggroups.h".
1397 (i386_init_reggroups): New function.
1398 (i386_add_reggroups): New function.
1399 (i386_register_reggroup_p): New function.
1400 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1401 (_initialize_i386_tdep): Call i386_init_reggroups.
1402 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1405 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1407 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1408 request that's available in *BSD.
1410 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1412 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1415 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1417 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1418 * dummy-frame.c (find_dummy_frame): Rename
1419 generic_find_dummy_frame, make static. Return the dummy frame
1420 instead of the regcache.
1421 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1422 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1423 (dummy_frame_register_unwind): Rename
1424 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1425 * dummy-frame.h (dummy_frame_register_unwind): Rename
1426 generic_call_dummy_register_unwind.
1428 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1430 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1431 except the inclusion of "i386/tm-i386.h", to...
1432 * config/i386/nm-i386v42mp.h: ...here.
1433 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1435 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1437 * Makefile.in (frame.o): Update dependencies.
1438 * blockframe.c (current_frame, frame_obstack_alloc)
1439 (frame_saved_regs_zalloc, get_current_frame)
1440 (set_current_frame, create_new_frame)
1441 (set_unwind_by_pc, get_next_frame)
1442 (flush_cached_frames, reinit_frame_cache)
1443 (frame_saved_regs_register_unwind)
1444 (deprecated_generic_get_saved_register)
1445 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1446 (_initialize_blockframe): Move frame code from here...
1447 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1448 "annotate.h" and "dummy-frame.h".
1449 (_initialize_frame): New function.
1451 2002-11-08 Jim Blandy <jimb@redhat.com>
1453 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1454 when we finish a function a context.
1455 * buildsym.h (outermost_context_p): New macro.
1456 (Bug analyzed by David Edelsohn.)
1458 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1460 * blockframe.c: Include "dummy-frame.h".
1461 (struct dummy_frame, dummy_frame_stack)
1462 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1463 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1464 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1465 (generic_save_call_dummy_addr, generic_pop_current_frame)
1466 (generic_pop_dummy_frame, generic_fix_call_dummy)
1467 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1468 dummy frame code from here...
1469 * dummy-frame.c: ...to here. New file.
1470 * dummy-frame.h: New file.
1471 (generic_call_dummy_register_unwind): Declare.
1472 (generic_find_dummy_frame): Declare.
1473 * Makefile.in (SFILES): Add dummy-frame.c.
1474 (dummy-frame.o): Specify dependencies.
1475 (dummy_frame_h): Define.
1476 (COMMON_OBS): Add dummy-frame.o.
1477 (blockframe.o): Update dependencies.
1479 2002-11-08 Jim Blandy <jimb@redhat.com>
1481 * dwarf2read.c (read_func_scope): Restore local_symbols and
1482 param_symbols after we finish the function context. (Based on a
1483 patch from David Edelsohn.)
1485 2002-11-08 David Carlton <carlton@math.stanford.edu>
1487 * linespec.c (symbol_found): New function.
1488 (minsym_found): New function.
1489 (decode_line_1): Separate out some code into separate functions.
1491 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1493 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1494 the benefit of the interix target.
1495 * i386-tdep.h (i386_frameless_signal_p): Declare.
1497 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1499 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1500 declaration that snuck in from change below.
1502 2002-11-06 Andrew Cagney <cagney@redhat.com>
1504 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1506 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1507 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1508 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1509 (i386_mxcsr_regnum_p): new function. Use instead of
1511 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1512 (i386_sse_regnum_p): Declare.
1513 (i386_mxcsr_regnum_p): Declare.
1514 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1515 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1516 (IS_FP_REGNUM): Update definition.
1517 (IS_FPU_CTRL_REGNUM): Update definition..
1518 (IS_SSE_REGNUM): Update definition..
1519 * i386v-nat.c (register_u_addr): Update.
1520 * go32-nat.c (fetch_register): Update.
1521 (store_register): Update.
1523 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1525 Preparation work to convert the hppa targets to multiarch partial.
1527 * hppa-tdep.c: Add new functions replacing macro bodies from
1528 config/pa/tm-hppa.h. These function will be used to initialize
1529 the gdbarch structure. Import some comments from tm-hppa.h,
1530 and place them where appropriate, to avoid loosing them when
1531 we cleanup this file.
1532 (hppa_reg_struct_has_addr): New function.
1533 (hppa_inner_than): New function.
1534 (hppa_stack_align): New function.
1535 (hppa_pc_requires_run_before_use): New function.
1536 (hppa_instruction_nullified): New function.
1537 (hppa_register_byte): New function.
1538 (hppa_register_virtual_type): New function.
1539 (hppa_store_struct_return): New function.
1540 (hppa_cannot_store_register): New function.
1541 (hppa_frame_args_address): New function.
1542 (hppa_frame_locals_address): New function.
1543 (hppa_smash_text_address): New function.
1544 (hppa_coerce_float_to_double): New function. Requires the inclusion
1547 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1549 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1550 gdbarch-eligible macro to a call to the new associated function
1551 created in hppa-tdep.c.
1552 (INNER_THAN): Likewise.
1553 (STACK_ALIGN): Likewise.
1554 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1555 (INSTRUCTION_NULLIFIED): Likewise.
1556 (REGISTER_BYTE): Likewise.
1557 (REGISTER_VIRTUAL_TYPE): Likewise.
1558 (STORE_STRUCT_RETURN): Likewise.
1559 (CANNOT_STORE_REGISTER): Likewise.
1560 (FRAME_ARGS_ADDRESS): Likewise.
1561 (FRAME_LOCALS_ADDRESS): Likewise.
1562 (SMASH_TEXT_ADDRESS): Likewise.
1563 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1564 (ABOUT_TO_RETURN): Delete, as no longer used.
1566 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1568 * printcmd.c (disassemble_command): Remove obsolete function.
1569 (_initialize_printcmd): Do not create disassemble command here.
1570 * cli/cli-cmds.c (disassemble_command): New function. Implements
1571 disassemble command.
1572 (init_cli_cmds): Create disassemble command here instead.
1574 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1576 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1578 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1580 * regcache.h (regcache_cooked_read_using_offset_hack)
1581 (regcache_cooked_write_using_offset_hack): Delete declarations.
1582 (register_changed): Delete declaration.
1583 * regcache.c (regcache_cooked_read_using_offset_hack)
1584 (regcache_cooked_write_using_offset_hack): Delete functions.
1585 (cooked_xfer_using_offset_hack): Delete function.
1586 (register_changed): Delete function.
1588 2002-11-07 Jim Blandy <jimb@redhat.com>
1590 * macroscope.c: #include "complaints.h".
1591 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1592 but not in the macro table.
1593 * Makefile.in (macroscope.o): Record dependency.
1595 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1597 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1599 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1601 * regcache.c (deprecated_registers_fetched): Update.
1602 * regcache.h (deprecated_registers_fetched): Rename
1604 * remote-vxsparc.c (vx_read_register): Update.
1605 * remote-vxmips.c (vx_read_register): Update.
1606 * remote-vx68.c (vx_read_register): Update.
1607 * irix5-nat.c (fetch_core_registers): Update.
1608 * mipsm3-nat.c (fetch_inferior_registers): Update.
1609 * sun3-nat.c (fetch_inferior_registers): Update.
1610 * symm-nat.c (fetch_inferior_registers): Update.
1611 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1612 (fetch_core_registers): Update.
1613 (fetch_kcore_registers): Update.
1614 * mips-nat.c (fetch_inferior_registers): Update.
1615 * corelow.c (get_core_registers): Update.
1616 * a68v-nat.c (fetch_inferior_registers): Update.
1618 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1620 Put in place the framework necessary for multiarching the hppa targets.
1621 * hppa-tdep.c (hppa_gdbarch_init): New function.
1622 (hppa_dump_tdep): New function.
1623 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1624 tdep structure dumper.
1625 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1626 until the multi-arching conversion has partially been completed.
1628 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1630 * valops.c (value_assign): Merge lval_register case into
1631 lval_reg_frame_relative. Use frame_register and
1632 regcache_cooked_write instead of get_saved_register and
1633 write_register_bytes. After flushing the register cache, try to
1634 re-select the selected frame.
1636 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1638 * regcache.h (deprecated_register_valid): Rename register_valid.
1639 * regcache.c: Update.
1640 * ia64-aix-nat.c: Update.
1641 * i386gnu-nat.c: Update.
1642 * alpha-nat.c: Update.
1643 * sparc-nat.c: Update.
1644 * lynx-nat.c: Update.
1645 * remote-mips.c: Update.
1647 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1649 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1650 to end of file, to be more consistent with the pratice followed
1653 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1655 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1656 (print_float_info): Print registers in float_reggroup.
1657 (print_vector_info): Print registers in vector_reggroup.
1658 (default_print_registers_info): When all, print registers in
1659 all_reggroup. Otherwize, print registers in general_reggroup.
1660 (registers_info): Rewrite. Add support for register groups.
1663 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1665 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1667 (symtab_symbol_info): Remove eons old ifdeffed out code.
1668 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1671 2002-11-06 Theodore A. Roth <troth@openavr.org>
1673 * c-exp.y: Add missing semi-colons.
1674 * f-exp.y: Add missing semi-colons.
1675 * m2-exp.y: Add missing semi-colons.
1676 * p-exp.y: Add missing semi-colons.
1677 Add empty action to start rule to avoid a type clash error when
1678 building with bison >= 1.50.
1680 2002-11-06 Jim Blandy <jimb@redhat.com>
1682 * macrotab.h (struct macro_source_file): Doc fix.
1684 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1686 * varobj.c (child_exists, cplus_number_of_children): Change
1687 STREQ macro references to strcmp.
1688 (cplus_name_of_child): Change code to handle the fact that
1689 fields are not necessarily contiguous with regards to their
1690 access control. This is a fix for PR gdb/792.
1692 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1694 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1695 * gdbarch.h, gdbarch.c: Regnerate.
1696 * frame.h (frame_register): Declare.
1697 * frame.c (frame_register): New function.
1698 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1699 GET_SAVED_REGISTER, otherwize call
1700 generic_unwind_get_saved_register.
1701 (frame_register_read): Use frame_register instead of
1704 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1706 From Jim Ingham <jingham@apple.com>:
1707 * event-top.c (gdb_disable_readline): New function.
1708 (_initialize_event_loop): Move comment.
1710 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1712 * event-loop.c (start_event_loop): Add comment.
1715 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1717 * infcmd.c (default_print_registers_info): Do not call
1718 PRINT_REGISTER_HOOK.
1720 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1722 * sparc-tdep.c (sparc_print_register_hook): Make static.
1723 (sparc_print_registers_info): New function.
1724 (sparc_do_registers_info): New function.
1725 (sparclet_print_registers_info): New function.
1726 (sparclet_do_registers_info): New function.
1727 (do_sparc_print_registers_info): New function.
1728 (sparc_print_registers): New static function, clone of infcmd.c's
1729 default_print_registers_info.
1730 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1731 (sparclet_do_registers_info): Declare.
1732 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1733 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1735 (sparc_do_registers_info): Declare.
1736 (PRINT_REGISTER_HOOK): Delete macro.
1737 (sparc_print_register_hook): Delete declaration.
1739 2002-11-05 David Carlton <carlton@math.stanford.edu>
1741 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1743 (lookup_symbol_aux_local): New function.
1744 (lookup_symbol_aux_symtabs): New function.
1745 (lookup_symbol_aux_psymtabs): New function.
1747 2002-11-05 David Carlton <carlton@math.stanford.edu>
1749 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1750 previous values of 'objfile' and 'block'.
1752 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1754 * values.c (value_change_enclosing_type): Set
1755 enclosing_type field correctly also for the case where
1756 more memory needs to be allocated.
1758 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1760 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1763 * i387-tdep.c (i387_print_float_info): Replace calls to
1764 register_read and deprecated_read_register_gen with calls to
1765 frame_register_read, and make the necessary adjustments to the
1768 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1770 * gdbarch.sh (register_reggroup_p): Allow default value.
1771 * gdbarch.h, gdbarch.c: Regenerate.
1773 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1775 * regcache.h: Add coment indicating replacements for deprecated
1778 2002-11-02 Andrew Cagney <cagney@redhat.com>
1780 * reggroups.h, reggroups.c: New files.
1781 * regcache.c: Include "reggroups.h".
1782 (enum regcache_dump_what): Add `regcache_dump_groups'.
1783 (regcache_dump): Contract size of the "Type" column. When
1784 specified, dump the register's groups.
1785 (maintenance_print_register_groups): New function.
1786 (_initialize_regcache): Add command `maint print register-groups'.
1787 * Makefile.in (COMMON_OBS): Add reggroups.o
1788 (SFILES): Add reggroups.c.
1789 (reggroups_h): Define.
1790 (regcache.o, gdbarch.o): Update dependencies.
1791 (reggroups.o): Specify dependencies.
1792 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1793 Add opaque declaration for `struct reggroup' in generated .h file.
1794 Include "reggroups.h" in generated .c file.
1795 gdbarch.h, gdbarch.c: Re-generate.
1797 2002-11-02 Andrew Cagney <cagney@redhat.com>
1799 * regcache.h (deprecated_read_register_gen): Rename
1801 (deprecated_write_register_gen): Rename write_register_gen.
1802 * i387-tdep.c: Update.
1803 * x86-64-linux-nat.c: Update
1805 * thread-db.c: Update.
1806 * win32-nat.c: Update.
1807 * mips-tdep.c: Update.
1808 * d10v-tdep.c: Update.
1809 * cris-tdep.c: Update.
1810 * remote-sim.c: Update.
1811 * remote-rdi.c: Update.
1812 * remote-rdp.c: Update.
1815 * blockframe.c: Update.
1816 * x86-64-tdep.c: Update.
1817 * xstormy16-tdep.c: Update.
1818 * sh-tdep.c: Update.
1819 * s390-tdep.c: Update.
1820 * rs6000-tdep.c: Update.
1821 * sparc-tdep.c: Update.
1822 * i386-tdep.c: Update.
1823 * dwarf2cfi.c: Update.
1824 * regcache.c: Update.
1826 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1828 New interix-specific files:
1829 * config/i386/nm-interix.h: New file.
1830 * config/i386/interix.mh: New file.
1831 * config/i386/interix.mt: New file.
1832 * i386-interix-nat.c: New file.
1833 * i386-interix-tdep.c: New file.
1835 2002-11-01 Andrew Cagney <cagney@redhat.com>
1837 * frame.h (deprecated_generic_get_saved_register): Rename
1838 generic_get_saved_register.
1839 * blockframe.c (deprecated_generic_get_saved_register): Update.
1840 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1841 (xstormy16_frame_saved_register): Update.
1842 * sh-tdep.c (sh_gdbarch_init): Update.
1843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1844 * ia64-tdep.c (ia64_get_saved_register): Update.
1845 * cris-tdep.c (cris_gdbarch_init): Update.
1846 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1847 * arm-tdep.c (arm_gdbarch_init): Update.
1849 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1851 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1853 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1855 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1856 trampolines in sigaction.
1858 2002-10-31 Andrew Cagney <cagney@redhat.com>
1860 * h8300-tdep.c: Include "gdb_assert.h".
1861 (h8300_print_register): Add gdbarch, file and frame parameters.
1862 Use frame_read_unsigned_register to read the register's value.
1863 Use fprintf_filtered to display output.
1864 (h8300_print_registers_info): Replace h8300_do_registers_info.
1865 (h8300_gdbarch_init): Set print_registers_info.
1867 2002-10-31 Andrew Cagney <cagney@redhat.com>
1869 * frame.c (frame_read_unsigned_register): New function.
1870 (frame_read_signed_register): New function.
1871 * frame.h (frame_read_unsigned_register): Declare.
1872 (frame_read_signed_register): Declare.
1874 2002-10-31 Andrew Cagney <cagney@redhat.com>
1876 * h8500-tdep.c (h8500_print_registers_info): New static function,
1877 clone of infcmd.c's default_print_registers_info.
1878 (h8500_do_registers_info): New funtion.
1879 (h8500_print_register_hook): Rename print_register_hook, make
1882 * config/h8500/tm-h8500.h: Update copyright.
1883 (DEPRECATED_DO_REGISTERS_INFO): Define.
1884 (h8500_do_registers_info: Declare.
1885 (PRINT_REGISTER_HOOK): Delete macro.
1886 (print_register_hook): Delete function.
1888 2002-10-31 Andrew Cagney <cagney@redhat.com>
1890 * z8k-tdep.c (z8k_print_register_hook): Make static.
1891 (z8k_print_registers_info): New static function, clone of
1892 infcmd.c's default_print_registers_info.
1893 (z8k_do_registers_info): New function. Wrap
1894 z8k_print_registers_info.
1895 * config/z8k/tm-z8k.h: Update copyright.
1896 (PRINT_REGISTER_HOOK): Delete macro.
1897 (z8k_print_register_hook): Delete declaration.
1898 (DEPRECATED_DO_REGISTERS_INFO): Define.
1899 (z8k_do_registers_info): Declare.
1901 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1903 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1904 as this is already provided by value.h, and was actually causing
1905 a compilation error because of a conflict in parameter type
1906 declaration due to a missing const keyword.
1907 (low_text_segment_addres): Fix a compilation warning.
1909 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1911 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1912 registers without a name.
1913 (mips_linux_cannot_store_register): Don't store registers without
1916 2002-10-28 David Carlton <carlton@math.stanford.edu>
1918 * symtab.c (find_addr_symbol): Delete. (It was already commented
1920 * symtab.h: Delete prototype for find_addr_symbol.
1922 2002-10-26 Andrew Cagney <cagney@redhat.com>
1924 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1926 gdbarch.h, gdbarch.c: Re-generate.
1927 * infcmd.c (default_print_registers_info): Update reference.
1928 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1929 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1930 * sh-tdep.c (sh_gdbarch_init): Ditto.
1931 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1932 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1934 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1936 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1937 cfi_init_extra_frame_info.
1938 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1939 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1941 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1942 target where necessary. Add more comments and remove the ones
1943 that don't provide any useful information.
1945 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1946 deprecated_read_register_dummy with
1947 frame_unwind_unsigned_register.
1949 * i386-tdep.c (i386_extract_struct_value_address): Use
1950 regcache_raw_read_unsigned instead of
1951 regcache_cooked_read_unsigned since we know that the register
1952 we're reading isn't a pseudo register. Rename variable 'val' into
1953 the more descriptive 'addr'.
1955 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1956 (x86_64_push_return_address): Add comment.
1957 (x86_64_pop_frame): Make static.
1958 (examine_argument): Clarify comment.
1959 (x86_64_skip_prologue): Make prolog_expact variable static.
1961 * dwarf2cfi.c: Fix some formatting problems.
1962 (context_cpy, read_encoded_pointer): Clarify comments.
1964 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1965 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1966 i386 target back into x86_64_gdbarch_init. Add some comments and
1967 remove meaningless ones.
1969 2002-10-25 Andrew Cagney <cagney@redhat.com>
1971 * complaints.h (struct deprecated_complaint): Rename `struct
1973 * complaints.c (complain): Update.
1974 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1975 incorrect comment indicating that "symfile.h" was being included
1976 for the `struct complaint' definition.
1977 * remote-vx.c: Update.
1978 * objc-lang.c: Update.
1979 * xcoffread.c: Update.
1981 * mdebugread.c: Update.
1982 * stabsread.c: Update.
1983 * dwarf2read.c: Update.
1984 * dwarfread.c: Update.
1985 * elfread.c: Update.
1986 * coffread.c: Update.
1987 * stabsread.h: Update.
1988 * dbxread.c: Update.
1989 * buildsym.c: Update.
1990 * gdbtypes.c: Update.
1991 * macrotab.c: Update.
1993 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1995 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1996 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1997 (x86_64_init_abi): ...new function.
1999 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2000 * i386v-nat.c: Include "i386-tdep.h".
2002 2002-10-25 Andrew Cagney <cagney@redhat.com>
2004 * gdbtypes.c (address_space_name_to_int): Update.
2005 (address_space_int_to_name): Update.
2006 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2007 multi-arch predicate.
2008 (address_class_name_to_type_flags): Ditto.
2009 * gdbarch.h, gdbarch.c: Re-generate.
2011 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2013 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2015 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2017 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2019 * symtab.h (INIT_SAL): Delete macro.
2021 * symtab.c (init_sal): New function.
2023 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2024 to init_sal function call.
2025 (find_sal_from_funcs_and_line): Ditto.
2026 (all_sals_for_line): Ditto.
2027 * breakpoint.c (create_internal_breakpoint): Ditto.
2028 (create_fork_vfork_event_catchpoint): Ditto.
2029 (create_exec_event_catchpoint): Ditto.
2030 (parse_breakpoint_sals): Ditto.
2031 (watch_command_1): Ditto.
2032 (handle_gnu_4_16_catch_command): Ditto.
2033 (clear_command): Ditto.
2034 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2035 * infcmd.c (run_stack_dummy): Ditto.
2036 * infrun.c (process_event_stop_test): Ditto.
2037 (check_sigtramp2): Ditto.
2038 (step_over_function): Ditto.
2039 * linespec.c (decode_line_2): Ditto.
2040 (decode_line_1): Ditto.
2041 * source.c (line_info): Ditto.
2042 * symtab.c (find_pc_sect_line): Ditto.
2044 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2046 * dwarf2cfi.c (struct context)
2047 (struct context_reg): Moved to dwarf2cfi.h
2048 (context_alloc, frame_state_alloc, context_cpy):
2049 Made extern instead of static, removed prototypes.
2050 * dwarf2cfi.h (struct context)
2051 (struct context_reg): New, moved from dwarf2cfi.c
2052 (context_alloc, frame_state_alloc, context_cpy):
2054 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2055 Changed from static to extern.
2056 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2057 (LINUX_SIGCONTEXT_FP_OFFSET)
2058 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2059 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2060 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2061 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2062 set_gdbarch_*() calls now use x86-64 specific functions
2063 instead of DWARF2 CFI ones.
2064 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2065 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2066 (x86_64_init_extra_frame_info): New prototypes.
2068 2002-10-23 David Carlton <carlton@math.stanford.edu>
2070 * linespec.c: #include "parser-defs.h".
2071 Delete prototype for find_template_name_end.
2072 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2074 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2076 * NEWS: add recent mi fixes.
2077 * varobj.c (struct varobj): Add new "updated" flag.
2078 (new_variable): Default "updated" flag to 0.
2079 (varobj_set_value): Set "updated" flag to 1 if value
2081 (varobj_update): Check varobj "updated" flag before
2082 comparing old and refreshed values. Fix for
2085 2002-10-23 David Carlton <carlton@math.stanford.edu>
2087 * parse.c (parse_exp_1): Use BLOCK_START.
2088 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2090 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2092 2002-10-23 David Carlton <carlton@math.stanford.edu>
2094 * symtab.c: Delete cplusplus_hint.
2095 Delete prototype for find_template_name_end.
2097 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2099 * symtab.h: Update comment.
2101 2002-10-23 Michael Snyder <msnyder@redhat.com>
2103 * printcmd.c (address_info): Restore quotes in output.
2104 * valops.c (value_of_local): Restore quotes in error message.
2106 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2108 * symtab.c (symbol_demangled_name): New function.
2109 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2110 turning most of it into a function.
2111 (symbol_demangled_name): Export.
2113 2002-10-23 Michael Snyder <msnyder@redhat.com>
2115 * valops.c (value_of_local): Restore quotes in error message.
2117 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2119 * symtab.c (symbol_init_language_specific): New function.
2120 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2121 turning most of it into a function.
2122 (symbol_init_language_specific): Export.
2124 2002-10-23 David Carlton <carlton@math.stanford.edu>
2126 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2127 (dwarf_attr_name): Ditto.
2128 (dwarf_type_encoding_name): Ditto.
2129 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2130 (process_die): Handle DW_TAG_namespace,
2131 DW_TAG_imported_declaration, DW_TAG_imported_module.
2132 (read_namespace): New function.
2134 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2136 * configure.in: Define NEW_PROC_API on Interix too.
2137 * configure: Regenerate.
2139 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2141 * configure: Regenerate using the proper version of autoconf.
2143 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2145 * findvar.c (read_var_value): Temporarily disable TLS code, until
2146 complete TLS support is added.
2148 2002-10-21 Jim Blandy <jimb@redhat.com>
2149 Elena Zannoni <ezannoni@redhat.com>
2151 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2152 for thread local storage locations.
2153 (struct symbol): Add objfile field.
2154 (SYMBOL_OBJFILE): Define.
2155 * dwarf2read.c (is_thread_local): New static variable.
2156 (new_symbol): If variable is in thread local fill in address class
2157 and objfile appropriately.
2158 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2160 * printcmd.c (address_info): Print the information for thread
2161 local storage variable.
2162 * findvar.c (read_var_value): In case of thread local variable,
2163 defer to the target vector code to compute address.
2165 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2167 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2168 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2170 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2172 * symtab.h (address_class): Rename
2173 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2174 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2175 * printcmd.c (address_info): Ditto.
2176 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2178 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2180 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2181 DBREG_DRX macro to acces debug registers.
2183 * Makefile.in (i386obsd-tdep.o): New target.
2185 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2186 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2188 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2189 * config/i386/obsd.mt: New file.
2190 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2191 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2192 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2193 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2194 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2195 * i386obsd-tdep.c: New file.
2197 2002-10-19 Adam Fedor <fedor@gnu.org>
2199 * objc-exp.y (name_not_typename): Fix invalid comment.
2201 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2203 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2204 to allocate partial syms and macro byte caches.
2206 2002-10-18 David Carlton <carlton@math.stanford.edu>
2208 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2210 2002-10-18 Adam Fedor <fedor@gnu.org>
2212 * stabsread.c (find_name_end): New function.
2213 (define_symbol): Use it.
2215 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2217 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2218 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2219 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2220 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2222 2002-10-17 David Carlton <carlton@math.stanford.edu>
2224 * symfile.h: Add opaque declaration for struct obstack.
2225 Declare obsavestring to take a const char *.
2226 * symfile.c (obsavestring): Make first argument a const char *.
2228 2002-10-16 Adam Fedor <fedor@gnu.org>
2230 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2231 names when matching breakpoints in current file.
2233 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2235 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2236 (read_tag_pointer_type): Add address class support.
2237 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2238 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2240 * gdbarch.h, gdbarch.c: Regenerate.
2241 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2242 (make_type_with_address_space, recursive_type_dump): Add address
2244 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2245 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2246 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2248 2002-10-16 Klee Dienes <kdienes@apple.com>
2250 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2251 to get the last character of a char[] buffer, not
2252 name[sizeof(vptr_name)-1].
2254 2002-10-14 Adam Fedor <fedor@gnu.org>
2256 * symtab.h: New objc_specific struct.
2257 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2258 (SYMBOL_DEMANGLED_NAME): Likewise.
2260 2002-10-14 Adam Fedor <fedor@gnu.org>
2262 * symfile.c (init_filename_language_table): Add ObjC file extension.
2264 2002-10-14 Adam Fedor <fedor@gnu.org>
2266 * utils.c (puts_filtered_tabular): New function.
2267 (fprintf_symbol_filtered): Get ObjC demangled name.
2268 * defs.h (puts_filtered_tabular): Declared.
2270 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2272 * c-lang.h (c_type_print_varspec_prefix): Delete.
2273 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2274 ``need_post_space'' parameter. Adjust all callers.
2276 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2278 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2279 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2280 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2281 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2283 2002-10-13 Adam Fedor <fedor@gnu.org>
2285 * source.c (print_source_lines): Update comments.
2287 2002-10-13 Adam Fedor <fedor@gnu.org>
2289 * valops.c (value_of_local): New function.
2290 (value_of_this): Use it.
2291 * value.h (value_of_local): Declared.
2293 2002-10-13 Adam Fedor <fedor@gnu.org>
2295 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2296 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2298 2002-10-12 Adam Fedor <fedor@gnu.org>
2300 * language.c (binop_result_type): Add language_objc to case.
2301 (integral_type): Likewise.
2302 (character_type): Likewise.
2303 (string_type): Likewise.
2304 (boolean_type): Likewise.
2305 (structured_type): Likewise.
2306 (binop_type_check): Likewise.
2308 2002-10-11 Adam Fedor <fedor@gnu.org>
2310 * printcmd.c (address_info): Print 'self' for ObjC.
2312 2002-10-11 Adam Fedor <fedor@gnu.org>
2314 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2317 2002-10-11 Adam Fedor <fedor@gnu.org>
2319 * language.h (CAST_IS_CONVERSION): Add language_objc.
2321 2002-10-11 Adam Fedor <fedor@gnu.org>
2323 * defs.h (enum language): Add language_objc.
2325 2002-10-11 Klee Dienes <kdienes@apple.com>
2327 * corefile.c (read_memory_typed_address): New function.
2328 * gdbcore.h (read_memory_typed_address): Add prototype.
2329 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2330 to read a value destined for a CORE_ADDR, not read_memory_integer.
2331 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2332 (f77_get_dynamic_lowerbound): Ditto.
2334 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2336 * utils.c (string_to_core_addr): After turning string into
2337 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2338 which will do necessary sign-extension, etc.
2340 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2342 * c-exp.y (THIS): Delete token and grammar rule.
2343 (yylex): Don't return THIS.
2344 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2345 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2346 * demangle.c (cplus_markers): Update comment. Put '$'
2347 first. Remove CPLUS_MARKER.
2348 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2349 * jv-exp.y (THIS): Delete token and grammar rule.
2350 (yylex): Don't return THIS.
2351 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2352 * objc-exp.y (THIS): Delete token and grammar rule.
2353 (yylex): Don't return THIS.
2354 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2355 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2356 (read_member_functions): Likewise for opname.
2357 (read_tilde_fields): Use is_cplus_marker.
2359 * defs.h (CPLUS_MARKER): Don't define.
2360 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2361 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2362 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2363 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2364 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2366 * config/i386/tm-i386v4.h: Delete file.
2367 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2368 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2369 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2370 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2371 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2372 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2373 * config/i386/i386v4.mt (TM_FILE): Likewise.
2374 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2376 2002-10-10 Marko Mlinar <markom@opencores.org>
2378 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2379 accidentially not commited 2002-10-09
2380 * gdbarch.h, gdbarch.c: Re-generate.
2382 2002-10-09 Marko Mlinar <markom@opencores.org>
2384 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2385 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2386 * gdbarch.h, gdbarch.c: Re-generate.
2388 2002-10-08 Petr Sorfa <petrs@caldera.com>
2390 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2392 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2393 so we can work on more than one compilation unit at a time. This
2394 helps prepare GDB to handle inter-CU die references.
2395 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2396 the code to be defined before struct comp_unit_head.
2397 (comp_unit_head): Added new members - offset, cu_head,
2398 begin_die, next and dwarf2_abbrevs.
2399 (dwarf2_abbrevs): Removed single static var; now member of
2400 struct comp_unit_head.
2401 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2403 (psymtab_to_symtab_1): Changed to work with the new
2404 struct comp_unit_head.
2405 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2406 constructs the dwarf2_abbrevs[] inside the cu_header.
2407 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2408 dwarf2_abbrev table to clean up.
2409 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2410 handling of dwarf2_abbrevs inside the cu_header.
2411 (read_partial_die): Now supports the call to the new
2412 dwarf2_lookup_abbrev.
2413 (read_full_die): Now supports the call to the new
2414 dwarf2_lookup_abbrev.
2416 2002-10-06 Christopher Faylor <cgf@redhat.com>
2418 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2419 insure that shell variables, such as "transformed_name" are propagated
2420 to later shell statements in rule.
2422 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2424 * config/i386/nm-i386sco.h: Add protection against
2425 multiple-inclusion. Include "i386/nm-i386v.h".
2426 (REGISTER_U_ADDR): Remove define.
2427 (i386_register_u_addr): Remove prototype.
2429 2002-10-04 Michael Snyder <msnyder@redhat.com>
2431 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2432 before treating it as a single-step event.
2434 2002-10-03 Adam Fedor <fedor@gnu.org>
2436 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2437 (objc_demangle): Remove assignment in if statements, Replace
2439 (add_msglist): Likewise.
2440 (end_msglist): Likewise.
2441 (complare_selectors): Likewise.
2442 (selectors_info): Likewise.
2443 (compare_classes): Likewise.
2444 (classes_info): Likewise.
2445 (print_object_command): Likewise.
2446 (find_objc_msgcall_submethod): Replace PTR with void *.
2447 * objc-lang.h: Remove check for __STDC__.
2449 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2451 * ui-out.h (ui_out_field_fmt_int): New prototype.
2452 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2453 of field width and alignment.
2454 * stack.c (print_frame_info_base): When printing frame level, use
2455 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2458 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2460 * MAINTAINERS: Add self to Write After Approval list.
2462 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2464 * infcmd.c (interrupt_target_command_wrapper): Delete.
2465 (interrupt_target_command): Make non static.
2466 (nofp_registers_info): Make static.
2467 * stack.c (return_command_wrapper): Delete.
2468 (return_command): Make non static.
2470 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2472 * event-top.c (gdb_setup_readline): New function. Code moved from
2473 _initialize_event_loop().
2474 (_initialize_event_loop): Call gdb_setup_readline().
2476 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2478 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2479 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2480 * gdbarch.h, gdbarch.c: Re-generate.
2482 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2485 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2487 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2488 of fill_in_vptr_fieldno.
2490 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2492 * inferior.h (registers_info, stepi_command, nexti_command,
2493 continue_command, interrupt_target_command): Export from infcmd.c.
2494 * frame.h (args_info, selected_frame_level_changed_hook,
2495 return_command): Export from stack.c.
2496 * v850ice.c (stepi_command, nexti_command, continue_command): use
2497 prototypes from inferior.h.
2498 * tracepoint.c (registers_info, args_info, locals_info): Use
2499 prototypes from frame.h and inferior.h.
2500 * Makefile.in (mi-main.o): Add dependency on frame.h.
2502 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2504 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2505 value in register 3 adjusted by ppc_gp0_regnum.
2507 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2509 2002-10-02 Marko Mlinar <markom@opencores.org>
2511 * MAINTAINERS: Add myself to the Write After Approval list.
2513 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2515 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2516 of the section for the N64 ABI, fixed.
2518 * config/mips/tm-irix6.h: Include solib.h.
2520 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2522 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2525 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2527 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2528 and that "mi0" syntax has been removed.
2530 2002-09-30 David Carlton <carlton@math.stanford.edu>
2532 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2533 * ppc-sysv-tdep.c: #include "gdb_string.h".
2534 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2537 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2539 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2540 "vrsave"'s register number.
2542 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2544 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2545 use frame_unwind_signed_register to obtain the PC.
2546 (mips_frame_chain): Handle a generic dummy frame.
2547 (mips_init_extra_frame_info): When a generic dummy frame, don't
2548 re-compute the frame base.
2549 (mips_pop_frame): Handle generic dummy frames.
2550 (mips_gdbarch_init): When generic dummy frames, set
2551 use_generic_dummy_frames, push_dummy_frame to
2552 generic_push_dummy_frame, pc_in_call_dummy to
2553 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2554 generic_save_dummy_frame_tos.
2556 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2558 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2559 against TOP when TOP was explictly set.
2560 (generic_push_dummy_frame): Set TOP to zero.
2562 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2564 * event-loop.c (start_event_loop): Rename variable 'result' to
2565 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2567 2002-09-30 Keith Seitz <keiths@redhat.com>
2569 * gdb-events.sh (selected_thread_changed): New event.
2570 * gdb-events.c: Regenerated.
2571 * gdb-events.h: Regenerated.
2573 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2575 * MAINTAINERS: Add self to Write After Approval list.
2577 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2579 * disasm.c: New file.
2580 * disasm.h: New file.
2581 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2582 (compare_lines): Ditto.
2583 (dump_insns): Ditto.
2584 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2586 (do_assembly_only): Ditto.
2587 (do_disassembly): Renamed to gdb_disassembly and moved to
2588 disasm.c. Sdded uiout argument.
2589 * Makefile.in: Add new files. Reorder SFILES list. Update
2590 dependencies. Include libgdb.a later in the insight executable.
2592 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2594 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2595 bfd/elf64-alpha-fbsd.c.
2597 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2599 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2602 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2604 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2606 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2608 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2609 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2610 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2611 (S_msg_sig_post_reply): Ditto.
2613 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2615 * sh-tdep.c (sh_use_struct_convention): Use definition according
2617 (sh_push_arguments): Store in register with correct endianess.
2618 (sh_default_store_return_value): Ditto.
2619 (sh_gdbarch_init): Set sizeof long double to 8.
2621 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2623 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2624 Fix some whitespace problems.
2626 2002-09-27 David Carlton <carlton@math.stanford.edu>
2628 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2629 (mcore-tdep.o): Ditto.
2630 (ns32k-tdep.o): Ditto.
2631 (ns32knbsd-tdep.o): Ditto.
2633 (vax-tdep.o): Ditto.
2634 * cris-tdep.c: #include "gdb_string.h"
2635 * mcore-tdep.c: Ditto.
2636 * ns32k-tdep.c: Ditto.
2637 * ns32knbsd-tdep.c: Ditto.
2639 * vax-tdep.c: Ditto.
2641 2002-09-27 David Carlton <carlton@math.stanford.edu>
2643 * config/djgpp/fnchange.lst: Add entries for
2644 gdb/testsuite/gdb.c++/m-static files.
2646 2002-09-27 Jim Wilson <wilson@redhat.com>
2648 * MAINTAINERS: Add myself to the Write After Approval list.
2650 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2652 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2655 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2657 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2660 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2662 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2663 (rs6000_struct_return_address): Delete variable.
2664 (rs6000_store_struct_return): Update.
2665 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2666 deprecated_extract_struct_value_address.
2667 (rs6000_frame_align): New function.
2668 (rs6000_gdbarch_init): Set frame_align.
2670 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2672 From Grace Sainsbury <graces@redhat.com>:
2673 * Makefile.in (gdbtk-main.o): New target.
2674 (gdb.o): New target.
2676 (main.o): Update dependencies.
2677 (gdb$(EXEEXT)): Add gdb.o.
2678 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2679 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2680 (SUBDIR_GDBTK_CLEAN): Set.
2681 (install-gdbtk): Install the insight binary.
2682 (uninstall-gdbtk): New target.
2683 (all-gdbtk, clean-gdbtk): New rule.
2684 * top.c (use_windows): Default to zero.
2685 * main.c: Include "main.h".
2687 (struct captured_main_args): Delete.
2688 (gdb_main): New function.
2692 2002-09-25 Andrew Cagney <cagney@redhat.com>
2694 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2695 (frame_map_regnum_to_name): New function.
2696 (frame_map_name_to_regnum): New function.
2697 * frame.h (frame_map_name_to_regnum): Declare.
2698 (frame_map_regnum_to_name): Declare.
2699 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2700 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2701 * parse.c: Do not include "builtin-regs.h".
2702 (target_map_name_to_register): Delete function.
2703 (write_dollar_variable): Use frame_map_name_to_regnum.
2704 * parser-defs.h (target_map_name_to_register): Delete declaration.
2705 * expprint.c: Include "frame.h".
2706 (print_subexp): Use frame_map_regnum_to_name.
2707 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2708 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2710 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2712 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2713 wasn't saved, and the next innermost frame is a dummy, return the
2714 dummy frame's link register.
2716 2002-09-24 Jim Blandy <jimb@redhat.com>
2718 Fix from Paul Breed:
2719 * main.c (captured_main): Add a `break' after the case for 'b'.
2721 2002-09-24 Keith Seitz <keiths@redhat.com>
2723 * varobj.c (c_type_of_child): Use get_target_type instead
2724 of TYPE_TARGET_TYPE.
2726 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2728 * source.c (get_current_or_default_source_symtab_and_line): Remove
2730 (set_default_source_symtab_and_line): New function. Attempts to
2731 determine a source file to list lines from if one is not currently
2733 (get_current_source_symtab_and_line): Initialize sal.pc and
2735 (set_current_source_symtab_and_line): Mark argument as const.
2736 * source.h: Update declarations and comments.
2737 * linespec.c (decode_line_1): Replace call to removed routine above.
2738 * stack.c (print_frame_info_base): Ditto.
2739 * cli/cli-cmds.c (edit_command): Ditto.
2740 (list_command): Ditto.
2742 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2744 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2745 sal.pc and sal.end fields.
2746 (get_current_or_default_source_symtab_and_line): Ditto.
2747 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2748 so we do not cause a new source symtab to be searched for (reverting an
2749 unintentional change from the 2002-09-20 patch).
2750 * scm-lang.c (scm_unpac): Ditto.
2752 2002-09-21 Andrew Cagney <cagney@redhat.com>
2754 * complaints.c (symfile_explanations): Remove new-line from
2755 ``isolated_message''.
2756 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2757 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2759 2002-09-20 Nick Clifton <nickc@redhat.com>
2761 * NEWS: Announce that V850EA ISA is no longer supported.
2762 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2764 2002-09-20 David Carlton <carlton@math.stanford.edu>
2766 * Makefile.in (c-lang.o): Correct dependencies.
2767 (utils.o): Gather dependencies.
2769 * c-lang.c: #include "gdb_string.h"
2771 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2773 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2774 * cli/cli-cmds.c (list_command): New function. Implements the new
2776 (_init_cli_cmds): Add new command definition.
2777 * gdb.1: Document edit command.
2778 * doc/gdb.texinfo: Document edit command.
2780 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2782 * source.c: Make global variables current_source_symtab and
2783 current_source_line static.
2784 (list_command): Moved to cli/cli-cmds.c.
2785 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2786 (get_first_line_listed): New accessor function.
2787 (get_lines_to_list): New accessor function.
2788 (get_current_source_symtab_and_line): New function. Retrieves the
2789 position in the source code that we consider current.
2790 (get_current_or_default_source_symtab_and_line): New function.
2791 Like the above but attempts to determine a default position if one
2792 is not currently defined.
2793 (set_current_source_symtab_and_line): New function. Sets the source
2794 code position considered current and returns the previously set one.
2795 (clear_current_source_symtab_and_line): Reset stored information about
2796 a current source line.
2797 (_initialize_source): Remove registration for the "list" command and
2799 * source.h: Add declarations for the new functions above.
2800 * symtab.h: Remove declarations for the global variables mentioned
2802 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2803 obtain current source line.
2804 * linespec.c (decode_line_1): Ditto.
2805 * macroscope.c (default_macro_scope): Ditto.
2806 * scm-lang.c (scm_unpac): Ditto.
2807 * stack.c (print_frame_info_base): Ditto.
2808 * symfile.c (clear_symtab_users): Ditto.
2809 * symtab.c (decode_line_spec): Ditto.
2810 * cli/cli-cmds.c (list_command): Moved here from source.c.
2811 (ambiguous_line_spec): Moved here from source.c.
2812 (_init_cli_cmds): Add definition for "list" and its alias.
2813 * Makefile.in: Update dependencies.
2815 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2817 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2818 with what gcc thinks is correct.
2820 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2822 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2823 multiple register push instruction.
2825 2002-09-19 Jim Blandy <jimb@redhat.com>
2827 Add support for distinct host and target character sets.
2828 * charset.c, charset.h: New files.
2829 * c-exp.y: #include "charset.h".
2830 (yylex): Convert character and string literals to the target
2831 character set, before returning them as the semantic value of the
2833 * c-lang.c: #include "charset.h".
2834 (c_emit_char): Use charset-specific methods to recognize
2835 characters with backslash escape forms, to decide which characters
2836 to print literally and which to print using numeric escape
2837 sequences, and to convert target characters to host characters
2839 * utils.c: #include "charset.h".
2840 (no_control_char_error): New function.
2841 (parse_escape): Use charset-specific methods to recognize
2842 backslash escapes, parse `control character' notation, and convert
2843 characters from the host character set to the target character set.
2844 * configure.in: Set the default host character set.
2845 Check where to find iconv, and what its argument types might be.
2846 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2847 * Makefile.in (SFILES): List charset.c.
2848 (COMMON_OBS): List charset.o.
2849 (charset.o): New rule.
2850 (charset_h): New header dependency variable.
2851 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2852 (LIBICONV): New variable, set by configure.
2853 (CLIBS): Include $(LIBICONV) here.
2854 * aclocal.m4, config.in, configure: Regenerated.
2856 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2858 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2861 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2863 * gdb_mbuild.sh: New file.
2865 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2867 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2869 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2871 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2872 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2873 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2874 valops.c, value.h: Revert previous change.
2876 2002-09-18 Michael Snyder <msnyder@redhat.com>
2878 Preliminary support for Objective-C:
2879 * defs.h (language_objc): New enum value.
2880 (puts_filtered_tabular): Declaration only, exported from utils.c.
2881 (skip_quoted): Delete, declared in completer.h.
2882 * c-exp.y: Include completer.h.
2885 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2886 New operator enum values.
2887 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2888 * language.c (binop_result_type): Handle language_objc case.
2889 (integral_type, character_type, string_type, boolean_type,
2890 structured_type, binop_type_check): Ditto.
2891 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2892 (struct objc_specific): Add to general_symbol_info.
2893 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2894 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2895 * parser-defs.h (struct objc_class_str): New struct type.
2896 (start_msglist, end_msglist, add_msglist): Declaration only,
2897 exported from objc-lang.c.
2898 * value.h (value_of_local, value_nsstring,
2899 call_function_by_hand_expecting_type): Exported from valops.c.
2900 * valops.c (find_function_addr): Export.
2901 (call_function_by_hand_expecting_type): New function.
2902 (value_of_local): New function.
2903 * symfile.c (init_filename_language_table): Add ".m" extension
2905 * utils.c (puts_filtered_tabular): New function.
2906 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2907 (set/show demangle): Extend help-string to refer to ObjC.
2908 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2909 * stabsread.c (symbol_reference_defined): Objective-C symbols
2910 may contain colons: make allowances when scanning stabs strings
2912 (objc_find_colon): New function.
2913 * printcmd.c (address_info): If language == objc then print
2914 "self" instead of "this".
2915 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2916 OP_NSSTRING, and OP_SELF.
2917 (prefixify_subexp): Ditto.
2918 * source.c (print_source_lines): Mention objc in comment.
2919 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2922 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2924 * complaints.h: Update copyright.
2925 (struct complaints): Declare.
2926 (struct complaint): Make `message' constant.
2927 (internal_complaint): Declare.
2928 (complaint): Declare.
2929 (complaint_root): Delete declaration.
2930 (symfile_complaints): Delete declaration.
2931 (struct complaints): Add opaque declaration.
2932 (clear_complaints): Add a complaints parameter.
2933 * complaints.c: Update copyright.
2934 (enum complaint_series): Define.
2935 (complaint_root): Delete.
2936 (struct complaints): Define.
2937 (complaint_sentinel, symfile_complaint_book): New variables.
2938 (symfile_explanations, symfile_complaints): New variables.
2940 (get_complaints): New function.
2941 (vcomplaint): New function.
2942 (complaint): New function.
2943 (internal_complaint): New function.
2944 (complain): Call vcomplain with symfile_complaint.
2945 (clear_complaints): Rewrite.
2946 (_initialize_complaints): Use add_setshow_command.
2947 * Makefile.in (complaints.o): Update dependencies.
2948 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2949 to call to clear_complaints.
2950 (new_symfile_objfile, reread_symbols): Ditto.
2951 (oldsyms_complaint): Delete.
2952 (empty_symtab_complaint, unknown_option_complaint): Delete.
2953 (free_named_symtabs): Use complaint instead of complain.
2955 2002-09-18 Michael Snyder <msnyder@redhat.com>
2957 Contributed by Apple Computer, Inc. Merged with current sources
2958 by Adam Fedor <fedor@doc.com> [cagney].
2960 * objc-lang.c: First clean-up round: comments, indentation.
2961 * objc-lang.h: Ditto.
2962 * objc-lang.y: Ditto.
2964 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2966 * maint.c (maintenance_internal_error): Print the parameter as the
2968 (maintenance_internal_warning): New function.
2969 (_initialize_maint_cmds): Add command `maint internal-warning'.
2971 * defs.h (internal_warning, internal_vwarning): Declare.
2972 * utils.c (struct internal_problem): Define.
2973 (internal_vproblem): New function.
2974 (internal_warning): New function.
2975 (internal_vwarning): New function.
2976 (internal_warning_problem, internal_error_problem): New variables.
2977 (internal_verror): Just call internal_vproblem.
2979 2002-09-18 Michael Snyder <msnyder@redhat.com>
2981 * objc-lang.c: New file, support for Objective-C.
2982 Preliminary check-in, not yet integrated into gdb.
2983 * objc-lang.h: New file.
2984 * objc-exp.y: New file.
2986 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2988 * infrun.c (signal_stop_update): Convert definition to ISO C.
2989 (signal_print_update): Ditto.
2990 (signal_pass_update): Ditto.
2991 * inflow.c (terminal_save_ours): Ditto.
2993 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2996 * config/djgpp/fnchange.lst: Handle name clashes between
2997 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3000 * i386-linux-tdep.h: Fix tipo.
3002 2002-09-18 Adam Fedor <fedor@gnu.org>
3004 * MAINTAINERS: Add myself to the Write After Approval list.
3006 2002-09-18 Jim Blandy <jimb@redhat.com>
3008 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3009 texthigh and textlow to reader-specific structs caused
3010 objfile_relocate to miss them. This is fixable, but the work that
3011 the change was supposed to prepare GDB for never got done anyway.
3013 2002-09-18 David Carlton <carlton@math.stanford.edu>
3015 * MAINTAINERS: Alphabetize Write After Approval list.
3017 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3020 * values.c (value_static_field): Call read_var_value.
3022 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3024 * valops.c (hand_function_call): Align the initial stack pointer
3025 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3026 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3028 * mips-tdep.c (mips_frame_align): New function.
3029 (mips_gdbarch_init): Set frame_align.
3030 * gdbarch.sh (FRAME_ALIGN): New method.
3031 * gdbarch.h, gdbarch.c: Re-generate.
3033 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3035 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3038 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3040 * NEWS: Mention that MIPS $fp behavior changed.
3041 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3042 reference to FP_REGNUM.
3043 (mipsnbsd_cannot_store_register): Ditto.
3044 * mips-linux-nat.c: Update copyright.
3045 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3046 (mips_linux_cannot_store_register): Ditto.
3047 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3048 * config/mips/tm-mips.h: Update copyright.
3049 (FP_REGNUM): Delete macro.
3050 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3051 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3052 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3053 (mips_r3041_reg_names, mips_r3051_reg_names)
3054 (mips_r3081_reg_names): Replace "fp" with "".
3057 2002-09-17 Theodore A. Roth <troth@verinet.com>
3059 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3060 generic_read_register_dummy() (PR gdb/703).
3061 (avr_push_return_address): #if 0 out unused vars.
3062 (avr_gdbarch_init): Enable use of avr_push_return_address().
3064 2002-09-17 Michael Snyder <msnyder@redhat.com>
3066 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3067 RTE will take care of it.
3069 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3071 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3072 invalid, return SP_REGNUM.
3074 2002-09-17 Michael Snyder <msnyder@redhat.com>
3076 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3077 point registers without sign extension.
3079 2002-09-17 Andrew Cagney <cagney@redhat.com>
3081 * blockframe.c (deprecated_read_register_dummy): Rename
3082 generic_read_register_dummy.
3083 * frame.c (frame_unwind_signed_register): New function.
3084 (frame_unwind_unsigned_register): New function.
3085 * frame.h (frame_unwind_signed_register): Declare.
3086 (frame_unwind_unsigned_register): Declare.
3087 (deprecated_read_register_dummy): Rename
3088 generic_read_register_dummy.
3090 * h8300-tdep.c (h8300_frame_chain): Update.
3091 (h8300_frame_saved_pc): Update.
3092 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3093 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3094 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3095 (s390_frame_chain): Update.
3096 * v850-tdep.c (v850_find_callers_reg): Update.
3097 (v850_frame_saved_pc): Update.
3098 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3099 (m32r_find_callers_reg): Update.
3100 (m32r_frame_saved_pc): Update.
3101 * sh-tdep.c (sh_find_callers_reg): Update.
3102 (sh64_get_saved_pr): Update.
3103 (sh_init_extra_frame_info): Update.
3104 (sh_init_extra_frame_info): Update.
3105 (sh64_init_extra_frame_info): Update.
3106 (sh64_init_extra_frame_info): Update.
3107 * mcore-tdep.c (mcore_find_callers_reg): Update.
3108 (mcore_frame_saved_pc): Update.
3109 (mcore_init_extra_frame_info): Update.
3110 * i386-tdep.c (i386_frame_saved_pc): Update.
3111 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3112 (ia64_init_extra_frame_info): Update.
3113 (ia64_init_extra_frame_info): Update.
3114 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3115 * cris-tdep.c (cris_init_extra_frame_info): Update.
3116 * avr-tdep.c (avr_frame_chain): Update.
3117 (avr_init_extra_frame_info): Update.
3118 (avr_frame_saved_pc): Update.
3119 * arm-tdep.c (arm_find_callers_reg): Update.
3120 (arm_init_extra_frame_info): Update.
3121 (arm_frame_saved_pc): Update.
3123 2002-09-17 Tom Tromey <tromey@redhat.com>
3125 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3128 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3130 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3131 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3133 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3136 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3138 * osfsolib.c: Remove file, replaced by solib-osf.c.
3139 * Makefile.in: Remove compilation rules for osfsolib.c.
3141 2002-09-16 David Carlton <carlton@math.stanford.edu>
3143 * cp-valprint.c (cp_print_class_method): Correct args to
3144 check_stub_method_group.
3146 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3148 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3149 `set architecture'. Unify naming convention of functions.
3150 (h8300_skip_prologue): Improve prologue analysis.
3151 (h8300_push_arguments): Rewritten to more closely match GCC's
3152 bizarre argument-passing behavior, along with the comment describing
3154 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3155 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3156 sim, remote-e7000.c, remote-hms.c and remote.c
3158 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3160 * i386-tdep.c (gdb_print_insn_i386): Removed.
3161 (i386_print_insn): New function.
3162 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3163 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3166 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3168 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3171 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3173 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3174 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3175 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3177 2002-09-13 Christopher Faylor <cgf@redhat.com>
3179 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3181 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3183 * gdbtypes.c (check_stub_method): Make static.
3184 (check_stub_method_group): New function.
3185 * gdbtypes.h: Update prototypes.
3186 * cp-support.c: New file.
3187 * cp-support.h: New file.
3189 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3190 (update_method_name_from_physname): New function.
3191 (read_member_functions): Correct method names for operators
3192 and v3 constructors/destructors. Separate v2 constructors and
3194 * Makefile.in (stabsread.o): Update dependencies.
3195 (SFILES): Add cp-support.c.
3196 (COMMON_OBS): Add cp-support.o.
3197 (cp_support_h, cp-support.o): Add.
3199 * cp-valprint.c (cp_print_class_method): Call
3200 check_stub_method_group instead of check_stub_method. Remove
3202 * p-valprint.c (pascal_object_print_class_method): Likewise.
3203 * valops.c (search_struct_method): Likewise.
3204 (find_method_list, value_struct_elt_for_reference): Likewise.
3206 2002-09-13 Andrew Cagney <cagney@redhat.com>
3208 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3209 * gdbarch.h, gdbarch.c: Regenerate.
3211 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3213 * frame.c (find_saved_register): Delete function.
3214 * frame.h (find_saved_register): Delete declaration.
3217 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3219 * mips-tdep.c (read_next_frame_reg): Re-hack using
3220 frame_register_unwind.
3222 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3224 * mips-tdep.c (mips_get_saved_register): Re-hack using
3225 frame_register_unwind.
3227 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3229 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3230 vector. Will be useful for Interix.
3231 * gdbarch.h, gdbarch.c: Regenerate.
3233 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3234 name of the malloc function by NAME_OF_MALLOC.
3236 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3238 * value.h (find_function_in_inferior): Add const keyword to
3239 one of the parameters. Allows us to invoke this function with
3241 * valops.c (find_function_in_inferior): Likewise.
3243 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3245 * exec.c (xfer_memory): Fix compilation warning with old versions
3247 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3249 2002-09-12 David Carlton <carlton@math.stanford.edu>
3251 * symtab.h: Run through gdb_indent.h.
3252 Add 2002 to Copyright year list.
3254 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3256 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3258 * MAINTAINERS: Add myself to write after approval list.
3260 2002-09-11 J. Brobecker <brobecker@gnat.com>
3262 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3264 2002-09-11 J. Brobecker <brobecker@gnat.com>
3266 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3269 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3271 * procfs.c (do_detach): Clear current signal, not just fault.
3272 Corrects problem with breakpoint trap signal leaking to detached
3275 2002-09-10 Michael Snyder <msnyder@redhat.com>
3277 * buildsym.c (finish_block): Protect against null pointer.
3279 2002-09-10 Andrew Cagney <cagney@redhat.com>
3281 * infcmd.c (default_print_registers_info): Send all output to
3282 ``file'' instead of ``gdb_stdout''.
3284 2002-09-10 Michael Snyder <msnyder@redhat.com>
3286 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3287 LONGEST, and use signed register read (addresses are sign-
3290 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3292 * event-loop.c (gdb_do_one_event): Make public.
3293 * event-loop.h (gdb_do_one_event): Declare.
3295 2002-09-10 Jeff Law <law@redhat.com>
3297 * infttrace.c (child_resume): Simplify and rework to avoid
3300 2002-09-09 Fred Fish <fnf@intrinsity.com>
3302 * printcmd.c (print_scalar_formatted): "len" is the number of
3303 target bytes, NOT the number of target bits.
3305 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3307 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3308 * top.c (init_main): Set rl_terminal_name.
3310 2002-09-08 Aidan Skinner <aidan@velvet.net>
3312 * ada-lang.c (ada_array_bound, ada_type_match,
3313 _initialize_ada_language): Fix K&R definitions.
3314 * ada-tasks.c (get_current_task): Fix K&R definitions.
3315 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3317 2002-09-07 Christopher Faylor <cgf@redhat.com>
3319 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3322 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3324 * i386-tdep.c (i386_register_virtual_type,
3325 i386_register_convertible, i386_register_convert_to_virtual,
3326 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3327 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3328 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3329 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3330 Don't set push_arguments twice.
3332 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3333 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3334 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3335 sigtramp_end to NULL.
3336 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3338 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3340 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3343 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3344 * gdbarch.h, gdbarch.c: Re-generate.
3345 * blockframe.c (find_pc_sect_partial_function): Convert to use
3346 SIGTRAMP_START_P predicate.
3348 2002-09-05 Michael Snyder <msnyder@redhat.com>
3350 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3351 generic_dummy_frame method and old method. Also distinguish
3352 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3353 (arm_extract_return_value): Use new regcache method.
3355 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3356 adjustment that doesn't conform to the ABI.
3357 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3358 saved regcache, not from current regcache.
3360 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3362 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3365 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3367 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3368 if arm_apcs_32 is false.
3370 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3372 GDB 5.3 branch created.
3374 2002-09-03 Theodore A. Roth <troth@verinet.com>
3376 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3377 generic_unwind_get_saved_register.
3379 2002-09-03 David Carlton <carlton@math.stanford.edu>
3381 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3382 argument (PR gdb/653). Update call to smash_to_method_type.
3383 (read_structure_scope): Update call to dwarf2_add_member_fn.
3385 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3387 * x86-64-linux-tdep.c: Include gdb_string.h
3388 * x86-64-linux-nat.c: Ditto.
3390 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3392 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3393 when YYDEBUG is set to 1.
3394 * c-exp.y: Likewise.
3395 * f-exp.y: Likewise.
3396 * jv-exp.y: Likewise.
3397 * m2-exp.y: Likewise.
3398 * p-exp.y: Likewise.
3400 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3402 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3404 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3405 solib_svr4_fetch_link_map_offsets to
3406 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3407 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3408 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3409 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3410 solib-svr4.o, and solib-legacy.o.
3411 * config/i386/tm-nbsd.h: Include solib.h.
3413 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3415 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3416 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3417 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3418 comment noting that this needs its own target configuration.
3419 * config/i386/nbsd.mt: New file.
3420 * config/i386/nbsdaout.mt: Remove.
3421 * config/i386/nbsdelf.mt: Ditto.
3422 * config/i386/tm-nbsdaout.h: Ditto.
3424 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3426 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3427 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3428 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3430 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3431 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3432 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3434 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3436 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3437 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3438 * i386-tdep.h (i386bsd_init_abi): New prototype.
3439 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3440 function declaration.
3441 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3442 for NetBSD-a.out or NetBSD-ELF.
3443 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3444 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3445 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3446 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3448 (i386nbsd_pc_in_sigtramp): New function.
3449 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3450 i386nbsd_pc_in_sigtramp.
3451 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3452 and i386nbsdelf_init_abi OS ABI handlers.
3453 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3454 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3456 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3458 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3459 registers if the target really has them.
3461 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3463 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3466 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3468 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3470 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3471 (alphanbsd_skip_sigtramp_frame): New functions.
3472 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3473 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3474 to alphanbsd_sigcontext_addr.
3476 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3478 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3480 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3481 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3482 nbsd_pc_in_sigtramp.
3483 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3484 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3485 * nbsd-tdep.c: Include gdb_string.h.
3486 (nbsd_pc_in_sigtramp): New function.
3487 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3488 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3489 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3490 ppcnbsd_pc_in_sigtramp.
3491 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3492 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3493 shnbsd_pc_in_sigtramp.
3494 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3495 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3496 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3498 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3500 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3501 watchpoints to NULL.
3502 (insert_breakpoints): set val field of watchpoints if NULL.
3505 2002-08-29 Jim Blandy <jimb@redhat.com>
3507 * symtab.c (lookup_symbol_aux): In the cases where we find a
3508 minimal symbol of an appropriate name and use its address to
3509 select a symtab to read and search, use `name' (as passed to us)
3510 as the demangled name when searching the symtab's global and
3511 static blocks, not the minsym's name.
3513 2002-08-29 Keith Seitz <keiths@redhat.com>
3515 * stack.c (print_frame_info_base): Always set current_source_symtab
3516 and current_source_line.
3518 2002-08-29 Donn Terry <donnte@microsoft.com>
3520 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3522 2002-08-28 Keith Seitz <keiths@redhat.com>
3524 * stack.c (select_frame): Add FIXME concerning selected-frame
3526 (select_frame_command): Send selected-frame-level-changed
3527 event notification, but only if the level actually changed.
3528 (up_silently_base): Add selected-frame-level-changed event
3530 (down_silently_base): Likewise.
3532 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3534 * Makefile.in: Update dependencies for all gdb/*.c files.
3536 2002-08-27 Tom Tromey <tromey@redhat.com>
3538 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3539 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3540 Update dependencies.
3541 * i387-tdep.c: Include gdb_string.h.
3542 * osabi.c: Likewise.
3543 * i386-linux-nat.c: Likewise.
3544 * lin-lwp.c: Likewise.
3545 * ax-gdb.c: Likewise.
3546 * signals/signals.c: Likewise.
3547 * jv-valprint.c: Likewise.
3548 * p-lang.c: Likewise.
3549 * c-valprint.c: Likewise.
3550 * cp-abi.c: Likewise.
3552 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3554 * cli/cli-script.h (copy_command_lines): Export.
3555 * breakpoint.c: Include cli/cli-script.h.
3556 * Makefile.in (breakpoint.o): Update dependencies.
3558 2002-08-26 Michael Snyder <msnyder@redhat.com>
3560 * breakpoint.c (insert_breakpoints): Protect all references
3561 to 'process_warning'. Shorten long lines.
3563 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3565 * cli/cli-script.c (copy_command_lines): New function.
3566 * defs.h (copy_command_lines): Export.
3567 * testsuite/gdb.base/commands.exp: New tests for commands
3568 attached to a temporary breakpoint, and for commands that
3569 delete the breakpoint they are attached to.
3571 2002-08-26 Michael Snyder <msnyder@redhat.com>
3573 * breakpoint.c (bpstat_stop_status): Instead of copying the
3574 pointer to the breakpoint commands struct, make a new copy
3575 of the struct and point to that.
3576 (bpstat_clear): Free the commands struct.
3577 (bpstat_clear_actions): Free the commands struct.
3578 (bpstat_do_actions): Free the command actions. Also execute
3579 the local cleanups, instead of deleting them.
3580 (delete_breakpoint): Leave the commands field of the bpstat
3581 chain alone -- it will be freed later.
3583 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3585 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3586 deleted in 2002-08-20 commit. This function is still used by
3589 2002-08-26 Keith Seitz <keiths@redhat.com>
3591 * gdb-events.sh: Add selected-frame-level-changed event.
3592 * gdb-events.c: Regenerated.
3593 * gdb-events.h: Regenerated.
3595 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3598 * inflow.c (terminal_save_ours): New function to save terminal
3600 * inferior.h (terminal_save_ours): Declare.
3601 * target.c (debug_to_terminal_save_ours): New function.
3602 (cleanup_target): Defaults to_terminal_save_ours.
3603 (update_current_target): Inherit to_terminal_save_ours.
3604 (setup_target_debug): Set to_terminal_save_ours.
3605 * target.h (target_terminal_save_ours): New to save terminal settings.
3606 (target_ops): New member to_terminal_save_ours.
3607 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3608 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3609 * inftarg.c (init_child_ops): Likewise.
3610 * m3-nat.c (init_m3_ops): Likewise.
3611 * procfs.c (init_procfs_ops): Likewise.
3612 * wince.c (init_child_ops): Likewise.
3613 * win32-nat.c (init_child_ops): Likewise.
3614 * sol-thread.c (init_sol_thread_ops): Likewise.
3616 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3618 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3619 use regcache_* functions.
3620 (i386_gdbarch_init): Set store_return_value instead of
3621 deprecated_store_return_value.
3623 * regcache.c (regcache_raw_write_signed,
3624 regcache_raw_write_unsigned): New functions.
3625 * regcache.h (regcache_raw_write_signed,
3626 regcache_raw_write_unsigned): New prototypes.
3628 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3630 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3631 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3632 source file dependencies. Cleanup corresponding generator rules.
3634 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3636 * regcache.h (register_offset_hack): Declare.
3637 (regcache_cooked_read_using_offset_hack): Declare.
3638 (regcache_cooked_write_using_offset_hack): Declare.
3640 * regcache.c (register_offset_hack): New function.
3641 (regcache_cooked_read_using_offset_hack): New function.
3642 (regcache_cooked_write_using_offset_hack): New function.
3643 (regcache_dump): Check that the registers, according to their
3644 offset, are packed hard against each other.
3645 (cooked_xfer_using_offset_hack): New function.
3647 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3649 * regcache.c (struct regcache_descr): Add field register_type.
3650 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3652 (init_regcache_descr): Initialize register_type. Pass the descr
3653 to init_legacy_regcache_descr. Use register_type instead of
3654 REGISTER_VIRTUAL_TYPE.
3655 (register_type): New function.
3656 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3657 * regcache.h (register_type): Declare.
3659 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3661 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3662 instead of deprecated_store_return_value. Fix fallout from
3663 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3665 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3667 * regcache.c (max_register_size): New function.
3668 (init_legacy_regcache_descr): Ensure that max_register_size is
3669 large enough for REGISTER_VIRTUAL_SIZE.
3670 * regcache.h (max_register_size): Declare.
3672 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3674 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3676 (e500_extract_return_value): Change type of valbuf pointer to
3679 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3681 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3684 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3685 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3686 long long) to prevent compiler warning on 64-bit systems.
3688 2002-08-23 Andrew Cagney <cagney@redhat.com>
3690 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3691 (DEPRECATED_STORE_RETURN_VALUE): New method.
3692 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3693 * gdbarch.h, gdbarch.c: Re-generate.
3695 * values.c (set_return_value): Pass current_regcache to
3697 * arch-utils.h (legacy_store_return_value): Declare.
3698 * arch-utils.c (legacy_store_return_value): New function.
3699 (legacy_extract_return_value): Update parameters.
3701 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3703 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3704 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3705 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3706 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3707 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3708 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3709 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3710 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3711 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3712 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3714 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3715 * i386-tdep.c (i386_extract_return_value): Update.
3716 * arch-utils.c (legacy_extract_return_value): Update.
3717 * frv-tdep.c (frv_gdbarch_init): Update.
3718 * cris-tdep.c (cris_gdbarch_init): Update.
3719 * d10v-tdep.c (d10v_gdbarch_init): Update.
3720 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3721 * m68k-tdep.c (m68k_gdbarch_init): Update.
3722 * mcore-tdep.c (mcore_gdbarch_init): Update.
3723 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3724 * s390-tdep.c (s390_gdbarch_init): Update.
3725 * sparc-tdep.c (sparc_gdbarch_init): Update.
3726 * sh-tdep.c (sh_gdbarch_init): Update.
3727 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3728 * v850-tdep.c (v850_gdbarch_init): Update.
3729 * avr-tdep.c (avr_gdbarch_init): Update.
3730 * ia64-tdep.c (ia64_gdbarch_init): Update.
3731 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3732 * vax-tdep.c (vax_gdbarch_init): Update.
3733 * alpha-tdep.c (alpha_gdbarch_init): Update.
3734 * arm-tdep.c (arm_gdbarch_init): Update.
3735 * mips-tdep.c (mips_gdbarch_init): Update.
3736 * i386-tdep.c (i386_gdbarch_init): Update.
3738 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3740 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3741 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3743 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3745 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3748 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3750 * infrun.c (handle_inferior_event): Move a comment outside of a
3751 function call, in order to avoid indent reformatting this part
3752 of the code in an unreadable way.
3754 2002-08-23 Grace Sainsbury <graces@redhat.com>
3756 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3757 when breakpoints fail. Move general breakpoint error messages to
3759 * breakpoint.c (insert_breakpoints): Change warnings when
3760 breakpoints are nto inserted to specify the type. Remove call to
3761 memory_error when hardware breakpoints can't be inserted. Remove
3762 multiple calls to warning so all messages are sent to the user at
3764 (delete_breakpoints): Make insert error messsages more explicit.
3766 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3768 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3769 gdbserver/ChangeLog.
3771 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3773 * i386-tdep.c: Include "objfiles.h".
3774 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3775 skip_trampoline_code.
3776 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3777 (CPLUS_MARKER): Define to '.'.
3779 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3781 (linux_corefile_thread_callback): Increase args->num_notes.
3782 (linux_make_note_section): Initialize thread_args.num_notes, and
3783 use it to determine whether notes for any threads were created.
3785 2002-08-23 Donn Terry <donnte@microsoft.com>
3787 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3788 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3790 (write_with_trace): Conditionalize out the switch branch handling
3791 PCSHOLD if the corresponding macro is not defined. Likewise for
3792 PRSABORT and PRSTOP.
3793 This change will be needed by the Interix port.
3795 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3797 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3798 write_register wherever possible instead of manipulating the
3799 register bytes directly.
3800 Assign VALUE_CONTENTS to a variable and use that.
3801 The GPR numbers are now dependent on the architecture.
3803 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3805 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3807 (skip_prologue): Add support for BookE/e500 instructions.
3808 (e500_extract_return_value): New function.
3809 (frame_get_saved_regs): Add support for saving ev registers and
3811 (e500_store_return_value): New function.
3812 (rs6000_gdbarch_init): Move up default intializations of
3813 deprecated_extract_return_value and store_return_value. Overwrite
3814 init of store_return_value with e500 specific version.
3815 Set extract_return_value for e500.
3817 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3819 * blockframe.c (generic_call_dummy_register_unwind): Use
3820 regcache_cooked_read to catch cases in which the variable is
3821 stored in a pseudo register.
3823 2002-08-22 Andrew Cagney <cagney@redhat.com>
3825 * NEWS: Mention that the i960 has been made obsolete.
3826 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3828 (remote-nrom.o): Obsolete target.
3829 (remote-nindy.o, i960-tdep.o): Ditto.
3830 * remote-nrom.c: Make file obsolete.
3831 * remote-nindy.c, remote-vx960.c: Ditto.
3832 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3833 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3834 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3835 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3836 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3837 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3838 i960-*-vxworks* obsolete.
3839 * MAINTAINERS: Note that the i960 is obsolete.
3841 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3843 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3844 detach to allow reinitialization.
3846 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3848 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3851 2002-08-22 Jim Blandy <jimb@redhat.com>
3853 * coffread.c (coff_symfile_read): Don't try to read the line
3854 number table from disk if the image file doesn't have a symbol
3855 table; we'll never actually look at the info anyway, and Windows
3856 ships DLL's with bogus file offsets for the line number data.
3858 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3860 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3863 2002-08-21 Michael Snyder <msnyder@redhat.com>
3865 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3866 (MSYMBOL_SIZE): Replace macro with function.
3867 (DEFAULT_MIPS_TYPE): Delete unused macro.
3868 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3869 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3871 2002-08-21 Jim Blandy <jimb@redhat.com>
3873 * valops.c (value_cast): Simplify and correct logic for doing a
3874 static cast from a pointer to a base class to a pointer to a
3877 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3879 * infcmd.c (default_print_registers_info): Replace
3881 (registers_info): Use gdbarch_print_registers_info instead of
3883 * inferior.h (default_print_registers_info): Replace
3885 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3886 (DO_REGISTERS_INFO): Change to a predicate function.
3887 * gdbarch.h, gdbarch.c: Regenerate.
3889 2002-08-21 Keith Seitz <keiths@redhat.com>
3891 * gdb-events.sh: Add target-changed event.
3892 * gdb-events.c: Regenerated.
3893 * gdb-events.c: Regenerated.
3894 * valops.c (value_assign): Add target-changed event notification
3895 to inlval_register, lval_memory, and lval_reg_frame_relative.
3897 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3899 * NEWS: Add an entry regarding the improvement of the next/step
3900 operation on Alpha Tru64 multi-processor machines.
3902 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3904 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3906 * Makefile.in: Update all _h macro definitions.
3907 * Makefile.in (install-gdbtk): Move to install section.
3908 (rdi-share/libangsd.a): Move to end of file.
3910 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3912 * frame.c (frame_register_unwind): When a register, set addrp to
3913 the register's byte.
3915 2002-08-20 Michael Snyder <msnyder@redhat.com>
3917 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3918 used locally, so move them from the target machine header to here.
3919 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3920 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3922 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3924 2002-08-20 Andrew Cagney <cagney@redhat.com>
3926 * NEWS: Mention that the Apollo line was made obsolete.
3927 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3928 m68*-hp-hpux* obsolete.
3929 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3930 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3931 * buildsym.c (make_blockvector): Make static.
3932 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3933 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3934 (ALLDEPFILES): Remove dstread.c.
3935 (dstread.o): Obsolete make rule.
3936 * dstread.c: Makefile obsolete.
3938 * config/m68k/hp300hpux.mt: Ditto.
3939 * config/m68k/hp300hpux.mh: Ditto.
3940 * config/m68k/hp300bsd.mt: Ditto.
3941 * config/m68k/hp300bsd.mh: Ditto.
3942 * config/m68k/apollo68b.mt: Ditto.
3943 * config/m68k/apollo68v.mh: Ditto.
3944 * config/m68k/apollo68b.mh: Ditto.
3946 2002-08-20 Michael Snyder <msnyder@redhat.com>
3948 * mips-tdep.c (mips_in_return_stub): Make static.
3949 (mips_gdbarch_init): Set in_solib_return_trampoline.
3950 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3952 2002-08-20 Michael Snyder <msnyder@redhat.com>
3954 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3955 * gdbarch.c, gdbarch.h: Regenerate.
3956 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3958 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3960 2002-08-20 Michael Snyder <msnyder@redhat.com>
3962 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3963 (mips_gdbarch_init): Set skip_trampoline_code,
3964 in_solib_call_trampoline.
3965 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3966 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3968 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3970 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3972 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3973 vector type for ev registers.
3974 (e500_pseudo_register_read): New function.
3975 (e500_pseudo_register_write): New function.
3976 (e500_dwarf2_reg_to_regnum): New function.
3977 (PPC_UISA_NOFP_SPRS): New macro.
3978 (PPC_EV_REGS): New macro.
3979 (PPC_GPRS_PSEUDO_REGS): New macro.
3980 (registers_e500): New register set for e500.
3981 (variants): Add e500 variant.
3982 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3983 before setting architectural dependent variations. Initialize ev
3984 registers numbers. Add case for e500 architecture. Set the
3985 number of pseudo registers.
3987 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3989 * rs6000-tdep.c: Clean up comments.
3991 2002-08-20 Andrew Cagney <cagney@redhat.com>
3993 * h8300-tdep.c: Re-indent file.
3995 2002-08-20 Jim Blandy <jimb@redhat.com>
3997 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4000 2002-08-20 Keith Seitz <keiths@redhat.com>
4002 * breakpoints.c (watch_command_1): Use internal breakpoint
4003 when setting a watchpoint_scope breakpoint.
4005 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4007 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4008 (build_builtin_type_vec64i): Ditto.
4009 (build_builtin_type_vec128): Ditto.
4010 (build_builtin_type_vec128i): Ditto.
4012 2002-08-19 Michael Snyder <msnyder@redhat.com>
4014 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4015 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4016 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4017 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4018 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4019 CALL_DUMMY_ADDRESS): Delete.
4020 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4021 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4022 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4023 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4024 push_return_address.
4025 (mips_register_raw_size, mips_eabi_use_struct_convention,
4026 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4027 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4028 mips_init_extra_frame_info, mips_eabi_push_arguments,
4029 mips_n32n64_push_arguments, mips_push_return_address,
4030 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4031 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4033 2002-08-19 Michael Snyder <msnyder@redhat.com>
4035 * mips-tdep.c (mips_frame_num_args): New function.
4036 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4037 frame_saved_pc, frame_args_address, frame_locals_address,
4038 frame_num_args, and frame_args_skip.
4039 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4040 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4041 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4042 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4044 2002-08-20 Michael Snyder <msnyder@redhat.com>
4046 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4047 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4048 * mips-tdep.c (mips_store_struct_return): New function.
4049 (mips_extract_struct_value_address): New function.
4050 (mips_gdbarch_init): Set store_struct_return and
4051 extract_struct_value_address.
4053 2002-08-20 David Carlton <carlton@math.stanford.edu>
4055 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4056 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4057 (read_file_scope): Check that line_header is nonzero before
4058 decoding macro information.
4060 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4062 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4063 flag the general-purpose registers as floating-point on targets
4064 that don't support the floating-point registers.
4066 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4068 * rs6000-tdep.c (altivec_register_p): Delete.
4069 (rs6000_do_altivec_registers): Delete.
4070 (rs6000_altivec_registers_info): Delete.
4071 (rs6000_do_registers_info): Delete.
4072 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4073 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4075 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4077 * infcmd.c (do_registers_info): Print vector registers in hex
4079 (print_vector_info): Check that printing registers
4081 (print_float_info): Ditto.
4083 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4085 * mips-tdep.c (mips_gdbarch_init): Update.
4086 (mips_o32_extract_return_value): Rewrite.
4087 (mips_o32_store_return_value): Rewrite.
4088 (mips_o32_xfer_return_value): New function.
4089 (mips_xfer_register): Tweak debug print message. Allow for
4090 buf_offset when dumping the value transfered.
4092 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4094 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4095 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4096 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4097 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4098 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4100 2002-08-14 Michael Snyder <msnyder@redhat.com>
4102 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4104 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4106 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4108 (P): New macro to define a register as a pseudo register.
4109 (R, R4, R8, R16, FR32, R64, R0): Updated.
4110 (struct variant): Add new fields for number of pseudo registers
4111 and number of total registers.
4112 (tot_num_registers): New macro replacing....
4113 (num_registers): ...deleted macro.
4114 (num_registers): New function.
4115 (num_pseudo_registers): New function.
4116 (variants): Update all variants to intialize new fields correctly.
4117 Postpone initialization of number of pseudo regs and real regs.
4118 (init_variants): New function.
4119 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4122 2002-08-19 David Carlton <carlton@math.stanford.edu>
4124 * valops.c (search_struct_field): Change error message to treat
4125 return value of 0 from value_static_field as meaning that field is
4127 (value_struct_elt_for_reference): Ditto.
4128 * values.c (value_static_field): Treat an unresolved location the
4129 same as a nonexistent symbol. Fix PR gdb/635.
4130 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4131 enclosed. Fix PR gdb/574.
4132 * MAINTAINERS: Add self to Write After Approval list.
4134 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4136 * mips-tdep.c (mips_xfer_register): New function.
4137 (mips_n32n64_extract_return_value): Rewrite.
4138 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4139 instead of deprecated_extract_return_value.
4141 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4143 * rs6000-tdep.c (TDEP): Delete macro.
4144 (branch_dest): Replace use of TDEP macro with its body.
4145 (rs6000_pop_frame): Ditto.
4146 (rs6000_push_arguments): Ditto.
4147 (rs6000_skip_trampoline_code): Ditto.
4148 (rs6000_frame_saved_pc): Ditto.
4149 (rs6000_frame_chain): Ditto.
4150 (rs6000_register_name): Ditto.
4151 (rs6000_register_byte): Ditto.
4152 (rs6000_register_raw_size): Ditto.
4153 (rs6000_register_virtual_type): Ditto.
4154 (rs6000_register_convertible): Ditto.
4155 (rs6000_convert_from_func_ptr_addr): Ditto.
4157 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4159 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4161 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4162 MIPS_LINUX_JB_ELEMENT_SIZE.
4163 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4164 for MAX_REGISTER_RAW_SIZE arrays.
4165 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4166 MIPS_LINUX_JB_ELEMENT_SIZE.
4168 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4170 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4172 2002-08-19 Aidan Skinner <aidan@velvet.net>
4174 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4175 ada-valprint.c ada-tasks.c.
4176 (YYFILES): Add ada-exp.y.
4177 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4178 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4179 (ada-exp.tab.o): New target.
4181 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4183 * regcache.c (regcache_xfer_part): New function.
4184 (regcache_raw_read_part): New function.
4185 (regcache_raw_write_part): New function.
4186 (regcache_cooked_read_part): New function.
4187 (regcache_cooked_write_part): New function.
4188 * regcache.h (regcache_raw_read_part): Declare.
4189 (regcache_raw_write_part): Declare.
4190 (regcache_cooked_read_part): Declare.
4191 (regcache_cooked_write_part): Declare.
4193 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4195 * remote.c (remote_open_1): Add async_p.
4196 (remote_async_open_1): Delete.
4197 (open_remote_target): Delete.
4198 (remote_open, extended_remote_open): Update calls to remote_open_1.
4199 (remote_async_open, extended_remote_async_open): Call
4200 remote_open_1 instead of remote_async_open_1.
4202 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4204 * blockframe.c: Fix a few coding standard violations.
4206 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4208 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4210 * config/i386/tm-i386sco5.h: ... here. File removed.
4211 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4213 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4214 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4215 (TM_FILE): Set to tm-i386.h.
4216 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4217 * config/i386/tm-i386v.h: Remove file.
4218 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4219 instead of "i386/tm-i386v.h".
4220 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4221 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4223 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4224 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4227 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4229 * config/i386/nm-i386v.h: Add protection against
4231 (i386_register_u_addr): Remove prototype.
4232 (register_u_addr): New prototype.
4233 (REGISTER_U_ADDR): Redefine accordingly.
4234 * i386v-nat.c: Improve several comments.
4235 (i386_register_u_addr): Change signature and rename to
4236 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4239 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4241 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4242 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4243 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4244 deprecated_extract_return_value.
4245 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4246 rename mips_o32o64_push_arguments.
4247 (mips_gdbarch_init): Update.
4248 (mips_extract_return_value): Delete.
4249 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4250 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4251 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4252 (mips_n32n64_extract_return_value): Clone
4253 mips_extract_return_value.
4254 (mips_store_return_value): Delete.
4255 (mips_o32_store_return_value): Clone mips_store_return_value.
4256 (mips_o64_store_return_value): Clone mips_store_return_value.
4257 (mips_eabi_store_return_value): Clone mips_store_return_value.
4258 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4260 2002-08-18 Aidan Skinner <aidan@velvet.net>
4262 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4263 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4265 2002-08-18 Aidan Skinner <aidan@velvet.net>
4267 * ada-lang.c: Run through gdb_indent.sh.
4268 * ada-lang.h: Run through gdb_indent.sh.
4269 * ada-tasks.c: Run through gdb_indent.sh.
4270 * ada-typeprint.c: Run through gdb_indent.sh.
4271 * ada-valprint.c: Run through gdb_indent.sh.
4273 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4275 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4278 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4280 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4282 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4283 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4285 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4286 write_register_gen instead of write_register_bytes.
4288 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4289 i[3456]-*-osf1mk* configurations have been made obsolete.
4290 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4291 i[3456]86-*-osf1mk* hosts obsolete.
4292 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4294 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4295 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4296 config/i386/i386m3.mt, config/i386/nm-m3.h,
4297 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4298 config/i386/i386mk.mh, config/i386/i386mk.mt,
4299 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4301 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4302 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4303 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4305 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4307 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4308 (hppa_value_returned_from_stack): Declare.
4309 (hppa_extract_return_value): Declare.
4310 * config/pa/hppa.mt: New file.
4311 * configure.tgt: Recognize hppa*-*-*.
4312 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4314 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4316 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4319 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4321 * top.c (gdb_rl_operate_and_get_next): Make sure
4322 operate-and-get-next functions correctly even when the history
4323 list is completely filled.
4325 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4327 * MAINTAINERS (Target Instruction Set Architectures): Rename
4328 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4329 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4330 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4331 already listed under Host/Native.
4333 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4334 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4337 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4339 * config/ia64/ia64.mt: New file.
4340 * config/alpha/alpha.mt: New file.
4341 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4342 ia64-linux-gnu. Mention that ia64-elf is broken.
4343 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4345 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4347 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4348 generic_func_frame_valid instead of func_frame_valid.
4350 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4352 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4353 procfs appears to be broken when debugging on multi-processor
4354 machines. So enable software single stepping in order to avoid
4355 using the procfs interface to do next/step operations, using
4356 internal breakpoints instead.
4358 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4359 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4360 make this pc address equal to the value it would have if the
4361 system stepping capability was used. Also set a new flag used
4362 to ensure that we don't readjust the PC one more time later.
4364 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4365 address by DECR_PC_AFTER_BREAK when software single step is
4366 in use for this architecture, as this has already been taken
4367 care of in handle_inferior_event().
4369 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4371 * infrun.c (handle_inferior_event): Minor reformatting, to make
4372 a rather long condition expression easier to read.
4374 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4376 * Makefile.in (gdbtk.o): Move to end of file.
4377 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4378 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4379 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4380 (gdbtk-wrapper.o, gdbres.o): Ditto.
4382 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4384 * Makefile.in (copying.o): Separate out compile rule.
4385 (hpux-thread.o, procfs.o, signals.o): Ditto.
4386 (v850ice.o, z8k-tdep.o): Ditto.
4387 (tui-file.o): Move to TUI section.
4388 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4389 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4391 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4393 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4394 skip_trampoline_code, for better namespace-proofing.
4396 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4398 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4400 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4402 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4404 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4405 signal, check whether we hit a breakpoint before checking for a
4406 single step breakpoint. Otherwise, GDB fails to notice that a
4407 breakpoint has been hit when stepping onto a breakpoint.
4409 2002-08-16 Keith Seitz <keiths@redhat.com>
4411 * gdb-events.sh (clear_gdb_event_hooks): New function.
4412 * gdb-events.c: Regenerate.
4413 * gdb-events.h: Regenerate.
4415 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4417 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4418 not_a_sw_breakpoint.
4419 * breakpoint.h (bpstat_stop_status): Add parameter names.
4421 2002-08-16 Grace Sainsbury <graces@redhat.com>
4423 * remote.c (remote_insert_hw_breakpoint)
4424 (remote_remove_hw_breakpoint): Fix calculation of length field
4427 2002-08-15 Michael Snyder <msnyder@redhat.com>
4429 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4430 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4431 (supply_fpregset): Ditto.
4433 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4434 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4435 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4436 (TARGET_READ_SP): Delete.
4437 (DO_REGISTERS_INFO): Delete.
4438 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4440 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4441 from macros to functions.
4443 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4444 (mips_register_convertible, mips_register_convert_to_virtual,
4445 mips_register_convert_to_raw): Make static.
4446 (mips_read_sp): New function.
4447 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4448 (mips_do_registers_info): Make static.
4449 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4450 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4451 (mips_register_convert_from_type, mips_register_convert_to_type):
4453 (mips_gdbarch_init): Set up function_start_offset,
4454 register_virtual_size, pc_in_sigtramp.
4456 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4458 * infcmd.c (vector_info): New function.
4459 (_initialize_infcmd): Add command "info vector".
4460 (print_vector_info): New function.
4462 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4463 * gdbarch.h, gdbarch.c: Regenerate.
4465 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4467 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4468 ``print_all''. Only print vector registers when ``print_all''.
4470 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4472 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4473 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4475 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4476 Add `args' parameter.
4477 * gdbarch.h, gdbarch.c: Regenerate.
4479 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4481 * infcmd.c (float_info): Call print_float_info.
4482 (print_float_info): New function. By default, print the
4483 floating-point registers.
4485 * arch-utils.h (default_print_float_info): Delete declaration.
4486 * arch-utils.c (default_print_float_info): Delete function.
4488 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4490 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4493 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4496 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4497 * configure.host: Make i[3456]86-*-aix host obsolete.
4498 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4499 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4500 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4501 config/i386/xm-i386aix.h: Make files obsolete.
4502 * i386aix-nat.c: Make file obsolete.
4503 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4504 (i386aix-nat.o): Make target obsolete.
4506 * config/i386/nm-gnu.h: Removed.
4507 * config/i386/nm-i386gnu.h: New file.
4508 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4509 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4511 * config/i386/tm-i386gnu.h: ... here. Removed.
4512 * config/i386/xm-i386gnu.h: Removed.
4513 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4514 (NAT_FILE): Set to nm-i386gnu.h.
4515 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4516 * i386-tdep.c: New file.
4517 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4518 (i386gnu-tdep.o): Specify dependencies.
4520 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4522 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4523 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4524 Adjust a few comments to reflect reality a bit closer.
4525 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4526 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4527 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4528 target_insert_watchpoint, target_remove_watchpoint):
4530 * config/i386/nm-i386sco5.h: ... here.
4531 (kernel_u_size): Add prototype. Improve a few comments and add
4532 protection against multiple inclusion.
4534 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4537 * uw-thread.c (SP_ARG0): Define if not already defined.
4538 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4540 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4542 * config/i386/tm-i386.h: Don't include "regcache.h".
4544 * i387-tdep.h (i387_print_float_info): New prototype.
4545 * i387-tdep.c (print_i387_value, print_i387_ext,
4546 print_i387_status_word, print_i387_control_word): Add `struct
4547 ui_file *' argument and use it for output.
4548 (i387_print_float_info): Renamed from i387_float_info. Add
4549 `struct gdbarch *' and `struct ui_file *' arguments and use the
4551 * i386-tdep.c: Include "i387-tdep.h".
4552 (i386_gdbarch_init): Set print_float_info.
4553 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4554 (FLOAT_INFO): Remove define.
4556 2002-08-13 Michael Snyder <msnyder@redhat.com>
4558 * mips-tdep.c (mips_push_arguments): Rename to
4559 mips_eabi_push_arguments, and tune for EABI.
4560 (MIPS_REGS_HAVE_HOME_P): Delete.
4561 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4562 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4563 Delete references to mips_regs_have_home_p.
4565 2002-08-14 Keith Seitz <keiths@redhat.com>
4567 * Makefile.in (install-gdbtk): Create insight plugin directory.
4568 Install plugins.tcl file.
4570 2002-08-14 Keith Seitz <keiths@redhat.com>
4572 * configure.in: Move SUBDIRS to near top of the file so that
4573 --enable options may add things to it.
4574 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4575 * configure: Regenerate.
4577 2002-08-13 Michael Snyder <msnyder@redhat.com>
4579 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4580 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4581 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4583 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4585 * vax-tdep.c (vax_get_saved_register): Delete function.
4586 (vax_gdbarch_init): Update.
4587 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4588 (ns32k_gdbarch_init): Update.
4589 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4590 (alpha_gdbarch_init): Update.
4592 2002-08-13 Andrew Cagney <cagney@redhat.com>
4594 * regcache.c (init_regcache_descr): Overallocate the
4595 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4596 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4598 (set_register_cached): Add range checking assertions. Use
4601 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4603 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4604 numbers for MMX registers.
4606 2002-08-13 Andrew Cagney <cagney@redhat.com>
4608 * i386-tdep.c (i386_gdbarch_init): Use
4609 generic_unwind_get_saved_register.
4611 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4613 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4614 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4616 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4617 Delete. Add comment regarding this now-deleted target method.
4619 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4621 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4622 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4623 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4624 real PC and the page number (if it's within the memory bank window).
4625 (m68hc11_pseudo_register_write): Likewise when saving.
4626 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4627 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4628 (m68hc11_register_raw_size): And use 32-bit for it.
4629 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4630 16K memory bank is used by the prog; also use the virtual pc.
4632 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4634 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4635 (m68hc11_gdbarch_init): Install it in gdbarch.
4636 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4637 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4638 (MSYMBOL_SIZE): New for documentation.
4639 (insn_return_kind): Enum to specify how a function returns.
4640 (frame_extra_info): Cleanup and record the return mode.
4641 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4642 register in address computation.
4643 (m68hc11_get_return_insn): New to obtain the return instruction used
4645 (m68hc11_frame_init_saved_regs): Take into account the return
4646 instruction used by the function for far and interrupt functions.
4647 (m68hc11_init_extra_frame_info): Take into account page register.
4648 (m68hc11_frame_args_address): Adjust according to the return mode.
4649 (show_regs): Print page register only when it's used.
4651 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4653 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4654 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4655 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4657 (m68hc11_register_raw_size): Likewise.
4659 2002-08-13 Andrew Cagney <cagney@redhat.com>
4661 * i386-tdep.c (i386_register_name): Handle mmx registers.
4662 (mmx_regnum_p): New function.
4663 (i386_mmx_names): New array.
4664 (mmx_num_regs): New variable.
4665 (i386_pseudo_register_read): New function.
4666 (i386_pseudo_register_write): New function.
4667 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4669 * regcache.c (regcache_raw_read_unsigned): New function.
4670 (regcache_raw_read_signed): New function.
4671 * regcache.h (regcache_raw_read_unsigned): Declare.
4672 (regcache_raw_read_signed): Declare.
4674 2002-08-13 Andrew Cagney <cagney@redhat.com>
4676 * regcache.c (regcache_raw_read_as_address): Delete function.
4677 (regcache_cooked_read_signed): New function.
4678 (regcache_cooked_read_unsigned): New function.
4679 * regcache.h (regcache_cooked_read_signed): Declare.
4680 (regcache_cooked_read_unsigned): Declare.
4681 (regcache_raw_read_as_address): Delete declaration.
4683 * blockframe.c (generic_read_register_dummy): Use
4684 regcache_cooked_read_unsigned.
4685 * i386-tdep.c (i386_extract_struct_value_address): Use
4686 regcache_cooked_read_unsigned.
4688 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4691 double sizes according to ELF ABI flags.
4692 (gdbarch_tdep): Record elf_flags.
4694 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4696 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4697 (m6812_prolog): They can appear in 68HC12 function prologue.
4698 (m68hc11_frame_chain): Cleanup.
4700 2002-08-12 Andrew Cagney <cagney@redhat.com>
4702 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4704 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4705 (i386_linux_register_raw_size): Delete function.
4706 (i386_linux_init_abi): Update.
4707 * i386-tdep.c (i386_register_raw_size): Delete function.
4708 (i386_register_byte): Delete function.
4709 (i386_gdbarch_init): Update.
4710 (i386_register_size): Delete array.
4711 (i386_register_offset): Delete array.
4713 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4714 (REGISTER_RAW_SIZE): Delete macro.
4715 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4716 (REGISTER_BYTE): Delete macro.
4718 2002-08-11 Aidan Skinner <aidan@velvet.net>
4720 * ada-lang.c (ada_lookup_partial_symbol)
4721 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4722 prototype names so that grep ^func works properly.
4724 * ada-lang.c (ada_array_element_type)
4725 (ada_lookup_partial_symbol): Fix typos in parameter list.
4727 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4728 Fix prototype names so that grep ^func works properly.
4730 2002-08-10 Andrew Cagney <cagney@redhat.com>
4731 Elena Zannoni <ezannoni@redhat.com>
4732 Martin M. Hunt <hunt@redhat.com>
4734 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4735 (build_builtin_type_vec128i): Set the vector bit.
4736 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4737 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4738 (build_builtin_type_vec64): New function.
4739 (build_builtin_type_vec64i): New function.
4740 (build_gdbtypes): Initialize builtin_type_vec64 and
4741 builtin_type_vec64i.
4743 2002-08-09 Andrew Cagney <cagney@redhat.com>
4745 * regcache.c (regcache_dump): Compare the register offset
4747 * arch-utils.c (generic_register_byte): New function.
4748 * arch-utils.h (generic_register_byte): Declare.
4749 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4750 * gdbarch.h, gdbarch.c: Regenerate.
4752 2002-08-09 Andrew Cagney <cagney@redhat.com>
4754 * regcache.c: Include "gdbcmd.h"
4755 (_initialize_regcache): Add commands "maintenance print
4756 registers", "maintenance print raw-registers" and "maintenance
4757 print cooked-registers".
4758 (enum regcache_dump_what): Define.
4759 (dump_endian_bytes): New function.
4760 (regcache_dump): New function.
4761 (regcache_print): New function.
4762 (maintenance_print_registers): New function.
4763 (maintenance_print_raw_registers): New function.
4764 (maintenance_print_cooked_registers): New function.
4765 * Makefile.in (regcache.o): Update dependencies.
4767 2002-08-09 Michael Snyder <msnyder@redhat.com>
4769 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4770 (mips_push_arguments): Correct some comments. Use paddr_nz
4771 for printing addresses in debug output. Replace static
4772 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4773 (mips_n32n64_push_arguments): New function, cloned from
4774 mips_push_arguments and tuned for the n32/n64 ABI.
4775 (mips_push_register): Buffer needs dynamic allocation.
4776 (mips_print_register): Ditto.
4777 (do_gp_register_row): Ditto.
4778 (mips_store_return_value): Ditto.
4779 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4781 2002-08-09 Don Howard <dhoward@redhat.com>
4783 * memattr.c (mem_info_command): Print special case of upper bound
4784 as max CORE_ADDR + 1.
4786 2002-08-08 Michael Snyder <msnyder@redhat.com>
4788 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4789 returns structs by ref if they're too big to fit in two registers.
4791 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4793 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4795 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4796 mips_find_saved_regs().
4797 (mips_pop_frame): Likewise.
4799 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4801 * blockframe.c (frame_saved_regs_register_unwind): Revise
4802 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4805 2002-08-09 Grace Sainsbury <graces@redhat.com>
4807 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4808 T-packets; the 'a' is not taken as a register number.
4809 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4810 (remote_stopped_data_address): New functions; add to target
4812 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4813 prototypes to match other implementations of this
4814 function. replace integer argument with pointer -- the length
4815 field in the Z-packet is the length of what is pointed to or 1 if
4816 pointer is null. Add to target vector.
4817 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4821 * remote.c (remote_wait): Add support to extract optional
4822 watchpoint information from T-packet. Ignore unrecognized
4823 optional info in T-packet.
4824 (remote_async_wait): Ditto.
4826 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4828 * cli/cli-dump.c: Change fopen modes to use binary open modes
4829 as defined in include/fopen-bin.h throughout.
4831 2002-08-08 Michael Snyder <msnyder@redhat.com>
4833 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4835 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4837 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4838 assertion failure by returning early after a warning.
4840 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4842 * mips-tdep.c (mips_find_saved_regs): Make static.
4843 (mips_frame_init_saved_regs): New function.
4844 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4845 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4846 (mips_find_saved_regs): Delete declaration.
4848 2002-08-08 Grace Sainsbury <graces@redhat.com>
4850 * remote.c (remote_wait, remote_async_wait): Change
4851 thread_num from int to ULONGEST.
4852 (unpack_varlen_hex): Change result parameter from
4853 int * to ULONGEST *.
4855 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4857 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4858 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4860 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4862 2002-08-08 Andrew Cagney <cagney@redhat.com>
4864 * gcore.c (override_derive_stack_segment): Delete variable.
4865 (preempt_derive_stack_segment): Delete function.
4866 (derive_stack_segment): Delete function.
4867 (default_derive_stack_segment): Renamed to derive_stack_segment.
4868 (override_derive_heap_segment): Delete variable.
4869 (preempt_derive_heap_segment): Delete function.
4870 (derive_heap_segment): Delete function.
4871 (default_derive_heap_segment): Rename to derive_heap_segment.
4873 2002-08-06 Michael Snyder <msnyder@redhat.com>
4875 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4876 * mips-tdep.c (mips_EABI_use_struct_convention,
4877 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4878 New functions. (mips_use_struct_convention): Delete.
4879 (mips_gdbarch_init): set use_gdbarch_convention.
4881 2002-08-06 Michael Snyder <msnyder@redhat.com>
4883 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4884 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4885 mips_o32_reg_struct_has_addr): New functions.
4886 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4888 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4890 * regcache.c (pseudo_register): Delete function.
4891 (fetch_register): Delete function.
4892 (store_register): Delete function.
4893 (regcache_raw_read, legacy_read_register_gen): Use
4894 target_fetch_registers instead of fetch_register.
4895 (legacy_write_register_gen, regcache_raw_write): Use
4896 target_store_register instead of store_register.
4897 (write_register_bytes): Ditto.
4899 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4900 (STORE_PSEUDO_REGISTER): Delete.
4901 * gdbarch.h, gdbarch.c: Regenerate.
4903 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4905 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4906 write dump file binary.
4908 2002-08-05 Michael Snyder <msnyder@redhat.com>
4910 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4911 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4912 (mips_gdbarch_init): Set N32 target to be mips64.
4914 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4916 * frame.c (find_saved_register): Break out of loop once saved
4917 register address is found. Don't mention sparc in loop comment
4920 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4922 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4923 mips_default_saved_regsize to 8.
4925 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4927 * gcore.c: Do not include <sys/procfs.h>.
4928 * Makefile.in (gcore.o): Update dependencies.
4930 2002-08-06 Andrew Cagney <cagney@redhat.com>
4932 * configure.tgt: Make arc-*-* obsolete.
4933 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4934 * MAINTAINERS: Make arc-elf obsolete.
4935 * arc-tdep.c: Make file obsolete.
4936 * config/arc/arc.mt: Ditto.
4937 * config/arc/tm-arc.h: Ditto.
4939 2002-08-05 Theodore A. Roth <troth@verinet.com>
4941 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4943 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4945 * mcore-tdep.c (mcore_gdbarch_init): Use
4946 generic_unwind_get_saved_register instead of
4947 generic_get_saved_register.
4948 * v850-tdep.c (v850_gdbarch_init): Ditto.
4949 * frv-tdep.c (frv_gdbarch_init): Ditto.
4950 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4951 * s390-tdep.c (s390_gdbarch_init): Ditto.
4952 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4953 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4954 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4956 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4958 * objfiles.h: Add missing #include "symfile.h"
4960 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4962 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4964 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4965 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4968 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4970 * NEWS: Cleanup and nitpick.
4972 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4974 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4976 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4978 * Makefile.in (gdbtk-bp.o): Update dependencies.
4979 (gdbtk-register.o): Ditto.
4980 (gdbtk-varobj.o): Ditto.
4982 2002-08-03 Andrew Cagney <cagney@redhat.com>
4984 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4985 m68hc11_fetch_pseudo_register.
4986 (m68hc11_pseudo_register_write): Replace
4987 m68hc11_store_pseudo_register.
4988 (m68hc11_gdbarch_init): Update.
4990 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4992 * gdbarch.sh: Include "gdb_string.h".
4993 * gdbarch.c: Regenerate.
4995 * regcache.c: Include "gdb_string.h".
4996 * ax-general.c: Ditto.
4998 * std-regs.c: Ditto.
4999 * fbsd-proc.c: Ditto.
5002 * Makefile.in (regcache.o): Update dependencies.
5003 (thread.o, gdbarch.o): Ditto.
5004 (ax-general.o, gdbarch.o): Ditto.
5005 (varobj.o, std-regs.o): Ditto.
5006 (fbsd-proc.o): Specify dependencies.
5008 2002-08-02 Andrew Cagney <cagney@redhat.com>
5010 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5012 (regcache_cooked_write): Ditto.
5014 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5016 * regcache.c (regcache_cooked_read): New function.
5017 (regcache_cooked_write): New function.
5018 (read_register_gen): Rewrite using regcache_cooked_read.
5019 (write_register_gen): Rewrite using regcache_cooked_write.
5021 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5024 2002-08-02 Andrew Cagney <cagney@redhat.com>
5026 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5027 Replace the architecture methods register_read and register_write.
5028 * gdbarch.h, gdbarch.c: Regenerate.
5029 * regcache.c (init_regcache_descr): Update.
5030 (read_register_gen): Update.
5031 (write_register_gen): Update.
5032 (supply_register): Update comment.
5034 * sh-tdep.c (sh_gdbarch_init): Update.
5035 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5036 `regcache' and `gdbarch' parameters. Make `buffer' a void
5037 pointer. Update code.
5038 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5039 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5040 void pointer. Update code.
5041 (sh64_register_write): Delete.
5042 (sh4_register_read): Delete.
5043 (sh64_register_read): Delete.
5044 (sh4_register_write): Delete.
5045 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5046 void pointer, `to' parameter a void pointer.
5047 (sh_sh64_register_convert_to_raw): Ditto.
5049 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5051 * mips-tdep.c (mips_register_virtual_type): Use architecture
5052 invariant return values.
5054 2002-08-01 Andrew Cagney <cagney@redhat.com>
5056 * linux-proc.c: Include "gdb_string.h".
5057 * Makefile.in (linux-proc.o): Update dependency list.
5059 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5061 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5064 2002-08-01 Grace Sainsbury <graces@redhat.com>
5066 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5067 to_insert_watchpoint, to_remove_watchpoint,
5068 to_stopped_by_watchpoint, to_stopped_data_address,
5069 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5070 target vecctor. Define their corresponding macros so they call
5073 * target.c: Add default and debug versions of for
5074 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5075 to_insert_watchpoint, to_remove_watchpoint,
5076 to_stopped_by_watchpoint, to_stopped_data_address,
5077 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5079 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5081 * mips-tdep.c (mips_register_virtual_type): New function.
5082 (mips_gdbarch_init): Register mips_register_virtual_type()
5083 with gdbarch machinery.
5084 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5085 this file instead of tm-bigmips.h.
5086 (MIPS_REGSIZE): Delete this macro.
5087 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5088 multiarch version in mips-tdep.c will be found.
5090 2002-08-01 Andrew Cagney <cagney@redhat.com>
5092 * NEWS: Menion that CHILL has been made obsolete.
5094 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5095 * stabsread.c (read_range_type): Ditto.
5096 * gdbtypes.h: Ditto.
5097 * language.c (binop_type_check): Ditto.
5098 (binop_result_type): Ditto.
5099 (integral_type): Ditto.
5100 (character_type): Ditto.
5101 (string_type): Ditto.
5102 (boolean_type): Ditto.
5103 (structured_type): Ditto.
5104 (lang_bool_type): Ditto.
5105 (binop_type_check): Ditto.
5106 * language.h (_LANG_chill): Ditto.
5107 * dwarfread.c (set_cu_language): Ditto.
5108 * dwarfread.c (CHILL_PRODUCER): Ditto.
5109 * dwarfread.c (handle_producer): Ditto.
5110 * expression.h (enum exp_opcode): Ditto.
5111 * eval.c: Ditto for comments.
5112 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5113 * expprint.c (print_subexp): Ditto.
5114 (print_subexp): Ditto.
5115 * valops.c (value_cast): Ditto.
5116 (search_struct_field): Ditto.
5117 * value.h (COERCE_VARYING_ARRAY): Ditto.
5118 * symfile.c (init_filename_language_table): Ditto.
5119 (add_psymbol_with_dem_name_to_list): Ditto.
5120 * valarith.c (value_binop): Ditto.
5122 * valops.c (value_slice): Ditto.
5123 * symtab.h (union language_specific): Ditto.
5124 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5125 (SYMBOL_DEMANGLED_NAME): Ditto.
5126 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5127 * defs.h (enum language): Ditto.
5128 * symtab.c (got_symtab): Ditto.
5129 * utils.c (fprintf_symbol_filtered): Ditto.
5131 * ch-typeprint.c: Make file obsolete.
5132 * ch-valprint.c: Make file obsolete.
5133 * ch-lang.h: Make file obsolete.
5134 * ch-exp.c: Make file obsolete.
5135 * ch-lang.c: Make file obsolete.
5137 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5139 (TARGET_FLAGS_TO_PASS): Ditto.
5140 (CHILLFLAGS): Obsolete.
5142 (CHILL_FOR_TARGET): Obsolete.
5143 (CHILL_LIB): Obsolete.
5144 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5146 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5147 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5149 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5152 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5154 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5155 This does not change anything at the moment, but will be helpful
5156 later when full Ada support is integrated.
5158 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5160 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5163 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5165 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5166 and save it in a local variable. Use variable in later test.
5168 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5170 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5171 test. (Thanks to Daniel Jacobowitz.)
5173 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5175 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5176 (mips_abi_strings): Add "n64".
5177 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5179 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5181 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5182 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5184 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5186 * utils.c (host_pointer_to_address, address_to_host_pointer):
5187 Use gdb_assert() instead of explicit call to internal_error().
5189 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5191 * Makefile.in (rs6000-nat.o): Update dependencies.
5193 From Nicholas Duffek:
5194 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5195 (aix-thread.o): New rule.
5196 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5197 * config/powerpc/aix432.mh: New file.
5199 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5201 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5202 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5203 (fetch_core_registers, ppc_linux_supply_gregset)
5204 (ppc_linux_supply_fpregset): New functions.
5205 (ppc_linux_regset_core_fns): New.
5206 (_initialize_ppc_linux_tdep): Call add_core_fns.
5207 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5208 and ppc_linux_supply_gregset.
5209 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5210 (supply_fpregset): Call ppc_linux_supply_fpregset.
5211 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5213 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5215 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5217 * symtab.c (lookup_symbol): Demangle before lowercasing.
5219 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5221 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5223 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5224 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5225 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5226 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5228 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5229 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5230 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5231 (avr-tdep.o, mon960-rom.o): Ditto.
5232 (aout_stabs_gnu_h): Define.
5233 (symtab_h): Remove $(gdb_obstack_h).
5235 2002-07-30 Jim Blandy <jimb@redhat.com>
5237 Patch from David Carlton <carlton@math.stanford.edu>:
5238 * gdbinit.in: Move the `dir' commands that add GDB's own source
5239 directory to the search path to the end, so that the `gdb' source
5240 directory will be searched first.
5242 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5244 * gdb_obstack.h: New file.
5245 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5246 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5247 * objfiles.h: Include "gdb_obstack.h".
5248 * Makefile.in (gdb_obstack_h): Define.
5249 (symtab_h): Add $(gdb_obstack_h).
5250 (objfiles_h): Add $(gdb_obstack_h).
5252 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5253 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5254 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5255 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5256 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5257 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5258 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5259 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5261 * Makefile.in (bcache.o): Update dependencies.
5262 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5263 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5264 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5265 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5266 (stabsread.o, symfile.o, symmisc.o): Ditto.
5267 (symtab.o, typeprint.o, macroexp.o): Ditto.
5268 (macrotab.o, mdebugread.o): Ditto.
5269 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5270 (coff_ecoff_h, aout_aout64_h): Define.
5271 (aout_stabs_gnu_h, libaout_h): Define.
5273 2002-07-29 Andrew Cagney <cagney@redhat.com>
5275 * regcache.c (struct regcache_descr): Rename nr_registers to
5276 nr_cooked_registers. Revise comments describing the structure
5278 (init_regcache_descr): Update.
5279 (init_legacy_regcache_descr): Update.
5280 (read_register_gen, write_register_gen): When a cooked register in
5281 the raw register range, directly access the value from the raw
5284 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5286 * z8k-tdep.c: Do not include "obstack.h".
5287 * h8300-tdep.c, h8500-tdep.c: Ditto.
5288 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5289 * valprint.c, v850-tdep.c: Ditto.
5290 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5291 * mn10200-tdep.c: Ditto.
5293 * Makefile.in (z8k-tdep.o): Update dependencies.
5294 (m68hc11-tdep.o, valprint.o): Ditto.
5295 (v850-tdep.o, d10v-tdep.o): Ditto.
5296 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5297 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5298 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5299 (sh_opc_h, gdb_sim_sh_h): Define.
5300 (elf_sh_h, elf_bfd_h): Define.
5301 (opcode_m68hc11_h): Define.
5302 (OPCODES_SRC, OPCODES_DIR): define.
5303 (OPCODES): Use $(OPCODES_DIR).
5304 (gdb_sim_d10v_h): Rename sim_d10v_h.
5305 (gdb_sim_arm_h): Rename sim_arm_h.
5307 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5309 * utils.c (host_pointer_to_address, address_to_host_pointer):
5310 Change internal_error() message to indicate function responsible
5313 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5315 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5316 calls to local_hex_string_custom().
5318 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5320 * irix5-nat.c: Move IRIX shared library support from here...
5321 * solib-irix.c: ...to here. Revised substantially to work with
5322 generic solib framework.
5324 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5325 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5326 * mips-irix-tdep.c: New file.
5328 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5329 (mips-irix-tdep.o, solib-irix.o): New rules.
5330 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5332 * config/mips/irix6.mt (TDEPFILES): Likewise.
5333 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5335 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5337 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5338 disabled (via ``#if 0'') includes.
5340 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5342 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5343 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5344 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5345 Add support for the fpscr register.
5346 * rs6000-nat.c (regmap, fetch_inferior_registers)
5347 (store_inferior_registers, fetch_core_registers): Likewise.
5349 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5351 * rs6000-nat.c (language.h): Include.
5352 (special_regs): Delete this array.
5353 (regmap): New function.
5354 (fetch_register, store_register): Use regmap() to map gdb
5355 register numbers to ptrace register numbers. Also, use
5356 outputs from regmap() to make decisions regarding type of
5357 ptrace() call to make. In particular, don't compare against
5358 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5359 (fetch_inferior_registers, store_inferior_registers): Where
5360 possible, obtain register numbers from tdep struct. Don't
5361 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5362 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5363 (LAST_UISA_SP_REGNUM): Delete.
5365 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5367 * rs6000-nat.c (ppc-tdep.h): Include.
5368 (fetch_registers, store_register, fetch_core_registers): Don't
5369 access registers[] directly. Instead, use supply_register() or
5370 regcache_collect() as appropriate.
5371 (find_toc_address): Format hex address with local_hex_string().
5373 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5375 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5378 2002-07-24 Tom Tromey <tromey@redhat.com>
5380 * jv-exp.y: Marked all strings with _().
5381 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5383 (MethodInvocation, CastExpression, parse_number, yyerror,
5384 java_type_from_name, push_expression_name, yylex): Typo fixes.
5386 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5388 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5389 (tee_file_flush, tee_file_write, tee_file_fputs)
5390 (tee_file_isatty): New.
5391 * ui-file.h (tee_file_new): Add prototype.
5393 2002-07-24 Aidan Skinner <aidan@velvet.net>
5395 * ada-lang.c: Change k&r style function definitions to prototyped
5397 * ada-typeprint.c: Change k&r style function definitions to prototyped
5399 * ada-valprint.c: Change k&r style function definitions to prototyped
5402 2002-07-24 Andrew Cagney <cagney@redhat.com>
5404 * README: Remove reference to remote-bug.
5405 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5407 (m88k-nat.o): Delete rule.
5408 (m88k-tdep.o): Delete rule.
5409 (remote-bug.o): Delete rule.
5410 * MAINTAINERS: Mark as obsolete.
5411 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5412 * m88k-tdep.c: Make file obsolete.
5413 * config/m88k/m88k.mh: Ditto.
5414 * config/m88k/delta88v4.mh: Ditto.
5415 * config/m88k/delta88v4.mt: Ditto.
5416 * config/m88k/delta88.mt: Ditto.
5417 * config/m88k/delta88.mh: Ditto.
5418 * remote-bug.c: Ditto.
5419 * config/m88k/tm-delta88.h: Ditto.
5420 * config/m88k/nm-delta88v4.h: Ditto.
5421 * config/m88k/xm-delta88.h: Ditto.
5422 * config/m88k/xm-dgux.h: Ditto.
5423 * config/m88k/tm-m88k.h: Ditto.
5424 * config/m88k/nm-m88k.h: Ditto.
5425 * config/m88k/tm-delta88v4.h: Ditto.
5426 * m88k-nat.c: Ditto.
5427 * cxux-nat.c: Ditto.
5428 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5429 and m88*-*-* obsolete.
5430 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5433 2002-07-24 Andrew Cagney <cagney@redhat.com>
5435 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5436 constant. Same for local pointer variables.
5437 (extract_signed_integer): Ditto.
5438 * defs.h (extract_unsigned_integer): Update.
5439 (extract_signed_integer): Update.
5441 2002-07-24 Andrew Cagney <cagney@redhat.com>
5443 * regcache.c (regcache_raw_write): Change buf parameter to a
5444 constant void pointer.
5445 (regcache_raw_read): Change buf parameter to a void pointer.
5446 (legacy_write_register_gen): Change myaddr parameter a constant
5448 (supply_register): Change val parameter to a const void pointer.
5449 * regcache.h (regcache_raw_write): Update declaration.
5450 (regcache_raw_read): Update declaration.
5451 (supply_register): Update declaration.
5453 2002-07-24 Tom Tromey <tromey@redhat.com>
5455 * defs.h (gdb_readline_wrapper): Declare.
5456 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5457 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5458 * top.c (gdb_readline_wrapper): New function.
5459 (command_line_input): Use it.
5461 2002-07-24 Andrew Cagney <cagney@redhat.com>
5463 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5464 regcache_read and regcache_write.
5465 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5466 * regcache.c: Update.
5467 * sh-tdep.c (sh64_push_arguments): Update comment.
5468 (sh_pseudo_register_read): Update.
5469 (sh_pseudo_register_write): Update.
5470 (sh4_register_read): Update.
5471 (sh4_register_write): Update.
5472 (sh64_pseudo_register_read): Update.
5473 (sh64_pseudo_register_write): Update.
5474 (sh64_register_read): Update.
5475 (sh64_register_write): Update.
5476 * i386-tdep.c (i386_extract_return_value): Update.
5477 (i386_extract_struct_value_address): Update.
5478 (i386_extract_return_value): Update.
5479 * blockframe.c (generic_read_register_dummy): Update.
5480 (generic_call_dummy_register_unwind): Update
5481 * infrun.c (write_inferior_status_register): Update.
5483 2002-07-23 Jim Blandy <jimb@redhat.com>
5485 * parser-defs.h (expression_context_pc): Make this extern.
5486 (Thanks to Michael Snyder.)
5488 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5490 GDB 5.2.1 released from 5.2 branch.
5491 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5492 * README: Update to mention 5.2.1.
5494 2002-07-23 Mark Salter <msalter@redhat.com>
5496 * remote.c (remote_read_bytes): Fix check for error.
5498 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5500 * aix-thread.c (language.h): Include.
5501 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5502 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5503 Print newlines at end of debug messages.
5504 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5505 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5507 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5509 * aix-thread.c (ppc-tdep.h): Include.
5510 (special_register_p): New function.
5511 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5512 (store_regs_user_thread): Use register number information from
5513 gdbarch_tdep struct instead of hardcoded offsets relative to
5514 FIRST_UISA_SP_REGNUM.
5515 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5516 special_register_p() instead of using FPLAST_REGNUM and
5517 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5518 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5519 will be MQ's register number.
5521 2002-07-22 Michael Snyder <msnyder@redhat.com>
5523 * aix-thread.c (ops): Rename to aix_thread_ops.
5524 (base_ops): Rename to base_target.
5525 (ops_attach): Rename to aix_thread_attach.
5526 (ops_detach): Rename to aix_thread_detach.
5527 (ops_resume): Rename to aix_thread_detach.
5528 (ops_wait): Rename to aix_thread_wait.
5529 (ops_kill): Rename to aix_thread_kill.
5530 (init_ops): Rename to init_aix_thread_ops.
5531 (ops_fetch_register): Rename to aix_thread_fetch_register.
5532 (ops_store_register): Rename to aix_thread_store_register.
5533 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5534 (ops_thread_alive): Rename to aix_thread_thread_alive.
5535 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5536 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5537 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5538 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5539 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5540 (store_regs_lib): Rename to store_regs_user_thread.
5541 (store_regs_kern): Rename to store_regs_kernel_thread.
5543 2002-07-22 Michael Snyder <msnyder@redhat.com>
5545 * aix-thread.c (ops_prepare_to_store): Eliminate.
5546 (init_ops): Don't initialize ops.prepare_to_store.
5547 (store_regs_kern): Pre-fetch register buffers from child,
5548 because some registers may not be in the cache. Copy
5549 regs from register cache only if they are cached.
5550 (store_regs_lib): Copy regs from register cache only
5552 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5553 fill_gprs64): Ditto.
5555 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5557 * aix-thread.c (gdb_assert.h): Include.
5558 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5559 register sizes (from register cache) match size of buffer holding
5561 (fill_sprs32): Change parameter types to match those in the ptrace()
5563 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5564 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5566 2002-07-22 Michael Snyder <msnyder@redhat.com>
5568 * aix-thread.c (supply_sprs64): Cosmetic change.
5569 (supply_sprs32): Cosmetic change.
5570 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5571 (fill_sprs64): Use regcache_collect instead of read_register.
5572 (store_regs_lib): Use regcache_collect instead of
5573 read_register. Use fill_sprs32 instead of fill_sprs64,
5574 if debugging a 32-bit architecture.
5575 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5576 out of the register cache, instead of passing a pointer into
5577 the register cache directly to ptrace. Use regcache_collect
5578 insteaad of read_register.
5579 (ops_prepare_to_store): Use target_read_registers instead
5580 of read_register_bytes.
5582 2002-07-20 Aidan Skinner <aidan@velvet.net>
5584 * MAINTAINERS: Add self under write after approval.
5586 2002-07-20 Aidan Skinner <aidan@velvet.net>
5588 * ada-tasks.c: Change k&r style function definitions to prototyped
5591 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5593 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5594 * x86-64-tdep.c: Include "objfiles.h".
5595 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5596 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5598 2002-07-17 Michal Ludvig <michal@suse.cz>
5600 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5601 (update_context): Initialise cfa variable.
5603 2002-07-17 Michael Snyder <msnyder@redhat.com>
5605 * aix-thread.c: Shorten some long lines.
5606 Bring comments into line with code spec.
5608 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5610 * infrun.c: Re-indent using gdb_indent.sh.
5612 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5614 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5615 Leave the indentation temporarily untouched, to minimize the diffs.
5617 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5619 * stabsread.c: Make os9k sections of the code obsolete,
5621 * stabsread.h: Make os9k sections of the code obsolete.
5623 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5625 * linux-low.c (regsets_store_inferior_registers): Add free()
5626 at the end of a loop to prevent memory leak.
5627 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5628 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5629 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5631 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5633 2002-07-17 Jim Blandy <jimb@redhat.com>
5635 * macrocmd.c (info_macro_command): Remove newline from error
5638 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5640 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5641 (sh_gdbarch_init): Use it for sh-dsp.
5643 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5645 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5646 64-bit DWARF2 format.
5648 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5650 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5651 <sys/proc.h> when not available.
5653 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5655 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5656 * stabsread.c: Make os9k sections of the code obsolete.
5657 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5658 * config/i386/i386os9k.mt: Make file obsolete.
5659 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5660 (COMMON_OBS): Remove os9kread.o
5661 (SFILES): Remove os9kread.c.
5662 (os9kread.o, remote-os9k.o): Make target obsolete.
5663 * remote-os9k.c: Make file obsolete.
5664 * os9kread.c: Make file obsolete.
5667 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5669 * NEWS: Mention that the FR30 has been made obsolete.
5670 * fr30-tdep.c: Make file obsolete.
5671 * config/fr30/tm-fr30.h: Ditto.
5672 * config/fr30/fr30.mt: Ditto.
5673 * configure.tgt: Make fr30-*-elf obsolete.
5674 * MAINTAINERS: Make fr30-elf obsolete.
5676 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5678 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5679 found is not inside a section.
5681 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5683 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5685 (pdc_realloc): Use xrealloc() instead of realloc().
5687 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5689 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5690 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5691 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5694 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5696 * aix-thread.c (ptrace_check): Eliminate goto.
5697 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5700 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5702 * aix-thread.c (gdbcmd.h): Include.
5703 (DEBUG, DBG, DBG2, dbg): Eliminate.
5704 (debug_aix_thread): New static global.
5705 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5706 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5707 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5708 invocations to DBG and DBG2 macros to test against
5709 ``debug_aix_thread'' and call fprintf_unfiltered().
5710 (_initialize_aix_thread): Add new command "set debug aix-thread".
5712 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5714 From Gerhard Tonn <TON@de.ibm.com>:
5715 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5716 instead of supply_register.
5718 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5720 * dwarf2cfi.c: Include "gdb_assert.h".
5721 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5723 (update_context): Do not use __func__. Add missing ``break''.
5724 (update_context): Do not use __func__.
5726 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5728 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5729 and its setting. Set gdbarch instruction printing functions
5730 directly. For non-rs6000 case use new function
5731 gdb_print_insn_powerpc.
5732 (gdb_print_insn_powerpc): New function.
5734 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5736 * NEWS: Mention that the d30v has been marked obsolete.
5737 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5738 * configure.tgt: Mark d30v-*-* as obsolete.
5739 * d30v-tdep.c: Mark file as obsolete.
5740 * config/d30v/d30v.mt: Ditto.
5741 * config/d30v/tm-d30v.h: Ditto.
5743 2002-07-13 Aidan Skinner <aidan@velvet.net>
5745 * ada-tasks.c (add_task_entry): replace calls to
5746 malloc() with xmalloc
5747 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5749 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5750 ada_finish_decode_line_1, all_sals_for_line
5751 ada_breakpoint_rewrite): replace calls to free() with xfree()
5753 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5755 From Nicholas Duffek (with minor changes by Martin Hunt,
5756 Louis Hamilton, and Kevin Buettner):
5757 * aix-thread.c: New file.
5759 2002-07-12 Petr Sorfa <petrs@caldera.com>
5761 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5762 complaint for invalid attribute class or form.
5763 (read_func_scope): DW_AT_frame_base
5764 better handling of DW_AT_block*.
5765 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5766 better handling of DW_AT_block*.
5767 (read_common_block): DW_AT_location
5768 better handling of DW_AT_block*.
5769 (read_partial_die): DW_AT_location better handling
5771 (new_symbol): DW_AT_external better handling of
5772 DW_AT_block*. Proper initialization of variable
5774 (attr_form_is_block): New function that returns true
5775 if the attribute's form is of DW_FORM_block*.
5777 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5779 * valops.c (find_method_list): Remove comment about
5780 removed STATIC_MEMFUNCP argument.
5781 (value_find_oload_method_list): Likewise.
5783 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5785 From Nicholas Duffek:
5786 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5787 target_new_objfile_hook.
5789 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5791 From Nicholas Duffek:
5792 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5795 2002-07-12 Andrew Cagney <cagney@redhat.com>
5797 * MAINTAINERS: Mention --enable-sim-build-warnings.
5798 (m68hc11-elf): Disable sim build warnings.
5799 (m32r-elf): Mark as broken obsolete candidate.
5800 (x86_64-linux-gnu): Mark as buildable with -Werror.
5801 (arm-elf): Change -w to ``,'' which enables warnings but not
5804 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5806 * bcache.h: Update copyright.
5807 (struct bstring, struct bcache): Move definition to "bcache.c".
5808 Replaced by opaque declaration.
5809 (bcache_xfree): Replace free_bcache.
5810 (bcache_xmalloc, bcache_memory_used): Declare.
5812 * bcache.c: Update copyright.
5813 (struct bstring, struct bcache): Moved to here from "bcache.h".
5815 (bcache_xmalloc, bcache_memory_used): New functions.
5816 (bcache_xfree): Replace function free_bcache.
5818 * Makefile.in (objfiles.o): Add $(bcache_h).
5819 (objfiles_h): Remove $(bcache_h).
5820 (symfile.o): Add $(bcache_h).
5822 * symmisc.c: Update copyright.
5823 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5824 (print_objfile_statistics): Use bcache_memory_used.
5826 * symfile.c: Include "bcache.h".
5827 (reread_symbols): Use bcache_xfree.
5828 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5829 (add_psymbol_to_list): Pass psymbol_cache by value.
5830 (add_psymbol_with_dem_name_to_list): Ditto.
5832 * objfiles.h: Update copyright.
5833 (struct bcache): Declare opaque. Do not include "bcache.h".
5834 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5836 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5838 * objfiles.c: Include "bcache.h". Update copyright.
5839 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5841 (free_objfile): Use bcache_xfree.
5843 2002-07-11 Grace Sainsbury <graces@redhat.com>
5845 * monitor.c (monitor_fetch_register): Make name a constant.
5846 (monitor_store_register): Same.
5848 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5850 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5851 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5852 (finish_block) For non-function blocks, hash the symbol table. For
5853 function blocks, mark the symbol table as unhashed.
5854 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5855 (msymbol_hash_iw): Likewise.
5856 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5858 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5859 (lookup_minimal_symbol): Likewise for both.
5860 * symtab.h (struct block): Add `hashtable' flag. Comment the
5862 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5863 (ALL_BLOCK_SYMBOLS): Update.
5864 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5865 (struct symbol): Add `hash_next' pointer.
5866 * symtab.c (lookup_block_symbol): Search using the hash table when
5868 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5869 (search_symbols, find_addr_symbol): Likewise.
5871 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5872 (read_dst_symtab): Likewise.
5873 * jv-lang.c (get_java_class_symtab): Likewise.
5874 * mdebugread.c: Include "gdb_assert.h".
5875 (shrink_block): Assert that the block being modified is not hashed.
5876 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5877 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5879 (dump_symtab): Recognize hashed blocks.
5880 * printcmd.c (print_frame_args): Assert that function blocks do not
5881 have hashed symbol tables.
5882 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5883 (fill_in_ada_prototype, debug_print_block): Likewise.
5884 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5886 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5888 * stack.c (print_frame): Use result of frame_address_in_block()
5889 instead of fi->pc when evaluating symbols.
5890 (backtrace_command_1): Ditto.
5892 2002-07-11 Andrew Cagney <cagney@redhat.com>
5894 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5897 * arm-tdep.c (arm_register_name): Make return type constant.
5899 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5901 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5903 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5904 * s390-tdep.c (s390_fp_regnum): Ditto.
5905 (s390_read_fp): Ditto.
5906 (s390_pop_frame): Ditto.
5907 (_initialize_s390_tdep): Ditto.
5908 * remote.c (get_remote_state): Ditto.
5909 * procfs.c (mappingflags): Ditto.
5910 * memattr.c (_initialize_mem): Ditto.
5911 * mcore-tdep.c (mcore_pop_frame): Ditto.
5912 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5913 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5914 * language.c (set_case_str): Ditto.
5915 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5916 * frv-tdep.c (new_variant): Ditto.
5917 (frv_stopped_data_address): Ditto.
5918 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5919 (context_alloc): Ditto.
5920 (frame_state_alloc): Ditto.
5921 (unwind_tmp_obstack_init): Ditto.
5922 (unwind_tmp_obstack_free): Ditto.
5923 (cfi_read_fp): Ditto.
5924 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5925 (cris_pop_frame): Ditto.
5926 * c-lang.c (scanning_macro_expansion): Ditto.
5927 (finished_macro_expansion): Ditto.
5928 (c_preprocess_and_parse): Ditto.
5929 * gdbarch.sh: Ditto.
5930 * gdbarch.h, gdbarch.c: Regenerate.
5931 * config/mn10200/tm-mn10200.h: Adjust indentation.
5932 * target.c: Adjust indentation.
5933 * symtab.h: Adjust indentation.
5934 * stabsread.h: Adjust indentation.
5935 * remote-es.c: Adjust indentation.
5936 * os9kread.c: Adjust indentation.
5938 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5940 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5941 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5943 2002-07-10 Grace Sainsbury <graces@redhat.com>
5945 * NEWS: Mention m68k, mcore multi-arching.
5946 * MAINTAINERS: Change status of m68k, mcore to reflect
5949 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5951 * valops.c (find_overload_match): Free oload_syms.
5953 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5955 Define HAVE_SYS_PROC_H if sys/proc.h exists
5956 * configure.in: Add check for sys/proc.h
5957 * config.in: Regenerate.
5958 * configure: Regenerate.
5960 2002-07-09 Grace Sainsbury <graces@redhat.com>
5962 * config/m68k/tm-m68k.h: Remove macros wrapped in
5963 #if !GDB_MULTI_ARCH.
5965 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5967 * config.in, configure: Regenerate.
5969 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5971 * dwarf2cfi.c: Include "gcore.h".
5972 (execute_stack_op): Fix implementation of the
5973 DW_OP_deref and DW_OP_deref_size operators by letting do their
5974 lookup in the target.
5976 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5978 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5979 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5982 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5984 Fix PR gdb/595, gdb/602
5985 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5986 Don't call value_cast, just read the vtable pointer; update comments
5989 2002-07-05 Grace Sainsbury <graces@redhat.com>
5991 * config/mcore/tm-mcore.h: Remove file.
5992 * config/mcore/mcore.mt: Remove definition of TM_FILE
5993 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5995 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5997 * i386bsd-tdep.c: Include "gdb_string.h".
5999 2002-07-04 Grace Sainsbury <graces@redhat.com>
6001 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6002 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6004 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6005 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6006 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6007 (RETVAL_REGNUM): Move macros from tm-mcore.h
6008 (mcore_reg_struct_has_addr): New function.
6009 (mcore_gdbarch_init): Added initializations for the macros removed
6012 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6014 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6015 traditonal string branding within the ELF header.
6017 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6019 * symtab.c (remove_params): New function.
6020 (make_symbol_overload_list): Use it instead of cplus_demangle.
6021 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6023 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6025 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6027 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6029 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6030 and tdep->sigtramp_end.
6031 * i386obsd-nat.c: New file.
6032 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6034 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6035 Don't call get_current_frame().
6037 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6039 * i386-nat.c (child_post_startup_inferior): New function
6040 calling i386_cleanup_dregs if
6041 I386_USE_GENERIC_WATCHPOINTS is defined.
6042 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6043 conditional to acknowledge that i386-nat.c has its
6044 own child_post_startup_inferior function.
6046 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6048 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6049 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6050 instead of MAX_REGISTER_RAW_SIZE.
6051 (i386_extract_return_value, i386_extract_struct_value_address):
6052 Convert to use regcache.
6053 (i386_gdbarch_init): Set max_register_raw_size and
6054 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6055 Set extract_return_value and extract_struct_value_address instead
6056 of their deprecated variants.
6058 Convert i386 target to generic dummy frames.
6059 * i386-tdep.c: Include "symfile.h".
6060 (i386_frameless_signal_p): Consider a function to be frameless if
6061 the pc points at the first instruction of the function.
6062 (i386_frame_chain): Handle (generic) call dummies.
6063 (i386_frame_saved_pc): Likewise.
6064 (i386_frame_init_saved_regs): Remove code dealing with call
6065 dummies on the stack.
6066 (i386_push_dummy_frame): Removed.
6067 (i386_call_dummy_words): Removed.
6068 (i386_fix_call_dummy): Removed.
6069 (i386_push_return_address): New function.
6070 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6071 parameter, and don't call get_current_frame.
6072 (i386_pop_frame): New function.
6073 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6074 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6075 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6076 call_dummy_length to 0, set call_dummy_words to NULL, set
6077 sizeof_call_dummy_words to 0, set fix_call_dummy to
6078 generic_fix_call_dummy, set pc_in_call_dummy to
6079 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6080 generic_push_dummy_frame, set push_return_address to
6081 i386_push_return_address and set frame_chain_valid to
6082 generic_file_frame_chain_valid.
6084 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6086 * gdbarch.sh (struct regcache): Add opaque declaration.
6087 (EXTRACT_RETURN_VALUE): New architecture method.
6088 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6089 * gdbarch.h, gdbarch.c: Regenerate.
6090 * arch-utils.c (legacy_extract_return_value): New function.
6091 * arch-utils.h (legacy_extract_return_value): Declare.
6092 * values.c (value_being_returned): Re-enable code handling
6093 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6094 deprecated_grub_regcache_for_registers call to block handling
6095 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6096 (EXTRACT_RETURN_VALUE): Do not define.
6098 2002-07-03 Grace Sainsbury <graces@redhat.com>
6100 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6101 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6102 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6103 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6104 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6105 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6106 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6107 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6108 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6109 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6110 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6111 argument so the function fits the prototype in the architecture
6113 (mcore_pop_frame): Remove argument so the function fits the
6114 prototype. Use get_current_frame instead of the argument.
6115 (mcore_push_arguments): Change type of struct_return so the
6116 function can be used in the architecture vector.
6117 (mcore_store_struct_return): Add.
6118 (mcore_frame_init_saved_regs): Add.
6119 (mcore_gdbarch_init): Add function calls to replace the macros
6120 removed from tm-mcore.h
6122 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6124 * infcmd.c (print_return_value): Remove compatibility code calling
6125 deprecated_grub_regcache_for_registers.
6127 * values.c: Include "regcache.h".
6128 (value_being_returned): Update. Use
6129 deprecated_grub_regcache_for_registers to extract the register
6131 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6132 ``struct regcache''.
6133 * Makefile.in (values.o): Add dependency on $(regcache_h).
6135 * inferior.h (run_stack_dummy): Change type of second parameter to
6136 a ``struct regcache''.
6137 * valops.c (hand_function_call): Change type of retbuf to ``struct
6138 regcache''. Allocate using regcache_xmalloc, clean using
6139 make_cleanup_regcache_xfree.
6140 * infcmd.c (run_stack_dummy): Update. Use
6141 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6143 * regcache.c (do_regcache_xfree): New function.
6144 (make_cleanup_regcache_xfree): New function.
6145 * regcache.h (make_cleanup_regcache_xfree): Declare.
6147 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6149 * event-top.c (command_line_handler): Don't read past
6150 beginning of buffer.
6152 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6154 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6156 (varobj_create): Store frame_id for root.
6157 (varobj_gen_name): Use xasprintf.
6158 (varobj_update): Save and restore frame using get_frame_id() and
6160 (create_child): Use xasprintf.
6161 (new_root_variable): Initialize frame_id.
6162 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6163 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6164 to prevent memory leak.
6166 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6168 * valops.c (hand_function_call): Move declaration of retbuf to
6169 start of function, allocate using malloc, add a cleanup but before
6170 the inf_status cleanup, cleanup the buffer. Rename local variable
6171 old_chain to inf_status_cleanup.
6173 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6175 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6177 * cli/cli-decode.c (cmd_func_p): New function.
6178 (cmd_func): New function.
6180 * command.h: Add cmd_func() and cmd_func_p().
6182 2002-07-03 Grace Sainsbury <graces@redhat.com>
6184 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6185 (REGISTER_SIZE): Remove.
6186 (MAX_REGISTER_RAW_SIZE): Remove.
6187 (REGISTER_VIRTUAL_TYPE): Remove.
6188 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6189 (REGISTER_NAME): Remove.
6190 (USE_GENERIC_DUMMY_FRAMES): Remove.
6191 (CALL_DUMMY): Remove.
6192 (CALL_DUMMY_START_OFFSET): Remove.
6193 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6194 (CALL_DUMMY_LOCATION): Remove.
6195 (FIX_CALL_DUMMY): Remove.
6196 (CALL_DUMMY_ADDRESS): Remove.
6197 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6198 (SAVE_DUMMY_FRAME_TOS): Remove.
6199 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6200 (mcore_register_virtual_type): New function.
6201 (mcore_register_byte): New function.
6202 (mcore_register_size): New function.
6203 (mcore_register_name): New function.
6204 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6205 macros removed from tm-mcore.h.
6206 (mcore_dump_tdep): Add.
6207 (_initialize_mcore_tdep): Add gdbarch_register call.
6209 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6211 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6212 frameless_look_for_prologue, such that we actually call this
6215 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6217 * frame.h (frame_address_in_block): New function.
6219 * blockframe.c (frame_address_in_block): New function extracted
6220 from get_frame_block().
6221 (get_frame_block): Use frame_address_in_block().
6222 (block_innermost_frame): Use frame_address_in_block() to match
6223 the frame pc address against the block boundaries rather than
6224 the frame pc directly. This prevents a failure when a frame pc
6225 is actually a return-address pointing immediately after the end
6228 2002-07-02 Grace Sainsbury <graces@redhat.com>
6230 * MAINTAINERS: Add self under write after approval.
6232 2002-07-02 Grace Sainsbury <graces@redhat.com>
6234 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6235 used in architecture vector. The default is
6236 m68k_local_breakpoint_from_pc.
6237 (m68k_local_breakpoint_from_pc): Add.
6238 (enum): Add register numbers from tm-m68k.h.
6239 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6241 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6242 GDB_MULTI_ARCH_PARTIAL.
6243 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6244 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6246 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6247 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6248 to enum in m68k-tdep.c
6250 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6252 * solib-osf.c (open_map): Compute the list of shared libraries
6253 loaded by the inferior, rather than the list of libraries loaded
6254 by GDB itself. Otherwise, GDB ends up reading the symbols from
6255 the wrong shared libraries...
6257 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6259 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6260 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6262 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6264 (FRAMELESS_SIGNAL): Remove function.
6265 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6266 i386_linux_saved_pc_after_call): Removed.
6267 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6268 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6269 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6271 * i386-tdep.c (i386_frameless_signal_p): New function.
6272 (i386_frame_chain): Deal with frameless signals.
6273 (i386_sigtramp_saved_sp): New function.
6274 (i386_frame_saved_pc): Deal with frameless signals.
6275 (i386_saved_pc_after_call): Make sure the correct value is
6276 returned just after entry into a sigtramp.
6277 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6278 i386fbsd4_sc_sp_offset): New variables.
6279 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6280 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6281 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6282 similiar to what we already did for sc_pc_offset.
6283 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6286 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6288 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6290 * config/i386/tm-x86-64linux.h: New.
6291 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6293 * config/i386/nm-x86-64.h: Rename to ...
6294 * config/i386/nm-x86-64linux.h: ... this one.
6295 * config/i386/x86-64linux.mh: Reflect the above change.
6297 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6299 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6300 with sigcontext_addr. Add sc_sp_offset.
6301 (i386bsd_sigtramp_saved_pc): Remove prototype.
6302 (i386bsd_sicontext_addr): Add prototype.
6303 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6304 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6305 (i386_svr4_sigtramp_saved_pc): Removed.
6306 (i386_svr4_sigcontext_addr): New function.
6307 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6308 Initialize tdep->sigcontext_addr instead. Initialize
6309 tdep->sc_pc_offset and tdep->sc_sp_offset.
6310 (i386_gdbarch_init): Likewise.
6311 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6313 (i386bsd_sigtramp_saved_pc): Remove function.
6314 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6315 Initialize tdep->sigcontext_addr instead. Initialize
6317 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6318 of tdep->sigtramp_saved_pc.
6319 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6320 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6323 * i386-tdep.c (i386_frameless_function_invocation,
6324 i386_frame_num_args, i386_frame_init_saved_regs,
6325 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6326 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6327 i386_extract_return_value, i386_store_return_value,
6328 i386_extract_struct_value_address, i386_register_virtual_type,
6329 i386_register_convertible, i386_register_convert_to_virtual,
6330 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6331 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6334 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6336 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6338 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6339 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6340 this macro. Include "value.h".
6342 2002-06-30 Aidan Skinner <aidan@velvet.net>
6344 * ada-exp.tab.c: remove as it's a generated file
6345 * ada-lex.c: remove as it's a generated file
6347 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6349 * config/i386/tm-i386.h (struct frame_info, struct
6350 frame_saved_regs, struct value, struct type): Remove forward
6353 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6354 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6355 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6356 (FILL_FPXREGSET): Define.
6358 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6360 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6361 i[3456]86-*-netbsd* case.
6362 * config/i386/tm-obsd.h: Removed.
6363 * config/i386/obsd.mt: Removed.
6364 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6366 (MH_CFLAGS): Add -DYYDEBUG=0.
6368 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6369 i386nbsd_sc_pc_offset on OpenBSD too.
6371 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6372 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6373 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6375 * i386bsd-tdep.c: Include "arch-utils.h".
6376 (i386bsd_aout_in_solib_call_trampoline): New function.
6377 (i386bsd_init_abi): Set in_solib_call_trampoline to
6378 i386bsd_aout_in_solib_call_trampoline.
6379 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6380 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6382 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6384 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6385 (struct obstack, struct bcache): Add opaque declarations.
6386 * Makefile.in (macrotab_h): Update
6388 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6390 * blockframe.c (generic_find_dummy_frame): Change return type to
6391 ``struct regcache''.
6392 (struct dummy_frame): Replace field ``registers'' with regcache, a
6393 struct regcache object.
6394 (generic_find_dummy_frame): Update.
6395 (generic_push_dummy_frame): Update. Use regcache_xfree,
6396 regcache_xmalloc and regcache_cpy.
6397 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6399 (deprecated_generic_find_dummy_frame): Update.
6400 (generic_read_register_dummy): Update. Use
6401 regcache_read_as_address.
6402 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6403 (generic_get_saved_register): Update. Use regcache_read.
6405 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6407 * Makefile.in (objfiles_h): Add $(bcache_h).
6408 * objfiles.h: Include "bcache.h".
6410 * Makefile.in (symtab_h): Remove $(bcache_h).
6411 * symtab.h: Do not include "bcache.h".
6413 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6415 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6416 generic_func_frame_chain_valid.
6418 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6420 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6421 * config/i386/tm-fbsd.h: Likewise.
6423 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6425 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6426 generic_unwind_get_saved_register.
6428 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6430 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6431 * regcache.c (supply_register): Add missing argument to
6432 register_buffer call.
6434 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6436 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6437 Solaris /bin/grep does not not like it. From Peter Schauer.
6439 2002-06-26 Tom Tromey <tromey@redhat.com>
6441 * command.h (add_setshow_cmd): Declare.
6442 (add_setshow_cmd_full): Declare.
6443 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6444 returns void. Use add_setshow_cmd_full.
6445 (add_setshow_cmd_full): New function.
6446 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6447 (add_setshow_boolean_cmd): Likewise.
6449 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6451 * config/vax/tm-vax.h: Protect from multiple inclusion.
6452 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6453 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6454 * config/vax/tm-vaxbsd.h: ...here. New file.
6455 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6457 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6459 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6460 (BELIEVE_PCC_PROMOTION): Remove.
6461 (AP_REGNUM): Move to...
6462 * config/vax/nm-vax.h: ...here.
6463 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6464 (vax_breakpoint_from_pc): New function.
6465 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6466 and gdbarch_believe_pcc_promotion.
6468 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6470 * Makefile.in (vax_tdep_h): Define.
6471 (vax-tdep.o): Use $(vax_tdep_h).
6472 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6473 (vax_dump_tdep): New function.
6474 (_initialize_vax_tdep): Register vax_dump_tdep.
6475 * vax-tdep.h: Include osabi.h.
6476 (struct gdbarch_tdep): New.
6478 2002-06-26 Andrew Cagney <cagney@redhat.com>
6480 * frame.h (deprecated_generic_find_dummy_frame): Rename
6481 generic_find_dummy_frame.
6482 * blockframe.c (generic_find_dummy_frame): Make static.
6483 (deprecated_generic_find_dummy_frame): New function.
6484 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6485 generic_find_dummy_frame with deprecated_find_dummy_frame.
6486 (sh64_nofp_frame_init_saved_regs): Ditto.
6487 (sh_fp_frame_init_saved_regs): Ditto.
6488 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6489 (s390_frame_chain): Ditto.
6490 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6492 2002-06-26 Grace Sainsbury <graces@redhat.com>
6494 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6495 gdbarch vector are at the top.
6497 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6498 (FRAME_ARGS_ADDRESS): Remove.
6499 (FRAME_LOCALS_ADDRESS): Remove.
6500 (FRAME_NUM_ARGS): Remove.
6501 (FRAME_ARGS_SKIP): Remove.
6502 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6503 (m68k_gdbarch_init): Add gdbarch initializations for macros
6504 undefined in tm-m68k.h
6506 2002-06-26 Grace Sainsbury <graces@redhat.com>
6508 * monitor.h: Add the function regname to monitor_ops
6509 structure. This way NUM_REGS does not have to be a constant.
6510 * monitor.c (monitor_fetch_register): Added support for regname
6511 function. The function is called if the array regnames is NULL.
6512 (monitor_store_register): Same.
6513 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6515 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6516 cpu32bug_cmds.regname to point to new function.
6517 * abug-rom.c (abug_regname): Same as above.
6518 (init_abug_cmds): Same.
6519 * dbug-rom.c (dbug_regname): Same as above.
6520 (init_dbug_cmds): Same.
6521 * remote-est.c (est_regname): Same.
6522 (init_est_cmds): Same.
6523 * rom68k-rom.c (rom68k_regname): Same.
6524 (init_rom68k_cmds): Same.
6526 2002-06-25 Tom Tromey <tromey@redhat.com>
6528 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6530 2002-06-25 Andrew Cagney <cagney@redhat.com>
6532 * infrun.c (stop_registers): Change variable's type to ``struct
6534 (xmalloc_inferior_status): Delete function.
6535 (free_inferior_status): Delete function.
6536 (normal_stop): Use regcache_cpy.
6537 (struct inferior_status): Change type of fields ``stop_registers''
6538 and ``registers'' to ``struct regcache''.
6539 (write_inferior_status_register): Use regcache_write.
6540 (save_inferior_status): Instead of calling
6541 xmalloc_inferior_status, allocate the inf_status buffer directly.
6542 Use regcache_dup_no_passthrough and regcache_dup to save the
6544 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6545 Replace the stop_registers regcache instead of overriding it. Use
6546 regcache_xfree. Instead of calling free_inferior_status, xfree
6547 the buffer directly.
6548 (discard_inferior_status): Use regcache_xfree. Instead of calling
6549 free_inferior_status, xfree the buffer directly.
6550 (build_infrun): Use regcache_xmalloc.
6551 (_initialize_infrun): Delete redundant call to build_infrun.
6553 * Makefile.in (infcmd.o): Add $(regcache_h).
6555 * infcmd.c: Include "regcache.h".
6556 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6557 obtain the address of `stop_registers' register buffer.
6558 (print_return_value): Ditto.
6560 * inferior.h (struct regcache): Add opaque declaration.
6561 (stop_registers): Change variable's declared type to ``struct
6564 2002-06-24 Tom Tromey <tromey@redhat.com>
6566 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6567 * target.c (initialize_targets): Fixed typo in
6568 trust-readonly-sections `show' documentation.
6570 * main.c: Marked all strings with _().
6572 2002-06-24 Don Howard <dhoward@redhat.com>
6574 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6575 that means max CORE_ADDR+1.
6576 (lookup_mem_region): Ditto.
6577 (mem_info_command): Ditto.
6579 2002-06-24 Grace Sainsbury <graces@redhat.com>
6581 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6582 (REGISTER_BYTES_OK): Remove.
6583 (REGISTER_BYTES): Remove.
6584 (STORE_STRUCT_RETURN): Remove.
6585 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6586 (STORE_RETURN_VALUE): Remove.
6587 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6588 (FRAME_CHAIN): Remove.
6589 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6590 (FRAME_SAVED_PC): Remove.
6591 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6592 (m68k_store_struct_return): Add.
6593 (m68k_deprecated_extract_return_value): Add.
6594 (m68k_deprecated_extract_struct_value_address): Add.
6595 (m68k_store_return_value): Add.
6596 (m68k_frame_chain): Add.
6597 (m68k_frameless_function_invocation): Add.
6598 (m68k_frame_saved_pc): Add.
6599 (m68k_gdbarch_init): added set_gdbarch calls for new
6600 functions and deleted macros.
6602 2002-06-23 Tom Tromey <tromey@redhat.com>
6604 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6605 (ALLDEPFILES): Likewise.
6606 (udiheaders): Removed.
6607 (udip2soc.o): Likewise.
6608 (udi2go32.o): Likewise.
6610 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6612 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6614 * infrun.c (_initialize_infrun): Delete unnecessary call to
6617 * regcache.h: Update comments describing the regcache_cpy family
6619 (regcache_save, regcache_restore): Delete declaration.
6620 (regcache_save_no_passthrough): Delete declaration.
6621 (regcache_restore_no_passthrough): Delete declaration.
6622 * regcache.c (regcache_save): Delete function.
6623 (regcache_save_no_passthrough): Delete function.
6624 (regcache_restore): Delete function.
6625 (regcache_restore_no_passthrough): Delete function.
6627 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6629 * config/m68k/tm-m68k.h: Fix typo.
6630 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6631 (m68k_frame_init_saved_regs): Declare.
6633 2002-06-21 Jim Blandy <jimb@redhat.com>
6635 Remove some vestiges of Harris 88k support.
6636 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6637 register numbering quirk.
6638 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6639 odd symbols occurring in Harris 88k ELF targets.
6641 2002-06-21 Tom Tromey <tromey@redhat.com>
6643 * gdb_locale.h: New file.
6644 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6645 (defs_h): Added gdb_locale.h.
6646 * configure, config.in: Rebuilt.
6647 * configure.in (PACKAGE): Define.
6648 * defs.h: Include gdb_locale.h.
6649 * main.c (captured_main): Call setlocale, bindtextdomain,
6652 2002-06-21 Dave Brolley <brolley@redhat.com>
6654 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6655 * config/frv/frv.mt: New file.
6656 * config/frv/tm-frv.h: New file.
6657 * configure.tgt: Support frv-*-*.
6658 * Makefile.in (frv-tdep.o): New target.
6659 * frv-tdep.c: New file.
6660 * NEWS: Mention frv.
6662 2002-06-21 Dave Brolley <brolley@redhat.com>
6664 * MAINTAINERS: Add self to "Write After Approval" list.
6666 2002-06-21 Grace Sainsbury <graces@redhat.com>
6668 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6669 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6670 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6671 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6672 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6674 * m68k-tdep.c: Include arch-utils.h
6675 (m68k_register_raw_size): Add.
6676 (m68k_register_virtual_size): Add.
6677 (m68k_register_virtual_type): Add.
6678 (m68k_register_name): Add.
6679 (m68k_stack_align): Add.
6680 (m68k_register_byte): Add.
6681 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6684 2002-06-21 Grace Sainsbury <graces@redhat.com>
6686 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6687 m68k_find_saved_regs.
6688 (m68k_pop_frame): Removed saved_regs structure, and replaced
6689 references to it with frame->saved_regs.
6690 (m68k_gdbarch_init): Added function calls to initialize the
6692 (m68k_fix_call_dummy): Add.
6693 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6694 (CALL_DUMMY): Remove.
6695 (CALL_DUMMY_LENGTH): Remove.
6696 (CALL_DUMMY_START_OFFSET): Remove.
6697 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6698 (FIX_CALL_DUMMY): Remove.
6699 (PUSH_DUMMY_FRAME): Remove.
6700 (POP_FRAME): Remove.
6702 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6704 * parse.c (parse_fprintf): New function used to avoid calls to
6705 fprintf in bison parser generated debug code.
6706 * parser-defs.h: Declaration of new parse_fprintf function.
6707 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6708 Set YYDEBUG to 1 by default.
6709 Set YYFPRINTF as parse_fprintf.
6711 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6713 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6715 (pointer_encoding, enum ptr_encoding): New.
6716 (execute_cfa_program): Take care about pointer encoding.
6717 (dwarf2_build_frame_info): Only call parse_frame_info for
6718 .debug_frame and .eh_frame.
6719 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6720 fixed augmentation handling, added relative addressing,
6721 ignore duplicate FDEs. Added comments.
6722 * dwarf2cfi.c: Reindented.
6724 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6726 * event-top.c (command_handler): Don't use space_at_cmd_start
6727 unless there is sbrk() on the host. Assign time and space data
6728 to union fields of the appropriate length.
6730 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6732 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6733 x86_64_register_name. Return type changed to 'const char *'.
6734 (x86_64_register_name2nr): Rename to x86_64_register_number.
6735 (x86_64_gdbarch_init): Update to reflect the change.
6736 * x86-64-tdep.h: Ditto.
6737 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6738 (supply_fpregset): Ditto.
6740 2002-06-19 Andrew Cagney <cagney@redhat.com>
6742 * regcache.h: Update copyright.
6743 (struct regcache, struct gdbarch): Add opaque declarations.
6744 (current_regcache): Declare global variable.
6745 (regcache_read, regcache_write): Add gdbarch parameter.
6746 (regcache_save, regcache_save_no_passthrough)
6747 (regcache_restore, regcache_restore_no_passthrough)
6748 (regcache_dup, regcache_dup_no_passthrough)
6749 (regcache_cpy, regcache_cpy_no_passthrough)
6750 (deprecated_grub_regcache_for_registers)
6751 (deprecated_grub_regcache_for_register_valid)
6752 (regcache_valid_p): Add function declarations.
6754 * regcache.c: Update copyright.
6755 (regcache_descr_handle): New global variable.
6756 (struct regcache_descr): Define.
6757 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6758 (regcache_descr, xfree_regcache_descr): New functions.
6759 (struct regcache): Define.
6760 (regcache_xmalloc, regcache_xfree): New functions.
6761 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6762 (regcache_dup, regcache_dup_no_passthrough): New functions.
6763 (regcache_valid_p, regcache_read_as_address): New functions.
6764 (deprecated_grub_regcache_for_registers): New function.
6765 (deprecated_grub_regcache_for_register_valid): New function.
6766 (current_regcache): New global variable.
6767 (register_buffer): Add regcache parameter. Update calls.
6768 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6769 (read_register_gen, write_register_gen): Update register_buffer
6770 call. Test for legacy_p instead of gdbarch_register_read_p or
6771 gdbarch_register_write_p.
6772 (regcache_collect): Update register_buffer call.
6773 (build_regcache): Rewrite. Use deprecated grub functions.
6774 (regcache_save, regcache_save_no_passthrough): New functions.
6775 (regcache_restore, regcache_restore_no_passthrough): New
6777 (_initialize_regcache): Create the regcache_data_handle. Swap
6778 current_regcache global variable.
6780 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6781 parameter to regcache_read and regcache_write calls.
6782 (sh4_register_read): Ditto.
6783 (sh64_pseudo_register_read): Ditto.
6784 (sh64_register_read): Ditto.
6785 (sh_pseudo_register_write): Ditto.
6786 (sh4_register_write): Ditto.
6787 (sh64_pseudo_register_write): Ditto.
6788 (sh64_register_write): Ditto.
6790 * defs.h (XCALLOC): Define.
6792 2002-06-19 Grace Sainsbury <graces@redhat.com>
6794 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6795 * m68k-tdep.c (m68k_gdbarch_init): Added.
6796 (m68k_dump_tdep): Added.
6798 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6800 * ada-lang.c (fill_in_ada_prototype): Update comment.
6802 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6804 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6806 (mips_abi_string, mips_abi_strings): New.
6807 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6808 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6809 tdep->mips_abi_string. Honor mips_abi_string. Default to
6810 O32 if no ABI is found.
6811 (mips_dump_tdep): Use mips_abi_strings.
6812 (mips_abi_update): New function.
6813 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6814 ``set mips abi'' and ``show mips abi''. Check the size of
6817 2002-06-19 Andrew Cagney <cagney@redhat.com>
6819 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6822 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6824 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6825 current frame using only the first stack size adjustment. All
6826 subsequent size adjustments are not considered to be part of
6827 the "static" part of the current frame.
6828 Compute the address of the saved registers relative to the
6829 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6830 in use in this frame.
6832 2002-06-18 Don Howard <dhoward@redhat.com>
6834 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6835 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6836 suggesting this solution.
6838 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6840 * config/romp/xm-rtbsd.h: Delete file.
6841 * config/romp/rtbsd.mh: Delete file.
6843 2002-06-18 Keith Seitz <keiths@redhat.com>
6845 * breakpoint.c (condition_command): Post breakpoint_modify
6846 when a condition is added to an existing breakpoint.
6847 (commands_command): Likewise for commands.
6848 (set_ignore_count): Likewise for ignore counts.
6849 If no tty, do not simply return, still need to send event
6851 (ignore_command): Only print a newline if the command came
6853 Don't call breakpoints_changed, since this is now properly
6854 handled by set_ignore_count.
6856 2002-06-18 Andrew Cagney <cagney@redhat.com>
6858 * MAINTAINERS: Note that cris-elf target can be compiled with
6860 * cris-tdep.c (cris_register_name): Make return type constant.
6861 (cris_breakpoint_from_pc): Ditto.
6863 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6865 * frame.h (struct frame_info): Change type of context to
6868 2002-06-17 Andrew Cagney <cagney@redhat.com>
6870 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6872 * gdbarch.h, gdbarch.c: Regenerate.
6873 * config/mips/tm-mips.h (mips_register_name): Update.
6874 * i386-tdep.h (i386_register_name): Update.
6875 * mips-tdep.c (mips_register_name): Update
6876 * alpha-tdep.c (alpha_register_name): Update.
6877 * arch-utils.c (legacy_register_name): Update.
6878 * arch-utils.h (legacy_register_name): Update.
6879 * avr-tdep.c (avr_register_name): Update.
6880 * ia64-tdep.c (ia64_register_name): Update.
6881 * i386-tdep.c (i386_register_name): Update.
6882 * sparc-tdep.c (sparc32_register_name): Update.
6883 (sparc64_register_name): Update.
6884 (sparclite_register_name): Update.
6885 (sparclet_register_name): Update.
6886 * sh-tdep.c (sh_generic_register_name): Update.
6887 (sh_sh_register_name): Update.
6888 (sh_sh3_register_name): Update.
6889 (sh_sh3e_register_name): Update.
6890 (sh_sh_dsp_register_name): Update.
6891 (sh_sh3_dsp_register_name): Update.
6892 (sh_sh4_register_name): Update.
6893 (sh_sh64_register_name): Update.
6894 * s390-tdep.c (s390_register_name): Update.
6895 * rs6000-tdep.c (rs6000_register_name): Update.
6896 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6897 (ns32k_register_name_32382): Update.
6898 * d10v-tdep.c (d10v_ts2_register_name): Update.
6899 (d10v_ts3_register_name): Update.
6900 * xstormy16-tdep.c (xstormy16_register_name): Update.
6901 * vax-tdep.c (vax_register_name): Update.
6902 * v850-tdep.c (v850_register_name): Update.
6903 * m68hc11-tdep.c (m68hc11_register_name): Update.
6904 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6905 (am33_register_name): Update.
6907 2002-06-17 Grace Sainsbury <graces@redhat.com>
6909 * m68k-tdep.c: Reindented.
6911 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6913 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6914 list of predefined types.
6916 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6918 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6919 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6920 REGISTER_CONVERT_TO_RAW): Remove defines.
6921 (i386_register_virtual_type, i386_register_convertible,
6922 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6924 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6925 macros mentioned above.
6927 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6928 (i386lynx_saved_pc_after_call): Remove prototype.
6929 * i386ly-tdep.c: Include "i386-tdep.h".
6930 (i386lynx_saved_pc_after_call): Make static. Use
6931 read_memory_nobpt instead of read_memory. Use
6932 read_memory_unsigned_integer instead of read_memory_integer.
6933 (i386lynx_init_abi): New function.
6934 (i386lynx_coff_osabi_sniffer): New function.
6935 (_initialize_i386bsd_tdep): New function.
6937 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6938 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6939 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6940 (i386_fix_call_dummy): Remove prototype.
6941 * i386-tdep.c (i386_call_dummy_words): New variable.
6942 (i386_gdbarch_init): Adjust for removal of the
6943 macros mentioned above.
6945 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6947 * command.h (add_setshow_auto_boolean_cmd): Replace
6948 add_set_auto_boolean_cmd.
6949 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6950 add_set_auto_boolean_cmd.
6951 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6952 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6953 mask-address'' command.
6954 (show_mask_address): Add cmd parameter.
6955 * remote.c (add_packet_config_cmd): Update. Change type of
6956 set_func and show_func to cmd_sfunc_ftype.
6957 (_initialize_remote): Update `set remote Z-packet'
6958 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6959 (show_remote_protocol_e_packet_cmd): Ditto.
6960 (show_remote_protocol_E_packet_cmd): Ditto.
6961 (show_remote_protocol_P_packet_cmd): Ditto.
6962 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6963 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6964 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6965 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6966 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6967 (show_remote_protocol_Z_packet_cmd): Ditto.
6968 (show_remote_protocol_binary_download_cmd): Ditto.
6969 (show_remote_cmd): Pass NULL to all of above.
6971 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6973 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6974 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6975 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6976 POP_FRAME): Remove defines.
6977 (i386_push_arguments, i386_store_struct_return,
6978 i386_extract_return_value, i386_store_return_value,
6979 i386_extract_struct_value_address, i386_push_dummy_frame,
6980 i386_pop_frame): Renove prototypes.
6981 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6982 macros mentioned above.
6984 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6986 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6987 add_set_boolean_cmd.
6988 (add_setshow_cmd): New function.
6989 * command.h (add_setshow_boolean_cmd): Replace
6990 add_set_boolean_cmd.
6991 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6992 and ``set rdiromatzero''.
6993 * maint.c (_initialize_maint_cmds): Update commented out code.
6994 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6995 * target.c (initialize_targets): Update `set
6996 trust-readonly-sections'.
6997 * remote.c (_initialize_remote): Update `set remotebreak'.
6999 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7001 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7002 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7003 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7004 fit into multi-arch framework.
7005 (i386_breakpoint_from_pc): New function.
7006 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7009 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7010 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7011 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7012 (i386_frameless_function_invocation, i386_frame_num_args,
7013 i386_frame_init_saved_regs): Remove prototypes.
7014 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7015 macros mentioned above.
7017 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7019 * cli/cli-decode.c (set_cmd_cfunc): Update.
7020 (set_cmd_sfunc): Update.
7021 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7022 (set_cmd_sfunc, set_cmd_cfunc): Update.
7023 * cli/cli-decode.h: Update.
7025 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7027 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7028 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7030 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7032 * defs.h (auto_boolean): Declare enum.
7033 * command.h (cmd_auto_boolean): Delete enum.
7034 * mips-tdep.c (mask_address_var): Update.
7035 (mips_mask_address_p): Update.
7036 (show_mask_address): Update.
7037 * remote.c (struct packet_config): Update.
7038 (update_packet_config): Update.
7039 (show_packet_config_cmd): Update.
7040 (packet_ok): Update.
7041 (add_packet_config_cmd): Update.
7042 (_initialize_remote):
7043 * command.h: Update.
7044 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7045 (do_setshow_command): Update.
7046 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7047 * cli/cli-decode.h: Update.
7049 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7051 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7052 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7053 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7054 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7055 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7056 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7058 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7059 list of DJGPP COFF targets.
7061 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7062 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7063 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7064 (FP0_REGNUM): Remove define.
7065 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7066 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7067 (i386_register_virtual_size): Remove protoype.
7068 * i386-tdep.c (i386_register_virtual_size): Removed.
7069 (i386_extract_return_value, i386_store_return_value): Use
7070 FP0_REGNUM instead of NUM_FREGS to determine whether the
7071 floating-point registers are available.
7072 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7073 Adjust for removal of macros mentioned above.
7075 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7077 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7079 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7081 (supply_gregset, fill_gregset): Remove use of register keyword and
7082 remove declaration for regmap. Use I386_NUM_GREGS instead of
7083 NUM_REGS and NUM_FREGS.
7084 (FPREGSET_FSAVE_OFFSET): Remove.
7085 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7086 NUM_FREGS to determine whether the floating-point registers are
7089 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7090 gnu_store_registers): Replace usage of NUM_GREGS with
7093 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7094 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7095 usage of NUM_GREGS with I386_NUM_GREGS.
7097 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7099 * i386bsd-nat.c: Include "i386-tdep.h".
7100 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7103 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7104 and associated comment. They no longer make any sense, since we
7105 don't use this file anymore on Linux.
7107 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7108 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7109 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7110 elements in these arrays.
7111 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7114 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7116 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7117 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7119 2002-06-14 Andrew Cagney <cagney@redhat.com>
7121 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7122 EXTRACT_RETURN_VALUE.
7123 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7124 EXTRACT_STRUCT_VALUE_ADDRESS.
7125 * gdbarch.h, gdbarch.c: Regenerate.
7127 * values.c (value_being_returned): Handle
7128 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7129 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7131 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7132 * arm-tdep.c (arm_gdbarch_init): Update.
7133 * avr-tdep.c (avr_gdbarch_init): Update.
7134 * cris-tdep.c (cris_gdbarch_init): Update.
7135 * d10v-tdep.c (d10v_gdbarch_init): Update.
7136 * ia64-tdep.c (ia64_gdbarch_init): Update.
7137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7138 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7139 * s390-tdep.c (s390_gdbarch_init): Update.
7140 * sh-tdep.c (sh_gdbarch_init): Update.
7141 * s390-tdep.c (s390_gdbarch_init): Update.
7142 * sparc-tdep.c (sparc_gdbarch_init): Update.
7143 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7144 * v850-tdep.c (v850_gdbarch_init): Update.
7145 * vax-tdep.c (vax_gdbarch_init): Update.
7146 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7149 * config/arc/tm-arc.h: Update.
7150 * config/d30v/tm-d30v.h: Update.
7151 * config/fr30/tm-fr30.h: Update.
7152 * config/h8300/tm-h8300.h: Update.
7153 * config/h8500/tm-h8500.h: Update.
7154 * config/i386/tm-i386.h: Update.
7155 * config/i386/tm-ptx.h: Update.
7156 * config/i386/tm-symmetry.h: Update.
7157 * config/i960/tm-i960.h: Update.
7158 * config/m32r/tm-m32r.h: Update.
7159 * config/m68k/tm-delta68.h: Update.
7160 * config/m68k/tm-linux.h: Update.
7161 * config/m68k/tm-m68k.h: Update.
7162 * config/m88k/tm-m88k.h: Update.
7163 * config/mcore/tm-mcore.h: Update.
7164 * config/mips/tm-mips.h: Update.
7165 * config/mn10200/tm-mn10200.h: Update.
7166 * config/pa/tm-hppa.h: Update.
7167 * config/pa/tm-hppa64.h: Update.
7168 * config/sparc/tm-sp64.h: Update.
7169 * config/sparc/tm-sparc.h: Update.
7170 * config/sparc/tm-sparclet.h: Update.
7171 * config/z8k/tm-z8k.h: Update.
7173 2002-06-14 Andrew Cagney <cagney@redhat.com>
7175 * Makefile.in (i386_linux_tdep_h): Define.
7176 (i386_tdep_h, i387_tdep_h): Define.
7177 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7178 $(i386_tdep_h) and $(i387_tdep_h).
7179 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7181 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7183 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7184 Already covered by the default.
7186 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7187 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7188 (i386_gdbarch_init): Initialize long_double_format and long_double
7191 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7192 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7194 * config/i386/i386sol2.mh: ... here.
7195 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7196 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7197 (SIGCONTEXT_PC_OFFSET): Remove define.
7198 (IN_SIGTRAMP): Remove define.
7199 * i386-sol2-tdep.c: New file.
7201 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7202 * config/i386/tm-i386nw.h: Removed.
7204 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7205 USE_STRUCT_CONVENTION): Remove defines.
7206 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7207 (get_longjmp_target): Remove prototype.
7208 (IN_SIGTRAMP): Remove define.
7209 (i386bsd_in_sigtramp): Remove prototype.
7210 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7211 function. Update comment accordingly
7212 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7213 (FRAME_SAVED_PC): Remove define.
7214 (i386bsd_frame_saved_pc): Remove prototype.
7215 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7216 GET_LONGJMP_TARGET): Remove defines.
7217 (get_longjmp_target): Remove prototype.
7218 (IN_SIGTRAMP): Remove define.
7219 (i386bsd_in_sigtramp): Remove prototype.
7220 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7221 function. Update comment accordingly
7222 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7223 (FRAME_SAVED_PC): Remove define.
7224 (i386bsd_frame_saved_pc): Remove prototype.
7225 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7227 (USE_STRUCT_CONVENTION): Remove prototype.
7228 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7230 (_initialize_i386bsd_nat): Revise logic to determine some
7231 constants at compile time when compiling a native GDB. Warn if
7232 things don't match up with what we expect.
7233 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7235 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7236 to use date stored in `struct gdbarch_tdep'.
7237 (i386bsd_sigcontext_offset): Remove varaible.
7238 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7239 stored in `struct gdbarch_tdep'.
7240 (i386bsd_frame_saved_pc): Make static.
7241 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7242 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7243 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7244 i386fbsd4_sc_pc_offset): New variables.
7245 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7246 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7248 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7250 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7251 Modify the value of i386fbsd_sigtramp_start and
7252 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7253 i386fbsd_sigtramp_end.
7254 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7257 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7258 define to i386-linux-tdep.h.
7259 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7260 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7262 (i386_linux_register_name, i386_linux_register_byte,
7263 i386_linux_register_raw_size): Remove prototypes.
7264 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7265 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7266 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7267 TARGET_WRITE_PC): Remove defines.
7268 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7269 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7270 i386_linux_write_pc): Remove prototypes.
7271 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7272 (get_longjmp_target): Remove prototype.
7273 * i386-linux-tdep.h: New file.
7274 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7275 * i386-linux-tdep.c: Include "i386-tdep.h" and
7276 "i386-linux-tdep.h".
7277 (i386_linux_register_name, i386_linux_register_byte,
7278 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7279 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7281 (i386_linux_init_abi): New function.
7282 (_initialize_i386_linux_tdep): New function.
7284 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7285 (i386_saved_pc_after_call): Remove prototype.
7286 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7287 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7288 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7289 (i386_register_name, i386_stab_reg_to_regnum,
7290 i386_dwarf_reg_to_regnum): Remove prototypes.
7291 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7292 SIZEOF_SSE_REGS): Remove defines.
7293 (REGISTER_BYTES): Remove define.
7294 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7295 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7296 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7297 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7298 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7299 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7300 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7301 (get_longjmp_target): Remove prototype.
7302 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7303 (sigtramp_saved_pc): Remove define.
7304 (i386v4_sigtramp_saved_pc): Remove prototype.
7305 * config/i386/tm-go32.h (FRAME_CHAIN,
7306 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7307 (i386go32_frame_saved_pc): Remove prototype.
7308 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7309 (get_longjmp_target): Remove prototype.
7310 * i386-tdep.h: Include "osabi.h".
7311 (enum i386_abi): Removed.
7312 (enum struct_return): New enum.
7313 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7314 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7315 sc_pc_offset members.
7316 (i386_gdbarch_register_os_abi): Remove prototype.
7317 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7318 I386_SSE_NUM_REGS): New defines.
7319 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7320 I386_SSE_SIZEOF_REGS): New defines.
7321 (i386_register_name, i386_register_byte, i386_register_raw_size):
7323 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7324 (i386bsd_sigtramp_saved_pc): New prototype.
7325 * i386-tdep.c: Don't include "elf-bfd.h".
7326 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7327 i386_frame_chain, i386_saved_pc_after_call): Make static.
7328 (i386_frame_saved_pc): Rewrite to call architecture dependent
7329 function to deal with signal handlers. Make static.
7330 (i386go32_frame_saved_pc): Removed.
7331 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7333 (i386_get_longjmp_target): New function.
7334 (default_struct_convention, pcc_struct_convention,
7335 reg_struct_convention, valid_conventions, struct_convention): New
7337 (i386_use_struct_convention): New function.
7338 (i386v4_sigtramp_saved_pc): Renamed to
7339 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7340 (i386_pc_in_sigtramp): New function.
7341 (i386_abi_names): Removed.
7342 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7343 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7345 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7346 i386_gdbarch_register_os_abi): Removed.
7347 (struct i386_abi_handler): Removed.
7348 (i386_abi_handler_list): Removed.
7349 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7351 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7352 i386_nw_init_abi): New functions.
7353 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7354 Use set_gdbarch_xxx() calls instead of relying on macros for a
7356 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7357 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7358 Register the various architecture variants defined in this file.
7360 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7362 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7363 (struct main_type): Remove arg_types member. Update comments for
7365 (TYPE_ARG_TYPES): Remove.
7366 (TYPE_FN_FIELD_ARGS): Update.
7367 (smash_to_method_type): Update prototype.
7369 * c-typeprint.c (cp_type_print_method_args): Take method type
7370 instead of argument list. Use new argument layout. Simplify.
7371 (c_type_print_args): Use new argument layout. Simplify.
7372 (c_type_print_base): Update call to cp_type_print_method_args.
7373 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7374 argument; use die->type instead. Update call to
7375 smash_to_method_type.
7376 (read_structure_scope): Update call to dwarf2_add_member_fn.
7377 * gdbtypes.c (allocate_stub_method): Update comment.
7378 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7379 Use new argument layout.
7380 (check_stub_method): Use new argument layout. Don't count
7381 void as an argument.
7382 (print_arg_types): Update comments. Use new argument layout.
7383 (recursive_dump_type): Don't print arg_types member.
7384 * hpread.c (hpread_read_struct_type): Use new argument layout.
7385 (fixup_class_method_type): Likewise.
7386 (hpread_type_lookup): Likewise.
7387 * stabsread.c (read_type): Update calls to read_args and
7388 smash_to_method_type.
7389 (read_args): Use new argument layout. Simplify.
7390 * valops.c (typecmp): Use new argument layout. Update parameters
7391 and comments. Simplify.
7392 (hand_function_call): Use new argument layout.
7393 (search_struct_method): Update call to typecmp.
7394 (find_overload_match): Use new argument layout.
7396 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7398 * NEWS: Mention multithreaded debug support for gdbserver.
7400 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7402 * MAINTAINERS: Mention NEWS.
7404 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7406 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7407 (struct mips_objfile_private, compare_pdr_entries): New.
7408 (non_heuristic_proc_desc): Read the ".pdr" section if it
7411 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7413 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7414 (arm_debug): New static variable.
7415 (_initialize_arm_tdep): Add ``set debug arm'' command.
7417 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7419 * Makefile.in (sim_arm_h): Define.
7420 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7421 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7422 (arm_register_sim_regno): New function, map an internal REGNUM
7423 onto a simulator register number.
7424 (arm_gdbarch_init): Set register_sim_regno.
7426 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7428 * MAINTAINERS: Add self.
7430 2002-06-11 Jim Blandy <jimb@redhat.com>
7432 * source.c (source_info): Mention whether the symtab has
7433 information about preprocessor macros.
7435 Call the command `info macro', not `show macro'.
7436 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7438 (_initialize_macrocmd): Register `info_macro_command' in
7439 `infolist', not `showlist'.
7441 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7443 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7444 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7445 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7446 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7447 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7449 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7450 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7451 (_initialize_mips_tdep): Remove dead code.
7452 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7453 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7454 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7455 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7456 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7457 MIPS_LAST_FP_ARG_REGNUM): Remove.
7459 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7461 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7462 (unwind_tmp_obstack_free, parse_frame_info)
7463 (update_context, cfi_read_fp, cfi_write_fp)
7464 (cfi_frame_chain, cfi_init_extra_frame_info)
7465 (cfi_virtual_frame_pointer): Use the above function.
7466 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7468 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7470 * v850-tdep.c (v850_type_is_scalar): New function.
7471 (v850_use_struct_convention): Match current gcc implementation
7472 as close as possible.
7473 (v850_push_arguments): Fix stack_offset handling. Don't write
7474 struct_addr into register. This is done by v850_store_struct_return.
7475 (v850_extract_return_value): Care for structs.
7476 (v850_store_return_value): Ditto.
7477 (v850_store_struct_return): Actually write address.
7479 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7481 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7482 without debug information too.
7484 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7486 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7487 Make multi-arch pure.
7488 * gdbarch.h, gdbarch.c: Re-generate.
7489 * arm-tdep.c (arm_print_float_info): Update.
7490 * arch-utils.h (default_print_float_info): Update.
7491 * arch-utils.c (default_print_float_info): Update.
7492 * infcmd.c (float_info): Update call.
7494 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7496 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7497 the front of the initialize list.
7499 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7501 * infrun.c (struct inferior_status): Replace fields
7502 selected_frame_address and selected_level with field
7504 (save_inferior_status): Update. Use get_frame_id.
7505 (struct restore_selected_frame_args): Delete.
7506 (restore_selected_frame): Update. Use frame_find_by_id.
7507 (restore_inferior_status): Update.
7509 * breakpoint.h (struct breakpoint): Change type of
7510 watchpoint_frame to frame_id.
7511 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7512 call to get_current_frame.
7513 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7515 (watchpoint_check): Use frame_find_by_id.
7517 * frame.h (record_selected_frame): Delete declaration.
7518 * stack.c (record_selected_frame): Delete function.
7520 * frame.h (struct frame_id): Define.
7521 (get_frame_id): Declare.
7522 (frame_find_by_id): Declare.
7523 * frame.c (frame_find_by_id): New function.
7524 (get_frame_id): New function.
7526 2002-06-10 Andrey Volkov <avolkov@transas.com>
7528 * ser-e7kpc.c: Fix duplicated define and call of
7529 _initialize_ser_e7000pc
7531 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7533 * signals/signals.c (target_signal_from_host): Fix #ifdef
7535 (do_target_signal_to_host): Likewise.
7537 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7539 * mips-tdep.c (mips_find_abi_section): New function.
7540 (mips_gdbarch_init): Call it.
7542 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7544 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7545 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7546 after Andrew's 2002-06-08 gdbarch change.
7548 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7550 * i386-linux-nat.c (suppy_gregset): Don't supply
7551 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7553 (fill_gregset): Don't fetch it under the same circumstances.
7555 2002-06-09 Andrew Cagney <cagney@redhat.com>
7557 * Makefile.in (callback_h): Define.
7558 (remote_sim_h): Update path to remote-sim.h.
7559 (remote-rdp.o): Add $(callback_h).
7560 (remote-sim.o): Use $(callback_h).
7561 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7562 * remote-rdp.c: Include "gdb/callback.h".
7564 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7566 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7567 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7569 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7571 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7572 * rdi-share/serpardr.c: Ditto.
7573 * rdi-share/unixcomm.c: Ditto.
7574 * rdi-share/serdrv.c: Ditto.
7575 * rdi-share/hostchan.h: Ditto.
7576 * rdi-share/hostchan.c: Ditto.
7577 * rdi-share/host.h: Ditto.
7578 * rdi-share/devsw.c: Ditto.
7580 * objfiles.h: Change type of obj_private to void pointer.
7581 * pa64solib.c: Update copyright. Don't include "assert.h", use
7582 strcmp instead of STREQ, use LONGEST, do not use PTR
7583 * somsolib.c: Ditto.
7585 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7586 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7587 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7589 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7591 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7592 (default_get_saved_register): Delete function.
7593 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7594 generic_unwind_get_saved_register.
7595 * gdbarch.h, gdbarch.c: Re-generate.
7597 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7599 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7600 generic_func_frame_chain_valid.
7601 * gdbarch.h, gdbarch.c: Re-generate.
7602 * blockframe.c (generic_func_frame_chain_valid): Only check
7603 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7604 passing FP to PC_IN_CALL_DUMMY.
7607 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7609 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7610 (register_gdbarch_data): Initialize init_p.
7611 (gdbarch_data): Initialize data pointer using the init function.
7612 (init_gdbarch_data): Delete function.
7613 (gdbarch_update_p): Update.
7614 (initialize_non_multiarch): Update.
7615 (struct gdbarch): Add field initialized_p.
7616 * gdbarch.h, gdbarch.c: Re-generate.
7618 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7620 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7621 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7622 better do the things actually here.
7623 * x86-64-tdep.c (x86_64_register_name2nr): New.
7624 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7625 (x86_64_gdbarch_init): Respect the above change.
7626 * x86-64-tdep.h (x86_64_register_name2nr)
7627 (x86_64_register_nr2name): Add prototypes.
7628 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7630 2002-06-06 Michael Snyder <msnyder@redhat.com>
7632 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7633 Delete extra braces and re-indent.
7634 (d10v_store_return_value): Char return values
7635 must be shifted over by one byte in R0.
7636 (d10v_extract_return_value): Delete extra braces, re-indent.
7638 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7640 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7641 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7642 (d10v_integer_to_address): Rewrite.
7643 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7644 the d10v specific functions which take care of converting to the
7647 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7649 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7650 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7652 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7654 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7656 * config/tm-linux.h: Ditto.
7657 * config/alpha/tm-alphalinux.h: Ditto.
7658 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7659 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7660 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7661 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7662 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7663 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7664 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7665 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7666 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7667 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7668 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7669 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7670 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7671 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7672 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7673 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7674 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7675 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7676 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7677 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7678 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7679 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7680 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7681 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7682 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7683 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7684 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7685 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7686 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7687 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7688 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7689 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7690 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7691 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7692 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7693 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7694 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7696 2002-05-04 Aidan Skinner <aidan@velvet.net>
7698 * ada-exp.tab.c: New file
7699 * ada-exp.y: New file
7700 * ada-lang.c: New file
7701 * ada-lang.h: New file
7702 * ada-lex.c: New file
7703 * ada-lex.l: New file
7704 * ada-tasks.c: New file
7705 * ada-typeprint.c: New file
7706 * ada-valprint.c: New file
7708 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7710 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7711 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7713 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7715 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7716 insetead of ppc-linux-tdep.o.
7717 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7718 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7720 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7722 2002-05-07 Christian Groessler <chris@groessler.org>
7723 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7724 bit register contents for little endian hosts.
7726 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7728 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7731 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7733 * gdbarch.h: Regenerate.
7735 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7737 * MAINTAINERS: Add everyone to write-after-approval list.
7739 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7741 * stack.c (frame_info): Use frame_register_unwind instead of
7742 saved_regs. Mention when the SP is on the stack or in a register.
7744 * frame.h (frame_register_unwind_ftype): Define. Document.
7745 (struct frame_info): Add field register_unwind and
7746 register_unwind_cache.
7747 (frame_register_unwind): Declare.
7748 (generic_unwind_get_saved_register): Declare.
7750 * frame.c (frame_register_unwind): New function.
7751 (generic_unwind_get_saved_register): New function.
7753 * blockframe.c (generic_call_dummy_register_unwind): New function.
7754 (frame_saved_regs_register_unwind): New function.
7755 (set_unwind_by_pc): New function.
7756 (create_new_frame): New function.
7757 (get_prev_frame): New function.
7759 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7761 * a29k-share/: Delete directory.
7762 * remote-vx29k.c: Delete file.
7764 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7766 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7767 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7769 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7771 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7772 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7775 (sparcnbsd-tdep.o): New dependency lists.
7776 * NEWS: Note new UltraSPARC NetBSD native configuration.
7777 * configure.host (sparc64-*-netbsd*): New host.
7778 * configure.tgt (sparc-*-netbsdelf*)
7779 (sparc-*-netbsd*): Set gdb_target to nbsd.
7780 (sparc64-*-netbsd*): New target.
7781 * sparc64nbsd-nat.c: New file.
7782 * sparcnbsd-nat.c: New file.
7783 * sparcnbsd-tdep.c: New file.
7784 * sparcnbsd-tdep.h: New file.
7785 * config/sparc/nbsd.mt: New file.
7786 * config/sparc/nbsd64.mh: New file.
7787 * config/sparc/nbsd64.mt: New file.
7788 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7789 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7791 * config/sparc/nbsdaout.mt: Remove.
7792 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7793 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7795 * config/sparc/nbsdelf.mt: Remove.
7796 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7797 sparc-nat.c compatiblity defines.
7798 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7799 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7800 * config/sparc/tm-nbsd64.h: New file.
7801 * config/sparc/tm-nbsdaout.h: Remove.
7802 * config/sparc/xm-nbsd.h: Remove.
7804 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7806 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7807 * sparc-tdep.c: Include osabi.h.
7808 (gdbarch_tdep): Add osabi member.
7809 (_initialize_sparc_tdep): Use gdbarch_register.
7810 (sparc_gdbarch_init): Use generic OS ABI framework.
7811 (sparc_dump_tdep): New function.
7813 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7815 * corefile.c (do_captured_read_memory_integer): Return non-zero
7817 (safe_read_memory_integer): Copy result of memory read when
7818 status is non-zero. Also, add comments.
7820 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7822 * Makefile.in (ppc_tdep_h): Define.
7825 (rs6000-tdep.o): Use $(ppc_tdep_h).
7828 (ppcnbsd-tdep.o): New dependency lists.
7829 * ppc-tdep.h: Use generic OS ABI framework.
7830 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7831 (ppc_linux_init_abi): New functions.
7832 (ppc_sysv_abi_broken_use_struct_convention)
7833 (ppc_sysv_abi_use_struct_convention)
7834 (ppc_sysv_abi_push_arguments): Move to...
7835 * ppc-sysv-tdep.c: ...here.
7836 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7837 * rs6000-tdep.c (process_note_abi_tag_sections)
7838 (get_elfosabi): Remove.
7839 (rs6000_gdbarch_init): Use generic OS ABI framework.
7840 (rs6000_dump_tdep): New function.
7841 (_initialize_rs6000_tdep): Use gdbarch_register.
7842 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7843 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7844 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7845 of ppc-linux-tdep.o.
7846 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7847 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7848 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7849 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7850 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7851 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7853 2002-05-29 Jim Blandy <jimb@redhat.com>
7855 * macroscope.c (default_macro_scope): Put `void' in empty argument
7858 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7860 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7861 * arch-utils.c: Include "sim-regno.h".
7862 * gdbarch.sh: Don't include "sim-regno.h".
7863 * gdbarch.h, gdbarch.c: Regenerate.
7864 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7866 * arch-utils.h (legacy_register_sim_regno): To here.
7867 * remote-sim.c (legacy_register_sim_regno): Move function from
7869 * arch-utils.c (legacy_register_sim_regno): To here.
7871 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7873 * sim-regno.h: New file.
7874 * Makefile.in (sim_regno_h): Define.
7875 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7876 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7877 (legacy_register_sim_regno): New function.
7878 (one2one_register_sim_regno): New function.
7879 (gdbsim_fetch_register): Rewrite.
7880 (gdbsim_store_register): Only store a register when
7881 REGISTER_SIM_REGNO is valid.
7882 * d10v-tdep.c: Include "sim-regno.h".
7883 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7884 (d10v_ts3_register_sim_regno): Ditto.
7885 * gdbarch.sh: Include "sim-regno.h".
7886 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7887 * gdbarch.h, gdbarch.c: Regenerate.
7888 * arch-utils.h (default_register_sim_regno): Delete declaration.
7889 * arch-utils.c (default_register_sim_regno): Delete function.
7891 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7893 * ppcnbsd-nat.c: Rewrite.
7894 * ppcnbsd-tdep.c: New file.
7895 * ppcnbsd-tdep.h: New file.
7896 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7897 solib.o, and solib-svr4.o.
7898 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7899 nbsd-tdep.o, and corelow.o.
7901 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7903 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7904 `tr' and `sed'. Mention that `broken' targets are not expected to
7907 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7909 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7910 Let PC point right after the prologue before looking up symbols.
7912 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7914 * i386-tdep.c (i386_register_virtual_type): Return
7915 builtin_type_vec128i for SSE registers.
7917 * gdbtypes.h (builtin_type_vec128i): Declare.
7919 * gdbtypes.c (build_builtin_type_vec128i): New function.
7920 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7921 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7922 (build_gdbtypes): Initialize new builtin vector types.
7923 (_initialize_gdbtypes): Register new vector types with gdbarch.
7925 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7927 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7928 since it has been multi-arch'd.
7929 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7930 Move Alpha and VAX multi-arch news entries to same section
7931 as other multi-arch news.
7933 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7935 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7936 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7937 static. Rename some register numbers to put them in ns32k-tdep
7939 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7940 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7942 (_initialize_ns32k_tdep): Use gdbarch_register.
7943 * ns32k-tdep.h: New file.
7944 * ns32knbsd-tdep.c: New file.
7945 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7946 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7947 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7948 REGISTER_BYTES, REGISTER_BYTE): Remove.
7949 * config/ns32k/tm-ns32k.h: New file.
7950 * config/ns32k/tm-umax.h: Remove.
7952 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7954 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7955 ns32k_store_struct_return, ns32k_extract_return_value,
7956 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7958 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7959 ns32k_saved_pc_after_call.
7960 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7961 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7962 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7963 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7964 ns32k_extract_struct_value_address.
7966 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7968 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7969 ns32k_fix_call_dummy): New.
7970 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7971 ns32k_call_dummy_words.
7972 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7973 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7974 CALL_DUMMY_NARGS): Remove.
7975 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7977 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7979 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7980 ns32k_frame_saved_pc, ns32k_frame_args_address,
7981 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7982 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7983 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7984 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7985 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7986 (BREAKPOINT): Remove..
7987 (FRAME_CHAIN): Define as ns32k_frame_chain.
7988 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7989 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7990 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7991 (FRAME_FIND_SAVED_REGS): Remove.
7992 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7993 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7994 (POP_FRAME): Define as ns32k_pop_frame.
7996 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7998 * ns32k-tdep.c (ns32k_register_byte_32082,
7999 ns32k_register_byte_32382, ns32k_register_raw_size,
8000 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8002 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8003 ns32k_register_byte_32382.
8004 * config/ns32k/tm-umax.h: Update copyright years.
8005 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8006 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8007 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8008 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8009 (ns32k_get_enter_addr): Fix prototype.
8011 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8013 * ns32k-tdep.c: Update copyright years.
8014 (ns32k_register_name_32082): New function.
8015 (ns32k_register_name_32382): Ditto.
8016 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8017 (REGISTER_NAME): Define as ns32k_register_name_32382.
8018 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8019 (REGISTER_NAME): Define as ns32k_register_name_32082.
8021 2002-05-24 Jim Blandy <jimb@redhat.com>
8023 * dwarf2read.c (free_line_header): Use xfree, not free.
8025 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8027 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8028 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8030 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8032 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8034 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8036 From Ross Alexander at NEC Europe:
8037 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8039 2002-05-23 Michael Snyder <msnyder@redhat.com>
8041 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8042 for input, rather than parse_and_eval_address.
8044 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8046 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8047 * Makefile.in (sim_d10v_h): Update definition.
8049 2002-05-24 Andrew Cagney <cagney@redhat.com>
8051 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8052 change `2002-05-22 Michael Snyder' below.
8053 (d10v_push_arguments): Ditto.
8054 (d10v_extract_return_value): Ditto.
8056 2002-05-23 Jim Blandy <jimb@redhat.com>
8058 * macrotab.c (check_for_redefinition): Don't complain if the new
8059 definition is the same as the previous one. Take more arguments
8060 to allow the comparison.
8061 (macro_define_object, macro_define_function): Pass more arguments
8062 to check_for_redefinition.
8064 2002-05-22 Michael Snyder <msnyder@redhat.com>
8066 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8067 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8068 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8069 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8070 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8071 Add a temp variable to save a call (and a memory read).
8072 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8073 if possible (so that PC_IN_CALL_DUMMY will work).
8075 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8077 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8079 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8081 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8083 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8084 (dwarf2_build_frame_info): Add offset to fde->initial_location
8085 so that frames of shared libraries are mapped correctly.
8086 (execute_stack_op): Change type of 'result' from ULONGEST to
8089 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8091 * config/alpha/tm-nbsd.h: Include solib.h.
8093 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8095 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8096 assumptions about the host's byte order.
8098 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8100 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8102 * alphanbsd-tdep.c: Include solib-svr4.h.
8103 * shnbsd-tdep.c: Ditto.
8105 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8107 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8108 nbsd-tdep.h to dependency list.
8109 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8110 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8111 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8112 nbsdaout.mh and nbsdelf.mh consistently.
8113 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8114 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8115 nbsdaout.mt and nbsdelf.mh consistently.
8116 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8117 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8118 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8119 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8120 a.out shared library stuff from here...
8121 * config/nm-nbsdaout.h: ...to here.
8122 * config/tm-nbsd.h: Remove.
8123 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8124 * config/arm/nbsd.mh: Remove.
8125 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8127 * config/arm/nbsdaout.mh: New file.
8128 * config/arm/nbsdelf.mh: New file.
8129 * config/arm/nm-nbsdaout.h: New file.
8130 * config/i386/nbsd.mh: Remove.
8131 * config/i386/nbsd.mt: Remove.
8132 * config/i386/nbsdaout.mh: New file.
8133 * config/i386/nbsdaout.mt: New file.
8134 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8135 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8136 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8137 i386_register_u_addr): Remove.
8138 * config/i386/nm-nbsdaout.h: New file.
8139 * config/i386/nm-nbsdelf.h: Remove.
8140 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8141 (USE_STRUCT_CONVENTION): Remove.
8142 * config/i386/tm-nbsdaout.h: New file.
8143 * config/i386/tm-nbsdelf.h: Remove.
8144 * config/m68k/nbsd.mh: Remove.
8145 * config/m68k/nbsd.mt: Remove.
8146 * config/m68k/nbsdaout.mh: New file.
8147 * config/m68k/nbsdaout.mt: New file.
8148 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8149 * config/m68k/nm-nbsdaout.h: New file.
8150 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8151 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8152 * config/ns32k/nbsd.mh: Remove.
8153 * config/ns32k/nbsd.mt: Remove.
8154 * config/ns32k/nbsdaout.mh: New file.
8155 * config/ns32k/nbsdaout.mt: New file.
8156 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8157 * config/ns32k/nm-nbsdaout.h: New file.
8158 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8159 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8160 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8161 (SVR4_SHARED_LIBS): Remove.
8162 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8163 * config/sparc/nbsd.mh: Remove.
8164 * config/sparc/nbsd.mt: Remove.
8165 * config/sparc/nbsdaout.mh: New file.
8166 * config/sparc/nbsdaout.mt: New file.
8167 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8168 * config/sparc/nbsdelf.mt: New file.
8169 * config/sparc/nm-nbsdaout.h: New file.
8170 * config/sparc/nm-nbsdelf.h: Remove.
8171 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8172 * config/sparc/tm-nbsdaout.h: New file.
8174 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8176 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8178 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8180 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8182 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8184 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8186 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8188 * NEWS: Note new MIPS NetBSD native configuration.
8189 * configure.host (mips*-*-netbsd*): New host.
8190 * configure.tgt (mips*-*-netbsd*): New target.
8191 * mipsnbsd-nat.c: New file.
8192 * mipsnbsd-tdep.c: New file.
8193 * mipsnbsd-tdep.h: New file.
8194 * config/mips/nbsd.mh: New file.
8195 * config/mips/nbsd.mt: New file.
8196 * config/mips/nm-nbsd.h: New file.
8197 * config/mips/tm-nbsd.h: New file.
8199 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8201 * Makefile.in (SFILES): Add osabi.c.
8202 (COMMON_OBS): Add osabi.o.
8203 (osabi.o): New dependency list.
8204 * osabi.c: New file.
8205 * osabi.h: New file.
8206 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8208 * Makefile.in (alpha_tdep_h): Define and use instead of
8210 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8211 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8213 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8214 * alpha-tdep.h: Include osabi.h.
8215 (alpha_abi): Remove.
8216 (gdbarch_tdep): Use generic OS ABI framework.
8217 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8218 gdbarch_register_osabi.
8219 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8220 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8221 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8223 * Makefile.in (sh_tdep_h): Add osabi.h.
8224 * sh-tdep.h (sh_osabi): Remove.
8225 (gdbarch_tdep): Use generic OS ABI framework.
8226 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8227 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8228 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8229 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8231 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8232 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8233 gdbarch_register_osabi.
8234 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8235 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8236 (get_elfosabi): Rename to...
8237 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8238 ABI framework support routines.
8239 (arm_gdbarch_init): Use generic OS ABI framework.
8240 (arm_dump_tdep): Likewise.
8241 (_initialize_arm_tdep): Likewise.
8242 * arm-tdep.h: Include osabi.h.
8244 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8246 (arm_gdbarch_register_os_abi): Remove prototype.
8247 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8248 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8250 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8251 * mips-tdep.c: Include osabi.h.
8252 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8255 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8257 * h8300-tdep.c: Fix formatting.
8259 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8261 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8262 printing vector registers.
8264 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8266 From Fernando Nasser:
8267 * remote.c (remote_async_open_1): Re-throw the exception when the
8269 (remote_cisco_open): Ditto.
8270 (remote_open_1): Ditto.
8272 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8274 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8275 (remote_start_remote): Add uiout parameter. Pass through to
8276 remote_start_remote_dummy.
8277 (remote_open_1): Use catch_exception instead of catch_errors.
8278 (remote_async_open_1): Ditto.
8279 (remote_cisco_open): Ditto.
8281 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8283 * remote.c (remote_start_remote): Replace PTR with void pointer.
8284 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8287 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8289 * gdb_indent.sh: Allow the script to be run in the sim directory.
8291 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8293 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8294 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8296 * corelow.c (core_open): Only call set_gdbarch_from_file if
8299 2002-05-17 Andrey Volkov <avolkov@transas.com>
8301 * h8300-tdep.c: Add support of EXR register
8302 * config/h8300/tm-h8300.h: Ditto.
8304 2002-05-17 Andrey Volkov <avolkov@transas.com>
8306 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8308 2002-05-17 Andrey Volkov <avolkov@transas.com>
8310 * h8300-tdep.c: Change literal regnums to REGNO.
8312 2002-05-17 Jim Blandy <jimb@redhat.com>
8314 * NEWS: Note addition of macro support.
8316 Expand preprocessor macros in C expressions.
8317 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8318 (scan_macro_expansion, scanning_macro_expansion,
8319 finished_macro_expansion): New function declarations.
8320 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8321 variable declarations.
8322 * parser-defs.h (expression_context_pc): New declaration.
8323 * parse.c (expression_context_pc): New variable.
8324 (parse_exp_1): Set expression_context_pc, as well as
8325 expression_context_block.
8326 * c-exp.y (yylex): If we're not already reading the result of a
8327 macro expansion, try to macro-expand the next token. When we're
8328 done scanning a macro expansion, switch back to the mainline text.
8329 Commas and `if's in a macro's expansion don't terminate the input.
8330 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8331 (macro_original_text, macro_expanded_text,
8332 expression_macro_lookup_func, expression_macro_lookup_baton): New
8334 (scan_macro_expansion, scanning_macro_expansion,
8335 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8336 c_preprocess_and_parse): New functions.
8337 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8338 c_preprocess_and_parse, instead of c_parse.
8339 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8340 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8342 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8344 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8345 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8346 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8348 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8350 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8352 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8354 * Makefile.in (sh_tdep_h): Define and use.
8355 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8356 register enum): Move to...
8357 * * sh-tdep.h: ...here.
8358 * sh-tdep.c: Include sh-tdep.h.
8359 * sh3-rom.c: Likewise.
8360 * shnbsd-tdep.c: Likewise.
8362 2002-05-16 Michael Snyder <msnyder@redhat.com>
8364 * arm-tdep.c: Spelling fix in comment.
8366 2002-05-16 Jim Blandy <jimb@redhat.com>
8368 Add commands for manually expanding macros and showing their
8370 * macrocmd.c, macroscope.c, macroscope.h: New files.
8371 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8372 (macroscope_h): New variable.
8373 (HFILES_NO_SRCDIR): Add macroscope.h.
8374 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8375 (macroscope.o, macrocmd.o): New rules.
8377 Teach the Dwarf 2 reader to read macro information.
8378 * dwarf2read.c: #include "macrotab.h".
8379 (dwarf_macinfo_buffer): New variable.
8380 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8382 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8383 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8384 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8385 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8386 dwarf2_macro_spaces_in_definition): New complaints.
8387 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8388 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8389 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8390 the partial symbol table.
8391 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8392 from what's recorded in the partial symbol table.
8393 (read_file_scope): If the compilation unit has a
8394 `DW_AT_macro_info' attribute, read its macro information.
8395 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8397 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8400 * ser-tcp.c: Don't include <netinet/udp.h>.
8402 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8404 * MAINTAINERS: Update my email address.
8406 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8408 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8409 include file of the same name.
8411 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8413 * configure.tgt: Mark v850 as multi-arched.
8414 * config/v850/tm-v850.h: Remove file.
8415 * config/v850/v850.mt: Eliminate TM_FILE.
8417 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8419 * v850-tdep.c: Full multi-arch.
8420 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8421 Define GDB_MULTI_ARCH to 2.
8423 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8425 * p-exp.y (current_type): New static variable.
8426 Carries the type of the expression at the position that is parsed.
8427 (push_current_type, pop_current_type): Two new functions. Used
8428 to store/restore current_type in expression on specific tokens.
8429 (search_field): New static variable. Set to one after parsing a point
8430 as at that point only a FIELDNAME token should be searched.
8431 (FIELDNAME): New token. After a point only a token belonging to
8432 current_type type definition is allowed.
8433 (all over token rules): reset and change current_type according
8435 (exp '[' rule): insert implicit array index field if
8436 exp is a pascal string type.
8438 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8440 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8441 frame info. Use frame_info's saved_regs instead of matching member
8442 in extra_frame_info throughout.
8443 (v850_frame_init_saved_regs): New function.
8444 (v850_init_extra_frame_info): Move most functionality into
8445 v850_frame_init_saved_regs().
8446 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8447 (v850_frame_find_saved_regs): Remove declaration.
8448 (FRAME_FIND_SAVED_REGS): Remove definition.
8449 (v850_frame_init_saved_regs): Add declaration.
8450 (FRAME_INIT_SAVED_REGS): Add definition.
8452 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8454 * v850-tdep.c: Begin multi-arch'ing v850.
8455 (v850_target_architecture_hook): Remove function.
8456 (v850_gdbarch_init): New function. Add code previously in
8457 v850_target_architecture_hook().
8458 (_initialize_v850_tdep): Don't set target_architecture_hook.
8459 Call register_gdbarch_init() instead.
8461 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8463 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8464 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8465 (fixup_class_method_type): Likewise.
8467 2002-05-15 Jim Blandy <jimb@redhat.com>
8469 Add macro structures to GDB's symbol tables. Nobody puts anything
8471 * symtab.h (struct symtab): New member: `macro_table'.
8472 * buildsym.h (pending_macros): New global variable.
8473 * buildsym.c: #include "macrotab.h".
8474 (buildsym_init): Initialize `pending_macros'.
8475 (end_symtab): If we found macro information while reading a CU's
8476 debugging info, do build a symtab structure for it. Make the
8477 symtab point to the macro information, and clear the
8478 `pending_macros' pointer which held it while we were reading the
8480 (really_free_pendings): Free any pending macro table.
8481 * objfiles.h (struct objfile): New member: `macro_cache'.
8482 * objfiles.c (allocate_objfile): Set allocate and free functions
8483 for the macro cache's objstack.
8484 (free_objfile): Empty the macro cache's obstack.
8485 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8486 set new allocate and free functions for it.
8487 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8488 free functions for the macro cache's objstack. (Why is this
8489 function building its own objfile?)
8490 * symmisc.c (print_objfile_statistics): Print statistics on the
8492 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8494 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8496 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8497 (REGISTER_U_ADDR): Delete definition.
8498 (arm_register_u_addr): Delete declaration.
8500 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8502 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8503 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8505 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8507 * regcache.c (register_valid): Revise comments refering to "Not
8508 available" and "unavailable".
8509 * frame.c (frame_register_read): Ditto.
8510 * findvar.c (value_of_register): Ditto.
8512 2002-05-15 Andrew Cagney <cagney@redhat.com>
8514 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8515 (remote-sim.o): Update dependencies.
8516 (d10v-tdep.o): Specify dependencies.
8517 (sim_d10v_h): Define.
8519 2002-05-14 Jim Blandy <jimb@redhat.com>
8521 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8522 * macrotab.c (macro_lookup_inclusion, find_definition,
8523 new_macro_table): Same.
8525 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8526 not `! strcmp ()'. This is a dubious improvement.
8527 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8529 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8530 although it's not necessary, to avoid a warning.
8532 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8534 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8535 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8536 TYPE_INSTANCE_FLAGS.
8537 (struct main_type): New.
8538 (struct type): Move most members to struct main_type. Change
8539 cv_type and as_type to new type_chain member. Add instance_flags.
8540 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8541 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8542 (finish_cv_type): Remove prototype.
8543 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8545 (alloc_type_instance): New function.
8546 (smash_type): New function.
8547 (make_pointer_type, make_reference_type, make_function_type)
8548 (smash_to_member_type, smash_to_method_type): Call smash_type.
8549 (make_qualified_type): New function.
8550 (make_type_with_address_space): Call make_qualified_type.
8551 (make_cv_type): Likewise.
8552 (finish_cv_type): Remove unnecessary function.
8553 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8554 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8555 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8556 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8557 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8558 * hpread.c (hpread_read_struct_type): Likewise.
8559 * stabsread.c (read_struct_type): Likewise.
8561 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8563 * configure.tgt: Add a catch all sh* target, for cases like
8564 sh[2,3,4]-elf and sh-hms.
8566 2002-05-14 Keith Seitz <keiths@redhat.com>
8568 * event-loop.c (create_file_handler): Don't do anything but
8569 update data when we are given a fd which we are already
8572 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8574 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8575 (update_context): Use __func__ in warnings.
8577 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8579 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8580 and tcp_close to net_open and net_close.
8581 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8582 using UDP if requested. Don't try to disable Nagle on UDP
8584 * remote.c (remote_serial_open): New function. Warn about UDP.
8585 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8587 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8589 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8591 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8593 * configure.tgt: Remove sh-hms target.
8594 * MAINTAINERS: Don't list sh-hms as a separate target.
8596 2002-05-13 Jim Blandy <jimb@redhat.com>
8598 Add first preprocessor macro-expansion files.
8599 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8600 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8601 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8602 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8603 (COMMON_OBS): Add macrotab.o, macroexp.o.
8604 (macroexp.o, macrotab.o): New rules.
8606 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8608 * config/m88k/tm-m88k.h: Update copyright.
8609 (m88k_target_write_pc): Declare
8610 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8611 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8612 (SHIFT_INST_REGS): Update definition.
8613 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8614 using old definition of TARGET_WRITE_PC.
8615 * regcache.c (generic_target_write_pc): Delete code handling
8617 * gdbarch.sh (NNPC_REGNUM): Delete.
8618 * gdbarch.h, gdbarch.c: Regenerate.
8620 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8622 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8625 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8627 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8628 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8629 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8631 * c-typeprint.c (cp_type_print_method_args): Likewise.
8632 (c_type_print_args): Likewise.
8633 * d10v-tdep.c (d10v_push_arguments): Likewise.
8634 (d10v_extract_return_value): Likewise.
8635 * expprint.c (print_subexp): Likewise.
8636 * gdbtypes.c (lookup_primitive_typename): Likewise.
8637 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8638 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8639 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8640 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8641 (TYPE_VECTOR): Likewise.
8642 * hpread.c (hpread_read_struct_type)
8643 (fix_static_member_physnames, fixup_class_method_type)
8644 (hpread_type_lookup): Likewise.
8645 * mdebugread.c (parse_symbol, parse_type): Likewise.
8646 * p-lang.c (is_pascal_string_type): Likewise.
8647 * valops.c (hand_function_call): Likewise.
8648 * x86-64-tdep.c (classify_argument): Likewise.
8650 * hpread.c (hpread_read_function_type)
8651 (hpread_read_doc_function_type): Call replace_type.
8652 * dstread.c (create_new_type): Delete.
8653 (decode_dst_structure, process_dst_function): Call alloc_type.
8654 Use type access macros.
8656 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8658 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8659 the're not supported by the current architecture.
8660 (i387_fill_fxsave): Likewise.
8662 2002-05-12 Fred Fish <fnf@redhat.com>
8664 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8665 sect_index_xxx members to index the first slot in section_offsets
8666 if all of the section_offsets are zero.
8668 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8670 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8671 checked in with last change.
8673 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8675 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8676 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8679 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8681 * Makefile.in: Update dependencies.
8683 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8685 * language.c (local_hex_string_custom): Simplify. Do not depend
8686 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8688 * memattr.c (mem_info_command): Replace calls to
8689 longest_local_hex_string and longest_local_hex_string_custom.
8690 * buildsym.c (make_blockvector): Ditto.
8691 * solib.c (info_sharedlibrary_command): Ditto.
8692 * tracepoint.c (tracepoints_info): Ditto.
8693 * symtab.c (print_msymbol_info): Ditto.
8695 * language.c (local_hex_string): Delete.
8696 (local_hex_string_custom): Delete.
8697 (longest_local_hex_string): Rename to local_hex_string.
8698 (longest_local_hex_string_custom): Rename to
8699 local_hex_string_custom.
8700 * language.h (local_hex_string): Change parameter type to LONGEST.
8701 (local_hex_string_custom): Ditto.
8702 (longest_local_hex_string): Delete declaration.
8703 (longest_local_hex_string_custom): Ditto.
8705 * solib.c: Update copyright.
8706 * memattr.c: Update copyright.
8708 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8710 * arch-utils.h (legacy_register_to_value): Declare.
8711 (legacy_value_to_register): Declare.
8712 (legacy_convert_register_p): Declare.
8713 * arch-utils.c (legacy_register_to_value): New function.
8714 (legacy_value_to_register): New function.
8715 (legacy_convert_register_p): New function.
8717 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8718 (VALUE_TO_REGISTER): Define.
8719 (CONVERT_REGISTER_P): Define.
8720 * gdbarch.h, gdbarch.c: Regenerate.
8722 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8724 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8727 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8728 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8730 * Makefile.in: Update dependencies for valops.c.
8731 * valops.c: Include "gdb_assert.h".
8732 (typecmp): Skip THIS parameter to methods.
8733 (find_method_list): Remove static_memfuncp argument,
8734 update callers. Check for stub methods.
8735 (find_value_oload_method_list): Don't set *static_memfuncp.
8736 (find_overload_match): Don't check for stub methods. Assert
8737 that methods are not stubbed. Handle static methods.
8738 (value_find_oload_method_list): Remove static_memfuncp argument.
8739 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8740 to the argument list for static stub methods.
8741 * value.h (value_find_oload_method_list): Update prototype.
8743 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8745 * arch-utils.h (generic_register_size): Declare.
8746 (generic_register_raw_size, generic_register_virtual_size): Delete
8748 * arch-utils.c (generic_register_raw_size): Delete.
8749 (generic_register_size): New function.
8750 (generic_register_virtual_size): Delete.
8752 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8753 default generic_register_size.
8754 * gdbarch.h, gdbarch.c: Re-generate.
8756 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8757 register_virtual_size.
8758 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8759 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8761 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8763 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8764 * gdbarch.h, gdbarch.c: Regenerate.
8765 * gnu-v3-abi.c: Update copyright.
8766 (vtable_address_point_offset): Update.
8767 (gnuv3_rtti_type): Update.
8768 (gnuv3_baseclass_offset): Update.
8769 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8770 (init_fetch_link_map_offsets): Update.
8771 * remote.c (get_remote_state): Update.
8773 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8775 * TODO: Remove value_headof/value_from_vtable_info comment.
8776 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8777 * values.c (value_headof, value_from_vtable_info): Delete.
8778 * value.h (value_from_vtable_info): Delete prototype.
8780 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8782 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8783 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8785 (gdb_assert_h): Define.
8786 (gdb_wait_h): Define.
8787 (gdb_regex_h): Define.
8789 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8791 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8792 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8794 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8796 * nbsd-tdep.c: Fix comment.
8798 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8800 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8801 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8802 (nbsd-tdep.o): New dependency list.
8803 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8805 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8806 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8807 * nbsd-tdep.c: New file.
8808 * nbsd-tdep.h: New file.
8809 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8811 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8812 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8813 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8814 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8816 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8818 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8819 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8820 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8821 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8822 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8823 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8825 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8827 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8828 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8829 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8830 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8831 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8832 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8833 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8835 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8837 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8838 fetch_elfcore_registers to...
8839 * i386nbsd-tdep.c: ...here.
8840 (i386nbsd_use_struct_convention): Rename to...
8841 (i386nbsd_aout_use_struct_convention): ...this.
8842 (i386nbsd_supply_reg): New function.
8843 (i386nbsd_fill_reg): New function.
8844 (fetch_core_registers): Use i386nbsd_supply_reg.
8845 (fetch_elfcore_registers): Likewise.
8846 (_initialize_i386nbsd_tdep): New function.
8847 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8848 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8849 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8850 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8851 (i386nbsd_aout_use_struct_convention): ...this.
8853 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8855 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8856 (store_inferior_registers): Use shnbsd_fill_reg.
8857 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8858 sh_nbsd_supply_register): Collapse into...
8859 (shnbsd_supply_reg): ...this.
8860 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8861 (shnbsd_fill_reg): ...this.
8862 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8863 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8864 (fetch_core_registers): Use shnbsd_supply_reg.
8865 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8866 (sh_nbsd_core_fns): Rename to...
8867 (shnbsd_core_fns): ...this.
8868 (sh_nbsd_elfcore_fns): Rename to...
8869 (shnbsd_elfcore_fns): ...this.
8870 (sh_nbsd_init_abi): Rename to...
8871 (shnbsd_init_abi): ...this.
8872 (_initialize_sh_nbsd_tdep): Rename to...
8873 (_initialize_shnbsd_tdep): ...this.
8874 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8875 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8876 sh_nbsd_fill_register): Remove prototypes.
8877 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8879 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8881 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8882 (i387-nat.o): Delete dependency list.
8883 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8884 (x86-64-linux-nat.o): Likewise.
8885 * i387-nat.c: Delete file, moving contents to...
8886 * i387-tdep.c: ...here.
8887 * i387-nat.h: Rename...
8888 * i387-tdep.h: ...to this.
8889 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8890 * i386-linux-nat.c: Likewise.
8891 * i386bsd-nat.c: Likewise.
8892 * i386gnu-nat.c: Likewise.
8893 * i386nbsd-nat.c: Likewise.
8894 * i386v4-nat.c: Likewise.
8895 * x86-64-linux-nat.c: Likewise.
8896 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8897 * config/i386/go32.mh (NATDEPFILES): Likewise.
8898 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8899 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8900 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8901 * config/i386/linux.mh (NATDEPFILES): Likewise.
8902 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8903 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8904 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8905 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8907 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8909 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8910 (alphanbsd-nat.o): Remove dependency list.
8911 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8912 * alphanbsd-nat.c: Delete. Contents moved to...
8913 * alphanbsd-tdep.c: ...here.
8914 (_initialize_alphanbsd_tdep): Register core functions.
8915 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8917 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8919 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8920 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8921 (alphanbsd-nat.o): Likewise.
8922 (alphabsd-tdep.o): New dependency list.
8923 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8924 (fill_gregset): Use alphabsd_fill_reg.
8925 (supply_fpregset): Use alphabsd_supply_fpreg.
8926 (fill_fpregset): Use alphabsd_fill_fpreg.
8927 (fetch_inferior_registers): Use struct reg and struct fpreg
8928 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8929 and alphabsd_supply_fpreg.
8930 (store_inferior_registers): Use struct reg and struct fpreg
8931 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8932 and alphabsd_fill_fpreg.
8933 * alphabsd-tdep.c: New file.
8934 * alphabsd-tdep.h: New file.
8935 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8936 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8937 alphabsd_supply_fpreg.
8938 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8939 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8941 2002-05-11 Eric Christopher <echristo@redhat.com>
8943 * mips-tdep.c (mips_double_register_type): Fix thinko.
8944 (mips_single_register_type): Ditto.
8945 * MAINTAINERS: Add self.
8947 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8949 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8950 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8951 right thing on architectures with different endianness and/or
8954 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8956 From Christian Limpach <chris@Pin.LU>
8957 * configure.in: Change sed expression which comments out
8958 NATDEPFILES to also comment out continuation lines.
8959 * configure: Regenerate.
8961 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8963 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8966 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8968 * sh-tdep.c: Include correct file.
8970 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8972 New support for sh64-elf (sh5) target.
8974 * configure.tgt: For sh64-elf target, default to sh-elf.
8976 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8977 (struct gdbarch_tdep): Add new fields for new registers and ABI
8980 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8981 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8982 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8983 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8984 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8985 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8986 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8987 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8988 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8989 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8990 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8991 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8992 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8993 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8994 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8995 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8996 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8997 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8998 sign_extend, sh64_nofp_frame_init_saved_regs,
8999 sh64_init_extra_frame_info, sh64_get_saved_register,
9000 sh64_extract_struct_value_address, sh64_pop_frame,
9001 sh64_push_arguments, sh64_extract_return_value,
9002 sh64_store_return_value, sh64_show_media_regs,
9003 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9004 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9005 sh_sh64_register_virtual_type,
9006 sh_sh64_register_convert_to_virtual,
9007 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9008 sh64_register_read, sh64_pseudo_register_write,
9009 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9010 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9011 sh64_do_pseudo_register, sh_compact_do_registers_info,
9012 sh64_do_registers_info, sh_gdbarch_init): New functions.
9014 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9016 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9018 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9020 * linespec.c (decode_line_1): Check for a double quote after
9021 a filename correctly.
9023 2002-05-10 Jim Blandy <jimb@redhat.com>
9025 Properly track the size of the current objfile's .debug_line section.
9026 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9027 (DWARF_LINE_SIZE): New macro.
9028 (dwarf2_build_psymtabs_hard): Record the line section's size in
9029 the partial symbol table.
9030 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9033 2002-05-10 Petr Sorfa <petrs@caldera.com>
9035 * ia64-tdep.c: Handle breakpoints on L instruction type
9036 in MLX instruction bundle by moving the breakpoint to
9037 the third slot (X instruction type) as L holds only data.
9039 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9041 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9042 (process_one_symbol): Complain about discarding local symbols
9043 due to a misplaced N_LBRAC entry.
9045 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9047 From Daniel Berlin <dan@cgsoftware.com>
9048 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9049 decrease the depth we are at, in the case of templates.
9051 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9053 * mips-tdep.c (mips_float_register_type): New function.
9054 (mips_double_register_type): New function.
9055 (mips_print_register): Use them.
9056 (do_fp_register_row): Likewise.
9058 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9060 * signals/signals.c (signals): Remove conditional compilation around
9061 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9062 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9064 2002-05-09 Michael Snyder <msnyder@redhat.com>
9066 * remote-rdp.c (remote_rdp_can_run): Remove.
9068 2002-05-09 Tom Tromey <tromey@redhat.com>
9070 * jv-valprint.c (java_val_print): Handle `char' as a special case
9073 2002-05-09 Michael Snyder <msnyder@redhat.com>
9075 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9076 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9077 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9078 str r(0123),[sp,#nn].
9079 (arm_skip_prologue): Ditto. Also make disassembly
9080 order-independent by placing it in a loop.
9082 2002-05-06 Michael Snyder <msnyder@redhat.com>
9084 * stabsread.c (read_type): Add recognition for new attribute:
9085 "@V;" means that an array type is actually a vector.
9086 This is analogous to the vector flag that's been added to dwarf2.
9088 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9090 * i386-tdep.h (i386_abi): New enum.
9091 (struct gdbarch_tdep): Replace os_ident member with abi.
9092 (i386_gdbarch_register_os_abi): New prototype.
9093 * i386-tdep.c (i386_abi_names): New array.
9094 (process_note_abi_tag_sections): Removed.
9095 (process_note_sections): New function.
9096 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9097 (struct i386_abi_handler): New struct.
9098 (i386_abi_handler_list): New variable.
9099 (i386_gdbarch_register_os_abi): New function.
9100 (i386_gdbarch_init): Adapt for the changes given above.
9102 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9104 * gregset.h: Say "GNU/Linux".
9106 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9108 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9109 (build_gdbtypes): Build builtin_type_v2_float.
9110 (_initialize_gdbtypes): Register new builtin type.
9112 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9114 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9115 (clear_gdbarch_swap): New function.
9116 (initialize_non_multiarch): Call.
9117 (gdbarch_update_p): Before calling init(), swap out and clear the
9118 existing architecture.
9119 * gdbarch.c: Regenerate.
9121 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9123 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9126 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9128 * sh-nbsd-nat.c: Rename to...
9129 * shnbsd-nat.c: ...this.
9130 * sh-nbsd-tdep.c: Rename to...
9131 * shnbsd-tdep.c: ...this.
9132 * sh-nbsd-tdep.h: Rename to...
9133 * shnbsd-tdep.h: ...this.
9134 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9135 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9137 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9139 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9140 concatenation for command help messages.
9142 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9144 * NEWS: Note new sh*-*-netbsdelf* configuration.
9145 * configure.host: Set gdb_host_cpu to sh for all sh*.
9146 (sh*-*-netbsdelf*): New host.
9147 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9148 (sh*-*-netbsdelf*): New target.
9149 * sh-nbsd-nat.c: New file.
9150 * sh-nbsd-tdep.c: New file.
9151 * sh-nbsd-tdep.h: New file.
9152 * config/sh/nbsd.mh: New file.
9153 * config/sh/nbsd.mt: New file.
9154 * config/sh/nm-nbsd.h: New file.
9155 * config/sh/tm-nbsd.h: New file.
9157 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9159 * sh-tdep.c (sh_osabi_names): Declare.
9160 (process_note_abi_tag_sections): New function.
9161 (get_elfosabi): Ditto.
9162 (sh_gdbarch_register_os_abi): Ditto.
9163 (sh_dump_tdep): Ditto.
9164 _initialize_sh_tdep): Use gdbarch_register to register
9165 sh_gdbarch_init and sh_dump_tdep.
9166 * config/sh/tm-sh.h (sh_osabi): Declare.
9167 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9169 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9171 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9172 (thumb_scan_prologue): Ditto.
9173 (arm_find_callers_reg): Ditto.
9174 (arm_frame_chain): Ditto.
9175 (arm_init_extra_frame_info): Ditto.
9176 (arm_frame_saved_pc): Ditto.
9177 (arm_pop_frame): Ditto.
9178 (arm_push_return_address): New function.
9179 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9180 call_dummy_location, call_dummy_breakpoint_offset_p,
9181 call_dummy_breakpoint_offset, call_dummy_p,
9182 call_dummy_stack_adjust_p, call_dummy_words,
9183 sizeof_call_dummy_words, call_dummy_start_offset,
9184 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9185 call_dummy_address, push_return_address and push_dummy_frame for
9186 generic dummy frames.
9188 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9190 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9191 size computation for alloca.
9192 (sh_fp_frame_init_saved_regs): Likewise.
9194 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9196 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9197 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9198 * arm-tdep.c (arm_store_return_value): Use them.
9199 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9200 * remote-rdp.c (remote_rdp_fetch_register): Use
9201 ARM_MAX_REGISTER_RAW_SIZE.
9202 (remote_rdp_store_register): Likewise.
9204 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9206 * dwarf2cfi.c: Code cleanup, removed unused variables,
9207 added default labels to switch {} statements.
9208 * x86-64-tdep.c: Ditto.
9209 * x86-64-linux-nat.c: Ditto.
9211 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9213 * solib.h: Protect against multiple inclusion.
9215 2002-05-06 Jim Blandy <jimb@redhat.com>
9217 Add first preprocessor macro-expansion files.
9218 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9219 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9220 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9221 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9222 (COMMON_OBS): Add macrotab.o, macroexp.o.
9223 (macroexp.o, macrotab.o): New rules.
9225 Separate the job of reading the line number info statement program
9226 header (...expialidocious) out into its own function.
9227 * dwarf2read.c (struct line_head, struct filenames, struct
9228 directories): Replace with...
9229 (struct line_header): New structure, containing the full
9230 contents of the statement program header, including the
9231 include directory and file name tables.
9232 (read_file_scope): If we have line number info, instead of just
9233 calling dwarf_decode_lines to do all the work, call
9234 dwarf_decode_line_header first to get a `struct line_header'
9235 containing the data in the statement program header, and then
9236 pass that to dwarf_decode_lines, which will pick up where that
9237 left off. Be sure to clean up the `struct line_header' object.
9238 (dwarf_decode_line_header, free_line_header, add_include_dir,
9239 add_file_name): New functions.
9240 (dwarf_decode_lines): Move all the code to read the statement
9241 program header into dwarf_decode_line_header. Take the line
9242 header it built as the first argument, instead of the offset to
9243 the compilation unit's line number info. Use the new `struct
9244 line_header' type instead of the old structures. No need to do
9245 cleanups here now, since we don't allocate anything.
9246 (dwarf2_statement_list_fits_in_line_number_section,
9247 dwarf2_line_header_too_long): New complaints.
9249 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9251 * gdbtypes.c (init_vector_type): New function.
9252 (build_builtin_type_vec128): Simplify the representation of SIMD
9254 (build_gdbtypes): Initialize new builtin vector types.
9255 (_initialize_gdbtypes): Register new vector types with gdbarch.
9256 (builtin_type_v4_float, builtin_type_v4_int32,
9257 builtin_type_v8_int16, builtin_type_v16_int8,
9258 builtin_type_v2_int32, builtin_type_v4_int16,
9259 builtin_type_v8_int8): New (renamed) SIMD types.
9261 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9263 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9264 (i387_fill_fxsave): Likewise.
9266 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9268 * alpha-tdep.c (alpha_extract_return_value): Don't use
9269 non-constant array size in prototype.
9271 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9273 From Brian Taylor <briant at model dot com>:
9274 * ui-out.c (ui_out_field_core_addr): Use the function
9275 longest_local_hex_string_custom'to format addresses > 32 bits
9278 * ui-out.c (ui_out_field_core_addr): Update comment.
9280 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9282 * stack.c (select_and_print_frame): Make static. Delete the
9284 (func_command): Update call.
9285 (select_frame_command): Delete code computing the frame level.
9286 * frame.h (select_and_print_frame): Delete declaration.
9288 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9290 * sparc-tdep.c (sparc_get_saved_register): Comment why
9291 get_prev_frame call is safe.
9293 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9295 * frame.h (select_frame): Delete level parameter.
9296 * stack.c (select_frame): Update. Use frame_relative_level to
9297 obtain the frame's level.
9298 (select_and_print_frame): Update call.
9299 (select_frame_command): Ditto.
9300 (up_silently_base): Ditto.
9301 (down_silently_base): Ditto.
9302 * ocd.c (ocd_start_remote): Ditto.
9303 * remote-rdp.c (remote_rdp_open): Ditto.
9304 * remote-mips.c (mips_initialize): Ditto.
9305 (common_open): Ditto.
9306 * remote-e7000.c (e7000_start_remote): Ditto.
9307 * m3-nat.c (select_thread): Ditto.
9308 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9309 (child_get_current_exception_event): Ditto.
9310 * varobj.c (varobj_create): Ditto.
9311 (varobj_update): Ditto.
9312 (c_value_of_root): Ditto.
9313 * tracepoint.c (finish_tfind_command): Ditto.
9314 * corelow.c (core_open): Ditto.
9315 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9316 * thread.c (info_threads_command): Ditto.
9317 (switch_to_thread): Ditto.
9318 * infrun.c (normal_stop): Ditto.
9319 (restore_selected_frame): Ditto.
9320 (restore_inferior_status): Ditto.
9321 * breakpoint.c (insert_breakpoints): Ditto.
9322 (watchpoint_check): Ditto.
9323 (bpstat_stop_status): Ditto.
9324 (do_enable_breakpoint): Ditto.
9325 * blockframe.c (flush_cached_frames): Ditto.
9326 (reinit_frame_cache): Ditto.
9328 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9330 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9333 2002-05-04 Jim Blandy <jimb@redhat.com>
9335 * gdbtypes.c (replace_type): Doc fix.
9337 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9339 * valprint.c (strcat_longest): Delete commented out function.
9342 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9344 * MAINTAINERS: Mark a29k as deleted.
9345 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9346 Move new configurations to the top.
9347 * configure.tgt: Remove a29k.
9348 * config/a29k/tm-vx29k.h: Delete.
9349 * config/a29k/vx29k.mt: Delete.
9350 * config/a29k/tm-a29k.h: Delete.
9351 * config/a29k/a29k-udi.mt: Delete.
9352 * config/a29k/a29k.mt: Delete.
9353 * a29k-tdep.c: Delete.
9354 * remote-udi.c: Delete.
9355 * remote-mm.c: Delete.
9356 * remote-eb.c: Delete.
9357 * remote-adapt.c: Delete.
9358 * Makefile.in: Remove obsolete code.
9359 * config/s390/s390x.mt: Ditto.
9360 * config/s390/s390.mt: Ditto.
9361 * config/sparc/sparclynx.mh: Ditto.
9362 * config/sparc/linux.mh: Ditto.
9363 * config/pa/hppaosf.mh: Ditto.
9364 * config/pa/hppabsd.mh: Ditto.
9365 * config/ns32k/nbsd.mt: Ditto.
9366 * config/mips/vr5000.mt: Ditto.
9367 * config/m68k/sun3os4.mh: Ditto.
9368 * config/m68k/nbsd.mt: Ditto.
9369 * config/m68k/m68klynx.mh: Ditto.
9370 * config/m32r/m32r.mt: Ditto.
9371 * config/i386/x86-64linux.mt: Ditto.
9372 * config/i386/nbsdelf.mt: Ditto.
9373 * config/i386/nbsd.mt: Ditto.
9374 * config/i386/i386lynx.mh: Ditto.
9376 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9378 * target.c (debug_print_register): New function. Handle oversize
9380 (debug_to_fetch_registers): Call.
9381 (debug_to_store_registers): Call.
9383 2002-05-03 Jim Blandy <jimb@redhat.com>
9385 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9386 (read_type): Doc fix.
9387 * gdbtypes.c (replace_type): Doc fix.
9389 * stabsread.c (multiply_defined_struct): New complaint.
9390 (read_struct_type): If the type we were passed isn't empty, or
9391 incomplete, don't read the new struct type into it; complain,
9392 and return the original type unchanged. Take a new `type_code'
9393 argument, which is the type code for the new type.
9394 (read_type): Rather than storing the type's type code here, pass
9395 it as an argument to read_struct_type, and let that take care of
9396 storing it. That way, we don't overwrite the original type code,
9397 so read_struct_type can use it to decide whether we're overwriting
9398 something we shouldn't.
9399 (complain_about_struct_wipeout): New function.
9401 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9403 * gdbarch.sh: Assert that gdbarch is non-NULL.
9404 * gdbarch.c: Regenerate.
9406 2002-05-03 Jason Merrill <jason@redhat.com>
9408 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9411 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9413 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9414 (x86_64_dwarf2gdb_regno_map_length),
9415 (x86_64_dwarf2_reg_to_regnum): Added.
9416 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9417 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9418 (_initialize_x86_64_tdep): Synced with the change above.
9419 (x86_64_skip_prologue): Reformulated message.
9421 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9423 * f-exp.y: Also use new prev_lexptr variable
9424 to improve error reporting. Based on Michael Snyder
9425 2002-04-24 dated patch to c-exp.y.
9426 * jv-exp.y: Likewise.
9427 * m2-exp.y: Likewise.
9429 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9431 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9432 we are dealing with vectors.
9434 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9436 * config/m68k/tm-nbsd.h: Obvious fix,
9437 correct machine name.
9439 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9441 * p-typeprint.c (pascal_type_print_base): Add support
9442 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9444 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9446 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9447 for fondamental pascal 'char' type.
9449 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9451 * p-lang.h (is_pascal_string_type): Declaration changed,
9452 new sixth argument of type char ** added.
9453 * p-lang.c (is_pascal_string_type): Implementation
9454 changed. Args length_pos, length_size, string_pos, char_size
9455 can now be NULL. New argument arrayname set to the field
9456 name of the char array. Return value set to char array
9457 field index plus one.
9458 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9459 is_pascal_string_type function.
9461 2002-05-02 Andrew Cagney <cagney@redhat.com>
9463 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9464 <cagney@redhat.com> change.
9465 * gdbarch.c: Regenerate.
9467 2002-05-02 Andrew Cagney <cagney@redhat.com>
9469 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9470 before probing for a new one. Detect errorenous gdbarch_init
9472 * gdbarch.c: Regenerate.
9474 2002-05-01 Andrew Cagney <cagney@redhat.com>
9476 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9477 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9478 * config/v850/tm-v850.h: Ditto. Update copyright.
9480 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9482 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9485 2002-04-30 Michael Snyder <msnyder@redhat.com>
9487 * arm-tdep.c: Whitespace clean-ups.
9488 (arm_skip_prologue): Fix thinko; two lines
9489 should have been removed as part of 4/24 change.
9491 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9493 * rs6000-tdep.c: Added comment describing how fpscr register
9494 numbers were chosen.
9496 2002-04-30 Michael Snyder <msnyder@redhat.com>
9498 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9500 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9502 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9503 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9504 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9506 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9508 From Louis Hamilton <hamilton@redhat.com>:
9509 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9510 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9511 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9512 not bfd-private xcoff data, to determine wordsize.
9513 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9515 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9517 GDB 5.2 released from 5.2 branch.
9519 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9521 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9522 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9523 (x86_64_register_info_table): Added comments with register numbers.
9525 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9527 * rs6000-tdep.c (rs6000_extract_return_value,
9528 rs6000_store_return_value): Handle returning vectors.
9529 (rs6000_gdbarch_init): Use
9530 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9531 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9533 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9535 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9536 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9538 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9540 * hpread.c (hpread_psymtab_to_symtab_1,
9541 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9542 with fprintf_unfiltered (gdb_stderr,...).
9544 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9546 * remote-array.c (printf_monitor, write_monitor,
9547 array_insert_breakpoint, array_remove_breakpoint ):
9548 Replace fprintf (stderr,...
9549 with fprintf_unfiltered (gdb_stderr,....
9550 * remote-es.c: Likewise.
9551 * remote-os9k.c: Likewise.
9552 * remote-st.c: Likewise.
9554 2002-04-28 Andreas Schwab <schwab@suse.de>
9556 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9557 linux-proc.o and gcore.o.
9559 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9561 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9562 code without frame pointers.
9564 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9566 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9569 2002-04-26 Ben Elliston <bje@redhat.com>
9571 * target.c (do_xfer_memory): Correct reference to the new option
9572 "trust-readonly-sections".
9574 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9576 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9577 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9578 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9580 (read_array_type): Record the fact that this array type is really a
9581 vector (i.e. are passed in by value).
9583 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9585 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9586 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9587 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9588 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9589 * alpha-linux-tdep.c: Include frame.h.
9590 (alpha_linux_sigcontext_addr): New function.
9591 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9592 alpha_linux_sigcontext_addr.
9593 * alpha-osf1-tdep.c: Include gdbcore.h.
9594 (alpha_osf1_sigcontext_addr): New function.
9595 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9596 alpha_osf1_sigcontext_addr.
9597 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9598 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9600 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9602 * stack.c (selected_frame_level):
9603 (select_frame): Do not set selected_frame_level.
9604 * frame.h (selected_frame_level): Delete declaration.
9606 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9608 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9609 convert_from_func_ptr-addr when AIX / PowerOpen.
9611 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9613 * valops.c (hand_function_call): Call
9614 generic_save_call_dummy_addr.
9615 * frame.h (generic_save_call_dummy_addr): Declare.
9616 * blockframe.c (struct dummy_frame): Add fields call_lo and
9618 (generic_find_dummy_frame): Check for PC in range call_lo to
9619 call_hi instead of entry_point_address.
9620 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9621 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9622 (generic_save_call_dummy_addr): New function.
9624 2002-04-24 David S. Miller <davem@redhat.com>
9626 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9627 sparc_skip_prologue.
9628 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9629 information to find prologue when possible.
9630 (sparc_prologue_frameless_p): Call examine_prologue directly.
9631 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9632 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9634 (SKIP_PROLOGUE): Likewise.
9636 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9638 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9639 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9640 indicate that the condition it was testing is always true.
9641 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9642 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9643 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9645 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9647 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9648 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9649 tdep->jb_pc and tdep->jb_elt_size.
9650 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9651 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9652 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9653 * alpha-nat.c (get_longjmp_target): Remove.
9654 (JB_ELEMENT_SIZE): Ditto.
9656 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9657 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9658 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9659 to alpha_get_longjmp_target.
9660 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9661 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9662 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9664 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9666 * README: Update to GDB 5.2.
9668 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9670 * gdbarch.sh (LC_ALL): Set to `c'.
9672 2002-04-25 Theodore A. Roth <troth@verinet.com>
9674 * avr-tdep.c: Ran through gdb_indent.sh.
9676 2002-04-25 Theodore A. Roth <troth@verinet.com>
9678 * MAINTAINERS: Add myself as AVR maintainer.
9679 * NEWS: Note new target avr.
9681 2002-04-25 Theodore A. Roth <troth@verinet.com>
9683 * Makefile.in: Add support for AVR target.
9684 * configure.tgt: Add support for AVR target.
9685 * avr-tdep.c: New file
9686 * config/avr/avr.mt: New file.
9688 2002-04-25 Theodore A. Roth <troth@verinet.com>
9690 * MAINTAINERS: Add myself to write-after-approval.
9692 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9694 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9695 with fprintf_unfiltered (gdb_stderr,....
9697 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9700 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9702 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9704 * p-exp.y: Also use new prev_lexptr variable
9705 to improve error reporting. Based on Michael Snyder
9706 2002-04-24 dated patch to c-exp.y.
9708 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9710 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9711 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9712 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9714 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9716 (FUNCTION_START_OFFSET): Remove.
9717 (BREAKPOINT): Ditto.
9719 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9721 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9724 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9726 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9727 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9728 alpha_linux_pc_in_sigtramp.
9729 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9730 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9731 alpha_osf1_pc_in_sigtramp.
9732 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9733 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9734 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9735 alphafbsd_pc_in_sigtramp.
9736 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9737 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9738 alphanbsd_pc_in_sigtramp.
9739 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9740 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9742 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9744 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9746 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9748 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9750 (alphanbsd-nat.o): New dependency list.
9751 (alphanbsd-tdep.o): Ditto.
9752 * NEWS: Note new native NetBSD/alpha configuration.
9753 * alphanbsd-nat.c: New file.
9754 * alphanbsd-tdep.c: Ditto.
9755 * configure.host (alpha*-*-netbsd*): New host.
9756 * configure.tgt (alpha*-*-netbsd*): New target.
9757 * config/alpha/nbsd.mh: New file.
9758 * config/alpha/nbsd.mt: Ditto.
9759 * config/alpha/nm-nbsd.h: Ditto.
9760 * config/alpha/tm-nbsd.h: Ditto.
9762 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9764 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9765 (alpha-osf1-tdep.o): New dependency list.
9766 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9767 and skip_sigtramp_frame members.
9768 * alpha-linux-tdep.c: Include gdbcore.h.
9769 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9770 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9771 * alpha-osf1-tdep.c: New file.
9772 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9774 (alpha_frame_past_sigtramp_frame): New function.
9775 (alpha_dynamic_sigtramp_offset): Ditto.
9776 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9777 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9778 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9779 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9780 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9781 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9782 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9783 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9784 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9785 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9786 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9787 to find_solib_trampoline_target.
9788 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9789 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9790 (SKIP_TRAMPOLINE_CODE): Remove.
9791 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9792 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9793 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9794 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9795 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9796 (PROC_SIGTRAMP_MAGIC): Ditto.
9797 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9798 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9799 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9800 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9801 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9803 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9805 * NEWS: Note that Alpha targets are now multi-arch.
9807 2002-04-24 Michael Snyder <msnyder@redhat.com>
9809 * parser-defs.h (prev_lexptr): New external variable.
9810 * parse.c (parse_exp_1): Set prev_lexptr to null before
9811 calling the language-specific parser.
9812 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9813 (yyerror): Use prev_lexptr in error reporting.
9815 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9817 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9818 * gregset.h: If FILL_FPXREGSET is defined, provide
9819 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9820 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9821 is defined, call fill_fpxregset.
9823 2002-04-24 Roland McGrath <roland@frob.com>
9825 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9826 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9827 (supply_gregset, supply_fpregset): New functions.
9829 * gnu-nat.c (gnu_find_memory_regions): New function.
9830 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9831 (gnu_xfer_memory): Add a cast.
9833 2002-04-24 Michael Snyder <msnyder@redhat.com>
9835 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9836 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9837 of argument regs ("str r(0123), [r11, #-nn"]).
9838 (arm_skip_prologue): Better handling for frameless functions.
9839 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9840 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9842 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9844 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9845 NUM_PSEUDO_REGS can be used.
9847 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9849 * arch-utils.h: Update copyright.
9851 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9852 * gdbarch.h, gdbarch.c: Re-generate.
9854 * inferior.h (IN_SIGTRAMP): Delete definition.
9855 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9856 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9858 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9859 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9860 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9861 (find_proc_framesize): Ditto.
9862 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9863 (alpha_init_extra_frame_info): Ditto.
9864 * infrun.c (handle_inferior_event): Ditto.
9865 (handle_inferior_event): Ditto.
9866 (check_sigtramp2): Ditto.
9867 * blockframe.c (create_new_frame): Ditto.
9868 (get_prev_frame): Ditto.
9869 * ppc-linux-tdep.c: Update comments.
9870 * i386-linux-tdep.c: Update comments.
9871 * breakpoint.c (bpstat_what): Update comment.
9873 2002-04-24 David S. Miller <davem@redhat.com>
9875 * i960-tdep.c (register_in_window_p): New function.
9876 (i960_find_saved_register): Use it instead of
9877 REGISTER_IN_WINDOW_P.
9878 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9880 * symtab.h (find_stab_function_addr): Kill extern.
9881 * minsyms.c (find_stab_function_addr): Remove from here...
9882 * dbxread.c: ... to here, and mark it static.
9884 2002-04-20 David S. Miller <davem@redhat.com>
9886 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9887 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9889 2002-04-21 David S. Miller <davem@redhat.com>
9891 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9892 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9893 (vx_write_register): Likewise.
9895 2002-04-23 J. Brobecker <brobecker@gnat.com>
9897 * source.c (is_regular_file): New function.
9898 (openp): Check wether file to open is a regular file
9899 to avoid opening directories.
9901 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9903 * findvar.c (extract_signed_integer): Cast printf argument
9904 to suppress format warning.
9905 (extract_unsigned_integer): Likewise.
9906 * infcmd.c (registers_info): Likewise.
9907 * top.c (get_prompt_1): Likewise.
9908 * valops.c (value_assign): Likewise.
9909 * valprint.c (print_decimal): Likewise.
9911 2002-04-22 H.J. Lu (hjl@gnu.org)
9913 * c-exp.y (typebase): Support
9915 [long|long long|short] [signed|unsigned] [int|]
9919 signed [long|long long|short] int
9921 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9923 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9925 * vax-tdep.h: New file.
9926 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9927 Make several routines static.
9928 (vax_get_saved_register): New function.
9929 (vax_gdbarch_init): New function.
9930 (_initialize_vax_tdep): Register vax_gdbarch_init.
9931 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9932 Remove macros now under the control of gdbarch.
9934 2002-04-22 Michael Snyder <msnyder@redhat.com>
9936 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9937 Some whitespace and coding standards tweaks.
9939 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9941 * vax-tdep.c: Include regcache.h.
9942 (vax_call_dummy_words): New.
9943 (sizeof_vax_call_dummy_words): New.
9944 (vax_fix_call_dummy): New function.
9945 (vax_saved_pc_after_call): Ditto.
9946 * config/vax/tm-vax.h: Don't include regcache.h.
9947 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9948 (CALL_DUMMY): Remove.
9949 (CALL_DUMMY_WORDS): Define.
9950 (SIZEOF_CALL_DUMMY_WORDS): Define.
9951 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9953 2002-04-18 Michael Snyder <msnyder@redhat.com>
9955 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9957 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9959 * vax-tdep.c (vax_frame_chain): New function.
9960 (vax_push_dummy_frame): Ditto.
9961 (vax_pop_frame): Ditto.
9962 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9963 (FRAMELESS_FUNCTION_INVOCATION): Use
9964 generic_frameless_function_invocation_not.
9965 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9966 (POP_FRAME): Use vax_pop_frame.
9968 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9970 * vax-tdep.c (vax_store_struct_return): New function.
9971 (vax_extract_return_value): Ditto.
9972 (vax_store_return_value): Ditto.
9973 (vax_extract_struct_value_address): Ditto.
9974 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9975 vax_store_struct_return.
9976 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9977 (STORE_RETURN_VALUE): Use vax_store_return_value.
9978 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9980 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9982 * vax-tdep.c (vax_frame_saved_pc): New function.
9983 (vax_frame_args_address_correct): Ditto.
9984 (vax_frame_args_address): Ditto.
9985 (vax_frame_locals_address): Ditto.
9986 (vax_frame_num_args): Move code to be in proximity to
9987 other frame-related functions.
9988 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9989 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9990 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9991 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9992 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9994 2002-04-22 H.J. Lu (hjl@gnu.org)
9996 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9999 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10001 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10002 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10003 (FRAME_INIT_SAVED_REGS): New macro.
10005 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10007 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10009 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10011 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10013 (fetch_osf_core_registers): Likewise.
10014 (supply_gregset): Likewise.
10016 2002-04-22 J. Brobecker <brobecker@gnat.com>
10018 * symfile.h (get_section_index): Define.
10019 * symfile.c (get_section_index): New function.
10020 * mdebugread.c (SC_IS_SBSS): New macro.
10021 (SC_IS_BSS): Return true for the scBss storage class only, as
10022 the scSBss storage class refers to the .sbss section.
10023 (parse_partial_symbols): Discard the symbols which associated
10024 section does not exist.
10025 Make sure to use the .sbss section index for symbols which
10026 storage class is scBss, rather than using the .bss section index.
10028 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10030 * vax-tdep.c: Update copyright years.
10031 (vax_register_name): New function.
10032 (vax_register_byte): Ditto.
10033 (vax_register_raw_size): Ditto.
10034 (vax_register_virtual_size): Ditto.
10035 (vax_register_virtual_type): Ditto.
10036 * config/vax/tm-vax.h: Update copyright years.
10037 (REGISTER_NAMES): Remove.
10038 (REGISTER_NAME): Define.
10039 (REGISTER_BYTE): Use vax_register_byte.
10040 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10041 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10042 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10044 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10046 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10048 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10050 2002-04-21 David S. Miller <davem@redhat.com>
10052 * arch-utils.c (generic_prologue_frameless_p): Kill
10053 SKIP_PROLOGUE_FRAMELESS_P code.
10054 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10056 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10057 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10058 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10060 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10061 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10062 (sparc_gdbarch_init): Pass it to
10063 set_gdbarch_prologue_frameless_p.
10065 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10067 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10068 (alphabsd-nat.o): New dependency list.
10070 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10072 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10074 (alpha-linux-tdep.o): New dependency list.
10075 (alphafbsd-tdep.o): Likewise.
10077 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10079 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10081 * alpha-tdep.c: ...from here.
10082 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10084 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10086 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10087 prototype from here...
10088 * alpha-tdep.h: ...to here.
10090 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10092 * frame.h (selected_frame_level): Document as deprecated.
10093 (frame_relative_level): Declare.
10094 * stack.c (frame_relative_level): New function.
10095 (selected_frame_level): Document as deprecated.
10096 (select_frame): Do not set the selected_frame_level.
10098 * stack.c (frame_info, record_selected_frame): Update.
10099 (frame_command, current_frame_command): Update.
10100 (up_silently_base, up_command, down_silently_base): Update.
10101 (down_command): Update.
10102 * inflow.c (kill_command): Update.
10103 * tracepoint.c (finish_tfind_command): Update.
10104 * corelow.c (core_open): Update.
10105 * thread.c (info_threads_command): Update.
10106 (do_captured_thread_select): Update.
10107 * infcmd.c (finish_command): Update.
10108 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10110 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10112 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10114 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10116 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10119 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10121 * alphafbsd-tdep.c: Update copyright years. Include
10123 (alphafbsd_use_struct_convention): Make static.
10124 (alphafbsd_init_abi): New function.
10125 (_initialize_alphafbsd_tdep): New function.
10126 * config/alpha/tm-fbsd.h: Update copyright years.
10127 (USE_STRUCT_CONVENTION): Remove.
10129 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10131 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10132 an Alpha ABI variant.
10133 (alpha_abi_handler_list): Declare.
10134 (alpha_gdbarch_register_os_abi): New function.
10135 (alpha_gdbarch_init): Give registered ABI variant handlers a
10136 chance to tweak the gdbarch once we have set up defaults.
10137 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10139 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10141 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10142 to standard_coerce_float_to_double.
10143 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10145 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10147 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10148 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10149 from gdbarch_tdep rather than a constant.
10150 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10151 the default text address for all Alpha Unix ABIs.
10152 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10153 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10155 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10157 * alpha-tdep.h: New file. Includes several Alpha target constants
10159 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10160 let gdbarch deal with.
10161 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10162 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10163 to dependency list.
10164 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10165 Alpha target register names.
10166 * alphabsd-nat.c: Likewise.
10167 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10168 Alpha target register names. Make serveral routines static.
10169 (alpha_get_saved_register): New function.
10170 (alpha_abi_names): New.
10171 (process_note_abi_tag_sections): New function.
10172 (get_elfosabi): New function.
10173 (alpha_gdbarch_init): New function.
10174 (alpha_dump_tdep): New function.
10175 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10177 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10179 * frame.c (find_saved_register): Delete #ifdef
10180 HAVE_REGISTER_WINDOWS code.
10181 * config/sparc/tm-sparc.h: Update comments.
10182 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10184 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10186 * i960-tdep.c (i960_find_saved_register): New function.
10187 (i960_get_saved_register): New function.
10188 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10189 (i960_get_saved_register): Declare.
10190 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10192 2002-04-20 David S. Miller <davem@redhat.com>
10194 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10196 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10198 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10199 instead of NUM_PSEUDO_REGS.
10201 2002-04-20 David S. Miller <davem@redhat.com>
10203 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10204 GDB_MULTI_ARCH_PARTIAL
10205 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10206 define, let tm-sp64.h do it.
10208 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10210 * frame.c (find_saved_register): Avoid a NULL pointer
10211 dereference and actually walk the frame list.
10213 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10215 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10216 sorted in most most-recent-used order. Document.
10217 * gdbarch.h, gdbarch.c: Regenerate.
10219 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10221 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10223 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10224 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10225 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10228 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10231 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10232 (build_builtin_type_vec128): Ditto.
10233 (append_composite_type_field): Fix calculation of type length in
10236 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10238 * config/djgpp/README: Update.
10240 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10243 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10245 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10246 (alpha_setup_arbitrary_frame): ...to this.
10247 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10248 for alpha_setup_arbitrary_frame.
10250 2002-04-18 Andrew Cagney <cagney@redhat.com>
10252 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10253 * gdbarch.h, gdbarch.c: Regenerate.
10255 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10256 * target.h (memory_breakpoint_from_pc): Update declaration.
10257 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10259 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10260 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10261 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10262 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10263 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10264 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10265 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10266 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10267 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10268 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10269 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10270 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10272 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10274 * monitor.c (monitor_insert_breakpoint): Ditto.
10275 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10277 * config/mcore/tm-mcore.h: Update copyright.
10278 * mem-break.c: Ditto.
10279 * xstormy16-tdep.c: Ditto.
10281 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10283 * p-exp.y: Add precedence rule for '^' token.
10284 This removes the shift/reduce conflicts.
10285 Remove the comment concerning these shift/reduce conflicts.
10287 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10289 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10290 (registers_powerpc_nofp): New register set for processors
10291 without floating point unit.
10293 2002-04-18 David S. Miller <davem@redhat.com>
10295 * MAINTAINERS: Add myself to write-after-approval.
10297 2002-04-17 Michael Snyder <msnyder@redhat.com>
10299 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10301 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10303 * rs6000-tdep.c (frame_initial_stack_address): Use
10304 frame_register_read to read the alloca_reg.
10306 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10308 * frame.c (find_saved_register): Find saved registers in the next
10312 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10314 * gdbarch.sh (LANG): Set to ``c''.
10316 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10318 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10320 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10322 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10325 * hpread.c (hpread_get_lntt): Add declaration.
10326 Also fix PR gdb/391.
10328 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10330 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10331 * aclocal.m4, configure: Re-generate.
10334 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10336 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10337 instead of tm_print_insn.
10339 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10341 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10343 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10345 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10346 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10347 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10349 2002-04-12 Don Howard <dhoward@redhat.com>
10351 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10352 max_user_call_depth.
10353 (init_cmd_lists): Initialize the new value;
10354 * cli/cli-script.c (execute_user_command): Limit the call depth of
10355 user defined commands. This avoids a core-dump when user commands
10356 are infinitly recursive.
10358 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10360 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10361 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10362 from tdep struct instead of DEFAULT_LR_SAVE.
10363 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10364 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10365 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10367 2002-04-12 Michael Snyder <msnyder@redhat.com>
10369 * Remote.c: Spelling fix.
10370 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10371 If no symbol found for "sbrk", try "_sbrk".
10372 (make_output_phdrs): Use bfd_section_name.
10373 (gcore_copy_callback): Use bfd_section_name.
10374 * eval.c: Indentation fix-ups.
10375 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10376 in case it gets applied to an address that is already
10377 in the instruction space.
10378 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10379 * symfile.c: Fix indentation, long lines.
10380 * source.c: White space fix-up.
10382 2002-04-12 Andrew Cagney <cagney@redhat.com>
10384 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10385 * frame.c (frame_register_read): New function. Return non-zero on
10387 (read_relative_register_raw_bytes_for_frame): Delete.
10388 (read_relative_register_raw_bytes): Delete.
10389 * frame.h (frame_register_read): Declare.
10390 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10391 * sh-tdep.c: Ditto.
10392 * infcmd.c (do_registers_info): Ditto.
10393 * hppa-tdep.c: Ditto.
10394 * rs6000-tdep.c: Ditto.
10395 * h8500-tdep.c: Ditto.
10396 * mips-tdep.c: Ditto.
10397 * h8300-tdep.c: Ditto.
10398 * z8k-tdep.c: Ditto.
10400 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10402 From Jimi X <jimix@watson.ibm.com>:
10403 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10406 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10408 From Jimi X <jimix@watson.ibm.com>:
10409 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10412 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10414 From Jimi X <jimix@watson.ibm.com>:
10415 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10416 register sets for these processor variants.
10418 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10420 * regformats/reg-ppc.dat: Support FPSCR.
10422 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10424 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10425 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10426 Add fpscr as an invalid/unfetchable register.
10427 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10428 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10429 (fill_fpregset): Add support for register fpscr.
10430 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10431 (fill_gregset): Account for the fact that register ``mq'' might
10433 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10434 (registers_power): Add fpscr to register set at slot 71.
10435 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10436 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10438 2002-04-11 Michael Snyder <msnyder@redhat.com>
10440 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10441 * configure: Regenerate.
10442 * config.in: Regenerate.
10443 * acconfig.h: Add define for _SYSCALL32.
10444 * core-sol2.c: Remove #define _SYSCALL32.
10445 * solib-legacy.c: Remove #define _SYSCALL32.
10447 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10449 * stack.c (select_frame): Cleanup internal error message, do not
10452 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10454 * stack.c (select_frame): Check that selected_frame and the
10455 specified level are as expected.
10456 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10458 * frame.h (struct frame_info): Add field `level'. Update
10460 Work-in-progress PR gdb/464.
10462 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10464 * maint.c (maint_print_section_info): Rename print_section_info.
10465 (print_bfd_section_info, print_objfile_section_info): Update.
10466 * inferior.h (struct gdbarch): Add opaque declaration.
10467 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10468 * gdbarch.h: Regenerate.
10470 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10472 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10473 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10474 (kernel_u_size): Added.
10475 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10476 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10478 2002-04-04 Jim Ingham <jingham@apple.com>
10480 * valarith.c (find_size_for_pointer_math): New function, either returns
10481 the size for a pointer's target, returns 1 for void *, or errors for
10483 (value_add, value_sub): use find_size_for_pointer_math.
10485 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10487 * linux-low.c (linux_look_up_symbols): New hook.
10488 (linux_target_ops): Add linux_look_up_symbols.
10489 * remote-utils.c (decode_address): New function.
10490 (look_up_one_symbol): New function.
10491 * server.c (handle_query): Call target look_up_symbols hook.
10492 * server.h (look_up_one_symbol): Add prototype.
10493 * target.h (struct target_ops): Add look_up_symbols hook.
10495 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10497 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10498 override FP_REGNUM with frame->fp. Update copyright.
10499 * parse.c (num_std_regs, std_regs): Delete.
10500 (target_map_name_to_register): Do not search std_regs. Update
10501 function description.
10502 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10503 declarations. Update copyright.
10506 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10508 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10509 after the last symbol in a block.
10511 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10513 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10514 is non zero as a found symbol.
10516 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10518 * findvar.c: Include "builtin-regs.h".
10519 (value_of_register): Call value_of_builtin_reg when applicable.
10520 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10521 (target_map_name_to_register): Call
10522 builtin_reg_map_name_to_regnum.
10523 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10524 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10525 (builtin_regs_h): Define.
10526 (builtin-regs.o): New target.
10527 (findvar.o): Add $(builtin_regs_h).
10528 * builtin-regs.c, builtin-regs.h: New files.
10529 * std-regs.c: New file.
10530 Partial fix for PR gdb/251.
10532 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10534 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10535 it's no longer required.
10537 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10539 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10541 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10543 From Jimi X <jimix@watson.ibm.com>:
10544 * rs6000-tdep.c (rs6000_software_single_step): Use
10545 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10546 and size. Use target_insert_breakpoint() and
10547 target_remove_breakpoint() to insert and remove breakpoints
10548 instead of explicit memory reads and writes.
10550 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10552 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10553 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10554 ELF_OBJECT_FORMAT ifdef.
10556 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10558 From Jimi X <jimix@watson.ibm.com>:
10559 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10561 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10563 From Jimi X <jimix@watson.ibm.com>:
10564 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10565 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10567 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10569 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10570 s/asprintf/xasprintf/.
10571 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10573 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10575 I believe Jeff Law denies responsability for this one:
10576 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10577 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10578 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10579 Work-around for PR gdb/366.
10581 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10583 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10584 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10585 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10587 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10589 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10590 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10593 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10595 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10598 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10600 * README (Reporting Bugs in GDB): Document the bug web page as the
10601 prefered way of submitting bugs.
10604 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10606 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10607 -1. Update comment.
10608 * gdbarch.h, gdbarch.c: Re-generate.
10610 2002-04-07 Andreas Schwab <schwab@suse.de>
10612 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10613 buffer to regcache_collect.
10615 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10617 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10618 * gdbarch.c, gdbarch.h: Re-generate.
10620 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10622 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10623 declaration. Fix -Werror.
10625 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10627 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10628 * gdbarch.c: Regenerate.
10630 2002-04-05 Michael Snyder <msnyder@redhat.com>
10632 * breakpoint.c (clear_command): Rewrite middle section to
10633 combine two loops with identical control conditions.
10634 Add a cleanup to eliminate a memory leak.
10635 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10637 2002-04-05 H.J. Lu (hjl@gnu.org)
10639 * solib-svr4.c (bkpt_names): Add "__start".
10641 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10643 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10644 as test for 64 bit target.
10646 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10648 * h8500-tdep.c (h8500_write_fp): Delete function.
10649 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10650 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10651 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10652 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10653 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10654 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10656 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10657 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10658 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10659 (d10v_write_fp): Delete function.
10660 * inferior.h (write_fp, generic_target_write_fp): Delete
10662 * regcache.c (generic_target_write_fp): Delete function.
10663 (write_fp): Delete function.
10664 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10665 * gdbarch.h, gdbarch.c: Regenerate.
10666 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10667 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10668 (sparc64_write_fp): Delete declaration.
10669 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10670 (h8500_write_fp): Delete declaration.
10672 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10674 * sparc-tdep.c (sparc64_write_fp): Delete.
10675 (sparc_push_dummy_frame): Replace write_fp call with code to store
10677 (sparc_gdbarch_init): Do not initialize write_fp.
10679 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10681 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10684 2002-03-29 Jim Blandy <jimb@redhat.com>
10686 * stack.c (get_selected_block): Add new argument `addr_in_block',
10687 used to return the exact code address we used to select the block,
10688 not just the block.
10689 * blockframe.c (get_frame_block, get_current_block): Same.
10690 * frame.h (get_frame_block, get_current_block,
10691 get_selected_block): Update declarations.
10692 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10693 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10695 2002-04-05 Michael Snyder <msnyder@redhat.com>
10697 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10700 2002-04-05 J. Brobecker <brobecker@gnat.com>
10702 * utils.c (xfullpath): New function.
10703 * defs.h (xfullpath): Add declaration.
10704 * source.c (openp): Use xfullpath in place of gdb_realpath to
10705 avoid resolving the basename part of filenames when the
10706 associated file is a symbolic link. This fixes a potential
10707 inconsistency between the filenames known to GDB and the
10708 filenames it prints in the annotations.
10709 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10710 to be able to match a filename with either the real filename, or
10711 the name of any symbolic link to this file.
10712 (lookup_partial_symtab): Ditto.
10714 2002-04-04 Michael Snyder <msnyder@redhat.com>
10716 * breakpoint.c: Add support for hardware breakpoints in overlays.
10717 (overlay_events_enabled): New state variable.
10718 (insert_breakpoints): Use overlay_events_enabled to decide
10719 whether to attempt to set a breakpoint at the overlay load addr.
10720 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10721 (remove_breakpoint): Use overlay_events_enabled to decide
10722 whether breakpoints need to be removed from overlay load addr.
10723 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10724 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10725 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10726 disable_overlay_breakpoints): Update overlay_events_enabled.
10728 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10730 * dwarf2read.c (struct function_range): New.
10731 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10732 (check_cu_functions): New.
10733 (read_file_scope): Initialize global function lists.
10734 Call dwarf_decode_line after processing children.
10735 (read_func_scope): Add to global function list.
10736 (dwarf_decode_lines): Call check_cu_functions everywhere
10737 record_line is called. Call record_line with a linenumber
10738 of 0 to mark sequence ends.
10740 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10742 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10743 change sync with glibc.
10745 2002-04-03 Jim Blandy <jimb@redhat.com>
10747 * configure.in: Call AC_C_INLINE.
10748 * configure: Regenerated.
10750 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10752 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10753 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10755 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10757 * NEWS: Mention gcore support on FreeBSD/i386.
10759 * fbsd-proc.c: New file.
10760 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10761 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10763 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10766 2002-03-29 Jim Blandy <jimb@redhat.com>
10768 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10769 unescaped newlines in string literals, but newer ones don't. So
10772 2002-03-26 Michael Snyder <msnyder@redhat.com>
10773 Andrew Cagney <cagney@redhat.com>
10775 * cli/cli-dump.c: New file. Dump memory to file,
10776 restore file to memory.
10777 * cli/cli-dump.h: New file.
10778 * Makefile.in: Add rules, dependencies for cli-dump.o.
10779 * NEWS: Mention new commands.
10781 2002-03-28 Michael Snyder <msnyder@redhat.com>
10783 * symfile.c (symbol_file_add): Move test for null symbols to later.
10785 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10787 From veksler at il.ibm.com:
10788 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10789 the xstrduped original path.
10792 2002-03-27 Michael Snyder <msnyder@redhat.com>
10794 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10795 * infcmd.c (_initialize_infcmd): Ditto.
10796 * language.c (_initialize_language): Ditto.
10797 * symfile.c (_initialize_symfile): Ditto.
10798 * top.c (_init_main): Ditto.
10799 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10801 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10803 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10804 vector registers handling.
10805 (skip_prologue): Handle new AltiVec instructions. Fill in new
10806 fields of frame data.
10807 (frame_get_saved_regs): Fill in information for AltiVec registers.
10809 2002-03-27 Jim Blandy <jimb@redhat.com>
10811 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10812 a function; leave this macro here to invoke that function.
10813 (symbol_init_mangled_name): Declaration for that function.
10814 * symtab.c (symbol_init_mangled_name): New function.
10816 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10818 * valarith.c: Replace strerror with safe_strerror.
10819 * tracepoint.c: Ditto.
10820 * lin-lwp.c: Ditto.
10821 * go32-nat.c: Ditto.
10823 * gnu-nat.c: Ditto.
10825 2002-03-27 Andreas Schwab <schwab@suse.de>
10827 * event-top.c (command_line_handler): Remove useless if.
10829 2002-03-27 Andreas Jaeger <aj@suse.de>
10831 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10834 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10836 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10837 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10838 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10839 (x86_64_linux_dr_get_status, supply_gregset),
10840 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10841 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10842 (x86_64_register_info_table): Add.
10843 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10844 (x86_64_register_raw_size, x86_64_register_virtual_type),
10845 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10846 general x86_64_register_info_table.
10847 (i386_gdbarch_init): gdbarch_register_bytes is now set
10848 dynamicaly during initialization.
10849 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10850 * gdbserver/linux-x86-64-low.c: Ditto.
10852 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10854 * gdbserver/server.c (main): Call target_signal_to_host_p
10855 and target_signal_to_host on signals received from the remote.
10856 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10857 target_signal_from_host on signals sent to the remote.
10858 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10859 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10861 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10863 * signals/signals.c: Include "server.h" in gdbserver build.
10864 (target_signal_from_name): Don't use STREQ.
10865 (_initialize_signals): Likewise. Don't include function in
10868 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10870 * signals.c: Moved to...
10871 * signals/signals.c: Here.
10872 * Makefile (signals.o): Update.
10874 2002-03-26 Jeff Law (law@redhat.com)
10876 * somread.c (som_symtab_read): Remove some commented out code and
10877 updated related comments. Do not set the minimal symbol table to
10878 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10879 in a dynamic executable.
10880 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10881 where we are unable to find the minimal symbol for the given
10884 2002-03-25 Jeff Law (law@redhat.com)
10886 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10888 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10890 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10892 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10894 * command.h: Update copyright.
10895 (struct cmd_list_element): Replace definition with opaque
10897 (enum cmd_types): Document that it will eventually be moved to
10899 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10900 (MALLOCED_REPLACEMENT): Delete macro.
10901 * Makefile.in (cli_decode_h): Add $(command_h).
10902 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10903 * top.c: Include "cli/cli-decode.h".
10904 * completer.c: Include "cli/cli-decode.h".
10905 * maint.c: Include "cli/cli-decode.h".
10906 * cli/cli-decode.h: Include "command.h".
10907 (enum command_class): Delete.
10908 (enum cmd_types): Comment out.
10909 (enum cmd_auto_boolean): Delete.
10910 (enum var_types): Delete.
10912 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10914 * cli/cli-decode.c: Include "gdb_assert.h".
10915 (add_set_or_show_cmd): New static function.
10916 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10917 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10918 all fields, such as func, from the set command.
10920 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10922 * MAINTAINERS (sh-elf): Change warning flag to -w.
10924 2002-03-23 Andrew Cagney <cagney@redhat.com>
10926 * defs.h (error): Add printf format attribute.
10927 * thread-db.c (thread_from_lwp): Fix error format string.
10928 * stack.c (parse_frame_specification): Ditto.
10929 * cli/cli-decode.c (undef_cmd_error): Ditto.
10930 * scm-lang.c (scm_lookup_name): Ditto.
10931 * tracepoint.c (trace_error): Ditto.
10932 * remote-utils.c (usage): Ditto.
10933 * remote.c (compare_sections_command): Ditto.
10936 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10938 * gdbtypes.c (append_composite_type_field): New function.
10939 (init_composite_type): New function.
10940 * gdbtypes.h (append_composite_type_field): Declare.
10941 (init_composite_type): Ditto.
10943 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10945 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10947 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10948 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10949 structure returning convention for SYSV ABI case, but not
10950 for GNU/Linux, FreeBSD, or NetBSD.
10952 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10954 * symtab.h (lookup_block_symbol): Add mangled_name argument
10957 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10958 with new mangled_name argument.
10959 * linespec.c (decode_line_1): Likewise.
10960 * valops (value_of_this): Likewise.
10961 * symtab.c (lookup_transparent_type): Likewise.
10962 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10963 (lookup_symbol): If we are given a mangled name, pass it down
10964 to lookup_symbol_aux.
10965 (lookup_block_symbol): If we are given a mangled name to check
10966 against, only return symbols which match it.
10968 2002-03-22 Christopher Faylor <cgf@redhat.com>
10970 * win32-nat.c (child_create_inferior): Check for proper shell to use
10971 here, in case the user changes it on the fly.
10972 (_initialize_inftarg): Remove shell path considerations.
10974 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10976 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10977 for gdbarch_max_register_raw_size and max_register_virtual_size.
10978 Adjust copyright year.
10980 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10982 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10983 in a function to cover the entire beginning of the function
10984 as well if it does not already.
10986 2002-03-21 Tom Rix <trix@redhat.com>
10988 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10989 (rs6000_ptrace64): Renamed from ptrace64.
10991 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10993 * gdbserver/remote-utils.c (remote_open): Don't call
10994 getprotobyname, we're all using TCP here so just use
10996 * gdbserver/gdbreplay.c (remote_open): Ditto.
10998 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11000 * regcache.c (_initialize_regcache): No need to call
11001 build_regcache() at this time; it gets called whenever
11002 the gdbarch changes.
11004 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11006 * sparc-nat.c: Include sys/param.h where possible.
11008 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11011 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11012 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11013 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11015 * stabsread.c (rs6000_builtin_type): Likewise.
11016 (read_sun_floating_type): Likewise.
11018 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11020 * stabsread.c (read_member_functions): Remove skip code for duplicate
11021 constructor/destructor methods. Use standard parsing for these
11022 methods and just do not chain them to the list of methods after
11025 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11027 * coffread.c: Remove redundant static declarations. Replace
11028 occurrences of `PTR' with `void *'.
11029 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11030 * top.h (quit_cover): Likewise.
11031 * defs.h (catch_errors): Likewise.
11033 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11035 * defs.h (XMALLOC): Define.
11036 * gdb-events.sh (XMALLOC): Delete macro.
11037 * gdb-events.c, gdb-events.h: Regenerate.
11038 * gdbarch.sh (XMALLOC): Delete macro.
11039 * gdbarch.c: Regenerate.
11040 * serial.c (XMALLOC): Delete macro.
11041 * ui-file.c (XMALLOC): Ditto.
11042 * ser-unix.h (XMALLOC): Ditto.
11043 * sh-tdep.c (XMALLOC): Ditto.
11044 * ui-out.c (XMALLOC): Ditto.
11045 * utils.c (XMALLOC): Ditto.
11046 * i386-tdep.c (XMALLOC): Ditto.
11047 * gdb-events.c (XMALLOC): Ditto.
11048 * d10v-tdep.c (XMALLOC): Ditto.
11049 * cli-out.c (XMALLOC): Ditto.
11051 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11052 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11053 * ui-file.c, ui-out.c: Ditto.
11055 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11057 * command.h (struct cmd_list_element): Add field context.
11058 (set_cmd_context, get_cmd_context): Declare.
11059 * cli/cli-decode.h: Ditto.
11060 * cli/cli-decode.c (get_cmd_context): New function.
11061 (set_cmd_context): New function.
11062 (add_cmd): Initialize context.
11063 Part of fixing PR gdb/145 and PR gdb/146.
11065 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11067 * cli/cli-decode.c (cmd_type): New function.
11068 * command.h (cmd_type): Declare.
11069 * infrun.c (set_schedlock_func): Call function cmd_type.
11070 * kod.c (kod_set_os): Call cmd_type.
11071 * cris-tdep.c (cris_version_update): Use function cmd_type.
11072 (cris_mode_update, cris_abi_update): Ditto.
11074 * command.h: (execute_cmd_post_hook): Declare.
11075 (execute_cmd_pre_hook): Declare.
11076 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11077 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11078 functions. Execute pre/post hook while ensuring that afterwords
11079 hook_in is cleared.
11080 * top.c (execute_command): Use execute_cmd_post_hook, and
11081 execute_cmd_pre_hook to execute pre/post commands.
11082 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11084 (hook_stop_stub): Call execute_cmd_pre_hook.
11086 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11088 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11089 set'' and this leads to a core dump. Move xstrdup of
11090 operating_system to after check that it is not NULL.
11092 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11094 * kod.c (kod_set_os): Remove unnecessary check that
11095 ``command->type'' is set_cmd.
11097 * valprint.c (set_input_radix): Use input_radix.
11098 (set_output_radix): Use output_radix.
11099 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11102 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11104 * value.h (struct value): Delete field ``substring_addr''. Change
11105 aligner fields to force_doublest_align, force_longest_align,
11106 force_core_addr_align and force_pointer_aligh.
11108 * value.h (struct value): Fix typo in above change.
11110 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11112 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11113 to fix internal_error from ``maintenance print architecture''.
11115 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11117 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11118 for gcc versions after gcc-2.8.1.
11120 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11122 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11123 for method resolution. Restore adjustment of ``this'' pointer after
11124 calling value_struct_elt, which was accidentally removed during the
11127 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11129 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11131 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11132 get_saved_register.
11133 * value.h (value_of_register): Update.
11135 2002-03-14 Richard Henderson <rth@redhat.com>
11137 * configure.in: Detect declaration for canonicalize_file_name.
11138 * utils.c (canonicalize_file_name): Declare, if needed.
11139 (gdb_realpath): Prefer realpath if available and usable.
11140 * config.in, configure: Rebuild.
11142 2002-03-14 Richard Henderson <rth@redhat.com>
11144 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11145 a constant array bound.
11147 * MAINTAINERS: Add myself to write-after-approval.
11149 2002-03-14 Michael Snyder <msnyder@redhat.com>
11151 * symfile.c (syms_from_objfile): Return immediately if no syms.
11152 (symbol_file_add): Return immediately if no syms.
11153 (find_sym_fns): Return immediately if no syms.
11155 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11157 * gdbserver/remote-util.c (remote_open): Print remote-side's
11158 IP address when remote debugging over the network.
11160 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11162 * config/sparc/fbsd.mh: Fix copyright.
11163 * config/sparc/fbsd.mt: Likewise.
11165 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11167 * MAINTAINERS: Fix typo in name of gdb warnings option.
11168 (x86-64): Fix formating so that this can be parsed by awk.
11170 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11172 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11173 * defs.h: Include "gdb/signals.h".
11174 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11176 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11178 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11179 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11182 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11183 Don Howard <dhoward@redhat.com>
11185 * mips-tdep.c (ST0_FR): Define.
11186 (mips2_fp_compat): New function, temporarily disabled.
11187 (mips_read_fp_register_single): New function.
11188 (mips_read_fp_register_double): New function.
11189 (mips_print_register): Use them.
11190 (do_fp_register_row): Likewise.
11192 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11194 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11197 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11199 * stabsread.c (read_member_functions): Fix is_stub test for
11200 static member functions, improve comment.
11202 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11204 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11205 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11206 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11207 commands that set boolean values.
11208 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11209 (arm_rdi_resume): Always initialize PC.
11210 (arm_rdi_open): Don't use rslt as a boolean.
11211 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11212 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11213 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11214 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11216 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11218 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11219 * configure: Rebuilt.
11221 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11223 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11224 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11226 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11228 * cli/cli-decode.c (set_cmd_completer): New function.
11229 * command.h (set_cmd_completer): Declare.
11230 * cli/cli-decode.h (set_cmd_completer): Ditto.
11232 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11233 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11234 * win32-nat.c (_initialize_inftarg): Ditto.
11235 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11236 * proc-api.c (_initialize_proc_api): Ditto.
11237 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11238 * source.c (_initialize_source): Ditto.
11239 * exec.c (_initialize_exec): Ditto.
11240 * solib.c (_initialize_solib): Ditto.
11241 * top.c (init_main): Ditto.
11242 * tracepoint.c (_initialize_tracepoint): Ditto.
11243 * symfile.c (_initialize_symfile): Ditto.
11244 * printcmd.c (_initialize_printcmd): Ditto.
11245 * infcmd.c (_initialize_infcmd): Ditto.
11246 * corefile.c (_initialize_core): Ditto.
11248 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11250 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11252 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11254 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11256 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11258 * NEWS: Update headings, 5.2 has branched.
11260 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11262 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11263 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11264 (register_addr, REGISTER_RAW_SIZE): Likewise.
11265 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11266 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11268 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11270 * MAINTAINERS (x86-64): Add myself.
11271 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11272 changed value_ptr -> struct value *
11274 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11276 * configure.host (sparc64-*-freebsd): Add.
11277 * configure.tgt: Likewise.
11278 * config/sparc/fbsd.mh: New file.
11279 * config/sparc/fbsd.mt: Likewise.
11280 * config/sparc/nm-fbsd.h: Likewise.
11281 * config/sparc/tm-fbsd.h: Likewise.
11283 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11285 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11286 regformats/reg-s390x.dat.
11288 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11290 * utils.c: Add FIXME explaining true/false problem.
11292 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11294 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11296 2002-02-28 Michael Chastain <mec@shout.net>
11298 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11300 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11302 * gdbserver/linux-s390-low.c: New file.
11303 * regformats/reg-s390.dat: New file.
11304 * regformats/reg-s390x.dat: New file.
11305 * gdbserver/configure.srv: Add S/390.
11306 * gdbserver/Makefile.in: Add S/390.
11307 * configure.tgt: Enable gdbserver for S/390.
11309 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11311 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11312 first line of the doc string for "info dos", except at the end of
11313 the sentence, since the short help stops at the first period.
11315 2002-02-28 Jason Merrill <jason@redhat.com>
11317 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11319 2002-02-27 Fred Fish <fnf@redhat.com>
11321 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11322 comment (dumy -> dummy).
11324 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11326 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11328 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11330 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11332 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11334 * gdbserver/acconfig.h: New file.
11335 * gdbserver/i387-fp.c: New file.
11336 * gdbserver/i387-fp.h: New file.
11337 * gdbserver/linux-x86-64.c: New file.
11338 * regformats/reg-x86-64.dat: New file.
11339 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11340 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11341 * gdbserver/configure.in: Add support for regsets.
11342 * gdbserver/config.in: Regenerate.
11343 * gdbserver/configure: Regenerate.
11344 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11345 * gdbserver/linux-low.h: New file.
11346 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11348 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11349 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11350 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11351 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11352 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11353 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11354 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11355 "i387-fp.h". Add PTRACE_GETREGS and friends.
11356 * gdbserver/regcache.c (supply_register): New function.
11357 (supply_register_by_name): New function.
11358 (collect_register): New function.
11359 (collect_register_by_name): New function.
11361 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11363 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11364 (config.status): Add configure.srv dependency.
11365 (server_h): Add config.h dependency.
11367 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11369 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11370 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11371 * gdbserver/configure.srv: Change i386-*-linux* to use
11374 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11376 * x86-64-tdep.c: Re-indent. Update copyright date.
11378 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11380 From Michal Ludvig <mludvig@suse.cz>:
11381 * x86-64-tdep.c (value.h): Delete.
11382 (gdb_assert.h): Include.
11383 (x86_64_register_convert_to_virtual,
11384 x86_64_register_convert_to_raw ): Add check which lets only
11385 floating-point values to be converted.
11386 (value_push): Delete.
11387 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11388 (i386_gdbarch_init): Number of register_bytes fixed.
11390 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11392 * MAINTAINERS: Add x86-64 target.
11394 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11396 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11397 * osfsolib.c (solib_map_sections): Ditto.
11398 * irix5-nat.c (solib_map_sections): Ditto.
11399 * corelow.c (gdb_check_format): Ditto.
11400 * symfile.c (symfile_bfd_open): Ditto.
11401 * solib.c (solib_map_sections): Ditto.
11404 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11406 * remote.c (_initialize_remote): By default, disable ``e'' and
11407 ``E'' step out-of-range packets.
11409 2002-02-26 Andreas Schwab <schwab@suse.de>
11411 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11412 m68k_linux_frame_saved_pc.
11413 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11415 (SIGCONTEXT_PC_OFFSET): Remove.
11416 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11417 m68k_linux_sigtramp_saved_pc): New functions.
11418 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11419 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11420 (UCONTEXT_PC_OFFSET): Define.
11421 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11422 non-RT and RT signal trampolines.
11424 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11426 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11427 (TARGET_NBPG, STACK_END_ADDR): Delete
11428 (VARIABLES_INSIDE_BLOCK): Delete.
11430 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11432 * utils.c (perror_with_name): Make string parameter constant.
11433 (print_sys_errmsg): Ditto.
11435 * defs.h (perror_with_name): Update.
11436 (print_sys_errmsg): Update.
11439 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11441 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11442 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11444 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11446 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11447 if it already matches the current architecture from the exec file.
11448 Include arch-utils.h for gdbarch_info_init prototype.
11449 * Makefile.in (rs6000-nat.o): Update dependencies.
11451 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11453 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11454 list of exported variables.
11456 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11458 * gdbserver/configure.srv: New file.
11459 * gdbserver/configure.in: Use configure.srv instead
11460 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11462 * gdbserver/configure: Regenerated.
11463 * gdbserver/terminal.h: New file.
11464 * gdbserver/Makefile.in: Update for configure changes. Remove
11465 more unneeded include paths.
11467 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11469 From wiz at danbala:
11470 * config/sparc/tm-sp64.h: Fix grammar and typos.
11473 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11475 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11476 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11477 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11478 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11479 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11480 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11481 * s390-tdep.c: Ditto.
11482 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11483 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11484 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11485 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11486 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11487 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11488 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11489 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11490 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11491 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11494 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11496 * lin-thread.c: Delete file.
11497 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11498 to gdb_proc_service.h.
11499 * configure: Re-generate.
11501 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11502 * serial.c (serial_open): Delete check for "ocd".
11505 * Makefile.in (linux-thread.o): Delete target.
11506 * linux-thread.c: Delete file.
11508 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11509 renamed SH files to be consistent.
11511 * symtab.c (sort_search_symbols): Use xfree.
11513 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11515 * arm-linux-tdep.c (arm_linux_init_abi): Register
11516 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11517 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11518 definition with undef, since we don't want the sysvr4 definition.
11519 (SKIP_TRAMPOLINE_CODE): Likewise.
11521 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11523 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11525 * configure.in: (AC_CHECK_FUNCS) Added test for
11526 canonicalize_file_name Regenerated.
11527 * config.in, configure: Regenerated.
11528 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11529 defined use canonicalize_file_name.
11531 2002-02-23 Michael Chastain <mec@shout.net>
11533 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11535 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11537 * README: Remove references to cygnus.com.
11538 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11539 dot com'' form. Remove references to cygnus.com and sourceware.
11541 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11543 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11544 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11545 1003.1-2001 no longer allows "head -1".
11546 * gdb/Makefile.in (version.c): Likewise.
11547 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11548 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11549 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11551 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11553 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11554 * command.h (cmd_cfunc_eq): Declare.
11555 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11557 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11558 ``struct cmd_list_element *''.
11559 * cli/cli-cmds.c (is_complete_command): Update. Use
11561 * top.c (execute_command): Pass the command to
11562 is_complete_command.
11563 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11565 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11567 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11568 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11569 architecture defines.
11570 * s390-tdep.c (s390_gdbarch_init): Likewise.
11572 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11574 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11575 (arm_linux_push_arguments): Likewise.
11576 (arm_linux_init_abi): Register them. Also register linux-specific
11578 (find_minsym_and_objfile): Use strcmp, not STREQ.
11579 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11580 (arm_linux_call_dummy_words): Delete declaration.
11581 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11582 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11584 (LOWEST_PC): Delete.
11586 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11588 * maint.c (print_section_info): Do not prepend `0x' to filepos
11589 output, it will be handled by local_hex_string_custom.
11591 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11593 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11594 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11595 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11597 2002-02-22 Jim Blandy <jimb@redhat.com>
11599 Indicate that the bcache functions don't change the strings
11601 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11602 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11604 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11606 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11608 2002-02-21 Christopher Faylor <cgf@redhat.com>
11610 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11611 find the complete path to a loaded DLL.
11613 2002-02-21 Fred Fish <fnf@redhat.com>
11615 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11616 that marks the end of the range of a function, enter a line number
11617 entry that has a line number of zero and a PC offset that matches
11618 the end of the function. This starts a range of PC's for which no
11619 line number information is known.
11620 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11621 PC's for which no line number info is found (line number is zero)
11622 then we didn't find any valid line information.
11623 * symtab.h: Document use of zero line number entry.
11625 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11627 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11628 (have_ptrace_getvrregs): Define for run time checks.
11629 (gdb_vrregset_t): New type for Altivec register handling.
11630 (fetch_register, store_register): Fetch/store altivec register
11632 (fetch_altivec_register, store_altivec_register): New functions.
11633 (supply_vrregset, fill_vrregset): New functions.
11634 (fetch_altivec_registers, store_altivec_registers): New functions.
11635 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11638 2002-02-21 Jiri Smid <smid@suse.cz>
11640 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11642 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11644 * Makefile.in (armnbsd-nat.o): Update dependencies.
11645 * armnbsd-nat.c (supply_gregset): New function. Common code to
11646 supply the integer register set.
11647 (supply_fparegset): New function. Similar for FPA registers.
11648 (fetch_regs, fetch_fp_regs): Use them.
11649 (fetch_core_registers): Likewise.
11650 (fetch_elfcore_registers): New function.
11651 (arm_netbsd_elfcore_fns): New core-file type specification.
11652 (_initialize_arm_netbsd_nat): Register it.
11654 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11656 * armnbsd-nat.c: Include gdbcore.h.
11657 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11658 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11659 'void' to declaration, to shut up ARI.
11660 (fetch_core_registers): Make static. Rewrite using supply_register.
11661 (arm_netbsd_core_fns): New core-file type specification.
11662 (_initialize_arm_netbsd_nat): New function.
11664 2002-02-21 Christopher Faylor <cgf@redhat.com>
11666 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11669 2002-02-20 Christopher Faylor <cgf@redhat.com>
11671 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11674 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11676 * jv-exp.y (parse_number): Change type of implicit longs
11677 to builtin_type_uint64.
11679 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11681 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11682 to be an integer instead of a `union wait'.
11684 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11686 * mips-linux-nat.c: Call the operating system GNU/Linux.
11687 * mips-linux-tdep.c: Likewise.
11688 * mips-tdep.c: Likewise.
11690 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11693 * jv-exp.y (parse_number): Handle 64-bit integers.
11695 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11697 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11698 AC_STDC_HEADERS to AC_HEADER_STDC.
11699 * gdbserver/configure: Regenerated.
11701 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11703 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11705 * sparc-tdep.c (get_longjmp_target): Likewise.
11707 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11709 * News: Add news about ARM and Multi-arch. Mention the new target
11712 2002-02-19 Jim Blandy <jimb@redhat.com>
11714 * stabsread.c (error_type_complaint): Improve error message.
11716 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11718 * gdbserver/README: Update documentation.
11719 * gdbserver/configure.in: Update configury to match documentation.
11720 * gdbserver/Makefile.in: Likewise.
11721 * gdbserver/configure: Regenerated.
11722 * gdbserver/aclocal.m4: New file, generated by aclocal.
11723 * gdbserver/config.in: New file, generated by autoheader.
11725 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11727 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11730 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11732 * arm-tdep.h (enum arm_float_model): New enum.
11733 (struct gdbarch_tdep): Add fp_model.
11734 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11735 up floating-point conversions until we know the floating-point model
11736 in use by the inferior. Don't complain about being unable to
11737 determine the ABI of the inferior when we don't have one.
11738 (arm_extract_return_value): Support different floating-point models.
11739 (arm_store_return_value): Likewise.
11740 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11742 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11744 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11746 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11747 of ``current_gdbarch''.
11749 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11751 * armnbsd-nat.c : ANSIfy all function declarations.
11752 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11753 (fetch_inferior_registers): Re-implement in terms of above.
11754 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11755 (store_inferior_registers): Re-implement in terms of above.
11757 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11759 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11761 * arm-linux-tdep.c: Likewise.
11762 * config/arm/tm-linux.h: Likewise.
11764 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11766 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11767 * config/arm/nbsd.mt (TM_FILE): Delete.
11768 * config/arm/tm-nbsd.h: Delete.
11770 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11772 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11773 Initialize CALL_DUMMY_LENGTH.
11775 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11777 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11779 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11780 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11781 defines one thing and that is incorrect for this port.
11782 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11784 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11786 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11788 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11790 * win32-nat.c (display_selector): New function. Displays information
11791 about the information returned by GetThreadSelectorEntry API function.
11792 (display_selectors): New function. Displays the infomation of
11793 the selector given as argument, or of CS, DS ans FS selectors
11794 if no argument is given.
11795 ( _initialize_inftarg): Add "w32" as info prefix command.
11796 Add "info w32 selector" as command calling display_selectors.
11798 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11800 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11801 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11804 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11806 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11808 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11810 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11811 (arm_fix_call_dummy): Call it.
11812 (arm_call_dummy_breakpoint_offset): Delete.
11813 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11814 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11816 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11818 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11819 Default to func_frame_chain_valid.
11820 * gdbarch.h, gdbarch.c: Re-generate.
11821 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11823 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11825 * ppc-linux-nat.c: Update copyright.
11826 (fetch_register, store_register): Add tid parameter, don't compute
11828 (fetch_ppc_registers, store_ppc_registers): Add tid
11829 parameter. Pass it along to callees.
11830 (fetch_inferior_registers, store_inferior_registers): Compute tid
11831 here, and pass it to calleed functions.
11832 (fill_gregset, supply_fpregset): Clean up formatting.
11834 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11836 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11837 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11839 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11841 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11842 * gdbarch.c gdbarch.h: Regenerate.
11843 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11845 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11846 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11847 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11849 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11850 * arm-tdep.c (arm_get_longjmp_target): New function.
11851 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11852 this to a positive value register arm_get_longjmp_target as the
11854 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11855 (arm_linux_init_abi): Set up longjmp description in tdep.
11856 * armnbsd-nat.c (get_longjmp_target): Delete.
11857 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11858 description in tdep.
11859 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11860 (get_longjmp_target): Delete declaration.
11861 (GET_LONGJMP_TARGET): Delete.
11862 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11863 (GET_LONGJMP_TARGET): Delete.
11865 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11867 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11868 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11869 of ``current_gdbarch''.
11871 2002-02-17 Tom Tromey <tromey@redhat.com>
11873 * cli/cli-cmds.c (compare_strings): New function.
11874 (complete_command): Only print each unique item once.
11875 * completer.h (complete_line): Declare.
11876 * completer.c (complete_line): New function.
11877 (line_completion_function): Use it.
11879 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11881 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11882 * gdbarch.h, gdbarch.c: Re-generate.
11884 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11886 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11888 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11890 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11891 * valops.c (value_arg_coerce): Don't take the address of a reference
11892 to convert an argument to a reference.
11894 2002-02-15 Christopher Faylor <cgf@redhat.com>
11896 * win32-nat.c (get_image_name): New function.
11897 (handle_load_dll): Use get_image_name function.
11898 (get_child_debug_event): Avoid registering debug events until possibly
11899 execed process is started.
11900 (child_create_inferior): Allow invocation via shell so that command
11901 line redirection, etc. works ok.
11902 (_initialize_inftarg): Add new command: "set shell" to control whether
11903 a shell is used to start a process.
11905 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11907 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11908 instead of find_register_by_number.
11909 (cannot_store_register): Likewise.
11911 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11913 * dwarf2read.c: Replace fprintf (stderr, ...) by
11914 fprintf_unfiltered (gdb_stderr, ...).
11916 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11918 * gdbserver/gdbserver.1: Document --attach.
11920 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11922 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11924 * arm-tdep.c (arm_default_arm_le_breakpoint)
11925 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11926 (arm_default_thumb_be_breakpoint): New. Initialize them from
11927 traditional breakpoint defines.
11928 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11929 (arm_gdbarch_init): Initialize new breakpoint variables.
11930 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11931 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11932 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11933 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11935 (arm_netbsd_init_abi_common): ... here; new function.
11936 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11937 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11938 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11939 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11941 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11943 * arm-tdep.h (enum arm_abi): New enum.
11944 (struct gdbarch_tdep): New structure.
11945 (LOWEST_PC): Provide a default.
11946 (arm_gdbarch_register_os_abi): Declare new function.
11947 * arm-tdep.c (arm_abi_names): New array.
11948 (process_note_abi_tag_sections): New function.
11949 (get_elfosabi): New function.
11950 (arm_gdbarch_register_os_abi): New function.
11951 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11952 support for that ABI has been built in, then call the appropriate
11953 configuration routine. Use gdbarch_num_regs() to get the number
11955 (arm_dump_tdep): New function.
11956 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11957 place-holder functions.
11958 (_initialize_arm_tdep): Register them.
11959 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11961 * armnbsd-tdep.c: New file.
11962 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11963 * config/arm/nbsd.mt (TDEPFILES): Add it.
11964 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11966 * armnbsd-nat.c: Include regcache.h.
11967 * Makefile.in (armnbsd-nat.o): Update dependency list.
11969 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11971 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11973 * gdbserver/Makefile.in: Fix typos in target rules.
11975 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11977 Fix part of PR gdb/267.
11978 * linespec.c (find_methods): Handle constructors specially for now.
11980 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11982 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11984 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11985 standard_coerce_float_to_double().
11987 2002-02-14 Christopher Faylor <cgf@redhat.com>
11989 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11992 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11994 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11995 find_variant_by_name, because it confuses the multiarch
11996 framework. Return NULL if there isn't an architecture with the
11997 user supplied name, instead of forcing a different one without
11998 recording the change with the multiarch machinery.
11999 (find_variant_by_name): Delete.
12001 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12003 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12004 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12006 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12008 * stack.c (print_frame_info_base): When calling
12009 print_frame_info_listing_hook, set current_source_symtab.
12011 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12013 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12014 and remove unused $(INCLUDE_DIR).
12015 Add regcache.c to OBS.
12016 Add generated register protocol files to clean target.
12017 Update dependencies for new objects, obsolete old target code.
12019 * gdbserver/linux-low.c: Remove all platform-specific code to
12020 new files. Remove various dead code. Update to use regcache
12022 * gdbserver/remote-utils.c (fromhex): Add return statement
12024 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12026 (input_interrupt): Add integer parameter to match prototype
12027 of a signal handler.
12028 (outreg): Use register_data ().
12029 (prepare_resume_reply): Use gdbserver_expedite_regs.
12030 * gdbserver/server.c (main): Dynamically allocate own_buf because
12031 PBUFSIZ is no longer constant. Use registers_to_string () and
12032 registers_from_string ().
12033 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12034 for error (), fatal (), and warning (). Update definition of
12035 PBUFSIZ to use regcache functionality. Add include guard.
12036 * gdbserver/utils.c (fatal): Add missing ``const''.
12037 (warning): New function.
12039 * regformats/regdat.sh: Include "regcache.h" in generated files.
12040 Provide init_registers () function.
12041 * regformats/regdef.h: Add prototype for set_register_cache ().
12044 * gdbserver/linux-arm-low.c: New file.
12045 * gdbserver/linux-i386-low.c: New file.
12046 * gdbserver/linux-ia64-low.c: New file.
12047 * gdbserver/linux-m68k-low.c: New file.
12048 * gdbserver/linux-mips-low.c: New file.
12049 * gdbserver/linux-ppc-low.c: New file.
12050 * gdbserver/linux-sh-low.c: New file.
12052 * gdbserver/regcache.c: New file.
12053 * gdbserver/regcache.h: New file.
12055 * gdbserver/low-linux.c: Removed obsolete file.
12057 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12059 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12060 * config/i386/linux.mt: Likewise.
12061 * config/ia64/linux.mt: Likewise.
12062 * config/m68k/linux.mh: Likewise.
12063 * config/powerpc/linux.mh: Likewise.
12064 * config/mips/linux.mt: Likewise.
12066 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12068 * config/i386/i386lynx.mh: Mark gdbserver variables
12069 as (currently) obsolete for this target.
12070 * config/i386/nbsd.mt: Likewise.
12071 * config/i386/nbsdelf.mt: Likewise.
12072 * config/m32r/m32r.mt: Likewise.
12073 * config/m68k/m68klynx.mh: Likewise.
12074 * config/m68k/nbsd.mt: Likewise.
12075 * config/m68k/sun3os4.mh: Likewise.
12076 * config/mips/vr5000.mt: Likewise.
12077 * config/ns32k/nbsd.mt: Likewise.
12078 * config/pa/hppabsd.mh: Likewise.
12079 * config/pa/hppaosf.mh: Likewise.
12080 * config/powerpc/nbsd.mt: Likewise.
12081 * config/rs6000/rs6000lynx.mh: Likewise.
12082 * config/s390/s390.mt: Likewise.
12083 * config/s390/s390x.mt: Likewise.
12084 * config/sparc/sparclynx.mh: Likewise.
12085 * config/sparc/sun4os4.mh: Likewise.
12086 * config/i386/x86-64linux.mt: Likewise.
12087 * config/sparc/linux.mh: Likewise.
12089 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12091 * configure.tgt: Configure gdbserver only for known working
12092 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12093 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12094 SUBDIRS if it is configured. Update comment for ${nativefile}.
12095 * configure: Regenerated.
12097 2002-02-13 Michael Snyder <msnyder@redhat.com>
12099 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12101 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12102 (default_gcore_mach): Just return 0, work around a problem in bfd.
12103 (default_gcore_target): OK to return NULL if exec_bfd is null.
12104 (make_mem_sec): Use a cast, avoid a warning.
12106 * procfs.c (find_memory_regions_callback): Use a cast instead of
12107 calling host_pointer_to_address (which complains if
12108 sizeof (host pointer) != sizeof (target pointer)).
12109 (procfs_make_note_section): Avoid overflow in psargs string.
12111 * procfs.c (procfs_make_note_section): Make the default
12112 implementation return an error.
12114 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12116 * procfs.c (procfs_make_note_section): Provide a default definition
12117 (for alpha-dec-osf4.0f). Fix typos.
12119 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12121 * linux-proc.c: Add include of regcache.h.
12122 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12124 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12126 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12127 * memattr.c (create_mem_region): Disallow useless empty region.
12128 Regions are half-open intervals, so allow [A..B) [B..C) as
12131 2002-02-13 Michael Chastain <mec@shout.net>
12133 * defs.h: Kill CONST_PTR.
12134 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12135 * c-lang.c (c_builtin_types): Likewise.
12136 * ch-lang.c (ch_builtin_types): Likewise.
12137 * f-lang.c (f_builtin_types): Likewise.
12138 * language.c (unknown_builtin_types): Likewise.
12139 * m2-lang.c (m2_builtin_types): Likewise.
12140 * p-lang.c (pascal_builtin_types): Likewise.
12141 * scm-lang.c (c_builtin_types): Likewise.
12143 2002-02-13 Keith Seitz <keiths@redhat.com>
12145 * arm-tdep.h (arm_get_next_pc): Add declaration.
12147 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12149 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12150 with other related struct-returning functions.
12151 (arm_extract_struct_value_address): New function.
12152 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12153 initialize float_format, double_format and long_double_format as
12154 appropriate to the endianness of the target.
12155 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12156 (arm_use_struct_convention): Delete declaration.
12157 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12159 2002-02-13 Keith Seitz <keiths@redhat.com>
12161 * defs.h (core_addr_to_string_nz): New function.
12163 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12165 Apply missing bits of 2002-01-15 patch.
12166 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12167 (fill_fpregset): Use i387_fill_fsave.
12169 2002-02-12 Keith Seitz <keiths@redhat.com>
12171 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12172 (core_addr_to_string_nz): New function.
12174 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12176 * arm-linux-nat.c: Really include arm-tdep.h.
12177 * config/arm/tm-linux.h (struct type, struct value): Declare.
12179 2002-02-11 Michael Snyder <msnyder@redhat.com>
12181 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12182 (gcore section): Ifdef for Solaris and Unixware only.
12183 (procfs_do_thread_registers): Unixware needs one lwpstatus
12184 per thread (not one prstatus or pstatus).
12185 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12186 not over all gdb threads. For unixware, call elfcore_write_pstatus
12187 once before iterating over threads.
12189 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12191 * arm-tdep.h: New file.
12192 * arm-tdep.c: Include arm-tdep.h.
12193 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12194 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12195 (arm_print_float_info, arm_register_type, convert_to_extended)
12196 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12197 (arm_extract_return_value, arm_register_name): Make static.
12198 (arm_software_single_step): Similarly. Fix types in declaration.
12199 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12200 (arm_store_return_value, arm_store_struct_return): New functions.
12201 (arm_gdbarch_init): Register the above functions. Also register
12202 call_dummy_start_offset, sizeof_call_dummy_words,
12203 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12204 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12205 max_register_virtual_size, register_size. Set up
12206 prologue_cache.saved_regs here, rather than ...
12207 (_initialize_arm_tdep): ... here.
12208 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12210 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12211 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12212 (arm_print_float_info, arm_register_type, convert_to_extended)
12213 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12214 (arm_extract_return_value, arm_register_name): Delete declarations.
12215 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12216 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12217 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12218 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12219 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12220 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12221 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12222 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12223 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12224 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12225 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12226 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12228 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12229 * remote-rdi.c remote-rdp.c: Likewise.
12230 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12231 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12232 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12235 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12236 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12237 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12238 from non-ARM_ prefixed definitions.
12239 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12241 * remote-rdi.c remote-rdp.c: Likewise.
12242 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12244 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12246 * arm-tdep.c (arm_frameless_function_invocation)
12247 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12248 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12249 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12250 (arm_pop_frame, arm_get_next_pc): Make static.
12251 (arm_gdbarch_init): Register above in gdbarch structure.
12252 (arm_read_fp): Renamed from arm_target_read_fp.
12253 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12254 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12255 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12256 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12257 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12258 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12259 (arm_pc_is_thumb_dummy): Delete declarations.
12260 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12261 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12262 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12263 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12265 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12267 * symtab.c (compare_search_syms): New function.
12268 (sort_search_symbols): New function.
12269 (search_symbols): Sort symbols after searching rather than
12272 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12274 * NEWS: Linux -> GNU/Linux.
12276 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12278 * gdbarch.sh: For for level one methods, disallow a definition
12279 when partially multi-arched. Add comments explaining rationale.
12280 * gdbarch.h: Re-generate.
12282 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12284 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12285 multi-arch partial.
12287 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12289 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12290 field. Use diff -u.
12291 * gdbarch.c: Re-generate.
12293 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12295 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12296 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12299 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12301 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12302 multi-arch partial.
12303 (PUSH_ARGUMENTS): Switch to using predefault.
12304 * gdbarch.c: Regenerate.
12306 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12308 * valops.c (PUSH_ARGUMENTS): Delete definition.
12309 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12310 partial. Default to default_push_arguments.
12311 * gdbarch.h, gdbarch.c: Regenerate.
12313 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12315 * defs.h (throw_exception): Rename return_to_top_level. Update
12317 * utils.c (error_stream, internal_verror, quit): Ditto.
12318 * top.c (throw_exception, catcher): Ditto.
12319 * sparclet-rom.c (sparclet_load): Ditto.
12320 * remote.c (interrupt_query, minitelnet): Ditto.
12321 * remote-sds.c (interrupt_query): Ditto.
12322 * remote-mips.c (mips_error, mips_kill): Ditto.
12323 * ocd.c (interrupt_query): Ditto.
12324 * monitor.c (monitor_interrupt_query): Ditto.
12325 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12326 * target.h: Update comment.
12328 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12330 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12332 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12333 default_double_format.
12334 * gdbarch.h, gdbarch.c: Re-generate.
12335 * findvar.c (floatformat_unknown): Delete variable definition.
12336 * doublest.h (floatformat_unknown): Delete variable declaration.
12338 2002-02-09 Jim Blandy <jimb@redhat.com>
12340 * stabsread.c (read_type): Add code to parse Sun's syntax for
12341 prototyped function types.
12343 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12345 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12346 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12348 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12350 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12351 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12352 now _initialize_xcoffsolib gets called again and overrides the
12353 commands from solib.c in a native configuration.
12355 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12357 * doublest.c (store_typed_floating): Don't try to return a value.
12360 2002-02-08 Jim Blandy <jimb@redhat.com>
12362 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12363 is prototyped and has no arguments, print its argument list as
12366 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12368 * MAINTAINERS (write-after-approval): Add myself.
12369 (paper-trail): I've escaped!
12371 2002-02-08 Christopher Faylor <cgf@redhat.com>
12373 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12375 (_initialize_check_for_gdb_ini): Ditto.
12377 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12379 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12380 xaprintf -> xasprintf.
12382 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12384 * win32-nat.c: Remove use of printf and sprintf functions.
12386 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12388 * arm-tdep.c (arm_frame_chain_valid): Make static.
12389 (arm_push_arguments): Likewise.
12390 (arm_gdbarch_init): New function.
12391 (_initialize_arm_tdep): Call it.
12392 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12393 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12394 (FRAME_CHAIN_VALID): Delete.
12395 (arm_frame_chain_valid): Delete declaration.
12396 (PUSH_ARGUMENTS): Delete.
12397 (arm_push_arguments): Delete declaration.
12398 (CALL_DUMMY_P): Delete.
12400 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12401 Corinna Vinschen <vinschen@redhat.com>
12403 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12404 on builtin float types.
12406 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12408 * utils.c: Include <curses.h> before "bfd.h".
12409 * tui/tui-hooks.c: Likewise.
12410 * tui/tui.c: Likewise.
12411 * tui/tuiCommand.c: Likewise.
12412 * tui/tuiData.c: Likewise.
12413 * tui/tuiDataWin.c: Likewise.
12414 * tui/tuiDisassem.c: Likewise.
12415 * tui/tuiGeneralWin.c: Likewise.
12416 * tui/tuiIO.c: Likewise.
12417 * tui/tuiLayout.c: Likewise.
12418 * tui/tuiRegs.c: Likewise.
12419 * tui/tuiSource.c: Likewise.
12420 * tui/tuiSourceWin.c: Likewise.
12421 * tui/tuiStack.c: Likewise.
12422 * tui/tuiWin.c: Likewise.
12424 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12426 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12427 to include space for pseudoregs as well. Update loops accordingly.
12428 (sh_fp_frame_init_saved_regs): Ditto.
12429 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12431 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12433 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12434 Add Richard Earnshaw to Arm maintainers.
12436 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12438 * defs.h (warning_begin): Delete declaration.
12440 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12443 2002-02-07 Michael Snyder <msnyder@redhat.com>
12445 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12446 Logic bug, remove misplaced else.
12448 2002-02-07 Klee Dienes <klee@apple.com>
12450 * fork-inferior.c (fork_inferior): Add '!' to the list of
12451 characters that need to be quoted when building a string for the
12452 shell. Quote '!' specifically with a backslash, since CSH chokes
12453 when trying to evaluate "str!str".
12455 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12457 * rdi-share/host.h: Only provide a typedef for bool if it is not
12460 2002-02-04 Michael Snyder <msnyder@redhat.com>
12462 * breakpoint.h (enum bptype): Add new overlay event bp type.
12463 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12465 * breakpoint.c (create_internal_breakpoint): New function.
12466 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12467 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12468 (create_thread_event_breakpoint): Ditto.
12469 (create_solib_event_breakpoint): Ditto.
12470 (create_overlay_event_breakpoint): New function.
12471 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12472 (update_breakpoints_after_exec): Delete and re-initialize
12473 overlay event breakpoints after an exec. Add FIXME comment
12474 about longjmp breakpoint.
12475 (print_it_typical): Ignore overlay event breakpoints.
12476 (print_one_breakpoint): Ditto.
12478 (bpstat_what): Do not stop for overlay event breakpoints.
12479 (delete_breakpoint): Don't delete overlay event breakpoints.
12480 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12481 (breakpoint_re_set): Re-create overlay event breakpoint.
12483 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12484 (overlay_manual_command): Disable overlay breakpoints.
12485 (overlay_off_command): Disable overlay breakpoints.
12487 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12489 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12490 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12491 to here from config/tm-arm.h.
12492 (coff_sym_is_thumb): Make static.
12493 (arm_elf_make_msymbol_special): New function.
12494 (arm_coff_make_msymbol_special): New function.
12495 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12496 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12497 (coff_sym_is_thumb): Delete declaration.
12498 (arm_elf_make_msymbol_special): Declare.
12499 (arm_coff_make_msymbol_special): Declare.
12500 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12501 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12503 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12505 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12507 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12509 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12510 * gdbarch.c gdbarch.h: Regenerate.
12511 * arch-utils.c (default_print_float_info): New function.
12512 * arch-utils.h (default_print_float_info): Prototype it.
12513 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12514 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12515 (PRINT_FLOAT_INFO): Document it.
12517 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12518 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12519 (PRINT_FLOAT_INFO): Define.
12521 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12523 * win32-nat.c (_initialize_check_for_gdb_ini):
12524 Add typecast to sprintf argument to suppress a warning.
12526 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12528 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12529 to allow easier handling of pass state.
12530 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12531 that gives exception name and address.
12532 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12533 and set last_sig value to ourstatus->value.sig. Some missing
12535 (child_continue): Correctly report continue_status.
12536 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12537 TARGET_SIGNAL_0 (new default value).
12538 (child_resume): consider sig argument passed to decide if
12539 the exception should be passed to debuggee or not.
12541 2002-02-05 Michael Snyder <msnyder@redhat.com>
12543 * regcache.c (fetch_register): Call target_fetch_register
12544 only if we don't call FETCH_PSEUDO_REGISTER.
12545 (store_register): Call target_store_register only if we
12546 don't call STORE_PSEUDO_REGISTER.
12548 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12550 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12551 ELF_MAKE_MSYMBOL_SPECIAL.
12552 * gdbarch.c, gdbarch.h: Regenerate.
12553 * arch-utils.c (default_make_msymbol_special): New function.
12554 * arch-utils.h (default_make_msymbol_special): Export.
12555 * elfread.c (elf_symtab_read): Compile use of
12556 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12558 * coffread.c (coff_symtab_read): Ditto, for
12559 COFF_MAKE_MSYMBOL_SPECIAL.
12561 2002-02-05 Jim Blandy <jimb@redhat.com>
12563 * solib-svr4.c (svr4_truncate_ptr): New function.
12564 (svr4_relocate_section_addresses): Do the address arithmetic with
12565 the appropriate truncation for target addresses, even when
12566 CORE_ADDR is larger than a target address.
12568 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12570 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12573 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12575 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12578 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12580 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12582 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12584 * gdbserver/linux-low.c: Remove unused include files.
12586 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12588 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12589 (read_inferior_memory): Use it.
12590 (write_inferior_memory): Likewise.
12592 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12594 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12595 grubbing through sys_errlist.
12597 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12599 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12601 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12602 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12604 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12606 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12607 (do_sfunc, set_cmd_sfunc): New functions.
12609 * command.h (struct cmd_list_element): Add field func.
12610 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12611 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12612 * cli/cli-decode.h: Ditto.
12614 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12615 (help_all, help_cmd_list): Ditto.
12616 (find_cmd, complete_on_cmdlist): Ditto.
12617 * top.c (execute_command): Ditto.
12619 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12622 * infcmd.c (notice_args_read): Fix function signature.
12624 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12625 * cli/cli-decode.c (add_set_cmd): Ditto.
12626 * utils.c (initialize_utils): Ditto.
12627 * maint.c (_initialize_maint_cmds): Ditto.
12628 * infrun.c (_initialize_infrun): Ditto.
12629 * demangle.c (_initialize_demangler): Ditto.
12630 * remote.c (add_packet_config_cmd): Ditto.
12631 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12632 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12633 * proc-api.c (_initialize_proc_api): Ditto.
12634 * kod.c (_initialize_kod): Ditto.
12635 * valprint.c (_initialize_valprint): Ditto.
12636 * top.c (init_main): Ditto.
12637 * infcmd.c (_initialize_infcmd): Ditto.
12638 * corefile.c (_initialize_core): Ditto.
12639 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12640 * arch-utils.c (initialize_current_architecture): Ditto.
12641 (_initialize_gdbarch_utils): Ditto.
12642 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12644 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12645 * wince.c (_initialize_inftarg): Ditto.
12646 * symfile.c (_initialize_symfile): Ditto.
12647 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12648 * language.c (_initialize_language): Ditto.
12649 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12651 2002-02-04 Michael Snyder <msnyder@redhat.com>
12653 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12655 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12657 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12658 Add rules for building the register data files.
12660 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12662 * regformats/regdat.sh: Add braces to the definition of
12663 expedite_regs_${arch}.
12665 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12667 * regformats/regdef.h (struct reg): Add comment describing the
12668 requirements for offset and size fields.
12670 2002-02-04 Andreas Schwab <schwab@suse.de>
12672 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12673 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12675 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12677 * gdbarch.sh (copyright): Update years in generated header.
12678 (SMASH_TEXT_ADDRESS): Add rule.
12679 * gdbarch.h, gdbarch.c: Re-generate.
12680 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12681 * dbxread.c: Likewise.
12682 * dwarfread.c: Likewise.
12683 * elfread.c: Likewise.
12684 * somread.c: Likewise.
12686 * arm-tdep.c (arm_smash_text_address): New function.
12687 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12689 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12691 Add support for hardware watchpoints on win32 native.
12692 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12693 CONTEXT_DEBUG_REGISTERS.
12694 (dr variable): New variable. Static array containing a local copy
12695 of debug registers.
12696 (debug_registers_changed): New variable. Reflects when debug registers
12697 are changed and need to be written to inferior.
12698 (debug_registers_used): New variable. Reflects when any debug register
12699 was set, used when new threads are created.
12700 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12702 (thread_rec): Set dr array if id is the thread of current_event .
12703 (child_continue, child_resume): Change the debug registers for all
12704 threads if debug_registers_changed.
12705 (child_add_thread): Change the debug registers if debug_registers_used.
12706 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12707 Link nm.h to new nm-cygwin.h file.
12708 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12709 of hardware registers.
12711 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12713 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12714 Restore behavour broken by 2002-01-20 Andrew Cagney
12715 <ac131313@redhat.com> IEEE_FLOAT removal.
12717 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12719 * c-valprint.c (c_val_print): Pass a proper valaddr to
12720 cp_print_class_method.
12721 * valops.c (search_struct_method): If there is only one method
12722 and args is NULL, return that method.
12724 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12726 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12727 accessing tag_name directly.
12729 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12731 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12732 of accessing tag_name directly.
12734 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12737 * gdbtypes.c (replace_type): New function.
12738 * gdbtypes.h (replace_type): Add prototype.
12739 * stabsread.c (read_type): Use replace_type.
12741 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12743 * Makefile.in (memattr.o): Add missing dependencies rule.
12745 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12747 * breakpoint.c (break_at_finish_command): Really export.
12748 (break_at_finish_at_depth_command): Ditto.
12749 (tbreak_at_finish_command): Ditto.
12750 * hppa-tdep.c: Include completer.h.
12751 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12752 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12754 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12756 * utils.c (do_write): New function.
12757 (error_stream): Rewrite combining the code from error_begin and
12759 (verror): Rewrite using error_stream.
12760 (error_begin): Delete function.
12762 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12764 * utils.c (error_begin): Make static.
12765 * defs.h (error_begin): Delete declaration.
12767 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12768 (decode_line_1): Use cplusplus_error instead of error_begin,
12769 cplusplus_hint and return_to_top_level.
12770 * coffread.c (coff_symfile_read): Use error instead of error_begin
12771 and return_to_top_level.
12772 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12774 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12776 * language.h (type_error, range_error): Make string parameter
12778 * language.c (warning_pre_print): Delete extern declaration.
12779 * dwarfread.c (warning_pre_print): Ditto.
12780 * language.c (type_error, range_error): Rewrite to use verror and
12781 vwarning instead of warning_begin.
12783 2002-02-01 Michael Snyder <msnyder@redhat.com>
12785 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12786 (set_ignore_count): Move misplaced comment back where it belongs.
12788 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12790 * command.h (NO_FUNCTION): Delete macro.
12791 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12792 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12793 * tracepoint.c (_initialize_tracepoint): Ditto.
12794 * cli/cli-decode.c (add_set_cmd): Ditto.
12795 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12797 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12799 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12800 Update ``this'' pointer when calling virtual functions.
12802 2002-02-01 Michael Snyder <msnyder@redhat.com>
12804 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12805 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12807 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12809 * regformats/reg-arm.dat: New file.
12810 * regformats/reg-i386.dat: New file.
12811 * regformats/reg-ia64.dat: New file.
12812 * regformats/reg-m68k.dat: New file.
12813 * regformats/reg-mips.dat: New file.
12814 * regformats/reg-ppc.dat: New file.
12815 * regformats/reg-sh.dat: New file.
12816 * regformats/regdef.h: New file.
12817 * regformats/regdat.sh: New file.
12819 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12821 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12822 (arm_frame_args_address, arm_frame_locals_address): New functions.
12823 (arm_frame_num_args): New function.
12824 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12825 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12826 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12828 2002-01-31 Michael Snyder <msnyder@redhat.com>
12830 * breakpoint.c (break_at_finish_command): Export.
12831 (break_at_finish_at_depth_command): Export.
12832 (tbreak_at_finish_command): Export.
12833 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12834 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12835 "txbreak" commands, which are HPPA specific.
12837 * printcmd.c (disassemble_command): Remove an ancient
12838 artifact of an old merge.
12840 * symfile.h (enum overlay_debugging_state):
12841 Define enum constant values for overlay mode.
12842 * symfile.c (overlay_debugging): Use enums instead of literals.
12843 (overlay_is_mapped, overlay_auto_command,
12844 overlay_manual_command): Ditto.
12846 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12847 breakpoint_here_p, breakpoint_inserted_here_p,
12848 breakpoint_thread_match, bpstat_stop_status,
12849 describe_other_breakpoints, check_duplicates, clear_command):
12850 Coding standard fixes.
12852 * target.c (target_xfer_memory): Add spaces, coding standard.
12853 (do_xfer_memory): Add missing line to trust-readonly
12854 code: check bfd SEC_READONLY flag for section.
12856 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12858 * PROBLEMS: Fix typo, 5.1->5.1.1.
12860 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12862 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12863 data symbols, since we search based on textlow and texthigh.
12864 (find_pc_sect_symtab): Likewise.
12866 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12868 * defs.h (vwarning): Declare.
12869 * utils.c (vwarning): New function.
12870 (warning): Call vwarning.
12871 (warning_begin): Delete function.
12873 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12874 the warning message.
12875 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12878 2002-01-30 Michael Snyder <msnyder@redhat.com>
12880 * NEWS: Mention "set trust-readonly-sections" command.
12881 Mention generate-core-file command.
12883 2002-01-15 Michael Snyder <msnyder@redhat.com>
12885 * target.c: New command, "set trust-readonly-sections on".
12886 (do_xfer_memory): Honor the suggestion to trust readonly sections
12887 by reading them from the object file instead of from the target.
12888 (initialize_targets): Register command "set trust-readonly-sections".
12890 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12892 * parse.c (target_map_name_to_register): Simplify, search regs and
12893 pseudo-regs using a single loop.
12895 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12897 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12899 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12901 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12902 * config/i386/i386v42mp.mh: Add i387-nat.o .
12903 * i386v4-nat.c: Include i387-nat.h.
12904 (supply_fpregset): Use i387_supply_fsave.
12905 (fill_fpregset): Use i387_fill_fsave.
12907 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12909 * arm-tdep.c (arm_call_dummy_words): Define.
12910 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12911 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12912 (CALL_DUMMY_WORDS): Define.
12913 (arm_call_dummy_words): Declare.
12914 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12915 (arm_linux_call_dummy_words): Declare.
12917 2002-01-30 Andreas Schwab <schwab@suse.de>
12919 * m68klinux-nat.c: Fix last change to use regcache_collect
12920 instead of referencing registers[] directly.
12922 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12924 * parse.c (target_map_name_to_register): Delete code wrapped in
12925 #ifdef REGISTER_NAME_ALIAS_HOOK.
12927 2002-01-28 Michael Snyder <msnyder@redhat.com>
12929 * regcache.c (legacy_read_register_gen): Need to be able to
12930 read pseudo-register as well as real register.
12931 (legacy_write_register_gen): Ditto.
12933 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12935 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12936 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12937 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12938 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12939 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12940 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12941 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12942 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12943 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12944 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12945 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12946 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12947 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12948 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12949 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12950 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12951 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12952 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12953 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12954 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12956 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12958 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12959 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12960 (initialize_current_architecture): Update target_byte_order using
12961 information from BFD.
12962 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12963 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12965 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12967 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12968 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12970 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12971 #ifdef INVALID_FLOAT.
12972 * infcmd.c (do_registers_info): Ditto.
12973 * values.c (unpack_double): Ditto. Add comment.
12975 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12976 already commented out.
12978 2002-01-26 Andreas Schwab <schwab@suse.de>
12980 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12981 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12982 registers and add support for PTRACE_GETREGS.
12984 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12986 GDB 5.1.1 released from 5.1 branch.
12987 * NEWS: Add 5.1.1 news.
12988 * README: Sync with 5.1 branch.
12990 2002-01-23 Fred Fish <fnf@redhat.com>
12992 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12993 stabstring on initial malloc. Reallocing will copy it for us,
12996 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12998 * Makefile.in (hpread_h): Delete.
12999 (HFILES_NO_SRCDIR): Remove hpread.h.
13000 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13001 (hpread.o): Update dependencies.
13002 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13004 * hp-psymtab-read.c: Remove file.
13005 * hp-symtab-read.c: Remove file.
13006 * hpread.h: Remove file.
13008 * hpread.c: Merge all contents of hp-psymtab-read.c,
13009 hp-symtab-read.c and hpread.h into this file, as it was prior to
13012 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13013 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13014 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13015 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13017 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13019 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13020 fill_gregset): Call gdbarch_tdep() just once, assign result to
13021 variable and use that, instead of calling the function several
13024 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13026 * configure.host: Accept sparcv9 as alias for sparc64.
13027 * configure.tgt: Likewise.
13029 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13031 * solib-aix5.c (build_so_list_from_mapfile)
13032 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13033 arguments is not reversed.
13034 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13035 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13037 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13039 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13040 modified version of obsolete sh_fetch_pseudo_register.
13041 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13042 (sh4_register_read): New function.
13043 (sh_pseudo_register_write): New function. Renamed and modified
13044 version of obsolete sh_store_pseudo_register.
13045 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13046 (sh4_register_write): New function.
13047 (sh_gdbarch_init): Remove setting of gdbarch function
13048 fetch_pseudo_register and store_pseudo_register. Remove setting of
13049 register_convert_to_raw, register_convert_to_virtual,
13050 register_convertible.
13051 (sh_sh4_register_convertible): Delete. No longer needed. All is
13052 taken care by architecture specific functions
13053 register_read/register_write.
13054 (sh_sh4_register_convert_to_virtual): Make static.
13055 (sh_sh4_register_convert_to_raw): Ditto.
13057 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13059 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13060 (floatformat_is_nan, floatformat_mantissa): Ditto.
13062 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13063 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13064 builtin_type_ieee_double_little,
13065 builtin_type_ieee_double_littlebyte_bigword,
13066 builtin_type_m68881_ext, builtin_type_i960_ext,
13067 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13068 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13069 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13070 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13072 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13074 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13075 parameter. Set frameless flag if it exists and depended of
13076 whether the scanned function is frameless or not.
13077 (xstormy16_skip_prologue): If function is frameless, return
13078 result of xstormy16_scan_prologue().
13079 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13082 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13084 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13085 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13086 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13087 sh_sh4_register_byte, sh_sh4_register_raw_size,
13088 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13089 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13090 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13091 sh_store_pseudo_register, sh_do_pseudo_register): Call
13092 gdbarch_tdep() just once, assign result to variable and use that,
13093 instead of calling the function several times.
13095 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13097 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13098 macros instead of LAST_FPU_CTRL_REGNUM.
13099 (store_register): Likewise.
13101 2002-01-21 Jim Blandy <jimb@redhat.com>
13103 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13104 is up-to-date before running the program, not just when a program
13107 2002-01-21 Fred Fish <fnf@redhat.com>
13109 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13110 when we have found all instructions we are looking for.
13112 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13114 * arm-tdep.c (arm_register_name): New function.
13115 (arm_registers_names): Make static.
13116 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13117 (arm_register_name): Declare.
13118 (REGISTER_NAME): Use it.
13120 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13121 Kevin Buettner <kevinb@redhat.com>
13123 Convert arm targets to new FRAME interface.
13124 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13125 (arm_frame_find_save_regs): Delete.
13126 (arm_frame_init_saved_regs): New.
13127 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13128 Allocate extra_info as required. Convert all uses of fsr.regs
13129 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13131 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13132 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13133 (check_prologue_cache, save_prologue_cache): Likewise.
13134 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13135 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13136 (FRAME_FIND_SAVED_REGS): Delete.
13137 (arm_frame_find_saved_regs): Delete prototype.
13138 (arm_frame_init_saved_regs): New prototype.
13139 (FRAME_INIT_SAVED_REGS): Define.
13141 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13143 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13145 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13147 From Jeff Law <law@redhat.com>:
13148 * infttrace.c: Include <sys/pstat.h>.
13149 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13150 exec file if the ttrace equivalent fails.
13152 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13154 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13155 (closeLogFile): Ditto.
13157 2002-01-20 Michael Chastain <mec@shout.net>
13159 * top.c (print_gdb_version): Bump copyright year to 2002.
13161 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13163 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13164 Zannoni and Eli Zaretskii.
13166 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13168 * buildsym.c: Update copyright years.
13169 * c-typeprint.c: Likewise.
13170 * dwarf2read.c: Likewise.
13171 * f-typeprint.c: Likewise.
13172 * gdbtypes.c: Likewise.
13173 * gdbtypes.h: Likewise.
13174 * hp-symtab-read.c: Likewise.
13175 * hpread.c: Likewise.
13176 * mdebugread.c: Likewise.
13177 * p-typeprint.c: Likewise.
13179 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13181 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13182 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13183 byte-order selectable.
13184 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13185 * arch-utils.c: Ditto.
13186 (set_endian): Ditto.
13187 (set_endian_from_file): Ditto.
13188 * gdbserver/low-sim.c (create_inferior): Ditto.
13189 * gdbarch.sh: Ditto.
13190 * gdbarch.h: Re-generate.
13191 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13192 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13193 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13194 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13195 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13196 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13197 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13198 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13200 * config/mips/tm-wince.h: Remove #undef of macro
13201 TARGET_BYTE_ORDER_SELECTABLE.
13202 * config/sh/tm-wince.h: Ditto.
13204 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13206 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13207 member function fields. Add accessor macro
13208 TYPE_FN_FIELD_ARTIFICIAL.
13209 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13210 * c-typeprint.c (c_type_print_base): Skip artificial member
13213 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13215 * f-typeprint.c: Delete unused function f_type_print_args.
13216 * p-typeprint.c: Delete unused function pascal_type_print_args.
13218 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13220 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13221 comment. Add ``artificial'' to ``union field_location''.
13223 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13225 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13226 * mdebugread.c (parse_symbol): Likewise.
13227 * stabsread.c (define_symbol): Likewise.
13228 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13229 initializing TYPE_FIELD_BITPOS to n (obsolete).
13230 (hpread_doc_function_type): Likewise.
13231 * hpread.c (hpread_function_type): Likewise.
13233 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13235 * configure.in (host_makefile_frag): Only require a host makefile
13236 fragment when a native build.
13237 * configure: Re-generate.
13239 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13241 * doublest.h (floatformat_from_type): Declare.
13242 * doublest.c (floatformat_from_type): New function.
13243 (convert_typed_floating): Use.
13245 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13246 call to function floatformat_from_type.
13248 * gdbarch.sh (IEEE_FLOAT): Delete.
13249 * gdbarch.h, gdbarch.c: Re-generate.
13250 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13251 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13252 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13253 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13254 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13255 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13256 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13257 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13258 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13259 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13260 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13261 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13263 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13264 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13265 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13266 * sh-tdep.c (sh_gdbarch_init): Ditto.
13267 * mips-tdep.c (mips_gdbarch_init): Ditto.
13268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13269 * cris-tdep.c (cris_gdbarch_init): Ditto.
13271 2002-01-20 Jiri Smid <smid@suse.cz>
13273 * configure.host, configure.tgt: Support x86-64.
13274 * NEWS: Note new target x86-64.
13276 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13277 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13278 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13279 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13280 x86-64-linux-nat.o): Fix dependencies.
13282 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13284 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13285 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13286 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13287 * config/sparc/xm-sun4os4.h: Delete file.
13288 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13290 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13292 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13293 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13294 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13295 * config/i386/i386lynx.mh (XM_FILE): Delete.
13296 * config/rs6000/xm-rs6000ly.h: Delete file.
13297 * config/sparc/xm-sparclynx.h: Delete file.
13298 * config/m68k/xm-m68klynx.h: Delete file.
13299 * config/i386/xm-i386lynx.h: Delete file.
13300 * config/xm-lynx.h: Delete file.
13301 * config/djgpp/fnchange.lst: Update.
13303 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13305 * alpha-tdep.c (alpha_register_byte): New function.
13306 (alpha_register_raw_size): Ditto.
13307 (alpha_register_virtual_size): Ditto.
13308 (alpha_skip_prologue_internal): Renamed from
13309 alpha_skip_prologue.
13310 (alpha_skip_prologue): New version that calls
13311 alpha_skip_prologue_internal.
13312 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13313 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13314 second argument from alpha_skip_prologue.
13315 (REGISTER_BYTE): Use alpha_register_byte.
13316 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13317 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13318 (FRAMELESS_FUNCTION_INVOCATION): Use
13319 generic_frameless_function_invocation_not.
13320 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13321 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13323 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13325 * config/mips/xm-news-mips.h: Delete file.
13326 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13328 * config/m88k/xm-m88k.h: Delete file.
13329 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13330 * config/m88k/xm-delta88v4.h: Ditto.
13331 * config/m88k/xm-delta88.h: Ditto.
13333 * config/alpha/xm-fbsd.h: Delete file.
13334 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13336 * config/sparc/xm-sparc.h: Delete file.
13337 * Makefile.in (xm-sun4os4.h): Delete dependency.
13338 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13339 * config/sparc/xm-sun4os4.h: Ditto.
13340 * config/sparc/xm-linux.h: Ditto.
13342 * config/i386/xm-windows.h: Delete file.
13344 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13346 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13347 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13349 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13351 * alpha-tdep.c (alpha_call_dummy_words): New.
13352 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13353 (CALL_DUMMY_P): Define.
13354 (CALL_DUMMY_WORDS): Define.
13355 (SIZEOF_CALL_DUMMY_WORDS): Define.
13357 2002-01-19 Per Bothner <per@bothner.com>
13359 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13360 isn't NULL, which can happen with some gcj-3.x-produced code.
13362 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13364 * alpha-tdep.c (alpha_register_virtual_type): New function.
13365 (alpha_init_frame_pc_first): Ditto.
13366 (alpha_fix_call_dummy): Ditto.
13367 (alpha_store_struct_return): Ditto.
13368 (alpha_extract_struct_value_address): Ditto.
13369 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13370 alpha_register_virtual_type.
13371 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13372 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13373 alpha_extract_struct_value_address.
13374 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13375 (INIT_FRAME_PC): Use init_frame_pc_noop.
13376 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13378 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13380 * i386gnu-nat.c: Include "i386-tdep.h".
13381 (fetch_fpregs): Simplify code dealing with uninitialized floating
13382 point states such that it doesn't require FP7_REGNUM.
13384 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13386 * alpha-tdep.c (frame_extra_info): New.
13387 (alpha_find_saved_regs): Make static. Use
13389 (alpha_frame_init_saved_regs): New function.
13390 (alpha_frame_saved_pc): Use frame->extra_info.
13391 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13392 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13393 (init_extra_frame_info): Rename to...
13394 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13395 (alpha_print_extra_frame_info): New function.
13396 (alpha_frame_locals_address): Ditto.
13397 (alpha_frame_args_address): Ditto.
13398 (alpha_pop_frame): Use frame->extra_info.
13399 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13400 alpha_frame_args_address.
13401 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13402 (alpha_find_saved_regs): Remove prototype.
13403 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13404 (EXTRA_FRAME_INFO): Remove.
13405 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13406 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13408 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13410 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13411 (alpha_cannot_fetch_register): Ditto.
13412 (alpha_cannot_store_register): Ditto.
13413 (alpha_register_convertible): Ditto.
13414 (alpha_use_struct_convention): Ditto.
13415 * config/alpha/tm-alpha.h: Update copyright years.
13416 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13417 (INNER_THAN): Use core_addr_lessthan.
13418 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13419 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13420 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13421 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13422 (FRAME_CHAIN): Remove unnecessary cast.
13424 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13426 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13429 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13431 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13432 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13433 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13434 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13435 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13436 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13437 * x86-64-linux-nat.c: Ditto.
13439 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13441 * alpha-tdep.c (alpha_register_name): New function.
13442 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13443 (REGISTER_NAME): Define.
13445 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13447 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13449 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13451 * alpha-tdep.c: Update copyright years.
13452 (alpha_next_pc): New function.
13453 (alpha_software_single_step): Ditto.
13454 * config/alpha/tm-alpha.h: Add prototype for
13455 alpha_software_single_step.
13457 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13459 * alphabsd-nat.c: Update copyright years.
13460 (fill_gregset): Use regcache_collect.
13461 (fill_fpregset): Likewise.
13462 (fetch_inferior_registers): Only fetch integer registers
13463 if requested to do so.
13464 (store_inferior_registers): Only store integer registers
13465 if requested to do so.
13467 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13469 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13470 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13471 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13472 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13473 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13474 * config/arm/linux.mh (XDEPFILES): Delete.
13475 * config/arm/nbsd.mh (XDEPFILES): Delete.
13476 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13477 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13478 * config/i386/i386m3.mh (XDEPFILES): Delete.
13479 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13480 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13481 * config/i386/fbsd.mh (XDEPFILES): Delete.
13482 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13483 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13484 * config/i386/i386v4.mh (XDEPFILES): Delete.
13485 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13486 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13487 * config/i386/i386aix.mh (XDEPFILES): Delete.
13488 * config/i386/go32.mh (XDEPFILES): Delete.
13489 * config/i386/cygwin.mh (XDEPFILES): Delete.
13490 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13491 * config/i386/i386mach.mh (XDEPFILES): Delete.
13492 * config/i386/i386v32.mh (XDEPFILES): Delete.
13493 * config/i386/linux.mh (XDEPFILES): Delete.
13494 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13495 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13496 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13497 * config/i386/i386sco.mh (XDEPFILES): Delete.
13498 * config/i386/i386v.mh (XDEPFILES): Delete.
13499 * config/i386/nbsd.mh (XDEPFILES): Delete.
13500 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13501 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13502 * config/i386/symmetry.mh (XDEPFILES): Delete.
13503 * config/i386/obsd.mh (XDEPFILES): Delete.
13504 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13505 * config/ia64/linux.mh (XDEPFILES): Delete.
13506 * config/ia64/aix.mh (XDEPFILES): Delete.
13507 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13508 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13509 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13510 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13511 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13512 * config/m68k/linux.mh (XDEPFILES): Delete.
13513 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13514 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13515 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13516 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13517 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13518 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13519 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13520 * config/m88k/delta88.mh (XDEPFILES): Delete.
13521 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13522 * config/m88k/m88k.mh (XDEPFILES): Delete.
13523 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13524 * config/mips/linux.mh (XDEPFILES): Delete.
13525 * config/mips/irix6.mh (XDEPFILES): Delete.
13526 * config/mips/irix5.mh (XDEPFILES): Delete.
13527 * config/mips/irix4.mh (XDEPFILES): Delete.
13528 * config/mips/irix3.mh (XDEPFILES): Delete.
13529 * config/mips/decstation.mh (XDEPFILES): Delete.
13530 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13531 (NATDEPFILES): Move core-aout.o to here.
13532 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13533 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13534 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13535 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13536 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13537 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13538 * config/pa/hpux11.mh (XDEPFILES): Delete.
13539 * config/powerpc/aix.mh (XDEPFILES): Delete.
13540 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13541 * config/powerpc/linux.mh (XDEPFILES): Delete.
13542 * config/romp/rtbsd.mh: Rename XDEPFILES.
13543 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13544 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13545 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13546 * config/s390/s390.mh (XDEPFILES): Delete.
13547 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13548 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13549 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13550 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13551 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13552 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13553 * config/sparc/linux.mh (XDEPFILES): Delete.
13554 * config/vax/vaxult.mh (XDEPFILES): Delete.
13555 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13556 * Makefile.in (DEPFILES): Remove XDEPFILES.
13558 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13560 * utils.c (internal_verror): Fix comments, default is yes not no.
13561 Update queries to match. Default to quit and dump core.
13563 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13565 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13567 * defs.h, event-top.c, gdbcmd.h: Ditto.
13568 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13569 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13570 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13571 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13572 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13573 * mi/mi-main.c:Ditto.
13575 * stack.c, symfile.c: Update copyright.
13577 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13579 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13580 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13581 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13582 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13584 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13586 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13587 * gdbserver/low-lynx.c (myattach): Likewise.
13588 * gdbserver/low-nbsd.c (myattach): Likewise.
13589 * gdbserver/low-sim.c (myattach): Likewise.
13590 * gdbserver/low-sparc.c (myattach): Likewise.
13591 * gdbserver/low-sun3.c (myattach): Likewise.
13593 * gdbserver/low-linux.c (myattach): New function.
13595 * gdbserver/server.c (attach_inferior): New function.
13596 (main): Handle "--attach".
13598 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13600 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13603 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13605 * c-typeprint.c (is_type_conversion_operator): Add additional
13606 check for non-conversion operators.
13608 2002-01-15 Michael Snyder <msnyder@redhat.com>
13610 * linux-proc.c: Add "info proc" command, a la procfs.c.
13611 (read_mapping): New function, abstract and re-use code.
13612 (linux_find_memory_regions): Use new func read_mapping.
13613 (linux_info_proc_cmd): New function, implement "info proc".
13614 (_initialize_linux_proc): Add new command "info proc".
13616 2002-01-15 Michael Snyder <msnyder@redhat.com>
13618 * symfile.c (generic_load): Use bfd_map_over_sections method
13619 instead of manipulating bfd structure members directly.
13620 (add_section_size_callback): New function, bfd sections callback
13621 used by generic_load.
13622 (load_sections_callback): New function, bfd sections callback
13623 used by generic_load.
13625 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13627 [Based on work by Jim Blandy]
13628 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13629 (builtin_type_vec128): Export.
13630 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13632 (builtin_type_vec128): New builtin type for 128 bit vector
13634 (build_gdbtypes): Initialize builtin_type_v16qi and
13635 builtin_type_v8hi. Create the vec128 register builtin type
13637 (build_builtin_type_vec128): New function.
13638 (_initialize_gdbtypes): Register builtin_type_v16qi and
13639 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13640 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13641 AltiVec register to new builtin type.
13643 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13645 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13648 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13650 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13651 CLEAN_UP_REGISTER_VALUE.
13652 * regcache.c (supply_register): Update only call.
13654 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13656 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13657 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13658 a29k-*-vxworks* targets as obsolete.
13660 2002-01-14 Michael Snyder <msnyder@redhat.com>
13662 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13663 until we can resolve portability issues.
13664 * gregset.h: Remove references to fpxregs.
13665 * gcore.c (gcore_command): Initialize note_sec to NULL.
13667 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13669 * signals.c (target_signal_to_name): Rewrite. Only use
13670 signals[].name when in bounds and non-NULL.
13672 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13674 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13675 * signals.c (target_signal_to_name): Verify that SIG is within the
13676 bounds of the signals array.
13678 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13680 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13682 2002-01-13 Keith Seitz <keiths@redhat.com>
13684 * stack.c (print_frame_info_base): Print the frame's pc
13685 only if when print_frame_info_listing_hook is not defined.
13687 2002-01-13 Keith Seitz <keiths@redhat.com>
13689 * varobj.c (varobj_set_value): Make sure that there were no
13690 errors evaluating the object before attempting to set its
13692 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13693 so this offset adjustment is no longer necessary.
13694 (create_child): Don't set the error flag if the child is
13695 a CPLUS_FAKE_CHILD.
13696 (value_of_child): If value_fetch_lazy fails, return NULL
13697 so that callers will be notified that an error occurred.
13698 (c_value_of_variable): Delay check of variable's validity
13699 until later. We actually want all structs and unions to have
13701 Do not return "???" for variables which could not be evaluated.
13702 This error condition must be returned to the caller so that it
13703 can get the error condition from gdb.
13704 (cplus_name_of_child): Adjust index for vptr before figuring
13705 out the name of the child.
13706 (cplus_value_of_child): If a child's (real) parent is not valid,
13707 don't even bother trying to give a value for it. Just return
13708 an error. Change all instances in this function.
13709 (cplus_type_of_child): If our parent is one of the "fake"
13710 parents, we need to get at the type of the real parent, and
13711 derive the child's true type using this information.
13713 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13715 From 2002-01-09 John Marshall <johnm@falch.net>:
13716 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13717 sources.redhat.com, and tweak some related URLs which had
13718 suffered from linkrot.
13720 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13723 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13724 structures passed in registers.
13726 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13728 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13729 white space which prevented compilation. Reported by DSK
13730 <dsk@student.unsw.edu.au>.
13732 2002-01-11 Michael Snyder <msnyder@redhat.com>
13734 * symfile.c (build_section_addr_info_from_section_tab):
13735 Use bfd access method instead of manipulating bfd directly.
13736 (syms_from_objfile): Ditto.
13737 (simple_overlay_update_1): Ditto.
13738 (simple_overlay_update): Ditto.
13739 (generic_load): Ditto.
13740 (overlay_unmapped_address): FIXME comment, bfd access methods.
13741 (sections_overlap): FIXME comment, bfd access methods.
13742 (pc_in_mapped_range): FIXME comment, bfd access methods.
13743 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13744 (section_is_mapped): FIXME comment, bfd access methods.
13745 (section_is_overlay): FIXME comment, bfd access methods.
13747 * symfile.c (generic_load): Whitespace and long line cleanups.
13748 Remove duplicate variable, change several local variables to
13749 more appropriate data types.
13750 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13752 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13754 From Peter Schauer:
13755 * language.c (longest_local_hex_string_custom): Use phex_nz to
13756 convert NUM to a hex string.
13758 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13760 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13762 Update Copyright year.
13764 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13766 * language.c (longest_raw_hex_string): Delete unused function.
13768 2002-01-11 Petr Sorfa <petrs@caldera.com>
13770 * MAINTAINERS (write-after-approval): Add myself.
13771 * dwarf2read.c (read_tag_string_type): Handling of
13773 (read_tag_string_type): FORTRAN fix to prevent propagation of
13775 (set_cu_language): Handling of DW_LANG_Fortran95
13777 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13779 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13780 GETPID(inferior_ptid).
13781 (store_inferior_registers): Likewise.
13783 2002-01-10 Jason Merrill <jason@redhat.com>
13785 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13788 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13790 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13791 and bfd/elf32-sh-nbsd.c.
13793 2002-01-10 Michael Snyder <msnyder@redhat.com>
13795 * NEWS: Mention --pid and corefile/proc-id behavior change.
13797 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13798 * gcore.c: Include cli/cli-decode.h instead of command.h.
13800 * main.c (captured_main): Add new command line option "--pid".
13801 If the second command line argument (following the symbol-file)
13802 begins with a digit, try to attach to it before trying to open
13804 (print_gdb_help): Document the "--pid" argument.
13806 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13808 * completer.c (command_completer): New function.
13810 * completer.h <command_completer>: Add prototype.
13812 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13813 completer for the "help" command.
13815 2002-01-09 Jason Merrill <jason@redhat.com>
13817 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13819 2002-01-09 Michael Snyder <msnyder@redhat.com>
13821 * i386-linux-nat.c (fill_fpxregset): Make global.
13822 (store_fpxregset): Ditto.
13824 * gregset.h (gdb_fpxregset_t): Define.
13825 (supply_fpxregset): Prototype.
13826 (fill_fpxregset): Prototype.
13828 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13830 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13832 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13833 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13834 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13836 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13838 * MAINTAINERS: Update target maintainer rules so that any
13839 Maintainer can approve a tested patch for a maintenance-only
13842 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13844 * MAINTAINERS (write-after-approval): Add myself.
13846 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13849 2002-01-08 Michael Snyder <msnyder@redhat.com>
13851 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13852 real name of the executable, rather than the /proc name.
13854 2002-01-03 Michael Snyder <msnyder@redhat.com>
13856 Implement a "generate-core-file" command in gdb, save target state.
13857 * gcore.c: New file. Implement new command 'generate-core-file'.
13858 Save a corefile image of the current state of the inferior.
13859 * linux-proc.c: Add linux-specific code for saving corefiles.
13860 * target.h (struct target_ops): Add new target vectors for saving
13861 corefiles; to_find_memory_regions and to_make_corefile_notes.
13862 (target_find_memory_regions): New macro.
13863 (target_make_corefile_notes): New macro.
13864 * target.c (update_current_target): Inherit new target methods.
13865 (dummy_find_memory_regions): New place-holder method.
13866 (dummy_make_corefile_notes): New place-holder method.
13867 (init_dummy_target): Initialize new dummy target vectors.
13868 * exec.c (exec_set_find_memory_regions): New function.
13869 Allow the exec_ops vector for memory regions to be taken over.
13870 (exec_make_note_section): New function, target vector method.
13871 * defs.h (exec_set_find_memory_regions): Export prototype.
13872 * procfs.c (proc_find_memory_regions): New function, corefile method.
13873 (procfs_make_note_section): New function, corefile method.
13874 (init_procfs_ops): Set new target vector pointers.
13875 (find_memory_regions_callback): New function.
13876 (procfs_do_thread_registers): New function.
13877 (procfs_corefile_thread_callback): New function.
13878 * sol-thread.c (sol_find_memory_regions): New function.
13879 (sol_make_note_section): New function.
13880 (init_sol_thread_ops): Initialize new target vectors.
13881 * inftarg.c (inftarg_set_find_memory_regions): New function.
13882 Allow to_find_memory_regions vector to be taken over.
13883 (inftarg_set_make_corefile_notes): New function.
13884 Allow to_make_corefile_notes vector to be taken over.
13885 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13886 interface layer if not target_has_execution (may be a corefile).
13887 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13888 * config/sparc/sun4sol2.mh: Ditto.
13889 * config/alpha/alpha-linux.mh: Ditto.
13890 * config/arm/linux.mh: Ditto.
13891 * config/i386/x86-64linux.mh: Ditto.
13892 * config/ia64/linux.mh: Ditto.
13893 * config/m68k/linux.mh: Ditto.
13894 * config/mips/linux.mh: Ditto.
13895 * config/powerpc/linux.mh: Ditto.
13896 * config/sparc/linux.mh: Ditto.
13898 2002-01-07 Michael Snyder <msnyder@redhat.com>
13900 * arm-linux-nat.c: Remove references to regcache.c internal data
13901 (registers[] and register_valid[]).
13903 2002-01-07 Michael Snyder <msnyder@redhat.com>
13905 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13906 so that attaching to a pid will automatically read the process's
13907 symbol file and shlibs.
13908 * Makefile.in: Add rule for linux-proc.o.
13909 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13910 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13911 * config/arm/linux.mh: Ditto.
13912 * config/i386/linux.mh: Ditto.
13913 * config/i386/x86-64linux.mh: Ditto.
13914 * config/ia64/linux.mh: Ditto.
13915 * config/m68k/linux.mh: Ditto.
13916 * config/mips/linux.mh: Ditto.
13917 * config/powerpc/linux.mh: Ditto.
13918 * config/sparc/linux.mh: Ditto.
13920 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13922 * win32-nat.c: Add i386-tdep.h dependency.
13924 2002-01-07 Michael Snyder <msnyder@redhat.com>
13926 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13927 instead of bfd_get_arch_size. Don't bail out just because
13928 there's no exec_bfd.
13930 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13931 * p-valprint.c (pascal_object_print_value): Ditto.
13932 * somread.c (som_symtab_read): Ditto.
13933 * symfile.c (simple_free_overlay_region_table): Ditto.
13934 * valops.c (value_assign): Ditto.
13936 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13937 use tilde_expand and strerror for opening save-tracepoints file.
13939 * thread-db.c (thread_db_new_objfile): Indendation fix.
13941 * infptrace.c (GDB_MAX_ALLOCA): New define.
13942 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13943 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13944 can be overridden with whatever value is appropriate to the host).
13945 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13946 alloca to allocate potentially large buffer.
13947 * rs6000-nat.c (child_xfer_memory): Ditto.
13948 * symm-nat.c (child_xfer_memory): Ditto.
13949 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13951 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13953 From Nick Clifton <nickc@redhat.com>
13954 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13956 2002-01-07 Michael Snyder <msnyder@redhat.com>
13958 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13959 Don't use exec_bfd if it's NULL.
13961 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13963 * valops.c (value_arg_coerce): Fix formatting.
13965 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13967 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13968 * gnu-nat.c: Ditto.
13970 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13972 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13973 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13974 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13975 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13976 z8k-coff have not been multi-arched. Update z8k-coff build
13979 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13981 * MAINTAINERS: Mark a29k target as obsolete.
13982 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13983 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13985 * NEWS: Note that a29k targets are obsolete.
13986 * a29k-tdep.c: Mark as obsolete.
13987 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13988 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13989 a29k-*-vxworks* targets as obsolete.
13990 * remote-adapt.c: Obsolete.
13991 * remote-eb.c: Obsolete.
13992 * remote-mm.c: Obsolete.
13993 * remote-udi.c: Obsolete.
13994 * config/a29k/a29k-udi.mt: Obsolete.
13995 * config/a29k/a29k.mt: Obsolete.
13996 * config/a29k/tm-a29k.h: Obsolete.
13997 * config/a29k/tm-vx29k.h: Obsolete.
13998 * config/a29k/vx29k.mt: Obsolete.
14000 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14002 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14003 with BFD_ENDIAN_BIG.
14005 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14007 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14008 * configure, config.in: Re-generate.
14009 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14010 * defs.h: Do not include <endian.h>.
14012 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14014 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14015 * config.in: Regenerate.
14016 * configure.in: Update copyright years.
14017 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14018 * configure: Regenerate.
14019 * i386bsd-nat.c: Update copyright years.
14020 (fill_gregset): Use regcache_collect.
14021 (fetch_inferior_registers): Only fetch integer registers
14022 if requested to do so. Add support for XMM registers
14023 using PT_GETXMMREGS.
14024 (store_inferior_registers): Only store integer registers
14025 if requested to do so. Add support for XMM registers
14026 using PT_SETXMMREGS.
14027 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14028 (store_inferior_registers): Remove.
14029 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14030 (fetch_elfcore_registers): New function.
14031 (i386nbsd_elfcore_fns): New.
14032 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14033 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14035 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14036 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14037 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14038 * config/i386/tm-nbsd.h: Update copyright years.
14039 (HAVE_SSE_REGS): Define.
14040 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14041 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14042 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14043 (SIGCONTEXT_PC_OFFSET): Remove.
14044 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14046 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14048 * configure.tgt: Remove powerpc-*-macos* target.
14049 * config/m68k/xm-mpw.h: Delete file.
14050 * config/xm-mpw.h: Delete file.
14051 * ser-mac.c: Delete file.
14052 * mpw-make.sed: Delete file.
14053 * mpw-config.in: Delete file.
14054 * mac-xdep.c: Delete file.
14055 * mac-gdb.r: Delete file.
14056 * mac-defs.h: Delete file.
14057 * mac-nat.c: Delete file.
14058 * config/powerpc/macos.mh: Delete file.
14059 * config/powerpc/macos.mt: Delete file.
14060 * config/powerpc/nm-macos.h: Delete file.
14061 * config/powerpc/tm-macos.h: Delete file.
14062 * source.c (openp, open_source_file): Remove obsolete code.
14063 * top.c (gdb_readline): Ditto.
14064 * utils.c (query): Ditto.
14065 * event-top.c (display_gdb_prompt): Ditto.
14066 * Makefile.in (ser-mac.o): Delete obsolete target.
14069 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14071 * defs.h (BIG_ENDIAN): Delete macro definition.
14072 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14073 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14074 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14075 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14076 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14077 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14078 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14079 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14080 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14081 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14082 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14083 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14084 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14085 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14086 * gdbarch.c: Re-generate.
14088 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14090 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14093 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14095 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14097 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14099 * value.h (value_ptr): Delete typedef.
14101 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14103 * i386nbsd-nat.c: Update copyright years.
14104 Include i386-tdep.h.
14106 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14108 * stabsread.c: Update copyright years.
14110 From Debashis Mahata <debashis.mahata@wipro.com>:
14111 (read_struct_fields): Deal with Sun C compiler erroneous stab
14112 output for structs and unions.
14115 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14117 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14120 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14122 * cp-abi.c: Fix whitespace.
14123 (baseclass_offset): New wrapper function.
14124 * cp-abi.h (baseclass_offset): Add prototype.
14125 (struct cp_abi_ops): Add baseclass_offset pointer.
14127 * valops.c (vb_match): Move to...
14128 * gnu-v2-abi.c (vb_match): here.
14129 * valops.c (baseclass_offset): Move to...
14130 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14132 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14134 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14135 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14136 * hpacc-abi.c (init_hpacc_ops): Likewise.
14138 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14140 * valops.c (find_overload_match): Accept obj as a
14141 reference parameter. Update it before returning.
14142 * value.h (find_overload_match): Update prototype.
14143 * eval.c (evaluate_subexp_standard): Pass object to
14144 find_overload_match by reference.
14146 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14148 * valarith.c: Replace value_ptr with struct value pointer. Remove
14149 register attribute from value declarations.
14152 * scm-lang.c (scm_lookup_name): Ditto.
14154 2002-01-03 Michael Snyder <msnyder@redhat.com>
14156 Abstract the functionality of iterating over mapped memory
14157 regions into a general purpose iterator function.
14158 * procfs.c (iterate_over_mappings): New function, general purpose
14159 iterator for memory sections.
14160 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14161 (solib_mappings_callback): New function, callback for above.
14162 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14163 (info_mappings_callback): New function, callback for above.
14165 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14167 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14169 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14170 * i386-tdep.c: Include "elf-bfd.h".
14171 (process_note_abi_tag_sections): New function.
14172 (i386_gdbarch_init): Add code to recognize various OS/ABI
14175 * maint.c (_initialize_maint_cmds): Add missing \ in
14178 For older changes see ChangeLog-2001
14184 version-control: never