1 2002-12-07 Andrew Cagney <ac131313@redhat.com>
3 * f-valprint.c (info_common_command): Use get_frame_pc.
4 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
5 * ax-gdb.c (agent_command): Ditto.
6 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
7 (rs6000_pop_frame): Ditto.
8 (rs6000_frameless_function_invocation): Ditto.
9 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
10 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
11 * macroscope.c (default_macro_scope): Ditto.
12 * stack.c (print_frame_info_base): Ditto.
13 (print_frame, frame_info, print_frame_label_vars): Ditto.
14 (return_command, func_command, get_frame_language): Ditto.
15 * infcmd.c (finish_command): Ditto.
16 * dummy-frame.c (cached_find_dummy_frame): Ditto.
17 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
18 (break_at_finish_at_depth_command_1): Ditto.
19 (break_at_finish_command_1): Ditto.
20 (until_break_command, get_catch_sals): Ditto.
21 * blockframe.c (func_frame_chain_valid): Ditto.
22 (frameless_look_for_prologue): Ditto.
23 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
25 2002-12-08 Andrew Cagney <ac131313@redhat.com>
27 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
28 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
30 2002-12-08 Andrew Cagney <ac131313@redhat.com>
32 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
34 * gdbarch.h, gdbarch.c: Re-generate.
35 * frame.c (get_prev_frame): Explictly assign prev's pc with value
36 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
38 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
39 declaration to a function returning a CORE_ADDR.
40 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
41 * arch-utils.c (init_frame_pc_noop): Return the PC value.
42 (init_frame_pc_default): Ditto.
43 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
44 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
45 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
46 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
47 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
48 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
50 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
51 to init_frame_pc_noop.
52 (i386_interix_init_frame_pc): Delete function.
53 * z8k-tdep.c (init_frame_pc): Delete function.
54 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
55 (INIT_FRAME_PC_FIRST): Ditto.
56 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
57 (INIT_FRAME_PC_FIRST): Ditto.
58 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
59 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
61 (INIT_FRAME_PC_FIRST): Convert to an expression.
62 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
64 2002-12-08 Andrew Cagney <ac131313@redhat.com>
66 * blockframe.c: Use get_frame_base instead of directly accessing
67 the `struct frame_info' member frame.
68 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
69 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
71 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
73 * Makefile.in (readline_h): Define.
74 (completer.o): Depend on readline_h.
83 (tracepoint.o): Ditto.
89 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
91 More cleanup from import of readline 4.3.
92 * completer.h (complete_line, readline_line_completion_function):
94 (line_completion_function): Removed, not used outside of completer.c.
95 * completer.c (readline_line_completion_function,
96 complete_function, line_completion_function): Use const for first
98 (line_completion_function): Make static.
99 (filename_completer): filename_completion_function is now called
100 rl_filename_completion_function
101 * corelow.c: Include <readline/readline.h>.
107 * top.c (init_main): No need to coerce
108 readline_line_completion_function anymore.
109 * cli/cli-dump.c: Include <readline/readline.h>.
111 2002-12-08 Andrew Cagney <ac131313@redhat.com>
113 * stack.c (frame_info): Use get_prev_frame.
114 * blockframe.c (frame_address_in_block): Ditto.
115 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
116 (rs6000_frameless_function_invocation): Ditto.
117 (rs6000_frame_saved_pc): Ditto.
118 (rs6000_frame_chain): Ditto.
119 * arch-utils.c (init_frame_pc_default): Ditto.
121 2002-12-08 Andrew Cagney <ac131313@redhat.com>
123 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
124 Delete redundant definition.
126 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
128 Import of readline 4.3:
129 * cli/cli-cmds.c: Include readline/tilde.h.
130 * cli/cli-setshow.c: Ditto.
131 * defs.h: Don't declare tilde_expand anymore, since readline
134 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
136 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
137 -Werror on this file.
139 2002-12-07 Andrew Cagney <ac131313@redhat.com>
141 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
143 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
144 * gdbarch.c: Regenerate.
146 2002-12-06 Andrew Cagney <ac131313@redhat.com>
148 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
149 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
150 provide a default value.
151 * gdbarch.h, gdbarch.c: Regenerate.
152 * frame.c (get_prev_frame): Update. Check
153 DEPRECATED_INIT_FRAME_PC_FIRST_P.
154 * s390-tdep.c (s390_gdbarch_init): Update.
155 * mips-tdep.c (mips_gdbarch_init): Update.
156 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
157 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
158 * alpha-tdep.c (alpha_gdbarch_init): Update.
160 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
162 * ia64-linux-nat.c: Include gdb_string.h.
163 * alpha-nat.c: Ditto.
164 * ppc-linux-nat.c: Ditto.
165 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
168 2002-12-05 Andrew Cagney <ac131313@redhat.com>
170 * gdbthread.h: Include "frame.h".
171 (struct thread_info): Replace step_frame_address with
173 * inferior.h: Include "frame.h".
174 (step_frame_id): Replace external variable step_frame_address.
175 * gdbthread.h (save_infrun_state): Replace step_frame_address
176 parameter with step_frame_id parameter.
177 (load_infrun_state): Ditto.
178 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
179 * infcmd.c (step_frame_id, step_1, step_once): Update.
180 * thread.c (load_infrun_state, save_infrun_state): Update.
181 * infrun.c (clear_proceed_status, save_inferior_status): Update.
182 (handle_inferior_event, step_over_function): Update.
183 (normal_stop, context_switch, restore_inferior_status): Update.
184 (struct inferior_status): Replace step_frame_address with
187 2002-12-05 David Carlton <carlton@math.stanford.edu>
189 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
190 DW_TAG_member as well as a declaration as being a C++ static data
192 (read_structure_scope): Combine tests for DW_TAG_member and
195 2002-12-05 David Carlton <carlton@math.stanford.edu>
197 * linespec.c (decode_compound): New function.
198 (decode_line_1): Move code into decode_compound.
200 2002-12-05 David Carlton <carlton@math.stanford.edu>
202 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
204 (lookup_symbol_aux): Do the 'field_of_this' check before checking
205 the static block. See PR gdb/804.
207 2002-12-05 David Carlton <carlton@math.stanford.edu>
209 * symtab.c (lookup_symbol_aux_block): New function.
210 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
212 2002-12-05 Andrew Cagney <ac131313@redhat.com>
214 * gdbarch.sh: Dump the predicate function and macro values.
215 (read): Print error on standard error.
216 * gdbarch.c: Regenerate.
218 2002-12-04 Kevin Buettner <kevinb@redhat.com>
220 * Makefile.in (mips_tdep_h): Define.
221 (mips-tdep.o): Add mips_tdep_h to dependency list.
222 * mips-tdep.h: New file.
223 * mips-tdep.c (mips-tdep.h): Include.
224 (enum mips_abi): Move to mips-tdep.h.
225 (mips_abi): New function.
227 2002-12-04 David Carlton <carlton@math.stanford.edu>
229 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
231 2002-12-04 David Carlton <carlton@math.stanford.edu>
233 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
235 (lookup_symbol_aux_minsyms): New function.
237 2002-12-04 J. Brobecker <brobecker@gnat.com>
239 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
241 2002-12-04 J. Brobecker <brobecker@gnat.com>
243 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
244 which is an obsolete macro name.
246 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
248 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
249 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
251 2002-12-03 H.J. Lu (hjl@gnu.org)
253 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
254 (create_breakpoints): Make sure the addr_string field is not
257 2002-12-03 Andrew Cagney <ac131313@redhat.com>
259 * sparc-nat.c (fetch_inferior_registers)
260 (store_inferior_registers): Add comment on problem of LWP vs
263 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
264 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
265 (lin_lwp_store_registers): Remove.
266 (init_lin_lwp_ops): Use fetch_inferior_registers
267 and store_inferior_registers directly.
268 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
269 (store_inferior_registers): Likewise.
272 2002-12-03 Andrew Cagney <ac131313@redhat.com>
274 * frame.h (get_frame_id): Convert to a function.
275 (null_frame_id, frame_id_p): Declare.
276 (frame_id_eq, frame_id_inner): Declare.
277 (frame_id_build): New function.
278 * frame.c (get_frame_id): Update. Use null_frame_id.
279 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
281 (null_frame_id, frame_id_p): Define.
282 (frame_id_eq, frame_id_inner): Define.
283 (frame_id_build): New function.
284 * varobj.c (varobj_create): Update.
285 (varobj_update): Update.
286 * valops.c (value_assign): Update.
287 (new_root_variable): Update.
288 * infrun.c (save_inferior_status): Update.
289 * breakpoint.c (watch_command_1): Update.
291 2002-12-03 J. Brobecker <brobecker@gnat.com>
293 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
296 2002-12-03 Andrew Cagney <cagney@redhat.com>
298 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
301 * PROBLEMS: Mention PR gdb/725.
303 2002-12-03 Andreas Schwab <schwab@suse.de>
305 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
307 2002-12-02 Adam Fedor <fedor@gnu.org>
308 Klee Dienes <kdienes@apple.com>
310 * objc-lang.c (objc_printstr): Add width arg to match
312 (compare_selectors): Add 'const' to arg types.
313 (compare_classes): Likewise.
314 (find_imps): Cast msym pointer to avoid compiler warning.
315 (print_object_command): Validate the address before
316 passing it to the print routine.
317 (find_objc_msgcall_submethod): Change function argument to
319 * objc-lang.h: Add 'extern' to all function declarations.
320 (value_nsstring): Add declaration.
322 2002-12-02 J. Brobecker <brobecker@gnat.com>
324 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
325 Fixes a build failure on HP/UX.
327 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
329 (hpread_has_name): Advance declaration to avoid a compilation warning.
330 (pst_syms_count): Add missing variable type. By change, the compiler
331 was defaulting to int, which seems a good choice. Fixes a compilation
333 (pst_syms_size): Likewise.
335 2002-12-02 J. Brobecker <brobecker@gnat.com>
337 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
338 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
339 later to set the proper gdbarch methods depending on the osabi.
340 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
342 2002-12-02 J. Brobecker <brobecker@gnat.com>
344 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
345 * osabi.c (gdb_osabi_name): Add strings images for the two new
347 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
349 2002-12-02 Andrew Cagney <ac131313@redhat.com>
351 * MAINTAINERS (Java): Global maintainers are responible for Java.
352 (Past Maintainers): Mention both Anthony Green and Per Bothner as
353 part Java maintainers.
355 2002-12-02 J. Brobecker <brobecker@gnat.com>
357 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
358 Fixes a compilation failure on AiX.
360 2002-12-02 J. Brobecker <brobecker@gnat.com>
362 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
363 why aix-thread.o is not listed.
365 2002-12-01 Andrew Cagney <ac131313@redhat.com>
367 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
368 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
369 * gdbarch.h, gdbarch.c: Re-generate.
370 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
371 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
372 * config/pa/tm-hppa.h, frame.h: Update.
373 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
374 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
375 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
376 * cris-tdep.c, alpha-tdep.c: Update.
377 * frame.c (set_unwind_by_pc, create_new_frame): Use either
378 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
379 (get_prev_frame): Ditto.
381 2002-11-30 Andrew Cagney <cagney@redhat.com>
383 * exec.c (xfer_memory): Replace boolean with int.
384 * p-exp.y: Use 0 instead of false.
385 * corelow.c (gdb_check_format): Change return type to int from
387 * utils.c: Don't include <curses.h> or <term.h> first.
389 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
391 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
392 (m68hc11_register_byte): Remove.
393 (m68hc11_gdbarch_init): Don't set the above.
395 2002-11-29 Andrew Cagney <cagney@redhat.com>
397 * remote-mips.c (mips_initialize): Force a selected frame rebuild
398 by calling get_selected_frame.
399 * ocd.c (ocd_start_remote): Use get_selected frame instead of
400 set_current_frame, create_new_frame, select_frame and
402 * remote-e7000.c (e7000_start_remote): Ditto.
403 * remote-mips.c (common_open): Ditto
404 * remote-rdp.c (remote_rdp_open): Ditto.
406 2002-11-29 Andreas Schwab <schwab@suse.de>
408 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
409 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
410 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
411 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
412 read_memory_unsigned_integer instead of read_memory_integer when
413 dealing with addresses and instruction opcodes.
414 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
415 (m68k_linux_frame_saved_pc): Likewise.
417 2002-11-29 Andrew Cagney <ac131313@redhat.com>
419 * stack.c (selected_frame, select_frame): Move from here ...
420 * frame.c (selected_frame, select_frame): ... to here. Include
422 * Makefile.in (frame.o): Update dependencies.
423 * frame.c (get_selected_frame): New function.
424 * frame.h (get_selected_frame): Declare.
425 (deprecated_selected_frame): Rename selected_frame.
426 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
427 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
428 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
429 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
430 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
431 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
432 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
433 * z8k-tdep.c, cli/cli-cmds.c: Update.
435 2002-11-29 Andrew Cagney <ac131313@redhat.com>
437 * frame.h (get_selected_block): Add comments.
439 2002-11-28 Andrew Cagney <ac131313@redhat.com>
441 * frame.c (pc_notcurrent): New function.
442 (find_frame_sal): New function.
443 * frame.h (find_frame_sal): Declare.
444 (struct symtab_and_line): Add opaque declaration.
445 * stack.c (print_frame_info_base): Use find_frame_sal instead of
448 * ada-lang.c (find_printable_frame): Ditto.
450 2002-11-28 J. Brobecker <brobecker@gnat.com>
452 * configure.in: Check that the pthdebug library is recent enough
453 before enabling thread support on native AiX.
454 * configure: Regenerate.
456 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
457 from the list of object files as it is now appended by configure
458 if thread support is enabled.
459 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
460 if thread support is enabled.
462 2002-11-28 Andrew Cagney <cagney@redhat.com>
464 * stack.c (get_selected_block): In-line get_current_block.
465 * frame.h (get_current_block): Delete declaration.
466 * blockframe.c (get_current_block): Delete function.
468 2002-11-28 Andrew Cagney <ac131313@redhat.com>
470 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
471 USE_GENERIC_DUMMY_FRAMES.
472 * gdbarch.h, gdbarch.c: Regenerate.
473 * valops.c, frame.c: Update.
474 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
475 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
476 * config/pa/tm-hppa.h, blockframe.c: Update.
477 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
478 * m68k-tdep.c, alpha-tdep.c: Ditto.
480 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
481 * mips-tdep.c: Ditto.
483 2002-11-27 Andrew Cagney <ac131313@redhat.com>
485 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
486 (USE_GENERIC_DUMMY_FRAMES): Default to true.
487 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
488 * gdbarch.c, gdbarch.h: Re-generate.
489 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
490 (CALL_DUMMY_LOCATION): Delete macro definition.
491 (PC_IN_CALL_DUMMY): Delete macro definitions.
493 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
494 default is already generic_pc_in_call_dummy.
495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
496 * v850-tdep.c (v850_gdbarch_init): Ditto.
497 * sh-tdep.c (sh_gdbarch_init): Ditto.
498 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
499 * mips-tdep.c (mips_gdbarch_init): Ditto.
500 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
502 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
503 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
504 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
505 * avr-tdep.c (avr_gdbarch_init): Ditto.
507 * arm-tdep.c (arm_gdbarch_init): Do not set
508 use_generic_dummy_frames, default is already 1.
509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
510 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
511 * v850-tdep.c (v850_gdbarch_init): Ditto.
512 * sh-tdep.c (sh_gdbarch_init): Ditto.
513 * s390-tdep.c (s390_gdbarch_init): Ditto.
514 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
515 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
516 * mips-tdep.c (mips_gdbarch_init): Ditto.
517 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
518 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
519 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
520 * i386-tdep.c (i386_gdbarch_init): Ditto.
521 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
522 * frv-tdep.c (frv_gdbarch_init): Ditto.
523 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
524 * cris-tdep.c (cris_gdbarch_init): Ditto.
525 * avr-tdep.c (avr_gdbarch_init): Ditto.
527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
528 call_dummy_location, default is already AT_ENTRY_POINT.
529 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
530 * v850-tdep.c (v850_gdbarch_init): Ditto.
531 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
532 * sh-tdep.c (sh_gdbarch_init): Ditto.
533 * s390-tdep.c (s390_gdbarch_init): Ditto.
534 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
535 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
536 * mips-tdep.c (mips_gdbarch_init): Ditto.
537 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
539 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
540 * i386-tdep.c (i386_gdbarch_init): Ditto.
541 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
542 * frv-tdep.c (frv_gdbarch_init): Ditto.
543 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
544 * cris-tdep.c (cris_gdbarch_init): Ditto.
545 * avr-tdep.c (avr_gdbarch_init): Ditto.
546 * arm-tdep.c (arm_gdbarch_init): Ditto.
547 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
549 2002-11-28 Andrew Cagney <cagney@redhat.com>
551 * frame.h: Update comments on set_current_frame, create_new_frame,
552 flush_cached_frames, reinit_frame_cache, select_frame and
555 2002-11-27 Andrew Cagney <cagney@redhat.com>
557 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
558 deprecated pc_in_call_dummy function.
559 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
560 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
561 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
562 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
563 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
565 2002-11-26 Martin M. Hunt <hunt@redhat.com>
567 * Makefile.in: Remove Tix dependencies.
568 * acinclude.m4: Ditto.
570 * configure.in: Ditto.
571 * configure: Regenerated.
573 2002-11-26 Andrew Cagney <ac131313@redhat.com>
575 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
576 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
577 * gdbarch.c: Re-generate.
579 2002-11-26 Andrew Cagney <ac131313@redhat.com>
581 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
582 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
583 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
584 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
585 pc_in_call_dummy_at_entry_point.
586 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
587 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
588 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
589 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
590 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
591 pc_in_call_dummy_on_stack.
592 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
593 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
594 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
595 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
596 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
598 2002-11-26 Andrew Cagney <ac131313@redhat.com>
600 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
601 pc_in_call_dummy_before_text_end
602 (deprecated_pc_in_call_dummy_after_text_end): Rename
603 pc_in_call_dummy_after_text_end.
604 (deprecated_pc_in_call_dummy_on_stack): Rename
605 pc_in_call_dummy_on_stack.
606 (deprecated_pc_in_call_dummy_at_entry_point): Rename
607 pc_in_call_dummy_at_entry_point.
608 * m68k-tdep.c (m68k_gdbarch_init): Update.
609 * s390-tdep.c (s390_gdbarch_init): Update.
610 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
611 * vax-tdep.c (vax_gdbarch_init): Update.
612 * sparc-tdep.c (sparc_gdbarch_init): Update.
613 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
614 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
615 * i386-tdep.c (i386_gdbarch_init): Update.
616 * frv-tdep.c (frv_gdbarch_init): Update.
617 * cris-tdep.c (cris_gdbarch_init): Update.
618 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
619 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
620 (deprecated_pc_in_call_dummy_after_text_end)
621 (deprecated_pc_in_call_dummy_on_stack)
622 (deprecated_pc_in_call_dummy_at_entry_point): Update.
623 * alpha-tdep.c (alpha_gdbarch_init): Update.
625 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
627 * acconfig.h (HAVE_PREAD64): Add.
628 * configure.in: Check for pread64.
629 * config.in: Regenerated.
630 * configure: Regenerated.
631 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
632 * linux-proc.c (linux_proc_xfer_memory): New function.
633 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
635 2002-11-25 David Carlton <carlton@math.stanford.edu>
637 * dwarf2read.c (scan_partial_symbols): Descend into namespace
640 2002-11-25 Andrew Cagney <ac131313@redhat.com>
642 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
643 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
645 2002-11-25 Jim Blandy <jimb@redhat.com>
647 * symfile.c (init_objfile_sect_indices): New function.
648 (default_symfile_offsets): Move the section-index-initializing
649 stuff into init_objfile_sect_indices, and call that.
651 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
652 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
654 * symfile.c (syms_from_objfile): Adjust indentation.
656 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
657 || info_verbose isn't true.
659 2002-11-24 Andrew Cagney <ac131313@redhat.com>
661 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
662 default to get_frame_base.
663 * gdbarch.h, gdbarch.c: Regenerate.
664 * arch-utils.c (default_frame_address): Delete function.
665 * arch-utils.h (default_frame_address): Delete declaration
667 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
669 * varobj.c (find_frame_addr_in_frame_chain):
670 Use get_frame_base instead of FRAME_FP,
673 2002-11-19 Andrew Cagney <ac131313@redhat.com>
675 * frame.h (FRAME_FP): Delete macro.
676 (get_frame_base): New function declaration.
677 * frame.c (get_frame_base): New function.
678 (get_frame_id): Use ->frame.
679 (frame_find_by_id): Rewrite to use get_frame_id.
680 * blockframe.c: Use get_frame_base instead of FRAME_FP.
681 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
682 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
683 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
684 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
685 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
686 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
688 2002-11-24 Andrew Cagney <ac131313@redhat.com>
690 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
692 2002-11-24 Andrew Cagney <ac131313@redhat.com>
694 * frame.c (set_unwind_by_pc): Revert change below, use
696 (get_prev_frame): Ditto.
698 2002-11-24 Andrew Cagney <ac131313@redhat.com>
700 * dummy-frame.c (pc_in_dummy_frame): New function.
701 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
702 (find_dummy_frame): Update comment.
703 (generic_pop_current_frame): Use get_frame_type.
704 * dummy-frame.h (pc_in_dummy_frame): Declare.
705 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
706 (create_new_frame): Use pc_in_dummy_frame.
707 (get_prev_frame): Use pc_in_dummy_frame.
708 (frame_saved_regs_register_unwind): Use get_prev_frame.
709 (deprecated_generic_get_saved_register): Use get_prev_frame.
711 2002-11-23 Andrew Cagney <ac131313@redhat.com>
713 * blockframe.c (find_frame_addr_in_frame_chain): Move function
715 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
716 (varobj_create): Note that frame ID should be used.
717 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
719 2002-11-23 Andrew Cagney <ac131313@redhat.com>
721 * breakpoint.c: Include "gdb_assert.h".
722 (deprecated_frame_in_dummy): Assert that generic dummy frames are
724 * Makefile.in (breakpoint.o): Update dependencies.
725 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
726 deprecated_frame_in_dummy.
727 * stack.c (print_frame_info_base): Ditto.
729 (print_frame_info_base): Ditto. Delete dead code.
731 2002-11-23 Andreas Schwab <schwab@suse.de>
733 * Makefile.in (m68k_tdep_h): Define.
734 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
735 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
736 * m68k-tdep.c: Move register number enum ...
737 * m68k-tdep.h: ... to this new file and rename the constants from
738 E_* to M68K_*. All uses changed.
739 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
740 * abug-rom.c: Include "m68k-tdep.h". Use
741 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
742 * cpu32bug-rom.c: Likewise.
743 * dbug-rom.c: Likewise.
744 * m68k-tdep.c: Likewise.
745 * m68klinux-nat.c: Likewise.
746 * remote-est.c: Likewise.
747 * rom68k-rom.c: Likewise.
748 * config/m68k/tm-linux.h: Likewise.
750 2002-11-23 Andrew Cagney <ac131313@redhat.com>
752 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
753 dummy frame initialization code.
754 * mips-tdep.c (mips_gdbarch_init): Ditto.
756 2002-11-22 Christopher Faylor <cgf@redhat.com>
758 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
761 2002-11-22 Andrew Cagney <ac131313@redhat.com>
763 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
764 to default_frame_address.
765 * gdbarch.h, gdbarch.c: Re-generate.
767 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
768 or frame_locals_address to default_frame_address.
769 * m68k-tdep.c (m68k_gdbarch_init): Update.
770 * i386-tdep.c (i386_gdbarch_init): Update.
771 * frv-tdep.c (frv_gdbarch_init): Update.
772 * sh-tdep.c (sh_gdbarch_init): Update.
773 * v850-tdep.c (v850_gdbarch_init): Update.
774 * sparc-tdep.c (sparc_gdbarch_init): Update.
775 * mips-tdep.c (mips_gdbarch_init): Update.
776 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
777 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
778 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
780 * cris-tdep.c (cris_frame_args_address): Delete function.
781 (cris_frame_locals_address): Delete function.
782 (cris_gdbarch_init): Do not set frame_args_address or
783 frame_locals_address.
785 2002-11-22 Michael Snyder <msnyder@redhat.com>
787 * thread-db.c (thread_db_load): Tell the user what's going on
788 if dlopen fails on libthread_db.
790 2002-11-23 Andreas Schwab <schwab@suse.de>
792 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
793 invariant return values.
795 2002-11-22 Andreas Schwab <schwab@suse.de>
797 * valops.c (value_slice): Move declaration of `offset' to avoid
800 2002-11-22 Christopher Faylor <cgf@redhat.com>
802 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
803 (struct so_stuff): Add end_addr field.
804 (register_loaded_dll): Calculate and store end address of loaded dll.
805 (solib_address): New function.
806 (child_solib_loaded_library_pathname): Pass carefully constructed
807 section info to safe_symbol_file_add rather than ignoring it.
808 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
810 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
811 (child_create_inferior): Fix a compiler warning.
812 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
813 (solib_address): Declare new function.
815 2002-11-22 Andreas Schwab <schwab@suse.de>
817 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
820 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
822 * maint.c (_initialize_maint_cmds): Fix typo. From
823 Francesco Potorti` <pot@gnu.org>.
825 2002-11-21 Andrew Cagney <cagney@redhat.com>
827 * mips-tdep.c (mips_dump_tdep): Delete references to
828 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
829 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
830 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
831 * printcmd.c (build_address_symbolic): Delete calls to
832 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
833 (address_info): Ditto.
836 2002-11-19 Klee Dienes <kdienes@apple.com>
837 Adam Fedor <fedor@gnu.org>
839 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
840 the ability to explicitly specify the quote characters and word
841 break characters; if NULL is specified for either, use the old
842 behavior of using the characters used by the completer.
843 (skip_chars): New function. Convenience wrapper around
844 skip_quoted_chars to provide the original skip_chars behavior.
845 * completer.h (skip_quoted_chars): Add prototype.
847 2002-11-19 Andrew Cagney <ac131313@redhat.com>
849 Problems reported by Paul Eggert.
850 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
852 2002-11-19 Andreas Schwab <schwab@suse.de>
854 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
855 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
856 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
857 (m68k_linux_frame_saved_pc): Move to ...
858 * m68klinux-tdep.c: ... here. New file.
859 * Makefile.in (m68klinux-tdep.o): Add dependencies.
860 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
862 2002-11-19 Adam Fedor <fedor@gnu.org>
864 * objc-exp.y: Revert to old skip_quoted usage.
866 2002-11-19 Adam Fedor <fedor@gnu.org>
868 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
869 (objc_lang_h): Define.
870 (YYFILES): Add objc-exp.tab.c.
871 (local-maintainer-clean): Remove objc-exp.tab.c.
872 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
874 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
876 * p-exp.y (typecast rule): Add automatic dereference of
877 pascal classes if needed.
878 (THIS): Set current_type.
879 Automatically dereference pascal classes.
880 (typebase rule): Add ^typebase recognition.
882 2002-11-18 Adam Fedor <fedor@gnu.org>
884 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
885 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
886 (op_name): Handle OP_OBJC_SELF.
887 * Makefile.in (expprint.o): Add additional depends.
889 2002-11-18 Adam Fedor <fedor@gnu.org>
891 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
892 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
893 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
894 * objc-exp.y: Likewise.
896 2002-11-18 Adam Fedor <fedor@gnu.org>
898 * gdb/parser-defs.h: (struct objc_class_str): New structure
899 for parsing ObjC classes.
901 2002-11-18 Andrew Cagney <ac131313@redhat.com>
903 * stack.c (frame_relative_level): Copy function from here ...
904 * frame.c (frame_relative_level): ...to here.
906 2002-11-18 Andrew Cagney <ac131313@redhat.com>
908 * frame.h (enum frame_type): Define.
909 (get_frame_type): Declare.
910 (struct frame_info): Add field `type'. Delete field
911 signal_handler_caller.
912 (deprecated_set_frame_signal_handler_caller): Declare.
913 * frame.c (get_frame_type): New function.
914 (deprecated_set_frame_type): New function.
915 (create_new_frame): Set the frame's type.
916 (get_prev_frame): Similar.
917 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
918 * s390-tdep.c: Ditto.
919 * m68klinux-nat.c: Ditto.
920 * ns32k-tdep.c: Ditto.
921 * x86-64-linux-tdep.c: Ditto.
923 * rs6000-tdep.c: Ditto.
924 * ppc-linux-tdep.c: Ditto.
925 * i386-interix-tdep.c: Ditto.
926 * mips-tdep.c: Ditto.
927 * m68k-tdep.c: Ditto.
928 * hppa-tdep.c: Ditto.
929 * ia64-tdep.c: Ditto.
930 * cris-tdep.c: Ditto.
932 * alpha-tdep.c: Ditto.
933 * i386-tdep.c: Ditto.
936 * blockframe.c: Update.
937 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
938 deprecated_set_frame_type instead of signal_handler_caller.
939 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
940 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
941 * breakpoint.h: Delete FIXME suggesting get_frame_type.
943 2002-11-18 Klee Dienes <kdienes@apple.com>
945 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
947 2002-11-18 Klee Dienes <kdienes@apple.com>
949 * buildsym.c (pop_context): Add comment.
951 2002-11-18 Klee Dienes <kdienes@apple.com>
953 * buildsym.h (pop_context): Convert to function, defined in
955 * buildsym.c: Include gdb_assert.h.
956 (pop_context): Implement as C function. Add check for stack
958 * dbxread.c (process_one_symbol): Complain and stop processing
959 that symbol if we are already at the top of the context stack for
960 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
961 when processing N_RBRAC.
963 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
965 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
967 (struct target_waitstatus): Add opaque definition.
968 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
969 * exec.c (init_exec_ops): Likewise.
970 * fork-child.c (clone_and_follow_inferior): Remove.
971 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
972 * inferior.h (clone_and_follow_inferior): Remove prototype.
973 * infrun.c (follow_fork_mode_both): Remove.
974 (follow_fork_mode_kind_names): Remove commented out "both".
975 (follow_inferior_fork): Remove follow_fork_mode_both support.
976 * inftarg.c (child_clone_and_follow_inferior): Remove.
977 (child_post_follow_inferior_by_clone): Remove.
978 (init_child_ops): Don't set to_clone_and_follow_inferior
979 or to_post_follow_inferior_by_clone.
980 * target.c (default_clone_and_follow_inferior): Remove.
981 (cleanup_target): Don't set to_clone_and_follow_inferior
982 or to_post_follow_inferior_by_clone.
983 (find_default_clone_and_follow_inferior): Remove.
984 (init_dummy_target): Don't set to_clone_and_follow_inferior.
985 (debug_to_clone_and_follow_inferior): Remove.
986 (debug_to_post_follow_inferior_by_clone): Remove.
987 (setup_target_debug): Don't set to_clone_and_follow_inferior
988 or to_post_follow_inferior_by_clone.
989 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
990 and to_post_follow_inferior_by_clone.
991 (child_clone_and_follow_inferior): Remove prototype.
992 (child_post_follow_inferior_by_clone): Remove prototype.
993 (target_clone_and_follow_inferior): Remove macro.
994 (target_post_follow_inferior_by_clone): Remove macro.
995 (find_default_clone_and_follow_inferior): Remove prototype.
997 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
999 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1000 inferior_has_vforked, and inferior_has_execd instead of
1001 target_has_forked, target_has_vforked, and target_has_execd.
1002 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1003 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1004 (CHILD_WAIT): Define.
1005 (child_wait): Add prototype.
1006 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1008 (hpux_has_vforked): Likewise, from child_has_vforked.
1009 (hpux_has_execd): Likewise, from child_has_execd.
1010 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1011 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1012 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1013 and hpux_has_syscall_event instead of the target hooks.
1014 * infrun.c (inferior_has_forked, inferior_has_vforked)
1015 (inferior_has_execd): New functions.
1016 * inftarg.c (not_same_real_pid): Remove.
1017 (child_wait): Remove references to not_same_real_pid,
1018 target_has_forked, target_has_vforked, target_has_execd,
1019 and target_has_syscall_event.
1020 (child_has_forked, child_has_vforked, child_has_execd)
1021 (child_has_syscall_event): Remove.
1022 (init_child_ops): Remove references to child_has_forked,
1023 child_has_vforked, child_has_execd, and child_has_syscall_event.
1024 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1025 (hpux_has_vforked): Likewise, from child_has_vforked.
1026 (hpux_has_execd): Likewise, from child_has_execd.
1027 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1028 * target.c (cleanup_target): Remove references to
1029 to_has_forked, to_has_vforked, to_has_execd, and
1030 to_has_syscall_event.
1031 (update_current_target): Likewise.
1032 (setup_target_debug): Likewise.
1033 (debug_to_has_forked): Remove.
1034 (debug_to_has_vforked): Remove.
1035 (debug_to_has_execd): Remove.
1036 (debug_to_has_syscall_event): Remove.
1037 * target.h (struct target_ops): Remove to_has_forked.
1038 to_has_vforked, to_has_execd, and to_has_syscall_event.
1039 (child_has_forked, child_has_vforked, child_has_execd)
1040 (child_has_syscall_event): Remove prototypes.
1041 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1043 (target_has_forked, target_has_vforked, target_has_execd)
1044 (target_has_syscall_event): Remove macros.
1046 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1048 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1049 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1050 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1051 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1052 * target.c (cleanup_target): Remove reference to
1053 to_can_follow_vfork_prior_to_exec.
1054 (update_current_target): Likewise.
1055 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1056 (setup_target_debug): Remove reference to
1057 to_can_follow_vfork_prior_to_exec.
1058 * target.h (struct target_ops): Remove
1059 to_can_follow_vfork_prior_to_exec.
1060 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1061 (target_can_follow_vfork_prior_to_exec): Remove definition.
1062 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1064 * infrun.c (follow_vfork_when_exec): Remove.
1065 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1066 (follow_exec): Likewise.
1067 (handle_inferior_event): Likewise.
1068 (keep_going): Likewise.
1070 2002-11-15 Andrew Cagney <cagney@redhat.com>
1072 * frame.c (generic_unwind_get_saved_register): Make static.
1073 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1074 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1075 defaults to generic_unwind_get_saved_register.
1076 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1077 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1078 * frv-tdep.c (frv_gdbarch_init): Ditto.
1079 * i386-tdep.c (i386_gdbarch_init): Ditto.
1080 * s390-tdep.c (s390_gdbarch_init): Ditto.
1081 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1082 * v850-tdep.c (v850_gdbarch_init): Ditto.
1083 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1084 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1085 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1087 2002-11-15 Andrew Cagney <cagney@redhat.com>
1089 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1092 2002-11-15 Andrew Cagney <cagney@redhat.com>
1094 * frame.h (sigtramp_saved_pc): Delete declaration.
1095 * blockframe.c (sigtramp_saved_pc): Delete function.
1096 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1097 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1098 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1099 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1101 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1103 * frame.c (frame_pc_unwind): New function.
1104 (frame_saved_regs_pc_unwind): New function.
1105 (frame_register_unwind): Pass unwind_cache instead of
1106 register_unwind_cache.
1107 (set_unwind_by_pc): Add unwind_pc parameter, set.
1108 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1109 (get_prev_frame): Ditto.
1110 * frame.h (frame_pc_unwind_ftype): Declare.
1111 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1112 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1113 (frame_pc_unwind): Declare.
1114 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1115 (struct dummy_frame): Add comment mentioning that values are for
1117 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1118 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1119 (generic_file_frame_chain_valid): Ditto.
1120 * stack.c (frame_info): Ditto.
1122 2002-11-15 David Carlton <carlton@math.stanford.edu>
1124 * linespec.c (locate_first_half): New function.
1125 (decode_line_1): Move code into locate_first_half.
1127 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1129 * complaints.h: Add comment explaining how to eliminate a
1130 deprecated_complain call.
1131 * complaints.h: Fix spelling errors.
1133 2002-11-15 David Carlton <carlton@math.stanford.edu>
1135 * printcmd.c: Remove #include "disasm.h".
1137 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1139 * frame.h: Move the most relevant interface functions to the start
1142 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1144 * regcache.h (deprecated_registers): Rename registers.
1145 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1146 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1147 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1148 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1149 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1150 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1151 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1152 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1153 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1154 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1155 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1156 * v850ice.c: Update.
1158 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1160 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1163 2002-11-13 Andrew Cagney <cagney@redhat.com>
1165 * regcache.h (deprecated_read_register_bytes): Rename
1166 read_register_bytes.
1167 (deprecated_write_register_bytes): Rename write_register_bytes.
1168 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1169 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1170 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1171 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1172 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1173 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1174 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1175 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1176 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1177 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1178 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1179 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1180 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1181 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1183 2002-11-13 Jim Blandy <jimb@redhat.com>
1185 * findvar.c (read_var_value): Doc fix.
1187 2002-11-13 Andrew Cagney <cagney@redhat.com>
1189 * regcache.c (struct regcache): Replace passthough_p with
1191 (regcache_xmalloc): Initialize readonly_p.
1192 (build_regcache): Initialize readonly_p.
1193 (regcache_save): New function.
1194 (regcache_restore): New function.
1195 (regcache_cpy): Re-implement using regcache_save and
1197 (regcache_raw_read): Update.
1198 (regcache_cooked_read): When a read-only cache, checked for cached
1199 pseudo register values.
1200 (regcache_raw_write): Assert that the cache is not read-only.
1201 Remove code handling a non-passthrough cache.
1202 * regcache.h (regcache_save): Declare.
1203 (regcache_restore): Declare.
1205 2002-11-13 Andrew Cagney <cagney@redhat.com>
1207 * regcache.c (struct regcache_descr): Add fields
1208 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1209 (init_legacy_regcache_descr): Compute the size of a cooked
1210 register cache and then assign that to sizeof_raw_registers. Set
1211 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1212 (init_legacy_regcache_descr): Ditto.
1214 2002-11-13 Andrew Cagney <cagney@redhat.com>
1216 * regcache.c (register_buffer): Move to near start of file, update
1218 (regcache_raw_read): Use.
1219 (regcache_raw_write): Use.
1220 (struct regcache): Rename raw_registers to registers and
1221 raw_register_valid_p to register_valid_p.
1222 (regcache_xmalloc): Update.
1223 (regcache_xfree): Update.
1224 (register_buffer): Update.
1225 (regcache_cpy): Update.
1226 (regcache_cpy_no_passthrough): Update.
1227 (regcache_valid_p): Update.
1228 (deprecated_grub_regcache_for_registers): Update.
1229 (deprecated_grub_regcache_for_register_valid): Update.
1230 (set_register_cached): Update.
1231 (regcache_raw_write): Update.
1233 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1235 * p-exp.y (name_not_typename): Use copy_name to
1236 set current_type variable for fields of THIS.
1238 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1240 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1241 * monitor.c (init_base_monitor_ops): Likewise.
1242 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1243 * remote-array.c (init_array_ops): Likewise.
1244 * remote-e7000.c (init_e7000_ops): Likewise.
1245 * remote-es.c (init_es1800_ops): Likewise.
1246 (init_es1800_child_ops): Likewise.
1247 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1248 * remote-sim.c (init_gdbsim_ops): Likewise.
1249 * remote-st.c (init_st2000_ops): Likewise.
1250 * sol-thread.c (init_sol_core_ops): Likewise.
1251 (init_sol_thread_ops): Likewise.
1252 * v850ice.c (init_850ice_ops): Likewise.
1253 * win32-nat.c (init_child_ops): Likewise.
1254 * wince.c (init_child_ops): Likewise.
1256 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1258 * utils.c (gdb_realpath): Make rp a constant pointer.
1260 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1262 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1263 a constant buffer; cannonicalize_file_name(); realpath() with a
1264 pathconf() defined buffer, xstrdup().
1266 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1268 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1269 to hang2.C; hang3.c to hang3.C.
1271 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1273 * findvar.c (read_var_value): Reenable TLS code.
1275 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1276 Jim Blandy <jimb@redhat.com>
1278 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1279 * target.c (update_current_target): Add
1280 to_get_thread_local_address.
1281 * target.h (to_get_thread_local_address): Export.
1282 (target_get_thread_local_address): Define.
1283 (target_get_thread_local_address_p): Define.
1284 * thread-db.c: Include solib-svr4.h.
1285 (td_thr_tls_get_addr_p): Define.
1286 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1287 (thread_db_get_thread_local_address): New function.
1288 (init_thread_db_ops): Initialize to_get_thread_local_address.
1289 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1290 * configure: Regenerate.
1291 * config.in: Regenerate.
1293 2002-11-11 David Carlton <carlton@math.stanford.edu>
1295 * linespec.c (set_flags): New function.
1296 (decode_line_1): Move code into set_flags.
1298 2002-11-11 David Carlton <carlton@math.stanford.edu>
1300 * linespec.c (decode_line_1): Move chunks of code to separate
1302 (initialize_defaults): New function.
1303 (decode_indirect): New function.
1305 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1307 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1308 instead of void_code_ptr.
1309 (sigtramp_saved_pc): Ditto.
1311 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1314 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1316 * gdbtypes.h (struct main_type): Move artificial flag out of
1317 loc. New member of ``struct field'' named static_kind. Reduce
1318 overloaded meaning of bitsize.
1319 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1320 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1321 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1323 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1325 (template_to_fixed_record_type, template_to_static_fixed_type)
1326 (to_record_with_fixed_variant_part): Likewise.
1327 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1328 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1329 * dwarfread.c (struct_type, enum_type): Likewise.
1330 * hpread.c (hpread_read_enum_type)
1331 (hpread_read_function_type, hpread_read_doc_function_type)
1332 (hpread_read_struct_type): Likewise.
1333 * mdebugread.c (parse_symbol): Likewise.
1335 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1337 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1338 * stack.c (print_frame_info_base): Update.
1339 (print_frame_info_base, frame_info): Update.
1340 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1341 (sparc_frame_saved_pc): Update.
1342 * ada-lang.c (find_printable_frame): Update.
1343 * breakpoint.c (deprecated_frame_in_dummy): Update.
1345 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1347 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1349 (regmap): Extend to cover all registers.
1350 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1351 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1353 (fetch_register, sore_register): Simplify.
1354 (old_fetch_inferior_registers, old_store_inferior_registers):
1356 (cannot_fetch_register, cannot_store_register): Change
1357 implementation to use regmap array to decide which registers
1358 cannot be fetched/stored. This removes $orig_eax from the
1359 registers that cannot be fetched/stored.
1360 (fetch_inferior_registers): Call fetch_register directly instead
1361 of calling old_fetch_inferior_registers.
1362 (store_inferior_registers): Call store_register directly instead
1363 of calling old_store_inferior_registers.
1364 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1365 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1366 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1368 2002-11-09 Klee Dienes <kdienes@apple.com>
1370 * i387-tdep.c (i387_supply_register): When called with NULL as a
1371 buffer, mark the register as not provided (to mirror the behavior
1372 of supply_register).
1373 (i387_supply_fxsave): Ditto.
1374 (i387_supply_fsave): Ditto (inherits the behavior from
1375 i387_supply_register).
1377 2002-11-09 Klee Dienes <kdienes@apple.com>
1379 * blockframe.c (sigtramp_saved_pc): Use
1380 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1381 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1382 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1384 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1386 * frame.c (get_prev_frame): Test prev_p to identify a previously
1387 unwound frame. Initialize prev_p.
1388 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1391 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1393 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1394 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1395 more comments. Zap dead code.
1397 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1399 * infcmd.c (print_vector_info, print_float_info): Move code that
1400 checks whether the target has any registers and whether there is a
1401 selected frame up, such that it is also used if a target provides
1402 multi-arch definitions of these functions.
1404 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1406 * Makefile.in (DESTDIR): Define.
1407 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1410 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1411 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1413 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1415 * i386-linux-tdep.c: Include "reggroups.h".
1416 (i386_linux_register_reggroup_p): New function.
1417 (i386_linux_init_abi): Set register_reggroup_p to
1418 i386_linux_register_reggroup_p.
1419 * i386-tdep.h (i386_register_reggroup_p): Declare.
1420 * i386-tdep.c: Include "reggroups.h".
1421 (i386_init_reggroups): New function.
1422 (i386_add_reggroups): New function.
1423 (i386_register_reggroup_p): New function.
1424 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1425 (_initialize_i386_tdep): Call i386_init_reggroups.
1426 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1429 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1431 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1432 request that's available in *BSD.
1434 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1436 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1439 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1441 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1442 * dummy-frame.c (find_dummy_frame): Rename
1443 generic_find_dummy_frame, make static. Return the dummy frame
1444 instead of the regcache.
1445 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1446 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1447 (dummy_frame_register_unwind): Rename
1448 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1449 * dummy-frame.h (dummy_frame_register_unwind): Rename
1450 generic_call_dummy_register_unwind.
1452 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1454 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1455 except the inclusion of "i386/tm-i386.h", to...
1456 * config/i386/nm-i386v42mp.h: ...here.
1457 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1459 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1461 * Makefile.in (frame.o): Update dependencies.
1462 * blockframe.c (current_frame, frame_obstack_alloc)
1463 (frame_saved_regs_zalloc, get_current_frame)
1464 (set_current_frame, create_new_frame)
1465 (set_unwind_by_pc, get_next_frame)
1466 (flush_cached_frames, reinit_frame_cache)
1467 (frame_saved_regs_register_unwind)
1468 (deprecated_generic_get_saved_register)
1469 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1470 (_initialize_blockframe): Move frame code from here...
1471 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1472 "annotate.h" and "dummy-frame.h".
1473 (_initialize_frame): New function.
1475 2002-11-08 Jim Blandy <jimb@redhat.com>
1477 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1478 when we finish a function a context.
1479 * buildsym.h (outermost_context_p): New macro.
1480 (Bug analyzed by David Edelsohn.)
1482 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1484 * blockframe.c: Include "dummy-frame.h".
1485 (struct dummy_frame, dummy_frame_stack)
1486 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1487 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1488 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1489 (generic_save_call_dummy_addr, generic_pop_current_frame)
1490 (generic_pop_dummy_frame, generic_fix_call_dummy)
1491 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1492 dummy frame code from here...
1493 * dummy-frame.c: ...to here. New file.
1494 * dummy-frame.h: New file.
1495 (generic_call_dummy_register_unwind): Declare.
1496 (generic_find_dummy_frame): Declare.
1497 * Makefile.in (SFILES): Add dummy-frame.c.
1498 (dummy-frame.o): Specify dependencies.
1499 (dummy_frame_h): Define.
1500 (COMMON_OBS): Add dummy-frame.o.
1501 (blockframe.o): Update dependencies.
1503 2002-11-08 Jim Blandy <jimb@redhat.com>
1505 * dwarf2read.c (read_func_scope): Restore local_symbols and
1506 param_symbols after we finish the function context. (Based on a
1507 patch from David Edelsohn.)
1509 2002-11-08 David Carlton <carlton@math.stanford.edu>
1511 * linespec.c (symbol_found): New function.
1512 (minsym_found): New function.
1513 (decode_line_1): Separate out some code into separate functions.
1515 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1517 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1518 the benefit of the interix target.
1519 * i386-tdep.h (i386_frameless_signal_p): Declare.
1521 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1523 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1524 declaration that snuck in from change below.
1526 2002-11-06 Andrew Cagney <cagney@redhat.com>
1528 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1530 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1531 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1532 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1533 (i386_mxcsr_regnum_p): new function. Use instead of
1535 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1536 (i386_sse_regnum_p): Declare.
1537 (i386_mxcsr_regnum_p): Declare.
1538 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1539 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1540 (IS_FP_REGNUM): Update definition.
1541 (IS_FPU_CTRL_REGNUM): Update definition..
1542 (IS_SSE_REGNUM): Update definition..
1543 * i386v-nat.c (register_u_addr): Update.
1544 * go32-nat.c (fetch_register): Update.
1545 (store_register): Update.
1547 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1549 Preparation work to convert the hppa targets to multiarch partial.
1551 * hppa-tdep.c: Add new functions replacing macro bodies from
1552 config/pa/tm-hppa.h. These function will be used to initialize
1553 the gdbarch structure. Import some comments from tm-hppa.h,
1554 and place them where appropriate, to avoid loosing them when
1555 we cleanup this file.
1556 (hppa_reg_struct_has_addr): New function.
1557 (hppa_inner_than): New function.
1558 (hppa_stack_align): New function.
1559 (hppa_pc_requires_run_before_use): New function.
1560 (hppa_instruction_nullified): New function.
1561 (hppa_register_byte): New function.
1562 (hppa_register_virtual_type): New function.
1563 (hppa_store_struct_return): New function.
1564 (hppa_cannot_store_register): New function.
1565 (hppa_frame_args_address): New function.
1566 (hppa_frame_locals_address): New function.
1567 (hppa_smash_text_address): New function.
1568 (hppa_coerce_float_to_double): New function. Requires the inclusion
1571 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1573 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1574 gdbarch-eligible macro to a call to the new associated function
1575 created in hppa-tdep.c.
1576 (INNER_THAN): Likewise.
1577 (STACK_ALIGN): Likewise.
1578 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1579 (INSTRUCTION_NULLIFIED): Likewise.
1580 (REGISTER_BYTE): Likewise.
1581 (REGISTER_VIRTUAL_TYPE): Likewise.
1582 (STORE_STRUCT_RETURN): Likewise.
1583 (CANNOT_STORE_REGISTER): Likewise.
1584 (FRAME_ARGS_ADDRESS): Likewise.
1585 (FRAME_LOCALS_ADDRESS): Likewise.
1586 (SMASH_TEXT_ADDRESS): Likewise.
1587 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1588 (ABOUT_TO_RETURN): Delete, as no longer used.
1590 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1592 * printcmd.c (disassemble_command): Remove obsolete function.
1593 (_initialize_printcmd): Do not create disassemble command here.
1594 * cli/cli-cmds.c (disassemble_command): New function. Implements
1595 disassemble command.
1596 (init_cli_cmds): Create disassemble command here instead.
1598 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1600 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1602 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1604 * regcache.h (regcache_cooked_read_using_offset_hack)
1605 (regcache_cooked_write_using_offset_hack): Delete declarations.
1606 (register_changed): Delete declaration.
1607 * regcache.c (regcache_cooked_read_using_offset_hack)
1608 (regcache_cooked_write_using_offset_hack): Delete functions.
1609 (cooked_xfer_using_offset_hack): Delete function.
1610 (register_changed): Delete function.
1612 2002-11-07 Jim Blandy <jimb@redhat.com>
1614 * macroscope.c: #include "complaints.h".
1615 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1616 but not in the macro table.
1617 * Makefile.in (macroscope.o): Record dependency.
1619 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1621 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1623 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1625 * regcache.c (deprecated_registers_fetched): Update.
1626 * regcache.h (deprecated_registers_fetched): Rename
1628 * remote-vxsparc.c (vx_read_register): Update.
1629 * remote-vxmips.c (vx_read_register): Update.
1630 * remote-vx68.c (vx_read_register): Update.
1631 * irix5-nat.c (fetch_core_registers): Update.
1632 * mipsm3-nat.c (fetch_inferior_registers): Update.
1633 * sun3-nat.c (fetch_inferior_registers): Update.
1634 * symm-nat.c (fetch_inferior_registers): Update.
1635 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1636 (fetch_core_registers): Update.
1637 (fetch_kcore_registers): Update.
1638 * mips-nat.c (fetch_inferior_registers): Update.
1639 * corelow.c (get_core_registers): Update.
1640 * a68v-nat.c (fetch_inferior_registers): Update.
1642 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1644 Put in place the framework necessary for multiarching the hppa targets.
1645 * hppa-tdep.c (hppa_gdbarch_init): New function.
1646 (hppa_dump_tdep): New function.
1647 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1648 tdep structure dumper.
1649 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1650 until the multi-arching conversion has partially been completed.
1652 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1654 * valops.c (value_assign): Merge lval_register case into
1655 lval_reg_frame_relative. Use frame_register and
1656 regcache_cooked_write instead of get_saved_register and
1657 write_register_bytes. After flushing the register cache, try to
1658 re-select the selected frame.
1660 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1662 * regcache.h (deprecated_register_valid): Rename register_valid.
1663 * regcache.c: Update.
1664 * ia64-aix-nat.c: Update.
1665 * i386gnu-nat.c: Update.
1666 * alpha-nat.c: Update.
1667 * sparc-nat.c: Update.
1668 * lynx-nat.c: Update.
1669 * remote-mips.c: Update.
1671 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1673 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1674 to end of file, to be more consistent with the pratice followed
1677 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1679 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1680 (print_float_info): Print registers in float_reggroup.
1681 (print_vector_info): Print registers in vector_reggroup.
1682 (default_print_registers_info): When all, print registers in
1683 all_reggroup. Otherwize, print registers in general_reggroup.
1684 (registers_info): Rewrite. Add support for register groups.
1687 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1689 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1691 (symtab_symbol_info): Remove eons old ifdeffed out code.
1692 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1695 2002-11-06 Theodore A. Roth <troth@openavr.org>
1697 * c-exp.y: Add missing semi-colons.
1698 * f-exp.y: Add missing semi-colons.
1699 * m2-exp.y: Add missing semi-colons.
1700 * p-exp.y: Add missing semi-colons.
1701 Add empty action to start rule to avoid a type clash error when
1702 building with bison >= 1.50.
1704 2002-11-06 Jim Blandy <jimb@redhat.com>
1706 * macrotab.h (struct macro_source_file): Doc fix.
1708 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1710 * varobj.c (child_exists, cplus_number_of_children): Change
1711 STREQ macro references to strcmp.
1712 (cplus_name_of_child): Change code to handle the fact that
1713 fields are not necessarily contiguous with regards to their
1714 access control. This is a fix for PR gdb/792.
1716 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1718 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1719 * gdbarch.h, gdbarch.c: Regnerate.
1720 * frame.h (frame_register): Declare.
1721 * frame.c (frame_register): New function.
1722 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1723 GET_SAVED_REGISTER, otherwize call
1724 generic_unwind_get_saved_register.
1725 (frame_register_read): Use frame_register instead of
1728 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1730 From Jim Ingham <jingham@apple.com>:
1731 * event-top.c (gdb_disable_readline): New function.
1732 (_initialize_event_loop): Move comment.
1734 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1736 * event-loop.c (start_event_loop): Add comment.
1739 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1741 * infcmd.c (default_print_registers_info): Do not call
1742 PRINT_REGISTER_HOOK.
1744 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1746 * sparc-tdep.c (sparc_print_register_hook): Make static.
1747 (sparc_print_registers_info): New function.
1748 (sparc_do_registers_info): New function.
1749 (sparclet_print_registers_info): New function.
1750 (sparclet_do_registers_info): New function.
1751 (do_sparc_print_registers_info): New function.
1752 (sparc_print_registers): New static function, clone of infcmd.c's
1753 default_print_registers_info.
1754 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1755 (sparclet_do_registers_info): Declare.
1756 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1757 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1759 (sparc_do_registers_info): Declare.
1760 (PRINT_REGISTER_HOOK): Delete macro.
1761 (sparc_print_register_hook): Delete declaration.
1763 2002-11-05 David Carlton <carlton@math.stanford.edu>
1765 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1767 (lookup_symbol_aux_local): New function.
1768 (lookup_symbol_aux_symtabs): New function.
1769 (lookup_symbol_aux_psymtabs): New function.
1771 2002-11-05 David Carlton <carlton@math.stanford.edu>
1773 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1774 previous values of 'objfile' and 'block'.
1776 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1778 * values.c (value_change_enclosing_type): Set
1779 enclosing_type field correctly also for the case where
1780 more memory needs to be allocated.
1782 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1784 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1787 * i387-tdep.c (i387_print_float_info): Replace calls to
1788 register_read and deprecated_read_register_gen with calls to
1789 frame_register_read, and make the necessary adjustments to the
1792 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1794 * gdbarch.sh (register_reggroup_p): Allow default value.
1795 * gdbarch.h, gdbarch.c: Regenerate.
1797 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1799 * regcache.h: Add coment indicating replacements for deprecated
1802 2002-11-02 Andrew Cagney <cagney@redhat.com>
1804 * reggroups.h, reggroups.c: New files.
1805 * regcache.c: Include "reggroups.h".
1806 (enum regcache_dump_what): Add `regcache_dump_groups'.
1807 (regcache_dump): Contract size of the "Type" column. When
1808 specified, dump the register's groups.
1809 (maintenance_print_register_groups): New function.
1810 (_initialize_regcache): Add command `maint print register-groups'.
1811 * Makefile.in (COMMON_OBS): Add reggroups.o
1812 (SFILES): Add reggroups.c.
1813 (reggroups_h): Define.
1814 (regcache.o, gdbarch.o): Update dependencies.
1815 (reggroups.o): Specify dependencies.
1816 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1817 Add opaque declaration for `struct reggroup' in generated .h file.
1818 Include "reggroups.h" in generated .c file.
1819 gdbarch.h, gdbarch.c: Re-generate.
1821 2002-11-02 Andrew Cagney <cagney@redhat.com>
1823 * regcache.h (deprecated_read_register_gen): Rename
1825 (deprecated_write_register_gen): Rename write_register_gen.
1826 * i387-tdep.c: Update.
1827 * x86-64-linux-nat.c: Update
1829 * thread-db.c: Update.
1830 * win32-nat.c: Update.
1831 * mips-tdep.c: Update.
1832 * d10v-tdep.c: Update.
1833 * cris-tdep.c: Update.
1834 * remote-sim.c: Update.
1835 * remote-rdi.c: Update.
1836 * remote-rdp.c: Update.
1839 * blockframe.c: Update.
1840 * x86-64-tdep.c: Update.
1841 * xstormy16-tdep.c: Update.
1842 * sh-tdep.c: Update.
1843 * s390-tdep.c: Update.
1844 * rs6000-tdep.c: Update.
1845 * sparc-tdep.c: Update.
1846 * i386-tdep.c: Update.
1847 * dwarf2cfi.c: Update.
1848 * regcache.c: Update.
1850 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1852 New interix-specific files:
1853 * config/i386/nm-interix.h: New file.
1854 * config/i386/interix.mh: New file.
1855 * config/i386/interix.mt: New file.
1856 * i386-interix-nat.c: New file.
1857 * i386-interix-tdep.c: New file.
1859 2002-11-01 Andrew Cagney <cagney@redhat.com>
1861 * frame.h (deprecated_generic_get_saved_register): Rename
1862 generic_get_saved_register.
1863 * blockframe.c (deprecated_generic_get_saved_register): Update.
1864 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1865 (xstormy16_frame_saved_register): Update.
1866 * sh-tdep.c (sh_gdbarch_init): Update.
1867 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1868 * ia64-tdep.c (ia64_get_saved_register): Update.
1869 * cris-tdep.c (cris_gdbarch_init): Update.
1870 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1871 * arm-tdep.c (arm_gdbarch_init): Update.
1873 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1875 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1877 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1879 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1880 trampolines in sigaction.
1882 2002-10-31 Andrew Cagney <cagney@redhat.com>
1884 * h8300-tdep.c: Include "gdb_assert.h".
1885 (h8300_print_register): Add gdbarch, file and frame parameters.
1886 Use frame_read_unsigned_register to read the register's value.
1887 Use fprintf_filtered to display output.
1888 (h8300_print_registers_info): Replace h8300_do_registers_info.
1889 (h8300_gdbarch_init): Set print_registers_info.
1891 2002-10-31 Andrew Cagney <cagney@redhat.com>
1893 * frame.c (frame_read_unsigned_register): New function.
1894 (frame_read_signed_register): New function.
1895 * frame.h (frame_read_unsigned_register): Declare.
1896 (frame_read_signed_register): Declare.
1898 2002-10-31 Andrew Cagney <cagney@redhat.com>
1900 * h8500-tdep.c (h8500_print_registers_info): New static function,
1901 clone of infcmd.c's default_print_registers_info.
1902 (h8500_do_registers_info): New funtion.
1903 (h8500_print_register_hook): Rename print_register_hook, make
1906 * config/h8500/tm-h8500.h: Update copyright.
1907 (DEPRECATED_DO_REGISTERS_INFO): Define.
1908 (h8500_do_registers_info: Declare.
1909 (PRINT_REGISTER_HOOK): Delete macro.
1910 (print_register_hook): Delete function.
1912 2002-10-31 Andrew Cagney <cagney@redhat.com>
1914 * z8k-tdep.c (z8k_print_register_hook): Make static.
1915 (z8k_print_registers_info): New static function, clone of
1916 infcmd.c's default_print_registers_info.
1917 (z8k_do_registers_info): New function. Wrap
1918 z8k_print_registers_info.
1919 * config/z8k/tm-z8k.h: Update copyright.
1920 (PRINT_REGISTER_HOOK): Delete macro.
1921 (z8k_print_register_hook): Delete declaration.
1922 (DEPRECATED_DO_REGISTERS_INFO): Define.
1923 (z8k_do_registers_info): Declare.
1925 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1927 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1928 as this is already provided by value.h, and was actually causing
1929 a compilation error because of a conflict in parameter type
1930 declaration due to a missing const keyword.
1931 (low_text_segment_addres): Fix a compilation warning.
1933 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1935 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1936 registers without a name.
1937 (mips_linux_cannot_store_register): Don't store registers without
1940 2002-10-28 David Carlton <carlton@math.stanford.edu>
1942 * symtab.c (find_addr_symbol): Delete. (It was already commented
1944 * symtab.h: Delete prototype for find_addr_symbol.
1946 2002-10-26 Andrew Cagney <cagney@redhat.com>
1948 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1950 gdbarch.h, gdbarch.c: Re-generate.
1951 * infcmd.c (default_print_registers_info): Update reference.
1952 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1953 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1954 * sh-tdep.c (sh_gdbarch_init): Ditto.
1955 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1956 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1958 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1960 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1961 cfi_init_extra_frame_info.
1962 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1963 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1965 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1966 target where necessary. Add more comments and remove the ones
1967 that don't provide any useful information.
1969 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1970 deprecated_read_register_dummy with
1971 frame_unwind_unsigned_register.
1973 * i386-tdep.c (i386_extract_struct_value_address): Use
1974 regcache_raw_read_unsigned instead of
1975 regcache_cooked_read_unsigned since we know that the register
1976 we're reading isn't a pseudo register. Rename variable 'val' into
1977 the more descriptive 'addr'.
1979 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1980 (x86_64_push_return_address): Add comment.
1981 (x86_64_pop_frame): Make static.
1982 (examine_argument): Clarify comment.
1983 (x86_64_skip_prologue): Make prolog_expact variable static.
1985 * dwarf2cfi.c: Fix some formatting problems.
1986 (context_cpy, read_encoded_pointer): Clarify comments.
1988 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1989 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1990 i386 target back into x86_64_gdbarch_init. Add some comments and
1991 remove meaningless ones.
1993 2002-10-25 Andrew Cagney <cagney@redhat.com>
1995 * complaints.h (struct deprecated_complaint): Rename `struct
1997 * complaints.c (complain): Update.
1998 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1999 incorrect comment indicating that "symfile.h" was being included
2000 for the `struct complaint' definition.
2001 * remote-vx.c: Update.
2002 * objc-lang.c: Update.
2003 * xcoffread.c: Update.
2005 * mdebugread.c: Update.
2006 * stabsread.c: Update.
2007 * dwarf2read.c: Update.
2008 * dwarfread.c: Update.
2009 * elfread.c: Update.
2010 * coffread.c: Update.
2011 * stabsread.h: Update.
2012 * dbxread.c: Update.
2013 * buildsym.c: Update.
2014 * gdbtypes.c: Update.
2015 * macrotab.c: Update.
2017 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2019 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2020 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2021 (x86_64_init_abi): ...new function.
2023 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2024 * i386v-nat.c: Include "i386-tdep.h".
2026 2002-10-25 Andrew Cagney <cagney@redhat.com>
2028 * gdbtypes.c (address_space_name_to_int): Update.
2029 (address_space_int_to_name): Update.
2030 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2031 multi-arch predicate.
2032 (address_class_name_to_type_flags): Ditto.
2033 * gdbarch.h, gdbarch.c: Re-generate.
2035 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2037 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2039 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2041 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2043 * symtab.h (INIT_SAL): Delete macro.
2045 * symtab.c (init_sal): New function.
2047 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2048 to init_sal function call.
2049 (find_sal_from_funcs_and_line): Ditto.
2050 (all_sals_for_line): Ditto.
2051 * breakpoint.c (create_internal_breakpoint): Ditto.
2052 (create_fork_vfork_event_catchpoint): Ditto.
2053 (create_exec_event_catchpoint): Ditto.
2054 (parse_breakpoint_sals): Ditto.
2055 (watch_command_1): Ditto.
2056 (handle_gnu_4_16_catch_command): Ditto.
2057 (clear_command): Ditto.
2058 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2059 * infcmd.c (run_stack_dummy): Ditto.
2060 * infrun.c (process_event_stop_test): Ditto.
2061 (check_sigtramp2): Ditto.
2062 (step_over_function): Ditto.
2063 * linespec.c (decode_line_2): Ditto.
2064 (decode_line_1): Ditto.
2065 * source.c (line_info): Ditto.
2066 * symtab.c (find_pc_sect_line): Ditto.
2068 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2070 * dwarf2cfi.c (struct context)
2071 (struct context_reg): Moved to dwarf2cfi.h
2072 (context_alloc, frame_state_alloc, context_cpy):
2073 Made extern instead of static, removed prototypes.
2074 * dwarf2cfi.h (struct context)
2075 (struct context_reg): New, moved from dwarf2cfi.c
2076 (context_alloc, frame_state_alloc, context_cpy):
2078 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2079 Changed from static to extern.
2080 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2081 (LINUX_SIGCONTEXT_FP_OFFSET)
2082 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2083 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2084 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2085 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2086 set_gdbarch_*() calls now use x86-64 specific functions
2087 instead of DWARF2 CFI ones.
2088 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2089 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2090 (x86_64_init_extra_frame_info): New prototypes.
2092 2002-10-23 David Carlton <carlton@math.stanford.edu>
2094 * linespec.c: #include "parser-defs.h".
2095 Delete prototype for find_template_name_end.
2096 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2098 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2100 * NEWS: add recent mi fixes.
2101 * varobj.c (struct varobj): Add new "updated" flag.
2102 (new_variable): Default "updated" flag to 0.
2103 (varobj_set_value): Set "updated" flag to 1 if value
2105 (varobj_update): Check varobj "updated" flag before
2106 comparing old and refreshed values. Fix for
2109 2002-10-23 David Carlton <carlton@math.stanford.edu>
2111 * parse.c (parse_exp_1): Use BLOCK_START.
2112 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2114 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2116 2002-10-23 David Carlton <carlton@math.stanford.edu>
2118 * symtab.c: Delete cplusplus_hint.
2119 Delete prototype for find_template_name_end.
2121 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2123 * symtab.h: Update comment.
2125 2002-10-23 Michael Snyder <msnyder@redhat.com>
2127 * printcmd.c (address_info): Restore quotes in output.
2128 * valops.c (value_of_local): Restore quotes in error message.
2130 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2132 * symtab.c (symbol_demangled_name): New function.
2133 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2134 turning most of it into a function.
2135 (symbol_demangled_name): Export.
2137 2002-10-23 Michael Snyder <msnyder@redhat.com>
2139 * valops.c (value_of_local): Restore quotes in error message.
2141 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2143 * symtab.c (symbol_init_language_specific): New function.
2144 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2145 turning most of it into a function.
2146 (symbol_init_language_specific): Export.
2148 2002-10-23 David Carlton <carlton@math.stanford.edu>
2150 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2151 (dwarf_attr_name): Ditto.
2152 (dwarf_type_encoding_name): Ditto.
2153 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2154 (process_die): Handle DW_TAG_namespace,
2155 DW_TAG_imported_declaration, DW_TAG_imported_module.
2156 (read_namespace): New function.
2158 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2160 * configure.in: Define NEW_PROC_API on Interix too.
2161 * configure: Regenerate.
2163 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2165 * configure: Regenerate using the proper version of autoconf.
2167 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2169 * findvar.c (read_var_value): Temporarily disable TLS code, until
2170 complete TLS support is added.
2172 2002-10-21 Jim Blandy <jimb@redhat.com>
2173 Elena Zannoni <ezannoni@redhat.com>
2175 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2176 for thread local storage locations.
2177 (struct symbol): Add objfile field.
2178 (SYMBOL_OBJFILE): Define.
2179 * dwarf2read.c (is_thread_local): New static variable.
2180 (new_symbol): If variable is in thread local fill in address class
2181 and objfile appropriately.
2182 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2184 * printcmd.c (address_info): Print the information for thread
2185 local storage variable.
2186 * findvar.c (read_var_value): In case of thread local variable,
2187 defer to the target vector code to compute address.
2189 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2191 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2192 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2194 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2196 * symtab.h (address_class): Rename
2197 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2198 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2199 * printcmd.c (address_info): Ditto.
2200 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2202 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2204 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2205 DBREG_DRX macro to acces debug registers.
2207 * Makefile.in (i386obsd-tdep.o): New target.
2209 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2210 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2212 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2213 * config/i386/obsd.mt: New file.
2214 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2215 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2216 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2217 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2218 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2219 * i386obsd-tdep.c: New file.
2221 2002-10-19 Adam Fedor <fedor@gnu.org>
2223 * objc-exp.y (name_not_typename): Fix invalid comment.
2225 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2227 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2228 to allocate partial syms and macro byte caches.
2230 2002-10-18 David Carlton <carlton@math.stanford.edu>
2232 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2234 2002-10-18 Adam Fedor <fedor@gnu.org>
2236 * stabsread.c (find_name_end): New function.
2237 (define_symbol): Use it.
2239 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2241 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2242 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2243 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2244 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2246 2002-10-17 David Carlton <carlton@math.stanford.edu>
2248 * symfile.h: Add opaque declaration for struct obstack.
2249 Declare obsavestring to take a const char *.
2250 * symfile.c (obsavestring): Make first argument a const char *.
2252 2002-10-16 Adam Fedor <fedor@gnu.org>
2254 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2255 names when matching breakpoints in current file.
2257 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2259 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2260 (read_tag_pointer_type): Add address class support.
2261 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2262 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2264 * gdbarch.h, gdbarch.c: Regenerate.
2265 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2266 (make_type_with_address_space, recursive_type_dump): Add address
2268 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2269 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2270 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2272 2002-10-16 Klee Dienes <kdienes@apple.com>
2274 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2275 to get the last character of a char[] buffer, not
2276 name[sizeof(vptr_name)-1].
2278 2002-10-14 Adam Fedor <fedor@gnu.org>
2280 * symtab.h: New objc_specific struct.
2281 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2282 (SYMBOL_DEMANGLED_NAME): Likewise.
2284 2002-10-14 Adam Fedor <fedor@gnu.org>
2286 * symfile.c (init_filename_language_table): Add ObjC file extension.
2288 2002-10-14 Adam Fedor <fedor@gnu.org>
2290 * utils.c (puts_filtered_tabular): New function.
2291 (fprintf_symbol_filtered): Get ObjC demangled name.
2292 * defs.h (puts_filtered_tabular): Declared.
2294 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2296 * c-lang.h (c_type_print_varspec_prefix): Delete.
2297 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2298 ``need_post_space'' parameter. Adjust all callers.
2300 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2302 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2303 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2304 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2305 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2307 2002-10-13 Adam Fedor <fedor@gnu.org>
2309 * source.c (print_source_lines): Update comments.
2311 2002-10-13 Adam Fedor <fedor@gnu.org>
2313 * valops.c (value_of_local): New function.
2314 (value_of_this): Use it.
2315 * value.h (value_of_local): Declared.
2317 2002-10-13 Adam Fedor <fedor@gnu.org>
2319 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2320 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2322 2002-10-12 Adam Fedor <fedor@gnu.org>
2324 * language.c (binop_result_type): Add language_objc to case.
2325 (integral_type): Likewise.
2326 (character_type): Likewise.
2327 (string_type): Likewise.
2328 (boolean_type): Likewise.
2329 (structured_type): Likewise.
2330 (binop_type_check): Likewise.
2332 2002-10-11 Adam Fedor <fedor@gnu.org>
2334 * printcmd.c (address_info): Print 'self' for ObjC.
2336 2002-10-11 Adam Fedor <fedor@gnu.org>
2338 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2341 2002-10-11 Adam Fedor <fedor@gnu.org>
2343 * language.h (CAST_IS_CONVERSION): Add language_objc.
2345 2002-10-11 Adam Fedor <fedor@gnu.org>
2347 * defs.h (enum language): Add language_objc.
2349 2002-10-11 Klee Dienes <kdienes@apple.com>
2351 * corefile.c (read_memory_typed_address): New function.
2352 * gdbcore.h (read_memory_typed_address): Add prototype.
2353 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2354 to read a value destined for a CORE_ADDR, not read_memory_integer.
2355 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2356 (f77_get_dynamic_lowerbound): Ditto.
2358 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2360 * utils.c (string_to_core_addr): After turning string into
2361 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2362 which will do necessary sign-extension, etc.
2364 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2366 * c-exp.y (THIS): Delete token and grammar rule.
2367 (yylex): Don't return THIS.
2368 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2369 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2370 * demangle.c (cplus_markers): Update comment. Put '$'
2371 first. Remove CPLUS_MARKER.
2372 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2373 * jv-exp.y (THIS): Delete token and grammar rule.
2374 (yylex): Don't return THIS.
2375 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2376 * objc-exp.y (THIS): Delete token and grammar rule.
2377 (yylex): Don't return THIS.
2378 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2379 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2380 (read_member_functions): Likewise for opname.
2381 (read_tilde_fields): Use is_cplus_marker.
2383 * defs.h (CPLUS_MARKER): Don't define.
2384 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2385 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2386 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2387 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2388 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2390 * config/i386/tm-i386v4.h: Delete file.
2391 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2392 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2393 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2394 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2395 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2396 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2397 * config/i386/i386v4.mt (TM_FILE): Likewise.
2398 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2400 2002-10-10 Marko Mlinar <markom@opencores.org>
2402 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2403 accidentially not commited 2002-10-09
2404 * gdbarch.h, gdbarch.c: Re-generate.
2406 2002-10-09 Marko Mlinar <markom@opencores.org>
2408 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2409 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2410 * gdbarch.h, gdbarch.c: Re-generate.
2412 2002-10-08 Petr Sorfa <petrs@caldera.com>
2414 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2416 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2417 so we can work on more than one compilation unit at a time. This
2418 helps prepare GDB to handle inter-CU die references.
2419 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2420 the code to be defined before struct comp_unit_head.
2421 (comp_unit_head): Added new members - offset, cu_head,
2422 begin_die, next and dwarf2_abbrevs.
2423 (dwarf2_abbrevs): Removed single static var; now member of
2424 struct comp_unit_head.
2425 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2427 (psymtab_to_symtab_1): Changed to work with the new
2428 struct comp_unit_head.
2429 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2430 constructs the dwarf2_abbrevs[] inside the cu_header.
2431 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2432 dwarf2_abbrev table to clean up.
2433 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2434 handling of dwarf2_abbrevs inside the cu_header.
2435 (read_partial_die): Now supports the call to the new
2436 dwarf2_lookup_abbrev.
2437 (read_full_die): Now supports the call to the new
2438 dwarf2_lookup_abbrev.
2440 2002-10-06 Christopher Faylor <cgf@redhat.com>
2442 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2443 insure that shell variables, such as "transformed_name" are propagated
2444 to later shell statements in rule.
2446 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2448 * config/i386/nm-i386sco.h: Add protection against
2449 multiple-inclusion. Include "i386/nm-i386v.h".
2450 (REGISTER_U_ADDR): Remove define.
2451 (i386_register_u_addr): Remove prototype.
2453 2002-10-04 Michael Snyder <msnyder@redhat.com>
2455 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2456 before treating it as a single-step event.
2458 2002-10-03 Adam Fedor <fedor@gnu.org>
2460 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2461 (objc_demangle): Remove assignment in if statements, Replace
2463 (add_msglist): Likewise.
2464 (end_msglist): Likewise.
2465 (complare_selectors): Likewise.
2466 (selectors_info): Likewise.
2467 (compare_classes): Likewise.
2468 (classes_info): Likewise.
2469 (print_object_command): Likewise.
2470 (find_objc_msgcall_submethod): Replace PTR with void *.
2471 * objc-lang.h: Remove check for __STDC__.
2473 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2475 * ui-out.h (ui_out_field_fmt_int): New prototype.
2476 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2477 of field width and alignment.
2478 * stack.c (print_frame_info_base): When printing frame level, use
2479 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2482 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2484 * MAINTAINERS: Add self to Write After Approval list.
2486 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2488 * infcmd.c (interrupt_target_command_wrapper): Delete.
2489 (interrupt_target_command): Make non static.
2490 (nofp_registers_info): Make static.
2491 * stack.c (return_command_wrapper): Delete.
2492 (return_command): Make non static.
2494 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2496 * event-top.c (gdb_setup_readline): New function. Code moved from
2497 _initialize_event_loop().
2498 (_initialize_event_loop): Call gdb_setup_readline().
2500 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2502 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2503 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2504 * gdbarch.h, gdbarch.c: Re-generate.
2506 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2509 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2511 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2512 of fill_in_vptr_fieldno.
2514 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2516 * inferior.h (registers_info, stepi_command, nexti_command,
2517 continue_command, interrupt_target_command): Export from infcmd.c.
2518 * frame.h (args_info, selected_frame_level_changed_hook,
2519 return_command): Export from stack.c.
2520 * v850ice.c (stepi_command, nexti_command, continue_command): use
2521 prototypes from inferior.h.
2522 * tracepoint.c (registers_info, args_info, locals_info): Use
2523 prototypes from frame.h and inferior.h.
2524 * Makefile.in (mi-main.o): Add dependency on frame.h.
2526 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2528 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2529 value in register 3 adjusted by ppc_gp0_regnum.
2531 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2533 2002-10-02 Marko Mlinar <markom@opencores.org>
2535 * MAINTAINERS: Add myself to the Write After Approval list.
2537 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2539 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2540 of the section for the N64 ABI, fixed.
2542 * config/mips/tm-irix6.h: Include solib.h.
2544 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2546 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2549 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2551 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2552 and that "mi0" syntax has been removed.
2554 2002-09-30 David Carlton <carlton@math.stanford.edu>
2556 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2557 * ppc-sysv-tdep.c: #include "gdb_string.h".
2558 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2561 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2563 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2564 "vrsave"'s register number.
2566 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2568 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2569 use frame_unwind_signed_register to obtain the PC.
2570 (mips_frame_chain): Handle a generic dummy frame.
2571 (mips_init_extra_frame_info): When a generic dummy frame, don't
2572 re-compute the frame base.
2573 (mips_pop_frame): Handle generic dummy frames.
2574 (mips_gdbarch_init): When generic dummy frames, set
2575 use_generic_dummy_frames, push_dummy_frame to
2576 generic_push_dummy_frame, pc_in_call_dummy to
2577 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2578 generic_save_dummy_frame_tos.
2580 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2582 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2583 against TOP when TOP was explictly set.
2584 (generic_push_dummy_frame): Set TOP to zero.
2586 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2588 * event-loop.c (start_event_loop): Rename variable 'result' to
2589 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2591 2002-09-30 Keith Seitz <keiths@redhat.com>
2593 * gdb-events.sh (selected_thread_changed): New event.
2594 * gdb-events.c: Regenerated.
2595 * gdb-events.h: Regenerated.
2597 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2599 * MAINTAINERS: Add self to Write After Approval list.
2601 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2603 * disasm.c: New file.
2604 * disasm.h: New file.
2605 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2606 (compare_lines): Ditto.
2607 (dump_insns): Ditto.
2608 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2610 (do_assembly_only): Ditto.
2611 (do_disassembly): Renamed to gdb_disassembly and moved to
2612 disasm.c. Sdded uiout argument.
2613 * Makefile.in: Add new files. Reorder SFILES list. Update
2614 dependencies. Include libgdb.a later in the insight executable.
2616 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2618 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2619 bfd/elf64-alpha-fbsd.c.
2621 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2623 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2626 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2628 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2630 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2632 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2633 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2634 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2635 (S_msg_sig_post_reply): Ditto.
2637 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2639 * sh-tdep.c (sh_use_struct_convention): Use definition according
2641 (sh_push_arguments): Store in register with correct endianess.
2642 (sh_default_store_return_value): Ditto.
2643 (sh_gdbarch_init): Set sizeof long double to 8.
2645 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2647 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2648 Fix some whitespace problems.
2650 2002-09-27 David Carlton <carlton@math.stanford.edu>
2652 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2653 (mcore-tdep.o): Ditto.
2654 (ns32k-tdep.o): Ditto.
2655 (ns32knbsd-tdep.o): Ditto.
2657 (vax-tdep.o): Ditto.
2658 * cris-tdep.c: #include "gdb_string.h"
2659 * mcore-tdep.c: Ditto.
2660 * ns32k-tdep.c: Ditto.
2661 * ns32knbsd-tdep.c: Ditto.
2663 * vax-tdep.c: Ditto.
2665 2002-09-27 David Carlton <carlton@math.stanford.edu>
2667 * config/djgpp/fnchange.lst: Add entries for
2668 gdb/testsuite/gdb.c++/m-static files.
2670 2002-09-27 Jim Wilson <wilson@redhat.com>
2672 * MAINTAINERS: Add myself to the Write After Approval list.
2674 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2676 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2679 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2681 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2684 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2686 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2687 (rs6000_struct_return_address): Delete variable.
2688 (rs6000_store_struct_return): Update.
2689 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2690 deprecated_extract_struct_value_address.
2691 (rs6000_frame_align): New function.
2692 (rs6000_gdbarch_init): Set frame_align.
2694 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2696 From Grace Sainsbury <graces@redhat.com>:
2697 * Makefile.in (gdbtk-main.o): New target.
2698 (gdb.o): New target.
2700 (main.o): Update dependencies.
2701 (gdb$(EXEEXT)): Add gdb.o.
2702 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2703 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2704 (SUBDIR_GDBTK_CLEAN): Set.
2705 (install-gdbtk): Install the insight binary.
2706 (uninstall-gdbtk): New target.
2707 (all-gdbtk, clean-gdbtk): New rule.
2708 * top.c (use_windows): Default to zero.
2709 * main.c: Include "main.h".
2711 (struct captured_main_args): Delete.
2712 (gdb_main): New function.
2716 2002-09-25 Andrew Cagney <cagney@redhat.com>
2718 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2719 (frame_map_regnum_to_name): New function.
2720 (frame_map_name_to_regnum): New function.
2721 * frame.h (frame_map_name_to_regnum): Declare.
2722 (frame_map_regnum_to_name): Declare.
2723 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2724 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2725 * parse.c: Do not include "builtin-regs.h".
2726 (target_map_name_to_register): Delete function.
2727 (write_dollar_variable): Use frame_map_name_to_regnum.
2728 * parser-defs.h (target_map_name_to_register): Delete declaration.
2729 * expprint.c: Include "frame.h".
2730 (print_subexp): Use frame_map_regnum_to_name.
2731 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2732 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2734 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2736 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2737 wasn't saved, and the next innermost frame is a dummy, return the
2738 dummy frame's link register.
2740 2002-09-24 Jim Blandy <jimb@redhat.com>
2742 Fix from Paul Breed:
2743 * main.c (captured_main): Add a `break' after the case for 'b'.
2745 2002-09-24 Keith Seitz <keiths@redhat.com>
2747 * varobj.c (c_type_of_child): Use get_target_type instead
2748 of TYPE_TARGET_TYPE.
2750 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2752 * source.c (get_current_or_default_source_symtab_and_line): Remove
2754 (set_default_source_symtab_and_line): New function. Attempts to
2755 determine a source file to list lines from if one is not currently
2757 (get_current_source_symtab_and_line): Initialize sal.pc and
2759 (set_current_source_symtab_and_line): Mark argument as const.
2760 * source.h: Update declarations and comments.
2761 * linespec.c (decode_line_1): Replace call to removed routine above.
2762 * stack.c (print_frame_info_base): Ditto.
2763 * cli/cli-cmds.c (edit_command): Ditto.
2764 (list_command): Ditto.
2766 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2768 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2769 sal.pc and sal.end fields.
2770 (get_current_or_default_source_symtab_and_line): Ditto.
2771 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2772 so we do not cause a new source symtab to be searched for (reverting an
2773 unintentional change from the 2002-09-20 patch).
2774 * scm-lang.c (scm_unpac): Ditto.
2776 2002-09-21 Andrew Cagney <cagney@redhat.com>
2778 * complaints.c (symfile_explanations): Remove new-line from
2779 ``isolated_message''.
2780 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2781 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2783 2002-09-20 Nick Clifton <nickc@redhat.com>
2785 * NEWS: Announce that V850EA ISA is no longer supported.
2786 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2788 2002-09-20 David Carlton <carlton@math.stanford.edu>
2790 * Makefile.in (c-lang.o): Correct dependencies.
2791 (utils.o): Gather dependencies.
2793 * c-lang.c: #include "gdb_string.h"
2795 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2797 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2798 * cli/cli-cmds.c (list_command): New function. Implements the new
2800 (_init_cli_cmds): Add new command definition.
2801 * gdb.1: Document edit command.
2802 * doc/gdb.texinfo: Document edit command.
2804 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2806 * source.c: Make global variables current_source_symtab and
2807 current_source_line static.
2808 (list_command): Moved to cli/cli-cmds.c.
2809 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2810 (get_first_line_listed): New accessor function.
2811 (get_lines_to_list): New accessor function.
2812 (get_current_source_symtab_and_line): New function. Retrieves the
2813 position in the source code that we consider current.
2814 (get_current_or_default_source_symtab_and_line): New function.
2815 Like the above but attempts to determine a default position if one
2816 is not currently defined.
2817 (set_current_source_symtab_and_line): New function. Sets the source
2818 code position considered current and returns the previously set one.
2819 (clear_current_source_symtab_and_line): Reset stored information about
2820 a current source line.
2821 (_initialize_source): Remove registration for the "list" command and
2823 * source.h: Add declarations for the new functions above.
2824 * symtab.h: Remove declarations for the global variables mentioned
2826 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2827 obtain current source line.
2828 * linespec.c (decode_line_1): Ditto.
2829 * macroscope.c (default_macro_scope): Ditto.
2830 * scm-lang.c (scm_unpac): Ditto.
2831 * stack.c (print_frame_info_base): Ditto.
2832 * symfile.c (clear_symtab_users): Ditto.
2833 * symtab.c (decode_line_spec): Ditto.
2834 * cli/cli-cmds.c (list_command): Moved here from source.c.
2835 (ambiguous_line_spec): Moved here from source.c.
2836 (_init_cli_cmds): Add definition for "list" and its alias.
2837 * Makefile.in: Update dependencies.
2839 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2841 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2842 with what gcc thinks is correct.
2844 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2846 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2847 multiple register push instruction.
2849 2002-09-19 Jim Blandy <jimb@redhat.com>
2851 Add support for distinct host and target character sets.
2852 * charset.c, charset.h: New files.
2853 * c-exp.y: #include "charset.h".
2854 (yylex): Convert character and string literals to the target
2855 character set, before returning them as the semantic value of the
2857 * c-lang.c: #include "charset.h".
2858 (c_emit_char): Use charset-specific methods to recognize
2859 characters with backslash escape forms, to decide which characters
2860 to print literally and which to print using numeric escape
2861 sequences, and to convert target characters to host characters
2863 * utils.c: #include "charset.h".
2864 (no_control_char_error): New function.
2865 (parse_escape): Use charset-specific methods to recognize
2866 backslash escapes, parse `control character' notation, and convert
2867 characters from the host character set to the target character set.
2868 * configure.in: Set the default host character set.
2869 Check where to find iconv, and what its argument types might be.
2870 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2871 * Makefile.in (SFILES): List charset.c.
2872 (COMMON_OBS): List charset.o.
2873 (charset.o): New rule.
2874 (charset_h): New header dependency variable.
2875 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2876 (LIBICONV): New variable, set by configure.
2877 (CLIBS): Include $(LIBICONV) here.
2878 * aclocal.m4, config.in, configure: Regenerated.
2880 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2882 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2885 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2887 * gdb_mbuild.sh: New file.
2889 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2891 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2893 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2895 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2896 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2897 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2898 valops.c, value.h: Revert previous change.
2900 2002-09-18 Michael Snyder <msnyder@redhat.com>
2902 Preliminary support for Objective-C:
2903 * defs.h (language_objc): New enum value.
2904 (puts_filtered_tabular): Declaration only, exported from utils.c.
2905 (skip_quoted): Delete, declared in completer.h.
2906 * c-exp.y: Include completer.h.
2909 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2910 New operator enum values.
2911 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2912 * language.c (binop_result_type): Handle language_objc case.
2913 (integral_type, character_type, string_type, boolean_type,
2914 structured_type, binop_type_check): Ditto.
2915 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2916 (struct objc_specific): Add to general_symbol_info.
2917 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2918 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2919 * parser-defs.h (struct objc_class_str): New struct type.
2920 (start_msglist, end_msglist, add_msglist): Declaration only,
2921 exported from objc-lang.c.
2922 * value.h (value_of_local, value_nsstring,
2923 call_function_by_hand_expecting_type): Exported from valops.c.
2924 * valops.c (find_function_addr): Export.
2925 (call_function_by_hand_expecting_type): New function.
2926 (value_of_local): New function.
2927 * symfile.c (init_filename_language_table): Add ".m" extension
2929 * utils.c (puts_filtered_tabular): New function.
2930 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2931 (set/show demangle): Extend help-string to refer to ObjC.
2932 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2933 * stabsread.c (symbol_reference_defined): Objective-C symbols
2934 may contain colons: make allowances when scanning stabs strings
2936 (objc_find_colon): New function.
2937 * printcmd.c (address_info): If language == objc then print
2938 "self" instead of "this".
2939 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2940 OP_NSSTRING, and OP_SELF.
2941 (prefixify_subexp): Ditto.
2942 * source.c (print_source_lines): Mention objc in comment.
2943 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2946 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2948 * complaints.h: Update copyright.
2949 (struct complaints): Declare.
2950 (struct complaint): Make `message' constant.
2951 (internal_complaint): Declare.
2952 (complaint): Declare.
2953 (complaint_root): Delete declaration.
2954 (symfile_complaints): Delete declaration.
2955 (struct complaints): Add opaque declaration.
2956 (clear_complaints): Add a complaints parameter.
2957 * complaints.c: Update copyright.
2958 (enum complaint_series): Define.
2959 (complaint_root): Delete.
2960 (struct complaints): Define.
2961 (complaint_sentinel, symfile_complaint_book): New variables.
2962 (symfile_explanations, symfile_complaints): New variables.
2964 (get_complaints): New function.
2965 (vcomplaint): New function.
2966 (complaint): New function.
2967 (internal_complaint): New function.
2968 (complain): Call vcomplain with symfile_complaint.
2969 (clear_complaints): Rewrite.
2970 (_initialize_complaints): Use add_setshow_command.
2971 * Makefile.in (complaints.o): Update dependencies.
2972 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2973 to call to clear_complaints.
2974 (new_symfile_objfile, reread_symbols): Ditto.
2975 (oldsyms_complaint): Delete.
2976 (empty_symtab_complaint, unknown_option_complaint): Delete.
2977 (free_named_symtabs): Use complaint instead of complain.
2979 2002-09-18 Michael Snyder <msnyder@redhat.com>
2981 Contributed by Apple Computer, Inc. Merged with current sources
2982 by Adam Fedor <fedor@doc.com> [cagney].
2984 * objc-lang.c: First clean-up round: comments, indentation.
2985 * objc-lang.h: Ditto.
2986 * objc-lang.y: Ditto.
2988 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2990 * maint.c (maintenance_internal_error): Print the parameter as the
2992 (maintenance_internal_warning): New function.
2993 (_initialize_maint_cmds): Add command `maint internal-warning'.
2995 * defs.h (internal_warning, internal_vwarning): Declare.
2996 * utils.c (struct internal_problem): Define.
2997 (internal_vproblem): New function.
2998 (internal_warning): New function.
2999 (internal_vwarning): New function.
3000 (internal_warning_problem, internal_error_problem): New variables.
3001 (internal_verror): Just call internal_vproblem.
3003 2002-09-18 Michael Snyder <msnyder@redhat.com>
3005 * objc-lang.c: New file, support for Objective-C.
3006 Preliminary check-in, not yet integrated into gdb.
3007 * objc-lang.h: New file.
3008 * objc-exp.y: New file.
3010 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3012 * infrun.c (signal_stop_update): Convert definition to ISO C.
3013 (signal_print_update): Ditto.
3014 (signal_pass_update): Ditto.
3015 * inflow.c (terminal_save_ours): Ditto.
3017 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3020 * config/djgpp/fnchange.lst: Handle name clashes between
3021 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3024 * i386-linux-tdep.h: Fix tipo.
3026 2002-09-18 Adam Fedor <fedor@gnu.org>
3028 * MAINTAINERS: Add myself to the Write After Approval list.
3030 2002-09-18 Jim Blandy <jimb@redhat.com>
3032 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3033 texthigh and textlow to reader-specific structs caused
3034 objfile_relocate to miss them. This is fixable, but the work that
3035 the change was supposed to prepare GDB for never got done anyway.
3037 2002-09-18 David Carlton <carlton@math.stanford.edu>
3039 * MAINTAINERS: Alphabetize Write After Approval list.
3041 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3044 * values.c (value_static_field): Call read_var_value.
3046 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3048 * valops.c (hand_function_call): Align the initial stack pointer
3049 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3050 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3052 * mips-tdep.c (mips_frame_align): New function.
3053 (mips_gdbarch_init): Set frame_align.
3054 * gdbarch.sh (FRAME_ALIGN): New method.
3055 * gdbarch.h, gdbarch.c: Re-generate.
3057 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3059 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3062 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3064 * NEWS: Mention that MIPS $fp behavior changed.
3065 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3066 reference to FP_REGNUM.
3067 (mipsnbsd_cannot_store_register): Ditto.
3068 * mips-linux-nat.c: Update copyright.
3069 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3070 (mips_linux_cannot_store_register): Ditto.
3071 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3072 * config/mips/tm-mips.h: Update copyright.
3073 (FP_REGNUM): Delete macro.
3074 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3075 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3076 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3077 (mips_r3041_reg_names, mips_r3051_reg_names)
3078 (mips_r3081_reg_names): Replace "fp" with "".
3081 2002-09-17 Theodore A. Roth <troth@verinet.com>
3083 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3084 generic_read_register_dummy() (PR gdb/703).
3085 (avr_push_return_address): #if 0 out unused vars.
3086 (avr_gdbarch_init): Enable use of avr_push_return_address().
3088 2002-09-17 Michael Snyder <msnyder@redhat.com>
3090 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3091 RTE will take care of it.
3093 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3095 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3096 invalid, return SP_REGNUM.
3098 2002-09-17 Michael Snyder <msnyder@redhat.com>
3100 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3101 point registers without sign extension.
3103 2002-09-17 Andrew Cagney <cagney@redhat.com>
3105 * blockframe.c (deprecated_read_register_dummy): Rename
3106 generic_read_register_dummy.
3107 * frame.c (frame_unwind_signed_register): New function.
3108 (frame_unwind_unsigned_register): New function.
3109 * frame.h (frame_unwind_signed_register): Declare.
3110 (frame_unwind_unsigned_register): Declare.
3111 (deprecated_read_register_dummy): Rename
3112 generic_read_register_dummy.
3114 * h8300-tdep.c (h8300_frame_chain): Update.
3115 (h8300_frame_saved_pc): Update.
3116 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3117 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3118 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3119 (s390_frame_chain): Update.
3120 * v850-tdep.c (v850_find_callers_reg): Update.
3121 (v850_frame_saved_pc): Update.
3122 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3123 (m32r_find_callers_reg): Update.
3124 (m32r_frame_saved_pc): Update.
3125 * sh-tdep.c (sh_find_callers_reg): Update.
3126 (sh64_get_saved_pr): Update.
3127 (sh_init_extra_frame_info): Update.
3128 (sh_init_extra_frame_info): Update.
3129 (sh64_init_extra_frame_info): Update.
3130 (sh64_init_extra_frame_info): Update.
3131 * mcore-tdep.c (mcore_find_callers_reg): Update.
3132 (mcore_frame_saved_pc): Update.
3133 (mcore_init_extra_frame_info): Update.
3134 * i386-tdep.c (i386_frame_saved_pc): Update.
3135 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3136 (ia64_init_extra_frame_info): Update.
3137 (ia64_init_extra_frame_info): Update.
3138 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3139 * cris-tdep.c (cris_init_extra_frame_info): Update.
3140 * avr-tdep.c (avr_frame_chain): Update.
3141 (avr_init_extra_frame_info): Update.
3142 (avr_frame_saved_pc): Update.
3143 * arm-tdep.c (arm_find_callers_reg): Update.
3144 (arm_init_extra_frame_info): Update.
3145 (arm_frame_saved_pc): Update.
3147 2002-09-17 Tom Tromey <tromey@redhat.com>
3149 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3152 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3154 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3155 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3157 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3160 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3162 * osfsolib.c: Remove file, replaced by solib-osf.c.
3163 * Makefile.in: Remove compilation rules for osfsolib.c.
3165 2002-09-16 David Carlton <carlton@math.stanford.edu>
3167 * cp-valprint.c (cp_print_class_method): Correct args to
3168 check_stub_method_group.
3170 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3172 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3173 `set architecture'. Unify naming convention of functions.
3174 (h8300_skip_prologue): Improve prologue analysis.
3175 (h8300_push_arguments): Rewritten to more closely match GCC's
3176 bizarre argument-passing behavior, along with the comment describing
3178 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3179 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3180 sim, remote-e7000.c, remote-hms.c and remote.c
3182 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3184 * i386-tdep.c (gdb_print_insn_i386): Removed.
3185 (i386_print_insn): New function.
3186 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3187 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3190 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3192 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3195 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3197 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3198 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3199 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3201 2002-09-13 Christopher Faylor <cgf@redhat.com>
3203 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3205 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3207 * gdbtypes.c (check_stub_method): Make static.
3208 (check_stub_method_group): New function.
3209 * gdbtypes.h: Update prototypes.
3210 * cp-support.c: New file.
3211 * cp-support.h: New file.
3213 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3214 (update_method_name_from_physname): New function.
3215 (read_member_functions): Correct method names for operators
3216 and v3 constructors/destructors. Separate v2 constructors and
3218 * Makefile.in (stabsread.o): Update dependencies.
3219 (SFILES): Add cp-support.c.
3220 (COMMON_OBS): Add cp-support.o.
3221 (cp_support_h, cp-support.o): Add.
3223 * cp-valprint.c (cp_print_class_method): Call
3224 check_stub_method_group instead of check_stub_method. Remove
3226 * p-valprint.c (pascal_object_print_class_method): Likewise.
3227 * valops.c (search_struct_method): Likewise.
3228 (find_method_list, value_struct_elt_for_reference): Likewise.
3230 2002-09-13 Andrew Cagney <cagney@redhat.com>
3232 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3233 * gdbarch.h, gdbarch.c: Regenerate.
3235 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3237 * frame.c (find_saved_register): Delete function.
3238 * frame.h (find_saved_register): Delete declaration.
3241 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3243 * mips-tdep.c (read_next_frame_reg): Re-hack using
3244 frame_register_unwind.
3246 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3248 * mips-tdep.c (mips_get_saved_register): Re-hack using
3249 frame_register_unwind.
3251 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3253 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3254 vector. Will be useful for Interix.
3255 * gdbarch.h, gdbarch.c: Regenerate.
3257 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3258 name of the malloc function by NAME_OF_MALLOC.
3260 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3262 * value.h (find_function_in_inferior): Add const keyword to
3263 one of the parameters. Allows us to invoke this function with
3265 * valops.c (find_function_in_inferior): Likewise.
3267 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3269 * exec.c (xfer_memory): Fix compilation warning with old versions
3271 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3273 2002-09-12 David Carlton <carlton@math.stanford.edu>
3275 * symtab.h: Run through gdb_indent.h.
3276 Add 2002 to Copyright year list.
3278 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3280 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3282 * MAINTAINERS: Add myself to write after approval list.
3284 2002-09-11 J. Brobecker <brobecker@gnat.com>
3286 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3288 2002-09-11 J. Brobecker <brobecker@gnat.com>
3290 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3293 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3295 * procfs.c (do_detach): Clear current signal, not just fault.
3296 Corrects problem with breakpoint trap signal leaking to detached
3299 2002-09-10 Michael Snyder <msnyder@redhat.com>
3301 * buildsym.c (finish_block): Protect against null pointer.
3303 2002-09-10 Andrew Cagney <cagney@redhat.com>
3305 * infcmd.c (default_print_registers_info): Send all output to
3306 ``file'' instead of ``gdb_stdout''.
3308 2002-09-10 Michael Snyder <msnyder@redhat.com>
3310 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3311 LONGEST, and use signed register read (addresses are sign-
3314 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3316 * event-loop.c (gdb_do_one_event): Make public.
3317 * event-loop.h (gdb_do_one_event): Declare.
3319 2002-09-10 Jeff Law <law@redhat.com>
3321 * infttrace.c (child_resume): Simplify and rework to avoid
3324 2002-09-09 Fred Fish <fnf@intrinsity.com>
3326 * printcmd.c (print_scalar_formatted): "len" is the number of
3327 target bytes, NOT the number of target bits.
3329 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3331 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3332 * top.c (init_main): Set rl_terminal_name.
3334 2002-09-08 Aidan Skinner <aidan@velvet.net>
3336 * ada-lang.c (ada_array_bound, ada_type_match,
3337 _initialize_ada_language): Fix K&R definitions.
3338 * ada-tasks.c (get_current_task): Fix K&R definitions.
3339 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3341 2002-09-07 Christopher Faylor <cgf@redhat.com>
3343 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3346 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3348 * i386-tdep.c (i386_register_virtual_type,
3349 i386_register_convertible, i386_register_convert_to_virtual,
3350 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3351 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3352 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3353 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3354 Don't set push_arguments twice.
3356 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3357 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3358 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3359 sigtramp_end to NULL.
3360 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3362 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3364 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3367 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3368 * gdbarch.h, gdbarch.c: Re-generate.
3369 * blockframe.c (find_pc_sect_partial_function): Convert to use
3370 SIGTRAMP_START_P predicate.
3372 2002-09-05 Michael Snyder <msnyder@redhat.com>
3374 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3375 generic_dummy_frame method and old method. Also distinguish
3376 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3377 (arm_extract_return_value): Use new regcache method.
3379 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3380 adjustment that doesn't conform to the ABI.
3381 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3382 saved regcache, not from current regcache.
3384 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3386 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3389 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3391 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3392 if arm_apcs_32 is false.
3394 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3396 GDB 5.3 branch created.
3398 2002-09-03 Theodore A. Roth <troth@verinet.com>
3400 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3401 generic_unwind_get_saved_register.
3403 2002-09-03 David Carlton <carlton@math.stanford.edu>
3405 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3406 argument (PR gdb/653). Update call to smash_to_method_type.
3407 (read_structure_scope): Update call to dwarf2_add_member_fn.
3409 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3411 * x86-64-linux-tdep.c: Include gdb_string.h
3412 * x86-64-linux-nat.c: Ditto.
3414 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3416 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3417 when YYDEBUG is set to 1.
3418 * c-exp.y: Likewise.
3419 * f-exp.y: Likewise.
3420 * jv-exp.y: Likewise.
3421 * m2-exp.y: Likewise.
3422 * p-exp.y: Likewise.
3424 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3426 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3428 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3429 solib_svr4_fetch_link_map_offsets to
3430 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3431 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3432 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3433 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3434 solib-svr4.o, and solib-legacy.o.
3435 * config/i386/tm-nbsd.h: Include solib.h.
3437 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3439 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3440 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3441 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3442 comment noting that this needs its own target configuration.
3443 * config/i386/nbsd.mt: New file.
3444 * config/i386/nbsdaout.mt: Remove.
3445 * config/i386/nbsdelf.mt: Ditto.
3446 * config/i386/tm-nbsdaout.h: Ditto.
3448 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3450 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3451 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3452 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3454 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3455 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3456 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3458 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3460 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3461 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3462 * i386-tdep.h (i386bsd_init_abi): New prototype.
3463 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3464 function declaration.
3465 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3466 for NetBSD-a.out or NetBSD-ELF.
3467 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3468 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3469 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3470 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3472 (i386nbsd_pc_in_sigtramp): New function.
3473 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3474 i386nbsd_pc_in_sigtramp.
3475 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3476 and i386nbsdelf_init_abi OS ABI handlers.
3477 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3478 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3480 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3482 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3483 registers if the target really has them.
3485 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3487 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3490 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3492 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3494 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3495 (alphanbsd_skip_sigtramp_frame): New functions.
3496 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3497 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3498 to alphanbsd_sigcontext_addr.
3500 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3502 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3504 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3505 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3506 nbsd_pc_in_sigtramp.
3507 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3508 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3509 * nbsd-tdep.c: Include gdb_string.h.
3510 (nbsd_pc_in_sigtramp): New function.
3511 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3512 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3513 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3514 ppcnbsd_pc_in_sigtramp.
3515 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3516 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3517 shnbsd_pc_in_sigtramp.
3518 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3519 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3520 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3522 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3524 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3525 watchpoints to NULL.
3526 (insert_breakpoints): set val field of watchpoints if NULL.
3529 2002-08-29 Jim Blandy <jimb@redhat.com>
3531 * symtab.c (lookup_symbol_aux): In the cases where we find a
3532 minimal symbol of an appropriate name and use its address to
3533 select a symtab to read and search, use `name' (as passed to us)
3534 as the demangled name when searching the symtab's global and
3535 static blocks, not the minsym's name.
3537 2002-08-29 Keith Seitz <keiths@redhat.com>
3539 * stack.c (print_frame_info_base): Always set current_source_symtab
3540 and current_source_line.
3542 2002-08-29 Donn Terry <donnte@microsoft.com>
3544 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3546 2002-08-28 Keith Seitz <keiths@redhat.com>
3548 * stack.c (select_frame): Add FIXME concerning selected-frame
3550 (select_frame_command): Send selected-frame-level-changed
3551 event notification, but only if the level actually changed.
3552 (up_silently_base): Add selected-frame-level-changed event
3554 (down_silently_base): Likewise.
3556 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3558 * Makefile.in: Update dependencies for all gdb/*.c files.
3560 2002-08-27 Tom Tromey <tromey@redhat.com>
3562 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3563 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3564 Update dependencies.
3565 * i387-tdep.c: Include gdb_string.h.
3566 * osabi.c: Likewise.
3567 * i386-linux-nat.c: Likewise.
3568 * lin-lwp.c: Likewise.
3569 * ax-gdb.c: Likewise.
3570 * signals/signals.c: Likewise.
3571 * jv-valprint.c: Likewise.
3572 * p-lang.c: Likewise.
3573 * c-valprint.c: Likewise.
3574 * cp-abi.c: Likewise.
3576 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3578 * cli/cli-script.h (copy_command_lines): Export.
3579 * breakpoint.c: Include cli/cli-script.h.
3580 * Makefile.in (breakpoint.o): Update dependencies.
3582 2002-08-26 Michael Snyder <msnyder@redhat.com>
3584 * breakpoint.c (insert_breakpoints): Protect all references
3585 to 'process_warning'. Shorten long lines.
3587 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3589 * cli/cli-script.c (copy_command_lines): New function.
3590 * defs.h (copy_command_lines): Export.
3591 * testsuite/gdb.base/commands.exp: New tests for commands
3592 attached to a temporary breakpoint, and for commands that
3593 delete the breakpoint they are attached to.
3595 2002-08-26 Michael Snyder <msnyder@redhat.com>
3597 * breakpoint.c (bpstat_stop_status): Instead of copying the
3598 pointer to the breakpoint commands struct, make a new copy
3599 of the struct and point to that.
3600 (bpstat_clear): Free the commands struct.
3601 (bpstat_clear_actions): Free the commands struct.
3602 (bpstat_do_actions): Free the command actions. Also execute
3603 the local cleanups, instead of deleting them.
3604 (delete_breakpoint): Leave the commands field of the bpstat
3605 chain alone -- it will be freed later.
3607 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3609 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3610 deleted in 2002-08-20 commit. This function is still used by
3613 2002-08-26 Keith Seitz <keiths@redhat.com>
3615 * gdb-events.sh: Add selected-frame-level-changed event.
3616 * gdb-events.c: Regenerated.
3617 * gdb-events.h: Regenerated.
3619 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3622 * inflow.c (terminal_save_ours): New function to save terminal
3624 * inferior.h (terminal_save_ours): Declare.
3625 * target.c (debug_to_terminal_save_ours): New function.
3626 (cleanup_target): Defaults to_terminal_save_ours.
3627 (update_current_target): Inherit to_terminal_save_ours.
3628 (setup_target_debug): Set to_terminal_save_ours.
3629 * target.h (target_terminal_save_ours): New to save terminal settings.
3630 (target_ops): New member to_terminal_save_ours.
3631 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3632 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3633 * inftarg.c (init_child_ops): Likewise.
3634 * m3-nat.c (init_m3_ops): Likewise.
3635 * procfs.c (init_procfs_ops): Likewise.
3636 * wince.c (init_child_ops): Likewise.
3637 * win32-nat.c (init_child_ops): Likewise.
3638 * sol-thread.c (init_sol_thread_ops): Likewise.
3640 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3642 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3643 use regcache_* functions.
3644 (i386_gdbarch_init): Set store_return_value instead of
3645 deprecated_store_return_value.
3647 * regcache.c (regcache_raw_write_signed,
3648 regcache_raw_write_unsigned): New functions.
3649 * regcache.h (regcache_raw_write_signed,
3650 regcache_raw_write_unsigned): New prototypes.
3652 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3654 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3655 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3656 source file dependencies. Cleanup corresponding generator rules.
3658 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3660 * regcache.h (register_offset_hack): Declare.
3661 (regcache_cooked_read_using_offset_hack): Declare.
3662 (regcache_cooked_write_using_offset_hack): Declare.
3664 * regcache.c (register_offset_hack): New function.
3665 (regcache_cooked_read_using_offset_hack): New function.
3666 (regcache_cooked_write_using_offset_hack): New function.
3667 (regcache_dump): Check that the registers, according to their
3668 offset, are packed hard against each other.
3669 (cooked_xfer_using_offset_hack): New function.
3671 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3673 * regcache.c (struct regcache_descr): Add field register_type.
3674 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3676 (init_regcache_descr): Initialize register_type. Pass the descr
3677 to init_legacy_regcache_descr. Use register_type instead of
3678 REGISTER_VIRTUAL_TYPE.
3679 (register_type): New function.
3680 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3681 * regcache.h (register_type): Declare.
3683 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3685 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3686 instead of deprecated_store_return_value. Fix fallout from
3687 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3689 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3691 * regcache.c (max_register_size): New function.
3692 (init_legacy_regcache_descr): Ensure that max_register_size is
3693 large enough for REGISTER_VIRTUAL_SIZE.
3694 * regcache.h (max_register_size): Declare.
3696 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3698 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3700 (e500_extract_return_value): Change type of valbuf pointer to
3703 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3705 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3708 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3709 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3710 long long) to prevent compiler warning on 64-bit systems.
3712 2002-08-23 Andrew Cagney <cagney@redhat.com>
3714 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3715 (DEPRECATED_STORE_RETURN_VALUE): New method.
3716 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3717 * gdbarch.h, gdbarch.c: Re-generate.
3719 * values.c (set_return_value): Pass current_regcache to
3721 * arch-utils.h (legacy_store_return_value): Declare.
3722 * arch-utils.c (legacy_store_return_value): New function.
3723 (legacy_extract_return_value): Update parameters.
3725 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3727 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3728 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3729 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3730 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3731 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3732 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3733 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3734 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3735 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3736 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3738 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3739 * i386-tdep.c (i386_extract_return_value): Update.
3740 * arch-utils.c (legacy_extract_return_value): Update.
3741 * frv-tdep.c (frv_gdbarch_init): Update.
3742 * cris-tdep.c (cris_gdbarch_init): Update.
3743 * d10v-tdep.c (d10v_gdbarch_init): Update.
3744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3745 * m68k-tdep.c (m68k_gdbarch_init): Update.
3746 * mcore-tdep.c (mcore_gdbarch_init): Update.
3747 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3748 * s390-tdep.c (s390_gdbarch_init): Update.
3749 * sparc-tdep.c (sparc_gdbarch_init): Update.
3750 * sh-tdep.c (sh_gdbarch_init): Update.
3751 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3752 * v850-tdep.c (v850_gdbarch_init): Update.
3753 * avr-tdep.c (avr_gdbarch_init): Update.
3754 * ia64-tdep.c (ia64_gdbarch_init): Update.
3755 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3756 * vax-tdep.c (vax_gdbarch_init): Update.
3757 * alpha-tdep.c (alpha_gdbarch_init): Update.
3758 * arm-tdep.c (arm_gdbarch_init): Update.
3759 * mips-tdep.c (mips_gdbarch_init): Update.
3760 * i386-tdep.c (i386_gdbarch_init): Update.
3762 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3764 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3765 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3767 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3769 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3772 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3774 * infrun.c (handle_inferior_event): Move a comment outside of a
3775 function call, in order to avoid indent reformatting this part
3776 of the code in an unreadable way.
3778 2002-08-23 Grace Sainsbury <graces@redhat.com>
3780 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3781 when breakpoints fail. Move general breakpoint error messages to
3783 * breakpoint.c (insert_breakpoints): Change warnings when
3784 breakpoints are nto inserted to specify the type. Remove call to
3785 memory_error when hardware breakpoints can't be inserted. Remove
3786 multiple calls to warning so all messages are sent to the user at
3788 (delete_breakpoints): Make insert error messsages more explicit.
3790 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3792 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3793 gdbserver/ChangeLog.
3795 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3797 * i386-tdep.c: Include "objfiles.h".
3798 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3799 skip_trampoline_code.
3800 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3801 (CPLUS_MARKER): Define to '.'.
3803 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3805 (linux_corefile_thread_callback): Increase args->num_notes.
3806 (linux_make_note_section): Initialize thread_args.num_notes, and
3807 use it to determine whether notes for any threads were created.
3809 2002-08-23 Donn Terry <donnte@microsoft.com>
3811 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3812 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3814 (write_with_trace): Conditionalize out the switch branch handling
3815 PCSHOLD if the corresponding macro is not defined. Likewise for
3816 PRSABORT and PRSTOP.
3817 This change will be needed by the Interix port.
3819 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3821 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3822 write_register wherever possible instead of manipulating the
3823 register bytes directly.
3824 Assign VALUE_CONTENTS to a variable and use that.
3825 The GPR numbers are now dependent on the architecture.
3827 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3829 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3831 (skip_prologue): Add support for BookE/e500 instructions.
3832 (e500_extract_return_value): New function.
3833 (frame_get_saved_regs): Add support for saving ev registers and
3835 (e500_store_return_value): New function.
3836 (rs6000_gdbarch_init): Move up default intializations of
3837 deprecated_extract_return_value and store_return_value. Overwrite
3838 init of store_return_value with e500 specific version.
3839 Set extract_return_value for e500.
3841 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3843 * blockframe.c (generic_call_dummy_register_unwind): Use
3844 regcache_cooked_read to catch cases in which the variable is
3845 stored in a pseudo register.
3847 2002-08-22 Andrew Cagney <cagney@redhat.com>
3849 * NEWS: Mention that the i960 has been made obsolete.
3850 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3852 (remote-nrom.o): Obsolete target.
3853 (remote-nindy.o, i960-tdep.o): Ditto.
3854 * remote-nrom.c: Make file obsolete.
3855 * remote-nindy.c, remote-vx960.c: Ditto.
3856 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3857 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3858 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3859 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3860 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3861 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3862 i960-*-vxworks* obsolete.
3863 * MAINTAINERS: Note that the i960 is obsolete.
3865 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3867 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3868 detach to allow reinitialization.
3870 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3872 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3875 2002-08-22 Jim Blandy <jimb@redhat.com>
3877 * coffread.c (coff_symfile_read): Don't try to read the line
3878 number table from disk if the image file doesn't have a symbol
3879 table; we'll never actually look at the info anyway, and Windows
3880 ships DLL's with bogus file offsets for the line number data.
3882 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3884 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3887 2002-08-21 Michael Snyder <msnyder@redhat.com>
3889 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3890 (MSYMBOL_SIZE): Replace macro with function.
3891 (DEFAULT_MIPS_TYPE): Delete unused macro.
3892 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3893 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3895 2002-08-21 Jim Blandy <jimb@redhat.com>
3897 * valops.c (value_cast): Simplify and correct logic for doing a
3898 static cast from a pointer to a base class to a pointer to a
3901 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3903 * infcmd.c (default_print_registers_info): Replace
3905 (registers_info): Use gdbarch_print_registers_info instead of
3907 * inferior.h (default_print_registers_info): Replace
3909 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3910 (DO_REGISTERS_INFO): Change to a predicate function.
3911 * gdbarch.h, gdbarch.c: Regenerate.
3913 2002-08-21 Keith Seitz <keiths@redhat.com>
3915 * gdb-events.sh: Add target-changed event.
3916 * gdb-events.c: Regenerated.
3917 * gdb-events.c: Regenerated.
3918 * valops.c (value_assign): Add target-changed event notification
3919 to inlval_register, lval_memory, and lval_reg_frame_relative.
3921 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3923 * NEWS: Add an entry regarding the improvement of the next/step
3924 operation on Alpha Tru64 multi-processor machines.
3926 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3928 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3930 * Makefile.in: Update all _h macro definitions.
3931 * Makefile.in (install-gdbtk): Move to install section.
3932 (rdi-share/libangsd.a): Move to end of file.
3934 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3936 * frame.c (frame_register_unwind): When a register, set addrp to
3937 the register's byte.
3939 2002-08-20 Michael Snyder <msnyder@redhat.com>
3941 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3942 used locally, so move them from the target machine header to here.
3943 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3944 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3946 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3948 2002-08-20 Andrew Cagney <cagney@redhat.com>
3950 * NEWS: Mention that the Apollo line was made obsolete.
3951 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3952 m68*-hp-hpux* obsolete.
3953 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3954 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3955 * buildsym.c (make_blockvector): Make static.
3956 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3957 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3958 (ALLDEPFILES): Remove dstread.c.
3959 (dstread.o): Obsolete make rule.
3960 * dstread.c: Makefile obsolete.
3962 * config/m68k/hp300hpux.mt: Ditto.
3963 * config/m68k/hp300hpux.mh: Ditto.
3964 * config/m68k/hp300bsd.mt: Ditto.
3965 * config/m68k/hp300bsd.mh: Ditto.
3966 * config/m68k/apollo68b.mt: Ditto.
3967 * config/m68k/apollo68v.mh: Ditto.
3968 * config/m68k/apollo68b.mh: Ditto.
3970 2002-08-20 Michael Snyder <msnyder@redhat.com>
3972 * mips-tdep.c (mips_in_return_stub): Make static.
3973 (mips_gdbarch_init): Set in_solib_return_trampoline.
3974 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3976 2002-08-20 Michael Snyder <msnyder@redhat.com>
3978 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3979 * gdbarch.c, gdbarch.h: Regenerate.
3980 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3982 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3984 2002-08-20 Michael Snyder <msnyder@redhat.com>
3986 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3987 (mips_gdbarch_init): Set skip_trampoline_code,
3988 in_solib_call_trampoline.
3989 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3990 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3992 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3994 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3996 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3997 vector type for ev registers.
3998 (e500_pseudo_register_read): New function.
3999 (e500_pseudo_register_write): New function.
4000 (e500_dwarf2_reg_to_regnum): New function.
4001 (PPC_UISA_NOFP_SPRS): New macro.
4002 (PPC_EV_REGS): New macro.
4003 (PPC_GPRS_PSEUDO_REGS): New macro.
4004 (registers_e500): New register set for e500.
4005 (variants): Add e500 variant.
4006 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4007 before setting architectural dependent variations. Initialize ev
4008 registers numbers. Add case for e500 architecture. Set the
4009 number of pseudo registers.
4011 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4013 * rs6000-tdep.c: Clean up comments.
4015 2002-08-20 Andrew Cagney <cagney@redhat.com>
4017 * h8300-tdep.c: Re-indent file.
4019 2002-08-20 Jim Blandy <jimb@redhat.com>
4021 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4024 2002-08-20 Keith Seitz <keiths@redhat.com>
4026 * breakpoints.c (watch_command_1): Use internal breakpoint
4027 when setting a watchpoint_scope breakpoint.
4029 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4031 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4032 (build_builtin_type_vec64i): Ditto.
4033 (build_builtin_type_vec128): Ditto.
4034 (build_builtin_type_vec128i): Ditto.
4036 2002-08-19 Michael Snyder <msnyder@redhat.com>
4038 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4039 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4040 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4041 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4042 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4043 CALL_DUMMY_ADDRESS): Delete.
4044 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4045 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4046 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4047 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4048 push_return_address.
4049 (mips_register_raw_size, mips_eabi_use_struct_convention,
4050 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4051 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4052 mips_init_extra_frame_info, mips_eabi_push_arguments,
4053 mips_n32n64_push_arguments, mips_push_return_address,
4054 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4055 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4057 2002-08-19 Michael Snyder <msnyder@redhat.com>
4059 * mips-tdep.c (mips_frame_num_args): New function.
4060 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4061 frame_saved_pc, frame_args_address, frame_locals_address,
4062 frame_num_args, and frame_args_skip.
4063 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4064 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4065 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4066 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4068 2002-08-20 Michael Snyder <msnyder@redhat.com>
4070 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4071 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4072 * mips-tdep.c (mips_store_struct_return): New function.
4073 (mips_extract_struct_value_address): New function.
4074 (mips_gdbarch_init): Set store_struct_return and
4075 extract_struct_value_address.
4077 2002-08-20 David Carlton <carlton@math.stanford.edu>
4079 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4080 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4081 (read_file_scope): Check that line_header is nonzero before
4082 decoding macro information.
4084 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4086 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4087 flag the general-purpose registers as floating-point on targets
4088 that don't support the floating-point registers.
4090 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4092 * rs6000-tdep.c (altivec_register_p): Delete.
4093 (rs6000_do_altivec_registers): Delete.
4094 (rs6000_altivec_registers_info): Delete.
4095 (rs6000_do_registers_info): Delete.
4096 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4097 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4099 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4101 * infcmd.c (do_registers_info): Print vector registers in hex
4103 (print_vector_info): Check that printing registers
4105 (print_float_info): Ditto.
4107 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4109 * mips-tdep.c (mips_gdbarch_init): Update.
4110 (mips_o32_extract_return_value): Rewrite.
4111 (mips_o32_store_return_value): Rewrite.
4112 (mips_o32_xfer_return_value): New function.
4113 (mips_xfer_register): Tweak debug print message. Allow for
4114 buf_offset when dumping the value transfered.
4116 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4118 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4119 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4120 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4121 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4122 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4124 2002-08-14 Michael Snyder <msnyder@redhat.com>
4126 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4128 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4130 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4132 (P): New macro to define a register as a pseudo register.
4133 (R, R4, R8, R16, FR32, R64, R0): Updated.
4134 (struct variant): Add new fields for number of pseudo registers
4135 and number of total registers.
4136 (tot_num_registers): New macro replacing....
4137 (num_registers): ...deleted macro.
4138 (num_registers): New function.
4139 (num_pseudo_registers): New function.
4140 (variants): Update all variants to intialize new fields correctly.
4141 Postpone initialization of number of pseudo regs and real regs.
4142 (init_variants): New function.
4143 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4146 2002-08-19 David Carlton <carlton@math.stanford.edu>
4148 * valops.c (search_struct_field): Change error message to treat
4149 return value of 0 from value_static_field as meaning that field is
4151 (value_struct_elt_for_reference): Ditto.
4152 * values.c (value_static_field): Treat an unresolved location the
4153 same as a nonexistent symbol. Fix PR gdb/635.
4154 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4155 enclosed. Fix PR gdb/574.
4156 * MAINTAINERS: Add self to Write After Approval list.
4158 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4160 * mips-tdep.c (mips_xfer_register): New function.
4161 (mips_n32n64_extract_return_value): Rewrite.
4162 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4163 instead of deprecated_extract_return_value.
4165 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4167 * rs6000-tdep.c (TDEP): Delete macro.
4168 (branch_dest): Replace use of TDEP macro with its body.
4169 (rs6000_pop_frame): Ditto.
4170 (rs6000_push_arguments): Ditto.
4171 (rs6000_skip_trampoline_code): Ditto.
4172 (rs6000_frame_saved_pc): Ditto.
4173 (rs6000_frame_chain): Ditto.
4174 (rs6000_register_name): Ditto.
4175 (rs6000_register_byte): Ditto.
4176 (rs6000_register_raw_size): Ditto.
4177 (rs6000_register_virtual_type): Ditto.
4178 (rs6000_register_convertible): Ditto.
4179 (rs6000_convert_from_func_ptr_addr): Ditto.
4181 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4183 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4185 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4186 MIPS_LINUX_JB_ELEMENT_SIZE.
4187 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4188 for MAX_REGISTER_RAW_SIZE arrays.
4189 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4190 MIPS_LINUX_JB_ELEMENT_SIZE.
4192 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4194 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4196 2002-08-19 Aidan Skinner <aidan@velvet.net>
4198 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4199 ada-valprint.c ada-tasks.c.
4200 (YYFILES): Add ada-exp.y.
4201 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4202 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4203 (ada-exp.tab.o): New target.
4205 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4207 * regcache.c (regcache_xfer_part): New function.
4208 (regcache_raw_read_part): New function.
4209 (regcache_raw_write_part): New function.
4210 (regcache_cooked_read_part): New function.
4211 (regcache_cooked_write_part): New function.
4212 * regcache.h (regcache_raw_read_part): Declare.
4213 (regcache_raw_write_part): Declare.
4214 (regcache_cooked_read_part): Declare.
4215 (regcache_cooked_write_part): Declare.
4217 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4219 * remote.c (remote_open_1): Add async_p.
4220 (remote_async_open_1): Delete.
4221 (open_remote_target): Delete.
4222 (remote_open, extended_remote_open): Update calls to remote_open_1.
4223 (remote_async_open, extended_remote_async_open): Call
4224 remote_open_1 instead of remote_async_open_1.
4226 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4228 * blockframe.c: Fix a few coding standard violations.
4230 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4232 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4234 * config/i386/tm-i386sco5.h: ... here. File removed.
4235 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4237 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4238 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4239 (TM_FILE): Set to tm-i386.h.
4240 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4241 * config/i386/tm-i386v.h: Remove file.
4242 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4243 instead of "i386/tm-i386v.h".
4244 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4245 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4247 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4248 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4251 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4253 * config/i386/nm-i386v.h: Add protection against
4255 (i386_register_u_addr): Remove prototype.
4256 (register_u_addr): New prototype.
4257 (REGISTER_U_ADDR): Redefine accordingly.
4258 * i386v-nat.c: Improve several comments.
4259 (i386_register_u_addr): Change signature and rename to
4260 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4263 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4265 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4266 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4267 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4268 deprecated_extract_return_value.
4269 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4270 rename mips_o32o64_push_arguments.
4271 (mips_gdbarch_init): Update.
4272 (mips_extract_return_value): Delete.
4273 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4274 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4275 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4276 (mips_n32n64_extract_return_value): Clone
4277 mips_extract_return_value.
4278 (mips_store_return_value): Delete.
4279 (mips_o32_store_return_value): Clone mips_store_return_value.
4280 (mips_o64_store_return_value): Clone mips_store_return_value.
4281 (mips_eabi_store_return_value): Clone mips_store_return_value.
4282 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4284 2002-08-18 Aidan Skinner <aidan@velvet.net>
4286 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4287 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4289 2002-08-18 Aidan Skinner <aidan@velvet.net>
4291 * ada-lang.c: Run through gdb_indent.sh.
4292 * ada-lang.h: Run through gdb_indent.sh.
4293 * ada-tasks.c: Run through gdb_indent.sh.
4294 * ada-typeprint.c: Run through gdb_indent.sh.
4295 * ada-valprint.c: Run through gdb_indent.sh.
4297 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4299 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4302 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4304 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4306 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4307 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4309 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4310 write_register_gen instead of write_register_bytes.
4312 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4313 i[3456]-*-osf1mk* configurations have been made obsolete.
4314 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4315 i[3456]86-*-osf1mk* hosts obsolete.
4316 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4318 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4319 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4320 config/i386/i386m3.mt, config/i386/nm-m3.h,
4321 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4322 config/i386/i386mk.mh, config/i386/i386mk.mt,
4323 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4325 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4326 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4327 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4329 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4331 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4332 (hppa_value_returned_from_stack): Declare.
4333 (hppa_extract_return_value): Declare.
4334 * config/pa/hppa.mt: New file.
4335 * configure.tgt: Recognize hppa*-*-*.
4336 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4338 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4340 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4343 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4345 * top.c (gdb_rl_operate_and_get_next): Make sure
4346 operate-and-get-next functions correctly even when the history
4347 list is completely filled.
4349 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4351 * MAINTAINERS (Target Instruction Set Architectures): Rename
4352 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4353 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4354 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4355 already listed under Host/Native.
4357 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4358 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4361 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4363 * config/ia64/ia64.mt: New file.
4364 * config/alpha/alpha.mt: New file.
4365 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4366 ia64-linux-gnu. Mention that ia64-elf is broken.
4367 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4369 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4371 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4372 generic_func_frame_valid instead of func_frame_valid.
4374 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4376 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4377 procfs appears to be broken when debugging on multi-processor
4378 machines. So enable software single stepping in order to avoid
4379 using the procfs interface to do next/step operations, using
4380 internal breakpoints instead.
4382 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4383 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4384 make this pc address equal to the value it would have if the
4385 system stepping capability was used. Also set a new flag used
4386 to ensure that we don't readjust the PC one more time later.
4388 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4389 address by DECR_PC_AFTER_BREAK when software single step is
4390 in use for this architecture, as this has already been taken
4391 care of in handle_inferior_event().
4393 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4395 * infrun.c (handle_inferior_event): Minor reformatting, to make
4396 a rather long condition expression easier to read.
4398 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4400 * Makefile.in (gdbtk.o): Move to end of file.
4401 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4402 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4403 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4404 (gdbtk-wrapper.o, gdbres.o): Ditto.
4406 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4408 * Makefile.in (copying.o): Separate out compile rule.
4409 (hpux-thread.o, procfs.o, signals.o): Ditto.
4410 (v850ice.o, z8k-tdep.o): Ditto.
4411 (tui-file.o): Move to TUI section.
4412 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4413 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4415 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4417 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4418 skip_trampoline_code, for better namespace-proofing.
4420 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4422 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4424 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4426 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4428 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4429 signal, check whether we hit a breakpoint before checking for a
4430 single step breakpoint. Otherwise, GDB fails to notice that a
4431 breakpoint has been hit when stepping onto a breakpoint.
4433 2002-08-16 Keith Seitz <keiths@redhat.com>
4435 * gdb-events.sh (clear_gdb_event_hooks): New function.
4436 * gdb-events.c: Regenerate.
4437 * gdb-events.h: Regenerate.
4439 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4441 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4442 not_a_sw_breakpoint.
4443 * breakpoint.h (bpstat_stop_status): Add parameter names.
4445 2002-08-16 Grace Sainsbury <graces@redhat.com>
4447 * remote.c (remote_insert_hw_breakpoint)
4448 (remote_remove_hw_breakpoint): Fix calculation of length field
4451 2002-08-15 Michael Snyder <msnyder@redhat.com>
4453 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4454 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4455 (supply_fpregset): Ditto.
4457 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4458 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4459 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4460 (TARGET_READ_SP): Delete.
4461 (DO_REGISTERS_INFO): Delete.
4462 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4464 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4465 from macros to functions.
4467 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4468 (mips_register_convertible, mips_register_convert_to_virtual,
4469 mips_register_convert_to_raw): Make static.
4470 (mips_read_sp): New function.
4471 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4472 (mips_do_registers_info): Make static.
4473 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4474 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4475 (mips_register_convert_from_type, mips_register_convert_to_type):
4477 (mips_gdbarch_init): Set up function_start_offset,
4478 register_virtual_size, pc_in_sigtramp.
4480 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4482 * infcmd.c (vector_info): New function.
4483 (_initialize_infcmd): Add command "info vector".
4484 (print_vector_info): New function.
4486 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4487 * gdbarch.h, gdbarch.c: Regenerate.
4489 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4491 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4492 ``print_all''. Only print vector registers when ``print_all''.
4494 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4496 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4497 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4499 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4500 Add `args' parameter.
4501 * gdbarch.h, gdbarch.c: Regenerate.
4503 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4505 * infcmd.c (float_info): Call print_float_info.
4506 (print_float_info): New function. By default, print the
4507 floating-point registers.
4509 * arch-utils.h (default_print_float_info): Delete declaration.
4510 * arch-utils.c (default_print_float_info): Delete function.
4512 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4514 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4517 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4520 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4521 * configure.host: Make i[3456]86-*-aix host obsolete.
4522 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4523 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4524 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4525 config/i386/xm-i386aix.h: Make files obsolete.
4526 * i386aix-nat.c: Make file obsolete.
4527 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4528 (i386aix-nat.o): Make target obsolete.
4530 * config/i386/nm-gnu.h: Removed.
4531 * config/i386/nm-i386gnu.h: New file.
4532 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4533 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4535 * config/i386/tm-i386gnu.h: ... here. Removed.
4536 * config/i386/xm-i386gnu.h: Removed.
4537 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4538 (NAT_FILE): Set to nm-i386gnu.h.
4539 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4540 * i386-tdep.c: New file.
4541 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4542 (i386gnu-tdep.o): Specify dependencies.
4544 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4546 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4547 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4548 Adjust a few comments to reflect reality a bit closer.
4549 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4550 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4551 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4552 target_insert_watchpoint, target_remove_watchpoint):
4554 * config/i386/nm-i386sco5.h: ... here.
4555 (kernel_u_size): Add prototype. Improve a few comments and add
4556 protection against multiple inclusion.
4558 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4561 * uw-thread.c (SP_ARG0): Define if not already defined.
4562 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4564 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4566 * config/i386/tm-i386.h: Don't include "regcache.h".
4568 * i387-tdep.h (i387_print_float_info): New prototype.
4569 * i387-tdep.c (print_i387_value, print_i387_ext,
4570 print_i387_status_word, print_i387_control_word): Add `struct
4571 ui_file *' argument and use it for output.
4572 (i387_print_float_info): Renamed from i387_float_info. Add
4573 `struct gdbarch *' and `struct ui_file *' arguments and use the
4575 * i386-tdep.c: Include "i387-tdep.h".
4576 (i386_gdbarch_init): Set print_float_info.
4577 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4578 (FLOAT_INFO): Remove define.
4580 2002-08-13 Michael Snyder <msnyder@redhat.com>
4582 * mips-tdep.c (mips_push_arguments): Rename to
4583 mips_eabi_push_arguments, and tune for EABI.
4584 (MIPS_REGS_HAVE_HOME_P): Delete.
4585 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4586 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4587 Delete references to mips_regs_have_home_p.
4589 2002-08-14 Keith Seitz <keiths@redhat.com>
4591 * Makefile.in (install-gdbtk): Create insight plugin directory.
4592 Install plugins.tcl file.
4594 2002-08-14 Keith Seitz <keiths@redhat.com>
4596 * configure.in: Move SUBDIRS to near top of the file so that
4597 --enable options may add things to it.
4598 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4599 * configure: Regenerate.
4601 2002-08-13 Michael Snyder <msnyder@redhat.com>
4603 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4604 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4605 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4607 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4609 * vax-tdep.c (vax_get_saved_register): Delete function.
4610 (vax_gdbarch_init): Update.
4611 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4612 (ns32k_gdbarch_init): Update.
4613 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4614 (alpha_gdbarch_init): Update.
4616 2002-08-13 Andrew Cagney <cagney@redhat.com>
4618 * regcache.c (init_regcache_descr): Overallocate the
4619 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4620 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4622 (set_register_cached): Add range checking assertions. Use
4625 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4627 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4628 numbers for MMX registers.
4630 2002-08-13 Andrew Cagney <cagney@redhat.com>
4632 * i386-tdep.c (i386_gdbarch_init): Use
4633 generic_unwind_get_saved_register.
4635 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4637 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4638 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4640 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4641 Delete. Add comment regarding this now-deleted target method.
4643 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4645 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4646 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4647 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4648 real PC and the page number (if it's within the memory bank window).
4649 (m68hc11_pseudo_register_write): Likewise when saving.
4650 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4651 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4652 (m68hc11_register_raw_size): And use 32-bit for it.
4653 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4654 16K memory bank is used by the prog; also use the virtual pc.
4656 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4658 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4659 (m68hc11_gdbarch_init): Install it in gdbarch.
4660 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4661 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4662 (MSYMBOL_SIZE): New for documentation.
4663 (insn_return_kind): Enum to specify how a function returns.
4664 (frame_extra_info): Cleanup and record the return mode.
4665 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4666 register in address computation.
4667 (m68hc11_get_return_insn): New to obtain the return instruction used
4669 (m68hc11_frame_init_saved_regs): Take into account the return
4670 instruction used by the function for far and interrupt functions.
4671 (m68hc11_init_extra_frame_info): Take into account page register.
4672 (m68hc11_frame_args_address): Adjust according to the return mode.
4673 (show_regs): Print page register only when it's used.
4675 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4677 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4678 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4679 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4681 (m68hc11_register_raw_size): Likewise.
4683 2002-08-13 Andrew Cagney <cagney@redhat.com>
4685 * i386-tdep.c (i386_register_name): Handle mmx registers.
4686 (mmx_regnum_p): New function.
4687 (i386_mmx_names): New array.
4688 (mmx_num_regs): New variable.
4689 (i386_pseudo_register_read): New function.
4690 (i386_pseudo_register_write): New function.
4691 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4693 * regcache.c (regcache_raw_read_unsigned): New function.
4694 (regcache_raw_read_signed): New function.
4695 * regcache.h (regcache_raw_read_unsigned): Declare.
4696 (regcache_raw_read_signed): Declare.
4698 2002-08-13 Andrew Cagney <cagney@redhat.com>
4700 * regcache.c (regcache_raw_read_as_address): Delete function.
4701 (regcache_cooked_read_signed): New function.
4702 (regcache_cooked_read_unsigned): New function.
4703 * regcache.h (regcache_cooked_read_signed): Declare.
4704 (regcache_cooked_read_unsigned): Declare.
4705 (regcache_raw_read_as_address): Delete declaration.
4707 * blockframe.c (generic_read_register_dummy): Use
4708 regcache_cooked_read_unsigned.
4709 * i386-tdep.c (i386_extract_struct_value_address): Use
4710 regcache_cooked_read_unsigned.
4712 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4714 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4715 double sizes according to ELF ABI flags.
4716 (gdbarch_tdep): Record elf_flags.
4718 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4720 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4721 (m6812_prolog): They can appear in 68HC12 function prologue.
4722 (m68hc11_frame_chain): Cleanup.
4724 2002-08-12 Andrew Cagney <cagney@redhat.com>
4726 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4728 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4729 (i386_linux_register_raw_size): Delete function.
4730 (i386_linux_init_abi): Update.
4731 * i386-tdep.c (i386_register_raw_size): Delete function.
4732 (i386_register_byte): Delete function.
4733 (i386_gdbarch_init): Update.
4734 (i386_register_size): Delete array.
4735 (i386_register_offset): Delete array.
4737 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4738 (REGISTER_RAW_SIZE): Delete macro.
4739 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4740 (REGISTER_BYTE): Delete macro.
4742 2002-08-11 Aidan Skinner <aidan@velvet.net>
4744 * ada-lang.c (ada_lookup_partial_symbol)
4745 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4746 prototype names so that grep ^func works properly.
4748 * ada-lang.c (ada_array_element_type)
4749 (ada_lookup_partial_symbol): Fix typos in parameter list.
4751 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4752 Fix prototype names so that grep ^func works properly.
4754 2002-08-10 Andrew Cagney <cagney@redhat.com>
4755 Elena Zannoni <ezannoni@redhat.com>
4756 Martin M. Hunt <hunt@redhat.com>
4758 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4759 (build_builtin_type_vec128i): Set the vector bit.
4760 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4761 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4762 (build_builtin_type_vec64): New function.
4763 (build_builtin_type_vec64i): New function.
4764 (build_gdbtypes): Initialize builtin_type_vec64 and
4765 builtin_type_vec64i.
4767 2002-08-09 Andrew Cagney <cagney@redhat.com>
4769 * regcache.c (regcache_dump): Compare the register offset
4771 * arch-utils.c (generic_register_byte): New function.
4772 * arch-utils.h (generic_register_byte): Declare.
4773 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4774 * gdbarch.h, gdbarch.c: Regenerate.
4776 2002-08-09 Andrew Cagney <cagney@redhat.com>
4778 * regcache.c: Include "gdbcmd.h"
4779 (_initialize_regcache): Add commands "maintenance print
4780 registers", "maintenance print raw-registers" and "maintenance
4781 print cooked-registers".
4782 (enum regcache_dump_what): Define.
4783 (dump_endian_bytes): New function.
4784 (regcache_dump): New function.
4785 (regcache_print): New function.
4786 (maintenance_print_registers): New function.
4787 (maintenance_print_raw_registers): New function.
4788 (maintenance_print_cooked_registers): New function.
4789 * Makefile.in (regcache.o): Update dependencies.
4791 2002-08-09 Michael Snyder <msnyder@redhat.com>
4793 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4794 (mips_push_arguments): Correct some comments. Use paddr_nz
4795 for printing addresses in debug output. Replace static
4796 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4797 (mips_n32n64_push_arguments): New function, cloned from
4798 mips_push_arguments and tuned for the n32/n64 ABI.
4799 (mips_push_register): Buffer needs dynamic allocation.
4800 (mips_print_register): Ditto.
4801 (do_gp_register_row): Ditto.
4802 (mips_store_return_value): Ditto.
4803 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4805 2002-08-09 Don Howard <dhoward@redhat.com>
4807 * memattr.c (mem_info_command): Print special case of upper bound
4808 as max CORE_ADDR + 1.
4810 2002-08-08 Michael Snyder <msnyder@redhat.com>
4812 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4813 returns structs by ref if they're too big to fit in two registers.
4815 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4817 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4819 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4820 mips_find_saved_regs().
4821 (mips_pop_frame): Likewise.
4823 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4825 * blockframe.c (frame_saved_regs_register_unwind): Revise
4826 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4829 2002-08-09 Grace Sainsbury <graces@redhat.com>
4831 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4832 T-packets; the 'a' is not taken as a register number.
4833 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4834 (remote_stopped_data_address): New functions; add to target
4836 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4837 prototypes to match other implementations of this
4838 function. replace integer argument with pointer -- the length
4839 field in the Z-packet is the length of what is pointed to or 1 if
4840 pointer is null. Add to target vector.
4841 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4845 * remote.c (remote_wait): Add support to extract optional
4846 watchpoint information from T-packet. Ignore unrecognized
4847 optional info in T-packet.
4848 (remote_async_wait): Ditto.
4850 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4852 * cli/cli-dump.c: Change fopen modes to use binary open modes
4853 as defined in include/fopen-bin.h throughout.
4855 2002-08-08 Michael Snyder <msnyder@redhat.com>
4857 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4859 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4861 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4862 assertion failure by returning early after a warning.
4864 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4866 * mips-tdep.c (mips_find_saved_regs): Make static.
4867 (mips_frame_init_saved_regs): New function.
4868 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4869 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4870 (mips_find_saved_regs): Delete declaration.
4872 2002-08-08 Grace Sainsbury <graces@redhat.com>
4874 * remote.c (remote_wait, remote_async_wait): Change
4875 thread_num from int to ULONGEST.
4876 (unpack_varlen_hex): Change result parameter from
4877 int * to ULONGEST *.
4879 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4881 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4882 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4884 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4886 2002-08-08 Andrew Cagney <cagney@redhat.com>
4888 * gcore.c (override_derive_stack_segment): Delete variable.
4889 (preempt_derive_stack_segment): Delete function.
4890 (derive_stack_segment): Delete function.
4891 (default_derive_stack_segment): Renamed to derive_stack_segment.
4892 (override_derive_heap_segment): Delete variable.
4893 (preempt_derive_heap_segment): Delete function.
4894 (derive_heap_segment): Delete function.
4895 (default_derive_heap_segment): Rename to derive_heap_segment.
4897 2002-08-06 Michael Snyder <msnyder@redhat.com>
4899 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4900 * mips-tdep.c (mips_EABI_use_struct_convention,
4901 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4902 New functions. (mips_use_struct_convention): Delete.
4903 (mips_gdbarch_init): set use_gdbarch_convention.
4905 2002-08-06 Michael Snyder <msnyder@redhat.com>
4907 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4908 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4909 mips_o32_reg_struct_has_addr): New functions.
4910 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4912 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4914 * regcache.c (pseudo_register): Delete function.
4915 (fetch_register): Delete function.
4916 (store_register): Delete function.
4917 (regcache_raw_read, legacy_read_register_gen): Use
4918 target_fetch_registers instead of fetch_register.
4919 (legacy_write_register_gen, regcache_raw_write): Use
4920 target_store_register instead of store_register.
4921 (write_register_bytes): Ditto.
4923 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4924 (STORE_PSEUDO_REGISTER): Delete.
4925 * gdbarch.h, gdbarch.c: Regenerate.
4927 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4929 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4930 write dump file binary.
4932 2002-08-05 Michael Snyder <msnyder@redhat.com>
4934 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4935 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4936 (mips_gdbarch_init): Set N32 target to be mips64.
4938 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4940 * frame.c (find_saved_register): Break out of loop once saved
4941 register address is found. Don't mention sparc in loop comment
4944 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4946 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4947 mips_default_saved_regsize to 8.
4949 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4951 * gcore.c: Do not include <sys/procfs.h>.
4952 * Makefile.in (gcore.o): Update dependencies.
4954 2002-08-06 Andrew Cagney <cagney@redhat.com>
4956 * configure.tgt: Make arc-*-* obsolete.
4957 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4958 * MAINTAINERS: Make arc-elf obsolete.
4959 * arc-tdep.c: Make file obsolete.
4960 * config/arc/arc.mt: Ditto.
4961 * config/arc/tm-arc.h: Ditto.
4963 2002-08-05 Theodore A. Roth <troth@verinet.com>
4965 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4967 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4969 * mcore-tdep.c (mcore_gdbarch_init): Use
4970 generic_unwind_get_saved_register instead of
4971 generic_get_saved_register.
4972 * v850-tdep.c (v850_gdbarch_init): Ditto.
4973 * frv-tdep.c (frv_gdbarch_init): Ditto.
4974 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4975 * s390-tdep.c (s390_gdbarch_init): Ditto.
4976 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4977 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4978 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4980 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4982 * objfiles.h: Add missing #include "symfile.h"
4984 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4986 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4988 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4989 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4992 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4994 * NEWS: Cleanup and nitpick.
4996 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4998 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5000 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5002 * Makefile.in (gdbtk-bp.o): Update dependencies.
5003 (gdbtk-register.o): Ditto.
5004 (gdbtk-varobj.o): Ditto.
5006 2002-08-03 Andrew Cagney <cagney@redhat.com>
5008 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5009 m68hc11_fetch_pseudo_register.
5010 (m68hc11_pseudo_register_write): Replace
5011 m68hc11_store_pseudo_register.
5012 (m68hc11_gdbarch_init): Update.
5014 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5016 * gdbarch.sh: Include "gdb_string.h".
5017 * gdbarch.c: Regenerate.
5019 * regcache.c: Include "gdb_string.h".
5020 * ax-general.c: Ditto.
5022 * std-regs.c: Ditto.
5023 * fbsd-proc.c: Ditto.
5026 * Makefile.in (regcache.o): Update dependencies.
5027 (thread.o, gdbarch.o): Ditto.
5028 (ax-general.o, gdbarch.o): Ditto.
5029 (varobj.o, std-regs.o): Ditto.
5030 (fbsd-proc.o): Specify dependencies.
5032 2002-08-02 Andrew Cagney <cagney@redhat.com>
5034 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5036 (regcache_cooked_write): Ditto.
5038 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5040 * regcache.c (regcache_cooked_read): New function.
5041 (regcache_cooked_write): New function.
5042 (read_register_gen): Rewrite using regcache_cooked_read.
5043 (write_register_gen): Rewrite using regcache_cooked_write.
5045 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5048 2002-08-02 Andrew Cagney <cagney@redhat.com>
5050 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5051 Replace the architecture methods register_read and register_write.
5052 * gdbarch.h, gdbarch.c: Regenerate.
5053 * regcache.c (init_regcache_descr): Update.
5054 (read_register_gen): Update.
5055 (write_register_gen): Update.
5056 (supply_register): Update comment.
5058 * sh-tdep.c (sh_gdbarch_init): Update.
5059 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5060 `regcache' and `gdbarch' parameters. Make `buffer' a void
5061 pointer. Update code.
5062 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5063 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5064 void pointer. Update code.
5065 (sh64_register_write): Delete.
5066 (sh4_register_read): Delete.
5067 (sh64_register_read): Delete.
5068 (sh4_register_write): Delete.
5069 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5070 void pointer, `to' parameter a void pointer.
5071 (sh_sh64_register_convert_to_raw): Ditto.
5073 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5075 * mips-tdep.c (mips_register_virtual_type): Use architecture
5076 invariant return values.
5078 2002-08-01 Andrew Cagney <cagney@redhat.com>
5080 * linux-proc.c: Include "gdb_string.h".
5081 * Makefile.in (linux-proc.o): Update dependency list.
5083 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5085 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5088 2002-08-01 Grace Sainsbury <graces@redhat.com>
5090 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5091 to_insert_watchpoint, to_remove_watchpoint,
5092 to_stopped_by_watchpoint, to_stopped_data_address,
5093 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5094 target vecctor. Define their corresponding macros so they call
5097 * target.c: Add default and debug versions of for
5098 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5099 to_insert_watchpoint, to_remove_watchpoint,
5100 to_stopped_by_watchpoint, to_stopped_data_address,
5101 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5103 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5105 * mips-tdep.c (mips_register_virtual_type): New function.
5106 (mips_gdbarch_init): Register mips_register_virtual_type()
5107 with gdbarch machinery.
5108 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5109 this file instead of tm-bigmips.h.
5110 (MIPS_REGSIZE): Delete this macro.
5111 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5112 multiarch version in mips-tdep.c will be found.
5114 2002-08-01 Andrew Cagney <cagney@redhat.com>
5116 * NEWS: Menion that CHILL has been made obsolete.
5118 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5119 * stabsread.c (read_range_type): Ditto.
5120 * gdbtypes.h: Ditto.
5121 * language.c (binop_type_check): Ditto.
5122 (binop_result_type): Ditto.
5123 (integral_type): Ditto.
5124 (character_type): Ditto.
5125 (string_type): Ditto.
5126 (boolean_type): Ditto.
5127 (structured_type): Ditto.
5128 (lang_bool_type): Ditto.
5129 (binop_type_check): Ditto.
5130 * language.h (_LANG_chill): Ditto.
5131 * dwarfread.c (set_cu_language): Ditto.
5132 * dwarfread.c (CHILL_PRODUCER): Ditto.
5133 * dwarfread.c (handle_producer): Ditto.
5134 * expression.h (enum exp_opcode): Ditto.
5135 * eval.c: Ditto for comments.
5136 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5137 * expprint.c (print_subexp): Ditto.
5138 (print_subexp): Ditto.
5139 * valops.c (value_cast): Ditto.
5140 (search_struct_field): Ditto.
5141 * value.h (COERCE_VARYING_ARRAY): Ditto.
5142 * symfile.c (init_filename_language_table): Ditto.
5143 (add_psymbol_with_dem_name_to_list): Ditto.
5144 * valarith.c (value_binop): Ditto.
5146 * valops.c (value_slice): Ditto.
5147 * symtab.h (union language_specific): Ditto.
5148 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5149 (SYMBOL_DEMANGLED_NAME): Ditto.
5150 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5151 * defs.h (enum language): Ditto.
5152 * symtab.c (got_symtab): Ditto.
5153 * utils.c (fprintf_symbol_filtered): Ditto.
5155 * ch-typeprint.c: Make file obsolete.
5156 * ch-valprint.c: Make file obsolete.
5157 * ch-lang.h: Make file obsolete.
5158 * ch-exp.c: Make file obsolete.
5159 * ch-lang.c: Make file obsolete.
5161 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5163 (TARGET_FLAGS_TO_PASS): Ditto.
5164 (CHILLFLAGS): Obsolete.
5166 (CHILL_FOR_TARGET): Obsolete.
5167 (CHILL_LIB): Obsolete.
5168 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5170 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5171 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5173 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5176 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5178 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5179 This does not change anything at the moment, but will be helpful
5180 later when full Ada support is integrated.
5182 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5184 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5187 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5189 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5190 and save it in a local variable. Use variable in later test.
5192 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5194 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5195 test. (Thanks to Daniel Jacobowitz.)
5197 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5199 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5200 (mips_abi_strings): Add "n64".
5201 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5203 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5205 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5206 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5208 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5210 * utils.c (host_pointer_to_address, address_to_host_pointer):
5211 Use gdb_assert() instead of explicit call to internal_error().
5213 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5215 * Makefile.in (rs6000-nat.o): Update dependencies.
5217 From Nicholas Duffek:
5218 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5219 (aix-thread.o): New rule.
5220 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5221 * config/powerpc/aix432.mh: New file.
5223 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5225 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5226 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5227 (fetch_core_registers, ppc_linux_supply_gregset)
5228 (ppc_linux_supply_fpregset): New functions.
5229 (ppc_linux_regset_core_fns): New.
5230 (_initialize_ppc_linux_tdep): Call add_core_fns.
5231 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5232 and ppc_linux_supply_gregset.
5233 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5234 (supply_fpregset): Call ppc_linux_supply_fpregset.
5235 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5237 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5239 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5241 * symtab.c (lookup_symbol): Demangle before lowercasing.
5243 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5245 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5247 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5248 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5249 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5250 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5252 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5253 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5254 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5255 (avr-tdep.o, mon960-rom.o): Ditto.
5256 (aout_stabs_gnu_h): Define.
5257 (symtab_h): Remove $(gdb_obstack_h).
5259 2002-07-30 Jim Blandy <jimb@redhat.com>
5261 Patch from David Carlton <carlton@math.stanford.edu>:
5262 * gdbinit.in: Move the `dir' commands that add GDB's own source
5263 directory to the search path to the end, so that the `gdb' source
5264 directory will be searched first.
5266 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5268 * gdb_obstack.h: New file.
5269 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5270 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5271 * objfiles.h: Include "gdb_obstack.h".
5272 * Makefile.in (gdb_obstack_h): Define.
5273 (symtab_h): Add $(gdb_obstack_h).
5274 (objfiles_h): Add $(gdb_obstack_h).
5276 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5277 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5278 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5279 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5280 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5281 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5282 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5283 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5285 * Makefile.in (bcache.o): Update dependencies.
5286 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5287 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5288 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5289 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5290 (stabsread.o, symfile.o, symmisc.o): Ditto.
5291 (symtab.o, typeprint.o, macroexp.o): Ditto.
5292 (macrotab.o, mdebugread.o): Ditto.
5293 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5294 (coff_ecoff_h, aout_aout64_h): Define.
5295 (aout_stabs_gnu_h, libaout_h): Define.
5297 2002-07-29 Andrew Cagney <cagney@redhat.com>
5299 * regcache.c (struct regcache_descr): Rename nr_registers to
5300 nr_cooked_registers. Revise comments describing the structure
5302 (init_regcache_descr): Update.
5303 (init_legacy_regcache_descr): Update.
5304 (read_register_gen, write_register_gen): When a cooked register in
5305 the raw register range, directly access the value from the raw
5308 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5310 * z8k-tdep.c: Do not include "obstack.h".
5311 * h8300-tdep.c, h8500-tdep.c: Ditto.
5312 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5313 * valprint.c, v850-tdep.c: Ditto.
5314 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5315 * mn10200-tdep.c: Ditto.
5317 * Makefile.in (z8k-tdep.o): Update dependencies.
5318 (m68hc11-tdep.o, valprint.o): Ditto.
5319 (v850-tdep.o, d10v-tdep.o): Ditto.
5320 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5321 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5322 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5323 (sh_opc_h, gdb_sim_sh_h): Define.
5324 (elf_sh_h, elf_bfd_h): Define.
5325 (opcode_m68hc11_h): Define.
5326 (OPCODES_SRC, OPCODES_DIR): define.
5327 (OPCODES): Use $(OPCODES_DIR).
5328 (gdb_sim_d10v_h): Rename sim_d10v_h.
5329 (gdb_sim_arm_h): Rename sim_arm_h.
5331 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5333 * utils.c (host_pointer_to_address, address_to_host_pointer):
5334 Change internal_error() message to indicate function responsible
5337 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5339 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5340 calls to local_hex_string_custom().
5342 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5344 * irix5-nat.c: Move IRIX shared library support from here...
5345 * solib-irix.c: ...to here. Revised substantially to work with
5346 generic solib framework.
5348 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5349 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5350 * mips-irix-tdep.c: New file.
5352 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5353 (mips-irix-tdep.o, solib-irix.o): New rules.
5354 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5356 * config/mips/irix6.mt (TDEPFILES): Likewise.
5357 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5359 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5361 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5362 disabled (via ``#if 0'') includes.
5364 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5366 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5367 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5368 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5369 Add support for the fpscr register.
5370 * rs6000-nat.c (regmap, fetch_inferior_registers)
5371 (store_inferior_registers, fetch_core_registers): Likewise.
5373 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5375 * rs6000-nat.c (language.h): Include.
5376 (special_regs): Delete this array.
5377 (regmap): New function.
5378 (fetch_register, store_register): Use regmap() to map gdb
5379 register numbers to ptrace register numbers. Also, use
5380 outputs from regmap() to make decisions regarding type of
5381 ptrace() call to make. In particular, don't compare against
5382 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5383 (fetch_inferior_registers, store_inferior_registers): Where
5384 possible, obtain register numbers from tdep struct. Don't
5385 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5386 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5387 (LAST_UISA_SP_REGNUM): Delete.
5389 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5391 * rs6000-nat.c (ppc-tdep.h): Include.
5392 (fetch_registers, store_register, fetch_core_registers): Don't
5393 access registers[] directly. Instead, use supply_register() or
5394 regcache_collect() as appropriate.
5395 (find_toc_address): Format hex address with local_hex_string().
5397 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5399 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5402 2002-07-24 Tom Tromey <tromey@redhat.com>
5404 * jv-exp.y: Marked all strings with _().
5405 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5407 (MethodInvocation, CastExpression, parse_number, yyerror,
5408 java_type_from_name, push_expression_name, yylex): Typo fixes.
5410 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5412 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5413 (tee_file_flush, tee_file_write, tee_file_fputs)
5414 (tee_file_isatty): New.
5415 * ui-file.h (tee_file_new): Add prototype.
5417 2002-07-24 Aidan Skinner <aidan@velvet.net>
5419 * ada-lang.c: Change k&r style function definitions to prototyped
5421 * ada-typeprint.c: Change k&r style function definitions to prototyped
5423 * ada-valprint.c: Change k&r style function definitions to prototyped
5426 2002-07-24 Andrew Cagney <cagney@redhat.com>
5428 * README: Remove reference to remote-bug.
5429 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5431 (m88k-nat.o): Delete rule.
5432 (m88k-tdep.o): Delete rule.
5433 (remote-bug.o): Delete rule.
5434 * MAINTAINERS: Mark as obsolete.
5435 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5436 * m88k-tdep.c: Make file obsolete.
5437 * config/m88k/m88k.mh: Ditto.
5438 * config/m88k/delta88v4.mh: Ditto.
5439 * config/m88k/delta88v4.mt: Ditto.
5440 * config/m88k/delta88.mt: Ditto.
5441 * config/m88k/delta88.mh: Ditto.
5442 * remote-bug.c: Ditto.
5443 * config/m88k/tm-delta88.h: Ditto.
5444 * config/m88k/nm-delta88v4.h: Ditto.
5445 * config/m88k/xm-delta88.h: Ditto.
5446 * config/m88k/xm-dgux.h: Ditto.
5447 * config/m88k/tm-m88k.h: Ditto.
5448 * config/m88k/nm-m88k.h: Ditto.
5449 * config/m88k/tm-delta88v4.h: Ditto.
5450 * m88k-nat.c: Ditto.
5451 * cxux-nat.c: Ditto.
5452 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5453 and m88*-*-* obsolete.
5454 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5457 2002-07-24 Andrew Cagney <cagney@redhat.com>
5459 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5460 constant. Same for local pointer variables.
5461 (extract_signed_integer): Ditto.
5462 * defs.h (extract_unsigned_integer): Update.
5463 (extract_signed_integer): Update.
5465 2002-07-24 Andrew Cagney <cagney@redhat.com>
5467 * regcache.c (regcache_raw_write): Change buf parameter to a
5468 constant void pointer.
5469 (regcache_raw_read): Change buf parameter to a void pointer.
5470 (legacy_write_register_gen): Change myaddr parameter a constant
5472 (supply_register): Change val parameter to a const void pointer.
5473 * regcache.h (regcache_raw_write): Update declaration.
5474 (regcache_raw_read): Update declaration.
5475 (supply_register): Update declaration.
5477 2002-07-24 Tom Tromey <tromey@redhat.com>
5479 * defs.h (gdb_readline_wrapper): Declare.
5480 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5481 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5482 * top.c (gdb_readline_wrapper): New function.
5483 (command_line_input): Use it.
5485 2002-07-24 Andrew Cagney <cagney@redhat.com>
5487 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5488 regcache_read and regcache_write.
5489 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5490 * regcache.c: Update.
5491 * sh-tdep.c (sh64_push_arguments): Update comment.
5492 (sh_pseudo_register_read): Update.
5493 (sh_pseudo_register_write): Update.
5494 (sh4_register_read): Update.
5495 (sh4_register_write): Update.
5496 (sh64_pseudo_register_read): Update.
5497 (sh64_pseudo_register_write): Update.
5498 (sh64_register_read): Update.
5499 (sh64_register_write): Update.
5500 * i386-tdep.c (i386_extract_return_value): Update.
5501 (i386_extract_struct_value_address): Update.
5502 (i386_extract_return_value): Update.
5503 * blockframe.c (generic_read_register_dummy): Update.
5504 (generic_call_dummy_register_unwind): Update
5505 * infrun.c (write_inferior_status_register): Update.
5507 2002-07-23 Jim Blandy <jimb@redhat.com>
5509 * parser-defs.h (expression_context_pc): Make this extern.
5510 (Thanks to Michael Snyder.)
5512 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5514 GDB 5.2.1 released from 5.2 branch.
5515 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5516 * README: Update to mention 5.2.1.
5518 2002-07-23 Mark Salter <msalter@redhat.com>
5520 * remote.c (remote_read_bytes): Fix check for error.
5522 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5524 * aix-thread.c (language.h): Include.
5525 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5526 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5527 Print newlines at end of debug messages.
5528 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5529 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5531 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5533 * aix-thread.c (ppc-tdep.h): Include.
5534 (special_register_p): New function.
5535 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5536 (store_regs_user_thread): Use register number information from
5537 gdbarch_tdep struct instead of hardcoded offsets relative to
5538 FIRST_UISA_SP_REGNUM.
5539 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5540 special_register_p() instead of using FPLAST_REGNUM and
5541 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5542 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5543 will be MQ's register number.
5545 2002-07-22 Michael Snyder <msnyder@redhat.com>
5547 * aix-thread.c (ops): Rename to aix_thread_ops.
5548 (base_ops): Rename to base_target.
5549 (ops_attach): Rename to aix_thread_attach.
5550 (ops_detach): Rename to aix_thread_detach.
5551 (ops_resume): Rename to aix_thread_detach.
5552 (ops_wait): Rename to aix_thread_wait.
5553 (ops_kill): Rename to aix_thread_kill.
5554 (init_ops): Rename to init_aix_thread_ops.
5555 (ops_fetch_register): Rename to aix_thread_fetch_register.
5556 (ops_store_register): Rename to aix_thread_store_register.
5557 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5558 (ops_thread_alive): Rename to aix_thread_thread_alive.
5559 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5560 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5561 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5562 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5563 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5564 (store_regs_lib): Rename to store_regs_user_thread.
5565 (store_regs_kern): Rename to store_regs_kernel_thread.
5567 2002-07-22 Michael Snyder <msnyder@redhat.com>
5569 * aix-thread.c (ops_prepare_to_store): Eliminate.
5570 (init_ops): Don't initialize ops.prepare_to_store.
5571 (store_regs_kern): Pre-fetch register buffers from child,
5572 because some registers may not be in the cache. Copy
5573 regs from register cache only if they are cached.
5574 (store_regs_lib): Copy regs from register cache only
5576 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5577 fill_gprs64): Ditto.
5579 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5581 * aix-thread.c (gdb_assert.h): Include.
5582 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5583 register sizes (from register cache) match size of buffer holding
5585 (fill_sprs32): Change parameter types to match those in the ptrace()
5587 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5588 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5590 2002-07-22 Michael Snyder <msnyder@redhat.com>
5592 * aix-thread.c (supply_sprs64): Cosmetic change.
5593 (supply_sprs32): Cosmetic change.
5594 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5595 (fill_sprs64): Use regcache_collect instead of read_register.
5596 (store_regs_lib): Use regcache_collect instead of
5597 read_register. Use fill_sprs32 instead of fill_sprs64,
5598 if debugging a 32-bit architecture.
5599 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5600 out of the register cache, instead of passing a pointer into
5601 the register cache directly to ptrace. Use regcache_collect
5602 insteaad of read_register.
5603 (ops_prepare_to_store): Use target_read_registers instead
5604 of read_register_bytes.
5606 2002-07-20 Aidan Skinner <aidan@velvet.net>
5608 * MAINTAINERS: Add self under write after approval.
5610 2002-07-20 Aidan Skinner <aidan@velvet.net>
5612 * ada-tasks.c: Change k&r style function definitions to prototyped
5615 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5617 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5618 * x86-64-tdep.c: Include "objfiles.h".
5619 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5620 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5622 2002-07-17 Michal Ludvig <michal@suse.cz>
5624 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5625 (update_context): Initialise cfa variable.
5627 2002-07-17 Michael Snyder <msnyder@redhat.com>
5629 * aix-thread.c: Shorten some long lines.
5630 Bring comments into line with code spec.
5632 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5634 * infrun.c: Re-indent using gdb_indent.sh.
5636 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5638 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5639 Leave the indentation temporarily untouched, to minimize the diffs.
5641 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5643 * stabsread.c: Make os9k sections of the code obsolete,
5645 * stabsread.h: Make os9k sections of the code obsolete.
5647 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5649 * linux-low.c (regsets_store_inferior_registers): Add free()
5650 at the end of a loop to prevent memory leak.
5651 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5652 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5653 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5655 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5657 2002-07-17 Jim Blandy <jimb@redhat.com>
5659 * macrocmd.c (info_macro_command): Remove newline from error
5662 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5664 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5665 (sh_gdbarch_init): Use it for sh-dsp.
5667 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5669 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5670 64-bit DWARF2 format.
5672 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5674 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5675 <sys/proc.h> when not available.
5677 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5679 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5680 * stabsread.c: Make os9k sections of the code obsolete.
5681 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5682 * config/i386/i386os9k.mt: Make file obsolete.
5683 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5684 (COMMON_OBS): Remove os9kread.o
5685 (SFILES): Remove os9kread.c.
5686 (os9kread.o, remote-os9k.o): Make target obsolete.
5687 * remote-os9k.c: Make file obsolete.
5688 * os9kread.c: Make file obsolete.
5691 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5693 * NEWS: Mention that the FR30 has been made obsolete.
5694 * fr30-tdep.c: Make file obsolete.
5695 * config/fr30/tm-fr30.h: Ditto.
5696 * config/fr30/fr30.mt: Ditto.
5697 * configure.tgt: Make fr30-*-elf obsolete.
5698 * MAINTAINERS: Make fr30-elf obsolete.
5700 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5702 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5703 found is not inside a section.
5705 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5707 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5709 (pdc_realloc): Use xrealloc() instead of realloc().
5711 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5713 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5714 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5715 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5718 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5720 * aix-thread.c (ptrace_check): Eliminate goto.
5721 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5724 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5726 * aix-thread.c (gdbcmd.h): Include.
5727 (DEBUG, DBG, DBG2, dbg): Eliminate.
5728 (debug_aix_thread): New static global.
5729 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5730 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5731 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5732 invocations to DBG and DBG2 macros to test against
5733 ``debug_aix_thread'' and call fprintf_unfiltered().
5734 (_initialize_aix_thread): Add new command "set debug aix-thread".
5736 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5738 From Gerhard Tonn <TON@de.ibm.com>:
5739 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5740 instead of supply_register.
5742 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5744 * dwarf2cfi.c: Include "gdb_assert.h".
5745 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5747 (update_context): Do not use __func__. Add missing ``break''.
5748 (update_context): Do not use __func__.
5750 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5752 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5753 and its setting. Set gdbarch instruction printing functions
5754 directly. For non-rs6000 case use new function
5755 gdb_print_insn_powerpc.
5756 (gdb_print_insn_powerpc): New function.
5758 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5760 * NEWS: Mention that the d30v has been marked obsolete.
5761 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5762 * configure.tgt: Mark d30v-*-* as obsolete.
5763 * d30v-tdep.c: Mark file as obsolete.
5764 * config/d30v/d30v.mt: Ditto.
5765 * config/d30v/tm-d30v.h: Ditto.
5767 2002-07-13 Aidan Skinner <aidan@velvet.net>
5769 * ada-tasks.c (add_task_entry): replace calls to
5770 malloc() with xmalloc
5771 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5773 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5774 ada_finish_decode_line_1, all_sals_for_line
5775 ada_breakpoint_rewrite): replace calls to free() with xfree()
5777 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5779 From Nicholas Duffek (with minor changes by Martin Hunt,
5780 Louis Hamilton, and Kevin Buettner):
5781 * aix-thread.c: New file.
5783 2002-07-12 Petr Sorfa <petrs@caldera.com>
5785 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5786 complaint for invalid attribute class or form.
5787 (read_func_scope): DW_AT_frame_base
5788 better handling of DW_AT_block*.
5789 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5790 better handling of DW_AT_block*.
5791 (read_common_block): DW_AT_location
5792 better handling of DW_AT_block*.
5793 (read_partial_die): DW_AT_location better handling
5795 (new_symbol): DW_AT_external better handling of
5796 DW_AT_block*. Proper initialization of variable
5798 (attr_form_is_block): New function that returns true
5799 if the attribute's form is of DW_FORM_block*.
5801 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5803 * valops.c (find_method_list): Remove comment about
5804 removed STATIC_MEMFUNCP argument.
5805 (value_find_oload_method_list): Likewise.
5807 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5809 From Nicholas Duffek:
5810 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5811 target_new_objfile_hook.
5813 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5815 From Nicholas Duffek:
5816 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5819 2002-07-12 Andrew Cagney <cagney@redhat.com>
5821 * MAINTAINERS: Mention --enable-sim-build-warnings.
5822 (m68hc11-elf): Disable sim build warnings.
5823 (m32r-elf): Mark as broken obsolete candidate.
5824 (x86_64-linux-gnu): Mark as buildable with -Werror.
5825 (arm-elf): Change -w to ``,'' which enables warnings but not
5828 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5830 * bcache.h: Update copyright.
5831 (struct bstring, struct bcache): Move definition to "bcache.c".
5832 Replaced by opaque declaration.
5833 (bcache_xfree): Replace free_bcache.
5834 (bcache_xmalloc, bcache_memory_used): Declare.
5836 * bcache.c: Update copyright.
5837 (struct bstring, struct bcache): Moved to here from "bcache.h".
5839 (bcache_xmalloc, bcache_memory_used): New functions.
5840 (bcache_xfree): Replace function free_bcache.
5842 * Makefile.in (objfiles.o): Add $(bcache_h).
5843 (objfiles_h): Remove $(bcache_h).
5844 (symfile.o): Add $(bcache_h).
5846 * symmisc.c: Update copyright.
5847 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5848 (print_objfile_statistics): Use bcache_memory_used.
5850 * symfile.c: Include "bcache.h".
5851 (reread_symbols): Use bcache_xfree.
5852 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5853 (add_psymbol_to_list): Pass psymbol_cache by value.
5854 (add_psymbol_with_dem_name_to_list): Ditto.
5856 * objfiles.h: Update copyright.
5857 (struct bcache): Declare opaque. Do not include "bcache.h".
5858 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5860 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5862 * objfiles.c: Include "bcache.h". Update copyright.
5863 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5865 (free_objfile): Use bcache_xfree.
5867 2002-07-11 Grace Sainsbury <graces@redhat.com>
5869 * monitor.c (monitor_fetch_register): Make name a constant.
5870 (monitor_store_register): Same.
5872 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5874 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5875 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5876 (finish_block) For non-function blocks, hash the symbol table. For
5877 function blocks, mark the symbol table as unhashed.
5878 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5879 (msymbol_hash_iw): Likewise.
5880 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5882 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5883 (lookup_minimal_symbol): Likewise for both.
5884 * symtab.h (struct block): Add `hashtable' flag. Comment the
5886 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5887 (ALL_BLOCK_SYMBOLS): Update.
5888 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5889 (struct symbol): Add `hash_next' pointer.
5890 * symtab.c (lookup_block_symbol): Search using the hash table when
5892 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5893 (search_symbols, find_addr_symbol): Likewise.
5895 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5896 (read_dst_symtab): Likewise.
5897 * jv-lang.c (get_java_class_symtab): Likewise.
5898 * mdebugread.c: Include "gdb_assert.h".
5899 (shrink_block): Assert that the block being modified is not hashed.
5900 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5901 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5903 (dump_symtab): Recognize hashed blocks.
5904 * printcmd.c (print_frame_args): Assert that function blocks do not
5905 have hashed symbol tables.
5906 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5907 (fill_in_ada_prototype, debug_print_block): Likewise.
5908 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5910 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5912 * stack.c (print_frame): Use result of frame_address_in_block()
5913 instead of fi->pc when evaluating symbols.
5914 (backtrace_command_1): Ditto.
5916 2002-07-11 Andrew Cagney <cagney@redhat.com>
5918 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5921 * arm-tdep.c (arm_register_name): Make return type constant.
5923 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5925 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5927 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5928 * s390-tdep.c (s390_fp_regnum): Ditto.
5929 (s390_read_fp): Ditto.
5930 (s390_pop_frame): Ditto.
5931 (_initialize_s390_tdep): Ditto.
5932 * remote.c (get_remote_state): Ditto.
5933 * procfs.c (mappingflags): Ditto.
5934 * memattr.c (_initialize_mem): Ditto.
5935 * mcore-tdep.c (mcore_pop_frame): Ditto.
5936 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5937 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5938 * language.c (set_case_str): Ditto.
5939 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5940 * frv-tdep.c (new_variant): Ditto.
5941 (frv_stopped_data_address): Ditto.
5942 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5943 (context_alloc): Ditto.
5944 (frame_state_alloc): Ditto.
5945 (unwind_tmp_obstack_init): Ditto.
5946 (unwind_tmp_obstack_free): Ditto.
5947 (cfi_read_fp): Ditto.
5948 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5949 (cris_pop_frame): Ditto.
5950 * c-lang.c (scanning_macro_expansion): Ditto.
5951 (finished_macro_expansion): Ditto.
5952 (c_preprocess_and_parse): Ditto.
5953 * gdbarch.sh: Ditto.
5954 * gdbarch.h, gdbarch.c: Regenerate.
5955 * config/mn10200/tm-mn10200.h: Adjust indentation.
5956 * target.c: Adjust indentation.
5957 * symtab.h: Adjust indentation.
5958 * stabsread.h: Adjust indentation.
5959 * remote-es.c: Adjust indentation.
5960 * os9kread.c: Adjust indentation.
5962 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5964 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5965 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5967 2002-07-10 Grace Sainsbury <graces@redhat.com>
5969 * NEWS: Mention m68k, mcore multi-arching.
5970 * MAINTAINERS: Change status of m68k, mcore to reflect
5973 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5975 * valops.c (find_overload_match): Free oload_syms.
5977 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5979 Define HAVE_SYS_PROC_H if sys/proc.h exists
5980 * configure.in: Add check for sys/proc.h
5981 * config.in: Regenerate.
5982 * configure: Regenerate.
5984 2002-07-09 Grace Sainsbury <graces@redhat.com>
5986 * config/m68k/tm-m68k.h: Remove macros wrapped in
5987 #if !GDB_MULTI_ARCH.
5989 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5991 * config.in, configure: Regenerate.
5993 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5995 * dwarf2cfi.c: Include "gcore.h".
5996 (execute_stack_op): Fix implementation of the
5997 DW_OP_deref and DW_OP_deref_size operators by letting do their
5998 lookup in the target.
6000 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6002 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6003 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6006 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6008 Fix PR gdb/595, gdb/602
6009 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6010 Don't call value_cast, just read the vtable pointer; update comments
6013 2002-07-05 Grace Sainsbury <graces@redhat.com>
6015 * config/mcore/tm-mcore.h: Remove file.
6016 * config/mcore/mcore.mt: Remove definition of TM_FILE
6017 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6019 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6021 * i386bsd-tdep.c: Include "gdb_string.h".
6023 2002-07-04 Grace Sainsbury <graces@redhat.com>
6025 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6026 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6028 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6029 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6030 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6031 (RETVAL_REGNUM): Move macros from tm-mcore.h
6032 (mcore_reg_struct_has_addr): New function.
6033 (mcore_gdbarch_init): Added initializations for the macros removed
6036 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6038 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6039 traditonal string branding within the ELF header.
6041 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6043 * symtab.c (remove_params): New function.
6044 (make_symbol_overload_list): Use it instead of cplus_demangle.
6045 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6047 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6049 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6051 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6053 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6054 and tdep->sigtramp_end.
6055 * i386obsd-nat.c: New file.
6056 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6058 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6059 Don't call get_current_frame().
6061 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6063 * i386-nat.c (child_post_startup_inferior): New function
6064 calling i386_cleanup_dregs if
6065 I386_USE_GENERIC_WATCHPOINTS is defined.
6066 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6067 conditional to acknowledge that i386-nat.c has its
6068 own child_post_startup_inferior function.
6070 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6072 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6073 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6074 instead of MAX_REGISTER_RAW_SIZE.
6075 (i386_extract_return_value, i386_extract_struct_value_address):
6076 Convert to use regcache.
6077 (i386_gdbarch_init): Set max_register_raw_size and
6078 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6079 Set extract_return_value and extract_struct_value_address instead
6080 of their deprecated variants.
6082 Convert i386 target to generic dummy frames.
6083 * i386-tdep.c: Include "symfile.h".
6084 (i386_frameless_signal_p): Consider a function to be frameless if
6085 the pc points at the first instruction of the function.
6086 (i386_frame_chain): Handle (generic) call dummies.
6087 (i386_frame_saved_pc): Likewise.
6088 (i386_frame_init_saved_regs): Remove code dealing with call
6089 dummies on the stack.
6090 (i386_push_dummy_frame): Removed.
6091 (i386_call_dummy_words): Removed.
6092 (i386_fix_call_dummy): Removed.
6093 (i386_push_return_address): New function.
6094 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6095 parameter, and don't call get_current_frame.
6096 (i386_pop_frame): New function.
6097 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6098 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6099 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6100 call_dummy_length to 0, set call_dummy_words to NULL, set
6101 sizeof_call_dummy_words to 0, set fix_call_dummy to
6102 generic_fix_call_dummy, set pc_in_call_dummy to
6103 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6104 generic_push_dummy_frame, set push_return_address to
6105 i386_push_return_address and set frame_chain_valid to
6106 generic_file_frame_chain_valid.
6108 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6110 * gdbarch.sh (struct regcache): Add opaque declaration.
6111 (EXTRACT_RETURN_VALUE): New architecture method.
6112 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6113 * gdbarch.h, gdbarch.c: Regenerate.
6114 * arch-utils.c (legacy_extract_return_value): New function.
6115 * arch-utils.h (legacy_extract_return_value): Declare.
6116 * values.c (value_being_returned): Re-enable code handling
6117 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6118 deprecated_grub_regcache_for_registers call to block handling
6119 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6120 (EXTRACT_RETURN_VALUE): Do not define.
6122 2002-07-03 Grace Sainsbury <graces@redhat.com>
6124 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6125 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6126 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6127 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6128 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6129 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6130 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6131 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6132 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6133 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6134 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6135 argument so the function fits the prototype in the architecture
6137 (mcore_pop_frame): Remove argument so the function fits the
6138 prototype. Use get_current_frame instead of the argument.
6139 (mcore_push_arguments): Change type of struct_return so the
6140 function can be used in the architecture vector.
6141 (mcore_store_struct_return): Add.
6142 (mcore_frame_init_saved_regs): Add.
6143 (mcore_gdbarch_init): Add function calls to replace the macros
6144 removed from tm-mcore.h
6146 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6148 * infcmd.c (print_return_value): Remove compatibility code calling
6149 deprecated_grub_regcache_for_registers.
6151 * values.c: Include "regcache.h".
6152 (value_being_returned): Update. Use
6153 deprecated_grub_regcache_for_registers to extract the register
6155 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6156 ``struct regcache''.
6157 * Makefile.in (values.o): Add dependency on $(regcache_h).
6159 * inferior.h (run_stack_dummy): Change type of second parameter to
6160 a ``struct regcache''.
6161 * valops.c (hand_function_call): Change type of retbuf to ``struct
6162 regcache''. Allocate using regcache_xmalloc, clean using
6163 make_cleanup_regcache_xfree.
6164 * infcmd.c (run_stack_dummy): Update. Use
6165 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6167 * regcache.c (do_regcache_xfree): New function.
6168 (make_cleanup_regcache_xfree): New function.
6169 * regcache.h (make_cleanup_regcache_xfree): Declare.
6171 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6173 * event-top.c (command_line_handler): Don't read past
6174 beginning of buffer.
6176 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6178 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6180 (varobj_create): Store frame_id for root.
6181 (varobj_gen_name): Use xasprintf.
6182 (varobj_update): Save and restore frame using get_frame_id() and
6184 (create_child): Use xasprintf.
6185 (new_root_variable): Initialize frame_id.
6186 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6187 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6188 to prevent memory leak.
6190 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6192 * valops.c (hand_function_call): Move declaration of retbuf to
6193 start of function, allocate using malloc, add a cleanup but before
6194 the inf_status cleanup, cleanup the buffer. Rename local variable
6195 old_chain to inf_status_cleanup.
6197 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6199 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6201 * cli/cli-decode.c (cmd_func_p): New function.
6202 (cmd_func): New function.
6204 * command.h: Add cmd_func() and cmd_func_p().
6206 2002-07-03 Grace Sainsbury <graces@redhat.com>
6208 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6209 (REGISTER_SIZE): Remove.
6210 (MAX_REGISTER_RAW_SIZE): Remove.
6211 (REGISTER_VIRTUAL_TYPE): Remove.
6212 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6213 (REGISTER_NAME): Remove.
6214 (USE_GENERIC_DUMMY_FRAMES): Remove.
6215 (CALL_DUMMY): Remove.
6216 (CALL_DUMMY_START_OFFSET): Remove.
6217 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6218 (CALL_DUMMY_LOCATION): Remove.
6219 (FIX_CALL_DUMMY): Remove.
6220 (CALL_DUMMY_ADDRESS): Remove.
6221 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6222 (SAVE_DUMMY_FRAME_TOS): Remove.
6223 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6224 (mcore_register_virtual_type): New function.
6225 (mcore_register_byte): New function.
6226 (mcore_register_size): New function.
6227 (mcore_register_name): New function.
6228 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6229 macros removed from tm-mcore.h.
6230 (mcore_dump_tdep): Add.
6231 (_initialize_mcore_tdep): Add gdbarch_register call.
6233 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6235 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6236 frameless_look_for_prologue, such that we actually call this
6239 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6241 * frame.h (frame_address_in_block): New function.
6243 * blockframe.c (frame_address_in_block): New function extracted
6244 from get_frame_block().
6245 (get_frame_block): Use frame_address_in_block().
6246 (block_innermost_frame): Use frame_address_in_block() to match
6247 the frame pc address against the block boundaries rather than
6248 the frame pc directly. This prevents a failure when a frame pc
6249 is actually a return-address pointing immediately after the end
6252 2002-07-02 Grace Sainsbury <graces@redhat.com>
6254 * MAINTAINERS: Add self under write after approval.
6256 2002-07-02 Grace Sainsbury <graces@redhat.com>
6258 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6259 used in architecture vector. The default is
6260 m68k_local_breakpoint_from_pc.
6261 (m68k_local_breakpoint_from_pc): Add.
6262 (enum): Add register numbers from tm-m68k.h.
6263 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6265 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6266 GDB_MULTI_ARCH_PARTIAL.
6267 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6268 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6270 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6271 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6272 to enum in m68k-tdep.c
6274 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6276 * solib-osf.c (open_map): Compute the list of shared libraries
6277 loaded by the inferior, rather than the list of libraries loaded
6278 by GDB itself. Otherwise, GDB ends up reading the symbols from
6279 the wrong shared libraries...
6281 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6283 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6284 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6286 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6288 (FRAMELESS_SIGNAL): Remove function.
6289 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6290 i386_linux_saved_pc_after_call): Removed.
6291 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6292 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6293 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6295 * i386-tdep.c (i386_frameless_signal_p): New function.
6296 (i386_frame_chain): Deal with frameless signals.
6297 (i386_sigtramp_saved_sp): New function.
6298 (i386_frame_saved_pc): Deal with frameless signals.
6299 (i386_saved_pc_after_call): Make sure the correct value is
6300 returned just after entry into a sigtramp.
6301 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6302 i386fbsd4_sc_sp_offset): New variables.
6303 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6304 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6305 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6306 similiar to what we already did for sc_pc_offset.
6307 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6310 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6312 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6314 * config/i386/tm-x86-64linux.h: New.
6315 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6317 * config/i386/nm-x86-64.h: Rename to ...
6318 * config/i386/nm-x86-64linux.h: ... this one.
6319 * config/i386/x86-64linux.mh: Reflect the above change.
6321 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6323 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6324 with sigcontext_addr. Add sc_sp_offset.
6325 (i386bsd_sigtramp_saved_pc): Remove prototype.
6326 (i386bsd_sicontext_addr): Add prototype.
6327 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6328 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6329 (i386_svr4_sigtramp_saved_pc): Removed.
6330 (i386_svr4_sigcontext_addr): New function.
6331 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6332 Initialize tdep->sigcontext_addr instead. Initialize
6333 tdep->sc_pc_offset and tdep->sc_sp_offset.
6334 (i386_gdbarch_init): Likewise.
6335 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6337 (i386bsd_sigtramp_saved_pc): Remove function.
6338 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6339 Initialize tdep->sigcontext_addr instead. Initialize
6341 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6342 of tdep->sigtramp_saved_pc.
6343 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6344 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6347 * i386-tdep.c (i386_frameless_function_invocation,
6348 i386_frame_num_args, i386_frame_init_saved_regs,
6349 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6350 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6351 i386_extract_return_value, i386_store_return_value,
6352 i386_extract_struct_value_address, i386_register_virtual_type,
6353 i386_register_convertible, i386_register_convert_to_virtual,
6354 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6355 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6358 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6360 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6362 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6363 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6364 this macro. Include "value.h".
6366 2002-06-30 Aidan Skinner <aidan@velvet.net>
6368 * ada-exp.tab.c: remove as it's a generated file
6369 * ada-lex.c: remove as it's a generated file
6371 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6373 * config/i386/tm-i386.h (struct frame_info, struct
6374 frame_saved_regs, struct value, struct type): Remove forward
6377 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6378 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6379 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6380 (FILL_FPXREGSET): Define.
6382 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6384 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6385 i[3456]86-*-netbsd* case.
6386 * config/i386/tm-obsd.h: Removed.
6387 * config/i386/obsd.mt: Removed.
6388 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6390 (MH_CFLAGS): Add -DYYDEBUG=0.
6392 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6393 i386nbsd_sc_pc_offset on OpenBSD too.
6395 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6396 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6397 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6399 * i386bsd-tdep.c: Include "arch-utils.h".
6400 (i386bsd_aout_in_solib_call_trampoline): New function.
6401 (i386bsd_init_abi): Set in_solib_call_trampoline to
6402 i386bsd_aout_in_solib_call_trampoline.
6403 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6404 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6406 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6408 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6409 (struct obstack, struct bcache): Add opaque declarations.
6410 * Makefile.in (macrotab_h): Update
6412 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6414 * blockframe.c (generic_find_dummy_frame): Change return type to
6415 ``struct regcache''.
6416 (struct dummy_frame): Replace field ``registers'' with regcache, a
6417 struct regcache object.
6418 (generic_find_dummy_frame): Update.
6419 (generic_push_dummy_frame): Update. Use regcache_xfree,
6420 regcache_xmalloc and regcache_cpy.
6421 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6423 (deprecated_generic_find_dummy_frame): Update.
6424 (generic_read_register_dummy): Update. Use
6425 regcache_read_as_address.
6426 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6427 (generic_get_saved_register): Update. Use regcache_read.
6429 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6431 * Makefile.in (objfiles_h): Add $(bcache_h).
6432 * objfiles.h: Include "bcache.h".
6434 * Makefile.in (symtab_h): Remove $(bcache_h).
6435 * symtab.h: Do not include "bcache.h".
6437 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6439 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6440 generic_func_frame_chain_valid.
6442 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6444 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6445 * config/i386/tm-fbsd.h: Likewise.
6447 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6449 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6450 generic_unwind_get_saved_register.
6452 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6454 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6455 * regcache.c (supply_register): Add missing argument to
6456 register_buffer call.
6458 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6460 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6461 Solaris /bin/grep does not not like it. From Peter Schauer.
6463 2002-06-26 Tom Tromey <tromey@redhat.com>
6465 * command.h (add_setshow_cmd): Declare.
6466 (add_setshow_cmd_full): Declare.
6467 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6468 returns void. Use add_setshow_cmd_full.
6469 (add_setshow_cmd_full): New function.
6470 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6471 (add_setshow_boolean_cmd): Likewise.
6473 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6475 * config/vax/tm-vax.h: Protect from multiple inclusion.
6476 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6477 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6478 * config/vax/tm-vaxbsd.h: ...here. New file.
6479 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6481 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6483 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6484 (BELIEVE_PCC_PROMOTION): Remove.
6485 (AP_REGNUM): Move to...
6486 * config/vax/nm-vax.h: ...here.
6487 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6488 (vax_breakpoint_from_pc): New function.
6489 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6490 and gdbarch_believe_pcc_promotion.
6492 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6494 * Makefile.in (vax_tdep_h): Define.
6495 (vax-tdep.o): Use $(vax_tdep_h).
6496 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6497 (vax_dump_tdep): New function.
6498 (_initialize_vax_tdep): Register vax_dump_tdep.
6499 * vax-tdep.h: Include osabi.h.
6500 (struct gdbarch_tdep): New.
6502 2002-06-26 Andrew Cagney <cagney@redhat.com>
6504 * frame.h (deprecated_generic_find_dummy_frame): Rename
6505 generic_find_dummy_frame.
6506 * blockframe.c (generic_find_dummy_frame): Make static.
6507 (deprecated_generic_find_dummy_frame): New function.
6508 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6509 generic_find_dummy_frame with deprecated_find_dummy_frame.
6510 (sh64_nofp_frame_init_saved_regs): Ditto.
6511 (sh_fp_frame_init_saved_regs): Ditto.
6512 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6513 (s390_frame_chain): Ditto.
6514 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6516 2002-06-26 Grace Sainsbury <graces@redhat.com>
6518 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6519 gdbarch vector are at the top.
6521 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6522 (FRAME_ARGS_ADDRESS): Remove.
6523 (FRAME_LOCALS_ADDRESS): Remove.
6524 (FRAME_NUM_ARGS): Remove.
6525 (FRAME_ARGS_SKIP): Remove.
6526 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6527 (m68k_gdbarch_init): Add gdbarch initializations for macros
6528 undefined in tm-m68k.h
6530 2002-06-26 Grace Sainsbury <graces@redhat.com>
6532 * monitor.h: Add the function regname to monitor_ops
6533 structure. This way NUM_REGS does not have to be a constant.
6534 * monitor.c (monitor_fetch_register): Added support for regname
6535 function. The function is called if the array regnames is NULL.
6536 (monitor_store_register): Same.
6537 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6539 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6540 cpu32bug_cmds.regname to point to new function.
6541 * abug-rom.c (abug_regname): Same as above.
6542 (init_abug_cmds): Same.
6543 * dbug-rom.c (dbug_regname): Same as above.
6544 (init_dbug_cmds): Same.
6545 * remote-est.c (est_regname): Same.
6546 (init_est_cmds): Same.
6547 * rom68k-rom.c (rom68k_regname): Same.
6548 (init_rom68k_cmds): Same.
6550 2002-06-25 Tom Tromey <tromey@redhat.com>
6552 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6554 2002-06-25 Andrew Cagney <cagney@redhat.com>
6556 * infrun.c (stop_registers): Change variable's type to ``struct
6558 (xmalloc_inferior_status): Delete function.
6559 (free_inferior_status): Delete function.
6560 (normal_stop): Use regcache_cpy.
6561 (struct inferior_status): Change type of fields ``stop_registers''
6562 and ``registers'' to ``struct regcache''.
6563 (write_inferior_status_register): Use regcache_write.
6564 (save_inferior_status): Instead of calling
6565 xmalloc_inferior_status, allocate the inf_status buffer directly.
6566 Use regcache_dup_no_passthrough and regcache_dup to save the
6568 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6569 Replace the stop_registers regcache instead of overriding it. Use
6570 regcache_xfree. Instead of calling free_inferior_status, xfree
6571 the buffer directly.
6572 (discard_inferior_status): Use regcache_xfree. Instead of calling
6573 free_inferior_status, xfree the buffer directly.
6574 (build_infrun): Use regcache_xmalloc.
6575 (_initialize_infrun): Delete redundant call to build_infrun.
6577 * Makefile.in (infcmd.o): Add $(regcache_h).
6579 * infcmd.c: Include "regcache.h".
6580 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6581 obtain the address of `stop_registers' register buffer.
6582 (print_return_value): Ditto.
6584 * inferior.h (struct regcache): Add opaque declaration.
6585 (stop_registers): Change variable's declared type to ``struct
6588 2002-06-24 Tom Tromey <tromey@redhat.com>
6590 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6591 * target.c (initialize_targets): Fixed typo in
6592 trust-readonly-sections `show' documentation.
6594 * main.c: Marked all strings with _().
6596 2002-06-24 Don Howard <dhoward@redhat.com>
6598 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6599 that means max CORE_ADDR+1.
6600 (lookup_mem_region): Ditto.
6601 (mem_info_command): Ditto.
6603 2002-06-24 Grace Sainsbury <graces@redhat.com>
6605 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6606 (REGISTER_BYTES_OK): Remove.
6607 (REGISTER_BYTES): Remove.
6608 (STORE_STRUCT_RETURN): Remove.
6609 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6610 (STORE_RETURN_VALUE): Remove.
6611 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6612 (FRAME_CHAIN): Remove.
6613 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6614 (FRAME_SAVED_PC): Remove.
6615 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6616 (m68k_store_struct_return): Add.
6617 (m68k_deprecated_extract_return_value): Add.
6618 (m68k_deprecated_extract_struct_value_address): Add.
6619 (m68k_store_return_value): Add.
6620 (m68k_frame_chain): Add.
6621 (m68k_frameless_function_invocation): Add.
6622 (m68k_frame_saved_pc): Add.
6623 (m68k_gdbarch_init): added set_gdbarch calls for new
6624 functions and deleted macros.
6626 2002-06-23 Tom Tromey <tromey@redhat.com>
6628 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6629 (ALLDEPFILES): Likewise.
6630 (udiheaders): Removed.
6631 (udip2soc.o): Likewise.
6632 (udi2go32.o): Likewise.
6634 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6636 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6638 * infrun.c (_initialize_infrun): Delete unnecessary call to
6641 * regcache.h: Update comments describing the regcache_cpy family
6643 (regcache_save, regcache_restore): Delete declaration.
6644 (regcache_save_no_passthrough): Delete declaration.
6645 (regcache_restore_no_passthrough): Delete declaration.
6646 * regcache.c (regcache_save): Delete function.
6647 (regcache_save_no_passthrough): Delete function.
6648 (regcache_restore): Delete function.
6649 (regcache_restore_no_passthrough): Delete function.
6651 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6653 * config/m68k/tm-m68k.h: Fix typo.
6654 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6655 (m68k_frame_init_saved_regs): Declare.
6657 2002-06-21 Jim Blandy <jimb@redhat.com>
6659 Remove some vestiges of Harris 88k support.
6660 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6661 register numbering quirk.
6662 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6663 odd symbols occurring in Harris 88k ELF targets.
6665 2002-06-21 Tom Tromey <tromey@redhat.com>
6667 * gdb_locale.h: New file.
6668 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6669 (defs_h): Added gdb_locale.h.
6670 * configure, config.in: Rebuilt.
6671 * configure.in (PACKAGE): Define.
6672 * defs.h: Include gdb_locale.h.
6673 * main.c (captured_main): Call setlocale, bindtextdomain,
6676 2002-06-21 Dave Brolley <brolley@redhat.com>
6678 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6679 * config/frv/frv.mt: New file.
6680 * config/frv/tm-frv.h: New file.
6681 * configure.tgt: Support frv-*-*.
6682 * Makefile.in (frv-tdep.o): New target.
6683 * frv-tdep.c: New file.
6684 * NEWS: Mention frv.
6686 2002-06-21 Dave Brolley <brolley@redhat.com>
6688 * MAINTAINERS: Add self to "Write After Approval" list.
6690 2002-06-21 Grace Sainsbury <graces@redhat.com>
6692 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6693 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6694 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6695 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6696 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6698 * m68k-tdep.c: Include arch-utils.h
6699 (m68k_register_raw_size): Add.
6700 (m68k_register_virtual_size): Add.
6701 (m68k_register_virtual_type): Add.
6702 (m68k_register_name): Add.
6703 (m68k_stack_align): Add.
6704 (m68k_register_byte): Add.
6705 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6708 2002-06-21 Grace Sainsbury <graces@redhat.com>
6710 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6711 m68k_find_saved_regs.
6712 (m68k_pop_frame): Removed saved_regs structure, and replaced
6713 references to it with frame->saved_regs.
6714 (m68k_gdbarch_init): Added function calls to initialize the
6716 (m68k_fix_call_dummy): Add.
6717 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6718 (CALL_DUMMY): Remove.
6719 (CALL_DUMMY_LENGTH): Remove.
6720 (CALL_DUMMY_START_OFFSET): Remove.
6721 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6722 (FIX_CALL_DUMMY): Remove.
6723 (PUSH_DUMMY_FRAME): Remove.
6724 (POP_FRAME): Remove.
6726 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6728 * parse.c (parse_fprintf): New function used to avoid calls to
6729 fprintf in bison parser generated debug code.
6730 * parser-defs.h: Declaration of new parse_fprintf function.
6731 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6732 Set YYDEBUG to 1 by default.
6733 Set YYFPRINTF as parse_fprintf.
6735 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6737 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6739 (pointer_encoding, enum ptr_encoding): New.
6740 (execute_cfa_program): Take care about pointer encoding.
6741 (dwarf2_build_frame_info): Only call parse_frame_info for
6742 .debug_frame and .eh_frame.
6743 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6744 fixed augmentation handling, added relative addressing,
6745 ignore duplicate FDEs. Added comments.
6746 * dwarf2cfi.c: Reindented.
6748 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6750 * event-top.c (command_handler): Don't use space_at_cmd_start
6751 unless there is sbrk() on the host. Assign time and space data
6752 to union fields of the appropriate length.
6754 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6756 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6757 x86_64_register_name. Return type changed to 'const char *'.
6758 (x86_64_register_name2nr): Rename to x86_64_register_number.
6759 (x86_64_gdbarch_init): Update to reflect the change.
6760 * x86-64-tdep.h: Ditto.
6761 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6762 (supply_fpregset): Ditto.
6764 2002-06-19 Andrew Cagney <cagney@redhat.com>
6766 * regcache.h: Update copyright.
6767 (struct regcache, struct gdbarch): Add opaque declarations.
6768 (current_regcache): Declare global variable.
6769 (regcache_read, regcache_write): Add gdbarch parameter.
6770 (regcache_save, regcache_save_no_passthrough)
6771 (regcache_restore, regcache_restore_no_passthrough)
6772 (regcache_dup, regcache_dup_no_passthrough)
6773 (regcache_cpy, regcache_cpy_no_passthrough)
6774 (deprecated_grub_regcache_for_registers)
6775 (deprecated_grub_regcache_for_register_valid)
6776 (regcache_valid_p): Add function declarations.
6778 * regcache.c: Update copyright.
6779 (regcache_descr_handle): New global variable.
6780 (struct regcache_descr): Define.
6781 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6782 (regcache_descr, xfree_regcache_descr): New functions.
6783 (struct regcache): Define.
6784 (regcache_xmalloc, regcache_xfree): New functions.
6785 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6786 (regcache_dup, regcache_dup_no_passthrough): New functions.
6787 (regcache_valid_p, regcache_read_as_address): New functions.
6788 (deprecated_grub_regcache_for_registers): New function.
6789 (deprecated_grub_regcache_for_register_valid): New function.
6790 (current_regcache): New global variable.
6791 (register_buffer): Add regcache parameter. Update calls.
6792 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6793 (read_register_gen, write_register_gen): Update register_buffer
6794 call. Test for legacy_p instead of gdbarch_register_read_p or
6795 gdbarch_register_write_p.
6796 (regcache_collect): Update register_buffer call.
6797 (build_regcache): Rewrite. Use deprecated grub functions.
6798 (regcache_save, regcache_save_no_passthrough): New functions.
6799 (regcache_restore, regcache_restore_no_passthrough): New
6801 (_initialize_regcache): Create the regcache_data_handle. Swap
6802 current_regcache global variable.
6804 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6805 parameter to regcache_read and regcache_write calls.
6806 (sh4_register_read): Ditto.
6807 (sh64_pseudo_register_read): Ditto.
6808 (sh64_register_read): Ditto.
6809 (sh_pseudo_register_write): Ditto.
6810 (sh4_register_write): Ditto.
6811 (sh64_pseudo_register_write): Ditto.
6812 (sh64_register_write): Ditto.
6814 * defs.h (XCALLOC): Define.
6816 2002-06-19 Grace Sainsbury <graces@redhat.com>
6818 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6819 * m68k-tdep.c (m68k_gdbarch_init): Added.
6820 (m68k_dump_tdep): Added.
6822 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6824 * ada-lang.c (fill_in_ada_prototype): Update comment.
6826 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6828 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6830 (mips_abi_string, mips_abi_strings): New.
6831 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6832 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6833 tdep->mips_abi_string. Honor mips_abi_string. Default to
6834 O32 if no ABI is found.
6835 (mips_dump_tdep): Use mips_abi_strings.
6836 (mips_abi_update): New function.
6837 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6838 ``set mips abi'' and ``show mips abi''. Check the size of
6841 2002-06-19 Andrew Cagney <cagney@redhat.com>
6843 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6846 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6848 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6849 current frame using only the first stack size adjustment. All
6850 subsequent size adjustments are not considered to be part of
6851 the "static" part of the current frame.
6852 Compute the address of the saved registers relative to the
6853 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6854 in use in this frame.
6856 2002-06-18 Don Howard <dhoward@redhat.com>
6858 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6859 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6860 suggesting this solution.
6862 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6864 * config/romp/xm-rtbsd.h: Delete file.
6865 * config/romp/rtbsd.mh: Delete file.
6867 2002-06-18 Keith Seitz <keiths@redhat.com>
6869 * breakpoint.c (condition_command): Post breakpoint_modify
6870 when a condition is added to an existing breakpoint.
6871 (commands_command): Likewise for commands.
6872 (set_ignore_count): Likewise for ignore counts.
6873 If no tty, do not simply return, still need to send event
6875 (ignore_command): Only print a newline if the command came
6877 Don't call breakpoints_changed, since this is now properly
6878 handled by set_ignore_count.
6880 2002-06-18 Andrew Cagney <cagney@redhat.com>
6882 * MAINTAINERS: Note that cris-elf target can be compiled with
6884 * cris-tdep.c (cris_register_name): Make return type constant.
6885 (cris_breakpoint_from_pc): Ditto.
6887 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6889 * frame.h (struct frame_info): Change type of context to
6892 2002-06-17 Andrew Cagney <cagney@redhat.com>
6894 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6896 * gdbarch.h, gdbarch.c: Regenerate.
6897 * config/mips/tm-mips.h (mips_register_name): Update.
6898 * i386-tdep.h (i386_register_name): Update.
6899 * mips-tdep.c (mips_register_name): Update
6900 * alpha-tdep.c (alpha_register_name): Update.
6901 * arch-utils.c (legacy_register_name): Update.
6902 * arch-utils.h (legacy_register_name): Update.
6903 * avr-tdep.c (avr_register_name): Update.
6904 * ia64-tdep.c (ia64_register_name): Update.
6905 * i386-tdep.c (i386_register_name): Update.
6906 * sparc-tdep.c (sparc32_register_name): Update.
6907 (sparc64_register_name): Update.
6908 (sparclite_register_name): Update.
6909 (sparclet_register_name): Update.
6910 * sh-tdep.c (sh_generic_register_name): Update.
6911 (sh_sh_register_name): Update.
6912 (sh_sh3_register_name): Update.
6913 (sh_sh3e_register_name): Update.
6914 (sh_sh_dsp_register_name): Update.
6915 (sh_sh3_dsp_register_name): Update.
6916 (sh_sh4_register_name): Update.
6917 (sh_sh64_register_name): Update.
6918 * s390-tdep.c (s390_register_name): Update.
6919 * rs6000-tdep.c (rs6000_register_name): Update.
6920 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6921 (ns32k_register_name_32382): Update.
6922 * d10v-tdep.c (d10v_ts2_register_name): Update.
6923 (d10v_ts3_register_name): Update.
6924 * xstormy16-tdep.c (xstormy16_register_name): Update.
6925 * vax-tdep.c (vax_register_name): Update.
6926 * v850-tdep.c (v850_register_name): Update.
6927 * m68hc11-tdep.c (m68hc11_register_name): Update.
6928 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6929 (am33_register_name): Update.
6931 2002-06-17 Grace Sainsbury <graces@redhat.com>
6933 * m68k-tdep.c: Reindented.
6935 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6937 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6938 list of predefined types.
6940 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6942 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6943 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6944 REGISTER_CONVERT_TO_RAW): Remove defines.
6945 (i386_register_virtual_type, i386_register_convertible,
6946 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6948 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6949 macros mentioned above.
6951 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6952 (i386lynx_saved_pc_after_call): Remove prototype.
6953 * i386ly-tdep.c: Include "i386-tdep.h".
6954 (i386lynx_saved_pc_after_call): Make static. Use
6955 read_memory_nobpt instead of read_memory. Use
6956 read_memory_unsigned_integer instead of read_memory_integer.
6957 (i386lynx_init_abi): New function.
6958 (i386lynx_coff_osabi_sniffer): New function.
6959 (_initialize_i386bsd_tdep): New function.
6961 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6962 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6963 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6964 (i386_fix_call_dummy): Remove prototype.
6965 * i386-tdep.c (i386_call_dummy_words): New variable.
6966 (i386_gdbarch_init): Adjust for removal of the
6967 macros mentioned above.
6969 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6971 * command.h (add_setshow_auto_boolean_cmd): Replace
6972 add_set_auto_boolean_cmd.
6973 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6974 add_set_auto_boolean_cmd.
6975 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6976 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6977 mask-address'' command.
6978 (show_mask_address): Add cmd parameter.
6979 * remote.c (add_packet_config_cmd): Update. Change type of
6980 set_func and show_func to cmd_sfunc_ftype.
6981 (_initialize_remote): Update `set remote Z-packet'
6982 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6983 (show_remote_protocol_e_packet_cmd): Ditto.
6984 (show_remote_protocol_E_packet_cmd): Ditto.
6985 (show_remote_protocol_P_packet_cmd): Ditto.
6986 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6987 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6988 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6989 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6990 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6991 (show_remote_protocol_Z_packet_cmd): Ditto.
6992 (show_remote_protocol_binary_download_cmd): Ditto.
6993 (show_remote_cmd): Pass NULL to all of above.
6995 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6997 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6998 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6999 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7000 POP_FRAME): Remove defines.
7001 (i386_push_arguments, i386_store_struct_return,
7002 i386_extract_return_value, i386_store_return_value,
7003 i386_extract_struct_value_address, i386_push_dummy_frame,
7004 i386_pop_frame): Renove prototypes.
7005 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7006 macros mentioned above.
7008 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7010 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7011 add_set_boolean_cmd.
7012 (add_setshow_cmd): New function.
7013 * command.h (add_setshow_boolean_cmd): Replace
7014 add_set_boolean_cmd.
7015 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7016 and ``set rdiromatzero''.
7017 * maint.c (_initialize_maint_cmds): Update commented out code.
7018 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7019 * target.c (initialize_targets): Update `set
7020 trust-readonly-sections'.
7021 * remote.c (_initialize_remote): Update `set remotebreak'.
7023 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7025 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7026 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7027 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7028 fit into multi-arch framework.
7029 (i386_breakpoint_from_pc): New function.
7030 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7033 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7034 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7035 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7036 (i386_frameless_function_invocation, i386_frame_num_args,
7037 i386_frame_init_saved_regs): Remove prototypes.
7038 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7039 macros mentioned above.
7041 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7043 * cli/cli-decode.c (set_cmd_cfunc): Update.
7044 (set_cmd_sfunc): Update.
7045 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7046 (set_cmd_sfunc, set_cmd_cfunc): Update.
7047 * cli/cli-decode.h: Update.
7049 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7051 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7052 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7054 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7056 * defs.h (auto_boolean): Declare enum.
7057 * command.h (cmd_auto_boolean): Delete enum.
7058 * mips-tdep.c (mask_address_var): Update.
7059 (mips_mask_address_p): Update.
7060 (show_mask_address): Update.
7061 * remote.c (struct packet_config): Update.
7062 (update_packet_config): Update.
7063 (show_packet_config_cmd): Update.
7064 (packet_ok): Update.
7065 (add_packet_config_cmd): Update.
7066 (_initialize_remote):
7067 * command.h: Update.
7068 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7069 (do_setshow_command): Update.
7070 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7071 * cli/cli-decode.h: Update.
7073 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7075 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7076 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7077 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7078 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7079 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7080 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7082 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7083 list of DJGPP COFF targets.
7085 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7086 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7087 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7088 (FP0_REGNUM): Remove define.
7089 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7090 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7091 (i386_register_virtual_size): Remove protoype.
7092 * i386-tdep.c (i386_register_virtual_size): Removed.
7093 (i386_extract_return_value, i386_store_return_value): Use
7094 FP0_REGNUM instead of NUM_FREGS to determine whether the
7095 floating-point registers are available.
7096 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7097 Adjust for removal of macros mentioned above.
7099 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7101 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7103 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7105 (supply_gregset, fill_gregset): Remove use of register keyword and
7106 remove declaration for regmap. Use I386_NUM_GREGS instead of
7107 NUM_REGS and NUM_FREGS.
7108 (FPREGSET_FSAVE_OFFSET): Remove.
7109 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7110 NUM_FREGS to determine whether the floating-point registers are
7113 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7114 gnu_store_registers): Replace usage of NUM_GREGS with
7117 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7118 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7119 usage of NUM_GREGS with I386_NUM_GREGS.
7121 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7123 * i386bsd-nat.c: Include "i386-tdep.h".
7124 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7127 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7128 and associated comment. They no longer make any sense, since we
7129 don't use this file anymore on Linux.
7131 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7132 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7133 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7134 elements in these arrays.
7135 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7138 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7140 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7141 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7143 2002-06-14 Andrew Cagney <cagney@redhat.com>
7145 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7146 EXTRACT_RETURN_VALUE.
7147 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7148 EXTRACT_STRUCT_VALUE_ADDRESS.
7149 * gdbarch.h, gdbarch.c: Regenerate.
7151 * values.c (value_being_returned): Handle
7152 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7153 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7155 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7156 * arm-tdep.c (arm_gdbarch_init): Update.
7157 * avr-tdep.c (avr_gdbarch_init): Update.
7158 * cris-tdep.c (cris_gdbarch_init): Update.
7159 * d10v-tdep.c (d10v_gdbarch_init): Update.
7160 * ia64-tdep.c (ia64_gdbarch_init): Update.
7161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7162 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7163 * s390-tdep.c (s390_gdbarch_init): Update.
7164 * sh-tdep.c (sh_gdbarch_init): Update.
7165 * s390-tdep.c (s390_gdbarch_init): Update.
7166 * sparc-tdep.c (sparc_gdbarch_init): Update.
7167 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7168 * v850-tdep.c (v850_gdbarch_init): Update.
7169 * vax-tdep.c (vax_gdbarch_init): Update.
7170 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7171 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7173 * config/arc/tm-arc.h: Update.
7174 * config/d30v/tm-d30v.h: Update.
7175 * config/fr30/tm-fr30.h: Update.
7176 * config/h8300/tm-h8300.h: Update.
7177 * config/h8500/tm-h8500.h: Update.
7178 * config/i386/tm-i386.h: Update.
7179 * config/i386/tm-ptx.h: Update.
7180 * config/i386/tm-symmetry.h: Update.
7181 * config/i960/tm-i960.h: Update.
7182 * config/m32r/tm-m32r.h: Update.
7183 * config/m68k/tm-delta68.h: Update.
7184 * config/m68k/tm-linux.h: Update.
7185 * config/m68k/tm-m68k.h: Update.
7186 * config/m88k/tm-m88k.h: Update.
7187 * config/mcore/tm-mcore.h: Update.
7188 * config/mips/tm-mips.h: Update.
7189 * config/mn10200/tm-mn10200.h: Update.
7190 * config/pa/tm-hppa.h: Update.
7191 * config/pa/tm-hppa64.h: Update.
7192 * config/sparc/tm-sp64.h: Update.
7193 * config/sparc/tm-sparc.h: Update.
7194 * config/sparc/tm-sparclet.h: Update.
7195 * config/z8k/tm-z8k.h: Update.
7197 2002-06-14 Andrew Cagney <cagney@redhat.com>
7199 * Makefile.in (i386_linux_tdep_h): Define.
7200 (i386_tdep_h, i387_tdep_h): Define.
7201 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7202 $(i386_tdep_h) and $(i387_tdep_h).
7203 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7205 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7207 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7208 Already covered by the default.
7210 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7211 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7212 (i386_gdbarch_init): Initialize long_double_format and long_double
7215 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7216 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7218 * config/i386/i386sol2.mh: ... here.
7219 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7220 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7221 (SIGCONTEXT_PC_OFFSET): Remove define.
7222 (IN_SIGTRAMP): Remove define.
7223 * i386-sol2-tdep.c: New file.
7225 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7226 * config/i386/tm-i386nw.h: Removed.
7228 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7229 USE_STRUCT_CONVENTION): Remove defines.
7230 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7231 (get_longjmp_target): Remove prototype.
7232 (IN_SIGTRAMP): Remove define.
7233 (i386bsd_in_sigtramp): Remove prototype.
7234 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7235 function. Update comment accordingly
7236 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7237 (FRAME_SAVED_PC): Remove define.
7238 (i386bsd_frame_saved_pc): Remove prototype.
7239 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7240 GET_LONGJMP_TARGET): Remove defines.
7241 (get_longjmp_target): Remove prototype.
7242 (IN_SIGTRAMP): Remove define.
7243 (i386bsd_in_sigtramp): Remove prototype.
7244 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7245 function. Update comment accordingly
7246 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7247 (FRAME_SAVED_PC): Remove define.
7248 (i386bsd_frame_saved_pc): Remove prototype.
7249 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7251 (USE_STRUCT_CONVENTION): Remove prototype.
7252 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7254 (_initialize_i386bsd_nat): Revise logic to determine some
7255 constants at compile time when compiling a native GDB. Warn if
7256 things don't match up with what we expect.
7257 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7259 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7260 to use date stored in `struct gdbarch_tdep'.
7261 (i386bsd_sigcontext_offset): Remove varaible.
7262 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7263 stored in `struct gdbarch_tdep'.
7264 (i386bsd_frame_saved_pc): Make static.
7265 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7266 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7267 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7268 i386fbsd4_sc_pc_offset): New variables.
7269 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7270 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7272 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7274 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7275 Modify the value of i386fbsd_sigtramp_start and
7276 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7277 i386fbsd_sigtramp_end.
7278 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7281 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7282 define to i386-linux-tdep.h.
7283 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7284 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7286 (i386_linux_register_name, i386_linux_register_byte,
7287 i386_linux_register_raw_size): Remove prototypes.
7288 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7289 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7290 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7291 TARGET_WRITE_PC): Remove defines.
7292 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7293 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7294 i386_linux_write_pc): Remove prototypes.
7295 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7296 (get_longjmp_target): Remove prototype.
7297 * i386-linux-tdep.h: New file.
7298 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7299 * i386-linux-tdep.c: Include "i386-tdep.h" and
7300 "i386-linux-tdep.h".
7301 (i386_linux_register_name, i386_linux_register_byte,
7302 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7303 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7305 (i386_linux_init_abi): New function.
7306 (_initialize_i386_linux_tdep): New function.
7308 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7309 (i386_saved_pc_after_call): Remove prototype.
7310 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7311 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7312 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7313 (i386_register_name, i386_stab_reg_to_regnum,
7314 i386_dwarf_reg_to_regnum): Remove prototypes.
7315 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7316 SIZEOF_SSE_REGS): Remove defines.
7317 (REGISTER_BYTES): Remove define.
7318 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7319 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7320 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7321 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7322 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7323 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7324 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7325 (get_longjmp_target): Remove prototype.
7326 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7327 (sigtramp_saved_pc): Remove define.
7328 (i386v4_sigtramp_saved_pc): Remove prototype.
7329 * config/i386/tm-go32.h (FRAME_CHAIN,
7330 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7331 (i386go32_frame_saved_pc): Remove prototype.
7332 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7333 (get_longjmp_target): Remove prototype.
7334 * i386-tdep.h: Include "osabi.h".
7335 (enum i386_abi): Removed.
7336 (enum struct_return): New enum.
7337 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7338 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7339 sc_pc_offset members.
7340 (i386_gdbarch_register_os_abi): Remove prototype.
7341 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7342 I386_SSE_NUM_REGS): New defines.
7343 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7344 I386_SSE_SIZEOF_REGS): New defines.
7345 (i386_register_name, i386_register_byte, i386_register_raw_size):
7347 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7348 (i386bsd_sigtramp_saved_pc): New prototype.
7349 * i386-tdep.c: Don't include "elf-bfd.h".
7350 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7351 i386_frame_chain, i386_saved_pc_after_call): Make static.
7352 (i386_frame_saved_pc): Rewrite to call architecture dependent
7353 function to deal with signal handlers. Make static.
7354 (i386go32_frame_saved_pc): Removed.
7355 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7357 (i386_get_longjmp_target): New function.
7358 (default_struct_convention, pcc_struct_convention,
7359 reg_struct_convention, valid_conventions, struct_convention): New
7361 (i386_use_struct_convention): New function.
7362 (i386v4_sigtramp_saved_pc): Renamed to
7363 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7364 (i386_pc_in_sigtramp): New function.
7365 (i386_abi_names): Removed.
7366 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7367 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7369 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7370 i386_gdbarch_register_os_abi): Removed.
7371 (struct i386_abi_handler): Removed.
7372 (i386_abi_handler_list): Removed.
7373 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7375 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7376 i386_nw_init_abi): New functions.
7377 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7378 Use set_gdbarch_xxx() calls instead of relying on macros for a
7380 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7381 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7382 Register the various architecture variants defined in this file.
7384 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7386 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7387 (struct main_type): Remove arg_types member. Update comments for
7389 (TYPE_ARG_TYPES): Remove.
7390 (TYPE_FN_FIELD_ARGS): Update.
7391 (smash_to_method_type): Update prototype.
7393 * c-typeprint.c (cp_type_print_method_args): Take method type
7394 instead of argument list. Use new argument layout. Simplify.
7395 (c_type_print_args): Use new argument layout. Simplify.
7396 (c_type_print_base): Update call to cp_type_print_method_args.
7397 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7398 argument; use die->type instead. Update call to
7399 smash_to_method_type.
7400 (read_structure_scope): Update call to dwarf2_add_member_fn.
7401 * gdbtypes.c (allocate_stub_method): Update comment.
7402 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7403 Use new argument layout.
7404 (check_stub_method): Use new argument layout. Don't count
7405 void as an argument.
7406 (print_arg_types): Update comments. Use new argument layout.
7407 (recursive_dump_type): Don't print arg_types member.
7408 * hpread.c (hpread_read_struct_type): Use new argument layout.
7409 (fixup_class_method_type): Likewise.
7410 (hpread_type_lookup): Likewise.
7411 * stabsread.c (read_type): Update calls to read_args and
7412 smash_to_method_type.
7413 (read_args): Use new argument layout. Simplify.
7414 * valops.c (typecmp): Use new argument layout. Update parameters
7415 and comments. Simplify.
7416 (hand_function_call): Use new argument layout.
7417 (search_struct_method): Update call to typecmp.
7418 (find_overload_match): Use new argument layout.
7420 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7422 * NEWS: Mention multithreaded debug support for gdbserver.
7424 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7426 * MAINTAINERS: Mention NEWS.
7428 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7430 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7431 (struct mips_objfile_private, compare_pdr_entries): New.
7432 (non_heuristic_proc_desc): Read the ".pdr" section if it
7435 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7437 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7438 (arm_debug): New static variable.
7439 (_initialize_arm_tdep): Add ``set debug arm'' command.
7441 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7443 * Makefile.in (sim_arm_h): Define.
7444 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7445 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7446 (arm_register_sim_regno): New function, map an internal REGNUM
7447 onto a simulator register number.
7448 (arm_gdbarch_init): Set register_sim_regno.
7450 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7452 * MAINTAINERS: Add self.
7454 2002-06-11 Jim Blandy <jimb@redhat.com>
7456 * source.c (source_info): Mention whether the symtab has
7457 information about preprocessor macros.
7459 Call the command `info macro', not `show macro'.
7460 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7462 (_initialize_macrocmd): Register `info_macro_command' in
7463 `infolist', not `showlist'.
7465 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7467 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7468 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7469 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7470 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7471 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7473 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7474 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7475 (_initialize_mips_tdep): Remove dead code.
7476 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7477 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7478 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7479 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7480 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7481 MIPS_LAST_FP_ARG_REGNUM): Remove.
7483 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7485 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7486 (unwind_tmp_obstack_free, parse_frame_info)
7487 (update_context, cfi_read_fp, cfi_write_fp)
7488 (cfi_frame_chain, cfi_init_extra_frame_info)
7489 (cfi_virtual_frame_pointer): Use the above function.
7490 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7492 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7494 * v850-tdep.c (v850_type_is_scalar): New function.
7495 (v850_use_struct_convention): Match current gcc implementation
7496 as close as possible.
7497 (v850_push_arguments): Fix stack_offset handling. Don't write
7498 struct_addr into register. This is done by v850_store_struct_return.
7499 (v850_extract_return_value): Care for structs.
7500 (v850_store_return_value): Ditto.
7501 (v850_store_struct_return): Actually write address.
7503 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7505 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7506 without debug information too.
7508 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7510 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7511 Make multi-arch pure.
7512 * gdbarch.h, gdbarch.c: Re-generate.
7513 * arm-tdep.c (arm_print_float_info): Update.
7514 * arch-utils.h (default_print_float_info): Update.
7515 * arch-utils.c (default_print_float_info): Update.
7516 * infcmd.c (float_info): Update call.
7518 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7520 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7521 the front of the initialize list.
7523 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7525 * infrun.c (struct inferior_status): Replace fields
7526 selected_frame_address and selected_level with field
7528 (save_inferior_status): Update. Use get_frame_id.
7529 (struct restore_selected_frame_args): Delete.
7530 (restore_selected_frame): Update. Use frame_find_by_id.
7531 (restore_inferior_status): Update.
7533 * breakpoint.h (struct breakpoint): Change type of
7534 watchpoint_frame to frame_id.
7535 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7536 call to get_current_frame.
7537 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7539 (watchpoint_check): Use frame_find_by_id.
7541 * frame.h (record_selected_frame): Delete declaration.
7542 * stack.c (record_selected_frame): Delete function.
7544 * frame.h (struct frame_id): Define.
7545 (get_frame_id): Declare.
7546 (frame_find_by_id): Declare.
7547 * frame.c (frame_find_by_id): New function.
7548 (get_frame_id): New function.
7550 2002-06-10 Andrey Volkov <avolkov@transas.com>
7552 * ser-e7kpc.c: Fix duplicated define and call of
7553 _initialize_ser_e7000pc
7555 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7557 * signals/signals.c (target_signal_from_host): Fix #ifdef
7559 (do_target_signal_to_host): Likewise.
7561 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7563 * mips-tdep.c (mips_find_abi_section): New function.
7564 (mips_gdbarch_init): Call it.
7566 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7568 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7569 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7570 after Andrew's 2002-06-08 gdbarch change.
7572 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7574 * i386-linux-nat.c (suppy_gregset): Don't supply
7575 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7577 (fill_gregset): Don't fetch it under the same circumstances.
7579 2002-06-09 Andrew Cagney <cagney@redhat.com>
7581 * Makefile.in (callback_h): Define.
7582 (remote_sim_h): Update path to remote-sim.h.
7583 (remote-rdp.o): Add $(callback_h).
7584 (remote-sim.o): Use $(callback_h).
7585 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7586 * remote-rdp.c: Include "gdb/callback.h".
7588 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7590 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7591 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7593 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7595 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7596 * rdi-share/serpardr.c: Ditto.
7597 * rdi-share/unixcomm.c: Ditto.
7598 * rdi-share/serdrv.c: Ditto.
7599 * rdi-share/hostchan.h: Ditto.
7600 * rdi-share/hostchan.c: Ditto.
7601 * rdi-share/host.h: Ditto.
7602 * rdi-share/devsw.c: Ditto.
7604 * objfiles.h: Change type of obj_private to void pointer.
7605 * pa64solib.c: Update copyright. Don't include "assert.h", use
7606 strcmp instead of STREQ, use LONGEST, do not use PTR
7607 * somsolib.c: Ditto.
7609 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7610 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7611 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7613 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7615 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7616 (default_get_saved_register): Delete function.
7617 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7618 generic_unwind_get_saved_register.
7619 * gdbarch.h, gdbarch.c: Re-generate.
7621 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7623 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7624 generic_func_frame_chain_valid.
7625 * gdbarch.h, gdbarch.c: Re-generate.
7626 * blockframe.c (generic_func_frame_chain_valid): Only check
7627 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7628 passing FP to PC_IN_CALL_DUMMY.
7631 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7633 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7634 (register_gdbarch_data): Initialize init_p.
7635 (gdbarch_data): Initialize data pointer using the init function.
7636 (init_gdbarch_data): Delete function.
7637 (gdbarch_update_p): Update.
7638 (initialize_non_multiarch): Update.
7639 (struct gdbarch): Add field initialized_p.
7640 * gdbarch.h, gdbarch.c: Re-generate.
7642 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7644 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7645 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7646 better do the things actually here.
7647 * x86-64-tdep.c (x86_64_register_name2nr): New.
7648 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7649 (x86_64_gdbarch_init): Respect the above change.
7650 * x86-64-tdep.h (x86_64_register_name2nr)
7651 (x86_64_register_nr2name): Add prototypes.
7652 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7654 2002-06-06 Michael Snyder <msnyder@redhat.com>
7656 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7657 Delete extra braces and re-indent.
7658 (d10v_store_return_value): Char return values
7659 must be shifted over by one byte in R0.
7660 (d10v_extract_return_value): Delete extra braces, re-indent.
7662 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7664 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7665 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7666 (d10v_integer_to_address): Rewrite.
7667 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7668 the d10v specific functions which take care of converting to the
7671 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7673 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7674 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7676 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7678 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7680 * config/tm-linux.h: Ditto.
7681 * config/alpha/tm-alphalinux.h: Ditto.
7682 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7683 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7684 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7685 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7686 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7687 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7688 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7689 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7690 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7691 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7692 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7693 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7694 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7695 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7696 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7697 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7698 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7699 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7700 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7701 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7702 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7703 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7704 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7705 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7706 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7707 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7708 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7709 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7710 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7711 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7712 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7713 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7714 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7715 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7716 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7717 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7718 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7720 2002-05-04 Aidan Skinner <aidan@velvet.net>
7722 * ada-exp.tab.c: New file
7723 * ada-exp.y: New file
7724 * ada-lang.c: New file
7725 * ada-lang.h: New file
7726 * ada-lex.c: New file
7727 * ada-lex.l: New file
7728 * ada-tasks.c: New file
7729 * ada-typeprint.c: New file
7730 * ada-valprint.c: New file
7732 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7734 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7735 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7737 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7739 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7740 insetead of ppc-linux-tdep.o.
7741 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7742 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7744 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7746 2002-05-07 Christian Groessler <chris@groessler.org>
7747 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7748 bit register contents for little endian hosts.
7750 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7752 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7755 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7757 * gdbarch.h: Regenerate.
7759 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7761 * MAINTAINERS: Add everyone to write-after-approval list.
7763 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7765 * stack.c (frame_info): Use frame_register_unwind instead of
7766 saved_regs. Mention when the SP is on the stack or in a register.
7768 * frame.h (frame_register_unwind_ftype): Define. Document.
7769 (struct frame_info): Add field register_unwind and
7770 register_unwind_cache.
7771 (frame_register_unwind): Declare.
7772 (generic_unwind_get_saved_register): Declare.
7774 * frame.c (frame_register_unwind): New function.
7775 (generic_unwind_get_saved_register): New function.
7777 * blockframe.c (generic_call_dummy_register_unwind): New function.
7778 (frame_saved_regs_register_unwind): New function.
7779 (set_unwind_by_pc): New function.
7780 (create_new_frame): New function.
7781 (get_prev_frame): New function.
7783 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7785 * a29k-share/: Delete directory.
7786 * remote-vx29k.c: Delete file.
7788 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7790 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7791 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7793 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7795 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7796 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7799 (sparcnbsd-tdep.o): New dependency lists.
7800 * NEWS: Note new UltraSPARC NetBSD native configuration.
7801 * configure.host (sparc64-*-netbsd*): New host.
7802 * configure.tgt (sparc-*-netbsdelf*)
7803 (sparc-*-netbsd*): Set gdb_target to nbsd.
7804 (sparc64-*-netbsd*): New target.
7805 * sparc64nbsd-nat.c: New file.
7806 * sparcnbsd-nat.c: New file.
7807 * sparcnbsd-tdep.c: New file.
7808 * sparcnbsd-tdep.h: New file.
7809 * config/sparc/nbsd.mt: New file.
7810 * config/sparc/nbsd64.mh: New file.
7811 * config/sparc/nbsd64.mt: New file.
7812 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7813 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7815 * config/sparc/nbsdaout.mt: Remove.
7816 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7817 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7819 * config/sparc/nbsdelf.mt: Remove.
7820 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7821 sparc-nat.c compatiblity defines.
7822 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7823 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7824 * config/sparc/tm-nbsd64.h: New file.
7825 * config/sparc/tm-nbsdaout.h: Remove.
7826 * config/sparc/xm-nbsd.h: Remove.
7828 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7830 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7831 * sparc-tdep.c: Include osabi.h.
7832 (gdbarch_tdep): Add osabi member.
7833 (_initialize_sparc_tdep): Use gdbarch_register.
7834 (sparc_gdbarch_init): Use generic OS ABI framework.
7835 (sparc_dump_tdep): New function.
7837 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7839 * corefile.c (do_captured_read_memory_integer): Return non-zero
7841 (safe_read_memory_integer): Copy result of memory read when
7842 status is non-zero. Also, add comments.
7844 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7846 * Makefile.in (ppc_tdep_h): Define.
7849 (rs6000-tdep.o): Use $(ppc_tdep_h).
7852 (ppcnbsd-tdep.o): New dependency lists.
7853 * ppc-tdep.h: Use generic OS ABI framework.
7854 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7855 (ppc_linux_init_abi): New functions.
7856 (ppc_sysv_abi_broken_use_struct_convention)
7857 (ppc_sysv_abi_use_struct_convention)
7858 (ppc_sysv_abi_push_arguments): Move to...
7859 * ppc-sysv-tdep.c: ...here.
7860 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7861 * rs6000-tdep.c (process_note_abi_tag_sections)
7862 (get_elfosabi): Remove.
7863 (rs6000_gdbarch_init): Use generic OS ABI framework.
7864 (rs6000_dump_tdep): New function.
7865 (_initialize_rs6000_tdep): Use gdbarch_register.
7866 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7867 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7868 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7869 of ppc-linux-tdep.o.
7870 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7871 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7872 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7873 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7874 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7875 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7877 2002-05-29 Jim Blandy <jimb@redhat.com>
7879 * macroscope.c (default_macro_scope): Put `void' in empty argument
7882 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7884 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7885 * arch-utils.c: Include "sim-regno.h".
7886 * gdbarch.sh: Don't include "sim-regno.h".
7887 * gdbarch.h, gdbarch.c: Regenerate.
7888 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7890 * arch-utils.h (legacy_register_sim_regno): To here.
7891 * remote-sim.c (legacy_register_sim_regno): Move function from
7893 * arch-utils.c (legacy_register_sim_regno): To here.
7895 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7897 * sim-regno.h: New file.
7898 * Makefile.in (sim_regno_h): Define.
7899 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7900 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7901 (legacy_register_sim_regno): New function.
7902 (one2one_register_sim_regno): New function.
7903 (gdbsim_fetch_register): Rewrite.
7904 (gdbsim_store_register): Only store a register when
7905 REGISTER_SIM_REGNO is valid.
7906 * d10v-tdep.c: Include "sim-regno.h".
7907 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7908 (d10v_ts3_register_sim_regno): Ditto.
7909 * gdbarch.sh: Include "sim-regno.h".
7910 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7911 * gdbarch.h, gdbarch.c: Regenerate.
7912 * arch-utils.h (default_register_sim_regno): Delete declaration.
7913 * arch-utils.c (default_register_sim_regno): Delete function.
7915 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7917 * ppcnbsd-nat.c: Rewrite.
7918 * ppcnbsd-tdep.c: New file.
7919 * ppcnbsd-tdep.h: New file.
7920 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7921 solib.o, and solib-svr4.o.
7922 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7923 nbsd-tdep.o, and corelow.o.
7925 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7927 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7928 `tr' and `sed'. Mention that `broken' targets are not expected to
7931 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7933 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7934 Let PC point right after the prologue before looking up symbols.
7936 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7938 * i386-tdep.c (i386_register_virtual_type): Return
7939 builtin_type_vec128i for SSE registers.
7941 * gdbtypes.h (builtin_type_vec128i): Declare.
7943 * gdbtypes.c (build_builtin_type_vec128i): New function.
7944 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7945 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7946 (build_gdbtypes): Initialize new builtin vector types.
7947 (_initialize_gdbtypes): Register new vector types with gdbarch.
7949 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7951 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7952 since it has been multi-arch'd.
7953 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7954 Move Alpha and VAX multi-arch news entries to same section
7955 as other multi-arch news.
7957 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7959 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7960 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7961 static. Rename some register numbers to put them in ns32k-tdep
7963 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7964 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7966 (_initialize_ns32k_tdep): Use gdbarch_register.
7967 * ns32k-tdep.h: New file.
7968 * ns32knbsd-tdep.c: New file.
7969 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7970 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7971 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7972 REGISTER_BYTES, REGISTER_BYTE): Remove.
7973 * config/ns32k/tm-ns32k.h: New file.
7974 * config/ns32k/tm-umax.h: Remove.
7976 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7978 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7979 ns32k_store_struct_return, ns32k_extract_return_value,
7980 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7982 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7983 ns32k_saved_pc_after_call.
7984 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7985 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7986 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7987 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7988 ns32k_extract_struct_value_address.
7990 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7992 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7993 ns32k_fix_call_dummy): New.
7994 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7995 ns32k_call_dummy_words.
7996 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7997 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7998 CALL_DUMMY_NARGS): Remove.
7999 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8001 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8003 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8004 ns32k_frame_saved_pc, ns32k_frame_args_address,
8005 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8006 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8007 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8008 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8009 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8010 (BREAKPOINT): Remove..
8011 (FRAME_CHAIN): Define as ns32k_frame_chain.
8012 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8013 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8014 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8015 (FRAME_FIND_SAVED_REGS): Remove.
8016 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8017 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8018 (POP_FRAME): Define as ns32k_pop_frame.
8020 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8022 * ns32k-tdep.c (ns32k_register_byte_32082,
8023 ns32k_register_byte_32382, ns32k_register_raw_size,
8024 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8026 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8027 ns32k_register_byte_32382.
8028 * config/ns32k/tm-umax.h: Update copyright years.
8029 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8030 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8031 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8032 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8033 (ns32k_get_enter_addr): Fix prototype.
8035 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8037 * ns32k-tdep.c: Update copyright years.
8038 (ns32k_register_name_32082): New function.
8039 (ns32k_register_name_32382): Ditto.
8040 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8041 (REGISTER_NAME): Define as ns32k_register_name_32382.
8042 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8043 (REGISTER_NAME): Define as ns32k_register_name_32082.
8045 2002-05-24 Jim Blandy <jimb@redhat.com>
8047 * dwarf2read.c (free_line_header): Use xfree, not free.
8049 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8051 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8052 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8054 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8056 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8058 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8060 From Ross Alexander at NEC Europe:
8061 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8063 2002-05-23 Michael Snyder <msnyder@redhat.com>
8065 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8066 for input, rather than parse_and_eval_address.
8068 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8070 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8071 * Makefile.in (sim_d10v_h): Update definition.
8073 2002-05-24 Andrew Cagney <cagney@redhat.com>
8075 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8076 change `2002-05-22 Michael Snyder' below.
8077 (d10v_push_arguments): Ditto.
8078 (d10v_extract_return_value): Ditto.
8080 2002-05-23 Jim Blandy <jimb@redhat.com>
8082 * macrotab.c (check_for_redefinition): Don't complain if the new
8083 definition is the same as the previous one. Take more arguments
8084 to allow the comparison.
8085 (macro_define_object, macro_define_function): Pass more arguments
8086 to check_for_redefinition.
8088 2002-05-22 Michael Snyder <msnyder@redhat.com>
8090 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8091 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8092 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8093 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8094 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8095 Add a temp variable to save a call (and a memory read).
8096 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8097 if possible (so that PC_IN_CALL_DUMMY will work).
8099 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8101 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8103 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8105 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8107 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8108 (dwarf2_build_frame_info): Add offset to fde->initial_location
8109 so that frames of shared libraries are mapped correctly.
8110 (execute_stack_op): Change type of 'result' from ULONGEST to
8113 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8115 * config/alpha/tm-nbsd.h: Include solib.h.
8117 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8119 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8120 assumptions about the host's byte order.
8122 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8124 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8126 * alphanbsd-tdep.c: Include solib-svr4.h.
8127 * shnbsd-tdep.c: Ditto.
8129 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8131 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8132 nbsd-tdep.h to dependency list.
8133 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8134 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8135 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8136 nbsdaout.mh and nbsdelf.mh consistently.
8137 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8138 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8139 nbsdaout.mt and nbsdelf.mh consistently.
8140 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8141 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8142 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8143 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8144 a.out shared library stuff from here...
8145 * config/nm-nbsdaout.h: ...to here.
8146 * config/tm-nbsd.h: Remove.
8147 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8148 * config/arm/nbsd.mh: Remove.
8149 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8151 * config/arm/nbsdaout.mh: New file.
8152 * config/arm/nbsdelf.mh: New file.
8153 * config/arm/nm-nbsdaout.h: New file.
8154 * config/i386/nbsd.mh: Remove.
8155 * config/i386/nbsd.mt: Remove.
8156 * config/i386/nbsdaout.mh: New file.
8157 * config/i386/nbsdaout.mt: New file.
8158 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8159 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8160 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8161 i386_register_u_addr): Remove.
8162 * config/i386/nm-nbsdaout.h: New file.
8163 * config/i386/nm-nbsdelf.h: Remove.
8164 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8165 (USE_STRUCT_CONVENTION): Remove.
8166 * config/i386/tm-nbsdaout.h: New file.
8167 * config/i386/tm-nbsdelf.h: Remove.
8168 * config/m68k/nbsd.mh: Remove.
8169 * config/m68k/nbsd.mt: Remove.
8170 * config/m68k/nbsdaout.mh: New file.
8171 * config/m68k/nbsdaout.mt: New file.
8172 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8173 * config/m68k/nm-nbsdaout.h: New file.
8174 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8175 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8176 * config/ns32k/nbsd.mh: Remove.
8177 * config/ns32k/nbsd.mt: Remove.
8178 * config/ns32k/nbsdaout.mh: New file.
8179 * config/ns32k/nbsdaout.mt: New file.
8180 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8181 * config/ns32k/nm-nbsdaout.h: New file.
8182 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8183 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8184 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8185 (SVR4_SHARED_LIBS): Remove.
8186 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8187 * config/sparc/nbsd.mh: Remove.
8188 * config/sparc/nbsd.mt: Remove.
8189 * config/sparc/nbsdaout.mh: New file.
8190 * config/sparc/nbsdaout.mt: New file.
8191 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8192 * config/sparc/nbsdelf.mt: New file.
8193 * config/sparc/nm-nbsdaout.h: New file.
8194 * config/sparc/nm-nbsdelf.h: Remove.
8195 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8196 * config/sparc/tm-nbsdaout.h: New file.
8198 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8200 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8202 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8204 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8206 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8208 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8210 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8212 * NEWS: Note new MIPS NetBSD native configuration.
8213 * configure.host (mips*-*-netbsd*): New host.
8214 * configure.tgt (mips*-*-netbsd*): New target.
8215 * mipsnbsd-nat.c: New file.
8216 * mipsnbsd-tdep.c: New file.
8217 * mipsnbsd-tdep.h: New file.
8218 * config/mips/nbsd.mh: New file.
8219 * config/mips/nbsd.mt: New file.
8220 * config/mips/nm-nbsd.h: New file.
8221 * config/mips/tm-nbsd.h: New file.
8223 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8225 * Makefile.in (SFILES): Add osabi.c.
8226 (COMMON_OBS): Add osabi.o.
8227 (osabi.o): New dependency list.
8228 * osabi.c: New file.
8229 * osabi.h: New file.
8230 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8232 * Makefile.in (alpha_tdep_h): Define and use instead of
8234 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8235 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8237 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8238 * alpha-tdep.h: Include osabi.h.
8239 (alpha_abi): Remove.
8240 (gdbarch_tdep): Use generic OS ABI framework.
8241 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8242 gdbarch_register_osabi.
8243 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8244 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8245 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8247 * Makefile.in (sh_tdep_h): Add osabi.h.
8248 * sh-tdep.h (sh_osabi): Remove.
8249 (gdbarch_tdep): Use generic OS ABI framework.
8250 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8251 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8252 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8253 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8255 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8256 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8257 gdbarch_register_osabi.
8258 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8259 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8260 (get_elfosabi): Rename to...
8261 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8262 ABI framework support routines.
8263 (arm_gdbarch_init): Use generic OS ABI framework.
8264 (arm_dump_tdep): Likewise.
8265 (_initialize_arm_tdep): Likewise.
8266 * arm-tdep.h: Include osabi.h.
8268 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8270 (arm_gdbarch_register_os_abi): Remove prototype.
8271 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8272 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8274 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8275 * mips-tdep.c: Include osabi.h.
8276 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8279 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8281 * h8300-tdep.c: Fix formatting.
8283 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8285 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8286 printing vector registers.
8288 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8290 From Fernando Nasser:
8291 * remote.c (remote_async_open_1): Re-throw the exception when the
8293 (remote_cisco_open): Ditto.
8294 (remote_open_1): Ditto.
8296 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8298 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8299 (remote_start_remote): Add uiout parameter. Pass through to
8300 remote_start_remote_dummy.
8301 (remote_open_1): Use catch_exception instead of catch_errors.
8302 (remote_async_open_1): Ditto.
8303 (remote_cisco_open): Ditto.
8305 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8307 * remote.c (remote_start_remote): Replace PTR with void pointer.
8308 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8311 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8313 * gdb_indent.sh: Allow the script to be run in the sim directory.
8315 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8317 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8318 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8320 * corelow.c (core_open): Only call set_gdbarch_from_file if
8323 2002-05-17 Andrey Volkov <avolkov@transas.com>
8325 * h8300-tdep.c: Add support of EXR register
8326 * config/h8300/tm-h8300.h: Ditto.
8328 2002-05-17 Andrey Volkov <avolkov@transas.com>
8330 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8332 2002-05-17 Andrey Volkov <avolkov@transas.com>
8334 * h8300-tdep.c: Change literal regnums to REGNO.
8336 2002-05-17 Jim Blandy <jimb@redhat.com>
8338 * NEWS: Note addition of macro support.
8340 Expand preprocessor macros in C expressions.
8341 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8342 (scan_macro_expansion, scanning_macro_expansion,
8343 finished_macro_expansion): New function declarations.
8344 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8345 variable declarations.
8346 * parser-defs.h (expression_context_pc): New declaration.
8347 * parse.c (expression_context_pc): New variable.
8348 (parse_exp_1): Set expression_context_pc, as well as
8349 expression_context_block.
8350 * c-exp.y (yylex): If we're not already reading the result of a
8351 macro expansion, try to macro-expand the next token. When we're
8352 done scanning a macro expansion, switch back to the mainline text.
8353 Commas and `if's in a macro's expansion don't terminate the input.
8354 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8355 (macro_original_text, macro_expanded_text,
8356 expression_macro_lookup_func, expression_macro_lookup_baton): New
8358 (scan_macro_expansion, scanning_macro_expansion,
8359 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8360 c_preprocess_and_parse): New functions.
8361 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8362 c_preprocess_and_parse, instead of c_parse.
8363 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8364 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8366 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8368 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8369 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8370 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8372 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8374 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8376 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8378 * Makefile.in (sh_tdep_h): Define and use.
8379 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8380 register enum): Move to...
8381 * * sh-tdep.h: ...here.
8382 * sh-tdep.c: Include sh-tdep.h.
8383 * sh3-rom.c: Likewise.
8384 * shnbsd-tdep.c: Likewise.
8386 2002-05-16 Michael Snyder <msnyder@redhat.com>
8388 * arm-tdep.c: Spelling fix in comment.
8390 2002-05-16 Jim Blandy <jimb@redhat.com>
8392 Add commands for manually expanding macros and showing their
8394 * macrocmd.c, macroscope.c, macroscope.h: New files.
8395 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8396 (macroscope_h): New variable.
8397 (HFILES_NO_SRCDIR): Add macroscope.h.
8398 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8399 (macroscope.o, macrocmd.o): New rules.
8401 Teach the Dwarf 2 reader to read macro information.
8402 * dwarf2read.c: #include "macrotab.h".
8403 (dwarf_macinfo_buffer): New variable.
8404 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8406 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8407 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8408 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8409 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8410 dwarf2_macro_spaces_in_definition): New complaints.
8411 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8412 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8413 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8414 the partial symbol table.
8415 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8416 from what's recorded in the partial symbol table.
8417 (read_file_scope): If the compilation unit has a
8418 `DW_AT_macro_info' attribute, read its macro information.
8419 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8421 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8424 * ser-tcp.c: Don't include <netinet/udp.h>.
8426 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8428 * MAINTAINERS: Update my email address.
8430 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8432 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8433 include file of the same name.
8435 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8437 * configure.tgt: Mark v850 as multi-arched.
8438 * config/v850/tm-v850.h: Remove file.
8439 * config/v850/v850.mt: Eliminate TM_FILE.
8441 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8443 * v850-tdep.c: Full multi-arch.
8444 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8445 Define GDB_MULTI_ARCH to 2.
8447 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8449 * p-exp.y (current_type): New static variable.
8450 Carries the type of the expression at the position that is parsed.
8451 (push_current_type, pop_current_type): Two new functions. Used
8452 to store/restore current_type in expression on specific tokens.
8453 (search_field): New static variable. Set to one after parsing a point
8454 as at that point only a FIELDNAME token should be searched.
8455 (FIELDNAME): New token. After a point only a token belonging to
8456 current_type type definition is allowed.
8457 (all over token rules): reset and change current_type according
8459 (exp '[' rule): insert implicit array index field if
8460 exp is a pascal string type.
8462 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8464 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8465 frame info. Use frame_info's saved_regs instead of matching member
8466 in extra_frame_info throughout.
8467 (v850_frame_init_saved_regs): New function.
8468 (v850_init_extra_frame_info): Move most functionality into
8469 v850_frame_init_saved_regs().
8470 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8471 (v850_frame_find_saved_regs): Remove declaration.
8472 (FRAME_FIND_SAVED_REGS): Remove definition.
8473 (v850_frame_init_saved_regs): Add declaration.
8474 (FRAME_INIT_SAVED_REGS): Add definition.
8476 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8478 * v850-tdep.c: Begin multi-arch'ing v850.
8479 (v850_target_architecture_hook): Remove function.
8480 (v850_gdbarch_init): New function. Add code previously in
8481 v850_target_architecture_hook().
8482 (_initialize_v850_tdep): Don't set target_architecture_hook.
8483 Call register_gdbarch_init() instead.
8485 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8487 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8488 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8489 (fixup_class_method_type): Likewise.
8491 2002-05-15 Jim Blandy <jimb@redhat.com>
8493 Add macro structures to GDB's symbol tables. Nobody puts anything
8495 * symtab.h (struct symtab): New member: `macro_table'.
8496 * buildsym.h (pending_macros): New global variable.
8497 * buildsym.c: #include "macrotab.h".
8498 (buildsym_init): Initialize `pending_macros'.
8499 (end_symtab): If we found macro information while reading a CU's
8500 debugging info, do build a symtab structure for it. Make the
8501 symtab point to the macro information, and clear the
8502 `pending_macros' pointer which held it while we were reading the
8504 (really_free_pendings): Free any pending macro table.
8505 * objfiles.h (struct objfile): New member: `macro_cache'.
8506 * objfiles.c (allocate_objfile): Set allocate and free functions
8507 for the macro cache's objstack.
8508 (free_objfile): Empty the macro cache's obstack.
8509 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8510 set new allocate and free functions for it.
8511 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8512 free functions for the macro cache's objstack. (Why is this
8513 function building its own objfile?)
8514 * symmisc.c (print_objfile_statistics): Print statistics on the
8516 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8518 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8520 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8521 (REGISTER_U_ADDR): Delete definition.
8522 (arm_register_u_addr): Delete declaration.
8524 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8526 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8527 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8529 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8531 * regcache.c (register_valid): Revise comments refering to "Not
8532 available" and "unavailable".
8533 * frame.c (frame_register_read): Ditto.
8534 * findvar.c (value_of_register): Ditto.
8536 2002-05-15 Andrew Cagney <cagney@redhat.com>
8538 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8539 (remote-sim.o): Update dependencies.
8540 (d10v-tdep.o): Specify dependencies.
8541 (sim_d10v_h): Define.
8543 2002-05-14 Jim Blandy <jimb@redhat.com>
8545 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8546 * macrotab.c (macro_lookup_inclusion, find_definition,
8547 new_macro_table): Same.
8549 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8550 not `! strcmp ()'. This is a dubious improvement.
8551 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8553 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8554 although it's not necessary, to avoid a warning.
8556 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8558 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8559 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8560 TYPE_INSTANCE_FLAGS.
8561 (struct main_type): New.
8562 (struct type): Move most members to struct main_type. Change
8563 cv_type and as_type to new type_chain member. Add instance_flags.
8564 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8565 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8566 (finish_cv_type): Remove prototype.
8567 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8569 (alloc_type_instance): New function.
8570 (smash_type): New function.
8571 (make_pointer_type, make_reference_type, make_function_type)
8572 (smash_to_member_type, smash_to_method_type): Call smash_type.
8573 (make_qualified_type): New function.
8574 (make_type_with_address_space): Call make_qualified_type.
8575 (make_cv_type): Likewise.
8576 (finish_cv_type): Remove unnecessary function.
8577 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8578 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8579 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8580 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8581 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8582 * hpread.c (hpread_read_struct_type): Likewise.
8583 * stabsread.c (read_struct_type): Likewise.
8585 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8587 * configure.tgt: Add a catch all sh* target, for cases like
8588 sh[2,3,4]-elf and sh-hms.
8590 2002-05-14 Keith Seitz <keiths@redhat.com>
8592 * event-loop.c (create_file_handler): Don't do anything but
8593 update data when we are given a fd which we are already
8596 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8598 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8599 (update_context): Use __func__ in warnings.
8601 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8603 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8604 and tcp_close to net_open and net_close.
8605 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8606 using UDP if requested. Don't try to disable Nagle on UDP
8608 * remote.c (remote_serial_open): New function. Warn about UDP.
8609 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8611 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8613 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8615 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8617 * configure.tgt: Remove sh-hms target.
8618 * MAINTAINERS: Don't list sh-hms as a separate target.
8620 2002-05-13 Jim Blandy <jimb@redhat.com>
8622 Add first preprocessor macro-expansion files.
8623 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8624 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8625 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8626 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8627 (COMMON_OBS): Add macrotab.o, macroexp.o.
8628 (macroexp.o, macrotab.o): New rules.
8630 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8632 * config/m88k/tm-m88k.h: Update copyright.
8633 (m88k_target_write_pc): Declare
8634 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8635 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8636 (SHIFT_INST_REGS): Update definition.
8637 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8638 using old definition of TARGET_WRITE_PC.
8639 * regcache.c (generic_target_write_pc): Delete code handling
8641 * gdbarch.sh (NNPC_REGNUM): Delete.
8642 * gdbarch.h, gdbarch.c: Regenerate.
8644 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8646 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8649 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8651 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8652 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8653 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8655 * c-typeprint.c (cp_type_print_method_args): Likewise.
8656 (c_type_print_args): Likewise.
8657 * d10v-tdep.c (d10v_push_arguments): Likewise.
8658 (d10v_extract_return_value): Likewise.
8659 * expprint.c (print_subexp): Likewise.
8660 * gdbtypes.c (lookup_primitive_typename): Likewise.
8661 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8662 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8663 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8664 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8665 (TYPE_VECTOR): Likewise.
8666 * hpread.c (hpread_read_struct_type)
8667 (fix_static_member_physnames, fixup_class_method_type)
8668 (hpread_type_lookup): Likewise.
8669 * mdebugread.c (parse_symbol, parse_type): Likewise.
8670 * p-lang.c (is_pascal_string_type): Likewise.
8671 * valops.c (hand_function_call): Likewise.
8672 * x86-64-tdep.c (classify_argument): Likewise.
8674 * hpread.c (hpread_read_function_type)
8675 (hpread_read_doc_function_type): Call replace_type.
8676 * dstread.c (create_new_type): Delete.
8677 (decode_dst_structure, process_dst_function): Call alloc_type.
8678 Use type access macros.
8680 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8682 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8683 the're not supported by the current architecture.
8684 (i387_fill_fxsave): Likewise.
8686 2002-05-12 Fred Fish <fnf@redhat.com>
8688 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8689 sect_index_xxx members to index the first slot in section_offsets
8690 if all of the section_offsets are zero.
8692 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8694 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8695 checked in with last change.
8697 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8699 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8700 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8703 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8705 * Makefile.in: Update dependencies.
8707 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8709 * language.c (local_hex_string_custom): Simplify. Do not depend
8710 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8712 * memattr.c (mem_info_command): Replace calls to
8713 longest_local_hex_string and longest_local_hex_string_custom.
8714 * buildsym.c (make_blockvector): Ditto.
8715 * solib.c (info_sharedlibrary_command): Ditto.
8716 * tracepoint.c (tracepoints_info): Ditto.
8717 * symtab.c (print_msymbol_info): Ditto.
8719 * language.c (local_hex_string): Delete.
8720 (local_hex_string_custom): Delete.
8721 (longest_local_hex_string): Rename to local_hex_string.
8722 (longest_local_hex_string_custom): Rename to
8723 local_hex_string_custom.
8724 * language.h (local_hex_string): Change parameter type to LONGEST.
8725 (local_hex_string_custom): Ditto.
8726 (longest_local_hex_string): Delete declaration.
8727 (longest_local_hex_string_custom): Ditto.
8729 * solib.c: Update copyright.
8730 * memattr.c: Update copyright.
8732 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8734 * arch-utils.h (legacy_register_to_value): Declare.
8735 (legacy_value_to_register): Declare.
8736 (legacy_convert_register_p): Declare.
8737 * arch-utils.c (legacy_register_to_value): New function.
8738 (legacy_value_to_register): New function.
8739 (legacy_convert_register_p): New function.
8741 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8742 (VALUE_TO_REGISTER): Define.
8743 (CONVERT_REGISTER_P): Define.
8744 * gdbarch.h, gdbarch.c: Regenerate.
8746 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8748 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8751 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8752 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8754 * Makefile.in: Update dependencies for valops.c.
8755 * valops.c: Include "gdb_assert.h".
8756 (typecmp): Skip THIS parameter to methods.
8757 (find_method_list): Remove static_memfuncp argument,
8758 update callers. Check for stub methods.
8759 (find_value_oload_method_list): Don't set *static_memfuncp.
8760 (find_overload_match): Don't check for stub methods. Assert
8761 that methods are not stubbed. Handle static methods.
8762 (value_find_oload_method_list): Remove static_memfuncp argument.
8763 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8764 to the argument list for static stub methods.
8765 * value.h (value_find_oload_method_list): Update prototype.
8767 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8769 * arch-utils.h (generic_register_size): Declare.
8770 (generic_register_raw_size, generic_register_virtual_size): Delete
8772 * arch-utils.c (generic_register_raw_size): Delete.
8773 (generic_register_size): New function.
8774 (generic_register_virtual_size): Delete.
8776 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8777 default generic_register_size.
8778 * gdbarch.h, gdbarch.c: Re-generate.
8780 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8781 register_virtual_size.
8782 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8783 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8785 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8787 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8788 * gdbarch.h, gdbarch.c: Regenerate.
8789 * gnu-v3-abi.c: Update copyright.
8790 (vtable_address_point_offset): Update.
8791 (gnuv3_rtti_type): Update.
8792 (gnuv3_baseclass_offset): Update.
8793 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8794 (init_fetch_link_map_offsets): Update.
8795 * remote.c (get_remote_state): Update.
8797 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8799 * TODO: Remove value_headof/value_from_vtable_info comment.
8800 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8801 * values.c (value_headof, value_from_vtable_info): Delete.
8802 * value.h (value_from_vtable_info): Delete prototype.
8804 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8806 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8807 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8809 (gdb_assert_h): Define.
8810 (gdb_wait_h): Define.
8811 (gdb_regex_h): Define.
8813 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8815 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8816 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8818 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8820 * nbsd-tdep.c: Fix comment.
8822 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8824 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8825 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8826 (nbsd-tdep.o): New dependency list.
8827 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8829 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8830 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8831 * nbsd-tdep.c: New file.
8832 * nbsd-tdep.h: New file.
8833 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8835 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8836 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8837 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8838 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8840 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8842 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8843 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8844 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8845 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8846 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8847 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8849 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8851 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8852 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8853 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8854 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8855 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8856 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8857 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8859 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8861 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8862 fetch_elfcore_registers to...
8863 * i386nbsd-tdep.c: ...here.
8864 (i386nbsd_use_struct_convention): Rename to...
8865 (i386nbsd_aout_use_struct_convention): ...this.
8866 (i386nbsd_supply_reg): New function.
8867 (i386nbsd_fill_reg): New function.
8868 (fetch_core_registers): Use i386nbsd_supply_reg.
8869 (fetch_elfcore_registers): Likewise.
8870 (_initialize_i386nbsd_tdep): New function.
8871 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8872 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8873 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8874 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8875 (i386nbsd_aout_use_struct_convention): ...this.
8877 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8879 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8880 (store_inferior_registers): Use shnbsd_fill_reg.
8881 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8882 sh_nbsd_supply_register): Collapse into...
8883 (shnbsd_supply_reg): ...this.
8884 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8885 (shnbsd_fill_reg): ...this.
8886 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8887 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8888 (fetch_core_registers): Use shnbsd_supply_reg.
8889 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8890 (sh_nbsd_core_fns): Rename to...
8891 (shnbsd_core_fns): ...this.
8892 (sh_nbsd_elfcore_fns): Rename to...
8893 (shnbsd_elfcore_fns): ...this.
8894 (sh_nbsd_init_abi): Rename to...
8895 (shnbsd_init_abi): ...this.
8896 (_initialize_sh_nbsd_tdep): Rename to...
8897 (_initialize_shnbsd_tdep): ...this.
8898 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8899 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8900 sh_nbsd_fill_register): Remove prototypes.
8901 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8903 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8905 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8906 (i387-nat.o): Delete dependency list.
8907 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8908 (x86-64-linux-nat.o): Likewise.
8909 * i387-nat.c: Delete file, moving contents to...
8910 * i387-tdep.c: ...here.
8911 * i387-nat.h: Rename...
8912 * i387-tdep.h: ...to this.
8913 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8914 * i386-linux-nat.c: Likewise.
8915 * i386bsd-nat.c: Likewise.
8916 * i386gnu-nat.c: Likewise.
8917 * i386nbsd-nat.c: Likewise.
8918 * i386v4-nat.c: Likewise.
8919 * x86-64-linux-nat.c: Likewise.
8920 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8921 * config/i386/go32.mh (NATDEPFILES): Likewise.
8922 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8923 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8924 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8925 * config/i386/linux.mh (NATDEPFILES): Likewise.
8926 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8927 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8928 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8929 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8931 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8933 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8934 (alphanbsd-nat.o): Remove dependency list.
8935 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8936 * alphanbsd-nat.c: Delete. Contents moved to...
8937 * alphanbsd-tdep.c: ...here.
8938 (_initialize_alphanbsd_tdep): Register core functions.
8939 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8941 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8943 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8944 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8945 (alphanbsd-nat.o): Likewise.
8946 (alphabsd-tdep.o): New dependency list.
8947 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8948 (fill_gregset): Use alphabsd_fill_reg.
8949 (supply_fpregset): Use alphabsd_supply_fpreg.
8950 (fill_fpregset): Use alphabsd_fill_fpreg.
8951 (fetch_inferior_registers): Use struct reg and struct fpreg
8952 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8953 and alphabsd_supply_fpreg.
8954 (store_inferior_registers): Use struct reg and struct fpreg
8955 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8956 and alphabsd_fill_fpreg.
8957 * alphabsd-tdep.c: New file.
8958 * alphabsd-tdep.h: New file.
8959 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8960 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8961 alphabsd_supply_fpreg.
8962 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8963 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8965 2002-05-11 Eric Christopher <echristo@redhat.com>
8967 * mips-tdep.c (mips_double_register_type): Fix thinko.
8968 (mips_single_register_type): Ditto.
8969 * MAINTAINERS: Add self.
8971 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8973 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8974 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8975 right thing on architectures with different endianness and/or
8978 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8980 From Christian Limpach <chris@Pin.LU>
8981 * configure.in: Change sed expression which comments out
8982 NATDEPFILES to also comment out continuation lines.
8983 * configure: Regenerate.
8985 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8987 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8990 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8992 * sh-tdep.c: Include correct file.
8994 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8996 New support for sh64-elf (sh5) target.
8998 * configure.tgt: For sh64-elf target, default to sh-elf.
9000 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9001 (struct gdbarch_tdep): Add new fields for new registers and ABI
9004 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9005 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9006 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9007 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9008 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9009 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9010 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9011 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9012 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9013 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9014 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9015 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9016 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9017 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9018 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9019 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9020 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9021 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9022 sign_extend, sh64_nofp_frame_init_saved_regs,
9023 sh64_init_extra_frame_info, sh64_get_saved_register,
9024 sh64_extract_struct_value_address, sh64_pop_frame,
9025 sh64_push_arguments, sh64_extract_return_value,
9026 sh64_store_return_value, sh64_show_media_regs,
9027 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9028 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9029 sh_sh64_register_virtual_type,
9030 sh_sh64_register_convert_to_virtual,
9031 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9032 sh64_register_read, sh64_pseudo_register_write,
9033 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9034 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9035 sh64_do_pseudo_register, sh_compact_do_registers_info,
9036 sh64_do_registers_info, sh_gdbarch_init): New functions.
9038 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9040 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9042 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9044 * linespec.c (decode_line_1): Check for a double quote after
9045 a filename correctly.
9047 2002-05-10 Jim Blandy <jimb@redhat.com>
9049 Properly track the size of the current objfile's .debug_line section.
9050 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9051 (DWARF_LINE_SIZE): New macro.
9052 (dwarf2_build_psymtabs_hard): Record the line section's size in
9053 the partial symbol table.
9054 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9057 2002-05-10 Petr Sorfa <petrs@caldera.com>
9059 * ia64-tdep.c: Handle breakpoints on L instruction type
9060 in MLX instruction bundle by moving the breakpoint to
9061 the third slot (X instruction type) as L holds only data.
9063 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9065 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9066 (process_one_symbol): Complain about discarding local symbols
9067 due to a misplaced N_LBRAC entry.
9069 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9071 From Daniel Berlin <dan@cgsoftware.com>
9072 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9073 decrease the depth we are at, in the case of templates.
9075 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9077 * mips-tdep.c (mips_float_register_type): New function.
9078 (mips_double_register_type): New function.
9079 (mips_print_register): Use them.
9080 (do_fp_register_row): Likewise.
9082 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9084 * signals/signals.c (signals): Remove conditional compilation around
9085 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9086 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9088 2002-05-09 Michael Snyder <msnyder@redhat.com>
9090 * remote-rdp.c (remote_rdp_can_run): Remove.
9092 2002-05-09 Tom Tromey <tromey@redhat.com>
9094 * jv-valprint.c (java_val_print): Handle `char' as a special case
9097 2002-05-09 Michael Snyder <msnyder@redhat.com>
9099 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9100 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9101 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9102 str r(0123),[sp,#nn].
9103 (arm_skip_prologue): Ditto. Also make disassembly
9104 order-independent by placing it in a loop.
9106 2002-05-06 Michael Snyder <msnyder@redhat.com>
9108 * stabsread.c (read_type): Add recognition for new attribute:
9109 "@V;" means that an array type is actually a vector.
9110 This is analogous to the vector flag that's been added to dwarf2.
9112 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9114 * i386-tdep.h (i386_abi): New enum.
9115 (struct gdbarch_tdep): Replace os_ident member with abi.
9116 (i386_gdbarch_register_os_abi): New prototype.
9117 * i386-tdep.c (i386_abi_names): New array.
9118 (process_note_abi_tag_sections): Removed.
9119 (process_note_sections): New function.
9120 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9121 (struct i386_abi_handler): New struct.
9122 (i386_abi_handler_list): New variable.
9123 (i386_gdbarch_register_os_abi): New function.
9124 (i386_gdbarch_init): Adapt for the changes given above.
9126 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9128 * gregset.h: Say "GNU/Linux".
9130 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9132 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9133 (build_gdbtypes): Build builtin_type_v2_float.
9134 (_initialize_gdbtypes): Register new builtin type.
9136 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9138 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9139 (clear_gdbarch_swap): New function.
9140 (initialize_non_multiarch): Call.
9141 (gdbarch_update_p): Before calling init(), swap out and clear the
9142 existing architecture.
9143 * gdbarch.c: Regenerate.
9145 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9147 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9150 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9152 * sh-nbsd-nat.c: Rename to...
9153 * shnbsd-nat.c: ...this.
9154 * sh-nbsd-tdep.c: Rename to...
9155 * shnbsd-tdep.c: ...this.
9156 * sh-nbsd-tdep.h: Rename to...
9157 * shnbsd-tdep.h: ...this.
9158 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9159 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9161 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9163 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9164 concatenation for command help messages.
9166 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9168 * NEWS: Note new sh*-*-netbsdelf* configuration.
9169 * configure.host: Set gdb_host_cpu to sh for all sh*.
9170 (sh*-*-netbsdelf*): New host.
9171 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9172 (sh*-*-netbsdelf*): New target.
9173 * sh-nbsd-nat.c: New file.
9174 * sh-nbsd-tdep.c: New file.
9175 * sh-nbsd-tdep.h: New file.
9176 * config/sh/nbsd.mh: New file.
9177 * config/sh/nbsd.mt: New file.
9178 * config/sh/nm-nbsd.h: New file.
9179 * config/sh/tm-nbsd.h: New file.
9181 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9183 * sh-tdep.c (sh_osabi_names): Declare.
9184 (process_note_abi_tag_sections): New function.
9185 (get_elfosabi): Ditto.
9186 (sh_gdbarch_register_os_abi): Ditto.
9187 (sh_dump_tdep): Ditto.
9188 _initialize_sh_tdep): Use gdbarch_register to register
9189 sh_gdbarch_init and sh_dump_tdep.
9190 * config/sh/tm-sh.h (sh_osabi): Declare.
9191 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9193 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9195 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9196 (thumb_scan_prologue): Ditto.
9197 (arm_find_callers_reg): Ditto.
9198 (arm_frame_chain): Ditto.
9199 (arm_init_extra_frame_info): Ditto.
9200 (arm_frame_saved_pc): Ditto.
9201 (arm_pop_frame): Ditto.
9202 (arm_push_return_address): New function.
9203 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9204 call_dummy_location, call_dummy_breakpoint_offset_p,
9205 call_dummy_breakpoint_offset, call_dummy_p,
9206 call_dummy_stack_adjust_p, call_dummy_words,
9207 sizeof_call_dummy_words, call_dummy_start_offset,
9208 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9209 call_dummy_address, push_return_address and push_dummy_frame for
9210 generic dummy frames.
9212 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9214 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9215 size computation for alloca.
9216 (sh_fp_frame_init_saved_regs): Likewise.
9218 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9220 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9221 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9222 * arm-tdep.c (arm_store_return_value): Use them.
9223 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9224 * remote-rdp.c (remote_rdp_fetch_register): Use
9225 ARM_MAX_REGISTER_RAW_SIZE.
9226 (remote_rdp_store_register): Likewise.
9228 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9230 * dwarf2cfi.c: Code cleanup, removed unused variables,
9231 added default labels to switch {} statements.
9232 * x86-64-tdep.c: Ditto.
9233 * x86-64-linux-nat.c: Ditto.
9235 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9237 * solib.h: Protect against multiple inclusion.
9239 2002-05-06 Jim Blandy <jimb@redhat.com>
9241 Add first preprocessor macro-expansion files.
9242 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9243 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9244 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9245 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9246 (COMMON_OBS): Add macrotab.o, macroexp.o.
9247 (macroexp.o, macrotab.o): New rules.
9249 Separate the job of reading the line number info statement program
9250 header (...expialidocious) out into its own function.
9251 * dwarf2read.c (struct line_head, struct filenames, struct
9252 directories): Replace with...
9253 (struct line_header): New structure, containing the full
9254 contents of the statement program header, including the
9255 include directory and file name tables.
9256 (read_file_scope): If we have line number info, instead of just
9257 calling dwarf_decode_lines to do all the work, call
9258 dwarf_decode_line_header first to get a `struct line_header'
9259 containing the data in the statement program header, and then
9260 pass that to dwarf_decode_lines, which will pick up where that
9261 left off. Be sure to clean up the `struct line_header' object.
9262 (dwarf_decode_line_header, free_line_header, add_include_dir,
9263 add_file_name): New functions.
9264 (dwarf_decode_lines): Move all the code to read the statement
9265 program header into dwarf_decode_line_header. Take the line
9266 header it built as the first argument, instead of the offset to
9267 the compilation unit's line number info. Use the new `struct
9268 line_header' type instead of the old structures. No need to do
9269 cleanups here now, since we don't allocate anything.
9270 (dwarf2_statement_list_fits_in_line_number_section,
9271 dwarf2_line_header_too_long): New complaints.
9273 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9275 * gdbtypes.c (init_vector_type): New function.
9276 (build_builtin_type_vec128): Simplify the representation of SIMD
9278 (build_gdbtypes): Initialize new builtin vector types.
9279 (_initialize_gdbtypes): Register new vector types with gdbarch.
9280 (builtin_type_v4_float, builtin_type_v4_int32,
9281 builtin_type_v8_int16, builtin_type_v16_int8,
9282 builtin_type_v2_int32, builtin_type_v4_int16,
9283 builtin_type_v8_int8): New (renamed) SIMD types.
9285 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9287 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9288 (i387_fill_fxsave): Likewise.
9290 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9292 * alpha-tdep.c (alpha_extract_return_value): Don't use
9293 non-constant array size in prototype.
9295 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9297 From Brian Taylor <briant at model dot com>:
9298 * ui-out.c (ui_out_field_core_addr): Use the function
9299 longest_local_hex_string_custom'to format addresses > 32 bits
9302 * ui-out.c (ui_out_field_core_addr): Update comment.
9304 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9306 * stack.c (select_and_print_frame): Make static. Delete the
9308 (func_command): Update call.
9309 (select_frame_command): Delete code computing the frame level.
9310 * frame.h (select_and_print_frame): Delete declaration.
9312 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9314 * sparc-tdep.c (sparc_get_saved_register): Comment why
9315 get_prev_frame call is safe.
9317 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9319 * frame.h (select_frame): Delete level parameter.
9320 * stack.c (select_frame): Update. Use frame_relative_level to
9321 obtain the frame's level.
9322 (select_and_print_frame): Update call.
9323 (select_frame_command): Ditto.
9324 (up_silently_base): Ditto.
9325 (down_silently_base): Ditto.
9326 * ocd.c (ocd_start_remote): Ditto.
9327 * remote-rdp.c (remote_rdp_open): Ditto.
9328 * remote-mips.c (mips_initialize): Ditto.
9329 (common_open): Ditto.
9330 * remote-e7000.c (e7000_start_remote): Ditto.
9331 * m3-nat.c (select_thread): Ditto.
9332 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9333 (child_get_current_exception_event): Ditto.
9334 * varobj.c (varobj_create): Ditto.
9335 (varobj_update): Ditto.
9336 (c_value_of_root): Ditto.
9337 * tracepoint.c (finish_tfind_command): Ditto.
9338 * corelow.c (core_open): Ditto.
9339 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9340 * thread.c (info_threads_command): Ditto.
9341 (switch_to_thread): Ditto.
9342 * infrun.c (normal_stop): Ditto.
9343 (restore_selected_frame): Ditto.
9344 (restore_inferior_status): Ditto.
9345 * breakpoint.c (insert_breakpoints): Ditto.
9346 (watchpoint_check): Ditto.
9347 (bpstat_stop_status): Ditto.
9348 (do_enable_breakpoint): Ditto.
9349 * blockframe.c (flush_cached_frames): Ditto.
9350 (reinit_frame_cache): Ditto.
9352 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9354 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9357 2002-05-04 Jim Blandy <jimb@redhat.com>
9359 * gdbtypes.c (replace_type): Doc fix.
9361 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9363 * valprint.c (strcat_longest): Delete commented out function.
9366 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9368 * MAINTAINERS: Mark a29k as deleted.
9369 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9370 Move new configurations to the top.
9371 * configure.tgt: Remove a29k.
9372 * config/a29k/tm-vx29k.h: Delete.
9373 * config/a29k/vx29k.mt: Delete.
9374 * config/a29k/tm-a29k.h: Delete.
9375 * config/a29k/a29k-udi.mt: Delete.
9376 * config/a29k/a29k.mt: Delete.
9377 * a29k-tdep.c: Delete.
9378 * remote-udi.c: Delete.
9379 * remote-mm.c: Delete.
9380 * remote-eb.c: Delete.
9381 * remote-adapt.c: Delete.
9382 * Makefile.in: Remove obsolete code.
9383 * config/s390/s390x.mt: Ditto.
9384 * config/s390/s390.mt: Ditto.
9385 * config/sparc/sparclynx.mh: Ditto.
9386 * config/sparc/linux.mh: Ditto.
9387 * config/pa/hppaosf.mh: Ditto.
9388 * config/pa/hppabsd.mh: Ditto.
9389 * config/ns32k/nbsd.mt: Ditto.
9390 * config/mips/vr5000.mt: Ditto.
9391 * config/m68k/sun3os4.mh: Ditto.
9392 * config/m68k/nbsd.mt: Ditto.
9393 * config/m68k/m68klynx.mh: Ditto.
9394 * config/m32r/m32r.mt: Ditto.
9395 * config/i386/x86-64linux.mt: Ditto.
9396 * config/i386/nbsdelf.mt: Ditto.
9397 * config/i386/nbsd.mt: Ditto.
9398 * config/i386/i386lynx.mh: Ditto.
9400 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9402 * target.c (debug_print_register): New function. Handle oversize
9404 (debug_to_fetch_registers): Call.
9405 (debug_to_store_registers): Call.
9407 2002-05-03 Jim Blandy <jimb@redhat.com>
9409 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9410 (read_type): Doc fix.
9411 * gdbtypes.c (replace_type): Doc fix.
9413 * stabsread.c (multiply_defined_struct): New complaint.
9414 (read_struct_type): If the type we were passed isn't empty, or
9415 incomplete, don't read the new struct type into it; complain,
9416 and return the original type unchanged. Take a new `type_code'
9417 argument, which is the type code for the new type.
9418 (read_type): Rather than storing the type's type code here, pass
9419 it as an argument to read_struct_type, and let that take care of
9420 storing it. That way, we don't overwrite the original type code,
9421 so read_struct_type can use it to decide whether we're overwriting
9422 something we shouldn't.
9423 (complain_about_struct_wipeout): New function.
9425 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9427 * gdbarch.sh: Assert that gdbarch is non-NULL.
9428 * gdbarch.c: Regenerate.
9430 2002-05-03 Jason Merrill <jason@redhat.com>
9432 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9435 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9437 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9438 (x86_64_dwarf2gdb_regno_map_length),
9439 (x86_64_dwarf2_reg_to_regnum): Added.
9440 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9441 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9442 (_initialize_x86_64_tdep): Synced with the change above.
9443 (x86_64_skip_prologue): Reformulated message.
9445 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9447 * f-exp.y: Also use new prev_lexptr variable
9448 to improve error reporting. Based on Michael Snyder
9449 2002-04-24 dated patch to c-exp.y.
9450 * jv-exp.y: Likewise.
9451 * m2-exp.y: Likewise.
9453 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9455 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9456 we are dealing with vectors.
9458 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9460 * config/m68k/tm-nbsd.h: Obvious fix,
9461 correct machine name.
9463 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9465 * p-typeprint.c (pascal_type_print_base): Add support
9466 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9468 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9470 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9471 for fondamental pascal 'char' type.
9473 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9475 * p-lang.h (is_pascal_string_type): Declaration changed,
9476 new sixth argument of type char ** added.
9477 * p-lang.c (is_pascal_string_type): Implementation
9478 changed. Args length_pos, length_size, string_pos, char_size
9479 can now be NULL. New argument arrayname set to the field
9480 name of the char array. Return value set to char array
9481 field index plus one.
9482 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9483 is_pascal_string_type function.
9485 2002-05-02 Andrew Cagney <cagney@redhat.com>
9487 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9488 <cagney@redhat.com> change.
9489 * gdbarch.c: Regenerate.
9491 2002-05-02 Andrew Cagney <cagney@redhat.com>
9493 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9494 before probing for a new one. Detect errorenous gdbarch_init
9496 * gdbarch.c: Regenerate.
9498 2002-05-01 Andrew Cagney <cagney@redhat.com>
9500 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9501 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9502 * config/v850/tm-v850.h: Ditto. Update copyright.
9504 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9506 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9509 2002-04-30 Michael Snyder <msnyder@redhat.com>
9511 * arm-tdep.c: Whitespace clean-ups.
9512 (arm_skip_prologue): Fix thinko; two lines
9513 should have been removed as part of 4/24 change.
9515 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9517 * rs6000-tdep.c: Added comment describing how fpscr register
9518 numbers were chosen.
9520 2002-04-30 Michael Snyder <msnyder@redhat.com>
9522 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9524 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9526 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9527 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9528 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9530 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9532 From Louis Hamilton <hamilton@redhat.com>:
9533 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9534 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9535 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9536 not bfd-private xcoff data, to determine wordsize.
9537 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9539 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9541 GDB 5.2 released from 5.2 branch.
9543 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9545 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9546 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9547 (x86_64_register_info_table): Added comments with register numbers.
9549 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9551 * rs6000-tdep.c (rs6000_extract_return_value,
9552 rs6000_store_return_value): Handle returning vectors.
9553 (rs6000_gdbarch_init): Use
9554 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9555 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9557 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9559 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9560 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9562 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9564 * hpread.c (hpread_psymtab_to_symtab_1,
9565 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9566 with fprintf_unfiltered (gdb_stderr,...).
9568 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9570 * remote-array.c (printf_monitor, write_monitor,
9571 array_insert_breakpoint, array_remove_breakpoint ):
9572 Replace fprintf (stderr,...
9573 with fprintf_unfiltered (gdb_stderr,....
9574 * remote-es.c: Likewise.
9575 * remote-os9k.c: Likewise.
9576 * remote-st.c: Likewise.
9578 2002-04-28 Andreas Schwab <schwab@suse.de>
9580 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9581 linux-proc.o and gcore.o.
9583 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9585 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9586 code without frame pointers.
9588 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9590 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9593 2002-04-26 Ben Elliston <bje@redhat.com>
9595 * target.c (do_xfer_memory): Correct reference to the new option
9596 "trust-readonly-sections".
9598 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9600 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9601 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9602 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9604 (read_array_type): Record the fact that this array type is really a
9605 vector (i.e. are passed in by value).
9607 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9609 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9610 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9611 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9612 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9613 * alpha-linux-tdep.c: Include frame.h.
9614 (alpha_linux_sigcontext_addr): New function.
9615 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9616 alpha_linux_sigcontext_addr.
9617 * alpha-osf1-tdep.c: Include gdbcore.h.
9618 (alpha_osf1_sigcontext_addr): New function.
9619 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9620 alpha_osf1_sigcontext_addr.
9621 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9622 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9624 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9626 * stack.c (selected_frame_level):
9627 (select_frame): Do not set selected_frame_level.
9628 * frame.h (selected_frame_level): Delete declaration.
9630 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9632 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9633 convert_from_func_ptr-addr when AIX / PowerOpen.
9635 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9637 * valops.c (hand_function_call): Call
9638 generic_save_call_dummy_addr.
9639 * frame.h (generic_save_call_dummy_addr): Declare.
9640 * blockframe.c (struct dummy_frame): Add fields call_lo and
9642 (generic_find_dummy_frame): Check for PC in range call_lo to
9643 call_hi instead of entry_point_address.
9644 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9645 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9646 (generic_save_call_dummy_addr): New function.
9648 2002-04-24 David S. Miller <davem@redhat.com>
9650 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9651 sparc_skip_prologue.
9652 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9653 information to find prologue when possible.
9654 (sparc_prologue_frameless_p): Call examine_prologue directly.
9655 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9656 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9658 (SKIP_PROLOGUE): Likewise.
9660 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9662 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9663 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9664 indicate that the condition it was testing is always true.
9665 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9666 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9667 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9669 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9671 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9672 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9673 tdep->jb_pc and tdep->jb_elt_size.
9674 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9675 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9676 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9677 * alpha-nat.c (get_longjmp_target): Remove.
9678 (JB_ELEMENT_SIZE): Ditto.
9680 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9681 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9682 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9683 to alpha_get_longjmp_target.
9684 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9685 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9686 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9688 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9690 * README: Update to GDB 5.2.
9692 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9694 * gdbarch.sh (LC_ALL): Set to `c'.
9696 2002-04-25 Theodore A. Roth <troth@verinet.com>
9698 * avr-tdep.c: Ran through gdb_indent.sh.
9700 2002-04-25 Theodore A. Roth <troth@verinet.com>
9702 * MAINTAINERS: Add myself as AVR maintainer.
9703 * NEWS: Note new target avr.
9705 2002-04-25 Theodore A. Roth <troth@verinet.com>
9707 * Makefile.in: Add support for AVR target.
9708 * configure.tgt: Add support for AVR target.
9709 * avr-tdep.c: New file
9710 * config/avr/avr.mt: New file.
9712 2002-04-25 Theodore A. Roth <troth@verinet.com>
9714 * MAINTAINERS: Add myself to write-after-approval.
9716 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9718 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9719 with fprintf_unfiltered (gdb_stderr,....
9721 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9724 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9726 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9728 * p-exp.y: Also use new prev_lexptr variable
9729 to improve error reporting. Based on Michael Snyder
9730 2002-04-24 dated patch to c-exp.y.
9732 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9734 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9735 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9736 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9738 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9740 (FUNCTION_START_OFFSET): Remove.
9741 (BREAKPOINT): Ditto.
9743 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9745 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9748 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9750 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9751 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9752 alpha_linux_pc_in_sigtramp.
9753 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9754 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9755 alpha_osf1_pc_in_sigtramp.
9756 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9757 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9758 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9759 alphafbsd_pc_in_sigtramp.
9760 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9761 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9762 alphanbsd_pc_in_sigtramp.
9763 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9764 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9766 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9768 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9770 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9772 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9774 (alphanbsd-nat.o): New dependency list.
9775 (alphanbsd-tdep.o): Ditto.
9776 * NEWS: Note new native NetBSD/alpha configuration.
9777 * alphanbsd-nat.c: New file.
9778 * alphanbsd-tdep.c: Ditto.
9779 * configure.host (alpha*-*-netbsd*): New host.
9780 * configure.tgt (alpha*-*-netbsd*): New target.
9781 * config/alpha/nbsd.mh: New file.
9782 * config/alpha/nbsd.mt: Ditto.
9783 * config/alpha/nm-nbsd.h: Ditto.
9784 * config/alpha/tm-nbsd.h: Ditto.
9786 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9788 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9789 (alpha-osf1-tdep.o): New dependency list.
9790 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9791 and skip_sigtramp_frame members.
9792 * alpha-linux-tdep.c: Include gdbcore.h.
9793 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9794 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9795 * alpha-osf1-tdep.c: New file.
9796 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9798 (alpha_frame_past_sigtramp_frame): New function.
9799 (alpha_dynamic_sigtramp_offset): Ditto.
9800 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9801 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9802 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9803 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9804 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9805 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9806 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9807 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9808 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9809 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9810 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9811 to find_solib_trampoline_target.
9812 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9813 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9814 (SKIP_TRAMPOLINE_CODE): Remove.
9815 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9816 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9817 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9818 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9819 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9820 (PROC_SIGTRAMP_MAGIC): Ditto.
9821 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9822 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9823 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9824 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9825 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9827 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9829 * NEWS: Note that Alpha targets are now multi-arch.
9831 2002-04-24 Michael Snyder <msnyder@redhat.com>
9833 * parser-defs.h (prev_lexptr): New external variable.
9834 * parse.c (parse_exp_1): Set prev_lexptr to null before
9835 calling the language-specific parser.
9836 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9837 (yyerror): Use prev_lexptr in error reporting.
9839 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9841 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9842 * gregset.h: If FILL_FPXREGSET is defined, provide
9843 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9844 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9845 is defined, call fill_fpxregset.
9847 2002-04-24 Roland McGrath <roland@frob.com>
9849 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9850 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9851 (supply_gregset, supply_fpregset): New functions.
9853 * gnu-nat.c (gnu_find_memory_regions): New function.
9854 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9855 (gnu_xfer_memory): Add a cast.
9857 2002-04-24 Michael Snyder <msnyder@redhat.com>
9859 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9860 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9861 of argument regs ("str r(0123), [r11, #-nn"]).
9862 (arm_skip_prologue): Better handling for frameless functions.
9863 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9864 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9866 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9868 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9869 NUM_PSEUDO_REGS can be used.
9871 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9873 * arch-utils.h: Update copyright.
9875 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9876 * gdbarch.h, gdbarch.c: Re-generate.
9878 * inferior.h (IN_SIGTRAMP): Delete definition.
9879 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9880 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9882 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9883 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9884 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9885 (find_proc_framesize): Ditto.
9886 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9887 (alpha_init_extra_frame_info): Ditto.
9888 * infrun.c (handle_inferior_event): Ditto.
9889 (handle_inferior_event): Ditto.
9890 (check_sigtramp2): Ditto.
9891 * blockframe.c (create_new_frame): Ditto.
9892 (get_prev_frame): Ditto.
9893 * ppc-linux-tdep.c: Update comments.
9894 * i386-linux-tdep.c: Update comments.
9895 * breakpoint.c (bpstat_what): Update comment.
9897 2002-04-24 David S. Miller <davem@redhat.com>
9899 * i960-tdep.c (register_in_window_p): New function.
9900 (i960_find_saved_register): Use it instead of
9901 REGISTER_IN_WINDOW_P.
9902 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9904 * symtab.h (find_stab_function_addr): Kill extern.
9905 * minsyms.c (find_stab_function_addr): Remove from here...
9906 * dbxread.c: ... to here, and mark it static.
9908 2002-04-20 David S. Miller <davem@redhat.com>
9910 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9911 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9913 2002-04-21 David S. Miller <davem@redhat.com>
9915 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9916 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9917 (vx_write_register): Likewise.
9919 2002-04-23 J. Brobecker <brobecker@gnat.com>
9921 * source.c (is_regular_file): New function.
9922 (openp): Check wether file to open is a regular file
9923 to avoid opening directories.
9925 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9927 * findvar.c (extract_signed_integer): Cast printf argument
9928 to suppress format warning.
9929 (extract_unsigned_integer): Likewise.
9930 * infcmd.c (registers_info): Likewise.
9931 * top.c (get_prompt_1): Likewise.
9932 * valops.c (value_assign): Likewise.
9933 * valprint.c (print_decimal): Likewise.
9935 2002-04-22 H.J. Lu (hjl@gnu.org)
9937 * c-exp.y (typebase): Support
9939 [long|long long|short] [signed|unsigned] [int|]
9943 signed [long|long long|short] int
9945 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9947 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9949 * vax-tdep.h: New file.
9950 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9951 Make several routines static.
9952 (vax_get_saved_register): New function.
9953 (vax_gdbarch_init): New function.
9954 (_initialize_vax_tdep): Register vax_gdbarch_init.
9955 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9956 Remove macros now under the control of gdbarch.
9958 2002-04-22 Michael Snyder <msnyder@redhat.com>
9960 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9961 Some whitespace and coding standards tweaks.
9963 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9965 * vax-tdep.c: Include regcache.h.
9966 (vax_call_dummy_words): New.
9967 (sizeof_vax_call_dummy_words): New.
9968 (vax_fix_call_dummy): New function.
9969 (vax_saved_pc_after_call): Ditto.
9970 * config/vax/tm-vax.h: Don't include regcache.h.
9971 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9972 (CALL_DUMMY): Remove.
9973 (CALL_DUMMY_WORDS): Define.
9974 (SIZEOF_CALL_DUMMY_WORDS): Define.
9975 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9977 2002-04-18 Michael Snyder <msnyder@redhat.com>
9979 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9981 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9983 * vax-tdep.c (vax_frame_chain): New function.
9984 (vax_push_dummy_frame): Ditto.
9985 (vax_pop_frame): Ditto.
9986 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9987 (FRAMELESS_FUNCTION_INVOCATION): Use
9988 generic_frameless_function_invocation_not.
9989 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9990 (POP_FRAME): Use vax_pop_frame.
9992 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9994 * vax-tdep.c (vax_store_struct_return): New function.
9995 (vax_extract_return_value): Ditto.
9996 (vax_store_return_value): Ditto.
9997 (vax_extract_struct_value_address): Ditto.
9998 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9999 vax_store_struct_return.
10000 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10001 (STORE_RETURN_VALUE): Use vax_store_return_value.
10002 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10004 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10006 * vax-tdep.c (vax_frame_saved_pc): New function.
10007 (vax_frame_args_address_correct): Ditto.
10008 (vax_frame_args_address): Ditto.
10009 (vax_frame_locals_address): Ditto.
10010 (vax_frame_num_args): Move code to be in proximity to
10011 other frame-related functions.
10012 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10013 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10014 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10015 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10016 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10018 2002-04-22 H.J. Lu (hjl@gnu.org)
10020 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10023 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10025 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10026 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10027 (FRAME_INIT_SAVED_REGS): New macro.
10029 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10031 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10033 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10035 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10037 (fetch_osf_core_registers): Likewise.
10038 (supply_gregset): Likewise.
10040 2002-04-22 J. Brobecker <brobecker@gnat.com>
10042 * symfile.h (get_section_index): Define.
10043 * symfile.c (get_section_index): New function.
10044 * mdebugread.c (SC_IS_SBSS): New macro.
10045 (SC_IS_BSS): Return true for the scBss storage class only, as
10046 the scSBss storage class refers to the .sbss section.
10047 (parse_partial_symbols): Discard the symbols which associated
10048 section does not exist.
10049 Make sure to use the .sbss section index for symbols which
10050 storage class is scBss, rather than using the .bss section index.
10052 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10054 * vax-tdep.c: Update copyright years.
10055 (vax_register_name): New function.
10056 (vax_register_byte): Ditto.
10057 (vax_register_raw_size): Ditto.
10058 (vax_register_virtual_size): Ditto.
10059 (vax_register_virtual_type): Ditto.
10060 * config/vax/tm-vax.h: Update copyright years.
10061 (REGISTER_NAMES): Remove.
10062 (REGISTER_NAME): Define.
10063 (REGISTER_BYTE): Use vax_register_byte.
10064 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10065 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10066 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10068 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10070 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10072 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10074 2002-04-21 David S. Miller <davem@redhat.com>
10076 * arch-utils.c (generic_prologue_frameless_p): Kill
10077 SKIP_PROLOGUE_FRAMELESS_P code.
10078 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10080 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10081 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10082 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10084 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10085 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10086 (sparc_gdbarch_init): Pass it to
10087 set_gdbarch_prologue_frameless_p.
10089 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10091 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10092 (alphabsd-nat.o): New dependency list.
10094 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10096 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10098 (alpha-linux-tdep.o): New dependency list.
10099 (alphafbsd-tdep.o): Likewise.
10101 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10103 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10105 * alpha-tdep.c: ...from here.
10106 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10108 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10110 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10111 prototype from here...
10112 * alpha-tdep.h: ...to here.
10114 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10116 * frame.h (selected_frame_level): Document as deprecated.
10117 (frame_relative_level): Declare.
10118 * stack.c (frame_relative_level): New function.
10119 (selected_frame_level): Document as deprecated.
10120 (select_frame): Do not set the selected_frame_level.
10122 * stack.c (frame_info, record_selected_frame): Update.
10123 (frame_command, current_frame_command): Update.
10124 (up_silently_base, up_command, down_silently_base): Update.
10125 (down_command): Update.
10126 * inflow.c (kill_command): Update.
10127 * tracepoint.c (finish_tfind_command): Update.
10128 * corelow.c (core_open): Update.
10129 * thread.c (info_threads_command): Update.
10130 (do_captured_thread_select): Update.
10131 * infcmd.c (finish_command): Update.
10132 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10134 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10136 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10138 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10140 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10143 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10145 * alphafbsd-tdep.c: Update copyright years. Include
10147 (alphafbsd_use_struct_convention): Make static.
10148 (alphafbsd_init_abi): New function.
10149 (_initialize_alphafbsd_tdep): New function.
10150 * config/alpha/tm-fbsd.h: Update copyright years.
10151 (USE_STRUCT_CONVENTION): Remove.
10153 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10155 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10156 an Alpha ABI variant.
10157 (alpha_abi_handler_list): Declare.
10158 (alpha_gdbarch_register_os_abi): New function.
10159 (alpha_gdbarch_init): Give registered ABI variant handlers a
10160 chance to tweak the gdbarch once we have set up defaults.
10161 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10163 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10165 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10166 to standard_coerce_float_to_double.
10167 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10169 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10171 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10172 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10173 from gdbarch_tdep rather than a constant.
10174 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10175 the default text address for all Alpha Unix ABIs.
10176 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10177 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10179 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10181 * alpha-tdep.h: New file. Includes several Alpha target constants
10183 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10184 let gdbarch deal with.
10185 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10186 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10187 to dependency list.
10188 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10189 Alpha target register names.
10190 * alphabsd-nat.c: Likewise.
10191 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10192 Alpha target register names. Make serveral routines static.
10193 (alpha_get_saved_register): New function.
10194 (alpha_abi_names): New.
10195 (process_note_abi_tag_sections): New function.
10196 (get_elfosabi): New function.
10197 (alpha_gdbarch_init): New function.
10198 (alpha_dump_tdep): New function.
10199 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10201 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10203 * frame.c (find_saved_register): Delete #ifdef
10204 HAVE_REGISTER_WINDOWS code.
10205 * config/sparc/tm-sparc.h: Update comments.
10206 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10208 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10210 * i960-tdep.c (i960_find_saved_register): New function.
10211 (i960_get_saved_register): New function.
10212 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10213 (i960_get_saved_register): Declare.
10214 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10216 2002-04-20 David S. Miller <davem@redhat.com>
10218 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10220 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10222 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10223 instead of NUM_PSEUDO_REGS.
10225 2002-04-20 David S. Miller <davem@redhat.com>
10227 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10228 GDB_MULTI_ARCH_PARTIAL
10229 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10230 define, let tm-sp64.h do it.
10232 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10234 * frame.c (find_saved_register): Avoid a NULL pointer
10235 dereference and actually walk the frame list.
10237 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10239 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10240 sorted in most most-recent-used order. Document.
10241 * gdbarch.h, gdbarch.c: Regenerate.
10243 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10245 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10247 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10248 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10249 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10252 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10255 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10256 (build_builtin_type_vec128): Ditto.
10257 (append_composite_type_field): Fix calculation of type length in
10260 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10262 * config/djgpp/README: Update.
10264 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10267 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10269 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10270 (alpha_setup_arbitrary_frame): ...to this.
10271 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10272 for alpha_setup_arbitrary_frame.
10274 2002-04-18 Andrew Cagney <cagney@redhat.com>
10276 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10277 * gdbarch.h, gdbarch.c: Regenerate.
10279 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10280 * target.h (memory_breakpoint_from_pc): Update declaration.
10281 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10283 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10284 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10285 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10286 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10287 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10288 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10289 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10290 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10291 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10292 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10293 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10294 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10296 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10298 * monitor.c (monitor_insert_breakpoint): Ditto.
10299 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10301 * config/mcore/tm-mcore.h: Update copyright.
10302 * mem-break.c: Ditto.
10303 * xstormy16-tdep.c: Ditto.
10305 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10307 * p-exp.y: Add precedence rule for '^' token.
10308 This removes the shift/reduce conflicts.
10309 Remove the comment concerning these shift/reduce conflicts.
10311 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10313 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10314 (registers_powerpc_nofp): New register set for processors
10315 without floating point unit.
10317 2002-04-18 David S. Miller <davem@redhat.com>
10319 * MAINTAINERS: Add myself to write-after-approval.
10321 2002-04-17 Michael Snyder <msnyder@redhat.com>
10323 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10325 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10327 * rs6000-tdep.c (frame_initial_stack_address): Use
10328 frame_register_read to read the alloca_reg.
10330 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10332 * frame.c (find_saved_register): Find saved registers in the next
10336 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10338 * gdbarch.sh (LANG): Set to ``c''.
10340 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10342 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10344 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10346 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10349 * hpread.c (hpread_get_lntt): Add declaration.
10350 Also fix PR gdb/391.
10352 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10354 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10355 * aclocal.m4, configure: Re-generate.
10358 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10360 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10361 instead of tm_print_insn.
10363 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10365 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10367 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10369 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10370 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10371 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10373 2002-04-12 Don Howard <dhoward@redhat.com>
10375 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10376 max_user_call_depth.
10377 (init_cmd_lists): Initialize the new value;
10378 * cli/cli-script.c (execute_user_command): Limit the call depth of
10379 user defined commands. This avoids a core-dump when user commands
10380 are infinitly recursive.
10382 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10384 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10385 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10386 from tdep struct instead of DEFAULT_LR_SAVE.
10387 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10388 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10389 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10391 2002-04-12 Michael Snyder <msnyder@redhat.com>
10393 * Remote.c: Spelling fix.
10394 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10395 If no symbol found for "sbrk", try "_sbrk".
10396 (make_output_phdrs): Use bfd_section_name.
10397 (gcore_copy_callback): Use bfd_section_name.
10398 * eval.c: Indentation fix-ups.
10399 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10400 in case it gets applied to an address that is already
10401 in the instruction space.
10402 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10403 * symfile.c: Fix indentation, long lines.
10404 * source.c: White space fix-up.
10406 2002-04-12 Andrew Cagney <cagney@redhat.com>
10408 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10409 * frame.c (frame_register_read): New function. Return non-zero on
10411 (read_relative_register_raw_bytes_for_frame): Delete.
10412 (read_relative_register_raw_bytes): Delete.
10413 * frame.h (frame_register_read): Declare.
10414 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10415 * sh-tdep.c: Ditto.
10416 * infcmd.c (do_registers_info): Ditto.
10417 * hppa-tdep.c: Ditto.
10418 * rs6000-tdep.c: Ditto.
10419 * h8500-tdep.c: Ditto.
10420 * mips-tdep.c: Ditto.
10421 * h8300-tdep.c: Ditto.
10422 * z8k-tdep.c: Ditto.
10424 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10426 From Jimi X <jimix@watson.ibm.com>:
10427 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10430 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10432 From Jimi X <jimix@watson.ibm.com>:
10433 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10436 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10438 From Jimi X <jimix@watson.ibm.com>:
10439 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10440 register sets for these processor variants.
10442 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10444 * regformats/reg-ppc.dat: Support FPSCR.
10446 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10448 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10449 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10450 Add fpscr as an invalid/unfetchable register.
10451 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10452 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10453 (fill_fpregset): Add support for register fpscr.
10454 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10455 (fill_gregset): Account for the fact that register ``mq'' might
10457 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10458 (registers_power): Add fpscr to register set at slot 71.
10459 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10460 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10462 2002-04-11 Michael Snyder <msnyder@redhat.com>
10464 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10465 * configure: Regenerate.
10466 * config.in: Regenerate.
10467 * acconfig.h: Add define for _SYSCALL32.
10468 * core-sol2.c: Remove #define _SYSCALL32.
10469 * solib-legacy.c: Remove #define _SYSCALL32.
10471 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10473 * stack.c (select_frame): Cleanup internal error message, do not
10476 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10478 * stack.c (select_frame): Check that selected_frame and the
10479 specified level are as expected.
10480 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10482 * frame.h (struct frame_info): Add field `level'. Update
10484 Work-in-progress PR gdb/464.
10486 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10488 * maint.c (maint_print_section_info): Rename print_section_info.
10489 (print_bfd_section_info, print_objfile_section_info): Update.
10490 * inferior.h (struct gdbarch): Add opaque declaration.
10491 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10492 * gdbarch.h: Regenerate.
10494 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10496 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10497 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10498 (kernel_u_size): Added.
10499 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10500 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10502 2002-04-04 Jim Ingham <jingham@apple.com>
10504 * valarith.c (find_size_for_pointer_math): New function, either returns
10505 the size for a pointer's target, returns 1 for void *, or errors for
10507 (value_add, value_sub): use find_size_for_pointer_math.
10509 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10511 * linux-low.c (linux_look_up_symbols): New hook.
10512 (linux_target_ops): Add linux_look_up_symbols.
10513 * remote-utils.c (decode_address): New function.
10514 (look_up_one_symbol): New function.
10515 * server.c (handle_query): Call target look_up_symbols hook.
10516 * server.h (look_up_one_symbol): Add prototype.
10517 * target.h (struct target_ops): Add look_up_symbols hook.
10519 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10521 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10522 override FP_REGNUM with frame->fp. Update copyright.
10523 * parse.c (num_std_regs, std_regs): Delete.
10524 (target_map_name_to_register): Do not search std_regs. Update
10525 function description.
10526 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10527 declarations. Update copyright.
10530 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10532 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10533 after the last symbol in a block.
10535 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10537 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10538 is non zero as a found symbol.
10540 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10542 * findvar.c: Include "builtin-regs.h".
10543 (value_of_register): Call value_of_builtin_reg when applicable.
10544 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10545 (target_map_name_to_register): Call
10546 builtin_reg_map_name_to_regnum.
10547 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10548 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10549 (builtin_regs_h): Define.
10550 (builtin-regs.o): New target.
10551 (findvar.o): Add $(builtin_regs_h).
10552 * builtin-regs.c, builtin-regs.h: New files.
10553 * std-regs.c: New file.
10554 Partial fix for PR gdb/251.
10556 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10558 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10559 it's no longer required.
10561 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10563 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10565 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10567 From Jimi X <jimix@watson.ibm.com>:
10568 * rs6000-tdep.c (rs6000_software_single_step): Use
10569 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10570 and size. Use target_insert_breakpoint() and
10571 target_remove_breakpoint() to insert and remove breakpoints
10572 instead of explicit memory reads and writes.
10574 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10576 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10577 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10578 ELF_OBJECT_FORMAT ifdef.
10580 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10582 From Jimi X <jimix@watson.ibm.com>:
10583 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10585 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10587 From Jimi X <jimix@watson.ibm.com>:
10588 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10589 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10591 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10593 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10594 s/asprintf/xasprintf/.
10595 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10597 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10599 I believe Jeff Law denies responsability for this one:
10600 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10601 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10602 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10603 Work-around for PR gdb/366.
10605 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10607 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10608 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10609 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10611 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10613 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10614 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10617 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10619 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10622 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10624 * README (Reporting Bugs in GDB): Document the bug web page as the
10625 prefered way of submitting bugs.
10628 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10630 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10631 -1. Update comment.
10632 * gdbarch.h, gdbarch.c: Re-generate.
10634 2002-04-07 Andreas Schwab <schwab@suse.de>
10636 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10637 buffer to regcache_collect.
10639 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10641 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10642 * gdbarch.c, gdbarch.h: Re-generate.
10644 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10646 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10647 declaration. Fix -Werror.
10649 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10651 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10652 * gdbarch.c: Regenerate.
10654 2002-04-05 Michael Snyder <msnyder@redhat.com>
10656 * breakpoint.c (clear_command): Rewrite middle section to
10657 combine two loops with identical control conditions.
10658 Add a cleanup to eliminate a memory leak.
10659 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10661 2002-04-05 H.J. Lu (hjl@gnu.org)
10663 * solib-svr4.c (bkpt_names): Add "__start".
10665 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10667 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10668 as test for 64 bit target.
10670 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10672 * h8500-tdep.c (h8500_write_fp): Delete function.
10673 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10674 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10675 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10677 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10678 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10680 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10681 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10682 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10683 (d10v_write_fp): Delete function.
10684 * inferior.h (write_fp, generic_target_write_fp): Delete
10686 * regcache.c (generic_target_write_fp): Delete function.
10687 (write_fp): Delete function.
10688 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10689 * gdbarch.h, gdbarch.c: Regenerate.
10690 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10691 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10692 (sparc64_write_fp): Delete declaration.
10693 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10694 (h8500_write_fp): Delete declaration.
10696 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10698 * sparc-tdep.c (sparc64_write_fp): Delete.
10699 (sparc_push_dummy_frame): Replace write_fp call with code to store
10701 (sparc_gdbarch_init): Do not initialize write_fp.
10703 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10705 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10708 2002-03-29 Jim Blandy <jimb@redhat.com>
10710 * stack.c (get_selected_block): Add new argument `addr_in_block',
10711 used to return the exact code address we used to select the block,
10712 not just the block.
10713 * blockframe.c (get_frame_block, get_current_block): Same.
10714 * frame.h (get_frame_block, get_current_block,
10715 get_selected_block): Update declarations.
10716 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10717 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10719 2002-04-05 Michael Snyder <msnyder@redhat.com>
10721 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10724 2002-04-05 J. Brobecker <brobecker@gnat.com>
10726 * utils.c (xfullpath): New function.
10727 * defs.h (xfullpath): Add declaration.
10728 * source.c (openp): Use xfullpath in place of gdb_realpath to
10729 avoid resolving the basename part of filenames when the
10730 associated file is a symbolic link. This fixes a potential
10731 inconsistency between the filenames known to GDB and the
10732 filenames it prints in the annotations.
10733 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10734 to be able to match a filename with either the real filename, or
10735 the name of any symbolic link to this file.
10736 (lookup_partial_symtab): Ditto.
10738 2002-04-04 Michael Snyder <msnyder@redhat.com>
10740 * breakpoint.c: Add support for hardware breakpoints in overlays.
10741 (overlay_events_enabled): New state variable.
10742 (insert_breakpoints): Use overlay_events_enabled to decide
10743 whether to attempt to set a breakpoint at the overlay load addr.
10744 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10745 (remove_breakpoint): Use overlay_events_enabled to decide
10746 whether breakpoints need to be removed from overlay load addr.
10747 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10748 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10749 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10750 disable_overlay_breakpoints): Update overlay_events_enabled.
10752 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10754 * dwarf2read.c (struct function_range): New.
10755 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10756 (check_cu_functions): New.
10757 (read_file_scope): Initialize global function lists.
10758 Call dwarf_decode_line after processing children.
10759 (read_func_scope): Add to global function list.
10760 (dwarf_decode_lines): Call check_cu_functions everywhere
10761 record_line is called. Call record_line with a linenumber
10762 of 0 to mark sequence ends.
10764 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10766 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10767 change sync with glibc.
10769 2002-04-03 Jim Blandy <jimb@redhat.com>
10771 * configure.in: Call AC_C_INLINE.
10772 * configure: Regenerated.
10774 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10776 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10777 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10779 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10781 * NEWS: Mention gcore support on FreeBSD/i386.
10783 * fbsd-proc.c: New file.
10784 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10785 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10787 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10790 2002-03-29 Jim Blandy <jimb@redhat.com>
10792 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10793 unescaped newlines in string literals, but newer ones don't. So
10796 2002-03-26 Michael Snyder <msnyder@redhat.com>
10797 Andrew Cagney <cagney@redhat.com>
10799 * cli/cli-dump.c: New file. Dump memory to file,
10800 restore file to memory.
10801 * cli/cli-dump.h: New file.
10802 * Makefile.in: Add rules, dependencies for cli-dump.o.
10803 * NEWS: Mention new commands.
10805 2002-03-28 Michael Snyder <msnyder@redhat.com>
10807 * symfile.c (symbol_file_add): Move test for null symbols to later.
10809 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10811 From veksler at il.ibm.com:
10812 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10813 the xstrduped original path.
10816 2002-03-27 Michael Snyder <msnyder@redhat.com>
10818 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10819 * infcmd.c (_initialize_infcmd): Ditto.
10820 * language.c (_initialize_language): Ditto.
10821 * symfile.c (_initialize_symfile): Ditto.
10822 * top.c (_init_main): Ditto.
10823 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10825 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10827 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10828 vector registers handling.
10829 (skip_prologue): Handle new AltiVec instructions. Fill in new
10830 fields of frame data.
10831 (frame_get_saved_regs): Fill in information for AltiVec registers.
10833 2002-03-27 Jim Blandy <jimb@redhat.com>
10835 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10836 a function; leave this macro here to invoke that function.
10837 (symbol_init_mangled_name): Declaration for that function.
10838 * symtab.c (symbol_init_mangled_name): New function.
10840 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10842 * valarith.c: Replace strerror with safe_strerror.
10843 * tracepoint.c: Ditto.
10844 * lin-lwp.c: Ditto.
10845 * go32-nat.c: Ditto.
10847 * gnu-nat.c: Ditto.
10849 2002-03-27 Andreas Schwab <schwab@suse.de>
10851 * event-top.c (command_line_handler): Remove useless if.
10853 2002-03-27 Andreas Jaeger <aj@suse.de>
10855 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10858 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10860 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10861 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10862 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10863 (x86_64_linux_dr_get_status, supply_gregset),
10864 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10865 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10866 (x86_64_register_info_table): Add.
10867 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10868 (x86_64_register_raw_size, x86_64_register_virtual_type),
10869 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10870 general x86_64_register_info_table.
10871 (i386_gdbarch_init): gdbarch_register_bytes is now set
10872 dynamicaly during initialization.
10873 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10874 * gdbserver/linux-x86-64-low.c: Ditto.
10876 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10878 * gdbserver/server.c (main): Call target_signal_to_host_p
10879 and target_signal_to_host on signals received from the remote.
10880 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10881 target_signal_from_host on signals sent to the remote.
10882 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10883 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10885 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10887 * signals/signals.c: Include "server.h" in gdbserver build.
10888 (target_signal_from_name): Don't use STREQ.
10889 (_initialize_signals): Likewise. Don't include function in
10892 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10894 * signals.c: Moved to...
10895 * signals/signals.c: Here.
10896 * Makefile (signals.o): Update.
10898 2002-03-26 Jeff Law (law@redhat.com)
10900 * somread.c (som_symtab_read): Remove some commented out code and
10901 updated related comments. Do not set the minimal symbol table to
10902 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10903 in a dynamic executable.
10904 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10905 where we are unable to find the minimal symbol for the given
10908 2002-03-25 Jeff Law (law@redhat.com)
10910 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10912 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10914 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10916 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10918 * command.h: Update copyright.
10919 (struct cmd_list_element): Replace definition with opaque
10921 (enum cmd_types): Document that it will eventually be moved to
10923 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10924 (MALLOCED_REPLACEMENT): Delete macro.
10925 * Makefile.in (cli_decode_h): Add $(command_h).
10926 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10927 * top.c: Include "cli/cli-decode.h".
10928 * completer.c: Include "cli/cli-decode.h".
10929 * maint.c: Include "cli/cli-decode.h".
10930 * cli/cli-decode.h: Include "command.h".
10931 (enum command_class): Delete.
10932 (enum cmd_types): Comment out.
10933 (enum cmd_auto_boolean): Delete.
10934 (enum var_types): Delete.
10936 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10938 * cli/cli-decode.c: Include "gdb_assert.h".
10939 (add_set_or_show_cmd): New static function.
10940 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10941 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10942 all fields, such as func, from the set command.
10944 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10946 * MAINTAINERS (sh-elf): Change warning flag to -w.
10948 2002-03-23 Andrew Cagney <cagney@redhat.com>
10950 * defs.h (error): Add printf format attribute.
10951 * thread-db.c (thread_from_lwp): Fix error format string.
10952 * stack.c (parse_frame_specification): Ditto.
10953 * cli/cli-decode.c (undef_cmd_error): Ditto.
10954 * scm-lang.c (scm_lookup_name): Ditto.
10955 * tracepoint.c (trace_error): Ditto.
10956 * remote-utils.c (usage): Ditto.
10957 * remote.c (compare_sections_command): Ditto.
10960 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10962 * gdbtypes.c (append_composite_type_field): New function.
10963 (init_composite_type): New function.
10964 * gdbtypes.h (append_composite_type_field): Declare.
10965 (init_composite_type): Ditto.
10967 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10969 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10971 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10972 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10973 structure returning convention for SYSV ABI case, but not
10974 for GNU/Linux, FreeBSD, or NetBSD.
10976 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10978 * symtab.h (lookup_block_symbol): Add mangled_name argument
10981 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10982 with new mangled_name argument.
10983 * linespec.c (decode_line_1): Likewise.
10984 * valops (value_of_this): Likewise.
10985 * symtab.c (lookup_transparent_type): Likewise.
10986 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10987 (lookup_symbol): If we are given a mangled name, pass it down
10988 to lookup_symbol_aux.
10989 (lookup_block_symbol): If we are given a mangled name to check
10990 against, only return symbols which match it.
10992 2002-03-22 Christopher Faylor <cgf@redhat.com>
10994 * win32-nat.c (child_create_inferior): Check for proper shell to use
10995 here, in case the user changes it on the fly.
10996 (_initialize_inftarg): Remove shell path considerations.
10998 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11000 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11001 for gdbarch_max_register_raw_size and max_register_virtual_size.
11002 Adjust copyright year.
11004 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11006 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11007 in a function to cover the entire beginning of the function
11008 as well if it does not already.
11010 2002-03-21 Tom Rix <trix@redhat.com>
11012 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11013 (rs6000_ptrace64): Renamed from ptrace64.
11015 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11017 * gdbserver/remote-utils.c (remote_open): Don't call
11018 getprotobyname, we're all using TCP here so just use
11020 * gdbserver/gdbreplay.c (remote_open): Ditto.
11022 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11024 * regcache.c (_initialize_regcache): No need to call
11025 build_regcache() at this time; it gets called whenever
11026 the gdbarch changes.
11028 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11030 * sparc-nat.c: Include sys/param.h where possible.
11032 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11035 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11036 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11037 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11039 * stabsread.c (rs6000_builtin_type): Likewise.
11040 (read_sun_floating_type): Likewise.
11042 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11044 * stabsread.c (read_member_functions): Remove skip code for duplicate
11045 constructor/destructor methods. Use standard parsing for these
11046 methods and just do not chain them to the list of methods after
11049 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11051 * coffread.c: Remove redundant static declarations. Replace
11052 occurrences of `PTR' with `void *'.
11053 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11054 * top.h (quit_cover): Likewise.
11055 * defs.h (catch_errors): Likewise.
11057 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11059 * defs.h (XMALLOC): Define.
11060 * gdb-events.sh (XMALLOC): Delete macro.
11061 * gdb-events.c, gdb-events.h: Regenerate.
11062 * gdbarch.sh (XMALLOC): Delete macro.
11063 * gdbarch.c: Regenerate.
11064 * serial.c (XMALLOC): Delete macro.
11065 * ui-file.c (XMALLOC): Ditto.
11066 * ser-unix.h (XMALLOC): Ditto.
11067 * sh-tdep.c (XMALLOC): Ditto.
11068 * ui-out.c (XMALLOC): Ditto.
11069 * utils.c (XMALLOC): Ditto.
11070 * i386-tdep.c (XMALLOC): Ditto.
11071 * gdb-events.c (XMALLOC): Ditto.
11072 * d10v-tdep.c (XMALLOC): Ditto.
11073 * cli-out.c (XMALLOC): Ditto.
11075 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11076 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11077 * ui-file.c, ui-out.c: Ditto.
11079 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11081 * command.h (struct cmd_list_element): Add field context.
11082 (set_cmd_context, get_cmd_context): Declare.
11083 * cli/cli-decode.h: Ditto.
11084 * cli/cli-decode.c (get_cmd_context): New function.
11085 (set_cmd_context): New function.
11086 (add_cmd): Initialize context.
11087 Part of fixing PR gdb/145 and PR gdb/146.
11089 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11091 * cli/cli-decode.c (cmd_type): New function.
11092 * command.h (cmd_type): Declare.
11093 * infrun.c (set_schedlock_func): Call function cmd_type.
11094 * kod.c (kod_set_os): Call cmd_type.
11095 * cris-tdep.c (cris_version_update): Use function cmd_type.
11096 (cris_mode_update, cris_abi_update): Ditto.
11098 * command.h: (execute_cmd_post_hook): Declare.
11099 (execute_cmd_pre_hook): Declare.
11100 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11101 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11102 functions. Execute pre/post hook while ensuring that afterwords
11103 hook_in is cleared.
11104 * top.c (execute_command): Use execute_cmd_post_hook, and
11105 execute_cmd_pre_hook to execute pre/post commands.
11106 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11108 (hook_stop_stub): Call execute_cmd_pre_hook.
11110 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11112 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11113 set'' and this leads to a core dump. Move xstrdup of
11114 operating_system to after check that it is not NULL.
11116 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11118 * kod.c (kod_set_os): Remove unnecessary check that
11119 ``command->type'' is set_cmd.
11121 * valprint.c (set_input_radix): Use input_radix.
11122 (set_output_radix): Use output_radix.
11123 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11126 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11128 * value.h (struct value): Delete field ``substring_addr''. Change
11129 aligner fields to force_doublest_align, force_longest_align,
11130 force_core_addr_align and force_pointer_aligh.
11132 * value.h (struct value): Fix typo in above change.
11134 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11136 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11137 to fix internal_error from ``maintenance print architecture''.
11139 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11141 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11142 for gcc versions after gcc-2.8.1.
11144 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11146 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11147 for method resolution. Restore adjustment of ``this'' pointer after
11148 calling value_struct_elt, which was accidentally removed during the
11151 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11153 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11155 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11156 get_saved_register.
11157 * value.h (value_of_register): Update.
11159 2002-03-14 Richard Henderson <rth@redhat.com>
11161 * configure.in: Detect declaration for canonicalize_file_name.
11162 * utils.c (canonicalize_file_name): Declare, if needed.
11163 (gdb_realpath): Prefer realpath if available and usable.
11164 * config.in, configure: Rebuild.
11166 2002-03-14 Richard Henderson <rth@redhat.com>
11168 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11169 a constant array bound.
11171 * MAINTAINERS: Add myself to write-after-approval.
11173 2002-03-14 Michael Snyder <msnyder@redhat.com>
11175 * symfile.c (syms_from_objfile): Return immediately if no syms.
11176 (symbol_file_add): Return immediately if no syms.
11177 (find_sym_fns): Return immediately if no syms.
11179 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11181 * gdbserver/remote-util.c (remote_open): Print remote-side's
11182 IP address when remote debugging over the network.
11184 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11186 * config/sparc/fbsd.mh: Fix copyright.
11187 * config/sparc/fbsd.mt: Likewise.
11189 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11191 * MAINTAINERS: Fix typo in name of gdb warnings option.
11192 (x86-64): Fix formating so that this can be parsed by awk.
11194 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11196 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11197 * defs.h: Include "gdb/signals.h".
11198 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11200 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11202 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11203 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11206 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11207 Don Howard <dhoward@redhat.com>
11209 * mips-tdep.c (ST0_FR): Define.
11210 (mips2_fp_compat): New function, temporarily disabled.
11211 (mips_read_fp_register_single): New function.
11212 (mips_read_fp_register_double): New function.
11213 (mips_print_register): Use them.
11214 (do_fp_register_row): Likewise.
11216 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11218 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11221 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11223 * stabsread.c (read_member_functions): Fix is_stub test for
11224 static member functions, improve comment.
11226 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11228 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11229 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11230 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11231 commands that set boolean values.
11232 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11233 (arm_rdi_resume): Always initialize PC.
11234 (arm_rdi_open): Don't use rslt as a boolean.
11235 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11236 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11237 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11238 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11240 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11242 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11243 * configure: Rebuilt.
11245 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11247 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11248 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11250 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11252 * cli/cli-decode.c (set_cmd_completer): New function.
11253 * command.h (set_cmd_completer): Declare.
11254 * cli/cli-decode.h (set_cmd_completer): Ditto.
11256 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11257 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11258 * win32-nat.c (_initialize_inftarg): Ditto.
11259 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11260 * proc-api.c (_initialize_proc_api): Ditto.
11261 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11262 * source.c (_initialize_source): Ditto.
11263 * exec.c (_initialize_exec): Ditto.
11264 * solib.c (_initialize_solib): Ditto.
11265 * top.c (init_main): Ditto.
11266 * tracepoint.c (_initialize_tracepoint): Ditto.
11267 * symfile.c (_initialize_symfile): Ditto.
11268 * printcmd.c (_initialize_printcmd): Ditto.
11269 * infcmd.c (_initialize_infcmd): Ditto.
11270 * corefile.c (_initialize_core): Ditto.
11272 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11274 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11276 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11278 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11280 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11282 * NEWS: Update headings, 5.2 has branched.
11284 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11286 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11287 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11288 (register_addr, REGISTER_RAW_SIZE): Likewise.
11289 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11290 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11292 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11294 * MAINTAINERS (x86-64): Add myself.
11295 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11296 changed value_ptr -> struct value *
11298 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11300 * configure.host (sparc64-*-freebsd): Add.
11301 * configure.tgt: Likewise.
11302 * config/sparc/fbsd.mh: New file.
11303 * config/sparc/fbsd.mt: Likewise.
11304 * config/sparc/nm-fbsd.h: Likewise.
11305 * config/sparc/tm-fbsd.h: Likewise.
11307 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11309 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11310 regformats/reg-s390x.dat.
11312 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11314 * utils.c: Add FIXME explaining true/false problem.
11316 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11318 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11320 2002-02-28 Michael Chastain <mec@shout.net>
11322 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11324 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11326 * gdbserver/linux-s390-low.c: New file.
11327 * regformats/reg-s390.dat: New file.
11328 * regformats/reg-s390x.dat: New file.
11329 * gdbserver/configure.srv: Add S/390.
11330 * gdbserver/Makefile.in: Add S/390.
11331 * configure.tgt: Enable gdbserver for S/390.
11333 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11335 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11336 first line of the doc string for "info dos", except at the end of
11337 the sentence, since the short help stops at the first period.
11339 2002-02-28 Jason Merrill <jason@redhat.com>
11341 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11343 2002-02-27 Fred Fish <fnf@redhat.com>
11345 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11346 comment (dumy -> dummy).
11348 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11350 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11352 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11354 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11356 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11358 * gdbserver/acconfig.h: New file.
11359 * gdbserver/i387-fp.c: New file.
11360 * gdbserver/i387-fp.h: New file.
11361 * gdbserver/linux-x86-64.c: New file.
11362 * regformats/reg-x86-64.dat: New file.
11363 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11364 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11365 * gdbserver/configure.in: Add support for regsets.
11366 * gdbserver/config.in: Regenerate.
11367 * gdbserver/configure: Regenerate.
11368 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11369 * gdbserver/linux-low.h: New file.
11370 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11372 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11373 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11374 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11375 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11376 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11377 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11378 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11379 "i387-fp.h". Add PTRACE_GETREGS and friends.
11380 * gdbserver/regcache.c (supply_register): New function.
11381 (supply_register_by_name): New function.
11382 (collect_register): New function.
11383 (collect_register_by_name): New function.
11385 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11387 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11388 (config.status): Add configure.srv dependency.
11389 (server_h): Add config.h dependency.
11391 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11393 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11394 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11395 * gdbserver/configure.srv: Change i386-*-linux* to use
11398 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11400 * x86-64-tdep.c: Re-indent. Update copyright date.
11402 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11404 From Michal Ludvig <mludvig@suse.cz>:
11405 * x86-64-tdep.c (value.h): Delete.
11406 (gdb_assert.h): Include.
11407 (x86_64_register_convert_to_virtual,
11408 x86_64_register_convert_to_raw ): Add check which lets only
11409 floating-point values to be converted.
11410 (value_push): Delete.
11411 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11412 (i386_gdbarch_init): Number of register_bytes fixed.
11414 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11416 * MAINTAINERS: Add x86-64 target.
11418 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11420 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11421 * osfsolib.c (solib_map_sections): Ditto.
11422 * irix5-nat.c (solib_map_sections): Ditto.
11423 * corelow.c (gdb_check_format): Ditto.
11424 * symfile.c (symfile_bfd_open): Ditto.
11425 * solib.c (solib_map_sections): Ditto.
11428 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11430 * remote.c (_initialize_remote): By default, disable ``e'' and
11431 ``E'' step out-of-range packets.
11433 2002-02-26 Andreas Schwab <schwab@suse.de>
11435 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11436 m68k_linux_frame_saved_pc.
11437 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11439 (SIGCONTEXT_PC_OFFSET): Remove.
11440 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11441 m68k_linux_sigtramp_saved_pc): New functions.
11442 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11443 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11444 (UCONTEXT_PC_OFFSET): Define.
11445 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11446 non-RT and RT signal trampolines.
11448 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11450 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11451 (TARGET_NBPG, STACK_END_ADDR): Delete
11452 (VARIABLES_INSIDE_BLOCK): Delete.
11454 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11456 * utils.c (perror_with_name): Make string parameter constant.
11457 (print_sys_errmsg): Ditto.
11459 * defs.h (perror_with_name): Update.
11460 (print_sys_errmsg): Update.
11463 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11465 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11466 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11468 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11470 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11471 if it already matches the current architecture from the exec file.
11472 Include arch-utils.h for gdbarch_info_init prototype.
11473 * Makefile.in (rs6000-nat.o): Update dependencies.
11475 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11477 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11478 list of exported variables.
11480 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11482 * gdbserver/configure.srv: New file.
11483 * gdbserver/configure.in: Use configure.srv instead
11484 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11486 * gdbserver/configure: Regenerated.
11487 * gdbserver/terminal.h: New file.
11488 * gdbserver/Makefile.in: Update for configure changes. Remove
11489 more unneeded include paths.
11491 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11493 From wiz at danbala:
11494 * config/sparc/tm-sp64.h: Fix grammar and typos.
11497 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11499 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11500 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11501 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11502 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11503 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11504 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11505 * s390-tdep.c: Ditto.
11506 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11507 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11508 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11509 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11510 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11511 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11512 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11513 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11514 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11515 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11518 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11520 * lin-thread.c: Delete file.
11521 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11522 to gdb_proc_service.h.
11523 * configure: Re-generate.
11525 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11526 * serial.c (serial_open): Delete check for "ocd".
11529 * Makefile.in (linux-thread.o): Delete target.
11530 * linux-thread.c: Delete file.
11532 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11533 renamed SH files to be consistent.
11535 * symtab.c (sort_search_symbols): Use xfree.
11537 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11539 * arm-linux-tdep.c (arm_linux_init_abi): Register
11540 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11541 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11542 definition with undef, since we don't want the sysvr4 definition.
11543 (SKIP_TRAMPOLINE_CODE): Likewise.
11545 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11547 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11549 * configure.in: (AC_CHECK_FUNCS) Added test for
11550 canonicalize_file_name Regenerated.
11551 * config.in, configure: Regenerated.
11552 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11553 defined use canonicalize_file_name.
11555 2002-02-23 Michael Chastain <mec@shout.net>
11557 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11559 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11561 * README: Remove references to cygnus.com.
11562 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11563 dot com'' form. Remove references to cygnus.com and sourceware.
11565 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11567 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11568 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11569 1003.1-2001 no longer allows "head -1".
11570 * gdb/Makefile.in (version.c): Likewise.
11571 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11572 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11573 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11575 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11577 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11578 * command.h (cmd_cfunc_eq): Declare.
11579 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11581 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11582 ``struct cmd_list_element *''.
11583 * cli/cli-cmds.c (is_complete_command): Update. Use
11585 * top.c (execute_command): Pass the command to
11586 is_complete_command.
11587 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11589 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11591 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11592 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11593 architecture defines.
11594 * s390-tdep.c (s390_gdbarch_init): Likewise.
11596 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11598 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11599 (arm_linux_push_arguments): Likewise.
11600 (arm_linux_init_abi): Register them. Also register linux-specific
11602 (find_minsym_and_objfile): Use strcmp, not STREQ.
11603 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11604 (arm_linux_call_dummy_words): Delete declaration.
11605 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11606 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11608 (LOWEST_PC): Delete.
11610 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11612 * maint.c (print_section_info): Do not prepend `0x' to filepos
11613 output, it will be handled by local_hex_string_custom.
11615 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11617 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11618 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11619 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11621 2002-02-22 Jim Blandy <jimb@redhat.com>
11623 Indicate that the bcache functions don't change the strings
11625 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11626 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11628 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11630 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11632 2002-02-21 Christopher Faylor <cgf@redhat.com>
11634 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11635 find the complete path to a loaded DLL.
11637 2002-02-21 Fred Fish <fnf@redhat.com>
11639 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11640 that marks the end of the range of a function, enter a line number
11641 entry that has a line number of zero and a PC offset that matches
11642 the end of the function. This starts a range of PC's for which no
11643 line number information is known.
11644 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11645 PC's for which no line number info is found (line number is zero)
11646 then we didn't find any valid line information.
11647 * symtab.h: Document use of zero line number entry.
11649 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11651 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11652 (have_ptrace_getvrregs): Define for run time checks.
11653 (gdb_vrregset_t): New type for Altivec register handling.
11654 (fetch_register, store_register): Fetch/store altivec register
11656 (fetch_altivec_register, store_altivec_register): New functions.
11657 (supply_vrregset, fill_vrregset): New functions.
11658 (fetch_altivec_registers, store_altivec_registers): New functions.
11659 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11662 2002-02-21 Jiri Smid <smid@suse.cz>
11664 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11666 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11668 * Makefile.in (armnbsd-nat.o): Update dependencies.
11669 * armnbsd-nat.c (supply_gregset): New function. Common code to
11670 supply the integer register set.
11671 (supply_fparegset): New function. Similar for FPA registers.
11672 (fetch_regs, fetch_fp_regs): Use them.
11673 (fetch_core_registers): Likewise.
11674 (fetch_elfcore_registers): New function.
11675 (arm_netbsd_elfcore_fns): New core-file type specification.
11676 (_initialize_arm_netbsd_nat): Register it.
11678 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11680 * armnbsd-nat.c: Include gdbcore.h.
11681 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11682 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11683 'void' to declaration, to shut up ARI.
11684 (fetch_core_registers): Make static. Rewrite using supply_register.
11685 (arm_netbsd_core_fns): New core-file type specification.
11686 (_initialize_arm_netbsd_nat): New function.
11688 2002-02-21 Christopher Faylor <cgf@redhat.com>
11690 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11693 2002-02-20 Christopher Faylor <cgf@redhat.com>
11695 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11698 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11700 * jv-exp.y (parse_number): Change type of implicit longs
11701 to builtin_type_uint64.
11703 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11705 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11706 to be an integer instead of a `union wait'.
11708 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11710 * mips-linux-nat.c: Call the operating system GNU/Linux.
11711 * mips-linux-tdep.c: Likewise.
11712 * mips-tdep.c: Likewise.
11714 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11717 * jv-exp.y (parse_number): Handle 64-bit integers.
11719 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11721 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11722 AC_STDC_HEADERS to AC_HEADER_STDC.
11723 * gdbserver/configure: Regenerated.
11725 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11727 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11729 * sparc-tdep.c (get_longjmp_target): Likewise.
11731 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11733 * News: Add news about ARM and Multi-arch. Mention the new target
11736 2002-02-19 Jim Blandy <jimb@redhat.com>
11738 * stabsread.c (error_type_complaint): Improve error message.
11740 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11742 * gdbserver/README: Update documentation.
11743 * gdbserver/configure.in: Update configury to match documentation.
11744 * gdbserver/Makefile.in: Likewise.
11745 * gdbserver/configure: Regenerated.
11746 * gdbserver/aclocal.m4: New file, generated by aclocal.
11747 * gdbserver/config.in: New file, generated by autoheader.
11749 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11751 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11754 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11756 * arm-tdep.h (enum arm_float_model): New enum.
11757 (struct gdbarch_tdep): Add fp_model.
11758 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11759 up floating-point conversions until we know the floating-point model
11760 in use by the inferior. Don't complain about being unable to
11761 determine the ABI of the inferior when we don't have one.
11762 (arm_extract_return_value): Support different floating-point models.
11763 (arm_store_return_value): Likewise.
11764 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11766 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11768 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11770 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11771 of ``current_gdbarch''.
11773 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11775 * armnbsd-nat.c : ANSIfy all function declarations.
11776 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11777 (fetch_inferior_registers): Re-implement in terms of above.
11778 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11779 (store_inferior_registers): Re-implement in terms of above.
11781 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11783 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11785 * arm-linux-tdep.c: Likewise.
11786 * config/arm/tm-linux.h: Likewise.
11788 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11790 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11791 * config/arm/nbsd.mt (TM_FILE): Delete.
11792 * config/arm/tm-nbsd.h: Delete.
11794 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11796 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11797 Initialize CALL_DUMMY_LENGTH.
11799 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11801 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11803 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11804 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11805 defines one thing and that is incorrect for this port.
11806 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11808 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11810 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11812 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11814 * win32-nat.c (display_selector): New function. Displays information
11815 about the information returned by GetThreadSelectorEntry API function.
11816 (display_selectors): New function. Displays the infomation of
11817 the selector given as argument, or of CS, DS ans FS selectors
11818 if no argument is given.
11819 ( _initialize_inftarg): Add "w32" as info prefix command.
11820 Add "info w32 selector" as command calling display_selectors.
11822 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11824 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11825 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11828 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11830 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11832 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11834 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11835 (arm_fix_call_dummy): Call it.
11836 (arm_call_dummy_breakpoint_offset): Delete.
11837 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11838 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11840 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11842 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11843 Default to func_frame_chain_valid.
11844 * gdbarch.h, gdbarch.c: Re-generate.
11845 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11847 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11849 * ppc-linux-nat.c: Update copyright.
11850 (fetch_register, store_register): Add tid parameter, don't compute
11852 (fetch_ppc_registers, store_ppc_registers): Add tid
11853 parameter. Pass it along to callees.
11854 (fetch_inferior_registers, store_inferior_registers): Compute tid
11855 here, and pass it to calleed functions.
11856 (fill_gregset, supply_fpregset): Clean up formatting.
11858 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11860 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11861 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11863 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11865 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11866 * gdbarch.c gdbarch.h: Regenerate.
11867 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11869 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11870 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11871 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11873 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11874 * arm-tdep.c (arm_get_longjmp_target): New function.
11875 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11876 this to a positive value register arm_get_longjmp_target as the
11878 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11879 (arm_linux_init_abi): Set up longjmp description in tdep.
11880 * armnbsd-nat.c (get_longjmp_target): Delete.
11881 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11882 description in tdep.
11883 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11884 (get_longjmp_target): Delete declaration.
11885 (GET_LONGJMP_TARGET): Delete.
11886 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11887 (GET_LONGJMP_TARGET): Delete.
11889 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11891 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11892 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11893 of ``current_gdbarch''.
11895 2002-02-17 Tom Tromey <tromey@redhat.com>
11897 * cli/cli-cmds.c (compare_strings): New function.
11898 (complete_command): Only print each unique item once.
11899 * completer.h (complete_line): Declare.
11900 * completer.c (complete_line): New function.
11901 (line_completion_function): Use it.
11903 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11905 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11906 * gdbarch.h, gdbarch.c: Re-generate.
11908 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11910 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11912 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11914 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11915 * valops.c (value_arg_coerce): Don't take the address of a reference
11916 to convert an argument to a reference.
11918 2002-02-15 Christopher Faylor <cgf@redhat.com>
11920 * win32-nat.c (get_image_name): New function.
11921 (handle_load_dll): Use get_image_name function.
11922 (get_child_debug_event): Avoid registering debug events until possibly
11923 execed process is started.
11924 (child_create_inferior): Allow invocation via shell so that command
11925 line redirection, etc. works ok.
11926 (_initialize_inftarg): Add new command: "set shell" to control whether
11927 a shell is used to start a process.
11929 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11931 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11932 instead of find_register_by_number.
11933 (cannot_store_register): Likewise.
11935 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11937 * dwarf2read.c: Replace fprintf (stderr, ...) by
11938 fprintf_unfiltered (gdb_stderr, ...).
11940 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11942 * gdbserver/gdbserver.1: Document --attach.
11944 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11946 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11948 * arm-tdep.c (arm_default_arm_le_breakpoint)
11949 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11950 (arm_default_thumb_be_breakpoint): New. Initialize them from
11951 traditional breakpoint defines.
11952 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11953 (arm_gdbarch_init): Initialize new breakpoint variables.
11954 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11955 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11956 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11957 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11959 (arm_netbsd_init_abi_common): ... here; new function.
11960 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11961 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11962 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11963 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11965 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11967 * arm-tdep.h (enum arm_abi): New enum.
11968 (struct gdbarch_tdep): New structure.
11969 (LOWEST_PC): Provide a default.
11970 (arm_gdbarch_register_os_abi): Declare new function.
11971 * arm-tdep.c (arm_abi_names): New array.
11972 (process_note_abi_tag_sections): New function.
11973 (get_elfosabi): New function.
11974 (arm_gdbarch_register_os_abi): New function.
11975 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11976 support for that ABI has been built in, then call the appropriate
11977 configuration routine. Use gdbarch_num_regs() to get the number
11979 (arm_dump_tdep): New function.
11980 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11981 place-holder functions.
11982 (_initialize_arm_tdep): Register them.
11983 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11985 * armnbsd-tdep.c: New file.
11986 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11987 * config/arm/nbsd.mt (TDEPFILES): Add it.
11988 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11990 * armnbsd-nat.c: Include regcache.h.
11991 * Makefile.in (armnbsd-nat.o): Update dependency list.
11993 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11995 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11997 * gdbserver/Makefile.in: Fix typos in target rules.
11999 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12001 Fix part of PR gdb/267.
12002 * linespec.c (find_methods): Handle constructors specially for now.
12004 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12006 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12008 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12009 standard_coerce_float_to_double().
12011 2002-02-14 Christopher Faylor <cgf@redhat.com>
12013 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12016 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12018 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12019 find_variant_by_name, because it confuses the multiarch
12020 framework. Return NULL if there isn't an architecture with the
12021 user supplied name, instead of forcing a different one without
12022 recording the change with the multiarch machinery.
12023 (find_variant_by_name): Delete.
12025 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12027 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12028 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12030 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12032 * stack.c (print_frame_info_base): When calling
12033 print_frame_info_listing_hook, set current_source_symtab.
12035 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12037 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12038 and remove unused $(INCLUDE_DIR).
12039 Add regcache.c to OBS.
12040 Add generated register protocol files to clean target.
12041 Update dependencies for new objects, obsolete old target code.
12043 * gdbserver/linux-low.c: Remove all platform-specific code to
12044 new files. Remove various dead code. Update to use regcache
12046 * gdbserver/remote-utils.c (fromhex): Add return statement
12048 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12050 (input_interrupt): Add integer parameter to match prototype
12051 of a signal handler.
12052 (outreg): Use register_data ().
12053 (prepare_resume_reply): Use gdbserver_expedite_regs.
12054 * gdbserver/server.c (main): Dynamically allocate own_buf because
12055 PBUFSIZ is no longer constant. Use registers_to_string () and
12056 registers_from_string ().
12057 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12058 for error (), fatal (), and warning (). Update definition of
12059 PBUFSIZ to use regcache functionality. Add include guard.
12060 * gdbserver/utils.c (fatal): Add missing ``const''.
12061 (warning): New function.
12063 * regformats/regdat.sh: Include "regcache.h" in generated files.
12064 Provide init_registers () function.
12065 * regformats/regdef.h: Add prototype for set_register_cache ().
12068 * gdbserver/linux-arm-low.c: New file.
12069 * gdbserver/linux-i386-low.c: New file.
12070 * gdbserver/linux-ia64-low.c: New file.
12071 * gdbserver/linux-m68k-low.c: New file.
12072 * gdbserver/linux-mips-low.c: New file.
12073 * gdbserver/linux-ppc-low.c: New file.
12074 * gdbserver/linux-sh-low.c: New file.
12076 * gdbserver/regcache.c: New file.
12077 * gdbserver/regcache.h: New file.
12079 * gdbserver/low-linux.c: Removed obsolete file.
12081 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12083 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12084 * config/i386/linux.mt: Likewise.
12085 * config/ia64/linux.mt: Likewise.
12086 * config/m68k/linux.mh: Likewise.
12087 * config/powerpc/linux.mh: Likewise.
12088 * config/mips/linux.mt: Likewise.
12090 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12092 * config/i386/i386lynx.mh: Mark gdbserver variables
12093 as (currently) obsolete for this target.
12094 * config/i386/nbsd.mt: Likewise.
12095 * config/i386/nbsdelf.mt: Likewise.
12096 * config/m32r/m32r.mt: Likewise.
12097 * config/m68k/m68klynx.mh: Likewise.
12098 * config/m68k/nbsd.mt: Likewise.
12099 * config/m68k/sun3os4.mh: Likewise.
12100 * config/mips/vr5000.mt: Likewise.
12101 * config/ns32k/nbsd.mt: Likewise.
12102 * config/pa/hppabsd.mh: Likewise.
12103 * config/pa/hppaosf.mh: Likewise.
12104 * config/powerpc/nbsd.mt: Likewise.
12105 * config/rs6000/rs6000lynx.mh: Likewise.
12106 * config/s390/s390.mt: Likewise.
12107 * config/s390/s390x.mt: Likewise.
12108 * config/sparc/sparclynx.mh: Likewise.
12109 * config/sparc/sun4os4.mh: Likewise.
12110 * config/i386/x86-64linux.mt: Likewise.
12111 * config/sparc/linux.mh: Likewise.
12113 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12115 * configure.tgt: Configure gdbserver only for known working
12116 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12117 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12118 SUBDIRS if it is configured. Update comment for ${nativefile}.
12119 * configure: Regenerated.
12121 2002-02-13 Michael Snyder <msnyder@redhat.com>
12123 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12125 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12126 (default_gcore_mach): Just return 0, work around a problem in bfd.
12127 (default_gcore_target): OK to return NULL if exec_bfd is null.
12128 (make_mem_sec): Use a cast, avoid a warning.
12130 * procfs.c (find_memory_regions_callback): Use a cast instead of
12131 calling host_pointer_to_address (which complains if
12132 sizeof (host pointer) != sizeof (target pointer)).
12133 (procfs_make_note_section): Avoid overflow in psargs string.
12135 * procfs.c (procfs_make_note_section): Make the default
12136 implementation return an error.
12138 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12140 * procfs.c (procfs_make_note_section): Provide a default definition
12141 (for alpha-dec-osf4.0f). Fix typos.
12143 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12145 * linux-proc.c: Add include of regcache.h.
12146 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12148 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12150 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12151 * memattr.c (create_mem_region): Disallow useless empty region.
12152 Regions are half-open intervals, so allow [A..B) [B..C) as
12155 2002-02-13 Michael Chastain <mec@shout.net>
12157 * defs.h: Kill CONST_PTR.
12158 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12159 * c-lang.c (c_builtin_types): Likewise.
12160 * ch-lang.c (ch_builtin_types): Likewise.
12161 * f-lang.c (f_builtin_types): Likewise.
12162 * language.c (unknown_builtin_types): Likewise.
12163 * m2-lang.c (m2_builtin_types): Likewise.
12164 * p-lang.c (pascal_builtin_types): Likewise.
12165 * scm-lang.c (c_builtin_types): Likewise.
12167 2002-02-13 Keith Seitz <keiths@redhat.com>
12169 * arm-tdep.h (arm_get_next_pc): Add declaration.
12171 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12173 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12174 with other related struct-returning functions.
12175 (arm_extract_struct_value_address): New function.
12176 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12177 initialize float_format, double_format and long_double_format as
12178 appropriate to the endianness of the target.
12179 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12180 (arm_use_struct_convention): Delete declaration.
12181 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12183 2002-02-13 Keith Seitz <keiths@redhat.com>
12185 * defs.h (core_addr_to_string_nz): New function.
12187 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12189 Apply missing bits of 2002-01-15 patch.
12190 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12191 (fill_fpregset): Use i387_fill_fsave.
12193 2002-02-12 Keith Seitz <keiths@redhat.com>
12195 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12196 (core_addr_to_string_nz): New function.
12198 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12200 * arm-linux-nat.c: Really include arm-tdep.h.
12201 * config/arm/tm-linux.h (struct type, struct value): Declare.
12203 2002-02-11 Michael Snyder <msnyder@redhat.com>
12205 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12206 (gcore section): Ifdef for Solaris and Unixware only.
12207 (procfs_do_thread_registers): Unixware needs one lwpstatus
12208 per thread (not one prstatus or pstatus).
12209 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12210 not over all gdb threads. For unixware, call elfcore_write_pstatus
12211 once before iterating over threads.
12213 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12215 * arm-tdep.h: New file.
12216 * arm-tdep.c: Include arm-tdep.h.
12217 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12218 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12219 (arm_print_float_info, arm_register_type, convert_to_extended)
12220 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12221 (arm_extract_return_value, arm_register_name): Make static.
12222 (arm_software_single_step): Similarly. Fix types in declaration.
12223 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12224 (arm_store_return_value, arm_store_struct_return): New functions.
12225 (arm_gdbarch_init): Register the above functions. Also register
12226 call_dummy_start_offset, sizeof_call_dummy_words,
12227 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12228 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12229 max_register_virtual_size, register_size. Set up
12230 prologue_cache.saved_regs here, rather than ...
12231 (_initialize_arm_tdep): ... here.
12232 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12234 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12235 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12236 (arm_print_float_info, arm_register_type, convert_to_extended)
12237 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12238 (arm_extract_return_value, arm_register_name): Delete declarations.
12239 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12240 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12241 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12242 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12243 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12244 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12245 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12246 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12247 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12248 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12249 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12250 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12252 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12253 * remote-rdi.c remote-rdp.c: Likewise.
12254 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12255 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12256 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12259 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12260 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12261 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12262 from non-ARM_ prefixed definitions.
12263 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12265 * remote-rdi.c remote-rdp.c: Likewise.
12266 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12268 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12270 * arm-tdep.c (arm_frameless_function_invocation)
12271 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12272 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12273 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12274 (arm_pop_frame, arm_get_next_pc): Make static.
12275 (arm_gdbarch_init): Register above in gdbarch structure.
12276 (arm_read_fp): Renamed from arm_target_read_fp.
12277 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12278 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12279 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12280 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12281 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12282 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12283 (arm_pc_is_thumb_dummy): Delete declarations.
12284 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12285 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12286 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12287 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12289 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12291 * symtab.c (compare_search_syms): New function.
12292 (sort_search_symbols): New function.
12293 (search_symbols): Sort symbols after searching rather than
12296 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12298 * NEWS: Linux -> GNU/Linux.
12300 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12302 * gdbarch.sh: For for level one methods, disallow a definition
12303 when partially multi-arched. Add comments explaining rationale.
12304 * gdbarch.h: Re-generate.
12306 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12308 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12309 multi-arch partial.
12311 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12313 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12314 field. Use diff -u.
12315 * gdbarch.c: Re-generate.
12317 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12319 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12320 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12323 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12325 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12326 multi-arch partial.
12327 (PUSH_ARGUMENTS): Switch to using predefault.
12328 * gdbarch.c: Regenerate.
12330 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12332 * valops.c (PUSH_ARGUMENTS): Delete definition.
12333 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12334 partial. Default to default_push_arguments.
12335 * gdbarch.h, gdbarch.c: Regenerate.
12337 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12339 * defs.h (throw_exception): Rename return_to_top_level. Update
12341 * utils.c (error_stream, internal_verror, quit): Ditto.
12342 * top.c (throw_exception, catcher): Ditto.
12343 * sparclet-rom.c (sparclet_load): Ditto.
12344 * remote.c (interrupt_query, minitelnet): Ditto.
12345 * remote-sds.c (interrupt_query): Ditto.
12346 * remote-mips.c (mips_error, mips_kill): Ditto.
12347 * ocd.c (interrupt_query): Ditto.
12348 * monitor.c (monitor_interrupt_query): Ditto.
12349 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12350 * target.h: Update comment.
12352 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12354 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12356 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12357 default_double_format.
12358 * gdbarch.h, gdbarch.c: Re-generate.
12359 * findvar.c (floatformat_unknown): Delete variable definition.
12360 * doublest.h (floatformat_unknown): Delete variable declaration.
12362 2002-02-09 Jim Blandy <jimb@redhat.com>
12364 * stabsread.c (read_type): Add code to parse Sun's syntax for
12365 prototyped function types.
12367 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12369 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12370 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12372 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12374 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12375 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12376 now _initialize_xcoffsolib gets called again and overrides the
12377 commands from solib.c in a native configuration.
12379 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12381 * doublest.c (store_typed_floating): Don't try to return a value.
12384 2002-02-08 Jim Blandy <jimb@redhat.com>
12386 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12387 is prototyped and has no arguments, print its argument list as
12390 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12392 * MAINTAINERS (write-after-approval): Add myself.
12393 (paper-trail): I've escaped!
12395 2002-02-08 Christopher Faylor <cgf@redhat.com>
12397 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12399 (_initialize_check_for_gdb_ini): Ditto.
12401 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12403 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12404 xaprintf -> xasprintf.
12406 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12408 * win32-nat.c: Remove use of printf and sprintf functions.
12410 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12412 * arm-tdep.c (arm_frame_chain_valid): Make static.
12413 (arm_push_arguments): Likewise.
12414 (arm_gdbarch_init): New function.
12415 (_initialize_arm_tdep): Call it.
12416 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12417 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12418 (FRAME_CHAIN_VALID): Delete.
12419 (arm_frame_chain_valid): Delete declaration.
12420 (PUSH_ARGUMENTS): Delete.
12421 (arm_push_arguments): Delete declaration.
12422 (CALL_DUMMY_P): Delete.
12424 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12425 Corinna Vinschen <vinschen@redhat.com>
12427 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12428 on builtin float types.
12430 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12432 * utils.c: Include <curses.h> before "bfd.h".
12433 * tui/tui-hooks.c: Likewise.
12434 * tui/tui.c: Likewise.
12435 * tui/tuiCommand.c: Likewise.
12436 * tui/tuiData.c: Likewise.
12437 * tui/tuiDataWin.c: Likewise.
12438 * tui/tuiDisassem.c: Likewise.
12439 * tui/tuiGeneralWin.c: Likewise.
12440 * tui/tuiIO.c: Likewise.
12441 * tui/tuiLayout.c: Likewise.
12442 * tui/tuiRegs.c: Likewise.
12443 * tui/tuiSource.c: Likewise.
12444 * tui/tuiSourceWin.c: Likewise.
12445 * tui/tuiStack.c: Likewise.
12446 * tui/tuiWin.c: Likewise.
12448 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12450 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12451 to include space for pseudoregs as well. Update loops accordingly.
12452 (sh_fp_frame_init_saved_regs): Ditto.
12453 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12455 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12457 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12458 Add Richard Earnshaw to Arm maintainers.
12460 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12462 * defs.h (warning_begin): Delete declaration.
12464 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12467 2002-02-07 Michael Snyder <msnyder@redhat.com>
12469 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12470 Logic bug, remove misplaced else.
12472 2002-02-07 Klee Dienes <klee@apple.com>
12474 * fork-inferior.c (fork_inferior): Add '!' to the list of
12475 characters that need to be quoted when building a string for the
12476 shell. Quote '!' specifically with a backslash, since CSH chokes
12477 when trying to evaluate "str!str".
12479 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12481 * rdi-share/host.h: Only provide a typedef for bool if it is not
12484 2002-02-04 Michael Snyder <msnyder@redhat.com>
12486 * breakpoint.h (enum bptype): Add new overlay event bp type.
12487 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12489 * breakpoint.c (create_internal_breakpoint): New function.
12490 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12491 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12492 (create_thread_event_breakpoint): Ditto.
12493 (create_solib_event_breakpoint): Ditto.
12494 (create_overlay_event_breakpoint): New function.
12495 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12496 (update_breakpoints_after_exec): Delete and re-initialize
12497 overlay event breakpoints after an exec. Add FIXME comment
12498 about longjmp breakpoint.
12499 (print_it_typical): Ignore overlay event breakpoints.
12500 (print_one_breakpoint): Ditto.
12502 (bpstat_what): Do not stop for overlay event breakpoints.
12503 (delete_breakpoint): Don't delete overlay event breakpoints.
12504 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12505 (breakpoint_re_set): Re-create overlay event breakpoint.
12507 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12508 (overlay_manual_command): Disable overlay breakpoints.
12509 (overlay_off_command): Disable overlay breakpoints.
12511 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12513 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12514 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12515 to here from config/tm-arm.h.
12516 (coff_sym_is_thumb): Make static.
12517 (arm_elf_make_msymbol_special): New function.
12518 (arm_coff_make_msymbol_special): New function.
12519 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12520 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12521 (coff_sym_is_thumb): Delete declaration.
12522 (arm_elf_make_msymbol_special): Declare.
12523 (arm_coff_make_msymbol_special): Declare.
12524 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12525 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12527 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12529 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12531 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12533 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12534 * gdbarch.c gdbarch.h: Regenerate.
12535 * arch-utils.c (default_print_float_info): New function.
12536 * arch-utils.h (default_print_float_info): Prototype it.
12537 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12538 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12539 (PRINT_FLOAT_INFO): Document it.
12541 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12542 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12543 (PRINT_FLOAT_INFO): Define.
12545 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12547 * win32-nat.c (_initialize_check_for_gdb_ini):
12548 Add typecast to sprintf argument to suppress a warning.
12550 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12552 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12553 to allow easier handling of pass state.
12554 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12555 that gives exception name and address.
12556 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12557 and set last_sig value to ourstatus->value.sig. Some missing
12559 (child_continue): Correctly report continue_status.
12560 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12561 TARGET_SIGNAL_0 (new default value).
12562 (child_resume): consider sig argument passed to decide if
12563 the exception should be passed to debuggee or not.
12565 2002-02-05 Michael Snyder <msnyder@redhat.com>
12567 * regcache.c (fetch_register): Call target_fetch_register
12568 only if we don't call FETCH_PSEUDO_REGISTER.
12569 (store_register): Call target_store_register only if we
12570 don't call STORE_PSEUDO_REGISTER.
12572 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12574 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12575 ELF_MAKE_MSYMBOL_SPECIAL.
12576 * gdbarch.c, gdbarch.h: Regenerate.
12577 * arch-utils.c (default_make_msymbol_special): New function.
12578 * arch-utils.h (default_make_msymbol_special): Export.
12579 * elfread.c (elf_symtab_read): Compile use of
12580 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12582 * coffread.c (coff_symtab_read): Ditto, for
12583 COFF_MAKE_MSYMBOL_SPECIAL.
12585 2002-02-05 Jim Blandy <jimb@redhat.com>
12587 * solib-svr4.c (svr4_truncate_ptr): New function.
12588 (svr4_relocate_section_addresses): Do the address arithmetic with
12589 the appropriate truncation for target addresses, even when
12590 CORE_ADDR is larger than a target address.
12592 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12594 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12597 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12599 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12602 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12604 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12606 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12608 * gdbserver/linux-low.c: Remove unused include files.
12610 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12612 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12613 (read_inferior_memory): Use it.
12614 (write_inferior_memory): Likewise.
12616 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12618 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12619 grubbing through sys_errlist.
12621 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12623 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12625 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12626 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12628 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12630 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12631 (do_sfunc, set_cmd_sfunc): New functions.
12633 * command.h (struct cmd_list_element): Add field func.
12634 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12635 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12636 * cli/cli-decode.h: Ditto.
12638 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12639 (help_all, help_cmd_list): Ditto.
12640 (find_cmd, complete_on_cmdlist): Ditto.
12641 * top.c (execute_command): Ditto.
12643 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12646 * infcmd.c (notice_args_read): Fix function signature.
12648 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12649 * cli/cli-decode.c (add_set_cmd): Ditto.
12650 * utils.c (initialize_utils): Ditto.
12651 * maint.c (_initialize_maint_cmds): Ditto.
12652 * infrun.c (_initialize_infrun): Ditto.
12653 * demangle.c (_initialize_demangler): Ditto.
12654 * remote.c (add_packet_config_cmd): Ditto.
12655 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12656 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12657 * proc-api.c (_initialize_proc_api): Ditto.
12658 * kod.c (_initialize_kod): Ditto.
12659 * valprint.c (_initialize_valprint): Ditto.
12660 * top.c (init_main): Ditto.
12661 * infcmd.c (_initialize_infcmd): Ditto.
12662 * corefile.c (_initialize_core): Ditto.
12663 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12664 * arch-utils.c (initialize_current_architecture): Ditto.
12665 (_initialize_gdbarch_utils): Ditto.
12666 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12668 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12669 * wince.c (_initialize_inftarg): Ditto.
12670 * symfile.c (_initialize_symfile): Ditto.
12671 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12672 * language.c (_initialize_language): Ditto.
12673 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12675 2002-02-04 Michael Snyder <msnyder@redhat.com>
12677 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12679 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12681 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12682 Add rules for building the register data files.
12684 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12686 * regformats/regdat.sh: Add braces to the definition of
12687 expedite_regs_${arch}.
12689 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12691 * regformats/regdef.h (struct reg): Add comment describing the
12692 requirements for offset and size fields.
12694 2002-02-04 Andreas Schwab <schwab@suse.de>
12696 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12697 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12699 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12701 * gdbarch.sh (copyright): Update years in generated header.
12702 (SMASH_TEXT_ADDRESS): Add rule.
12703 * gdbarch.h, gdbarch.c: Re-generate.
12704 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12705 * dbxread.c: Likewise.
12706 * dwarfread.c: Likewise.
12707 * elfread.c: Likewise.
12708 * somread.c: Likewise.
12710 * arm-tdep.c (arm_smash_text_address): New function.
12711 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12713 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12715 Add support for hardware watchpoints on win32 native.
12716 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12717 CONTEXT_DEBUG_REGISTERS.
12718 (dr variable): New variable. Static array containing a local copy
12719 of debug registers.
12720 (debug_registers_changed): New variable. Reflects when debug registers
12721 are changed and need to be written to inferior.
12722 (debug_registers_used): New variable. Reflects when any debug register
12723 was set, used when new threads are created.
12724 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12726 (thread_rec): Set dr array if id is the thread of current_event .
12727 (child_continue, child_resume): Change the debug registers for all
12728 threads if debug_registers_changed.
12729 (child_add_thread): Change the debug registers if debug_registers_used.
12730 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12731 Link nm.h to new nm-cygwin.h file.
12732 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12733 of hardware registers.
12735 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12737 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12738 Restore behavour broken by 2002-01-20 Andrew Cagney
12739 <ac131313@redhat.com> IEEE_FLOAT removal.
12741 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12743 * c-valprint.c (c_val_print): Pass a proper valaddr to
12744 cp_print_class_method.
12745 * valops.c (search_struct_method): If there is only one method
12746 and args is NULL, return that method.
12748 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12750 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12751 accessing tag_name directly.
12753 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12755 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12756 of accessing tag_name directly.
12758 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12761 * gdbtypes.c (replace_type): New function.
12762 * gdbtypes.h (replace_type): Add prototype.
12763 * stabsread.c (read_type): Use replace_type.
12765 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12767 * Makefile.in (memattr.o): Add missing dependencies rule.
12769 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12771 * breakpoint.c (break_at_finish_command): Really export.
12772 (break_at_finish_at_depth_command): Ditto.
12773 (tbreak_at_finish_command): Ditto.
12774 * hppa-tdep.c: Include completer.h.
12775 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12776 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12778 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12780 * utils.c (do_write): New function.
12781 (error_stream): Rewrite combining the code from error_begin and
12783 (verror): Rewrite using error_stream.
12784 (error_begin): Delete function.
12786 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12788 * utils.c (error_begin): Make static.
12789 * defs.h (error_begin): Delete declaration.
12791 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12792 (decode_line_1): Use cplusplus_error instead of error_begin,
12793 cplusplus_hint and return_to_top_level.
12794 * coffread.c (coff_symfile_read): Use error instead of error_begin
12795 and return_to_top_level.
12796 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12798 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12800 * language.h (type_error, range_error): Make string parameter
12802 * language.c (warning_pre_print): Delete extern declaration.
12803 * dwarfread.c (warning_pre_print): Ditto.
12804 * language.c (type_error, range_error): Rewrite to use verror and
12805 vwarning instead of warning_begin.
12807 2002-02-01 Michael Snyder <msnyder@redhat.com>
12809 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12810 (set_ignore_count): Move misplaced comment back where it belongs.
12812 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12814 * command.h (NO_FUNCTION): Delete macro.
12815 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12816 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12817 * tracepoint.c (_initialize_tracepoint): Ditto.
12818 * cli/cli-decode.c (add_set_cmd): Ditto.
12819 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12821 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12823 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12824 Update ``this'' pointer when calling virtual functions.
12826 2002-02-01 Michael Snyder <msnyder@redhat.com>
12828 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12829 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12831 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12833 * regformats/reg-arm.dat: New file.
12834 * regformats/reg-i386.dat: New file.
12835 * regformats/reg-ia64.dat: New file.
12836 * regformats/reg-m68k.dat: New file.
12837 * regformats/reg-mips.dat: New file.
12838 * regformats/reg-ppc.dat: New file.
12839 * regformats/reg-sh.dat: New file.
12840 * regformats/regdef.h: New file.
12841 * regformats/regdat.sh: New file.
12843 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12845 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12846 (arm_frame_args_address, arm_frame_locals_address): New functions.
12847 (arm_frame_num_args): New function.
12848 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12849 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12850 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12852 2002-01-31 Michael Snyder <msnyder@redhat.com>
12854 * breakpoint.c (break_at_finish_command): Export.
12855 (break_at_finish_at_depth_command): Export.
12856 (tbreak_at_finish_command): Export.
12857 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12858 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12859 "txbreak" commands, which are HPPA specific.
12861 * printcmd.c (disassemble_command): Remove an ancient
12862 artifact of an old merge.
12864 * symfile.h (enum overlay_debugging_state):
12865 Define enum constant values for overlay mode.
12866 * symfile.c (overlay_debugging): Use enums instead of literals.
12867 (overlay_is_mapped, overlay_auto_command,
12868 overlay_manual_command): Ditto.
12870 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12871 breakpoint_here_p, breakpoint_inserted_here_p,
12872 breakpoint_thread_match, bpstat_stop_status,
12873 describe_other_breakpoints, check_duplicates, clear_command):
12874 Coding standard fixes.
12876 * target.c (target_xfer_memory): Add spaces, coding standard.
12877 (do_xfer_memory): Add missing line to trust-readonly
12878 code: check bfd SEC_READONLY flag for section.
12880 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12882 * PROBLEMS: Fix typo, 5.1->5.1.1.
12884 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12886 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12887 data symbols, since we search based on textlow and texthigh.
12888 (find_pc_sect_symtab): Likewise.
12890 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12892 * defs.h (vwarning): Declare.
12893 * utils.c (vwarning): New function.
12894 (warning): Call vwarning.
12895 (warning_begin): Delete function.
12897 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12898 the warning message.
12899 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12902 2002-01-30 Michael Snyder <msnyder@redhat.com>
12904 * NEWS: Mention "set trust-readonly-sections" command.
12905 Mention generate-core-file command.
12907 2002-01-15 Michael Snyder <msnyder@redhat.com>
12909 * target.c: New command, "set trust-readonly-sections on".
12910 (do_xfer_memory): Honor the suggestion to trust readonly sections
12911 by reading them from the object file instead of from the target.
12912 (initialize_targets): Register command "set trust-readonly-sections".
12914 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12916 * parse.c (target_map_name_to_register): Simplify, search regs and
12917 pseudo-regs using a single loop.
12919 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12921 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12923 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12925 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12926 * config/i386/i386v42mp.mh: Add i387-nat.o .
12927 * i386v4-nat.c: Include i387-nat.h.
12928 (supply_fpregset): Use i387_supply_fsave.
12929 (fill_fpregset): Use i387_fill_fsave.
12931 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12933 * arm-tdep.c (arm_call_dummy_words): Define.
12934 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12935 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12936 (CALL_DUMMY_WORDS): Define.
12937 (arm_call_dummy_words): Declare.
12938 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12939 (arm_linux_call_dummy_words): Declare.
12941 2002-01-30 Andreas Schwab <schwab@suse.de>
12943 * m68klinux-nat.c: Fix last change to use regcache_collect
12944 instead of referencing registers[] directly.
12946 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12948 * parse.c (target_map_name_to_register): Delete code wrapped in
12949 #ifdef REGISTER_NAME_ALIAS_HOOK.
12951 2002-01-28 Michael Snyder <msnyder@redhat.com>
12953 * regcache.c (legacy_read_register_gen): Need to be able to
12954 read pseudo-register as well as real register.
12955 (legacy_write_register_gen): Ditto.
12957 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12959 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12960 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12961 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12962 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12963 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12964 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12965 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12966 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12967 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12968 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12969 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12970 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12971 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12972 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12973 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12974 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12975 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12976 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12977 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12978 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12980 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12982 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12983 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12984 (initialize_current_architecture): Update target_byte_order using
12985 information from BFD.
12986 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12987 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12989 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12991 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12992 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12994 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12995 #ifdef INVALID_FLOAT.
12996 * infcmd.c (do_registers_info): Ditto.
12997 * values.c (unpack_double): Ditto. Add comment.
12999 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13000 already commented out.
13002 2002-01-26 Andreas Schwab <schwab@suse.de>
13004 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13005 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13006 registers and add support for PTRACE_GETREGS.
13008 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13010 GDB 5.1.1 released from 5.1 branch.
13011 * NEWS: Add 5.1.1 news.
13012 * README: Sync with 5.1 branch.
13014 2002-01-23 Fred Fish <fnf@redhat.com>
13016 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13017 stabstring on initial malloc. Reallocing will copy it for us,
13020 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13022 * Makefile.in (hpread_h): Delete.
13023 (HFILES_NO_SRCDIR): Remove hpread.h.
13024 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13025 (hpread.o): Update dependencies.
13026 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13028 * hp-psymtab-read.c: Remove file.
13029 * hp-symtab-read.c: Remove file.
13030 * hpread.h: Remove file.
13032 * hpread.c: Merge all contents of hp-psymtab-read.c,
13033 hp-symtab-read.c and hpread.h into this file, as it was prior to
13036 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13037 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13038 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13039 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13041 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13043 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13044 fill_gregset): Call gdbarch_tdep() just once, assign result to
13045 variable and use that, instead of calling the function several
13048 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13050 * configure.host: Accept sparcv9 as alias for sparc64.
13051 * configure.tgt: Likewise.
13053 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13055 * solib-aix5.c (build_so_list_from_mapfile)
13056 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13057 arguments is not reversed.
13058 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13059 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13061 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13063 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13064 modified version of obsolete sh_fetch_pseudo_register.
13065 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13066 (sh4_register_read): New function.
13067 (sh_pseudo_register_write): New function. Renamed and modified
13068 version of obsolete sh_store_pseudo_register.
13069 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13070 (sh4_register_write): New function.
13071 (sh_gdbarch_init): Remove setting of gdbarch function
13072 fetch_pseudo_register and store_pseudo_register. Remove setting of
13073 register_convert_to_raw, register_convert_to_virtual,
13074 register_convertible.
13075 (sh_sh4_register_convertible): Delete. No longer needed. All is
13076 taken care by architecture specific functions
13077 register_read/register_write.
13078 (sh_sh4_register_convert_to_virtual): Make static.
13079 (sh_sh4_register_convert_to_raw): Ditto.
13081 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13083 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13084 (floatformat_is_nan, floatformat_mantissa): Ditto.
13086 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13087 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13088 builtin_type_ieee_double_little,
13089 builtin_type_ieee_double_littlebyte_bigword,
13090 builtin_type_m68881_ext, builtin_type_i960_ext,
13091 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13092 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13093 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13094 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13096 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13098 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13099 parameter. Set frameless flag if it exists and depended of
13100 whether the scanned function is frameless or not.
13101 (xstormy16_skip_prologue): If function is frameless, return
13102 result of xstormy16_scan_prologue().
13103 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13106 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13108 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13109 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13110 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13111 sh_sh4_register_byte, sh_sh4_register_raw_size,
13112 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13113 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13114 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13115 sh_store_pseudo_register, sh_do_pseudo_register): Call
13116 gdbarch_tdep() just once, assign result to variable and use that,
13117 instead of calling the function several times.
13119 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13121 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13122 macros instead of LAST_FPU_CTRL_REGNUM.
13123 (store_register): Likewise.
13125 2002-01-21 Jim Blandy <jimb@redhat.com>
13127 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13128 is up-to-date before running the program, not just when a program
13131 2002-01-21 Fred Fish <fnf@redhat.com>
13133 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13134 when we have found all instructions we are looking for.
13136 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13138 * arm-tdep.c (arm_register_name): New function.
13139 (arm_registers_names): Make static.
13140 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13141 (arm_register_name): Declare.
13142 (REGISTER_NAME): Use it.
13144 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13145 Kevin Buettner <kevinb@redhat.com>
13147 Convert arm targets to new FRAME interface.
13148 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13149 (arm_frame_find_save_regs): Delete.
13150 (arm_frame_init_saved_regs): New.
13151 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13152 Allocate extra_info as required. Convert all uses of fsr.regs
13153 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13155 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13156 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13157 (check_prologue_cache, save_prologue_cache): Likewise.
13158 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13159 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13160 (FRAME_FIND_SAVED_REGS): Delete.
13161 (arm_frame_find_saved_regs): Delete prototype.
13162 (arm_frame_init_saved_regs): New prototype.
13163 (FRAME_INIT_SAVED_REGS): Define.
13165 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13167 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13169 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13171 From Jeff Law <law@redhat.com>:
13172 * infttrace.c: Include <sys/pstat.h>.
13173 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13174 exec file if the ttrace equivalent fails.
13176 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13178 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13179 (closeLogFile): Ditto.
13181 2002-01-20 Michael Chastain <mec@shout.net>
13183 * top.c (print_gdb_version): Bump copyright year to 2002.
13185 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13187 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13188 Zannoni and Eli Zaretskii.
13190 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13192 * buildsym.c: Update copyright years.
13193 * c-typeprint.c: Likewise.
13194 * dwarf2read.c: Likewise.
13195 * f-typeprint.c: Likewise.
13196 * gdbtypes.c: Likewise.
13197 * gdbtypes.h: Likewise.
13198 * hp-symtab-read.c: Likewise.
13199 * hpread.c: Likewise.
13200 * mdebugread.c: Likewise.
13201 * p-typeprint.c: Likewise.
13203 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13205 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13206 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13207 byte-order selectable.
13208 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13209 * arch-utils.c: Ditto.
13210 (set_endian): Ditto.
13211 (set_endian_from_file): Ditto.
13212 * gdbserver/low-sim.c (create_inferior): Ditto.
13213 * gdbarch.sh: Ditto.
13214 * gdbarch.h: Re-generate.
13215 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13216 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13217 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13218 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13219 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13220 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13221 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13222 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13224 * config/mips/tm-wince.h: Remove #undef of macro
13225 TARGET_BYTE_ORDER_SELECTABLE.
13226 * config/sh/tm-wince.h: Ditto.
13228 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13230 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13231 member function fields. Add accessor macro
13232 TYPE_FN_FIELD_ARTIFICIAL.
13233 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13234 * c-typeprint.c (c_type_print_base): Skip artificial member
13237 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13239 * f-typeprint.c: Delete unused function f_type_print_args.
13240 * p-typeprint.c: Delete unused function pascal_type_print_args.
13242 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13244 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13245 comment. Add ``artificial'' to ``union field_location''.
13247 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13249 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13250 * mdebugread.c (parse_symbol): Likewise.
13251 * stabsread.c (define_symbol): Likewise.
13252 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13253 initializing TYPE_FIELD_BITPOS to n (obsolete).
13254 (hpread_doc_function_type): Likewise.
13255 * hpread.c (hpread_function_type): Likewise.
13257 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13259 * configure.in (host_makefile_frag): Only require a host makefile
13260 fragment when a native build.
13261 * configure: Re-generate.
13263 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13265 * doublest.h (floatformat_from_type): Declare.
13266 * doublest.c (floatformat_from_type): New function.
13267 (convert_typed_floating): Use.
13269 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13270 call to function floatformat_from_type.
13272 * gdbarch.sh (IEEE_FLOAT): Delete.
13273 * gdbarch.h, gdbarch.c: Re-generate.
13274 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13275 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13276 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13277 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13278 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13279 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13280 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13281 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13282 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13283 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13284 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13285 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13287 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13288 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13289 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13290 * sh-tdep.c (sh_gdbarch_init): Ditto.
13291 * mips-tdep.c (mips_gdbarch_init): Ditto.
13292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13293 * cris-tdep.c (cris_gdbarch_init): Ditto.
13295 2002-01-20 Jiri Smid <smid@suse.cz>
13297 * configure.host, configure.tgt: Support x86-64.
13298 * NEWS: Note new target x86-64.
13300 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13301 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13302 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13303 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13304 x86-64-linux-nat.o): Fix dependencies.
13306 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13308 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13309 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13310 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13311 * config/sparc/xm-sun4os4.h: Delete file.
13312 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13314 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13316 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13317 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13318 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13319 * config/i386/i386lynx.mh (XM_FILE): Delete.
13320 * config/rs6000/xm-rs6000ly.h: Delete file.
13321 * config/sparc/xm-sparclynx.h: Delete file.
13322 * config/m68k/xm-m68klynx.h: Delete file.
13323 * config/i386/xm-i386lynx.h: Delete file.
13324 * config/xm-lynx.h: Delete file.
13325 * config/djgpp/fnchange.lst: Update.
13327 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13329 * alpha-tdep.c (alpha_register_byte): New function.
13330 (alpha_register_raw_size): Ditto.
13331 (alpha_register_virtual_size): Ditto.
13332 (alpha_skip_prologue_internal): Renamed from
13333 alpha_skip_prologue.
13334 (alpha_skip_prologue): New version that calls
13335 alpha_skip_prologue_internal.
13336 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13337 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13338 second argument from alpha_skip_prologue.
13339 (REGISTER_BYTE): Use alpha_register_byte.
13340 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13341 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13342 (FRAMELESS_FUNCTION_INVOCATION): Use
13343 generic_frameless_function_invocation_not.
13344 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13345 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13347 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13349 * config/mips/xm-news-mips.h: Delete file.
13350 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13352 * config/m88k/xm-m88k.h: Delete file.
13353 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13354 * config/m88k/xm-delta88v4.h: Ditto.
13355 * config/m88k/xm-delta88.h: Ditto.
13357 * config/alpha/xm-fbsd.h: Delete file.
13358 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13360 * config/sparc/xm-sparc.h: Delete file.
13361 * Makefile.in (xm-sun4os4.h): Delete dependency.
13362 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13363 * config/sparc/xm-sun4os4.h: Ditto.
13364 * config/sparc/xm-linux.h: Ditto.
13366 * config/i386/xm-windows.h: Delete file.
13368 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13370 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13371 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13373 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13375 * alpha-tdep.c (alpha_call_dummy_words): New.
13376 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13377 (CALL_DUMMY_P): Define.
13378 (CALL_DUMMY_WORDS): Define.
13379 (SIZEOF_CALL_DUMMY_WORDS): Define.
13381 2002-01-19 Per Bothner <per@bothner.com>
13383 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13384 isn't NULL, which can happen with some gcj-3.x-produced code.
13386 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13388 * alpha-tdep.c (alpha_register_virtual_type): New function.
13389 (alpha_init_frame_pc_first): Ditto.
13390 (alpha_fix_call_dummy): Ditto.
13391 (alpha_store_struct_return): Ditto.
13392 (alpha_extract_struct_value_address): Ditto.
13393 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13394 alpha_register_virtual_type.
13395 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13396 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13397 alpha_extract_struct_value_address.
13398 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13399 (INIT_FRAME_PC): Use init_frame_pc_noop.
13400 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13402 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13404 * i386gnu-nat.c: Include "i386-tdep.h".
13405 (fetch_fpregs): Simplify code dealing with uninitialized floating
13406 point states such that it doesn't require FP7_REGNUM.
13408 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13410 * alpha-tdep.c (frame_extra_info): New.
13411 (alpha_find_saved_regs): Make static. Use
13413 (alpha_frame_init_saved_regs): New function.
13414 (alpha_frame_saved_pc): Use frame->extra_info.
13415 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13416 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13417 (init_extra_frame_info): Rename to...
13418 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13419 (alpha_print_extra_frame_info): New function.
13420 (alpha_frame_locals_address): Ditto.
13421 (alpha_frame_args_address): Ditto.
13422 (alpha_pop_frame): Use frame->extra_info.
13423 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13424 alpha_frame_args_address.
13425 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13426 (alpha_find_saved_regs): Remove prototype.
13427 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13428 (EXTRA_FRAME_INFO): Remove.
13429 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13430 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13432 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13434 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13435 (alpha_cannot_fetch_register): Ditto.
13436 (alpha_cannot_store_register): Ditto.
13437 (alpha_register_convertible): Ditto.
13438 (alpha_use_struct_convention): Ditto.
13439 * config/alpha/tm-alpha.h: Update copyright years.
13440 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13441 (INNER_THAN): Use core_addr_lessthan.
13442 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13443 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13444 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13445 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13446 (FRAME_CHAIN): Remove unnecessary cast.
13448 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13450 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13453 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13455 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13456 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13457 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13458 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13459 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13460 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13461 * x86-64-linux-nat.c: Ditto.
13463 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13465 * alpha-tdep.c (alpha_register_name): New function.
13466 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13467 (REGISTER_NAME): Define.
13469 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13471 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13473 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13475 * alpha-tdep.c: Update copyright years.
13476 (alpha_next_pc): New function.
13477 (alpha_software_single_step): Ditto.
13478 * config/alpha/tm-alpha.h: Add prototype for
13479 alpha_software_single_step.
13481 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13483 * alphabsd-nat.c: Update copyright years.
13484 (fill_gregset): Use regcache_collect.
13485 (fill_fpregset): Likewise.
13486 (fetch_inferior_registers): Only fetch integer registers
13487 if requested to do so.
13488 (store_inferior_registers): Only store integer registers
13489 if requested to do so.
13491 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13493 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13494 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13495 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13496 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13497 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13498 * config/arm/linux.mh (XDEPFILES): Delete.
13499 * config/arm/nbsd.mh (XDEPFILES): Delete.
13500 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13501 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13502 * config/i386/i386m3.mh (XDEPFILES): Delete.
13503 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13504 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13505 * config/i386/fbsd.mh (XDEPFILES): Delete.
13506 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13507 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13508 * config/i386/i386v4.mh (XDEPFILES): Delete.
13509 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13510 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13511 * config/i386/i386aix.mh (XDEPFILES): Delete.
13512 * config/i386/go32.mh (XDEPFILES): Delete.
13513 * config/i386/cygwin.mh (XDEPFILES): Delete.
13514 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13515 * config/i386/i386mach.mh (XDEPFILES): Delete.
13516 * config/i386/i386v32.mh (XDEPFILES): Delete.
13517 * config/i386/linux.mh (XDEPFILES): Delete.
13518 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13519 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13520 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13521 * config/i386/i386sco.mh (XDEPFILES): Delete.
13522 * config/i386/i386v.mh (XDEPFILES): Delete.
13523 * config/i386/nbsd.mh (XDEPFILES): Delete.
13524 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13525 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13526 * config/i386/symmetry.mh (XDEPFILES): Delete.
13527 * config/i386/obsd.mh (XDEPFILES): Delete.
13528 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13529 * config/ia64/linux.mh (XDEPFILES): Delete.
13530 * config/ia64/aix.mh (XDEPFILES): Delete.
13531 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13532 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13533 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13534 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13535 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13536 * config/m68k/linux.mh (XDEPFILES): Delete.
13537 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13538 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13539 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13540 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13541 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13542 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13543 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13544 * config/m88k/delta88.mh (XDEPFILES): Delete.
13545 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13546 * config/m88k/m88k.mh (XDEPFILES): Delete.
13547 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13548 * config/mips/linux.mh (XDEPFILES): Delete.
13549 * config/mips/irix6.mh (XDEPFILES): Delete.
13550 * config/mips/irix5.mh (XDEPFILES): Delete.
13551 * config/mips/irix4.mh (XDEPFILES): Delete.
13552 * config/mips/irix3.mh (XDEPFILES): Delete.
13553 * config/mips/decstation.mh (XDEPFILES): Delete.
13554 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13555 (NATDEPFILES): Move core-aout.o to here.
13556 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13557 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13558 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13559 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13560 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13561 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13562 * config/pa/hpux11.mh (XDEPFILES): Delete.
13563 * config/powerpc/aix.mh (XDEPFILES): Delete.
13564 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13565 * config/powerpc/linux.mh (XDEPFILES): Delete.
13566 * config/romp/rtbsd.mh: Rename XDEPFILES.
13567 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13568 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13569 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13570 * config/s390/s390.mh (XDEPFILES): Delete.
13571 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13572 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13573 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13574 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13575 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13576 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13577 * config/sparc/linux.mh (XDEPFILES): Delete.
13578 * config/vax/vaxult.mh (XDEPFILES): Delete.
13579 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13580 * Makefile.in (DEPFILES): Remove XDEPFILES.
13582 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13584 * utils.c (internal_verror): Fix comments, default is yes not no.
13585 Update queries to match. Default to quit and dump core.
13587 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13589 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13591 * defs.h, event-top.c, gdbcmd.h: Ditto.
13592 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13593 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13594 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13595 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13596 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13597 * mi/mi-main.c:Ditto.
13599 * stack.c, symfile.c: Update copyright.
13601 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13603 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13604 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13605 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13606 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13608 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13610 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13611 * gdbserver/low-lynx.c (myattach): Likewise.
13612 * gdbserver/low-nbsd.c (myattach): Likewise.
13613 * gdbserver/low-sim.c (myattach): Likewise.
13614 * gdbserver/low-sparc.c (myattach): Likewise.
13615 * gdbserver/low-sun3.c (myattach): Likewise.
13617 * gdbserver/low-linux.c (myattach): New function.
13619 * gdbserver/server.c (attach_inferior): New function.
13620 (main): Handle "--attach".
13622 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13624 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13627 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13629 * c-typeprint.c (is_type_conversion_operator): Add additional
13630 check for non-conversion operators.
13632 2002-01-15 Michael Snyder <msnyder@redhat.com>
13634 * linux-proc.c: Add "info proc" command, a la procfs.c.
13635 (read_mapping): New function, abstract and re-use code.
13636 (linux_find_memory_regions): Use new func read_mapping.
13637 (linux_info_proc_cmd): New function, implement "info proc".
13638 (_initialize_linux_proc): Add new command "info proc".
13640 2002-01-15 Michael Snyder <msnyder@redhat.com>
13642 * symfile.c (generic_load): Use bfd_map_over_sections method
13643 instead of manipulating bfd structure members directly.
13644 (add_section_size_callback): New function, bfd sections callback
13645 used by generic_load.
13646 (load_sections_callback): New function, bfd sections callback
13647 used by generic_load.
13649 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13651 [Based on work by Jim Blandy]
13652 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13653 (builtin_type_vec128): Export.
13654 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13656 (builtin_type_vec128): New builtin type for 128 bit vector
13658 (build_gdbtypes): Initialize builtin_type_v16qi and
13659 builtin_type_v8hi. Create the vec128 register builtin type
13661 (build_builtin_type_vec128): New function.
13662 (_initialize_gdbtypes): Register builtin_type_v16qi and
13663 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13664 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13665 AltiVec register to new builtin type.
13667 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13669 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13672 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13674 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13675 CLEAN_UP_REGISTER_VALUE.
13676 * regcache.c (supply_register): Update only call.
13678 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13680 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13681 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13682 a29k-*-vxworks* targets as obsolete.
13684 2002-01-14 Michael Snyder <msnyder@redhat.com>
13686 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13687 until we can resolve portability issues.
13688 * gregset.h: Remove references to fpxregs.
13689 * gcore.c (gcore_command): Initialize note_sec to NULL.
13691 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13693 * signals.c (target_signal_to_name): Rewrite. Only use
13694 signals[].name when in bounds and non-NULL.
13696 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13698 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13699 * signals.c (target_signal_to_name): Verify that SIG is within the
13700 bounds of the signals array.
13702 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13704 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13706 2002-01-13 Keith Seitz <keiths@redhat.com>
13708 * stack.c (print_frame_info_base): Print the frame's pc
13709 only if when print_frame_info_listing_hook is not defined.
13711 2002-01-13 Keith Seitz <keiths@redhat.com>
13713 * varobj.c (varobj_set_value): Make sure that there were no
13714 errors evaluating the object before attempting to set its
13716 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13717 so this offset adjustment is no longer necessary.
13718 (create_child): Don't set the error flag if the child is
13719 a CPLUS_FAKE_CHILD.
13720 (value_of_child): If value_fetch_lazy fails, return NULL
13721 so that callers will be notified that an error occurred.
13722 (c_value_of_variable): Delay check of variable's validity
13723 until later. We actually want all structs and unions to have
13725 Do not return "???" for variables which could not be evaluated.
13726 This error condition must be returned to the caller so that it
13727 can get the error condition from gdb.
13728 (cplus_name_of_child): Adjust index for vptr before figuring
13729 out the name of the child.
13730 (cplus_value_of_child): If a child's (real) parent is not valid,
13731 don't even bother trying to give a value for it. Just return
13732 an error. Change all instances in this function.
13733 (cplus_type_of_child): If our parent is one of the "fake"
13734 parents, we need to get at the type of the real parent, and
13735 derive the child's true type using this information.
13737 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13739 From 2002-01-09 John Marshall <johnm@falch.net>:
13740 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13741 sources.redhat.com, and tweak some related URLs which had
13742 suffered from linkrot.
13744 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13747 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13748 structures passed in registers.
13750 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13752 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13753 white space which prevented compilation. Reported by DSK
13754 <dsk@student.unsw.edu.au>.
13756 2002-01-11 Michael Snyder <msnyder@redhat.com>
13758 * symfile.c (build_section_addr_info_from_section_tab):
13759 Use bfd access method instead of manipulating bfd directly.
13760 (syms_from_objfile): Ditto.
13761 (simple_overlay_update_1): Ditto.
13762 (simple_overlay_update): Ditto.
13763 (generic_load): Ditto.
13764 (overlay_unmapped_address): FIXME comment, bfd access methods.
13765 (sections_overlap): FIXME comment, bfd access methods.
13766 (pc_in_mapped_range): FIXME comment, bfd access methods.
13767 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13768 (section_is_mapped): FIXME comment, bfd access methods.
13769 (section_is_overlay): FIXME comment, bfd access methods.
13771 * symfile.c (generic_load): Whitespace and long line cleanups.
13772 Remove duplicate variable, change several local variables to
13773 more appropriate data types.
13774 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13776 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13778 From Peter Schauer:
13779 * language.c (longest_local_hex_string_custom): Use phex_nz to
13780 convert NUM to a hex string.
13782 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13784 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13786 Update Copyright year.
13788 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13790 * language.c (longest_raw_hex_string): Delete unused function.
13792 2002-01-11 Petr Sorfa <petrs@caldera.com>
13794 * MAINTAINERS (write-after-approval): Add myself.
13795 * dwarf2read.c (read_tag_string_type): Handling of
13797 (read_tag_string_type): FORTRAN fix to prevent propagation of
13799 (set_cu_language): Handling of DW_LANG_Fortran95
13801 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13803 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13804 GETPID(inferior_ptid).
13805 (store_inferior_registers): Likewise.
13807 2002-01-10 Jason Merrill <jason@redhat.com>
13809 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13812 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13814 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13815 and bfd/elf32-sh-nbsd.c.
13817 2002-01-10 Michael Snyder <msnyder@redhat.com>
13819 * NEWS: Mention --pid and corefile/proc-id behavior change.
13821 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13822 * gcore.c: Include cli/cli-decode.h instead of command.h.
13824 * main.c (captured_main): Add new command line option "--pid".
13825 If the second command line argument (following the symbol-file)
13826 begins with a digit, try to attach to it before trying to open
13828 (print_gdb_help): Document the "--pid" argument.
13830 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13832 * completer.c (command_completer): New function.
13834 * completer.h <command_completer>: Add prototype.
13836 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13837 completer for the "help" command.
13839 2002-01-09 Jason Merrill <jason@redhat.com>
13841 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13843 2002-01-09 Michael Snyder <msnyder@redhat.com>
13845 * i386-linux-nat.c (fill_fpxregset): Make global.
13846 (store_fpxregset): Ditto.
13848 * gregset.h (gdb_fpxregset_t): Define.
13849 (supply_fpxregset): Prototype.
13850 (fill_fpxregset): Prototype.
13852 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13854 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13856 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13857 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13858 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13860 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13862 * MAINTAINERS: Update target maintainer rules so that any
13863 Maintainer can approve a tested patch for a maintenance-only
13866 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13868 * MAINTAINERS (write-after-approval): Add myself.
13870 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13873 2002-01-08 Michael Snyder <msnyder@redhat.com>
13875 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13876 real name of the executable, rather than the /proc name.
13878 2002-01-03 Michael Snyder <msnyder@redhat.com>
13880 Implement a "generate-core-file" command in gdb, save target state.
13881 * gcore.c: New file. Implement new command 'generate-core-file'.
13882 Save a corefile image of the current state of the inferior.
13883 * linux-proc.c: Add linux-specific code for saving corefiles.
13884 * target.h (struct target_ops): Add new target vectors for saving
13885 corefiles; to_find_memory_regions and to_make_corefile_notes.
13886 (target_find_memory_regions): New macro.
13887 (target_make_corefile_notes): New macro.
13888 * target.c (update_current_target): Inherit new target methods.
13889 (dummy_find_memory_regions): New place-holder method.
13890 (dummy_make_corefile_notes): New place-holder method.
13891 (init_dummy_target): Initialize new dummy target vectors.
13892 * exec.c (exec_set_find_memory_regions): New function.
13893 Allow the exec_ops vector for memory regions to be taken over.
13894 (exec_make_note_section): New function, target vector method.
13895 * defs.h (exec_set_find_memory_regions): Export prototype.
13896 * procfs.c (proc_find_memory_regions): New function, corefile method.
13897 (procfs_make_note_section): New function, corefile method.
13898 (init_procfs_ops): Set new target vector pointers.
13899 (find_memory_regions_callback): New function.
13900 (procfs_do_thread_registers): New function.
13901 (procfs_corefile_thread_callback): New function.
13902 * sol-thread.c (sol_find_memory_regions): New function.
13903 (sol_make_note_section): New function.
13904 (init_sol_thread_ops): Initialize new target vectors.
13905 * inftarg.c (inftarg_set_find_memory_regions): New function.
13906 Allow to_find_memory_regions vector to be taken over.
13907 (inftarg_set_make_corefile_notes): New function.
13908 Allow to_make_corefile_notes vector to be taken over.
13909 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13910 interface layer if not target_has_execution (may be a corefile).
13911 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13912 * config/sparc/sun4sol2.mh: Ditto.
13913 * config/alpha/alpha-linux.mh: Ditto.
13914 * config/arm/linux.mh: Ditto.
13915 * config/i386/x86-64linux.mh: Ditto.
13916 * config/ia64/linux.mh: Ditto.
13917 * config/m68k/linux.mh: Ditto.
13918 * config/mips/linux.mh: Ditto.
13919 * config/powerpc/linux.mh: Ditto.
13920 * config/sparc/linux.mh: Ditto.
13922 2002-01-07 Michael Snyder <msnyder@redhat.com>
13924 * arm-linux-nat.c: Remove references to regcache.c internal data
13925 (registers[] and register_valid[]).
13927 2002-01-07 Michael Snyder <msnyder@redhat.com>
13929 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13930 so that attaching to a pid will automatically read the process's
13931 symbol file and shlibs.
13932 * Makefile.in: Add rule for linux-proc.o.
13933 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13934 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13935 * config/arm/linux.mh: Ditto.
13936 * config/i386/linux.mh: Ditto.
13937 * config/i386/x86-64linux.mh: Ditto.
13938 * config/ia64/linux.mh: Ditto.
13939 * config/m68k/linux.mh: Ditto.
13940 * config/mips/linux.mh: Ditto.
13941 * config/powerpc/linux.mh: Ditto.
13942 * config/sparc/linux.mh: Ditto.
13944 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13946 * win32-nat.c: Add i386-tdep.h dependency.
13948 2002-01-07 Michael Snyder <msnyder@redhat.com>
13950 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13951 instead of bfd_get_arch_size. Don't bail out just because
13952 there's no exec_bfd.
13954 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13955 * p-valprint.c (pascal_object_print_value): Ditto.
13956 * somread.c (som_symtab_read): Ditto.
13957 * symfile.c (simple_free_overlay_region_table): Ditto.
13958 * valops.c (value_assign): Ditto.
13960 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13961 use tilde_expand and strerror for opening save-tracepoints file.
13963 * thread-db.c (thread_db_new_objfile): Indendation fix.
13965 * infptrace.c (GDB_MAX_ALLOCA): New define.
13966 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13967 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13968 can be overridden with whatever value is appropriate to the host).
13969 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13970 alloca to allocate potentially large buffer.
13971 * rs6000-nat.c (child_xfer_memory): Ditto.
13972 * symm-nat.c (child_xfer_memory): Ditto.
13973 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13975 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13977 From Nick Clifton <nickc@redhat.com>
13978 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13980 2002-01-07 Michael Snyder <msnyder@redhat.com>
13982 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13983 Don't use exec_bfd if it's NULL.
13985 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13987 * valops.c (value_arg_coerce): Fix formatting.
13989 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13991 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13992 * gnu-nat.c: Ditto.
13994 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13996 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13997 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13998 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13999 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14000 z8k-coff have not been multi-arched. Update z8k-coff build
14003 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14005 * MAINTAINERS: Mark a29k target as obsolete.
14006 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14007 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14009 * NEWS: Note that a29k targets are obsolete.
14010 * a29k-tdep.c: Mark as obsolete.
14011 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14012 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14013 a29k-*-vxworks* targets as obsolete.
14014 * remote-adapt.c: Obsolete.
14015 * remote-eb.c: Obsolete.
14016 * remote-mm.c: Obsolete.
14017 * remote-udi.c: Obsolete.
14018 * config/a29k/a29k-udi.mt: Obsolete.
14019 * config/a29k/a29k.mt: Obsolete.
14020 * config/a29k/tm-a29k.h: Obsolete.
14021 * config/a29k/tm-vx29k.h: Obsolete.
14022 * config/a29k/vx29k.mt: Obsolete.
14024 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14026 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14027 with BFD_ENDIAN_BIG.
14029 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14031 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14032 * configure, config.in: Re-generate.
14033 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14034 * defs.h: Do not include <endian.h>.
14036 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14038 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14039 * config.in: Regenerate.
14040 * configure.in: Update copyright years.
14041 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14042 * configure: Regenerate.
14043 * i386bsd-nat.c: Update copyright years.
14044 (fill_gregset): Use regcache_collect.
14045 (fetch_inferior_registers): Only fetch integer registers
14046 if requested to do so. Add support for XMM registers
14047 using PT_GETXMMREGS.
14048 (store_inferior_registers): Only store integer registers
14049 if requested to do so. Add support for XMM registers
14050 using PT_SETXMMREGS.
14051 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14052 (store_inferior_registers): Remove.
14053 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14054 (fetch_elfcore_registers): New function.
14055 (i386nbsd_elfcore_fns): New.
14056 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14057 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14059 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14060 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14061 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14062 * config/i386/tm-nbsd.h: Update copyright years.
14063 (HAVE_SSE_REGS): Define.
14064 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14065 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14066 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14067 (SIGCONTEXT_PC_OFFSET): Remove.
14068 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14070 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14072 * configure.tgt: Remove powerpc-*-macos* target.
14073 * config/m68k/xm-mpw.h: Delete file.
14074 * config/xm-mpw.h: Delete file.
14075 * ser-mac.c: Delete file.
14076 * mpw-make.sed: Delete file.
14077 * mpw-config.in: Delete file.
14078 * mac-xdep.c: Delete file.
14079 * mac-gdb.r: Delete file.
14080 * mac-defs.h: Delete file.
14081 * mac-nat.c: Delete file.
14082 * config/powerpc/macos.mh: Delete file.
14083 * config/powerpc/macos.mt: Delete file.
14084 * config/powerpc/nm-macos.h: Delete file.
14085 * config/powerpc/tm-macos.h: Delete file.
14086 * source.c (openp, open_source_file): Remove obsolete code.
14087 * top.c (gdb_readline): Ditto.
14088 * utils.c (query): Ditto.
14089 * event-top.c (display_gdb_prompt): Ditto.
14090 * Makefile.in (ser-mac.o): Delete obsolete target.
14093 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14095 * defs.h (BIG_ENDIAN): Delete macro definition.
14096 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14097 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14098 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14099 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14100 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14101 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14102 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14103 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14104 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14105 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14106 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14107 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14108 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14109 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14110 * gdbarch.c: Re-generate.
14112 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14114 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14117 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14119 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14121 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14123 * value.h (value_ptr): Delete typedef.
14125 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14127 * i386nbsd-nat.c: Update copyright years.
14128 Include i386-tdep.h.
14130 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14132 * stabsread.c: Update copyright years.
14134 From Debashis Mahata <debashis.mahata@wipro.com>:
14135 (read_struct_fields): Deal with Sun C compiler erroneous stab
14136 output for structs and unions.
14139 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14141 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14144 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14146 * cp-abi.c: Fix whitespace.
14147 (baseclass_offset): New wrapper function.
14148 * cp-abi.h (baseclass_offset): Add prototype.
14149 (struct cp_abi_ops): Add baseclass_offset pointer.
14151 * valops.c (vb_match): Move to...
14152 * gnu-v2-abi.c (vb_match): here.
14153 * valops.c (baseclass_offset): Move to...
14154 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14156 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14158 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14159 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14160 * hpacc-abi.c (init_hpacc_ops): Likewise.
14162 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14164 * valops.c (find_overload_match): Accept obj as a
14165 reference parameter. Update it before returning.
14166 * value.h (find_overload_match): Update prototype.
14167 * eval.c (evaluate_subexp_standard): Pass object to
14168 find_overload_match by reference.
14170 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14172 * valarith.c: Replace value_ptr with struct value pointer. Remove
14173 register attribute from value declarations.
14176 * scm-lang.c (scm_lookup_name): Ditto.
14178 2002-01-03 Michael Snyder <msnyder@redhat.com>
14180 Abstract the functionality of iterating over mapped memory
14181 regions into a general purpose iterator function.
14182 * procfs.c (iterate_over_mappings): New function, general purpose
14183 iterator for memory sections.
14184 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14185 (solib_mappings_callback): New function, callback for above.
14186 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14187 (info_mappings_callback): New function, callback for above.
14189 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14191 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14193 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14194 * i386-tdep.c: Include "elf-bfd.h".
14195 (process_note_abi_tag_sections): New function.
14196 (i386_gdbarch_init): Add code to recognize various OS/ABI
14199 * maint.c (_initialize_maint_cmds): Add missing \ in
14202 For older changes see ChangeLog-2001
14208 version-control: never