1 2002-12-08 Andrew Cagney <ac131313@redhat.com>
3 * blockframe.c: Use get_frame_base instead of directly accessing
4 the `struct frame_info' member frame.
5 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
6 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
8 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
10 * Makefile.in (readline_h): Define.
11 (completer.o): Depend on readline_h.
20 (tracepoint.o): Ditto.
26 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
28 More cleanup from import of readline 4.3.
29 * completer.h (complete_line, readline_line_completion_function):
31 (line_completion_function): Removed, not used outside of completer.c.
32 * completer.c (readline_line_completion_function,
33 complete_function, line_completion_function): Use const for first
35 (line_completion_function): Make static.
36 (filename_completer): filename_completion_function is now called
37 rl_filename_completion_function
38 * corelow.c: Include <readline/readline.h>.
44 * top.c (init_main): No need to coerce
45 readline_line_completion_function anymore.
46 * cli/cli-dump.c: Include <readline/readline.h>.
48 2002-12-08 Andrew Cagney <ac131313@redhat.com>
50 * stack.c (frame_info): Use get_prev_frame.
51 * blockframe.c (frame_address_in_block): Ditto.
52 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
53 (rs6000_frameless_function_invocation): Ditto.
54 (rs6000_frame_saved_pc): Ditto.
55 (rs6000_frame_chain): Ditto.
56 * arch-utils.c (init_frame_pc_default): Ditto.
58 2002-12-08 Andrew Cagney <ac131313@redhat.com>
60 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
61 Delete redundant definition.
63 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
65 Import of readline 4.3:
66 * cli/cli-cmds.c: Include readline/tilde.h.
67 * cli/cli-setshow.c: Ditto.
68 * defs.h: Don't declare tilde_expand anymore, since readline
71 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
73 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
76 2002-12-07 Andrew Cagney <ac131313@redhat.com>
78 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
80 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
81 * gdbarch.c: Regenerate.
83 2002-12-06 Andrew Cagney <ac131313@redhat.com>
85 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
86 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
87 provide a default value.
88 * gdbarch.h, gdbarch.c: Regenerate.
89 * frame.c (get_prev_frame): Update. Check
90 DEPRECATED_INIT_FRAME_PC_FIRST_P.
91 * s390-tdep.c (s390_gdbarch_init): Update.
92 * mips-tdep.c (mips_gdbarch_init): Update.
93 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
94 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
95 * alpha-tdep.c (alpha_gdbarch_init): Update.
97 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
99 * ia64-linux-nat.c: Include gdb_string.h.
100 * alpha-nat.c: Ditto.
101 * ppc-linux-nat.c: Ditto.
102 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
105 2002-12-05 Andrew Cagney <ac131313@redhat.com>
107 * gdbthread.h: Include "frame.h".
108 (struct thread_info): Replace step_frame_address with
110 * inferior.h: Include "frame.h".
111 (step_frame_id): Replace external variable step_frame_address.
112 * gdbthread.h (save_infrun_state): Replace step_frame_address
113 parameter with step_frame_id parameter.
114 (load_infrun_state): Ditto.
115 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
116 * infcmd.c (step_frame_id, step_1, step_once): Update.
117 * thread.c (load_infrun_state, save_infrun_state): Update.
118 * infrun.c (clear_proceed_status, save_inferior_status): Update.
119 (handle_inferior_event, step_over_function): Update.
120 (normal_stop, context_switch, restore_inferior_status): Update.
121 (struct inferior_status): Replace step_frame_address with
124 2002-12-05 David Carlton <carlton@math.stanford.edu>
126 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
127 DW_TAG_member as well as a declaration as being a C++ static data
129 (read_structure_scope): Combine tests for DW_TAG_member and
132 2002-12-05 David Carlton <carlton@math.stanford.edu>
134 * linespec.c (decode_compound): New function.
135 (decode_line_1): Move code into decode_compound.
137 2002-12-05 David Carlton <carlton@math.stanford.edu>
139 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
141 (lookup_symbol_aux): Do the 'field_of_this' check before checking
142 the static block. See PR gdb/804.
144 2002-12-05 David Carlton <carlton@math.stanford.edu>
146 * symtab.c (lookup_symbol_aux_block): New function.
147 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
149 2002-12-05 Andrew Cagney <ac131313@redhat.com>
151 * gdbarch.sh: Dump the predicate function and macro values.
152 (read): Print error on standard error.
153 * gdbarch.c: Regenerate.
155 2002-12-04 Kevin Buettner <kevinb@redhat.com>
157 * Makefile.in (mips_tdep_h): Define.
158 (mips-tdep.o): Add mips_tdep_h to dependency list.
159 * mips-tdep.h: New file.
160 * mips-tdep.c (mips-tdep.h): Include.
161 (enum mips_abi): Move to mips-tdep.h.
162 (mips_abi): New function.
164 2002-12-04 David Carlton <carlton@math.stanford.edu>
166 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
168 2002-12-04 David Carlton <carlton@math.stanford.edu>
170 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
172 (lookup_symbol_aux_minsyms): New function.
174 2002-12-04 J. Brobecker <brobecker@gnat.com>
176 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
178 2002-12-04 J. Brobecker <brobecker@gnat.com>
180 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
181 which is an obsolete macro name.
183 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
185 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
186 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
188 2002-12-03 H.J. Lu (hjl@gnu.org)
190 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
191 (create_breakpoints): Make sure the addr_string field is not
194 2002-12-03 Andrew Cagney <ac131313@redhat.com>
196 * sparc-nat.c (fetch_inferior_registers)
197 (store_inferior_registers): Add comment on problem of LWP vs
200 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
201 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
202 (lin_lwp_store_registers): Remove.
203 (init_lin_lwp_ops): Use fetch_inferior_registers
204 and store_inferior_registers directly.
205 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
206 (store_inferior_registers): Likewise.
209 2002-12-03 Andrew Cagney <ac131313@redhat.com>
211 * frame.h (get_frame_id): Convert to a function.
212 (null_frame_id, frame_id_p): Declare.
213 (frame_id_eq, frame_id_inner): Declare.
214 (frame_id_build): New function.
215 * frame.c (get_frame_id): Update. Use null_frame_id.
216 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
218 (null_frame_id, frame_id_p): Define.
219 (frame_id_eq, frame_id_inner): Define.
220 (frame_id_build): New function.
221 * varobj.c (varobj_create): Update.
222 (varobj_update): Update.
223 * valops.c (value_assign): Update.
224 (new_root_variable): Update.
225 * infrun.c (save_inferior_status): Update.
226 * breakpoint.c (watch_command_1): Update.
228 2002-12-03 J. Brobecker <brobecker@gnat.com>
230 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
233 2002-12-03 Andrew Cagney <cagney@redhat.com>
235 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
238 * PROBLEMS: Mention PR gdb/725.
240 2002-12-03 Andreas Schwab <schwab@suse.de>
242 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
244 2002-12-02 Adam Fedor <fedor@gnu.org>
245 Klee Dienes <kdienes@apple.com>
247 * objc-lang.c (objc_printstr): Add width arg to match
249 (compare_selectors): Add 'const' to arg types.
250 (compare_classes): Likewise.
251 (find_imps): Cast msym pointer to avoid compiler warning.
252 (print_object_command): Validate the address before
253 passing it to the print routine.
254 (find_objc_msgcall_submethod): Change function argument to
256 * objc-lang.h: Add 'extern' to all function declarations.
257 (value_nsstring): Add declaration.
259 2002-12-02 J. Brobecker <brobecker@gnat.com>
261 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
262 Fixes a build failure on HP/UX.
264 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
266 (hpread_has_name): Advance declaration to avoid a compilation warning.
267 (pst_syms_count): Add missing variable type. By change, the compiler
268 was defaulting to int, which seems a good choice. Fixes a compilation
270 (pst_syms_size): Likewise.
272 2002-12-02 J. Brobecker <brobecker@gnat.com>
274 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
275 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
276 later to set the proper gdbarch methods depending on the osabi.
277 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
279 2002-12-02 J. Brobecker <brobecker@gnat.com>
281 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
282 * osabi.c (gdb_osabi_name): Add strings images for the two new
284 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
286 2002-12-02 Andrew Cagney <ac131313@redhat.com>
288 * MAINTAINERS (Java): Global maintainers are responible for Java.
289 (Past Maintainers): Mention both Anthony Green and Per Bothner as
290 part Java maintainers.
292 2002-12-02 J. Brobecker <brobecker@gnat.com>
294 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
295 Fixes a compilation failure on AiX.
297 2002-12-02 J. Brobecker <brobecker@gnat.com>
299 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
300 why aix-thread.o is not listed.
302 2002-12-01 Andrew Cagney <ac131313@redhat.com>
304 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
305 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
306 * gdbarch.h, gdbarch.c: Re-generate.
307 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
308 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
309 * config/pa/tm-hppa.h, frame.h: Update.
310 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
311 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
312 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
313 * cris-tdep.c, alpha-tdep.c: Update.
314 * frame.c (set_unwind_by_pc, create_new_frame): Use either
315 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
316 (get_prev_frame): Ditto.
318 2002-11-30 Andrew Cagney <cagney@redhat.com>
320 * exec.c (xfer_memory): Replace boolean with int.
321 * p-exp.y: Use 0 instead of false.
322 * corelow.c (gdb_check_format): Change return type to int from
324 * utils.c: Don't include <curses.h> or <term.h> first.
326 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
328 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
329 (m68hc11_register_byte): Remove.
330 (m68hc11_gdbarch_init): Don't set the above.
332 2002-11-29 Andrew Cagney <cagney@redhat.com>
334 * remote-mips.c (mips_initialize): Force a selected frame rebuild
335 by calling get_selected_frame.
336 * ocd.c (ocd_start_remote): Use get_selected frame instead of
337 set_current_frame, create_new_frame, select_frame and
339 * remote-e7000.c (e7000_start_remote): Ditto.
340 * remote-mips.c (common_open): Ditto
341 * remote-rdp.c (remote_rdp_open): Ditto.
343 2002-11-29 Andreas Schwab <schwab@suse.de>
345 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
346 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
347 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
348 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
349 read_memory_unsigned_integer instead of read_memory_integer when
350 dealing with addresses and instruction opcodes.
351 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
352 (m68k_linux_frame_saved_pc): Likewise.
354 2002-11-29 Andrew Cagney <ac131313@redhat.com>
356 * stack.c (selected_frame, select_frame): Move from here ...
357 * frame.c (selected_frame, select_frame): ... to here. Include
359 * Makefile.in (frame.o): Update dependencies.
360 * frame.c (get_selected_frame): New function.
361 * frame.h (get_selected_frame): Declare.
362 (deprecated_selected_frame): Rename selected_frame.
363 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
364 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
365 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
366 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
367 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
368 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
369 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
370 * z8k-tdep.c, cli/cli-cmds.c: Update.
372 2002-11-29 Andrew Cagney <ac131313@redhat.com>
374 * frame.h (get_selected_block): Add comments.
376 2002-11-28 Andrew Cagney <ac131313@redhat.com>
378 * frame.c (pc_notcurrent): New function.
379 (find_frame_sal): New function.
380 * frame.h (find_frame_sal): Declare.
381 (struct symtab_and_line): Add opaque declaration.
382 * stack.c (print_frame_info_base): Use find_frame_sal instead of
385 * ada-lang.c (find_printable_frame): Ditto.
387 2002-11-28 J. Brobecker <brobecker@gnat.com>
389 * configure.in: Check that the pthdebug library is recent enough
390 before enabling thread support on native AiX.
391 * configure: Regenerate.
393 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
394 from the list of object files as it is now appended by configure
395 if thread support is enabled.
396 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
397 if thread support is enabled.
399 2002-11-28 Andrew Cagney <cagney@redhat.com>
401 * stack.c (get_selected_block): In-line get_current_block.
402 * frame.h (get_current_block): Delete declaration.
403 * blockframe.c (get_current_block): Delete function.
405 2002-11-28 Andrew Cagney <ac131313@redhat.com>
407 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
408 USE_GENERIC_DUMMY_FRAMES.
409 * gdbarch.h, gdbarch.c: Regenerate.
410 * valops.c, frame.c: Update.
411 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
412 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
413 * config/pa/tm-hppa.h, blockframe.c: Update.
414 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
415 * m68k-tdep.c, alpha-tdep.c: Ditto.
417 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
418 * mips-tdep.c: Ditto.
420 2002-11-27 Andrew Cagney <ac131313@redhat.com>
422 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
423 (USE_GENERIC_DUMMY_FRAMES): Default to true.
424 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
425 * gdbarch.c, gdbarch.h: Re-generate.
426 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
427 (CALL_DUMMY_LOCATION): Delete macro definition.
428 (PC_IN_CALL_DUMMY): Delete macro definitions.
430 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
431 default is already generic_pc_in_call_dummy.
432 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
433 * v850-tdep.c (v850_gdbarch_init): Ditto.
434 * sh-tdep.c (sh_gdbarch_init): Ditto.
435 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
436 * mips-tdep.c (mips_gdbarch_init): Ditto.
437 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
439 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
440 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
441 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
442 * avr-tdep.c (avr_gdbarch_init): Ditto.
444 * arm-tdep.c (arm_gdbarch_init): Do not set
445 use_generic_dummy_frames, default is already 1.
446 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
447 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
448 * v850-tdep.c (v850_gdbarch_init): Ditto.
449 * sh-tdep.c (sh_gdbarch_init): Ditto.
450 * s390-tdep.c (s390_gdbarch_init): Ditto.
451 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
452 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
453 * mips-tdep.c (mips_gdbarch_init): Ditto.
454 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
456 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
457 * i386-tdep.c (i386_gdbarch_init): Ditto.
458 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
459 * frv-tdep.c (frv_gdbarch_init): Ditto.
460 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
461 * cris-tdep.c (cris_gdbarch_init): Ditto.
462 * avr-tdep.c (avr_gdbarch_init): Ditto.
464 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
465 call_dummy_location, default is already AT_ENTRY_POINT.
466 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
467 * v850-tdep.c (v850_gdbarch_init): Ditto.
468 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
469 * sh-tdep.c (sh_gdbarch_init): Ditto.
470 * s390-tdep.c (s390_gdbarch_init): Ditto.
471 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
472 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
473 * mips-tdep.c (mips_gdbarch_init): Ditto.
474 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
475 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
476 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
477 * i386-tdep.c (i386_gdbarch_init): Ditto.
478 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
479 * frv-tdep.c (frv_gdbarch_init): Ditto.
480 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
481 * cris-tdep.c (cris_gdbarch_init): Ditto.
482 * avr-tdep.c (avr_gdbarch_init): Ditto.
483 * arm-tdep.c (arm_gdbarch_init): Ditto.
484 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
486 2002-11-28 Andrew Cagney <cagney@redhat.com>
488 * frame.h: Update comments on set_current_frame, create_new_frame,
489 flush_cached_frames, reinit_frame_cache, select_frame and
492 2002-11-27 Andrew Cagney <cagney@redhat.com>
494 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
495 deprecated pc_in_call_dummy function.
496 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
497 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
498 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
499 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
500 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
502 2002-11-26 Martin M. Hunt <hunt@redhat.com>
504 * Makefile.in: Remove Tix dependencies.
505 * acinclude.m4: Ditto.
507 * configure.in: Ditto.
508 * configure: Regenerated.
510 2002-11-26 Andrew Cagney <ac131313@redhat.com>
512 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
513 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
514 * gdbarch.c: Re-generate.
516 2002-11-26 Andrew Cagney <ac131313@redhat.com>
518 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
519 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
520 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
521 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
522 pc_in_call_dummy_at_entry_point.
523 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
524 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
525 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
526 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
527 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
528 pc_in_call_dummy_on_stack.
529 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
530 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
531 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
532 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
533 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
535 2002-11-26 Andrew Cagney <ac131313@redhat.com>
537 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
538 pc_in_call_dummy_before_text_end
539 (deprecated_pc_in_call_dummy_after_text_end): Rename
540 pc_in_call_dummy_after_text_end.
541 (deprecated_pc_in_call_dummy_on_stack): Rename
542 pc_in_call_dummy_on_stack.
543 (deprecated_pc_in_call_dummy_at_entry_point): Rename
544 pc_in_call_dummy_at_entry_point.
545 * m68k-tdep.c (m68k_gdbarch_init): Update.
546 * s390-tdep.c (s390_gdbarch_init): Update.
547 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
548 * vax-tdep.c (vax_gdbarch_init): Update.
549 * sparc-tdep.c (sparc_gdbarch_init): Update.
550 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
551 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
552 * i386-tdep.c (i386_gdbarch_init): Update.
553 * frv-tdep.c (frv_gdbarch_init): Update.
554 * cris-tdep.c (cris_gdbarch_init): Update.
555 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
556 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
557 (deprecated_pc_in_call_dummy_after_text_end)
558 (deprecated_pc_in_call_dummy_on_stack)
559 (deprecated_pc_in_call_dummy_at_entry_point): Update.
560 * alpha-tdep.c (alpha_gdbarch_init): Update.
562 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
564 * acconfig.h (HAVE_PREAD64): Add.
565 * configure.in: Check for pread64.
566 * config.in: Regenerated.
567 * configure: Regenerated.
568 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
569 * linux-proc.c (linux_proc_xfer_memory): New function.
570 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
572 2002-11-25 David Carlton <carlton@math.stanford.edu>
574 * dwarf2read.c (scan_partial_symbols): Descend into namespace
577 2002-11-25 Andrew Cagney <ac131313@redhat.com>
579 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
580 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
582 2002-11-25 Jim Blandy <jimb@redhat.com>
584 * symfile.c (init_objfile_sect_indices): New function.
585 (default_symfile_offsets): Move the section-index-initializing
586 stuff into init_objfile_sect_indices, and call that.
588 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
589 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
591 * symfile.c (syms_from_objfile): Adjust indentation.
593 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
594 || info_verbose isn't true.
596 2002-11-24 Andrew Cagney <ac131313@redhat.com>
598 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
599 default to get_frame_base.
600 * gdbarch.h, gdbarch.c: Regenerate.
601 * arch-utils.c (default_frame_address): Delete function.
602 * arch-utils.h (default_frame_address): Delete declaration
604 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
606 * varobj.c (find_frame_addr_in_frame_chain):
607 Use get_frame_base instead of FRAME_FP,
610 2002-11-19 Andrew Cagney <ac131313@redhat.com>
612 * frame.h (FRAME_FP): Delete macro.
613 (get_frame_base): New function declaration.
614 * frame.c (get_frame_base): New function.
615 (get_frame_id): Use ->frame.
616 (frame_find_by_id): Rewrite to use get_frame_id.
617 * blockframe.c: Use get_frame_base instead of FRAME_FP.
618 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
619 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
620 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
621 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
622 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
623 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
625 2002-11-24 Andrew Cagney <ac131313@redhat.com>
627 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
629 2002-11-24 Andrew Cagney <ac131313@redhat.com>
631 * frame.c (set_unwind_by_pc): Revert change below, use
633 (get_prev_frame): Ditto.
635 2002-11-24 Andrew Cagney <ac131313@redhat.com>
637 * dummy-frame.c (pc_in_dummy_frame): New function.
638 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
639 (find_dummy_frame): Update comment.
640 (generic_pop_current_frame): Use get_frame_type.
641 * dummy-frame.h (pc_in_dummy_frame): Declare.
642 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
643 (create_new_frame): Use pc_in_dummy_frame.
644 (get_prev_frame): Use pc_in_dummy_frame.
645 (frame_saved_regs_register_unwind): Use get_prev_frame.
646 (deprecated_generic_get_saved_register): Use get_prev_frame.
648 2002-11-23 Andrew Cagney <ac131313@redhat.com>
650 * blockframe.c (find_frame_addr_in_frame_chain): Move function
652 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
653 (varobj_create): Note that frame ID should be used.
654 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
656 2002-11-23 Andrew Cagney <ac131313@redhat.com>
658 * breakpoint.c: Include "gdb_assert.h".
659 (deprecated_frame_in_dummy): Assert that generic dummy frames are
661 * Makefile.in (breakpoint.o): Update dependencies.
662 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
663 deprecated_frame_in_dummy.
664 * stack.c (print_frame_info_base): Ditto.
666 (print_frame_info_base): Ditto. Delete dead code.
668 2002-11-23 Andreas Schwab <schwab@suse.de>
670 * Makefile.in (m68k_tdep_h): Define.
671 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
672 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
673 * m68k-tdep.c: Move register number enum ...
674 * m68k-tdep.h: ... to this new file and rename the constants from
675 E_* to M68K_*. All uses changed.
676 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
677 * abug-rom.c: Include "m68k-tdep.h". Use
678 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
679 * cpu32bug-rom.c: Likewise.
680 * dbug-rom.c: Likewise.
681 * m68k-tdep.c: Likewise.
682 * m68klinux-nat.c: Likewise.
683 * remote-est.c: Likewise.
684 * rom68k-rom.c: Likewise.
685 * config/m68k/tm-linux.h: Likewise.
687 2002-11-23 Andrew Cagney <ac131313@redhat.com>
689 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
690 dummy frame initialization code.
691 * mips-tdep.c (mips_gdbarch_init): Ditto.
693 2002-11-22 Christopher Faylor <cgf@redhat.com>
695 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
698 2002-11-22 Andrew Cagney <ac131313@redhat.com>
700 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
701 to default_frame_address.
702 * gdbarch.h, gdbarch.c: Re-generate.
704 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
705 or frame_locals_address to default_frame_address.
706 * m68k-tdep.c (m68k_gdbarch_init): Update.
707 * i386-tdep.c (i386_gdbarch_init): Update.
708 * frv-tdep.c (frv_gdbarch_init): Update.
709 * sh-tdep.c (sh_gdbarch_init): Update.
710 * v850-tdep.c (v850_gdbarch_init): Update.
711 * sparc-tdep.c (sparc_gdbarch_init): Update.
712 * mips-tdep.c (mips_gdbarch_init): Update.
713 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
714 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
717 * cris-tdep.c (cris_frame_args_address): Delete function.
718 (cris_frame_locals_address): Delete function.
719 (cris_gdbarch_init): Do not set frame_args_address or
720 frame_locals_address.
722 2002-11-22 Michael Snyder <msnyder@redhat.com>
724 * thread-db.c (thread_db_load): Tell the user what's going on
725 if dlopen fails on libthread_db.
727 2002-11-23 Andreas Schwab <schwab@suse.de>
729 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
730 invariant return values.
732 2002-11-22 Andreas Schwab <schwab@suse.de>
734 * valops.c (value_slice): Move declaration of `offset' to avoid
737 2002-11-22 Christopher Faylor <cgf@redhat.com>
739 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
740 (struct so_stuff): Add end_addr field.
741 (register_loaded_dll): Calculate and store end address of loaded dll.
742 (solib_address): New function.
743 (child_solib_loaded_library_pathname): Pass carefully constructed
744 section info to safe_symbol_file_add rather than ignoring it.
745 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
747 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
748 (child_create_inferior): Fix a compiler warning.
749 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
750 (solib_address): Declare new function.
752 2002-11-22 Andreas Schwab <schwab@suse.de>
754 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
757 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
759 * maint.c (_initialize_maint_cmds): Fix typo. From
760 Francesco Potorti` <pot@gnu.org>.
762 2002-11-21 Andrew Cagney <cagney@redhat.com>
764 * mips-tdep.c (mips_dump_tdep): Delete references to
765 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
766 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
767 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
768 * printcmd.c (build_address_symbolic): Delete calls to
769 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
770 (address_info): Ditto.
773 2002-11-19 Klee Dienes <kdienes@apple.com>
774 Adam Fedor <fedor@gnu.org>
776 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
777 the ability to explicitly specify the quote characters and word
778 break characters; if NULL is specified for either, use the old
779 behavior of using the characters used by the completer.
780 (skip_chars): New function. Convenience wrapper around
781 skip_quoted_chars to provide the original skip_chars behavior.
782 * completer.h (skip_quoted_chars): Add prototype.
784 2002-11-19 Andrew Cagney <ac131313@redhat.com>
786 Problems reported by Paul Eggert.
787 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
789 2002-11-19 Andreas Schwab <schwab@suse.de>
791 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
792 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
793 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
794 (m68k_linux_frame_saved_pc): Move to ...
795 * m68klinux-tdep.c: ... here. New file.
796 * Makefile.in (m68klinux-tdep.o): Add dependencies.
797 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
799 2002-11-19 Adam Fedor <fedor@gnu.org>
801 * objc-exp.y: Revert to old skip_quoted usage.
803 2002-11-19 Adam Fedor <fedor@gnu.org>
805 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
806 (objc_lang_h): Define.
807 (YYFILES): Add objc-exp.tab.c.
808 (local-maintainer-clean): Remove objc-exp.tab.c.
809 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
811 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
813 * p-exp.y (typecast rule): Add automatic dereference of
814 pascal classes if needed.
815 (THIS): Set current_type.
816 Automatically dereference pascal classes.
817 (typebase rule): Add ^typebase recognition.
819 2002-11-18 Adam Fedor <fedor@gnu.org>
821 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
822 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
823 (op_name): Handle OP_OBJC_SELF.
824 * Makefile.in (expprint.o): Add additional depends.
826 2002-11-18 Adam Fedor <fedor@gnu.org>
828 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
829 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
830 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
831 * objc-exp.y: Likewise.
833 2002-11-18 Adam Fedor <fedor@gnu.org>
835 * gdb/parser-defs.h: (struct objc_class_str): New structure
836 for parsing ObjC classes.
838 2002-11-18 Andrew Cagney <ac131313@redhat.com>
840 * stack.c (frame_relative_level): Copy function from here ...
841 * frame.c (frame_relative_level): ...to here.
843 2002-11-18 Andrew Cagney <ac131313@redhat.com>
845 * frame.h (enum frame_type): Define.
846 (get_frame_type): Declare.
847 (struct frame_info): Add field `type'. Delete field
848 signal_handler_caller.
849 (deprecated_set_frame_signal_handler_caller): Declare.
850 * frame.c (get_frame_type): New function.
851 (deprecated_set_frame_type): New function.
852 (create_new_frame): Set the frame's type.
853 (get_prev_frame): Similar.
854 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
855 * s390-tdep.c: Ditto.
856 * m68klinux-nat.c: Ditto.
857 * ns32k-tdep.c: Ditto.
858 * x86-64-linux-tdep.c: Ditto.
860 * rs6000-tdep.c: Ditto.
861 * ppc-linux-tdep.c: Ditto.
862 * i386-interix-tdep.c: Ditto.
863 * mips-tdep.c: Ditto.
864 * m68k-tdep.c: Ditto.
865 * hppa-tdep.c: Ditto.
866 * ia64-tdep.c: Ditto.
867 * cris-tdep.c: Ditto.
869 * alpha-tdep.c: Ditto.
870 * i386-tdep.c: Ditto.
873 * blockframe.c: Update.
874 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
875 deprecated_set_frame_type instead of signal_handler_caller.
876 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
877 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
878 * breakpoint.h: Delete FIXME suggesting get_frame_type.
880 2002-11-18 Klee Dienes <kdienes@apple.com>
882 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
884 2002-11-18 Klee Dienes <kdienes@apple.com>
886 * buildsym.c (pop_context): Add comment.
888 2002-11-18 Klee Dienes <kdienes@apple.com>
890 * buildsym.h (pop_context): Convert to function, defined in
892 * buildsym.c: Include gdb_assert.h.
893 (pop_context): Implement as C function. Add check for stack
895 * dbxread.c (process_one_symbol): Complain and stop processing
896 that symbol if we are already at the top of the context stack for
897 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
898 when processing N_RBRAC.
900 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
902 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
904 (struct target_waitstatus): Add opaque definition.
905 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
906 * exec.c (init_exec_ops): Likewise.
907 * fork-child.c (clone_and_follow_inferior): Remove.
908 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
909 * inferior.h (clone_and_follow_inferior): Remove prototype.
910 * infrun.c (follow_fork_mode_both): Remove.
911 (follow_fork_mode_kind_names): Remove commented out "both".
912 (follow_inferior_fork): Remove follow_fork_mode_both support.
913 * inftarg.c (child_clone_and_follow_inferior): Remove.
914 (child_post_follow_inferior_by_clone): Remove.
915 (init_child_ops): Don't set to_clone_and_follow_inferior
916 or to_post_follow_inferior_by_clone.
917 * target.c (default_clone_and_follow_inferior): Remove.
918 (cleanup_target): Don't set to_clone_and_follow_inferior
919 or to_post_follow_inferior_by_clone.
920 (find_default_clone_and_follow_inferior): Remove.
921 (init_dummy_target): Don't set to_clone_and_follow_inferior.
922 (debug_to_clone_and_follow_inferior): Remove.
923 (debug_to_post_follow_inferior_by_clone): Remove.
924 (setup_target_debug): Don't set to_clone_and_follow_inferior
925 or to_post_follow_inferior_by_clone.
926 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
927 and to_post_follow_inferior_by_clone.
928 (child_clone_and_follow_inferior): Remove prototype.
929 (child_post_follow_inferior_by_clone): Remove prototype.
930 (target_clone_and_follow_inferior): Remove macro.
931 (target_post_follow_inferior_by_clone): Remove macro.
932 (find_default_clone_and_follow_inferior): Remove prototype.
934 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
936 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
937 inferior_has_vforked, and inferior_has_execd instead of
938 target_has_forked, target_has_vforked, and target_has_execd.
939 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
940 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
941 (CHILD_WAIT): Define.
942 (child_wait): Add prototype.
943 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
945 (hpux_has_vforked): Likewise, from child_has_vforked.
946 (hpux_has_execd): Likewise, from child_has_execd.
947 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
948 (not_same_real_pid, child_wait): New, copied from inftarg.c.
949 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
950 and hpux_has_syscall_event instead of the target hooks.
951 * infrun.c (inferior_has_forked, inferior_has_vforked)
952 (inferior_has_execd): New functions.
953 * inftarg.c (not_same_real_pid): Remove.
954 (child_wait): Remove references to not_same_real_pid,
955 target_has_forked, target_has_vforked, target_has_execd,
956 and target_has_syscall_event.
957 (child_has_forked, child_has_vforked, child_has_execd)
958 (child_has_syscall_event): Remove.
959 (init_child_ops): Remove references to child_has_forked,
960 child_has_vforked, child_has_execd, and child_has_syscall_event.
961 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
962 (hpux_has_vforked): Likewise, from child_has_vforked.
963 (hpux_has_execd): Likewise, from child_has_execd.
964 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
965 * target.c (cleanup_target): Remove references to
966 to_has_forked, to_has_vforked, to_has_execd, and
967 to_has_syscall_event.
968 (update_current_target): Likewise.
969 (setup_target_debug): Likewise.
970 (debug_to_has_forked): Remove.
971 (debug_to_has_vforked): Remove.
972 (debug_to_has_execd): Remove.
973 (debug_to_has_syscall_event): Remove.
974 * target.h (struct target_ops): Remove to_has_forked.
975 to_has_vforked, to_has_execd, and to_has_syscall_event.
976 (child_has_forked, child_has_vforked, child_has_execd)
977 (child_has_syscall_event): Remove prototypes.
978 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
980 (target_has_forked, target_has_vforked, target_has_execd)
981 (target_has_syscall_event): Remove macros.
983 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
985 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
986 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
987 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
988 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
989 * target.c (cleanup_target): Remove reference to
990 to_can_follow_vfork_prior_to_exec.
991 (update_current_target): Likewise.
992 (debug_to_can_follow_vfork_prior_to_exec): Remove.
993 (setup_target_debug): Remove reference to
994 to_can_follow_vfork_prior_to_exec.
995 * target.h (struct target_ops): Remove
996 to_can_follow_vfork_prior_to_exec.
997 (child_can_follow_vfork_prior_to_exec): Remove prototype.
998 (target_can_follow_vfork_prior_to_exec): Remove definition.
999 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1001 * infrun.c (follow_vfork_when_exec): Remove.
1002 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1003 (follow_exec): Likewise.
1004 (handle_inferior_event): Likewise.
1005 (keep_going): Likewise.
1007 2002-11-15 Andrew Cagney <cagney@redhat.com>
1009 * frame.c (generic_unwind_get_saved_register): Make static.
1010 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1011 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1012 defaults to generic_unwind_get_saved_register.
1013 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1014 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1015 * frv-tdep.c (frv_gdbarch_init): Ditto.
1016 * i386-tdep.c (i386_gdbarch_init): Ditto.
1017 * s390-tdep.c (s390_gdbarch_init): Ditto.
1018 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1019 * v850-tdep.c (v850_gdbarch_init): Ditto.
1020 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1021 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1022 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1024 2002-11-15 Andrew Cagney <cagney@redhat.com>
1026 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1029 2002-11-15 Andrew Cagney <cagney@redhat.com>
1031 * frame.h (sigtramp_saved_pc): Delete declaration.
1032 * blockframe.c (sigtramp_saved_pc): Delete function.
1033 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1034 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1035 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1036 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1038 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1040 * frame.c (frame_pc_unwind): New function.
1041 (frame_saved_regs_pc_unwind): New function.
1042 (frame_register_unwind): Pass unwind_cache instead of
1043 register_unwind_cache.
1044 (set_unwind_by_pc): Add unwind_pc parameter, set.
1045 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1046 (get_prev_frame): Ditto.
1047 * frame.h (frame_pc_unwind_ftype): Declare.
1048 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1049 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1050 (frame_pc_unwind): Declare.
1051 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1052 (struct dummy_frame): Add comment mentioning that values are for
1054 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1055 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1056 (generic_file_frame_chain_valid): Ditto.
1057 * stack.c (frame_info): Ditto.
1059 2002-11-15 David Carlton <carlton@math.stanford.edu>
1061 * linespec.c (locate_first_half): New function.
1062 (decode_line_1): Move code into locate_first_half.
1064 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1066 * complaints.h: Add comment explaining how to eliminate a
1067 deprecated_complain call.
1068 * complaints.h: Fix spelling errors.
1070 2002-11-15 David Carlton <carlton@math.stanford.edu>
1072 * printcmd.c: Remove #include "disasm.h".
1074 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1076 * frame.h: Move the most relevant interface functions to the start
1079 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1081 * regcache.h (deprecated_registers): Rename registers.
1082 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1083 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1084 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1085 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1086 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1087 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1088 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1089 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1090 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1091 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1092 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1093 * v850ice.c: Update.
1095 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1097 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1100 2002-11-13 Andrew Cagney <cagney@redhat.com>
1102 * regcache.h (deprecated_read_register_bytes): Rename
1103 read_register_bytes.
1104 (deprecated_write_register_bytes): Rename write_register_bytes.
1105 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1106 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1107 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1108 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1109 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1110 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1111 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1112 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1113 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1114 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1115 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1116 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1117 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1118 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1120 2002-11-13 Jim Blandy <jimb@redhat.com>
1122 * findvar.c (read_var_value): Doc fix.
1124 2002-11-13 Andrew Cagney <cagney@redhat.com>
1126 * regcache.c (struct regcache): Replace passthough_p with
1128 (regcache_xmalloc): Initialize readonly_p.
1129 (build_regcache): Initialize readonly_p.
1130 (regcache_save): New function.
1131 (regcache_restore): New function.
1132 (regcache_cpy): Re-implement using regcache_save and
1134 (regcache_raw_read): Update.
1135 (regcache_cooked_read): When a read-only cache, checked for cached
1136 pseudo register values.
1137 (regcache_raw_write): Assert that the cache is not read-only.
1138 Remove code handling a non-passthrough cache.
1139 * regcache.h (regcache_save): Declare.
1140 (regcache_restore): Declare.
1142 2002-11-13 Andrew Cagney <cagney@redhat.com>
1144 * regcache.c (struct regcache_descr): Add fields
1145 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1146 (init_legacy_regcache_descr): Compute the size of a cooked
1147 register cache and then assign that to sizeof_raw_registers. Set
1148 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1149 (init_legacy_regcache_descr): Ditto.
1151 2002-11-13 Andrew Cagney <cagney@redhat.com>
1153 * regcache.c (register_buffer): Move to near start of file, update
1155 (regcache_raw_read): Use.
1156 (regcache_raw_write): Use.
1157 (struct regcache): Rename raw_registers to registers and
1158 raw_register_valid_p to register_valid_p.
1159 (regcache_xmalloc): Update.
1160 (regcache_xfree): Update.
1161 (register_buffer): Update.
1162 (regcache_cpy): Update.
1163 (regcache_cpy_no_passthrough): Update.
1164 (regcache_valid_p): Update.
1165 (deprecated_grub_regcache_for_registers): Update.
1166 (deprecated_grub_regcache_for_register_valid): Update.
1167 (set_register_cached): Update.
1168 (regcache_raw_write): Update.
1170 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1172 * p-exp.y (name_not_typename): Use copy_name to
1173 set current_type variable for fields of THIS.
1175 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1177 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1178 * monitor.c (init_base_monitor_ops): Likewise.
1179 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1180 * remote-array.c (init_array_ops): Likewise.
1181 * remote-e7000.c (init_e7000_ops): Likewise.
1182 * remote-es.c (init_es1800_ops): Likewise.
1183 (init_es1800_child_ops): Likewise.
1184 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1185 * remote-sim.c (init_gdbsim_ops): Likewise.
1186 * remote-st.c (init_st2000_ops): Likewise.
1187 * sol-thread.c (init_sol_core_ops): Likewise.
1188 (init_sol_thread_ops): Likewise.
1189 * v850ice.c (init_850ice_ops): Likewise.
1190 * win32-nat.c (init_child_ops): Likewise.
1191 * wince.c (init_child_ops): Likewise.
1193 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1195 * utils.c (gdb_realpath): Make rp a constant pointer.
1197 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1199 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1200 a constant buffer; cannonicalize_file_name(); realpath() with a
1201 pathconf() defined buffer, xstrdup().
1203 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1205 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1206 to hang2.C; hang3.c to hang3.C.
1208 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1210 * findvar.c (read_var_value): Reenable TLS code.
1212 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1213 Jim Blandy <jimb@redhat.com>
1215 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1216 * target.c (update_current_target): Add
1217 to_get_thread_local_address.
1218 * target.h (to_get_thread_local_address): Export.
1219 (target_get_thread_local_address): Define.
1220 (target_get_thread_local_address_p): Define.
1221 * thread-db.c: Include solib-svr4.h.
1222 (td_thr_tls_get_addr_p): Define.
1223 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1224 (thread_db_get_thread_local_address): New function.
1225 (init_thread_db_ops): Initialize to_get_thread_local_address.
1226 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1227 * configure: Regenerate.
1228 * config.in: Regenerate.
1230 2002-11-11 David Carlton <carlton@math.stanford.edu>
1232 * linespec.c (set_flags): New function.
1233 (decode_line_1): Move code into set_flags.
1235 2002-11-11 David Carlton <carlton@math.stanford.edu>
1237 * linespec.c (decode_line_1): Move chunks of code to separate
1239 (initialize_defaults): New function.
1240 (decode_indirect): New function.
1242 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1244 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1245 instead of void_code_ptr.
1246 (sigtramp_saved_pc): Ditto.
1248 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1251 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1253 * gdbtypes.h (struct main_type): Move artificial flag out of
1254 loc. New member of ``struct field'' named static_kind. Reduce
1255 overloaded meaning of bitsize.
1256 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1257 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1258 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1260 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1262 (template_to_fixed_record_type, template_to_static_fixed_type)
1263 (to_record_with_fixed_variant_part): Likewise.
1264 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1265 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1266 * dwarfread.c (struct_type, enum_type): Likewise.
1267 * hpread.c (hpread_read_enum_type)
1268 (hpread_read_function_type, hpread_read_doc_function_type)
1269 (hpread_read_struct_type): Likewise.
1270 * mdebugread.c (parse_symbol): Likewise.
1272 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1274 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1275 * stack.c (print_frame_info_base): Update.
1276 (print_frame_info_base, frame_info): Update.
1277 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1278 (sparc_frame_saved_pc): Update.
1279 * ada-lang.c (find_printable_frame): Update.
1280 * breakpoint.c (deprecated_frame_in_dummy): Update.
1282 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1284 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1286 (regmap): Extend to cover all registers.
1287 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1288 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1290 (fetch_register, sore_register): Simplify.
1291 (old_fetch_inferior_registers, old_store_inferior_registers):
1293 (cannot_fetch_register, cannot_store_register): Change
1294 implementation to use regmap array to decide which registers
1295 cannot be fetched/stored. This removes $orig_eax from the
1296 registers that cannot be fetched/stored.
1297 (fetch_inferior_registers): Call fetch_register directly instead
1298 of calling old_fetch_inferior_registers.
1299 (store_inferior_registers): Call store_register directly instead
1300 of calling old_store_inferior_registers.
1301 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1302 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1303 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1305 2002-11-09 Klee Dienes <kdienes@apple.com>
1307 * i387-tdep.c (i387_supply_register): When called with NULL as a
1308 buffer, mark the register as not provided (to mirror the behavior
1309 of supply_register).
1310 (i387_supply_fxsave): Ditto.
1311 (i387_supply_fsave): Ditto (inherits the behavior from
1312 i387_supply_register).
1314 2002-11-09 Klee Dienes <kdienes@apple.com>
1316 * blockframe.c (sigtramp_saved_pc): Use
1317 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1318 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1319 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1321 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1323 * frame.c (get_prev_frame): Test prev_p to identify a previously
1324 unwound frame. Initialize prev_p.
1325 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1328 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1330 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1331 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1332 more comments. Zap dead code.
1334 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1336 * infcmd.c (print_vector_info, print_float_info): Move code that
1337 checks whether the target has any registers and whether there is a
1338 selected frame up, such that it is also used if a target provides
1339 multi-arch definitions of these functions.
1341 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1343 * Makefile.in (DESTDIR): Define.
1344 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1347 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1348 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1350 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1352 * i386-linux-tdep.c: Include "reggroups.h".
1353 (i386_linux_register_reggroup_p): New function.
1354 (i386_linux_init_abi): Set register_reggroup_p to
1355 i386_linux_register_reggroup_p.
1356 * i386-tdep.h (i386_register_reggroup_p): Declare.
1357 * i386-tdep.c: Include "reggroups.h".
1358 (i386_init_reggroups): New function.
1359 (i386_add_reggroups): New function.
1360 (i386_register_reggroup_p): New function.
1361 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1362 (_initialize_i386_tdep): Call i386_init_reggroups.
1363 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1366 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1368 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1369 request that's available in *BSD.
1371 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1373 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1376 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1378 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1379 * dummy-frame.c (find_dummy_frame): Rename
1380 generic_find_dummy_frame, make static. Return the dummy frame
1381 instead of the regcache.
1382 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1383 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1384 (dummy_frame_register_unwind): Rename
1385 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1386 * dummy-frame.h (dummy_frame_register_unwind): Rename
1387 generic_call_dummy_register_unwind.
1389 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1391 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1392 except the inclusion of "i386/tm-i386.h", to...
1393 * config/i386/nm-i386v42mp.h: ...here.
1394 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1396 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1398 * Makefile.in (frame.o): Update dependencies.
1399 * blockframe.c (current_frame, frame_obstack_alloc)
1400 (frame_saved_regs_zalloc, get_current_frame)
1401 (set_current_frame, create_new_frame)
1402 (set_unwind_by_pc, get_next_frame)
1403 (flush_cached_frames, reinit_frame_cache)
1404 (frame_saved_regs_register_unwind)
1405 (deprecated_generic_get_saved_register)
1406 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1407 (_initialize_blockframe): Move frame code from here...
1408 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1409 "annotate.h" and "dummy-frame.h".
1410 (_initialize_frame): New function.
1412 2002-11-08 Jim Blandy <jimb@redhat.com>
1414 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1415 when we finish a function a context.
1416 * buildsym.h (outermost_context_p): New macro.
1417 (Bug analyzed by David Edelsohn.)
1419 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1421 * blockframe.c: Include "dummy-frame.h".
1422 (struct dummy_frame, dummy_frame_stack)
1423 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1424 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1425 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1426 (generic_save_call_dummy_addr, generic_pop_current_frame)
1427 (generic_pop_dummy_frame, generic_fix_call_dummy)
1428 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1429 dummy frame code from here...
1430 * dummy-frame.c: ...to here. New file.
1431 * dummy-frame.h: New file.
1432 (generic_call_dummy_register_unwind): Declare.
1433 (generic_find_dummy_frame): Declare.
1434 * Makefile.in (SFILES): Add dummy-frame.c.
1435 (dummy-frame.o): Specify dependencies.
1436 (dummy_frame_h): Define.
1437 (COMMON_OBS): Add dummy-frame.o.
1438 (blockframe.o): Update dependencies.
1440 2002-11-08 Jim Blandy <jimb@redhat.com>
1442 * dwarf2read.c (read_func_scope): Restore local_symbols and
1443 param_symbols after we finish the function context. (Based on a
1444 patch from David Edelsohn.)
1446 2002-11-08 David Carlton <carlton@math.stanford.edu>
1448 * linespec.c (symbol_found): New function.
1449 (minsym_found): New function.
1450 (decode_line_1): Separate out some code into separate functions.
1452 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1454 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1455 the benefit of the interix target.
1456 * i386-tdep.h (i386_frameless_signal_p): Declare.
1458 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1460 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1461 declaration that snuck in from change below.
1463 2002-11-06 Andrew Cagney <cagney@redhat.com>
1465 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1467 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1468 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1469 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1470 (i386_mxcsr_regnum_p): new function. Use instead of
1472 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1473 (i386_sse_regnum_p): Declare.
1474 (i386_mxcsr_regnum_p): Declare.
1475 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1476 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1477 (IS_FP_REGNUM): Update definition.
1478 (IS_FPU_CTRL_REGNUM): Update definition..
1479 (IS_SSE_REGNUM): Update definition..
1480 * i386v-nat.c (register_u_addr): Update.
1481 * go32-nat.c (fetch_register): Update.
1482 (store_register): Update.
1484 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1486 Preparation work to convert the hppa targets to multiarch partial.
1488 * hppa-tdep.c: Add new functions replacing macro bodies from
1489 config/pa/tm-hppa.h. These function will be used to initialize
1490 the gdbarch structure. Import some comments from tm-hppa.h,
1491 and place them where appropriate, to avoid loosing them when
1492 we cleanup this file.
1493 (hppa_reg_struct_has_addr): New function.
1494 (hppa_inner_than): New function.
1495 (hppa_stack_align): New function.
1496 (hppa_pc_requires_run_before_use): New function.
1497 (hppa_instruction_nullified): New function.
1498 (hppa_register_byte): New function.
1499 (hppa_register_virtual_type): New function.
1500 (hppa_store_struct_return): New function.
1501 (hppa_cannot_store_register): New function.
1502 (hppa_frame_args_address): New function.
1503 (hppa_frame_locals_address): New function.
1504 (hppa_smash_text_address): New function.
1505 (hppa_coerce_float_to_double): New function. Requires the inclusion
1508 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1510 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1511 gdbarch-eligible macro to a call to the new associated function
1512 created in hppa-tdep.c.
1513 (INNER_THAN): Likewise.
1514 (STACK_ALIGN): Likewise.
1515 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1516 (INSTRUCTION_NULLIFIED): Likewise.
1517 (REGISTER_BYTE): Likewise.
1518 (REGISTER_VIRTUAL_TYPE): Likewise.
1519 (STORE_STRUCT_RETURN): Likewise.
1520 (CANNOT_STORE_REGISTER): Likewise.
1521 (FRAME_ARGS_ADDRESS): Likewise.
1522 (FRAME_LOCALS_ADDRESS): Likewise.
1523 (SMASH_TEXT_ADDRESS): Likewise.
1524 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1525 (ABOUT_TO_RETURN): Delete, as no longer used.
1527 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1529 * printcmd.c (disassemble_command): Remove obsolete function.
1530 (_initialize_printcmd): Do not create disassemble command here.
1531 * cli/cli-cmds.c (disassemble_command): New function. Implements
1532 disassemble command.
1533 (init_cli_cmds): Create disassemble command here instead.
1535 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1537 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1539 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1541 * regcache.h (regcache_cooked_read_using_offset_hack)
1542 (regcache_cooked_write_using_offset_hack): Delete declarations.
1543 (register_changed): Delete declaration.
1544 * regcache.c (regcache_cooked_read_using_offset_hack)
1545 (regcache_cooked_write_using_offset_hack): Delete functions.
1546 (cooked_xfer_using_offset_hack): Delete function.
1547 (register_changed): Delete function.
1549 2002-11-07 Jim Blandy <jimb@redhat.com>
1551 * macroscope.c: #include "complaints.h".
1552 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1553 but not in the macro table.
1554 * Makefile.in (macroscope.o): Record dependency.
1556 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1558 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1560 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1562 * regcache.c (deprecated_registers_fetched): Update.
1563 * regcache.h (deprecated_registers_fetched): Rename
1565 * remote-vxsparc.c (vx_read_register): Update.
1566 * remote-vxmips.c (vx_read_register): Update.
1567 * remote-vx68.c (vx_read_register): Update.
1568 * irix5-nat.c (fetch_core_registers): Update.
1569 * mipsm3-nat.c (fetch_inferior_registers): Update.
1570 * sun3-nat.c (fetch_inferior_registers): Update.
1571 * symm-nat.c (fetch_inferior_registers): Update.
1572 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1573 (fetch_core_registers): Update.
1574 (fetch_kcore_registers): Update.
1575 * mips-nat.c (fetch_inferior_registers): Update.
1576 * corelow.c (get_core_registers): Update.
1577 * a68v-nat.c (fetch_inferior_registers): Update.
1579 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1581 Put in place the framework necessary for multiarching the hppa targets.
1582 * hppa-tdep.c (hppa_gdbarch_init): New function.
1583 (hppa_dump_tdep): New function.
1584 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1585 tdep structure dumper.
1586 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1587 until the multi-arching conversion has partially been completed.
1589 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1591 * valops.c (value_assign): Merge lval_register case into
1592 lval_reg_frame_relative. Use frame_register and
1593 regcache_cooked_write instead of get_saved_register and
1594 write_register_bytes. After flushing the register cache, try to
1595 re-select the selected frame.
1597 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1599 * regcache.h (deprecated_register_valid): Rename register_valid.
1600 * regcache.c: Update.
1601 * ia64-aix-nat.c: Update.
1602 * i386gnu-nat.c: Update.
1603 * alpha-nat.c: Update.
1604 * sparc-nat.c: Update.
1605 * lynx-nat.c: Update.
1606 * remote-mips.c: Update.
1608 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1610 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1611 to end of file, to be more consistent with the pratice followed
1614 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1616 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1617 (print_float_info): Print registers in float_reggroup.
1618 (print_vector_info): Print registers in vector_reggroup.
1619 (default_print_registers_info): When all, print registers in
1620 all_reggroup. Otherwize, print registers in general_reggroup.
1621 (registers_info): Rewrite. Add support for register groups.
1624 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1626 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1628 (symtab_symbol_info): Remove eons old ifdeffed out code.
1629 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1632 2002-11-06 Theodore A. Roth <troth@openavr.org>
1634 * c-exp.y: Add missing semi-colons.
1635 * f-exp.y: Add missing semi-colons.
1636 * m2-exp.y: Add missing semi-colons.
1637 * p-exp.y: Add missing semi-colons.
1638 Add empty action to start rule to avoid a type clash error when
1639 building with bison >= 1.50.
1641 2002-11-06 Jim Blandy <jimb@redhat.com>
1643 * macrotab.h (struct macro_source_file): Doc fix.
1645 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1647 * varobj.c (child_exists, cplus_number_of_children): Change
1648 STREQ macro references to strcmp.
1649 (cplus_name_of_child): Change code to handle the fact that
1650 fields are not necessarily contiguous with regards to their
1651 access control. This is a fix for PR gdb/792.
1653 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1655 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1656 * gdbarch.h, gdbarch.c: Regnerate.
1657 * frame.h (frame_register): Declare.
1658 * frame.c (frame_register): New function.
1659 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1660 GET_SAVED_REGISTER, otherwize call
1661 generic_unwind_get_saved_register.
1662 (frame_register_read): Use frame_register instead of
1665 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1667 From Jim Ingham <jingham@apple.com>:
1668 * event-top.c (gdb_disable_readline): New function.
1669 (_initialize_event_loop): Move comment.
1671 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1673 * event-loop.c (start_event_loop): Add comment.
1676 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1678 * infcmd.c (default_print_registers_info): Do not call
1679 PRINT_REGISTER_HOOK.
1681 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1683 * sparc-tdep.c (sparc_print_register_hook): Make static.
1684 (sparc_print_registers_info): New function.
1685 (sparc_do_registers_info): New function.
1686 (sparclet_print_registers_info): New function.
1687 (sparclet_do_registers_info): New function.
1688 (do_sparc_print_registers_info): New function.
1689 (sparc_print_registers): New static function, clone of infcmd.c's
1690 default_print_registers_info.
1691 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1692 (sparclet_do_registers_info): Declare.
1693 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1694 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1696 (sparc_do_registers_info): Declare.
1697 (PRINT_REGISTER_HOOK): Delete macro.
1698 (sparc_print_register_hook): Delete declaration.
1700 2002-11-05 David Carlton <carlton@math.stanford.edu>
1702 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1704 (lookup_symbol_aux_local): New function.
1705 (lookup_symbol_aux_symtabs): New function.
1706 (lookup_symbol_aux_psymtabs): New function.
1708 2002-11-05 David Carlton <carlton@math.stanford.edu>
1710 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1711 previous values of 'objfile' and 'block'.
1713 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1715 * values.c (value_change_enclosing_type): Set
1716 enclosing_type field correctly also for the case where
1717 more memory needs to be allocated.
1719 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1721 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1724 * i387-tdep.c (i387_print_float_info): Replace calls to
1725 register_read and deprecated_read_register_gen with calls to
1726 frame_register_read, and make the necessary adjustments to the
1729 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1731 * gdbarch.sh (register_reggroup_p): Allow default value.
1732 * gdbarch.h, gdbarch.c: Regenerate.
1734 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1736 * regcache.h: Add coment indicating replacements for deprecated
1739 2002-11-02 Andrew Cagney <cagney@redhat.com>
1741 * reggroups.h, reggroups.c: New files.
1742 * regcache.c: Include "reggroups.h".
1743 (enum regcache_dump_what): Add `regcache_dump_groups'.
1744 (regcache_dump): Contract size of the "Type" column. When
1745 specified, dump the register's groups.
1746 (maintenance_print_register_groups): New function.
1747 (_initialize_regcache): Add command `maint print register-groups'.
1748 * Makefile.in (COMMON_OBS): Add reggroups.o
1749 (SFILES): Add reggroups.c.
1750 (reggroups_h): Define.
1751 (regcache.o, gdbarch.o): Update dependencies.
1752 (reggroups.o): Specify dependencies.
1753 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1754 Add opaque declaration for `struct reggroup' in generated .h file.
1755 Include "reggroups.h" in generated .c file.
1756 gdbarch.h, gdbarch.c: Re-generate.
1758 2002-11-02 Andrew Cagney <cagney@redhat.com>
1760 * regcache.h (deprecated_read_register_gen): Rename
1762 (deprecated_write_register_gen): Rename write_register_gen.
1763 * i387-tdep.c: Update.
1764 * x86-64-linux-nat.c: Update
1766 * thread-db.c: Update.
1767 * win32-nat.c: Update.
1768 * mips-tdep.c: Update.
1769 * d10v-tdep.c: Update.
1770 * cris-tdep.c: Update.
1771 * remote-sim.c: Update.
1772 * remote-rdi.c: Update.
1773 * remote-rdp.c: Update.
1776 * blockframe.c: Update.
1777 * x86-64-tdep.c: Update.
1778 * xstormy16-tdep.c: Update.
1779 * sh-tdep.c: Update.
1780 * s390-tdep.c: Update.
1781 * rs6000-tdep.c: Update.
1782 * sparc-tdep.c: Update.
1783 * i386-tdep.c: Update.
1784 * dwarf2cfi.c: Update.
1785 * regcache.c: Update.
1787 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1789 New interix-specific files:
1790 * config/i386/nm-interix.h: New file.
1791 * config/i386/interix.mh: New file.
1792 * config/i386/interix.mt: New file.
1793 * i386-interix-nat.c: New file.
1794 * i386-interix-tdep.c: New file.
1796 2002-11-01 Andrew Cagney <cagney@redhat.com>
1798 * frame.h (deprecated_generic_get_saved_register): Rename
1799 generic_get_saved_register.
1800 * blockframe.c (deprecated_generic_get_saved_register): Update.
1801 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1802 (xstormy16_frame_saved_register): Update.
1803 * sh-tdep.c (sh_gdbarch_init): Update.
1804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1805 * ia64-tdep.c (ia64_get_saved_register): Update.
1806 * cris-tdep.c (cris_gdbarch_init): Update.
1807 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1808 * arm-tdep.c (arm_gdbarch_init): Update.
1810 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1812 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1814 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1816 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1817 trampolines in sigaction.
1819 2002-10-31 Andrew Cagney <cagney@redhat.com>
1821 * h8300-tdep.c: Include "gdb_assert.h".
1822 (h8300_print_register): Add gdbarch, file and frame parameters.
1823 Use frame_read_unsigned_register to read the register's value.
1824 Use fprintf_filtered to display output.
1825 (h8300_print_registers_info): Replace h8300_do_registers_info.
1826 (h8300_gdbarch_init): Set print_registers_info.
1828 2002-10-31 Andrew Cagney <cagney@redhat.com>
1830 * frame.c (frame_read_unsigned_register): New function.
1831 (frame_read_signed_register): New function.
1832 * frame.h (frame_read_unsigned_register): Declare.
1833 (frame_read_signed_register): Declare.
1835 2002-10-31 Andrew Cagney <cagney@redhat.com>
1837 * h8500-tdep.c (h8500_print_registers_info): New static function,
1838 clone of infcmd.c's default_print_registers_info.
1839 (h8500_do_registers_info): New funtion.
1840 (h8500_print_register_hook): Rename print_register_hook, make
1843 * config/h8500/tm-h8500.h: Update copyright.
1844 (DEPRECATED_DO_REGISTERS_INFO): Define.
1845 (h8500_do_registers_info: Declare.
1846 (PRINT_REGISTER_HOOK): Delete macro.
1847 (print_register_hook): Delete function.
1849 2002-10-31 Andrew Cagney <cagney@redhat.com>
1851 * z8k-tdep.c (z8k_print_register_hook): Make static.
1852 (z8k_print_registers_info): New static function, clone of
1853 infcmd.c's default_print_registers_info.
1854 (z8k_do_registers_info): New function. Wrap
1855 z8k_print_registers_info.
1856 * config/z8k/tm-z8k.h: Update copyright.
1857 (PRINT_REGISTER_HOOK): Delete macro.
1858 (z8k_print_register_hook): Delete declaration.
1859 (DEPRECATED_DO_REGISTERS_INFO): Define.
1860 (z8k_do_registers_info): Declare.
1862 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1864 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1865 as this is already provided by value.h, and was actually causing
1866 a compilation error because of a conflict in parameter type
1867 declaration due to a missing const keyword.
1868 (low_text_segment_addres): Fix a compilation warning.
1870 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1872 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1873 registers without a name.
1874 (mips_linux_cannot_store_register): Don't store registers without
1877 2002-10-28 David Carlton <carlton@math.stanford.edu>
1879 * symtab.c (find_addr_symbol): Delete. (It was already commented
1881 * symtab.h: Delete prototype for find_addr_symbol.
1883 2002-10-26 Andrew Cagney <cagney@redhat.com>
1885 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1887 gdbarch.h, gdbarch.c: Re-generate.
1888 * infcmd.c (default_print_registers_info): Update reference.
1889 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1890 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1891 * sh-tdep.c (sh_gdbarch_init): Ditto.
1892 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1893 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1895 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1897 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1898 cfi_init_extra_frame_info.
1899 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1900 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1902 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1903 target where necessary. Add more comments and remove the ones
1904 that don't provide any useful information.
1906 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1907 deprecated_read_register_dummy with
1908 frame_unwind_unsigned_register.
1910 * i386-tdep.c (i386_extract_struct_value_address): Use
1911 regcache_raw_read_unsigned instead of
1912 regcache_cooked_read_unsigned since we know that the register
1913 we're reading isn't a pseudo register. Rename variable 'val' into
1914 the more descriptive 'addr'.
1916 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1917 (x86_64_push_return_address): Add comment.
1918 (x86_64_pop_frame): Make static.
1919 (examine_argument): Clarify comment.
1920 (x86_64_skip_prologue): Make prolog_expact variable static.
1922 * dwarf2cfi.c: Fix some formatting problems.
1923 (context_cpy, read_encoded_pointer): Clarify comments.
1925 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1926 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1927 i386 target back into x86_64_gdbarch_init. Add some comments and
1928 remove meaningless ones.
1930 2002-10-25 Andrew Cagney <cagney@redhat.com>
1932 * complaints.h (struct deprecated_complaint): Rename `struct
1934 * complaints.c (complain): Update.
1935 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1936 incorrect comment indicating that "symfile.h" was being included
1937 for the `struct complaint' definition.
1938 * remote-vx.c: Update.
1939 * objc-lang.c: Update.
1940 * xcoffread.c: Update.
1942 * mdebugread.c: Update.
1943 * stabsread.c: Update.
1944 * dwarf2read.c: Update.
1945 * dwarfread.c: Update.
1946 * elfread.c: Update.
1947 * coffread.c: Update.
1948 * stabsread.h: Update.
1949 * dbxread.c: Update.
1950 * buildsym.c: Update.
1951 * gdbtypes.c: Update.
1952 * macrotab.c: Update.
1954 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1956 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1957 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1958 (x86_64_init_abi): ...new function.
1960 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1961 * i386v-nat.c: Include "i386-tdep.h".
1963 2002-10-25 Andrew Cagney <cagney@redhat.com>
1965 * gdbtypes.c (address_space_name_to_int): Update.
1966 (address_space_int_to_name): Update.
1967 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1968 multi-arch predicate.
1969 (address_class_name_to_type_flags): Ditto.
1970 * gdbarch.h, gdbarch.c: Re-generate.
1972 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1974 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1976 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1978 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1980 * symtab.h (INIT_SAL): Delete macro.
1982 * symtab.c (init_sal): New function.
1984 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1985 to init_sal function call.
1986 (find_sal_from_funcs_and_line): Ditto.
1987 (all_sals_for_line): Ditto.
1988 * breakpoint.c (create_internal_breakpoint): Ditto.
1989 (create_fork_vfork_event_catchpoint): Ditto.
1990 (create_exec_event_catchpoint): Ditto.
1991 (parse_breakpoint_sals): Ditto.
1992 (watch_command_1): Ditto.
1993 (handle_gnu_4_16_catch_command): Ditto.
1994 (clear_command): Ditto.
1995 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1996 * infcmd.c (run_stack_dummy): Ditto.
1997 * infrun.c (process_event_stop_test): Ditto.
1998 (check_sigtramp2): Ditto.
1999 (step_over_function): Ditto.
2000 * linespec.c (decode_line_2): Ditto.
2001 (decode_line_1): Ditto.
2002 * source.c (line_info): Ditto.
2003 * symtab.c (find_pc_sect_line): Ditto.
2005 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2007 * dwarf2cfi.c (struct context)
2008 (struct context_reg): Moved to dwarf2cfi.h
2009 (context_alloc, frame_state_alloc, context_cpy):
2010 Made extern instead of static, removed prototypes.
2011 * dwarf2cfi.h (struct context)
2012 (struct context_reg): New, moved from dwarf2cfi.c
2013 (context_alloc, frame_state_alloc, context_cpy):
2015 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2016 Changed from static to extern.
2017 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2018 (LINUX_SIGCONTEXT_FP_OFFSET)
2019 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2020 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2021 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2022 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2023 set_gdbarch_*() calls now use x86-64 specific functions
2024 instead of DWARF2 CFI ones.
2025 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2026 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2027 (x86_64_init_extra_frame_info): New prototypes.
2029 2002-10-23 David Carlton <carlton@math.stanford.edu>
2031 * linespec.c: #include "parser-defs.h".
2032 Delete prototype for find_template_name_end.
2033 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2035 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2037 * NEWS: add recent mi fixes.
2038 * varobj.c (struct varobj): Add new "updated" flag.
2039 (new_variable): Default "updated" flag to 0.
2040 (varobj_set_value): Set "updated" flag to 1 if value
2042 (varobj_update): Check varobj "updated" flag before
2043 comparing old and refreshed values. Fix for
2046 2002-10-23 David Carlton <carlton@math.stanford.edu>
2048 * parse.c (parse_exp_1): Use BLOCK_START.
2049 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2051 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2053 2002-10-23 David Carlton <carlton@math.stanford.edu>
2055 * symtab.c: Delete cplusplus_hint.
2056 Delete prototype for find_template_name_end.
2058 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2060 * symtab.h: Update comment.
2062 2002-10-23 Michael Snyder <msnyder@redhat.com>
2064 * printcmd.c (address_info): Restore quotes in output.
2065 * valops.c (value_of_local): Restore quotes in error message.
2067 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2069 * symtab.c (symbol_demangled_name): New function.
2070 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2071 turning most of it into a function.
2072 (symbol_demangled_name): Export.
2074 2002-10-23 Michael Snyder <msnyder@redhat.com>
2076 * valops.c (value_of_local): Restore quotes in error message.
2078 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2080 * symtab.c (symbol_init_language_specific): New function.
2081 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2082 turning most of it into a function.
2083 (symbol_init_language_specific): Export.
2085 2002-10-23 David Carlton <carlton@math.stanford.edu>
2087 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2088 (dwarf_attr_name): Ditto.
2089 (dwarf_type_encoding_name): Ditto.
2090 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2091 (process_die): Handle DW_TAG_namespace,
2092 DW_TAG_imported_declaration, DW_TAG_imported_module.
2093 (read_namespace): New function.
2095 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2097 * configure.in: Define NEW_PROC_API on Interix too.
2098 * configure: Regenerate.
2100 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2102 * configure: Regenerate using the proper version of autoconf.
2104 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2106 * findvar.c (read_var_value): Temporarily disable TLS code, until
2107 complete TLS support is added.
2109 2002-10-21 Jim Blandy <jimb@redhat.com>
2110 Elena Zannoni <ezannoni@redhat.com>
2112 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2113 for thread local storage locations.
2114 (struct symbol): Add objfile field.
2115 (SYMBOL_OBJFILE): Define.
2116 * dwarf2read.c (is_thread_local): New static variable.
2117 (new_symbol): If variable is in thread local fill in address class
2118 and objfile appropriately.
2119 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2121 * printcmd.c (address_info): Print the information for thread
2122 local storage variable.
2123 * findvar.c (read_var_value): In case of thread local variable,
2124 defer to the target vector code to compute address.
2126 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2128 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2129 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2131 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2133 * symtab.h (address_class): Rename
2134 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2135 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2136 * printcmd.c (address_info): Ditto.
2137 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2139 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2141 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2142 DBREG_DRX macro to acces debug registers.
2144 * Makefile.in (i386obsd-tdep.o): New target.
2146 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2147 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2149 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2150 * config/i386/obsd.mt: New file.
2151 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2152 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2153 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2154 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2155 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2156 * i386obsd-tdep.c: New file.
2158 2002-10-19 Adam Fedor <fedor@gnu.org>
2160 * objc-exp.y (name_not_typename): Fix invalid comment.
2162 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2164 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2165 to allocate partial syms and macro byte caches.
2167 2002-10-18 David Carlton <carlton@math.stanford.edu>
2169 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2171 2002-10-18 Adam Fedor <fedor@gnu.org>
2173 * stabsread.c (find_name_end): New function.
2174 (define_symbol): Use it.
2176 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2178 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2179 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2180 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2181 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2183 2002-10-17 David Carlton <carlton@math.stanford.edu>
2185 * symfile.h: Add opaque declaration for struct obstack.
2186 Declare obsavestring to take a const char *.
2187 * symfile.c (obsavestring): Make first argument a const char *.
2189 2002-10-16 Adam Fedor <fedor@gnu.org>
2191 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2192 names when matching breakpoints in current file.
2194 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2196 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2197 (read_tag_pointer_type): Add address class support.
2198 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2199 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2201 * gdbarch.h, gdbarch.c: Regenerate.
2202 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2203 (make_type_with_address_space, recursive_type_dump): Add address
2205 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2206 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2207 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2209 2002-10-16 Klee Dienes <kdienes@apple.com>
2211 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2212 to get the last character of a char[] buffer, not
2213 name[sizeof(vptr_name)-1].
2215 2002-10-14 Adam Fedor <fedor@gnu.org>
2217 * symtab.h: New objc_specific struct.
2218 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2219 (SYMBOL_DEMANGLED_NAME): Likewise.
2221 2002-10-14 Adam Fedor <fedor@gnu.org>
2223 * symfile.c (init_filename_language_table): Add ObjC file extension.
2225 2002-10-14 Adam Fedor <fedor@gnu.org>
2227 * utils.c (puts_filtered_tabular): New function.
2228 (fprintf_symbol_filtered): Get ObjC demangled name.
2229 * defs.h (puts_filtered_tabular): Declared.
2231 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2233 * c-lang.h (c_type_print_varspec_prefix): Delete.
2234 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2235 ``need_post_space'' parameter. Adjust all callers.
2237 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2239 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2240 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2241 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2242 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2244 2002-10-13 Adam Fedor <fedor@gnu.org>
2246 * source.c (print_source_lines): Update comments.
2248 2002-10-13 Adam Fedor <fedor@gnu.org>
2250 * valops.c (value_of_local): New function.
2251 (value_of_this): Use it.
2252 * value.h (value_of_local): Declared.
2254 2002-10-13 Adam Fedor <fedor@gnu.org>
2256 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2257 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2259 2002-10-12 Adam Fedor <fedor@gnu.org>
2261 * language.c (binop_result_type): Add language_objc to case.
2262 (integral_type): Likewise.
2263 (character_type): Likewise.
2264 (string_type): Likewise.
2265 (boolean_type): Likewise.
2266 (structured_type): Likewise.
2267 (binop_type_check): Likewise.
2269 2002-10-11 Adam Fedor <fedor@gnu.org>
2271 * printcmd.c (address_info): Print 'self' for ObjC.
2273 2002-10-11 Adam Fedor <fedor@gnu.org>
2275 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2278 2002-10-11 Adam Fedor <fedor@gnu.org>
2280 * language.h (CAST_IS_CONVERSION): Add language_objc.
2282 2002-10-11 Adam Fedor <fedor@gnu.org>
2284 * defs.h (enum language): Add language_objc.
2286 2002-10-11 Klee Dienes <kdienes@apple.com>
2288 * corefile.c (read_memory_typed_address): New function.
2289 * gdbcore.h (read_memory_typed_address): Add prototype.
2290 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2291 to read a value destined for a CORE_ADDR, not read_memory_integer.
2292 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2293 (f77_get_dynamic_lowerbound): Ditto.
2295 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2297 * utils.c (string_to_core_addr): After turning string into
2298 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2299 which will do necessary sign-extension, etc.
2301 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2303 * c-exp.y (THIS): Delete token and grammar rule.
2304 (yylex): Don't return THIS.
2305 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2306 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2307 * demangle.c (cplus_markers): Update comment. Put '$'
2308 first. Remove CPLUS_MARKER.
2309 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2310 * jv-exp.y (THIS): Delete token and grammar rule.
2311 (yylex): Don't return THIS.
2312 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2313 * objc-exp.y (THIS): Delete token and grammar rule.
2314 (yylex): Don't return THIS.
2315 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2316 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2317 (read_member_functions): Likewise for opname.
2318 (read_tilde_fields): Use is_cplus_marker.
2320 * defs.h (CPLUS_MARKER): Don't define.
2321 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2322 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2323 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2324 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2325 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2327 * config/i386/tm-i386v4.h: Delete file.
2328 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2329 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2330 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2331 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2332 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2333 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2334 * config/i386/i386v4.mt (TM_FILE): Likewise.
2335 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2337 2002-10-10 Marko Mlinar <markom@opencores.org>
2339 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2340 accidentially not commited 2002-10-09
2341 * gdbarch.h, gdbarch.c: Re-generate.
2343 2002-10-09 Marko Mlinar <markom@opencores.org>
2345 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2346 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2347 * gdbarch.h, gdbarch.c: Re-generate.
2349 2002-10-08 Petr Sorfa <petrs@caldera.com>
2351 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2353 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2354 so we can work on more than one compilation unit at a time. This
2355 helps prepare GDB to handle inter-CU die references.
2356 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2357 the code to be defined before struct comp_unit_head.
2358 (comp_unit_head): Added new members - offset, cu_head,
2359 begin_die, next and dwarf2_abbrevs.
2360 (dwarf2_abbrevs): Removed single static var; now member of
2361 struct comp_unit_head.
2362 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2364 (psymtab_to_symtab_1): Changed to work with the new
2365 struct comp_unit_head.
2366 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2367 constructs the dwarf2_abbrevs[] inside the cu_header.
2368 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2369 dwarf2_abbrev table to clean up.
2370 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2371 handling of dwarf2_abbrevs inside the cu_header.
2372 (read_partial_die): Now supports the call to the new
2373 dwarf2_lookup_abbrev.
2374 (read_full_die): Now supports the call to the new
2375 dwarf2_lookup_abbrev.
2377 2002-10-06 Christopher Faylor <cgf@redhat.com>
2379 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2380 insure that shell variables, such as "transformed_name" are propagated
2381 to later shell statements in rule.
2383 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2385 * config/i386/nm-i386sco.h: Add protection against
2386 multiple-inclusion. Include "i386/nm-i386v.h".
2387 (REGISTER_U_ADDR): Remove define.
2388 (i386_register_u_addr): Remove prototype.
2390 2002-10-04 Michael Snyder <msnyder@redhat.com>
2392 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2393 before treating it as a single-step event.
2395 2002-10-03 Adam Fedor <fedor@gnu.org>
2397 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2398 (objc_demangle): Remove assignment in if statements, Replace
2400 (add_msglist): Likewise.
2401 (end_msglist): Likewise.
2402 (complare_selectors): Likewise.
2403 (selectors_info): Likewise.
2404 (compare_classes): Likewise.
2405 (classes_info): Likewise.
2406 (print_object_command): Likewise.
2407 (find_objc_msgcall_submethod): Replace PTR with void *.
2408 * objc-lang.h: Remove check for __STDC__.
2410 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2412 * ui-out.h (ui_out_field_fmt_int): New prototype.
2413 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2414 of field width and alignment.
2415 * stack.c (print_frame_info_base): When printing frame level, use
2416 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2419 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2421 * MAINTAINERS: Add self to Write After Approval list.
2423 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2425 * infcmd.c (interrupt_target_command_wrapper): Delete.
2426 (interrupt_target_command): Make non static.
2427 (nofp_registers_info): Make static.
2428 * stack.c (return_command_wrapper): Delete.
2429 (return_command): Make non static.
2431 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2433 * event-top.c (gdb_setup_readline): New function. Code moved from
2434 _initialize_event_loop().
2435 (_initialize_event_loop): Call gdb_setup_readline().
2437 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2439 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2440 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2441 * gdbarch.h, gdbarch.c: Re-generate.
2443 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2446 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2448 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2449 of fill_in_vptr_fieldno.
2451 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2453 * inferior.h (registers_info, stepi_command, nexti_command,
2454 continue_command, interrupt_target_command): Export from infcmd.c.
2455 * frame.h (args_info, selected_frame_level_changed_hook,
2456 return_command): Export from stack.c.
2457 * v850ice.c (stepi_command, nexti_command, continue_command): use
2458 prototypes from inferior.h.
2459 * tracepoint.c (registers_info, args_info, locals_info): Use
2460 prototypes from frame.h and inferior.h.
2461 * Makefile.in (mi-main.o): Add dependency on frame.h.
2463 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2465 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2466 value in register 3 adjusted by ppc_gp0_regnum.
2468 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2470 2002-10-02 Marko Mlinar <markom@opencores.org>
2472 * MAINTAINERS: Add myself to the Write After Approval list.
2474 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2476 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2477 of the section for the N64 ABI, fixed.
2479 * config/mips/tm-irix6.h: Include solib.h.
2481 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2483 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2486 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2488 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2489 and that "mi0" syntax has been removed.
2491 2002-09-30 David Carlton <carlton@math.stanford.edu>
2493 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2494 * ppc-sysv-tdep.c: #include "gdb_string.h".
2495 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2498 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2500 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2501 "vrsave"'s register number.
2503 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2505 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2506 use frame_unwind_signed_register to obtain the PC.
2507 (mips_frame_chain): Handle a generic dummy frame.
2508 (mips_init_extra_frame_info): When a generic dummy frame, don't
2509 re-compute the frame base.
2510 (mips_pop_frame): Handle generic dummy frames.
2511 (mips_gdbarch_init): When generic dummy frames, set
2512 use_generic_dummy_frames, push_dummy_frame to
2513 generic_push_dummy_frame, pc_in_call_dummy to
2514 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2515 generic_save_dummy_frame_tos.
2517 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2519 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2520 against TOP when TOP was explictly set.
2521 (generic_push_dummy_frame): Set TOP to zero.
2523 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2525 * event-loop.c (start_event_loop): Rename variable 'result' to
2526 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2528 2002-09-30 Keith Seitz <keiths@redhat.com>
2530 * gdb-events.sh (selected_thread_changed): New event.
2531 * gdb-events.c: Regenerated.
2532 * gdb-events.h: Regenerated.
2534 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2536 * MAINTAINERS: Add self to Write After Approval list.
2538 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2540 * disasm.c: New file.
2541 * disasm.h: New file.
2542 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2543 (compare_lines): Ditto.
2544 (dump_insns): Ditto.
2545 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2547 (do_assembly_only): Ditto.
2548 (do_disassembly): Renamed to gdb_disassembly and moved to
2549 disasm.c. Sdded uiout argument.
2550 * Makefile.in: Add new files. Reorder SFILES list. Update
2551 dependencies. Include libgdb.a later in the insight executable.
2553 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2555 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2556 bfd/elf64-alpha-fbsd.c.
2558 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2560 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2563 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2565 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2567 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2569 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2570 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2571 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2572 (S_msg_sig_post_reply): Ditto.
2574 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2576 * sh-tdep.c (sh_use_struct_convention): Use definition according
2578 (sh_push_arguments): Store in register with correct endianess.
2579 (sh_default_store_return_value): Ditto.
2580 (sh_gdbarch_init): Set sizeof long double to 8.
2582 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2584 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2585 Fix some whitespace problems.
2587 2002-09-27 David Carlton <carlton@math.stanford.edu>
2589 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2590 (mcore-tdep.o): Ditto.
2591 (ns32k-tdep.o): Ditto.
2592 (ns32knbsd-tdep.o): Ditto.
2594 (vax-tdep.o): Ditto.
2595 * cris-tdep.c: #include "gdb_string.h"
2596 * mcore-tdep.c: Ditto.
2597 * ns32k-tdep.c: Ditto.
2598 * ns32knbsd-tdep.c: Ditto.
2600 * vax-tdep.c: Ditto.
2602 2002-09-27 David Carlton <carlton@math.stanford.edu>
2604 * config/djgpp/fnchange.lst: Add entries for
2605 gdb/testsuite/gdb.c++/m-static files.
2607 2002-09-27 Jim Wilson <wilson@redhat.com>
2609 * MAINTAINERS: Add myself to the Write After Approval list.
2611 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2613 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2616 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2618 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2621 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2623 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2624 (rs6000_struct_return_address): Delete variable.
2625 (rs6000_store_struct_return): Update.
2626 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2627 deprecated_extract_struct_value_address.
2628 (rs6000_frame_align): New function.
2629 (rs6000_gdbarch_init): Set frame_align.
2631 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2633 From Grace Sainsbury <graces@redhat.com>:
2634 * Makefile.in (gdbtk-main.o): New target.
2635 (gdb.o): New target.
2637 (main.o): Update dependencies.
2638 (gdb$(EXEEXT)): Add gdb.o.
2639 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2640 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2641 (SUBDIR_GDBTK_CLEAN): Set.
2642 (install-gdbtk): Install the insight binary.
2643 (uninstall-gdbtk): New target.
2644 (all-gdbtk, clean-gdbtk): New rule.
2645 * top.c (use_windows): Default to zero.
2646 * main.c: Include "main.h".
2648 (struct captured_main_args): Delete.
2649 (gdb_main): New function.
2653 2002-09-25 Andrew Cagney <cagney@redhat.com>
2655 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2656 (frame_map_regnum_to_name): New function.
2657 (frame_map_name_to_regnum): New function.
2658 * frame.h (frame_map_name_to_regnum): Declare.
2659 (frame_map_regnum_to_name): Declare.
2660 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2661 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2662 * parse.c: Do not include "builtin-regs.h".
2663 (target_map_name_to_register): Delete function.
2664 (write_dollar_variable): Use frame_map_name_to_regnum.
2665 * parser-defs.h (target_map_name_to_register): Delete declaration.
2666 * expprint.c: Include "frame.h".
2667 (print_subexp): Use frame_map_regnum_to_name.
2668 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2669 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2671 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2673 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2674 wasn't saved, and the next innermost frame is a dummy, return the
2675 dummy frame's link register.
2677 2002-09-24 Jim Blandy <jimb@redhat.com>
2679 Fix from Paul Breed:
2680 * main.c (captured_main): Add a `break' after the case for 'b'.
2682 2002-09-24 Keith Seitz <keiths@redhat.com>
2684 * varobj.c (c_type_of_child): Use get_target_type instead
2685 of TYPE_TARGET_TYPE.
2687 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2689 * source.c (get_current_or_default_source_symtab_and_line): Remove
2691 (set_default_source_symtab_and_line): New function. Attempts to
2692 determine a source file to list lines from if one is not currently
2694 (get_current_source_symtab_and_line): Initialize sal.pc and
2696 (set_current_source_symtab_and_line): Mark argument as const.
2697 * source.h: Update declarations and comments.
2698 * linespec.c (decode_line_1): Replace call to removed routine above.
2699 * stack.c (print_frame_info_base): Ditto.
2700 * cli/cli-cmds.c (edit_command): Ditto.
2701 (list_command): Ditto.
2703 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2705 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2706 sal.pc and sal.end fields.
2707 (get_current_or_default_source_symtab_and_line): Ditto.
2708 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2709 so we do not cause a new source symtab to be searched for (reverting an
2710 unintentional change from the 2002-09-20 patch).
2711 * scm-lang.c (scm_unpac): Ditto.
2713 2002-09-21 Andrew Cagney <cagney@redhat.com>
2715 * complaints.c (symfile_explanations): Remove new-line from
2716 ``isolated_message''.
2717 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2718 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2720 2002-09-20 Nick Clifton <nickc@redhat.com>
2722 * NEWS: Announce that V850EA ISA is no longer supported.
2723 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2725 2002-09-20 David Carlton <carlton@math.stanford.edu>
2727 * Makefile.in (c-lang.o): Correct dependencies.
2728 (utils.o): Gather dependencies.
2730 * c-lang.c: #include "gdb_string.h"
2732 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2734 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2735 * cli/cli-cmds.c (list_command): New function. Implements the new
2737 (_init_cli_cmds): Add new command definition.
2738 * gdb.1: Document edit command.
2739 * doc/gdb.texinfo: Document edit command.
2741 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2743 * source.c: Make global variables current_source_symtab and
2744 current_source_line static.
2745 (list_command): Moved to cli/cli-cmds.c.
2746 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2747 (get_first_line_listed): New accessor function.
2748 (get_lines_to_list): New accessor function.
2749 (get_current_source_symtab_and_line): New function. Retrieves the
2750 position in the source code that we consider current.
2751 (get_current_or_default_source_symtab_and_line): New function.
2752 Like the above but attempts to determine a default position if one
2753 is not currently defined.
2754 (set_current_source_symtab_and_line): New function. Sets the source
2755 code position considered current and returns the previously set one.
2756 (clear_current_source_symtab_and_line): Reset stored information about
2757 a current source line.
2758 (_initialize_source): Remove registration for the "list" command and
2760 * source.h: Add declarations for the new functions above.
2761 * symtab.h: Remove declarations for the global variables mentioned
2763 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2764 obtain current source line.
2765 * linespec.c (decode_line_1): Ditto.
2766 * macroscope.c (default_macro_scope): Ditto.
2767 * scm-lang.c (scm_unpac): Ditto.
2768 * stack.c (print_frame_info_base): Ditto.
2769 * symfile.c (clear_symtab_users): Ditto.
2770 * symtab.c (decode_line_spec): Ditto.
2771 * cli/cli-cmds.c (list_command): Moved here from source.c.
2772 (ambiguous_line_spec): Moved here from source.c.
2773 (_init_cli_cmds): Add definition for "list" and its alias.
2774 * Makefile.in: Update dependencies.
2776 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2778 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2779 with what gcc thinks is correct.
2781 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2783 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2784 multiple register push instruction.
2786 2002-09-19 Jim Blandy <jimb@redhat.com>
2788 Add support for distinct host and target character sets.
2789 * charset.c, charset.h: New files.
2790 * c-exp.y: #include "charset.h".
2791 (yylex): Convert character and string literals to the target
2792 character set, before returning them as the semantic value of the
2794 * c-lang.c: #include "charset.h".
2795 (c_emit_char): Use charset-specific methods to recognize
2796 characters with backslash escape forms, to decide which characters
2797 to print literally and which to print using numeric escape
2798 sequences, and to convert target characters to host characters
2800 * utils.c: #include "charset.h".
2801 (no_control_char_error): New function.
2802 (parse_escape): Use charset-specific methods to recognize
2803 backslash escapes, parse `control character' notation, and convert
2804 characters from the host character set to the target character set.
2805 * configure.in: Set the default host character set.
2806 Check where to find iconv, and what its argument types might be.
2807 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2808 * Makefile.in (SFILES): List charset.c.
2809 (COMMON_OBS): List charset.o.
2810 (charset.o): New rule.
2811 (charset_h): New header dependency variable.
2812 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2813 (LIBICONV): New variable, set by configure.
2814 (CLIBS): Include $(LIBICONV) here.
2815 * aclocal.m4, config.in, configure: Regenerated.
2817 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2819 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2822 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2824 * gdb_mbuild.sh: New file.
2826 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2828 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2830 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2832 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2833 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2834 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2835 valops.c, value.h: Revert previous change.
2837 2002-09-18 Michael Snyder <msnyder@redhat.com>
2839 Preliminary support for Objective-C:
2840 * defs.h (language_objc): New enum value.
2841 (puts_filtered_tabular): Declaration only, exported from utils.c.
2842 (skip_quoted): Delete, declared in completer.h.
2843 * c-exp.y: Include completer.h.
2846 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2847 New operator enum values.
2848 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2849 * language.c (binop_result_type): Handle language_objc case.
2850 (integral_type, character_type, string_type, boolean_type,
2851 structured_type, binop_type_check): Ditto.
2852 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2853 (struct objc_specific): Add to general_symbol_info.
2854 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2855 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2856 * parser-defs.h (struct objc_class_str): New struct type.
2857 (start_msglist, end_msglist, add_msglist): Declaration only,
2858 exported from objc-lang.c.
2859 * value.h (value_of_local, value_nsstring,
2860 call_function_by_hand_expecting_type): Exported from valops.c.
2861 * valops.c (find_function_addr): Export.
2862 (call_function_by_hand_expecting_type): New function.
2863 (value_of_local): New function.
2864 * symfile.c (init_filename_language_table): Add ".m" extension
2866 * utils.c (puts_filtered_tabular): New function.
2867 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2868 (set/show demangle): Extend help-string to refer to ObjC.
2869 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2870 * stabsread.c (symbol_reference_defined): Objective-C symbols
2871 may contain colons: make allowances when scanning stabs strings
2873 (objc_find_colon): New function.
2874 * printcmd.c (address_info): If language == objc then print
2875 "self" instead of "this".
2876 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2877 OP_NSSTRING, and OP_SELF.
2878 (prefixify_subexp): Ditto.
2879 * source.c (print_source_lines): Mention objc in comment.
2880 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2883 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2885 * complaints.h: Update copyright.
2886 (struct complaints): Declare.
2887 (struct complaint): Make `message' constant.
2888 (internal_complaint): Declare.
2889 (complaint): Declare.
2890 (complaint_root): Delete declaration.
2891 (symfile_complaints): Delete declaration.
2892 (struct complaints): Add opaque declaration.
2893 (clear_complaints): Add a complaints parameter.
2894 * complaints.c: Update copyright.
2895 (enum complaint_series): Define.
2896 (complaint_root): Delete.
2897 (struct complaints): Define.
2898 (complaint_sentinel, symfile_complaint_book): New variables.
2899 (symfile_explanations, symfile_complaints): New variables.
2901 (get_complaints): New function.
2902 (vcomplaint): New function.
2903 (complaint): New function.
2904 (internal_complaint): New function.
2905 (complain): Call vcomplain with symfile_complaint.
2906 (clear_complaints): Rewrite.
2907 (_initialize_complaints): Use add_setshow_command.
2908 * Makefile.in (complaints.o): Update dependencies.
2909 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2910 to call to clear_complaints.
2911 (new_symfile_objfile, reread_symbols): Ditto.
2912 (oldsyms_complaint): Delete.
2913 (empty_symtab_complaint, unknown_option_complaint): Delete.
2914 (free_named_symtabs): Use complaint instead of complain.
2916 2002-09-18 Michael Snyder <msnyder@redhat.com>
2918 Contributed by Apple Computer, Inc. Merged with current sources
2919 by Adam Fedor <fedor@doc.com> [cagney].
2921 * objc-lang.c: First clean-up round: comments, indentation.
2922 * objc-lang.h: Ditto.
2923 * objc-lang.y: Ditto.
2925 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2927 * maint.c (maintenance_internal_error): Print the parameter as the
2929 (maintenance_internal_warning): New function.
2930 (_initialize_maint_cmds): Add command `maint internal-warning'.
2932 * defs.h (internal_warning, internal_vwarning): Declare.
2933 * utils.c (struct internal_problem): Define.
2934 (internal_vproblem): New function.
2935 (internal_warning): New function.
2936 (internal_vwarning): New function.
2937 (internal_warning_problem, internal_error_problem): New variables.
2938 (internal_verror): Just call internal_vproblem.
2940 2002-09-18 Michael Snyder <msnyder@redhat.com>
2942 * objc-lang.c: New file, support for Objective-C.
2943 Preliminary check-in, not yet integrated into gdb.
2944 * objc-lang.h: New file.
2945 * objc-exp.y: New file.
2947 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2949 * infrun.c (signal_stop_update): Convert definition to ISO C.
2950 (signal_print_update): Ditto.
2951 (signal_pass_update): Ditto.
2952 * inflow.c (terminal_save_ours): Ditto.
2954 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2957 * config/djgpp/fnchange.lst: Handle name clashes between
2958 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2961 * i386-linux-tdep.h: Fix tipo.
2963 2002-09-18 Adam Fedor <fedor@gnu.org>
2965 * MAINTAINERS: Add myself to the Write After Approval list.
2967 2002-09-18 Jim Blandy <jimb@redhat.com>
2969 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2970 texthigh and textlow to reader-specific structs caused
2971 objfile_relocate to miss them. This is fixable, but the work that
2972 the change was supposed to prepare GDB for never got done anyway.
2974 2002-09-18 David Carlton <carlton@math.stanford.edu>
2976 * MAINTAINERS: Alphabetize Write After Approval list.
2978 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2981 * values.c (value_static_field): Call read_var_value.
2983 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2985 * valops.c (hand_function_call): Align the initial stack pointer
2986 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2987 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2989 * mips-tdep.c (mips_frame_align): New function.
2990 (mips_gdbarch_init): Set frame_align.
2991 * gdbarch.sh (FRAME_ALIGN): New method.
2992 * gdbarch.h, gdbarch.c: Re-generate.
2994 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2996 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2999 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3001 * NEWS: Mention that MIPS $fp behavior changed.
3002 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3003 reference to FP_REGNUM.
3004 (mipsnbsd_cannot_store_register): Ditto.
3005 * mips-linux-nat.c: Update copyright.
3006 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3007 (mips_linux_cannot_store_register): Ditto.
3008 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3009 * config/mips/tm-mips.h: Update copyright.
3010 (FP_REGNUM): Delete macro.
3011 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3012 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3013 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3014 (mips_r3041_reg_names, mips_r3051_reg_names)
3015 (mips_r3081_reg_names): Replace "fp" with "".
3018 2002-09-17 Theodore A. Roth <troth@verinet.com>
3020 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3021 generic_read_register_dummy() (PR gdb/703).
3022 (avr_push_return_address): #if 0 out unused vars.
3023 (avr_gdbarch_init): Enable use of avr_push_return_address().
3025 2002-09-17 Michael Snyder <msnyder@redhat.com>
3027 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3028 RTE will take care of it.
3030 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3032 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3033 invalid, return SP_REGNUM.
3035 2002-09-17 Michael Snyder <msnyder@redhat.com>
3037 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3038 point registers without sign extension.
3040 2002-09-17 Andrew Cagney <cagney@redhat.com>
3042 * blockframe.c (deprecated_read_register_dummy): Rename
3043 generic_read_register_dummy.
3044 * frame.c (frame_unwind_signed_register): New function.
3045 (frame_unwind_unsigned_register): New function.
3046 * frame.h (frame_unwind_signed_register): Declare.
3047 (frame_unwind_unsigned_register): Declare.
3048 (deprecated_read_register_dummy): Rename
3049 generic_read_register_dummy.
3051 * h8300-tdep.c (h8300_frame_chain): Update.
3052 (h8300_frame_saved_pc): Update.
3053 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3054 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3055 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3056 (s390_frame_chain): Update.
3057 * v850-tdep.c (v850_find_callers_reg): Update.
3058 (v850_frame_saved_pc): Update.
3059 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3060 (m32r_find_callers_reg): Update.
3061 (m32r_frame_saved_pc): Update.
3062 * sh-tdep.c (sh_find_callers_reg): Update.
3063 (sh64_get_saved_pr): Update.
3064 (sh_init_extra_frame_info): Update.
3065 (sh_init_extra_frame_info): Update.
3066 (sh64_init_extra_frame_info): Update.
3067 (sh64_init_extra_frame_info): Update.
3068 * mcore-tdep.c (mcore_find_callers_reg): Update.
3069 (mcore_frame_saved_pc): Update.
3070 (mcore_init_extra_frame_info): Update.
3071 * i386-tdep.c (i386_frame_saved_pc): Update.
3072 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3073 (ia64_init_extra_frame_info): Update.
3074 (ia64_init_extra_frame_info): Update.
3075 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3076 * cris-tdep.c (cris_init_extra_frame_info): Update.
3077 * avr-tdep.c (avr_frame_chain): Update.
3078 (avr_init_extra_frame_info): Update.
3079 (avr_frame_saved_pc): Update.
3080 * arm-tdep.c (arm_find_callers_reg): Update.
3081 (arm_init_extra_frame_info): Update.
3082 (arm_frame_saved_pc): Update.
3084 2002-09-17 Tom Tromey <tromey@redhat.com>
3086 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3089 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3091 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3092 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3094 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3097 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3099 * osfsolib.c: Remove file, replaced by solib-osf.c.
3100 * Makefile.in: Remove compilation rules for osfsolib.c.
3102 2002-09-16 David Carlton <carlton@math.stanford.edu>
3104 * cp-valprint.c (cp_print_class_method): Correct args to
3105 check_stub_method_group.
3107 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3109 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3110 `set architecture'. Unify naming convention of functions.
3111 (h8300_skip_prologue): Improve prologue analysis.
3112 (h8300_push_arguments): Rewritten to more closely match GCC's
3113 bizarre argument-passing behavior, along with the comment describing
3115 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3116 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3117 sim, remote-e7000.c, remote-hms.c and remote.c
3119 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3121 * i386-tdep.c (gdb_print_insn_i386): Removed.
3122 (i386_print_insn): New function.
3123 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3124 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3127 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3129 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3132 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3134 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3135 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3136 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3138 2002-09-13 Christopher Faylor <cgf@redhat.com>
3140 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3142 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3144 * gdbtypes.c (check_stub_method): Make static.
3145 (check_stub_method_group): New function.
3146 * gdbtypes.h: Update prototypes.
3147 * cp-support.c: New file.
3148 * cp-support.h: New file.
3150 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3151 (update_method_name_from_physname): New function.
3152 (read_member_functions): Correct method names for operators
3153 and v3 constructors/destructors. Separate v2 constructors and
3155 * Makefile.in (stabsread.o): Update dependencies.
3156 (SFILES): Add cp-support.c.
3157 (COMMON_OBS): Add cp-support.o.
3158 (cp_support_h, cp-support.o): Add.
3160 * cp-valprint.c (cp_print_class_method): Call
3161 check_stub_method_group instead of check_stub_method. Remove
3163 * p-valprint.c (pascal_object_print_class_method): Likewise.
3164 * valops.c (search_struct_method): Likewise.
3165 (find_method_list, value_struct_elt_for_reference): Likewise.
3167 2002-09-13 Andrew Cagney <cagney@redhat.com>
3169 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3170 * gdbarch.h, gdbarch.c: Regenerate.
3172 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3174 * frame.c (find_saved_register): Delete function.
3175 * frame.h (find_saved_register): Delete declaration.
3178 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3180 * mips-tdep.c (read_next_frame_reg): Re-hack using
3181 frame_register_unwind.
3183 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3185 * mips-tdep.c (mips_get_saved_register): Re-hack using
3186 frame_register_unwind.
3188 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3190 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3191 vector. Will be useful for Interix.
3192 * gdbarch.h, gdbarch.c: Regenerate.
3194 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3195 name of the malloc function by NAME_OF_MALLOC.
3197 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3199 * value.h (find_function_in_inferior): Add const keyword to
3200 one of the parameters. Allows us to invoke this function with
3202 * valops.c (find_function_in_inferior): Likewise.
3204 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3206 * exec.c (xfer_memory): Fix compilation warning with old versions
3208 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3210 2002-09-12 David Carlton <carlton@math.stanford.edu>
3212 * symtab.h: Run through gdb_indent.h.
3213 Add 2002 to Copyright year list.
3215 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3217 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3219 * MAINTAINERS: Add myself to write after approval list.
3221 2002-09-11 J. Brobecker <brobecker@gnat.com>
3223 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3225 2002-09-11 J. Brobecker <brobecker@gnat.com>
3227 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3230 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3232 * procfs.c (do_detach): Clear current signal, not just fault.
3233 Corrects problem with breakpoint trap signal leaking to detached
3236 2002-09-10 Michael Snyder <msnyder@redhat.com>
3238 * buildsym.c (finish_block): Protect against null pointer.
3240 2002-09-10 Andrew Cagney <cagney@redhat.com>
3242 * infcmd.c (default_print_registers_info): Send all output to
3243 ``file'' instead of ``gdb_stdout''.
3245 2002-09-10 Michael Snyder <msnyder@redhat.com>
3247 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3248 LONGEST, and use signed register read (addresses are sign-
3251 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3253 * event-loop.c (gdb_do_one_event): Make public.
3254 * event-loop.h (gdb_do_one_event): Declare.
3256 2002-09-10 Jeff Law <law@redhat.com>
3258 * infttrace.c (child_resume): Simplify and rework to avoid
3261 2002-09-09 Fred Fish <fnf@intrinsity.com>
3263 * printcmd.c (print_scalar_formatted): "len" is the number of
3264 target bytes, NOT the number of target bits.
3266 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3268 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3269 * top.c (init_main): Set rl_terminal_name.
3271 2002-09-08 Aidan Skinner <aidan@velvet.net>
3273 * ada-lang.c (ada_array_bound, ada_type_match,
3274 _initialize_ada_language): Fix K&R definitions.
3275 * ada-tasks.c (get_current_task): Fix K&R definitions.
3276 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3278 2002-09-07 Christopher Faylor <cgf@redhat.com>
3280 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3283 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3285 * i386-tdep.c (i386_register_virtual_type,
3286 i386_register_convertible, i386_register_convert_to_virtual,
3287 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3288 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3289 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3290 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3291 Don't set push_arguments twice.
3293 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3294 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3295 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3296 sigtramp_end to NULL.
3297 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3299 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3301 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3304 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3305 * gdbarch.h, gdbarch.c: Re-generate.
3306 * blockframe.c (find_pc_sect_partial_function): Convert to use
3307 SIGTRAMP_START_P predicate.
3309 2002-09-05 Michael Snyder <msnyder@redhat.com>
3311 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3312 generic_dummy_frame method and old method. Also distinguish
3313 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3314 (arm_extract_return_value): Use new regcache method.
3316 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3317 adjustment that doesn't conform to the ABI.
3318 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3319 saved regcache, not from current regcache.
3321 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3323 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3326 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3328 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3329 if arm_apcs_32 is false.
3331 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3333 GDB 5.3 branch created.
3335 2002-09-03 Theodore A. Roth <troth@verinet.com>
3337 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3338 generic_unwind_get_saved_register.
3340 2002-09-03 David Carlton <carlton@math.stanford.edu>
3342 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3343 argument (PR gdb/653). Update call to smash_to_method_type.
3344 (read_structure_scope): Update call to dwarf2_add_member_fn.
3346 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3348 * x86-64-linux-tdep.c: Include gdb_string.h
3349 * x86-64-linux-nat.c: Ditto.
3351 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3353 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3354 when YYDEBUG is set to 1.
3355 * c-exp.y: Likewise.
3356 * f-exp.y: Likewise.
3357 * jv-exp.y: Likewise.
3358 * m2-exp.y: Likewise.
3359 * p-exp.y: Likewise.
3361 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3363 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3365 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3366 solib_svr4_fetch_link_map_offsets to
3367 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3368 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3369 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3370 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3371 solib-svr4.o, and solib-legacy.o.
3372 * config/i386/tm-nbsd.h: Include solib.h.
3374 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3376 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3377 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3378 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3379 comment noting that this needs its own target configuration.
3380 * config/i386/nbsd.mt: New file.
3381 * config/i386/nbsdaout.mt: Remove.
3382 * config/i386/nbsdelf.mt: Ditto.
3383 * config/i386/tm-nbsdaout.h: Ditto.
3385 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3387 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3388 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3389 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3391 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3392 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3393 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3395 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3397 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3398 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3399 * i386-tdep.h (i386bsd_init_abi): New prototype.
3400 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3401 function declaration.
3402 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3403 for NetBSD-a.out or NetBSD-ELF.
3404 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3405 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3406 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3407 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3409 (i386nbsd_pc_in_sigtramp): New function.
3410 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3411 i386nbsd_pc_in_sigtramp.
3412 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3413 and i386nbsdelf_init_abi OS ABI handlers.
3414 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3415 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3417 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3419 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3420 registers if the target really has them.
3422 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3424 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3427 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3429 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3431 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3432 (alphanbsd_skip_sigtramp_frame): New functions.
3433 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3434 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3435 to alphanbsd_sigcontext_addr.
3437 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3439 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3441 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3442 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3443 nbsd_pc_in_sigtramp.
3444 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3445 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3446 * nbsd-tdep.c: Include gdb_string.h.
3447 (nbsd_pc_in_sigtramp): New function.
3448 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3449 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3450 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3451 ppcnbsd_pc_in_sigtramp.
3452 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3453 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3454 shnbsd_pc_in_sigtramp.
3455 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3456 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3457 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3459 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3461 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3462 watchpoints to NULL.
3463 (insert_breakpoints): set val field of watchpoints if NULL.
3466 2002-08-29 Jim Blandy <jimb@redhat.com>
3468 * symtab.c (lookup_symbol_aux): In the cases where we find a
3469 minimal symbol of an appropriate name and use its address to
3470 select a symtab to read and search, use `name' (as passed to us)
3471 as the demangled name when searching the symtab's global and
3472 static blocks, not the minsym's name.
3474 2002-08-29 Keith Seitz <keiths@redhat.com>
3476 * stack.c (print_frame_info_base): Always set current_source_symtab
3477 and current_source_line.
3479 2002-08-29 Donn Terry <donnte@microsoft.com>
3481 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3483 2002-08-28 Keith Seitz <keiths@redhat.com>
3485 * stack.c (select_frame): Add FIXME concerning selected-frame
3487 (select_frame_command): Send selected-frame-level-changed
3488 event notification, but only if the level actually changed.
3489 (up_silently_base): Add selected-frame-level-changed event
3491 (down_silently_base): Likewise.
3493 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3495 * Makefile.in: Update dependencies for all gdb/*.c files.
3497 2002-08-27 Tom Tromey <tromey@redhat.com>
3499 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3500 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3501 Update dependencies.
3502 * i387-tdep.c: Include gdb_string.h.
3503 * osabi.c: Likewise.
3504 * i386-linux-nat.c: Likewise.
3505 * lin-lwp.c: Likewise.
3506 * ax-gdb.c: Likewise.
3507 * signals/signals.c: Likewise.
3508 * jv-valprint.c: Likewise.
3509 * p-lang.c: Likewise.
3510 * c-valprint.c: Likewise.
3511 * cp-abi.c: Likewise.
3513 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3515 * cli/cli-script.h (copy_command_lines): Export.
3516 * breakpoint.c: Include cli/cli-script.h.
3517 * Makefile.in (breakpoint.o): Update dependencies.
3519 2002-08-26 Michael Snyder <msnyder@redhat.com>
3521 * breakpoint.c (insert_breakpoints): Protect all references
3522 to 'process_warning'. Shorten long lines.
3524 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3526 * cli/cli-script.c (copy_command_lines): New function.
3527 * defs.h (copy_command_lines): Export.
3528 * testsuite/gdb.base/commands.exp: New tests for commands
3529 attached to a temporary breakpoint, and for commands that
3530 delete the breakpoint they are attached to.
3532 2002-08-26 Michael Snyder <msnyder@redhat.com>
3534 * breakpoint.c (bpstat_stop_status): Instead of copying the
3535 pointer to the breakpoint commands struct, make a new copy
3536 of the struct and point to that.
3537 (bpstat_clear): Free the commands struct.
3538 (bpstat_clear_actions): Free the commands struct.
3539 (bpstat_do_actions): Free the command actions. Also execute
3540 the local cleanups, instead of deleting them.
3541 (delete_breakpoint): Leave the commands field of the bpstat
3542 chain alone -- it will be freed later.
3544 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3546 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3547 deleted in 2002-08-20 commit. This function is still used by
3550 2002-08-26 Keith Seitz <keiths@redhat.com>
3552 * gdb-events.sh: Add selected-frame-level-changed event.
3553 * gdb-events.c: Regenerated.
3554 * gdb-events.h: Regenerated.
3556 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3559 * inflow.c (terminal_save_ours): New function to save terminal
3561 * inferior.h (terminal_save_ours): Declare.
3562 * target.c (debug_to_terminal_save_ours): New function.
3563 (cleanup_target): Defaults to_terminal_save_ours.
3564 (update_current_target): Inherit to_terminal_save_ours.
3565 (setup_target_debug): Set to_terminal_save_ours.
3566 * target.h (target_terminal_save_ours): New to save terminal settings.
3567 (target_ops): New member to_terminal_save_ours.
3568 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3569 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3570 * inftarg.c (init_child_ops): Likewise.
3571 * m3-nat.c (init_m3_ops): Likewise.
3572 * procfs.c (init_procfs_ops): Likewise.
3573 * wince.c (init_child_ops): Likewise.
3574 * win32-nat.c (init_child_ops): Likewise.
3575 * sol-thread.c (init_sol_thread_ops): Likewise.
3577 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3579 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3580 use regcache_* functions.
3581 (i386_gdbarch_init): Set store_return_value instead of
3582 deprecated_store_return_value.
3584 * regcache.c (regcache_raw_write_signed,
3585 regcache_raw_write_unsigned): New functions.
3586 * regcache.h (regcache_raw_write_signed,
3587 regcache_raw_write_unsigned): New prototypes.
3589 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3591 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3592 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3593 source file dependencies. Cleanup corresponding generator rules.
3595 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3597 * regcache.h (register_offset_hack): Declare.
3598 (regcache_cooked_read_using_offset_hack): Declare.
3599 (regcache_cooked_write_using_offset_hack): Declare.
3601 * regcache.c (register_offset_hack): New function.
3602 (regcache_cooked_read_using_offset_hack): New function.
3603 (regcache_cooked_write_using_offset_hack): New function.
3604 (regcache_dump): Check that the registers, according to their
3605 offset, are packed hard against each other.
3606 (cooked_xfer_using_offset_hack): New function.
3608 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3610 * regcache.c (struct regcache_descr): Add field register_type.
3611 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3613 (init_regcache_descr): Initialize register_type. Pass the descr
3614 to init_legacy_regcache_descr. Use register_type instead of
3615 REGISTER_VIRTUAL_TYPE.
3616 (register_type): New function.
3617 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3618 * regcache.h (register_type): Declare.
3620 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3622 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3623 instead of deprecated_store_return_value. Fix fallout from
3624 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3626 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3628 * regcache.c (max_register_size): New function.
3629 (init_legacy_regcache_descr): Ensure that max_register_size is
3630 large enough for REGISTER_VIRTUAL_SIZE.
3631 * regcache.h (max_register_size): Declare.
3633 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3635 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3637 (e500_extract_return_value): Change type of valbuf pointer to
3640 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3642 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3645 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3646 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3647 long long) to prevent compiler warning on 64-bit systems.
3649 2002-08-23 Andrew Cagney <cagney@redhat.com>
3651 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3652 (DEPRECATED_STORE_RETURN_VALUE): New method.
3653 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3654 * gdbarch.h, gdbarch.c: Re-generate.
3656 * values.c (set_return_value): Pass current_regcache to
3658 * arch-utils.h (legacy_store_return_value): Declare.
3659 * arch-utils.c (legacy_store_return_value): New function.
3660 (legacy_extract_return_value): Update parameters.
3662 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3664 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3665 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3666 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3667 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3668 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3669 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3670 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3671 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3672 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3673 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3676 * i386-tdep.c (i386_extract_return_value): Update.
3677 * arch-utils.c (legacy_extract_return_value): Update.
3678 * frv-tdep.c (frv_gdbarch_init): Update.
3679 * cris-tdep.c (cris_gdbarch_init): Update.
3680 * d10v-tdep.c (d10v_gdbarch_init): Update.
3681 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3682 * m68k-tdep.c (m68k_gdbarch_init): Update.
3683 * mcore-tdep.c (mcore_gdbarch_init): Update.
3684 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3685 * s390-tdep.c (s390_gdbarch_init): Update.
3686 * sparc-tdep.c (sparc_gdbarch_init): Update.
3687 * sh-tdep.c (sh_gdbarch_init): Update.
3688 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3689 * v850-tdep.c (v850_gdbarch_init): Update.
3690 * avr-tdep.c (avr_gdbarch_init): Update.
3691 * ia64-tdep.c (ia64_gdbarch_init): Update.
3692 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3693 * vax-tdep.c (vax_gdbarch_init): Update.
3694 * alpha-tdep.c (alpha_gdbarch_init): Update.
3695 * arm-tdep.c (arm_gdbarch_init): Update.
3696 * mips-tdep.c (mips_gdbarch_init): Update.
3697 * i386-tdep.c (i386_gdbarch_init): Update.
3699 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3701 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3702 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3704 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3706 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3709 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3711 * infrun.c (handle_inferior_event): Move a comment outside of a
3712 function call, in order to avoid indent reformatting this part
3713 of the code in an unreadable way.
3715 2002-08-23 Grace Sainsbury <graces@redhat.com>
3717 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3718 when breakpoints fail. Move general breakpoint error messages to
3720 * breakpoint.c (insert_breakpoints): Change warnings when
3721 breakpoints are nto inserted to specify the type. Remove call to
3722 memory_error when hardware breakpoints can't be inserted. Remove
3723 multiple calls to warning so all messages are sent to the user at
3725 (delete_breakpoints): Make insert error messsages more explicit.
3727 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3729 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3730 gdbserver/ChangeLog.
3732 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3734 * i386-tdep.c: Include "objfiles.h".
3735 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3736 skip_trampoline_code.
3737 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3738 (CPLUS_MARKER): Define to '.'.
3740 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3742 (linux_corefile_thread_callback): Increase args->num_notes.
3743 (linux_make_note_section): Initialize thread_args.num_notes, and
3744 use it to determine whether notes for any threads were created.
3746 2002-08-23 Donn Terry <donnte@microsoft.com>
3748 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3749 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3751 (write_with_trace): Conditionalize out the switch branch handling
3752 PCSHOLD if the corresponding macro is not defined. Likewise for
3753 PRSABORT and PRSTOP.
3754 This change will be needed by the Interix port.
3756 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3758 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3759 write_register wherever possible instead of manipulating the
3760 register bytes directly.
3761 Assign VALUE_CONTENTS to a variable and use that.
3762 The GPR numbers are now dependent on the architecture.
3764 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3766 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3768 (skip_prologue): Add support for BookE/e500 instructions.
3769 (e500_extract_return_value): New function.
3770 (frame_get_saved_regs): Add support for saving ev registers and
3772 (e500_store_return_value): New function.
3773 (rs6000_gdbarch_init): Move up default intializations of
3774 deprecated_extract_return_value and store_return_value. Overwrite
3775 init of store_return_value with e500 specific version.
3776 Set extract_return_value for e500.
3778 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3780 * blockframe.c (generic_call_dummy_register_unwind): Use
3781 regcache_cooked_read to catch cases in which the variable is
3782 stored in a pseudo register.
3784 2002-08-22 Andrew Cagney <cagney@redhat.com>
3786 * NEWS: Mention that the i960 has been made obsolete.
3787 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3789 (remote-nrom.o): Obsolete target.
3790 (remote-nindy.o, i960-tdep.o): Ditto.
3791 * remote-nrom.c: Make file obsolete.
3792 * remote-nindy.c, remote-vx960.c: Ditto.
3793 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3794 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3795 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3796 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3797 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3798 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3799 i960-*-vxworks* obsolete.
3800 * MAINTAINERS: Note that the i960 is obsolete.
3802 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3804 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3805 detach to allow reinitialization.
3807 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3809 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3812 2002-08-22 Jim Blandy <jimb@redhat.com>
3814 * coffread.c (coff_symfile_read): Don't try to read the line
3815 number table from disk if the image file doesn't have a symbol
3816 table; we'll never actually look at the info anyway, and Windows
3817 ships DLL's with bogus file offsets for the line number data.
3819 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3821 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3824 2002-08-21 Michael Snyder <msnyder@redhat.com>
3826 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3827 (MSYMBOL_SIZE): Replace macro with function.
3828 (DEFAULT_MIPS_TYPE): Delete unused macro.
3829 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3830 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3832 2002-08-21 Jim Blandy <jimb@redhat.com>
3834 * valops.c (value_cast): Simplify and correct logic for doing a
3835 static cast from a pointer to a base class to a pointer to a
3838 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3840 * infcmd.c (default_print_registers_info): Replace
3842 (registers_info): Use gdbarch_print_registers_info instead of
3844 * inferior.h (default_print_registers_info): Replace
3846 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3847 (DO_REGISTERS_INFO): Change to a predicate function.
3848 * gdbarch.h, gdbarch.c: Regenerate.
3850 2002-08-21 Keith Seitz <keiths@redhat.com>
3852 * gdb-events.sh: Add target-changed event.
3853 * gdb-events.c: Regenerated.
3854 * gdb-events.c: Regenerated.
3855 * valops.c (value_assign): Add target-changed event notification
3856 to inlval_register, lval_memory, and lval_reg_frame_relative.
3858 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3860 * NEWS: Add an entry regarding the improvement of the next/step
3861 operation on Alpha Tru64 multi-processor machines.
3863 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3865 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3867 * Makefile.in: Update all _h macro definitions.
3868 * Makefile.in (install-gdbtk): Move to install section.
3869 (rdi-share/libangsd.a): Move to end of file.
3871 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3873 * frame.c (frame_register_unwind): When a register, set addrp to
3874 the register's byte.
3876 2002-08-20 Michael Snyder <msnyder@redhat.com>
3878 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3879 used locally, so move them from the target machine header to here.
3880 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3881 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3883 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3885 2002-08-20 Andrew Cagney <cagney@redhat.com>
3887 * NEWS: Mention that the Apollo line was made obsolete.
3888 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3889 m68*-hp-hpux* obsolete.
3890 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3891 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3892 * buildsym.c (make_blockvector): Make static.
3893 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3894 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3895 (ALLDEPFILES): Remove dstread.c.
3896 (dstread.o): Obsolete make rule.
3897 * dstread.c: Makefile obsolete.
3899 * config/m68k/hp300hpux.mt: Ditto.
3900 * config/m68k/hp300hpux.mh: Ditto.
3901 * config/m68k/hp300bsd.mt: Ditto.
3902 * config/m68k/hp300bsd.mh: Ditto.
3903 * config/m68k/apollo68b.mt: Ditto.
3904 * config/m68k/apollo68v.mh: Ditto.
3905 * config/m68k/apollo68b.mh: Ditto.
3907 2002-08-20 Michael Snyder <msnyder@redhat.com>
3909 * mips-tdep.c (mips_in_return_stub): Make static.
3910 (mips_gdbarch_init): Set in_solib_return_trampoline.
3911 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3913 2002-08-20 Michael Snyder <msnyder@redhat.com>
3915 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3916 * gdbarch.c, gdbarch.h: Regenerate.
3917 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3919 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3921 2002-08-20 Michael Snyder <msnyder@redhat.com>
3923 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3924 (mips_gdbarch_init): Set skip_trampoline_code,
3925 in_solib_call_trampoline.
3926 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3927 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3929 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3931 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3933 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3934 vector type for ev registers.
3935 (e500_pseudo_register_read): New function.
3936 (e500_pseudo_register_write): New function.
3937 (e500_dwarf2_reg_to_regnum): New function.
3938 (PPC_UISA_NOFP_SPRS): New macro.
3939 (PPC_EV_REGS): New macro.
3940 (PPC_GPRS_PSEUDO_REGS): New macro.
3941 (registers_e500): New register set for e500.
3942 (variants): Add e500 variant.
3943 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3944 before setting architectural dependent variations. Initialize ev
3945 registers numbers. Add case for e500 architecture. Set the
3946 number of pseudo registers.
3948 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3950 * rs6000-tdep.c: Clean up comments.
3952 2002-08-20 Andrew Cagney <cagney@redhat.com>
3954 * h8300-tdep.c: Re-indent file.
3956 2002-08-20 Jim Blandy <jimb@redhat.com>
3958 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3961 2002-08-20 Keith Seitz <keiths@redhat.com>
3963 * breakpoints.c (watch_command_1): Use internal breakpoint
3964 when setting a watchpoint_scope breakpoint.
3966 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3968 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3969 (build_builtin_type_vec64i): Ditto.
3970 (build_builtin_type_vec128): Ditto.
3971 (build_builtin_type_vec128i): Ditto.
3973 2002-08-19 Michael Snyder <msnyder@redhat.com>
3975 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3976 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3977 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3978 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3979 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3980 CALL_DUMMY_ADDRESS): Delete.
3981 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3982 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3983 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3984 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3985 push_return_address.
3986 (mips_register_raw_size, mips_eabi_use_struct_convention,
3987 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3988 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3989 mips_init_extra_frame_info, mips_eabi_push_arguments,
3990 mips_n32n64_push_arguments, mips_push_return_address,
3991 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3992 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3994 2002-08-19 Michael Snyder <msnyder@redhat.com>
3996 * mips-tdep.c (mips_frame_num_args): New function.
3997 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3998 frame_saved_pc, frame_args_address, frame_locals_address,
3999 frame_num_args, and frame_args_skip.
4000 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4001 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4002 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4003 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4005 2002-08-20 Michael Snyder <msnyder@redhat.com>
4007 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4008 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4009 * mips-tdep.c (mips_store_struct_return): New function.
4010 (mips_extract_struct_value_address): New function.
4011 (mips_gdbarch_init): Set store_struct_return and
4012 extract_struct_value_address.
4014 2002-08-20 David Carlton <carlton@math.stanford.edu>
4016 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4017 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4018 (read_file_scope): Check that line_header is nonzero before
4019 decoding macro information.
4021 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4023 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4024 flag the general-purpose registers as floating-point on targets
4025 that don't support the floating-point registers.
4027 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4029 * rs6000-tdep.c (altivec_register_p): Delete.
4030 (rs6000_do_altivec_registers): Delete.
4031 (rs6000_altivec_registers_info): Delete.
4032 (rs6000_do_registers_info): Delete.
4033 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4034 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4036 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4038 * infcmd.c (do_registers_info): Print vector registers in hex
4040 (print_vector_info): Check that printing registers
4042 (print_float_info): Ditto.
4044 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4046 * mips-tdep.c (mips_gdbarch_init): Update.
4047 (mips_o32_extract_return_value): Rewrite.
4048 (mips_o32_store_return_value): Rewrite.
4049 (mips_o32_xfer_return_value): New function.
4050 (mips_xfer_register): Tweak debug print message. Allow for
4051 buf_offset when dumping the value transfered.
4053 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4055 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4056 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4057 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4058 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4059 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4061 2002-08-14 Michael Snyder <msnyder@redhat.com>
4063 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4065 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4067 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4069 (P): New macro to define a register as a pseudo register.
4070 (R, R4, R8, R16, FR32, R64, R0): Updated.
4071 (struct variant): Add new fields for number of pseudo registers
4072 and number of total registers.
4073 (tot_num_registers): New macro replacing....
4074 (num_registers): ...deleted macro.
4075 (num_registers): New function.
4076 (num_pseudo_registers): New function.
4077 (variants): Update all variants to intialize new fields correctly.
4078 Postpone initialization of number of pseudo regs and real regs.
4079 (init_variants): New function.
4080 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4083 2002-08-19 David Carlton <carlton@math.stanford.edu>
4085 * valops.c (search_struct_field): Change error message to treat
4086 return value of 0 from value_static_field as meaning that field is
4088 (value_struct_elt_for_reference): Ditto.
4089 * values.c (value_static_field): Treat an unresolved location the
4090 same as a nonexistent symbol. Fix PR gdb/635.
4091 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4092 enclosed. Fix PR gdb/574.
4093 * MAINTAINERS: Add self to Write After Approval list.
4095 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4097 * mips-tdep.c (mips_xfer_register): New function.
4098 (mips_n32n64_extract_return_value): Rewrite.
4099 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4100 instead of deprecated_extract_return_value.
4102 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4104 * rs6000-tdep.c (TDEP): Delete macro.
4105 (branch_dest): Replace use of TDEP macro with its body.
4106 (rs6000_pop_frame): Ditto.
4107 (rs6000_push_arguments): Ditto.
4108 (rs6000_skip_trampoline_code): Ditto.
4109 (rs6000_frame_saved_pc): Ditto.
4110 (rs6000_frame_chain): Ditto.
4111 (rs6000_register_name): Ditto.
4112 (rs6000_register_byte): Ditto.
4113 (rs6000_register_raw_size): Ditto.
4114 (rs6000_register_virtual_type): Ditto.
4115 (rs6000_register_convertible): Ditto.
4116 (rs6000_convert_from_func_ptr_addr): Ditto.
4118 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4120 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4122 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4123 MIPS_LINUX_JB_ELEMENT_SIZE.
4124 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4125 for MAX_REGISTER_RAW_SIZE arrays.
4126 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4127 MIPS_LINUX_JB_ELEMENT_SIZE.
4129 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4131 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4133 2002-08-19 Aidan Skinner <aidan@velvet.net>
4135 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4136 ada-valprint.c ada-tasks.c.
4137 (YYFILES): Add ada-exp.y.
4138 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4139 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4140 (ada-exp.tab.o): New target.
4142 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4144 * regcache.c (regcache_xfer_part): New function.
4145 (regcache_raw_read_part): New function.
4146 (regcache_raw_write_part): New function.
4147 (regcache_cooked_read_part): New function.
4148 (regcache_cooked_write_part): New function.
4149 * regcache.h (regcache_raw_read_part): Declare.
4150 (regcache_raw_write_part): Declare.
4151 (regcache_cooked_read_part): Declare.
4152 (regcache_cooked_write_part): Declare.
4154 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4156 * remote.c (remote_open_1): Add async_p.
4157 (remote_async_open_1): Delete.
4158 (open_remote_target): Delete.
4159 (remote_open, extended_remote_open): Update calls to remote_open_1.
4160 (remote_async_open, extended_remote_async_open): Call
4161 remote_open_1 instead of remote_async_open_1.
4163 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4165 * blockframe.c: Fix a few coding standard violations.
4167 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4169 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4171 * config/i386/tm-i386sco5.h: ... here. File removed.
4172 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4174 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4175 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4176 (TM_FILE): Set to tm-i386.h.
4177 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4178 * config/i386/tm-i386v.h: Remove file.
4179 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4180 instead of "i386/tm-i386v.h".
4181 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4182 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4184 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4185 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4188 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4190 * config/i386/nm-i386v.h: Add protection against
4192 (i386_register_u_addr): Remove prototype.
4193 (register_u_addr): New prototype.
4194 (REGISTER_U_ADDR): Redefine accordingly.
4195 * i386v-nat.c: Improve several comments.
4196 (i386_register_u_addr): Change signature and rename to
4197 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4200 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4202 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4203 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4204 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4205 deprecated_extract_return_value.
4206 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4207 rename mips_o32o64_push_arguments.
4208 (mips_gdbarch_init): Update.
4209 (mips_extract_return_value): Delete.
4210 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4211 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4212 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4213 (mips_n32n64_extract_return_value): Clone
4214 mips_extract_return_value.
4215 (mips_store_return_value): Delete.
4216 (mips_o32_store_return_value): Clone mips_store_return_value.
4217 (mips_o64_store_return_value): Clone mips_store_return_value.
4218 (mips_eabi_store_return_value): Clone mips_store_return_value.
4219 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4221 2002-08-18 Aidan Skinner <aidan@velvet.net>
4223 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4224 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4226 2002-08-18 Aidan Skinner <aidan@velvet.net>
4228 * ada-lang.c: Run through gdb_indent.sh.
4229 * ada-lang.h: Run through gdb_indent.sh.
4230 * ada-tasks.c: Run through gdb_indent.sh.
4231 * ada-typeprint.c: Run through gdb_indent.sh.
4232 * ada-valprint.c: Run through gdb_indent.sh.
4234 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4236 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4239 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4241 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4243 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4244 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4246 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4247 write_register_gen instead of write_register_bytes.
4249 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4250 i[3456]-*-osf1mk* configurations have been made obsolete.
4251 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4252 i[3456]86-*-osf1mk* hosts obsolete.
4253 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4255 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4256 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4257 config/i386/i386m3.mt, config/i386/nm-m3.h,
4258 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4259 config/i386/i386mk.mh, config/i386/i386mk.mt,
4260 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4262 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4263 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4264 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4266 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4268 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4269 (hppa_value_returned_from_stack): Declare.
4270 (hppa_extract_return_value): Declare.
4271 * config/pa/hppa.mt: New file.
4272 * configure.tgt: Recognize hppa*-*-*.
4273 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4275 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4277 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4280 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4282 * top.c (gdb_rl_operate_and_get_next): Make sure
4283 operate-and-get-next functions correctly even when the history
4284 list is completely filled.
4286 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4288 * MAINTAINERS (Target Instruction Set Architectures): Rename
4289 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4290 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4291 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4292 already listed under Host/Native.
4294 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4295 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4298 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4300 * config/ia64/ia64.mt: New file.
4301 * config/alpha/alpha.mt: New file.
4302 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4303 ia64-linux-gnu. Mention that ia64-elf is broken.
4304 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4306 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4308 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4309 generic_func_frame_valid instead of func_frame_valid.
4311 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4313 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4314 procfs appears to be broken when debugging on multi-processor
4315 machines. So enable software single stepping in order to avoid
4316 using the procfs interface to do next/step operations, using
4317 internal breakpoints instead.
4319 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4320 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4321 make this pc address equal to the value it would have if the
4322 system stepping capability was used. Also set a new flag used
4323 to ensure that we don't readjust the PC one more time later.
4325 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4326 address by DECR_PC_AFTER_BREAK when software single step is
4327 in use for this architecture, as this has already been taken
4328 care of in handle_inferior_event().
4330 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4332 * infrun.c (handle_inferior_event): Minor reformatting, to make
4333 a rather long condition expression easier to read.
4335 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4337 * Makefile.in (gdbtk.o): Move to end of file.
4338 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4339 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4340 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4341 (gdbtk-wrapper.o, gdbres.o): Ditto.
4343 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4345 * Makefile.in (copying.o): Separate out compile rule.
4346 (hpux-thread.o, procfs.o, signals.o): Ditto.
4347 (v850ice.o, z8k-tdep.o): Ditto.
4348 (tui-file.o): Move to TUI section.
4349 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4350 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4352 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4354 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4355 skip_trampoline_code, for better namespace-proofing.
4357 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4359 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4361 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4363 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4365 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4366 signal, check whether we hit a breakpoint before checking for a
4367 single step breakpoint. Otherwise, GDB fails to notice that a
4368 breakpoint has been hit when stepping onto a breakpoint.
4370 2002-08-16 Keith Seitz <keiths@redhat.com>
4372 * gdb-events.sh (clear_gdb_event_hooks): New function.
4373 * gdb-events.c: Regenerate.
4374 * gdb-events.h: Regenerate.
4376 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4378 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4379 not_a_sw_breakpoint.
4380 * breakpoint.h (bpstat_stop_status): Add parameter names.
4382 2002-08-16 Grace Sainsbury <graces@redhat.com>
4384 * remote.c (remote_insert_hw_breakpoint)
4385 (remote_remove_hw_breakpoint): Fix calculation of length field
4388 2002-08-15 Michael Snyder <msnyder@redhat.com>
4390 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4391 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4392 (supply_fpregset): Ditto.
4394 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4395 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4396 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4397 (TARGET_READ_SP): Delete.
4398 (DO_REGISTERS_INFO): Delete.
4399 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4401 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4402 from macros to functions.
4404 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4405 (mips_register_convertible, mips_register_convert_to_virtual,
4406 mips_register_convert_to_raw): Make static.
4407 (mips_read_sp): New function.
4408 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4409 (mips_do_registers_info): Make static.
4410 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4411 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4412 (mips_register_convert_from_type, mips_register_convert_to_type):
4414 (mips_gdbarch_init): Set up function_start_offset,
4415 register_virtual_size, pc_in_sigtramp.
4417 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4419 * infcmd.c (vector_info): New function.
4420 (_initialize_infcmd): Add command "info vector".
4421 (print_vector_info): New function.
4423 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4424 * gdbarch.h, gdbarch.c: Regenerate.
4426 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4428 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4429 ``print_all''. Only print vector registers when ``print_all''.
4431 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4433 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4434 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4436 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4437 Add `args' parameter.
4438 * gdbarch.h, gdbarch.c: Regenerate.
4440 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4442 * infcmd.c (float_info): Call print_float_info.
4443 (print_float_info): New function. By default, print the
4444 floating-point registers.
4446 * arch-utils.h (default_print_float_info): Delete declaration.
4447 * arch-utils.c (default_print_float_info): Delete function.
4449 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4451 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4454 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4457 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4458 * configure.host: Make i[3456]86-*-aix host obsolete.
4459 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4460 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4461 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4462 config/i386/xm-i386aix.h: Make files obsolete.
4463 * i386aix-nat.c: Make file obsolete.
4464 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4465 (i386aix-nat.o): Make target obsolete.
4467 * config/i386/nm-gnu.h: Removed.
4468 * config/i386/nm-i386gnu.h: New file.
4469 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4470 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4472 * config/i386/tm-i386gnu.h: ... here. Removed.
4473 * config/i386/xm-i386gnu.h: Removed.
4474 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4475 (NAT_FILE): Set to nm-i386gnu.h.
4476 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4477 * i386-tdep.c: New file.
4478 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4479 (i386gnu-tdep.o): Specify dependencies.
4481 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4483 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4484 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4485 Adjust a few comments to reflect reality a bit closer.
4486 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4487 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4488 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4489 target_insert_watchpoint, target_remove_watchpoint):
4491 * config/i386/nm-i386sco5.h: ... here.
4492 (kernel_u_size): Add prototype. Improve a few comments and add
4493 protection against multiple inclusion.
4495 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4498 * uw-thread.c (SP_ARG0): Define if not already defined.
4499 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4501 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4503 * config/i386/tm-i386.h: Don't include "regcache.h".
4505 * i387-tdep.h (i387_print_float_info): New prototype.
4506 * i387-tdep.c (print_i387_value, print_i387_ext,
4507 print_i387_status_word, print_i387_control_word): Add `struct
4508 ui_file *' argument and use it for output.
4509 (i387_print_float_info): Renamed from i387_float_info. Add
4510 `struct gdbarch *' and `struct ui_file *' arguments and use the
4512 * i386-tdep.c: Include "i387-tdep.h".
4513 (i386_gdbarch_init): Set print_float_info.
4514 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4515 (FLOAT_INFO): Remove define.
4517 2002-08-13 Michael Snyder <msnyder@redhat.com>
4519 * mips-tdep.c (mips_push_arguments): Rename to
4520 mips_eabi_push_arguments, and tune for EABI.
4521 (MIPS_REGS_HAVE_HOME_P): Delete.
4522 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4523 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4524 Delete references to mips_regs_have_home_p.
4526 2002-08-14 Keith Seitz <keiths@redhat.com>
4528 * Makefile.in (install-gdbtk): Create insight plugin directory.
4529 Install plugins.tcl file.
4531 2002-08-14 Keith Seitz <keiths@redhat.com>
4533 * configure.in: Move SUBDIRS to near top of the file so that
4534 --enable options may add things to it.
4535 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4536 * configure: Regenerate.
4538 2002-08-13 Michael Snyder <msnyder@redhat.com>
4540 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4541 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4542 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4544 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4546 * vax-tdep.c (vax_get_saved_register): Delete function.
4547 (vax_gdbarch_init): Update.
4548 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4549 (ns32k_gdbarch_init): Update.
4550 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4551 (alpha_gdbarch_init): Update.
4553 2002-08-13 Andrew Cagney <cagney@redhat.com>
4555 * regcache.c (init_regcache_descr): Overallocate the
4556 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4557 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4559 (set_register_cached): Add range checking assertions. Use
4562 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4564 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4565 numbers for MMX registers.
4567 2002-08-13 Andrew Cagney <cagney@redhat.com>
4569 * i386-tdep.c (i386_gdbarch_init): Use
4570 generic_unwind_get_saved_register.
4572 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4574 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4575 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4577 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4578 Delete. Add comment regarding this now-deleted target method.
4580 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4582 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4583 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4584 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4585 real PC and the page number (if it's within the memory bank window).
4586 (m68hc11_pseudo_register_write): Likewise when saving.
4587 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4588 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4589 (m68hc11_register_raw_size): And use 32-bit for it.
4590 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4591 16K memory bank is used by the prog; also use the virtual pc.
4593 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4595 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4596 (m68hc11_gdbarch_init): Install it in gdbarch.
4597 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4598 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4599 (MSYMBOL_SIZE): New for documentation.
4600 (insn_return_kind): Enum to specify how a function returns.
4601 (frame_extra_info): Cleanup and record the return mode.
4602 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4603 register in address computation.
4604 (m68hc11_get_return_insn): New to obtain the return instruction used
4606 (m68hc11_frame_init_saved_regs): Take into account the return
4607 instruction used by the function for far and interrupt functions.
4608 (m68hc11_init_extra_frame_info): Take into account page register.
4609 (m68hc11_frame_args_address): Adjust according to the return mode.
4610 (show_regs): Print page register only when it's used.
4612 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4614 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4615 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4616 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4618 (m68hc11_register_raw_size): Likewise.
4620 2002-08-13 Andrew Cagney <cagney@redhat.com>
4622 * i386-tdep.c (i386_register_name): Handle mmx registers.
4623 (mmx_regnum_p): New function.
4624 (i386_mmx_names): New array.
4625 (mmx_num_regs): New variable.
4626 (i386_pseudo_register_read): New function.
4627 (i386_pseudo_register_write): New function.
4628 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4630 * regcache.c (regcache_raw_read_unsigned): New function.
4631 (regcache_raw_read_signed): New function.
4632 * regcache.h (regcache_raw_read_unsigned): Declare.
4633 (regcache_raw_read_signed): Declare.
4635 2002-08-13 Andrew Cagney <cagney@redhat.com>
4637 * regcache.c (regcache_raw_read_as_address): Delete function.
4638 (regcache_cooked_read_signed): New function.
4639 (regcache_cooked_read_unsigned): New function.
4640 * regcache.h (regcache_cooked_read_signed): Declare.
4641 (regcache_cooked_read_unsigned): Declare.
4642 (regcache_raw_read_as_address): Delete declaration.
4644 * blockframe.c (generic_read_register_dummy): Use
4645 regcache_cooked_read_unsigned.
4646 * i386-tdep.c (i386_extract_struct_value_address): Use
4647 regcache_cooked_read_unsigned.
4649 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4652 double sizes according to ELF ABI flags.
4653 (gdbarch_tdep): Record elf_flags.
4655 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4657 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4658 (m6812_prolog): They can appear in 68HC12 function prologue.
4659 (m68hc11_frame_chain): Cleanup.
4661 2002-08-12 Andrew Cagney <cagney@redhat.com>
4663 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4665 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4666 (i386_linux_register_raw_size): Delete function.
4667 (i386_linux_init_abi): Update.
4668 * i386-tdep.c (i386_register_raw_size): Delete function.
4669 (i386_register_byte): Delete function.
4670 (i386_gdbarch_init): Update.
4671 (i386_register_size): Delete array.
4672 (i386_register_offset): Delete array.
4674 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4675 (REGISTER_RAW_SIZE): Delete macro.
4676 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4677 (REGISTER_BYTE): Delete macro.
4679 2002-08-11 Aidan Skinner <aidan@velvet.net>
4681 * ada-lang.c (ada_lookup_partial_symbol)
4682 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4683 prototype names so that grep ^func works properly.
4685 * ada-lang.c (ada_array_element_type)
4686 (ada_lookup_partial_symbol): Fix typos in parameter list.
4688 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4689 Fix prototype names so that grep ^func works properly.
4691 2002-08-10 Andrew Cagney <cagney@redhat.com>
4692 Elena Zannoni <ezannoni@redhat.com>
4693 Martin M. Hunt <hunt@redhat.com>
4695 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4696 (build_builtin_type_vec128i): Set the vector bit.
4697 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4698 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4699 (build_builtin_type_vec64): New function.
4700 (build_builtin_type_vec64i): New function.
4701 (build_gdbtypes): Initialize builtin_type_vec64 and
4702 builtin_type_vec64i.
4704 2002-08-09 Andrew Cagney <cagney@redhat.com>
4706 * regcache.c (regcache_dump): Compare the register offset
4708 * arch-utils.c (generic_register_byte): New function.
4709 * arch-utils.h (generic_register_byte): Declare.
4710 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4711 * gdbarch.h, gdbarch.c: Regenerate.
4713 2002-08-09 Andrew Cagney <cagney@redhat.com>
4715 * regcache.c: Include "gdbcmd.h"
4716 (_initialize_regcache): Add commands "maintenance print
4717 registers", "maintenance print raw-registers" and "maintenance
4718 print cooked-registers".
4719 (enum regcache_dump_what): Define.
4720 (dump_endian_bytes): New function.
4721 (regcache_dump): New function.
4722 (regcache_print): New function.
4723 (maintenance_print_registers): New function.
4724 (maintenance_print_raw_registers): New function.
4725 (maintenance_print_cooked_registers): New function.
4726 * Makefile.in (regcache.o): Update dependencies.
4728 2002-08-09 Michael Snyder <msnyder@redhat.com>
4730 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4731 (mips_push_arguments): Correct some comments. Use paddr_nz
4732 for printing addresses in debug output. Replace static
4733 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4734 (mips_n32n64_push_arguments): New function, cloned from
4735 mips_push_arguments and tuned for the n32/n64 ABI.
4736 (mips_push_register): Buffer needs dynamic allocation.
4737 (mips_print_register): Ditto.
4738 (do_gp_register_row): Ditto.
4739 (mips_store_return_value): Ditto.
4740 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4742 2002-08-09 Don Howard <dhoward@redhat.com>
4744 * memattr.c (mem_info_command): Print special case of upper bound
4745 as max CORE_ADDR + 1.
4747 2002-08-08 Michael Snyder <msnyder@redhat.com>
4749 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4750 returns structs by ref if they're too big to fit in two registers.
4752 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4754 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4756 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4757 mips_find_saved_regs().
4758 (mips_pop_frame): Likewise.
4760 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4762 * blockframe.c (frame_saved_regs_register_unwind): Revise
4763 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4766 2002-08-09 Grace Sainsbury <graces@redhat.com>
4768 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4769 T-packets; the 'a' is not taken as a register number.
4770 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4771 (remote_stopped_data_address): New functions; add to target
4773 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4774 prototypes to match other implementations of this
4775 function. replace integer argument with pointer -- the length
4776 field in the Z-packet is the length of what is pointed to or 1 if
4777 pointer is null. Add to target vector.
4778 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4782 * remote.c (remote_wait): Add support to extract optional
4783 watchpoint information from T-packet. Ignore unrecognized
4784 optional info in T-packet.
4785 (remote_async_wait): Ditto.
4787 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4789 * cli/cli-dump.c: Change fopen modes to use binary open modes
4790 as defined in include/fopen-bin.h throughout.
4792 2002-08-08 Michael Snyder <msnyder@redhat.com>
4794 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4796 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4798 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4799 assertion failure by returning early after a warning.
4801 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4803 * mips-tdep.c (mips_find_saved_regs): Make static.
4804 (mips_frame_init_saved_regs): New function.
4805 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4806 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4807 (mips_find_saved_regs): Delete declaration.
4809 2002-08-08 Grace Sainsbury <graces@redhat.com>
4811 * remote.c (remote_wait, remote_async_wait): Change
4812 thread_num from int to ULONGEST.
4813 (unpack_varlen_hex): Change result parameter from
4814 int * to ULONGEST *.
4816 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4818 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4819 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4821 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4823 2002-08-08 Andrew Cagney <cagney@redhat.com>
4825 * gcore.c (override_derive_stack_segment): Delete variable.
4826 (preempt_derive_stack_segment): Delete function.
4827 (derive_stack_segment): Delete function.
4828 (default_derive_stack_segment): Renamed to derive_stack_segment.
4829 (override_derive_heap_segment): Delete variable.
4830 (preempt_derive_heap_segment): Delete function.
4831 (derive_heap_segment): Delete function.
4832 (default_derive_heap_segment): Rename to derive_heap_segment.
4834 2002-08-06 Michael Snyder <msnyder@redhat.com>
4836 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4837 * mips-tdep.c (mips_EABI_use_struct_convention,
4838 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4839 New functions. (mips_use_struct_convention): Delete.
4840 (mips_gdbarch_init): set use_gdbarch_convention.
4842 2002-08-06 Michael Snyder <msnyder@redhat.com>
4844 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4845 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4846 mips_o32_reg_struct_has_addr): New functions.
4847 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4849 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4851 * regcache.c (pseudo_register): Delete function.
4852 (fetch_register): Delete function.
4853 (store_register): Delete function.
4854 (regcache_raw_read, legacy_read_register_gen): Use
4855 target_fetch_registers instead of fetch_register.
4856 (legacy_write_register_gen, regcache_raw_write): Use
4857 target_store_register instead of store_register.
4858 (write_register_bytes): Ditto.
4860 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4861 (STORE_PSEUDO_REGISTER): Delete.
4862 * gdbarch.h, gdbarch.c: Regenerate.
4864 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4866 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4867 write dump file binary.
4869 2002-08-05 Michael Snyder <msnyder@redhat.com>
4871 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4872 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4873 (mips_gdbarch_init): Set N32 target to be mips64.
4875 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4877 * frame.c (find_saved_register): Break out of loop once saved
4878 register address is found. Don't mention sparc in loop comment
4881 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4883 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4884 mips_default_saved_regsize to 8.
4886 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4888 * gcore.c: Do not include <sys/procfs.h>.
4889 * Makefile.in (gcore.o): Update dependencies.
4891 2002-08-06 Andrew Cagney <cagney@redhat.com>
4893 * configure.tgt: Make arc-*-* obsolete.
4894 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4895 * MAINTAINERS: Make arc-elf obsolete.
4896 * arc-tdep.c: Make file obsolete.
4897 * config/arc/arc.mt: Ditto.
4898 * config/arc/tm-arc.h: Ditto.
4900 2002-08-05 Theodore A. Roth <troth@verinet.com>
4902 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4904 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4906 * mcore-tdep.c (mcore_gdbarch_init): Use
4907 generic_unwind_get_saved_register instead of
4908 generic_get_saved_register.
4909 * v850-tdep.c (v850_gdbarch_init): Ditto.
4910 * frv-tdep.c (frv_gdbarch_init): Ditto.
4911 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4912 * s390-tdep.c (s390_gdbarch_init): Ditto.
4913 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4914 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4915 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4917 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4919 * objfiles.h: Add missing #include "symfile.h"
4921 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4923 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4925 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4926 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4929 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4931 * NEWS: Cleanup and nitpick.
4933 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4935 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4937 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4939 * Makefile.in (gdbtk-bp.o): Update dependencies.
4940 (gdbtk-register.o): Ditto.
4941 (gdbtk-varobj.o): Ditto.
4943 2002-08-03 Andrew Cagney <cagney@redhat.com>
4945 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4946 m68hc11_fetch_pseudo_register.
4947 (m68hc11_pseudo_register_write): Replace
4948 m68hc11_store_pseudo_register.
4949 (m68hc11_gdbarch_init): Update.
4951 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4953 * gdbarch.sh: Include "gdb_string.h".
4954 * gdbarch.c: Regenerate.
4956 * regcache.c: Include "gdb_string.h".
4957 * ax-general.c: Ditto.
4959 * std-regs.c: Ditto.
4960 * fbsd-proc.c: Ditto.
4963 * Makefile.in (regcache.o): Update dependencies.
4964 (thread.o, gdbarch.o): Ditto.
4965 (ax-general.o, gdbarch.o): Ditto.
4966 (varobj.o, std-regs.o): Ditto.
4967 (fbsd-proc.o): Specify dependencies.
4969 2002-08-02 Andrew Cagney <cagney@redhat.com>
4971 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4973 (regcache_cooked_write): Ditto.
4975 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4977 * regcache.c (regcache_cooked_read): New function.
4978 (regcache_cooked_write): New function.
4979 (read_register_gen): Rewrite using regcache_cooked_read.
4980 (write_register_gen): Rewrite using regcache_cooked_write.
4982 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4985 2002-08-02 Andrew Cagney <cagney@redhat.com>
4987 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4988 Replace the architecture methods register_read and register_write.
4989 * gdbarch.h, gdbarch.c: Regenerate.
4990 * regcache.c (init_regcache_descr): Update.
4991 (read_register_gen): Update.
4992 (write_register_gen): Update.
4993 (supply_register): Update comment.
4995 * sh-tdep.c (sh_gdbarch_init): Update.
4996 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4997 `regcache' and `gdbarch' parameters. Make `buffer' a void
4998 pointer. Update code.
4999 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5000 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5001 void pointer. Update code.
5002 (sh64_register_write): Delete.
5003 (sh4_register_read): Delete.
5004 (sh64_register_read): Delete.
5005 (sh4_register_write): Delete.
5006 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5007 void pointer, `to' parameter a void pointer.
5008 (sh_sh64_register_convert_to_raw): Ditto.
5010 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5012 * mips-tdep.c (mips_register_virtual_type): Use architecture
5013 invariant return values.
5015 2002-08-01 Andrew Cagney <cagney@redhat.com>
5017 * linux-proc.c: Include "gdb_string.h".
5018 * Makefile.in (linux-proc.o): Update dependency list.
5020 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5022 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5025 2002-08-01 Grace Sainsbury <graces@redhat.com>
5027 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5028 to_insert_watchpoint, to_remove_watchpoint,
5029 to_stopped_by_watchpoint, to_stopped_data_address,
5030 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5031 target vecctor. Define their corresponding macros so they call
5034 * target.c: Add default and debug versions of for
5035 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5036 to_insert_watchpoint, to_remove_watchpoint,
5037 to_stopped_by_watchpoint, to_stopped_data_address,
5038 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5040 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5042 * mips-tdep.c (mips_register_virtual_type): New function.
5043 (mips_gdbarch_init): Register mips_register_virtual_type()
5044 with gdbarch machinery.
5045 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5046 this file instead of tm-bigmips.h.
5047 (MIPS_REGSIZE): Delete this macro.
5048 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5049 multiarch version in mips-tdep.c will be found.
5051 2002-08-01 Andrew Cagney <cagney@redhat.com>
5053 * NEWS: Menion that CHILL has been made obsolete.
5055 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5056 * stabsread.c (read_range_type): Ditto.
5057 * gdbtypes.h: Ditto.
5058 * language.c (binop_type_check): Ditto.
5059 (binop_result_type): Ditto.
5060 (integral_type): Ditto.
5061 (character_type): Ditto.
5062 (string_type): Ditto.
5063 (boolean_type): Ditto.
5064 (structured_type): Ditto.
5065 (lang_bool_type): Ditto.
5066 (binop_type_check): Ditto.
5067 * language.h (_LANG_chill): Ditto.
5068 * dwarfread.c (set_cu_language): Ditto.
5069 * dwarfread.c (CHILL_PRODUCER): Ditto.
5070 * dwarfread.c (handle_producer): Ditto.
5071 * expression.h (enum exp_opcode): Ditto.
5072 * eval.c: Ditto for comments.
5073 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5074 * expprint.c (print_subexp): Ditto.
5075 (print_subexp): Ditto.
5076 * valops.c (value_cast): Ditto.
5077 (search_struct_field): Ditto.
5078 * value.h (COERCE_VARYING_ARRAY): Ditto.
5079 * symfile.c (init_filename_language_table): Ditto.
5080 (add_psymbol_with_dem_name_to_list): Ditto.
5081 * valarith.c (value_binop): Ditto.
5083 * valops.c (value_slice): Ditto.
5084 * symtab.h (union language_specific): Ditto.
5085 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5086 (SYMBOL_DEMANGLED_NAME): Ditto.
5087 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5088 * defs.h (enum language): Ditto.
5089 * symtab.c (got_symtab): Ditto.
5090 * utils.c (fprintf_symbol_filtered): Ditto.
5092 * ch-typeprint.c: Make file obsolete.
5093 * ch-valprint.c: Make file obsolete.
5094 * ch-lang.h: Make file obsolete.
5095 * ch-exp.c: Make file obsolete.
5096 * ch-lang.c: Make file obsolete.
5098 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5100 (TARGET_FLAGS_TO_PASS): Ditto.
5101 (CHILLFLAGS): Obsolete.
5103 (CHILL_FOR_TARGET): Obsolete.
5104 (CHILL_LIB): Obsolete.
5105 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5107 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5108 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5110 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5113 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5115 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5116 This does not change anything at the moment, but will be helpful
5117 later when full Ada support is integrated.
5119 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5121 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5124 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5126 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5127 and save it in a local variable. Use variable in later test.
5129 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5131 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5132 test. (Thanks to Daniel Jacobowitz.)
5134 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5136 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5137 (mips_abi_strings): Add "n64".
5138 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5140 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5142 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5143 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5145 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5147 * utils.c (host_pointer_to_address, address_to_host_pointer):
5148 Use gdb_assert() instead of explicit call to internal_error().
5150 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5152 * Makefile.in (rs6000-nat.o): Update dependencies.
5154 From Nicholas Duffek:
5155 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5156 (aix-thread.o): New rule.
5157 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5158 * config/powerpc/aix432.mh: New file.
5160 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5162 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5163 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5164 (fetch_core_registers, ppc_linux_supply_gregset)
5165 (ppc_linux_supply_fpregset): New functions.
5166 (ppc_linux_regset_core_fns): New.
5167 (_initialize_ppc_linux_tdep): Call add_core_fns.
5168 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5169 and ppc_linux_supply_gregset.
5170 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5171 (supply_fpregset): Call ppc_linux_supply_fpregset.
5172 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5174 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5176 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5178 * symtab.c (lookup_symbol): Demangle before lowercasing.
5180 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5182 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5184 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5185 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5186 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5187 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5189 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5190 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5191 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5192 (avr-tdep.o, mon960-rom.o): Ditto.
5193 (aout_stabs_gnu_h): Define.
5194 (symtab_h): Remove $(gdb_obstack_h).
5196 2002-07-30 Jim Blandy <jimb@redhat.com>
5198 Patch from David Carlton <carlton@math.stanford.edu>:
5199 * gdbinit.in: Move the `dir' commands that add GDB's own source
5200 directory to the search path to the end, so that the `gdb' source
5201 directory will be searched first.
5203 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5205 * gdb_obstack.h: New file.
5206 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5207 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5208 * objfiles.h: Include "gdb_obstack.h".
5209 * Makefile.in (gdb_obstack_h): Define.
5210 (symtab_h): Add $(gdb_obstack_h).
5211 (objfiles_h): Add $(gdb_obstack_h).
5213 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5214 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5215 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5216 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5217 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5218 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5219 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5220 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5222 * Makefile.in (bcache.o): Update dependencies.
5223 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5224 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5225 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5226 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5227 (stabsread.o, symfile.o, symmisc.o): Ditto.
5228 (symtab.o, typeprint.o, macroexp.o): Ditto.
5229 (macrotab.o, mdebugread.o): Ditto.
5230 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5231 (coff_ecoff_h, aout_aout64_h): Define.
5232 (aout_stabs_gnu_h, libaout_h): Define.
5234 2002-07-29 Andrew Cagney <cagney@redhat.com>
5236 * regcache.c (struct regcache_descr): Rename nr_registers to
5237 nr_cooked_registers. Revise comments describing the structure
5239 (init_regcache_descr): Update.
5240 (init_legacy_regcache_descr): Update.
5241 (read_register_gen, write_register_gen): When a cooked register in
5242 the raw register range, directly access the value from the raw
5245 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5247 * z8k-tdep.c: Do not include "obstack.h".
5248 * h8300-tdep.c, h8500-tdep.c: Ditto.
5249 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5250 * valprint.c, v850-tdep.c: Ditto.
5251 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5252 * mn10200-tdep.c: Ditto.
5254 * Makefile.in (z8k-tdep.o): Update dependencies.
5255 (m68hc11-tdep.o, valprint.o): Ditto.
5256 (v850-tdep.o, d10v-tdep.o): Ditto.
5257 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5258 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5259 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5260 (sh_opc_h, gdb_sim_sh_h): Define.
5261 (elf_sh_h, elf_bfd_h): Define.
5262 (opcode_m68hc11_h): Define.
5263 (OPCODES_SRC, OPCODES_DIR): define.
5264 (OPCODES): Use $(OPCODES_DIR).
5265 (gdb_sim_d10v_h): Rename sim_d10v_h.
5266 (gdb_sim_arm_h): Rename sim_arm_h.
5268 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5270 * utils.c (host_pointer_to_address, address_to_host_pointer):
5271 Change internal_error() message to indicate function responsible
5274 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5276 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5277 calls to local_hex_string_custom().
5279 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5281 * irix5-nat.c: Move IRIX shared library support from here...
5282 * solib-irix.c: ...to here. Revised substantially to work with
5283 generic solib framework.
5285 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5286 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5287 * mips-irix-tdep.c: New file.
5289 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5290 (mips-irix-tdep.o, solib-irix.o): New rules.
5291 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5293 * config/mips/irix6.mt (TDEPFILES): Likewise.
5294 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5296 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5298 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5299 disabled (via ``#if 0'') includes.
5301 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5303 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5304 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5305 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5306 Add support for the fpscr register.
5307 * rs6000-nat.c (regmap, fetch_inferior_registers)
5308 (store_inferior_registers, fetch_core_registers): Likewise.
5310 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5312 * rs6000-nat.c (language.h): Include.
5313 (special_regs): Delete this array.
5314 (regmap): New function.
5315 (fetch_register, store_register): Use regmap() to map gdb
5316 register numbers to ptrace register numbers. Also, use
5317 outputs from regmap() to make decisions regarding type of
5318 ptrace() call to make. In particular, don't compare against
5319 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5320 (fetch_inferior_registers, store_inferior_registers): Where
5321 possible, obtain register numbers from tdep struct. Don't
5322 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5323 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5324 (LAST_UISA_SP_REGNUM): Delete.
5326 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5328 * rs6000-nat.c (ppc-tdep.h): Include.
5329 (fetch_registers, store_register, fetch_core_registers): Don't
5330 access registers[] directly. Instead, use supply_register() or
5331 regcache_collect() as appropriate.
5332 (find_toc_address): Format hex address with local_hex_string().
5334 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5336 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5339 2002-07-24 Tom Tromey <tromey@redhat.com>
5341 * jv-exp.y: Marked all strings with _().
5342 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5344 (MethodInvocation, CastExpression, parse_number, yyerror,
5345 java_type_from_name, push_expression_name, yylex): Typo fixes.
5347 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5349 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5350 (tee_file_flush, tee_file_write, tee_file_fputs)
5351 (tee_file_isatty): New.
5352 * ui-file.h (tee_file_new): Add prototype.
5354 2002-07-24 Aidan Skinner <aidan@velvet.net>
5356 * ada-lang.c: Change k&r style function definitions to prototyped
5358 * ada-typeprint.c: Change k&r style function definitions to prototyped
5360 * ada-valprint.c: Change k&r style function definitions to prototyped
5363 2002-07-24 Andrew Cagney <cagney@redhat.com>
5365 * README: Remove reference to remote-bug.
5366 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5368 (m88k-nat.o): Delete rule.
5369 (m88k-tdep.o): Delete rule.
5370 (remote-bug.o): Delete rule.
5371 * MAINTAINERS: Mark as obsolete.
5372 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5373 * m88k-tdep.c: Make file obsolete.
5374 * config/m88k/m88k.mh: Ditto.
5375 * config/m88k/delta88v4.mh: Ditto.
5376 * config/m88k/delta88v4.mt: Ditto.
5377 * config/m88k/delta88.mt: Ditto.
5378 * config/m88k/delta88.mh: Ditto.
5379 * remote-bug.c: Ditto.
5380 * config/m88k/tm-delta88.h: Ditto.
5381 * config/m88k/nm-delta88v4.h: Ditto.
5382 * config/m88k/xm-delta88.h: Ditto.
5383 * config/m88k/xm-dgux.h: Ditto.
5384 * config/m88k/tm-m88k.h: Ditto.
5385 * config/m88k/nm-m88k.h: Ditto.
5386 * config/m88k/tm-delta88v4.h: Ditto.
5387 * m88k-nat.c: Ditto.
5388 * cxux-nat.c: Ditto.
5389 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5390 and m88*-*-* obsolete.
5391 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5394 2002-07-24 Andrew Cagney <cagney@redhat.com>
5396 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5397 constant. Same for local pointer variables.
5398 (extract_signed_integer): Ditto.
5399 * defs.h (extract_unsigned_integer): Update.
5400 (extract_signed_integer): Update.
5402 2002-07-24 Andrew Cagney <cagney@redhat.com>
5404 * regcache.c (regcache_raw_write): Change buf parameter to a
5405 constant void pointer.
5406 (regcache_raw_read): Change buf parameter to a void pointer.
5407 (legacy_write_register_gen): Change myaddr parameter a constant
5409 (supply_register): Change val parameter to a const void pointer.
5410 * regcache.h (regcache_raw_write): Update declaration.
5411 (regcache_raw_read): Update declaration.
5412 (supply_register): Update declaration.
5414 2002-07-24 Tom Tromey <tromey@redhat.com>
5416 * defs.h (gdb_readline_wrapper): Declare.
5417 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5418 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5419 * top.c (gdb_readline_wrapper): New function.
5420 (command_line_input): Use it.
5422 2002-07-24 Andrew Cagney <cagney@redhat.com>
5424 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5425 regcache_read and regcache_write.
5426 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5427 * regcache.c: Update.
5428 * sh-tdep.c (sh64_push_arguments): Update comment.
5429 (sh_pseudo_register_read): Update.
5430 (sh_pseudo_register_write): Update.
5431 (sh4_register_read): Update.
5432 (sh4_register_write): Update.
5433 (sh64_pseudo_register_read): Update.
5434 (sh64_pseudo_register_write): Update.
5435 (sh64_register_read): Update.
5436 (sh64_register_write): Update.
5437 * i386-tdep.c (i386_extract_return_value): Update.
5438 (i386_extract_struct_value_address): Update.
5439 (i386_extract_return_value): Update.
5440 * blockframe.c (generic_read_register_dummy): Update.
5441 (generic_call_dummy_register_unwind): Update
5442 * infrun.c (write_inferior_status_register): Update.
5444 2002-07-23 Jim Blandy <jimb@redhat.com>
5446 * parser-defs.h (expression_context_pc): Make this extern.
5447 (Thanks to Michael Snyder.)
5449 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5451 GDB 5.2.1 released from 5.2 branch.
5452 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5453 * README: Update to mention 5.2.1.
5455 2002-07-23 Mark Salter <msalter@redhat.com>
5457 * remote.c (remote_read_bytes): Fix check for error.
5459 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5461 * aix-thread.c (language.h): Include.
5462 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5463 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5464 Print newlines at end of debug messages.
5465 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5466 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5468 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5470 * aix-thread.c (ppc-tdep.h): Include.
5471 (special_register_p): New function.
5472 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5473 (store_regs_user_thread): Use register number information from
5474 gdbarch_tdep struct instead of hardcoded offsets relative to
5475 FIRST_UISA_SP_REGNUM.
5476 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5477 special_register_p() instead of using FPLAST_REGNUM and
5478 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5479 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5480 will be MQ's register number.
5482 2002-07-22 Michael Snyder <msnyder@redhat.com>
5484 * aix-thread.c (ops): Rename to aix_thread_ops.
5485 (base_ops): Rename to base_target.
5486 (ops_attach): Rename to aix_thread_attach.
5487 (ops_detach): Rename to aix_thread_detach.
5488 (ops_resume): Rename to aix_thread_detach.
5489 (ops_wait): Rename to aix_thread_wait.
5490 (ops_kill): Rename to aix_thread_kill.
5491 (init_ops): Rename to init_aix_thread_ops.
5492 (ops_fetch_register): Rename to aix_thread_fetch_register.
5493 (ops_store_register): Rename to aix_thread_store_register.
5494 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5495 (ops_thread_alive): Rename to aix_thread_thread_alive.
5496 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5497 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5498 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5499 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5500 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5501 (store_regs_lib): Rename to store_regs_user_thread.
5502 (store_regs_kern): Rename to store_regs_kernel_thread.
5504 2002-07-22 Michael Snyder <msnyder@redhat.com>
5506 * aix-thread.c (ops_prepare_to_store): Eliminate.
5507 (init_ops): Don't initialize ops.prepare_to_store.
5508 (store_regs_kern): Pre-fetch register buffers from child,
5509 because some registers may not be in the cache. Copy
5510 regs from register cache only if they are cached.
5511 (store_regs_lib): Copy regs from register cache only
5513 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5514 fill_gprs64): Ditto.
5516 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5518 * aix-thread.c (gdb_assert.h): Include.
5519 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5520 register sizes (from register cache) match size of buffer holding
5522 (fill_sprs32): Change parameter types to match those in the ptrace()
5524 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5525 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5527 2002-07-22 Michael Snyder <msnyder@redhat.com>
5529 * aix-thread.c (supply_sprs64): Cosmetic change.
5530 (supply_sprs32): Cosmetic change.
5531 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5532 (fill_sprs64): Use regcache_collect instead of read_register.
5533 (store_regs_lib): Use regcache_collect instead of
5534 read_register. Use fill_sprs32 instead of fill_sprs64,
5535 if debugging a 32-bit architecture.
5536 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5537 out of the register cache, instead of passing a pointer into
5538 the register cache directly to ptrace. Use regcache_collect
5539 insteaad of read_register.
5540 (ops_prepare_to_store): Use target_read_registers instead
5541 of read_register_bytes.
5543 2002-07-20 Aidan Skinner <aidan@velvet.net>
5545 * MAINTAINERS: Add self under write after approval.
5547 2002-07-20 Aidan Skinner <aidan@velvet.net>
5549 * ada-tasks.c: Change k&r style function definitions to prototyped
5552 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5554 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5555 * x86-64-tdep.c: Include "objfiles.h".
5556 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5557 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5559 2002-07-17 Michal Ludvig <michal@suse.cz>
5561 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5562 (update_context): Initialise cfa variable.
5564 2002-07-17 Michael Snyder <msnyder@redhat.com>
5566 * aix-thread.c: Shorten some long lines.
5567 Bring comments into line with code spec.
5569 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5571 * infrun.c: Re-indent using gdb_indent.sh.
5573 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5575 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5576 Leave the indentation temporarily untouched, to minimize the diffs.
5578 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5580 * stabsread.c: Make os9k sections of the code obsolete,
5582 * stabsread.h: Make os9k sections of the code obsolete.
5584 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5586 * linux-low.c (regsets_store_inferior_registers): Add free()
5587 at the end of a loop to prevent memory leak.
5588 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5589 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5590 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5592 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5594 2002-07-17 Jim Blandy <jimb@redhat.com>
5596 * macrocmd.c (info_macro_command): Remove newline from error
5599 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5601 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5602 (sh_gdbarch_init): Use it for sh-dsp.
5604 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5606 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5607 64-bit DWARF2 format.
5609 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5611 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5612 <sys/proc.h> when not available.
5614 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5616 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5617 * stabsread.c: Make os9k sections of the code obsolete.
5618 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5619 * config/i386/i386os9k.mt: Make file obsolete.
5620 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5621 (COMMON_OBS): Remove os9kread.o
5622 (SFILES): Remove os9kread.c.
5623 (os9kread.o, remote-os9k.o): Make target obsolete.
5624 * remote-os9k.c: Make file obsolete.
5625 * os9kread.c: Make file obsolete.
5628 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5630 * NEWS: Mention that the FR30 has been made obsolete.
5631 * fr30-tdep.c: Make file obsolete.
5632 * config/fr30/tm-fr30.h: Ditto.
5633 * config/fr30/fr30.mt: Ditto.
5634 * configure.tgt: Make fr30-*-elf obsolete.
5635 * MAINTAINERS: Make fr30-elf obsolete.
5637 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5639 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5640 found is not inside a section.
5642 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5644 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5646 (pdc_realloc): Use xrealloc() instead of realloc().
5648 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5650 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5651 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5652 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5655 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5657 * aix-thread.c (ptrace_check): Eliminate goto.
5658 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5661 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5663 * aix-thread.c (gdbcmd.h): Include.
5664 (DEBUG, DBG, DBG2, dbg): Eliminate.
5665 (debug_aix_thread): New static global.
5666 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5667 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5668 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5669 invocations to DBG and DBG2 macros to test against
5670 ``debug_aix_thread'' and call fprintf_unfiltered().
5671 (_initialize_aix_thread): Add new command "set debug aix-thread".
5673 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5675 From Gerhard Tonn <TON@de.ibm.com>:
5676 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5677 instead of supply_register.
5679 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5681 * dwarf2cfi.c: Include "gdb_assert.h".
5682 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5684 (update_context): Do not use __func__. Add missing ``break''.
5685 (update_context): Do not use __func__.
5687 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5689 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5690 and its setting. Set gdbarch instruction printing functions
5691 directly. For non-rs6000 case use new function
5692 gdb_print_insn_powerpc.
5693 (gdb_print_insn_powerpc): New function.
5695 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5697 * NEWS: Mention that the d30v has been marked obsolete.
5698 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5699 * configure.tgt: Mark d30v-*-* as obsolete.
5700 * d30v-tdep.c: Mark file as obsolete.
5701 * config/d30v/d30v.mt: Ditto.
5702 * config/d30v/tm-d30v.h: Ditto.
5704 2002-07-13 Aidan Skinner <aidan@velvet.net>
5706 * ada-tasks.c (add_task_entry): replace calls to
5707 malloc() with xmalloc
5708 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5710 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5711 ada_finish_decode_line_1, all_sals_for_line
5712 ada_breakpoint_rewrite): replace calls to free() with xfree()
5714 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5716 From Nicholas Duffek (with minor changes by Martin Hunt,
5717 Louis Hamilton, and Kevin Buettner):
5718 * aix-thread.c: New file.
5720 2002-07-12 Petr Sorfa <petrs@caldera.com>
5722 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5723 complaint for invalid attribute class or form.
5724 (read_func_scope): DW_AT_frame_base
5725 better handling of DW_AT_block*.
5726 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5727 better handling of DW_AT_block*.
5728 (read_common_block): DW_AT_location
5729 better handling of DW_AT_block*.
5730 (read_partial_die): DW_AT_location better handling
5732 (new_symbol): DW_AT_external better handling of
5733 DW_AT_block*. Proper initialization of variable
5735 (attr_form_is_block): New function that returns true
5736 if the attribute's form is of DW_FORM_block*.
5738 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5740 * valops.c (find_method_list): Remove comment about
5741 removed STATIC_MEMFUNCP argument.
5742 (value_find_oload_method_list): Likewise.
5744 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5746 From Nicholas Duffek:
5747 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5748 target_new_objfile_hook.
5750 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5752 From Nicholas Duffek:
5753 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5756 2002-07-12 Andrew Cagney <cagney@redhat.com>
5758 * MAINTAINERS: Mention --enable-sim-build-warnings.
5759 (m68hc11-elf): Disable sim build warnings.
5760 (m32r-elf): Mark as broken obsolete candidate.
5761 (x86_64-linux-gnu): Mark as buildable with -Werror.
5762 (arm-elf): Change -w to ``,'' which enables warnings but not
5765 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5767 * bcache.h: Update copyright.
5768 (struct bstring, struct bcache): Move definition to "bcache.c".
5769 Replaced by opaque declaration.
5770 (bcache_xfree): Replace free_bcache.
5771 (bcache_xmalloc, bcache_memory_used): Declare.
5773 * bcache.c: Update copyright.
5774 (struct bstring, struct bcache): Moved to here from "bcache.h".
5776 (bcache_xmalloc, bcache_memory_used): New functions.
5777 (bcache_xfree): Replace function free_bcache.
5779 * Makefile.in (objfiles.o): Add $(bcache_h).
5780 (objfiles_h): Remove $(bcache_h).
5781 (symfile.o): Add $(bcache_h).
5783 * symmisc.c: Update copyright.
5784 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5785 (print_objfile_statistics): Use bcache_memory_used.
5787 * symfile.c: Include "bcache.h".
5788 (reread_symbols): Use bcache_xfree.
5789 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5790 (add_psymbol_to_list): Pass psymbol_cache by value.
5791 (add_psymbol_with_dem_name_to_list): Ditto.
5793 * objfiles.h: Update copyright.
5794 (struct bcache): Declare opaque. Do not include "bcache.h".
5795 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5797 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5799 * objfiles.c: Include "bcache.h". Update copyright.
5800 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5802 (free_objfile): Use bcache_xfree.
5804 2002-07-11 Grace Sainsbury <graces@redhat.com>
5806 * monitor.c (monitor_fetch_register): Make name a constant.
5807 (monitor_store_register): Same.
5809 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5811 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5812 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5813 (finish_block) For non-function blocks, hash the symbol table. For
5814 function blocks, mark the symbol table as unhashed.
5815 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5816 (msymbol_hash_iw): Likewise.
5817 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5819 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5820 (lookup_minimal_symbol): Likewise for both.
5821 * symtab.h (struct block): Add `hashtable' flag. Comment the
5823 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5824 (ALL_BLOCK_SYMBOLS): Update.
5825 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5826 (struct symbol): Add `hash_next' pointer.
5827 * symtab.c (lookup_block_symbol): Search using the hash table when
5829 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5830 (search_symbols, find_addr_symbol): Likewise.
5832 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5833 (read_dst_symtab): Likewise.
5834 * jv-lang.c (get_java_class_symtab): Likewise.
5835 * mdebugread.c: Include "gdb_assert.h".
5836 (shrink_block): Assert that the block being modified is not hashed.
5837 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5838 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5840 (dump_symtab): Recognize hashed blocks.
5841 * printcmd.c (print_frame_args): Assert that function blocks do not
5842 have hashed symbol tables.
5843 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5844 (fill_in_ada_prototype, debug_print_block): Likewise.
5845 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5847 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5849 * stack.c (print_frame): Use result of frame_address_in_block()
5850 instead of fi->pc when evaluating symbols.
5851 (backtrace_command_1): Ditto.
5853 2002-07-11 Andrew Cagney <cagney@redhat.com>
5855 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5858 * arm-tdep.c (arm_register_name): Make return type constant.
5860 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5862 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5864 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5865 * s390-tdep.c (s390_fp_regnum): Ditto.
5866 (s390_read_fp): Ditto.
5867 (s390_pop_frame): Ditto.
5868 (_initialize_s390_tdep): Ditto.
5869 * remote.c (get_remote_state): Ditto.
5870 * procfs.c (mappingflags): Ditto.
5871 * memattr.c (_initialize_mem): Ditto.
5872 * mcore-tdep.c (mcore_pop_frame): Ditto.
5873 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5874 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5875 * language.c (set_case_str): Ditto.
5876 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5877 * frv-tdep.c (new_variant): Ditto.
5878 (frv_stopped_data_address): Ditto.
5879 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5880 (context_alloc): Ditto.
5881 (frame_state_alloc): Ditto.
5882 (unwind_tmp_obstack_init): Ditto.
5883 (unwind_tmp_obstack_free): Ditto.
5884 (cfi_read_fp): Ditto.
5885 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5886 (cris_pop_frame): Ditto.
5887 * c-lang.c (scanning_macro_expansion): Ditto.
5888 (finished_macro_expansion): Ditto.
5889 (c_preprocess_and_parse): Ditto.
5890 * gdbarch.sh: Ditto.
5891 * gdbarch.h, gdbarch.c: Regenerate.
5892 * config/mn10200/tm-mn10200.h: Adjust indentation.
5893 * target.c: Adjust indentation.
5894 * symtab.h: Adjust indentation.
5895 * stabsread.h: Adjust indentation.
5896 * remote-es.c: Adjust indentation.
5897 * os9kread.c: Adjust indentation.
5899 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5901 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5902 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5904 2002-07-10 Grace Sainsbury <graces@redhat.com>
5906 * NEWS: Mention m68k, mcore multi-arching.
5907 * MAINTAINERS: Change status of m68k, mcore to reflect
5910 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5912 * valops.c (find_overload_match): Free oload_syms.
5914 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5916 Define HAVE_SYS_PROC_H if sys/proc.h exists
5917 * configure.in: Add check for sys/proc.h
5918 * config.in: Regenerate.
5919 * configure: Regenerate.
5921 2002-07-09 Grace Sainsbury <graces@redhat.com>
5923 * config/m68k/tm-m68k.h: Remove macros wrapped in
5924 #if !GDB_MULTI_ARCH.
5926 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5928 * config.in, configure: Regenerate.
5930 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5932 * dwarf2cfi.c: Include "gcore.h".
5933 (execute_stack_op): Fix implementation of the
5934 DW_OP_deref and DW_OP_deref_size operators by letting do their
5935 lookup in the target.
5937 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5939 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5940 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5943 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5945 Fix PR gdb/595, gdb/602
5946 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5947 Don't call value_cast, just read the vtable pointer; update comments
5950 2002-07-05 Grace Sainsbury <graces@redhat.com>
5952 * config/mcore/tm-mcore.h: Remove file.
5953 * config/mcore/mcore.mt: Remove definition of TM_FILE
5954 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5956 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5958 * i386bsd-tdep.c: Include "gdb_string.h".
5960 2002-07-04 Grace Sainsbury <graces@redhat.com>
5962 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5963 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5965 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5966 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5967 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5968 (RETVAL_REGNUM): Move macros from tm-mcore.h
5969 (mcore_reg_struct_has_addr): New function.
5970 (mcore_gdbarch_init): Added initializations for the macros removed
5973 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5975 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5976 traditonal string branding within the ELF header.
5978 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5980 * symtab.c (remove_params): New function.
5981 (make_symbol_overload_list): Use it instead of cplus_demangle.
5982 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5984 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5986 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5988 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5990 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5991 and tdep->sigtramp_end.
5992 * i386obsd-nat.c: New file.
5993 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5995 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5996 Don't call get_current_frame().
5998 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6000 * i386-nat.c (child_post_startup_inferior): New function
6001 calling i386_cleanup_dregs if
6002 I386_USE_GENERIC_WATCHPOINTS is defined.
6003 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6004 conditional to acknowledge that i386-nat.c has its
6005 own child_post_startup_inferior function.
6007 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6009 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6010 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6011 instead of MAX_REGISTER_RAW_SIZE.
6012 (i386_extract_return_value, i386_extract_struct_value_address):
6013 Convert to use regcache.
6014 (i386_gdbarch_init): Set max_register_raw_size and
6015 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6016 Set extract_return_value and extract_struct_value_address instead
6017 of their deprecated variants.
6019 Convert i386 target to generic dummy frames.
6020 * i386-tdep.c: Include "symfile.h".
6021 (i386_frameless_signal_p): Consider a function to be frameless if
6022 the pc points at the first instruction of the function.
6023 (i386_frame_chain): Handle (generic) call dummies.
6024 (i386_frame_saved_pc): Likewise.
6025 (i386_frame_init_saved_regs): Remove code dealing with call
6026 dummies on the stack.
6027 (i386_push_dummy_frame): Removed.
6028 (i386_call_dummy_words): Removed.
6029 (i386_fix_call_dummy): Removed.
6030 (i386_push_return_address): New function.
6031 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6032 parameter, and don't call get_current_frame.
6033 (i386_pop_frame): New function.
6034 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6035 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6036 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6037 call_dummy_length to 0, set call_dummy_words to NULL, set
6038 sizeof_call_dummy_words to 0, set fix_call_dummy to
6039 generic_fix_call_dummy, set pc_in_call_dummy to
6040 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6041 generic_push_dummy_frame, set push_return_address to
6042 i386_push_return_address and set frame_chain_valid to
6043 generic_file_frame_chain_valid.
6045 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6047 * gdbarch.sh (struct regcache): Add opaque declaration.
6048 (EXTRACT_RETURN_VALUE): New architecture method.
6049 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6050 * gdbarch.h, gdbarch.c: Regenerate.
6051 * arch-utils.c (legacy_extract_return_value): New function.
6052 * arch-utils.h (legacy_extract_return_value): Declare.
6053 * values.c (value_being_returned): Re-enable code handling
6054 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6055 deprecated_grub_regcache_for_registers call to block handling
6056 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6057 (EXTRACT_RETURN_VALUE): Do not define.
6059 2002-07-03 Grace Sainsbury <graces@redhat.com>
6061 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6062 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6063 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6064 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6065 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6066 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6067 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6068 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6069 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6070 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6071 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6072 argument so the function fits the prototype in the architecture
6074 (mcore_pop_frame): Remove argument so the function fits the
6075 prototype. Use get_current_frame instead of the argument.
6076 (mcore_push_arguments): Change type of struct_return so the
6077 function can be used in the architecture vector.
6078 (mcore_store_struct_return): Add.
6079 (mcore_frame_init_saved_regs): Add.
6080 (mcore_gdbarch_init): Add function calls to replace the macros
6081 removed from tm-mcore.h
6083 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6085 * infcmd.c (print_return_value): Remove compatibility code calling
6086 deprecated_grub_regcache_for_registers.
6088 * values.c: Include "regcache.h".
6089 (value_being_returned): Update. Use
6090 deprecated_grub_regcache_for_registers to extract the register
6092 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6093 ``struct regcache''.
6094 * Makefile.in (values.o): Add dependency on $(regcache_h).
6096 * inferior.h (run_stack_dummy): Change type of second parameter to
6097 a ``struct regcache''.
6098 * valops.c (hand_function_call): Change type of retbuf to ``struct
6099 regcache''. Allocate using regcache_xmalloc, clean using
6100 make_cleanup_regcache_xfree.
6101 * infcmd.c (run_stack_dummy): Update. Use
6102 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6104 * regcache.c (do_regcache_xfree): New function.
6105 (make_cleanup_regcache_xfree): New function.
6106 * regcache.h (make_cleanup_regcache_xfree): Declare.
6108 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6110 * event-top.c (command_line_handler): Don't read past
6111 beginning of buffer.
6113 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6115 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6117 (varobj_create): Store frame_id for root.
6118 (varobj_gen_name): Use xasprintf.
6119 (varobj_update): Save and restore frame using get_frame_id() and
6121 (create_child): Use xasprintf.
6122 (new_root_variable): Initialize frame_id.
6123 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6124 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6125 to prevent memory leak.
6127 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6129 * valops.c (hand_function_call): Move declaration of retbuf to
6130 start of function, allocate using malloc, add a cleanup but before
6131 the inf_status cleanup, cleanup the buffer. Rename local variable
6132 old_chain to inf_status_cleanup.
6134 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6136 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6138 * cli/cli-decode.c (cmd_func_p): New function.
6139 (cmd_func): New function.
6141 * command.h: Add cmd_func() and cmd_func_p().
6143 2002-07-03 Grace Sainsbury <graces@redhat.com>
6145 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6146 (REGISTER_SIZE): Remove.
6147 (MAX_REGISTER_RAW_SIZE): Remove.
6148 (REGISTER_VIRTUAL_TYPE): Remove.
6149 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6150 (REGISTER_NAME): Remove.
6151 (USE_GENERIC_DUMMY_FRAMES): Remove.
6152 (CALL_DUMMY): Remove.
6153 (CALL_DUMMY_START_OFFSET): Remove.
6154 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6155 (CALL_DUMMY_LOCATION): Remove.
6156 (FIX_CALL_DUMMY): Remove.
6157 (CALL_DUMMY_ADDRESS): Remove.
6158 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6159 (SAVE_DUMMY_FRAME_TOS): Remove.
6160 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6161 (mcore_register_virtual_type): New function.
6162 (mcore_register_byte): New function.
6163 (mcore_register_size): New function.
6164 (mcore_register_name): New function.
6165 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6166 macros removed from tm-mcore.h.
6167 (mcore_dump_tdep): Add.
6168 (_initialize_mcore_tdep): Add gdbarch_register call.
6170 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6172 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6173 frameless_look_for_prologue, such that we actually call this
6176 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6178 * frame.h (frame_address_in_block): New function.
6180 * blockframe.c (frame_address_in_block): New function extracted
6181 from get_frame_block().
6182 (get_frame_block): Use frame_address_in_block().
6183 (block_innermost_frame): Use frame_address_in_block() to match
6184 the frame pc address against the block boundaries rather than
6185 the frame pc directly. This prevents a failure when a frame pc
6186 is actually a return-address pointing immediately after the end
6189 2002-07-02 Grace Sainsbury <graces@redhat.com>
6191 * MAINTAINERS: Add self under write after approval.
6193 2002-07-02 Grace Sainsbury <graces@redhat.com>
6195 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6196 used in architecture vector. The default is
6197 m68k_local_breakpoint_from_pc.
6198 (m68k_local_breakpoint_from_pc): Add.
6199 (enum): Add register numbers from tm-m68k.h.
6200 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6202 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6203 GDB_MULTI_ARCH_PARTIAL.
6204 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6205 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6207 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6208 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6209 to enum in m68k-tdep.c
6211 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6213 * solib-osf.c (open_map): Compute the list of shared libraries
6214 loaded by the inferior, rather than the list of libraries loaded
6215 by GDB itself. Otherwise, GDB ends up reading the symbols from
6216 the wrong shared libraries...
6218 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6220 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6221 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6223 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6225 (FRAMELESS_SIGNAL): Remove function.
6226 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6227 i386_linux_saved_pc_after_call): Removed.
6228 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6229 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6230 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6232 * i386-tdep.c (i386_frameless_signal_p): New function.
6233 (i386_frame_chain): Deal with frameless signals.
6234 (i386_sigtramp_saved_sp): New function.
6235 (i386_frame_saved_pc): Deal with frameless signals.
6236 (i386_saved_pc_after_call): Make sure the correct value is
6237 returned just after entry into a sigtramp.
6238 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6239 i386fbsd4_sc_sp_offset): New variables.
6240 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6241 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6242 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6243 similiar to what we already did for sc_pc_offset.
6244 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6247 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6249 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6251 * config/i386/tm-x86-64linux.h: New.
6252 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6254 * config/i386/nm-x86-64.h: Rename to ...
6255 * config/i386/nm-x86-64linux.h: ... this one.
6256 * config/i386/x86-64linux.mh: Reflect the above change.
6258 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6260 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6261 with sigcontext_addr. Add sc_sp_offset.
6262 (i386bsd_sigtramp_saved_pc): Remove prototype.
6263 (i386bsd_sicontext_addr): Add prototype.
6264 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6265 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6266 (i386_svr4_sigtramp_saved_pc): Removed.
6267 (i386_svr4_sigcontext_addr): New function.
6268 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6269 Initialize tdep->sigcontext_addr instead. Initialize
6270 tdep->sc_pc_offset and tdep->sc_sp_offset.
6271 (i386_gdbarch_init): Likewise.
6272 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6274 (i386bsd_sigtramp_saved_pc): Remove function.
6275 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6276 Initialize tdep->sigcontext_addr instead. Initialize
6278 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6279 of tdep->sigtramp_saved_pc.
6280 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6281 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6284 * i386-tdep.c (i386_frameless_function_invocation,
6285 i386_frame_num_args, i386_frame_init_saved_regs,
6286 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6287 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6288 i386_extract_return_value, i386_store_return_value,
6289 i386_extract_struct_value_address, i386_register_virtual_type,
6290 i386_register_convertible, i386_register_convert_to_virtual,
6291 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6292 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6295 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6297 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6299 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6300 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6301 this macro. Include "value.h".
6303 2002-06-30 Aidan Skinner <aidan@velvet.net>
6305 * ada-exp.tab.c: remove as it's a generated file
6306 * ada-lex.c: remove as it's a generated file
6308 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6310 * config/i386/tm-i386.h (struct frame_info, struct
6311 frame_saved_regs, struct value, struct type): Remove forward
6314 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6315 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6316 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6317 (FILL_FPXREGSET): Define.
6319 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6321 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6322 i[3456]86-*-netbsd* case.
6323 * config/i386/tm-obsd.h: Removed.
6324 * config/i386/obsd.mt: Removed.
6325 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6327 (MH_CFLAGS): Add -DYYDEBUG=0.
6329 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6330 i386nbsd_sc_pc_offset on OpenBSD too.
6332 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6333 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6334 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6336 * i386bsd-tdep.c: Include "arch-utils.h".
6337 (i386bsd_aout_in_solib_call_trampoline): New function.
6338 (i386bsd_init_abi): Set in_solib_call_trampoline to
6339 i386bsd_aout_in_solib_call_trampoline.
6340 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6341 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6343 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6345 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6346 (struct obstack, struct bcache): Add opaque declarations.
6347 * Makefile.in (macrotab_h): Update
6349 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6351 * blockframe.c (generic_find_dummy_frame): Change return type to
6352 ``struct regcache''.
6353 (struct dummy_frame): Replace field ``registers'' with regcache, a
6354 struct regcache object.
6355 (generic_find_dummy_frame): Update.
6356 (generic_push_dummy_frame): Update. Use regcache_xfree,
6357 regcache_xmalloc and regcache_cpy.
6358 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6360 (deprecated_generic_find_dummy_frame): Update.
6361 (generic_read_register_dummy): Update. Use
6362 regcache_read_as_address.
6363 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6364 (generic_get_saved_register): Update. Use regcache_read.
6366 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6368 * Makefile.in (objfiles_h): Add $(bcache_h).
6369 * objfiles.h: Include "bcache.h".
6371 * Makefile.in (symtab_h): Remove $(bcache_h).
6372 * symtab.h: Do not include "bcache.h".
6374 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6376 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6377 generic_func_frame_chain_valid.
6379 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6381 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6382 * config/i386/tm-fbsd.h: Likewise.
6384 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6386 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6387 generic_unwind_get_saved_register.
6389 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6391 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6392 * regcache.c (supply_register): Add missing argument to
6393 register_buffer call.
6395 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6397 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6398 Solaris /bin/grep does not not like it. From Peter Schauer.
6400 2002-06-26 Tom Tromey <tromey@redhat.com>
6402 * command.h (add_setshow_cmd): Declare.
6403 (add_setshow_cmd_full): Declare.
6404 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6405 returns void. Use add_setshow_cmd_full.
6406 (add_setshow_cmd_full): New function.
6407 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6408 (add_setshow_boolean_cmd): Likewise.
6410 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6412 * config/vax/tm-vax.h: Protect from multiple inclusion.
6413 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6414 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6415 * config/vax/tm-vaxbsd.h: ...here. New file.
6416 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6418 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6420 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6421 (BELIEVE_PCC_PROMOTION): Remove.
6422 (AP_REGNUM): Move to...
6423 * config/vax/nm-vax.h: ...here.
6424 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6425 (vax_breakpoint_from_pc): New function.
6426 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6427 and gdbarch_believe_pcc_promotion.
6429 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6431 * Makefile.in (vax_tdep_h): Define.
6432 (vax-tdep.o): Use $(vax_tdep_h).
6433 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6434 (vax_dump_tdep): New function.
6435 (_initialize_vax_tdep): Register vax_dump_tdep.
6436 * vax-tdep.h: Include osabi.h.
6437 (struct gdbarch_tdep): New.
6439 2002-06-26 Andrew Cagney <cagney@redhat.com>
6441 * frame.h (deprecated_generic_find_dummy_frame): Rename
6442 generic_find_dummy_frame.
6443 * blockframe.c (generic_find_dummy_frame): Make static.
6444 (deprecated_generic_find_dummy_frame): New function.
6445 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6446 generic_find_dummy_frame with deprecated_find_dummy_frame.
6447 (sh64_nofp_frame_init_saved_regs): Ditto.
6448 (sh_fp_frame_init_saved_regs): Ditto.
6449 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6450 (s390_frame_chain): Ditto.
6451 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6453 2002-06-26 Grace Sainsbury <graces@redhat.com>
6455 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6456 gdbarch vector are at the top.
6458 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6459 (FRAME_ARGS_ADDRESS): Remove.
6460 (FRAME_LOCALS_ADDRESS): Remove.
6461 (FRAME_NUM_ARGS): Remove.
6462 (FRAME_ARGS_SKIP): Remove.
6463 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6464 (m68k_gdbarch_init): Add gdbarch initializations for macros
6465 undefined in tm-m68k.h
6467 2002-06-26 Grace Sainsbury <graces@redhat.com>
6469 * monitor.h: Add the function regname to monitor_ops
6470 structure. This way NUM_REGS does not have to be a constant.
6471 * monitor.c (monitor_fetch_register): Added support for regname
6472 function. The function is called if the array regnames is NULL.
6473 (monitor_store_register): Same.
6474 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6476 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6477 cpu32bug_cmds.regname to point to new function.
6478 * abug-rom.c (abug_regname): Same as above.
6479 (init_abug_cmds): Same.
6480 * dbug-rom.c (dbug_regname): Same as above.
6481 (init_dbug_cmds): Same.
6482 * remote-est.c (est_regname): Same.
6483 (init_est_cmds): Same.
6484 * rom68k-rom.c (rom68k_regname): Same.
6485 (init_rom68k_cmds): Same.
6487 2002-06-25 Tom Tromey <tromey@redhat.com>
6489 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6491 2002-06-25 Andrew Cagney <cagney@redhat.com>
6493 * infrun.c (stop_registers): Change variable's type to ``struct
6495 (xmalloc_inferior_status): Delete function.
6496 (free_inferior_status): Delete function.
6497 (normal_stop): Use regcache_cpy.
6498 (struct inferior_status): Change type of fields ``stop_registers''
6499 and ``registers'' to ``struct regcache''.
6500 (write_inferior_status_register): Use regcache_write.
6501 (save_inferior_status): Instead of calling
6502 xmalloc_inferior_status, allocate the inf_status buffer directly.
6503 Use regcache_dup_no_passthrough and regcache_dup to save the
6505 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6506 Replace the stop_registers regcache instead of overriding it. Use
6507 regcache_xfree. Instead of calling free_inferior_status, xfree
6508 the buffer directly.
6509 (discard_inferior_status): Use regcache_xfree. Instead of calling
6510 free_inferior_status, xfree the buffer directly.
6511 (build_infrun): Use regcache_xmalloc.
6512 (_initialize_infrun): Delete redundant call to build_infrun.
6514 * Makefile.in (infcmd.o): Add $(regcache_h).
6516 * infcmd.c: Include "regcache.h".
6517 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6518 obtain the address of `stop_registers' register buffer.
6519 (print_return_value): Ditto.
6521 * inferior.h (struct regcache): Add opaque declaration.
6522 (stop_registers): Change variable's declared type to ``struct
6525 2002-06-24 Tom Tromey <tromey@redhat.com>
6527 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6528 * target.c (initialize_targets): Fixed typo in
6529 trust-readonly-sections `show' documentation.
6531 * main.c: Marked all strings with _().
6533 2002-06-24 Don Howard <dhoward@redhat.com>
6535 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6536 that means max CORE_ADDR+1.
6537 (lookup_mem_region): Ditto.
6538 (mem_info_command): Ditto.
6540 2002-06-24 Grace Sainsbury <graces@redhat.com>
6542 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6543 (REGISTER_BYTES_OK): Remove.
6544 (REGISTER_BYTES): Remove.
6545 (STORE_STRUCT_RETURN): Remove.
6546 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6547 (STORE_RETURN_VALUE): Remove.
6548 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6549 (FRAME_CHAIN): Remove.
6550 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6551 (FRAME_SAVED_PC): Remove.
6552 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6553 (m68k_store_struct_return): Add.
6554 (m68k_deprecated_extract_return_value): Add.
6555 (m68k_deprecated_extract_struct_value_address): Add.
6556 (m68k_store_return_value): Add.
6557 (m68k_frame_chain): Add.
6558 (m68k_frameless_function_invocation): Add.
6559 (m68k_frame_saved_pc): Add.
6560 (m68k_gdbarch_init): added set_gdbarch calls for new
6561 functions and deleted macros.
6563 2002-06-23 Tom Tromey <tromey@redhat.com>
6565 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6566 (ALLDEPFILES): Likewise.
6567 (udiheaders): Removed.
6568 (udip2soc.o): Likewise.
6569 (udi2go32.o): Likewise.
6571 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6573 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6575 * infrun.c (_initialize_infrun): Delete unnecessary call to
6578 * regcache.h: Update comments describing the regcache_cpy family
6580 (regcache_save, regcache_restore): Delete declaration.
6581 (regcache_save_no_passthrough): Delete declaration.
6582 (regcache_restore_no_passthrough): Delete declaration.
6583 * regcache.c (regcache_save): Delete function.
6584 (regcache_save_no_passthrough): Delete function.
6585 (regcache_restore): Delete function.
6586 (regcache_restore_no_passthrough): Delete function.
6588 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6590 * config/m68k/tm-m68k.h: Fix typo.
6591 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6592 (m68k_frame_init_saved_regs): Declare.
6594 2002-06-21 Jim Blandy <jimb@redhat.com>
6596 Remove some vestiges of Harris 88k support.
6597 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6598 register numbering quirk.
6599 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6600 odd symbols occurring in Harris 88k ELF targets.
6602 2002-06-21 Tom Tromey <tromey@redhat.com>
6604 * gdb_locale.h: New file.
6605 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6606 (defs_h): Added gdb_locale.h.
6607 * configure, config.in: Rebuilt.
6608 * configure.in (PACKAGE): Define.
6609 * defs.h: Include gdb_locale.h.
6610 * main.c (captured_main): Call setlocale, bindtextdomain,
6613 2002-06-21 Dave Brolley <brolley@redhat.com>
6615 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6616 * config/frv/frv.mt: New file.
6617 * config/frv/tm-frv.h: New file.
6618 * configure.tgt: Support frv-*-*.
6619 * Makefile.in (frv-tdep.o): New target.
6620 * frv-tdep.c: New file.
6621 * NEWS: Mention frv.
6623 2002-06-21 Dave Brolley <brolley@redhat.com>
6625 * MAINTAINERS: Add self to "Write After Approval" list.
6627 2002-06-21 Grace Sainsbury <graces@redhat.com>
6629 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6630 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6631 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6632 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6633 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6635 * m68k-tdep.c: Include arch-utils.h
6636 (m68k_register_raw_size): Add.
6637 (m68k_register_virtual_size): Add.
6638 (m68k_register_virtual_type): Add.
6639 (m68k_register_name): Add.
6640 (m68k_stack_align): Add.
6641 (m68k_register_byte): Add.
6642 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6645 2002-06-21 Grace Sainsbury <graces@redhat.com>
6647 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6648 m68k_find_saved_regs.
6649 (m68k_pop_frame): Removed saved_regs structure, and replaced
6650 references to it with frame->saved_regs.
6651 (m68k_gdbarch_init): Added function calls to initialize the
6653 (m68k_fix_call_dummy): Add.
6654 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6655 (CALL_DUMMY): Remove.
6656 (CALL_DUMMY_LENGTH): Remove.
6657 (CALL_DUMMY_START_OFFSET): Remove.
6658 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6659 (FIX_CALL_DUMMY): Remove.
6660 (PUSH_DUMMY_FRAME): Remove.
6661 (POP_FRAME): Remove.
6663 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6665 * parse.c (parse_fprintf): New function used to avoid calls to
6666 fprintf in bison parser generated debug code.
6667 * parser-defs.h: Declaration of new parse_fprintf function.
6668 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6669 Set YYDEBUG to 1 by default.
6670 Set YYFPRINTF as parse_fprintf.
6672 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6674 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6676 (pointer_encoding, enum ptr_encoding): New.
6677 (execute_cfa_program): Take care about pointer encoding.
6678 (dwarf2_build_frame_info): Only call parse_frame_info for
6679 .debug_frame and .eh_frame.
6680 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6681 fixed augmentation handling, added relative addressing,
6682 ignore duplicate FDEs. Added comments.
6683 * dwarf2cfi.c: Reindented.
6685 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6687 * event-top.c (command_handler): Don't use space_at_cmd_start
6688 unless there is sbrk() on the host. Assign time and space data
6689 to union fields of the appropriate length.
6691 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6693 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6694 x86_64_register_name. Return type changed to 'const char *'.
6695 (x86_64_register_name2nr): Rename to x86_64_register_number.
6696 (x86_64_gdbarch_init): Update to reflect the change.
6697 * x86-64-tdep.h: Ditto.
6698 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6699 (supply_fpregset): Ditto.
6701 2002-06-19 Andrew Cagney <cagney@redhat.com>
6703 * regcache.h: Update copyright.
6704 (struct regcache, struct gdbarch): Add opaque declarations.
6705 (current_regcache): Declare global variable.
6706 (regcache_read, regcache_write): Add gdbarch parameter.
6707 (regcache_save, regcache_save_no_passthrough)
6708 (regcache_restore, regcache_restore_no_passthrough)
6709 (regcache_dup, regcache_dup_no_passthrough)
6710 (regcache_cpy, regcache_cpy_no_passthrough)
6711 (deprecated_grub_regcache_for_registers)
6712 (deprecated_grub_regcache_for_register_valid)
6713 (regcache_valid_p): Add function declarations.
6715 * regcache.c: Update copyright.
6716 (regcache_descr_handle): New global variable.
6717 (struct regcache_descr): Define.
6718 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6719 (regcache_descr, xfree_regcache_descr): New functions.
6720 (struct regcache): Define.
6721 (regcache_xmalloc, regcache_xfree): New functions.
6722 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6723 (regcache_dup, regcache_dup_no_passthrough): New functions.
6724 (regcache_valid_p, regcache_read_as_address): New functions.
6725 (deprecated_grub_regcache_for_registers): New function.
6726 (deprecated_grub_regcache_for_register_valid): New function.
6727 (current_regcache): New global variable.
6728 (register_buffer): Add regcache parameter. Update calls.
6729 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6730 (read_register_gen, write_register_gen): Update register_buffer
6731 call. Test for legacy_p instead of gdbarch_register_read_p or
6732 gdbarch_register_write_p.
6733 (regcache_collect): Update register_buffer call.
6734 (build_regcache): Rewrite. Use deprecated grub functions.
6735 (regcache_save, regcache_save_no_passthrough): New functions.
6736 (regcache_restore, regcache_restore_no_passthrough): New
6738 (_initialize_regcache): Create the regcache_data_handle. Swap
6739 current_regcache global variable.
6741 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6742 parameter to regcache_read and regcache_write calls.
6743 (sh4_register_read): Ditto.
6744 (sh64_pseudo_register_read): Ditto.
6745 (sh64_register_read): Ditto.
6746 (sh_pseudo_register_write): Ditto.
6747 (sh4_register_write): Ditto.
6748 (sh64_pseudo_register_write): Ditto.
6749 (sh64_register_write): Ditto.
6751 * defs.h (XCALLOC): Define.
6753 2002-06-19 Grace Sainsbury <graces@redhat.com>
6755 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6756 * m68k-tdep.c (m68k_gdbarch_init): Added.
6757 (m68k_dump_tdep): Added.
6759 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6761 * ada-lang.c (fill_in_ada_prototype): Update comment.
6763 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6765 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6767 (mips_abi_string, mips_abi_strings): New.
6768 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6769 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6770 tdep->mips_abi_string. Honor mips_abi_string. Default to
6771 O32 if no ABI is found.
6772 (mips_dump_tdep): Use mips_abi_strings.
6773 (mips_abi_update): New function.
6774 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6775 ``set mips abi'' and ``show mips abi''. Check the size of
6778 2002-06-19 Andrew Cagney <cagney@redhat.com>
6780 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6783 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6785 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6786 current frame using only the first stack size adjustment. All
6787 subsequent size adjustments are not considered to be part of
6788 the "static" part of the current frame.
6789 Compute the address of the saved registers relative to the
6790 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6791 in use in this frame.
6793 2002-06-18 Don Howard <dhoward@redhat.com>
6795 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6796 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6797 suggesting this solution.
6799 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6801 * config/romp/xm-rtbsd.h: Delete file.
6802 * config/romp/rtbsd.mh: Delete file.
6804 2002-06-18 Keith Seitz <keiths@redhat.com>
6806 * breakpoint.c (condition_command): Post breakpoint_modify
6807 when a condition is added to an existing breakpoint.
6808 (commands_command): Likewise for commands.
6809 (set_ignore_count): Likewise for ignore counts.
6810 If no tty, do not simply return, still need to send event
6812 (ignore_command): Only print a newline if the command came
6814 Don't call breakpoints_changed, since this is now properly
6815 handled by set_ignore_count.
6817 2002-06-18 Andrew Cagney <cagney@redhat.com>
6819 * MAINTAINERS: Note that cris-elf target can be compiled with
6821 * cris-tdep.c (cris_register_name): Make return type constant.
6822 (cris_breakpoint_from_pc): Ditto.
6824 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6826 * frame.h (struct frame_info): Change type of context to
6829 2002-06-17 Andrew Cagney <cagney@redhat.com>
6831 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6833 * gdbarch.h, gdbarch.c: Regenerate.
6834 * config/mips/tm-mips.h (mips_register_name): Update.
6835 * i386-tdep.h (i386_register_name): Update.
6836 * mips-tdep.c (mips_register_name): Update
6837 * alpha-tdep.c (alpha_register_name): Update.
6838 * arch-utils.c (legacy_register_name): Update.
6839 * arch-utils.h (legacy_register_name): Update.
6840 * avr-tdep.c (avr_register_name): Update.
6841 * ia64-tdep.c (ia64_register_name): Update.
6842 * i386-tdep.c (i386_register_name): Update.
6843 * sparc-tdep.c (sparc32_register_name): Update.
6844 (sparc64_register_name): Update.
6845 (sparclite_register_name): Update.
6846 (sparclet_register_name): Update.
6847 * sh-tdep.c (sh_generic_register_name): Update.
6848 (sh_sh_register_name): Update.
6849 (sh_sh3_register_name): Update.
6850 (sh_sh3e_register_name): Update.
6851 (sh_sh_dsp_register_name): Update.
6852 (sh_sh3_dsp_register_name): Update.
6853 (sh_sh4_register_name): Update.
6854 (sh_sh64_register_name): Update.
6855 * s390-tdep.c (s390_register_name): Update.
6856 * rs6000-tdep.c (rs6000_register_name): Update.
6857 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6858 (ns32k_register_name_32382): Update.
6859 * d10v-tdep.c (d10v_ts2_register_name): Update.
6860 (d10v_ts3_register_name): Update.
6861 * xstormy16-tdep.c (xstormy16_register_name): Update.
6862 * vax-tdep.c (vax_register_name): Update.
6863 * v850-tdep.c (v850_register_name): Update.
6864 * m68hc11-tdep.c (m68hc11_register_name): Update.
6865 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6866 (am33_register_name): Update.
6868 2002-06-17 Grace Sainsbury <graces@redhat.com>
6870 * m68k-tdep.c: Reindented.
6872 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6874 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6875 list of predefined types.
6877 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6879 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6880 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6881 REGISTER_CONVERT_TO_RAW): Remove defines.
6882 (i386_register_virtual_type, i386_register_convertible,
6883 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6885 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6886 macros mentioned above.
6888 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6889 (i386lynx_saved_pc_after_call): Remove prototype.
6890 * i386ly-tdep.c: Include "i386-tdep.h".
6891 (i386lynx_saved_pc_after_call): Make static. Use
6892 read_memory_nobpt instead of read_memory. Use
6893 read_memory_unsigned_integer instead of read_memory_integer.
6894 (i386lynx_init_abi): New function.
6895 (i386lynx_coff_osabi_sniffer): New function.
6896 (_initialize_i386bsd_tdep): New function.
6898 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6899 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6900 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6901 (i386_fix_call_dummy): Remove prototype.
6902 * i386-tdep.c (i386_call_dummy_words): New variable.
6903 (i386_gdbarch_init): Adjust for removal of the
6904 macros mentioned above.
6906 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6908 * command.h (add_setshow_auto_boolean_cmd): Replace
6909 add_set_auto_boolean_cmd.
6910 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6911 add_set_auto_boolean_cmd.
6912 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6913 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6914 mask-address'' command.
6915 (show_mask_address): Add cmd parameter.
6916 * remote.c (add_packet_config_cmd): Update. Change type of
6917 set_func and show_func to cmd_sfunc_ftype.
6918 (_initialize_remote): Update `set remote Z-packet'
6919 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6920 (show_remote_protocol_e_packet_cmd): Ditto.
6921 (show_remote_protocol_E_packet_cmd): Ditto.
6922 (show_remote_protocol_P_packet_cmd): Ditto.
6923 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6924 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6925 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6926 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6927 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6928 (show_remote_protocol_Z_packet_cmd): Ditto.
6929 (show_remote_protocol_binary_download_cmd): Ditto.
6930 (show_remote_cmd): Pass NULL to all of above.
6932 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6934 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6935 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6936 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6937 POP_FRAME): Remove defines.
6938 (i386_push_arguments, i386_store_struct_return,
6939 i386_extract_return_value, i386_store_return_value,
6940 i386_extract_struct_value_address, i386_push_dummy_frame,
6941 i386_pop_frame): Renove prototypes.
6942 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6943 macros mentioned above.
6945 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6947 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6948 add_set_boolean_cmd.
6949 (add_setshow_cmd): New function.
6950 * command.h (add_setshow_boolean_cmd): Replace
6951 add_set_boolean_cmd.
6952 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6953 and ``set rdiromatzero''.
6954 * maint.c (_initialize_maint_cmds): Update commented out code.
6955 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6956 * target.c (initialize_targets): Update `set
6957 trust-readonly-sections'.
6958 * remote.c (_initialize_remote): Update `set remotebreak'.
6960 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6962 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6963 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6964 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6965 fit into multi-arch framework.
6966 (i386_breakpoint_from_pc): New function.
6967 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6970 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6971 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6972 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6973 (i386_frameless_function_invocation, i386_frame_num_args,
6974 i386_frame_init_saved_regs): Remove prototypes.
6975 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6976 macros mentioned above.
6978 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6980 * cli/cli-decode.c (set_cmd_cfunc): Update.
6981 (set_cmd_sfunc): Update.
6982 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6983 (set_cmd_sfunc, set_cmd_cfunc): Update.
6984 * cli/cli-decode.h: Update.
6986 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6988 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6989 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6991 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6993 * defs.h (auto_boolean): Declare enum.
6994 * command.h (cmd_auto_boolean): Delete enum.
6995 * mips-tdep.c (mask_address_var): Update.
6996 (mips_mask_address_p): Update.
6997 (show_mask_address): Update.
6998 * remote.c (struct packet_config): Update.
6999 (update_packet_config): Update.
7000 (show_packet_config_cmd): Update.
7001 (packet_ok): Update.
7002 (add_packet_config_cmd): Update.
7003 (_initialize_remote):
7004 * command.h: Update.
7005 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7006 (do_setshow_command): Update.
7007 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7008 * cli/cli-decode.h: Update.
7010 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7012 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7013 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7014 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7015 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7016 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7017 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7019 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7020 list of DJGPP COFF targets.
7022 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7023 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7024 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7025 (FP0_REGNUM): Remove define.
7026 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7027 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7028 (i386_register_virtual_size): Remove protoype.
7029 * i386-tdep.c (i386_register_virtual_size): Removed.
7030 (i386_extract_return_value, i386_store_return_value): Use
7031 FP0_REGNUM instead of NUM_FREGS to determine whether the
7032 floating-point registers are available.
7033 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7034 Adjust for removal of macros mentioned above.
7036 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7038 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7040 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7042 (supply_gregset, fill_gregset): Remove use of register keyword and
7043 remove declaration for regmap. Use I386_NUM_GREGS instead of
7044 NUM_REGS and NUM_FREGS.
7045 (FPREGSET_FSAVE_OFFSET): Remove.
7046 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7047 NUM_FREGS to determine whether the floating-point registers are
7050 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7051 gnu_store_registers): Replace usage of NUM_GREGS with
7054 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7055 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7056 usage of NUM_GREGS with I386_NUM_GREGS.
7058 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7060 * i386bsd-nat.c: Include "i386-tdep.h".
7061 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7064 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7065 and associated comment. They no longer make any sense, since we
7066 don't use this file anymore on Linux.
7068 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7069 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7070 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7071 elements in these arrays.
7072 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7075 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7077 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7078 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7080 2002-06-14 Andrew Cagney <cagney@redhat.com>
7082 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7083 EXTRACT_RETURN_VALUE.
7084 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7085 EXTRACT_STRUCT_VALUE_ADDRESS.
7086 * gdbarch.h, gdbarch.c: Regenerate.
7088 * values.c (value_being_returned): Handle
7089 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7090 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7092 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7093 * arm-tdep.c (arm_gdbarch_init): Update.
7094 * avr-tdep.c (avr_gdbarch_init): Update.
7095 * cris-tdep.c (cris_gdbarch_init): Update.
7096 * d10v-tdep.c (d10v_gdbarch_init): Update.
7097 * ia64-tdep.c (ia64_gdbarch_init): Update.
7098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7099 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7100 * s390-tdep.c (s390_gdbarch_init): Update.
7101 * sh-tdep.c (sh_gdbarch_init): Update.
7102 * s390-tdep.c (s390_gdbarch_init): Update.
7103 * sparc-tdep.c (sparc_gdbarch_init): Update.
7104 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7105 * v850-tdep.c (v850_gdbarch_init): Update.
7106 * vax-tdep.c (vax_gdbarch_init): Update.
7107 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7108 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7110 * config/arc/tm-arc.h: Update.
7111 * config/d30v/tm-d30v.h: Update.
7112 * config/fr30/tm-fr30.h: Update.
7113 * config/h8300/tm-h8300.h: Update.
7114 * config/h8500/tm-h8500.h: Update.
7115 * config/i386/tm-i386.h: Update.
7116 * config/i386/tm-ptx.h: Update.
7117 * config/i386/tm-symmetry.h: Update.
7118 * config/i960/tm-i960.h: Update.
7119 * config/m32r/tm-m32r.h: Update.
7120 * config/m68k/tm-delta68.h: Update.
7121 * config/m68k/tm-linux.h: Update.
7122 * config/m68k/tm-m68k.h: Update.
7123 * config/m88k/tm-m88k.h: Update.
7124 * config/mcore/tm-mcore.h: Update.
7125 * config/mips/tm-mips.h: Update.
7126 * config/mn10200/tm-mn10200.h: Update.
7127 * config/pa/tm-hppa.h: Update.
7128 * config/pa/tm-hppa64.h: Update.
7129 * config/sparc/tm-sp64.h: Update.
7130 * config/sparc/tm-sparc.h: Update.
7131 * config/sparc/tm-sparclet.h: Update.
7132 * config/z8k/tm-z8k.h: Update.
7134 2002-06-14 Andrew Cagney <cagney@redhat.com>
7136 * Makefile.in (i386_linux_tdep_h): Define.
7137 (i386_tdep_h, i387_tdep_h): Define.
7138 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7139 $(i386_tdep_h) and $(i387_tdep_h).
7140 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7142 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7144 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7145 Already covered by the default.
7147 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7148 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7149 (i386_gdbarch_init): Initialize long_double_format and long_double
7152 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7153 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7155 * config/i386/i386sol2.mh: ... here.
7156 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7157 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7158 (SIGCONTEXT_PC_OFFSET): Remove define.
7159 (IN_SIGTRAMP): Remove define.
7160 * i386-sol2-tdep.c: New file.
7162 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7163 * config/i386/tm-i386nw.h: Removed.
7165 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7166 USE_STRUCT_CONVENTION): Remove defines.
7167 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7168 (get_longjmp_target): Remove prototype.
7169 (IN_SIGTRAMP): Remove define.
7170 (i386bsd_in_sigtramp): Remove prototype.
7171 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7172 function. Update comment accordingly
7173 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7174 (FRAME_SAVED_PC): Remove define.
7175 (i386bsd_frame_saved_pc): Remove prototype.
7176 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7177 GET_LONGJMP_TARGET): Remove defines.
7178 (get_longjmp_target): Remove prototype.
7179 (IN_SIGTRAMP): Remove define.
7180 (i386bsd_in_sigtramp): Remove prototype.
7181 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7182 function. Update comment accordingly
7183 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7184 (FRAME_SAVED_PC): Remove define.
7185 (i386bsd_frame_saved_pc): Remove prototype.
7186 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7188 (USE_STRUCT_CONVENTION): Remove prototype.
7189 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7191 (_initialize_i386bsd_nat): Revise logic to determine some
7192 constants at compile time when compiling a native GDB. Warn if
7193 things don't match up with what we expect.
7194 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7196 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7197 to use date stored in `struct gdbarch_tdep'.
7198 (i386bsd_sigcontext_offset): Remove varaible.
7199 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7200 stored in `struct gdbarch_tdep'.
7201 (i386bsd_frame_saved_pc): Make static.
7202 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7203 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7204 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7205 i386fbsd4_sc_pc_offset): New variables.
7206 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7207 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7209 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7211 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7212 Modify the value of i386fbsd_sigtramp_start and
7213 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7214 i386fbsd_sigtramp_end.
7215 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7218 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7219 define to i386-linux-tdep.h.
7220 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7221 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7223 (i386_linux_register_name, i386_linux_register_byte,
7224 i386_linux_register_raw_size): Remove prototypes.
7225 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7226 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7227 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7228 TARGET_WRITE_PC): Remove defines.
7229 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7230 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7231 i386_linux_write_pc): Remove prototypes.
7232 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7233 (get_longjmp_target): Remove prototype.
7234 * i386-linux-tdep.h: New file.
7235 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7236 * i386-linux-tdep.c: Include "i386-tdep.h" and
7237 "i386-linux-tdep.h".
7238 (i386_linux_register_name, i386_linux_register_byte,
7239 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7240 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7242 (i386_linux_init_abi): New function.
7243 (_initialize_i386_linux_tdep): New function.
7245 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7246 (i386_saved_pc_after_call): Remove prototype.
7247 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7248 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7249 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7250 (i386_register_name, i386_stab_reg_to_regnum,
7251 i386_dwarf_reg_to_regnum): Remove prototypes.
7252 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7253 SIZEOF_SSE_REGS): Remove defines.
7254 (REGISTER_BYTES): Remove define.
7255 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7256 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7257 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7258 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7259 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7260 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7261 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7262 (get_longjmp_target): Remove prototype.
7263 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7264 (sigtramp_saved_pc): Remove define.
7265 (i386v4_sigtramp_saved_pc): Remove prototype.
7266 * config/i386/tm-go32.h (FRAME_CHAIN,
7267 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7268 (i386go32_frame_saved_pc): Remove prototype.
7269 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7270 (get_longjmp_target): Remove prototype.
7271 * i386-tdep.h: Include "osabi.h".
7272 (enum i386_abi): Removed.
7273 (enum struct_return): New enum.
7274 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7275 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7276 sc_pc_offset members.
7277 (i386_gdbarch_register_os_abi): Remove prototype.
7278 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7279 I386_SSE_NUM_REGS): New defines.
7280 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7281 I386_SSE_SIZEOF_REGS): New defines.
7282 (i386_register_name, i386_register_byte, i386_register_raw_size):
7284 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7285 (i386bsd_sigtramp_saved_pc): New prototype.
7286 * i386-tdep.c: Don't include "elf-bfd.h".
7287 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7288 i386_frame_chain, i386_saved_pc_after_call): Make static.
7289 (i386_frame_saved_pc): Rewrite to call architecture dependent
7290 function to deal with signal handlers. Make static.
7291 (i386go32_frame_saved_pc): Removed.
7292 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7294 (i386_get_longjmp_target): New function.
7295 (default_struct_convention, pcc_struct_convention,
7296 reg_struct_convention, valid_conventions, struct_convention): New
7298 (i386_use_struct_convention): New function.
7299 (i386v4_sigtramp_saved_pc): Renamed to
7300 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7301 (i386_pc_in_sigtramp): New function.
7302 (i386_abi_names): Removed.
7303 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7304 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7306 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7307 i386_gdbarch_register_os_abi): Removed.
7308 (struct i386_abi_handler): Removed.
7309 (i386_abi_handler_list): Removed.
7310 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7312 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7313 i386_nw_init_abi): New functions.
7314 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7315 Use set_gdbarch_xxx() calls instead of relying on macros for a
7317 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7318 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7319 Register the various architecture variants defined in this file.
7321 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7323 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7324 (struct main_type): Remove arg_types member. Update comments for
7326 (TYPE_ARG_TYPES): Remove.
7327 (TYPE_FN_FIELD_ARGS): Update.
7328 (smash_to_method_type): Update prototype.
7330 * c-typeprint.c (cp_type_print_method_args): Take method type
7331 instead of argument list. Use new argument layout. Simplify.
7332 (c_type_print_args): Use new argument layout. Simplify.
7333 (c_type_print_base): Update call to cp_type_print_method_args.
7334 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7335 argument; use die->type instead. Update call to
7336 smash_to_method_type.
7337 (read_structure_scope): Update call to dwarf2_add_member_fn.
7338 * gdbtypes.c (allocate_stub_method): Update comment.
7339 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7340 Use new argument layout.
7341 (check_stub_method): Use new argument layout. Don't count
7342 void as an argument.
7343 (print_arg_types): Update comments. Use new argument layout.
7344 (recursive_dump_type): Don't print arg_types member.
7345 * hpread.c (hpread_read_struct_type): Use new argument layout.
7346 (fixup_class_method_type): Likewise.
7347 (hpread_type_lookup): Likewise.
7348 * stabsread.c (read_type): Update calls to read_args and
7349 smash_to_method_type.
7350 (read_args): Use new argument layout. Simplify.
7351 * valops.c (typecmp): Use new argument layout. Update parameters
7352 and comments. Simplify.
7353 (hand_function_call): Use new argument layout.
7354 (search_struct_method): Update call to typecmp.
7355 (find_overload_match): Use new argument layout.
7357 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7359 * NEWS: Mention multithreaded debug support for gdbserver.
7361 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7363 * MAINTAINERS: Mention NEWS.
7365 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7367 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7368 (struct mips_objfile_private, compare_pdr_entries): New.
7369 (non_heuristic_proc_desc): Read the ".pdr" section if it
7372 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7374 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7375 (arm_debug): New static variable.
7376 (_initialize_arm_tdep): Add ``set debug arm'' command.
7378 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7380 * Makefile.in (sim_arm_h): Define.
7381 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7382 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7383 (arm_register_sim_regno): New function, map an internal REGNUM
7384 onto a simulator register number.
7385 (arm_gdbarch_init): Set register_sim_regno.
7387 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7389 * MAINTAINERS: Add self.
7391 2002-06-11 Jim Blandy <jimb@redhat.com>
7393 * source.c (source_info): Mention whether the symtab has
7394 information about preprocessor macros.
7396 Call the command `info macro', not `show macro'.
7397 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7399 (_initialize_macrocmd): Register `info_macro_command' in
7400 `infolist', not `showlist'.
7402 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7404 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7405 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7406 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7407 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7408 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7410 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7411 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7412 (_initialize_mips_tdep): Remove dead code.
7413 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7414 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7415 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7416 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7417 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7418 MIPS_LAST_FP_ARG_REGNUM): Remove.
7420 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7422 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7423 (unwind_tmp_obstack_free, parse_frame_info)
7424 (update_context, cfi_read_fp, cfi_write_fp)
7425 (cfi_frame_chain, cfi_init_extra_frame_info)
7426 (cfi_virtual_frame_pointer): Use the above function.
7427 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7429 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7431 * v850-tdep.c (v850_type_is_scalar): New function.
7432 (v850_use_struct_convention): Match current gcc implementation
7433 as close as possible.
7434 (v850_push_arguments): Fix stack_offset handling. Don't write
7435 struct_addr into register. This is done by v850_store_struct_return.
7436 (v850_extract_return_value): Care for structs.
7437 (v850_store_return_value): Ditto.
7438 (v850_store_struct_return): Actually write address.
7440 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7442 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7443 without debug information too.
7445 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7447 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7448 Make multi-arch pure.
7449 * gdbarch.h, gdbarch.c: Re-generate.
7450 * arm-tdep.c (arm_print_float_info): Update.
7451 * arch-utils.h (default_print_float_info): Update.
7452 * arch-utils.c (default_print_float_info): Update.
7453 * infcmd.c (float_info): Update call.
7455 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7457 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7458 the front of the initialize list.
7460 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7462 * infrun.c (struct inferior_status): Replace fields
7463 selected_frame_address and selected_level with field
7465 (save_inferior_status): Update. Use get_frame_id.
7466 (struct restore_selected_frame_args): Delete.
7467 (restore_selected_frame): Update. Use frame_find_by_id.
7468 (restore_inferior_status): Update.
7470 * breakpoint.h (struct breakpoint): Change type of
7471 watchpoint_frame to frame_id.
7472 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7473 call to get_current_frame.
7474 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7476 (watchpoint_check): Use frame_find_by_id.
7478 * frame.h (record_selected_frame): Delete declaration.
7479 * stack.c (record_selected_frame): Delete function.
7481 * frame.h (struct frame_id): Define.
7482 (get_frame_id): Declare.
7483 (frame_find_by_id): Declare.
7484 * frame.c (frame_find_by_id): New function.
7485 (get_frame_id): New function.
7487 2002-06-10 Andrey Volkov <avolkov@transas.com>
7489 * ser-e7kpc.c: Fix duplicated define and call of
7490 _initialize_ser_e7000pc
7492 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7494 * signals/signals.c (target_signal_from_host): Fix #ifdef
7496 (do_target_signal_to_host): Likewise.
7498 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7500 * mips-tdep.c (mips_find_abi_section): New function.
7501 (mips_gdbarch_init): Call it.
7503 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7505 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7506 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7507 after Andrew's 2002-06-08 gdbarch change.
7509 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7511 * i386-linux-nat.c (suppy_gregset): Don't supply
7512 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7514 (fill_gregset): Don't fetch it under the same circumstances.
7516 2002-06-09 Andrew Cagney <cagney@redhat.com>
7518 * Makefile.in (callback_h): Define.
7519 (remote_sim_h): Update path to remote-sim.h.
7520 (remote-rdp.o): Add $(callback_h).
7521 (remote-sim.o): Use $(callback_h).
7522 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7523 * remote-rdp.c: Include "gdb/callback.h".
7525 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7527 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7528 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7530 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7532 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7533 * rdi-share/serpardr.c: Ditto.
7534 * rdi-share/unixcomm.c: Ditto.
7535 * rdi-share/serdrv.c: Ditto.
7536 * rdi-share/hostchan.h: Ditto.
7537 * rdi-share/hostchan.c: Ditto.
7538 * rdi-share/host.h: Ditto.
7539 * rdi-share/devsw.c: Ditto.
7541 * objfiles.h: Change type of obj_private to void pointer.
7542 * pa64solib.c: Update copyright. Don't include "assert.h", use
7543 strcmp instead of STREQ, use LONGEST, do not use PTR
7544 * somsolib.c: Ditto.
7546 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7547 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7548 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7550 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7552 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7553 (default_get_saved_register): Delete function.
7554 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7555 generic_unwind_get_saved_register.
7556 * gdbarch.h, gdbarch.c: Re-generate.
7558 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7560 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7561 generic_func_frame_chain_valid.
7562 * gdbarch.h, gdbarch.c: Re-generate.
7563 * blockframe.c (generic_func_frame_chain_valid): Only check
7564 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7565 passing FP to PC_IN_CALL_DUMMY.
7568 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7570 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7571 (register_gdbarch_data): Initialize init_p.
7572 (gdbarch_data): Initialize data pointer using the init function.
7573 (init_gdbarch_data): Delete function.
7574 (gdbarch_update_p): Update.
7575 (initialize_non_multiarch): Update.
7576 (struct gdbarch): Add field initialized_p.
7577 * gdbarch.h, gdbarch.c: Re-generate.
7579 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7581 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7582 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7583 better do the things actually here.
7584 * x86-64-tdep.c (x86_64_register_name2nr): New.
7585 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7586 (x86_64_gdbarch_init): Respect the above change.
7587 * x86-64-tdep.h (x86_64_register_name2nr)
7588 (x86_64_register_nr2name): Add prototypes.
7589 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7591 2002-06-06 Michael Snyder <msnyder@redhat.com>
7593 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7594 Delete extra braces and re-indent.
7595 (d10v_store_return_value): Char return values
7596 must be shifted over by one byte in R0.
7597 (d10v_extract_return_value): Delete extra braces, re-indent.
7599 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7601 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7602 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7603 (d10v_integer_to_address): Rewrite.
7604 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7605 the d10v specific functions which take care of converting to the
7608 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7610 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7611 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7613 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7615 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7617 * config/tm-linux.h: Ditto.
7618 * config/alpha/tm-alphalinux.h: Ditto.
7619 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7620 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7621 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7622 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7623 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7624 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7625 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7626 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7627 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7628 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7629 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7630 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7631 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7632 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7633 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7634 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7635 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7636 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7637 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7638 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7639 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7640 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7641 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7642 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7643 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7644 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7645 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7646 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7647 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7648 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7649 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7650 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7651 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7652 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7653 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7654 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7655 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7657 2002-05-04 Aidan Skinner <aidan@velvet.net>
7659 * ada-exp.tab.c: New file
7660 * ada-exp.y: New file
7661 * ada-lang.c: New file
7662 * ada-lang.h: New file
7663 * ada-lex.c: New file
7664 * ada-lex.l: New file
7665 * ada-tasks.c: New file
7666 * ada-typeprint.c: New file
7667 * ada-valprint.c: New file
7669 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7671 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7672 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7674 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7676 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7677 insetead of ppc-linux-tdep.o.
7678 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7679 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7681 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7683 2002-05-07 Christian Groessler <chris@groessler.org>
7684 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7685 bit register contents for little endian hosts.
7687 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7689 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7692 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7694 * gdbarch.h: Regenerate.
7696 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7698 * MAINTAINERS: Add everyone to write-after-approval list.
7700 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7702 * stack.c (frame_info): Use frame_register_unwind instead of
7703 saved_regs. Mention when the SP is on the stack or in a register.
7705 * frame.h (frame_register_unwind_ftype): Define. Document.
7706 (struct frame_info): Add field register_unwind and
7707 register_unwind_cache.
7708 (frame_register_unwind): Declare.
7709 (generic_unwind_get_saved_register): Declare.
7711 * frame.c (frame_register_unwind): New function.
7712 (generic_unwind_get_saved_register): New function.
7714 * blockframe.c (generic_call_dummy_register_unwind): New function.
7715 (frame_saved_regs_register_unwind): New function.
7716 (set_unwind_by_pc): New function.
7717 (create_new_frame): New function.
7718 (get_prev_frame): New function.
7720 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7722 * a29k-share/: Delete directory.
7723 * remote-vx29k.c: Delete file.
7725 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7727 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7728 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7730 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7732 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7733 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7736 (sparcnbsd-tdep.o): New dependency lists.
7737 * NEWS: Note new UltraSPARC NetBSD native configuration.
7738 * configure.host (sparc64-*-netbsd*): New host.
7739 * configure.tgt (sparc-*-netbsdelf*)
7740 (sparc-*-netbsd*): Set gdb_target to nbsd.
7741 (sparc64-*-netbsd*): New target.
7742 * sparc64nbsd-nat.c: New file.
7743 * sparcnbsd-nat.c: New file.
7744 * sparcnbsd-tdep.c: New file.
7745 * sparcnbsd-tdep.h: New file.
7746 * config/sparc/nbsd.mt: New file.
7747 * config/sparc/nbsd64.mh: New file.
7748 * config/sparc/nbsd64.mt: New file.
7749 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7750 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7752 * config/sparc/nbsdaout.mt: Remove.
7753 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7754 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7756 * config/sparc/nbsdelf.mt: Remove.
7757 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7758 sparc-nat.c compatiblity defines.
7759 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7760 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7761 * config/sparc/tm-nbsd64.h: New file.
7762 * config/sparc/tm-nbsdaout.h: Remove.
7763 * config/sparc/xm-nbsd.h: Remove.
7765 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7767 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7768 * sparc-tdep.c: Include osabi.h.
7769 (gdbarch_tdep): Add osabi member.
7770 (_initialize_sparc_tdep): Use gdbarch_register.
7771 (sparc_gdbarch_init): Use generic OS ABI framework.
7772 (sparc_dump_tdep): New function.
7774 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7776 * corefile.c (do_captured_read_memory_integer): Return non-zero
7778 (safe_read_memory_integer): Copy result of memory read when
7779 status is non-zero. Also, add comments.
7781 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7783 * Makefile.in (ppc_tdep_h): Define.
7786 (rs6000-tdep.o): Use $(ppc_tdep_h).
7789 (ppcnbsd-tdep.o): New dependency lists.
7790 * ppc-tdep.h: Use generic OS ABI framework.
7791 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7792 (ppc_linux_init_abi): New functions.
7793 (ppc_sysv_abi_broken_use_struct_convention)
7794 (ppc_sysv_abi_use_struct_convention)
7795 (ppc_sysv_abi_push_arguments): Move to...
7796 * ppc-sysv-tdep.c: ...here.
7797 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7798 * rs6000-tdep.c (process_note_abi_tag_sections)
7799 (get_elfosabi): Remove.
7800 (rs6000_gdbarch_init): Use generic OS ABI framework.
7801 (rs6000_dump_tdep): New function.
7802 (_initialize_rs6000_tdep): Use gdbarch_register.
7803 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7804 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7805 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7806 of ppc-linux-tdep.o.
7807 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7808 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7809 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7810 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7811 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7812 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7814 2002-05-29 Jim Blandy <jimb@redhat.com>
7816 * macroscope.c (default_macro_scope): Put `void' in empty argument
7819 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7821 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7822 * arch-utils.c: Include "sim-regno.h".
7823 * gdbarch.sh: Don't include "sim-regno.h".
7824 * gdbarch.h, gdbarch.c: Regenerate.
7825 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7827 * arch-utils.h (legacy_register_sim_regno): To here.
7828 * remote-sim.c (legacy_register_sim_regno): Move function from
7830 * arch-utils.c (legacy_register_sim_regno): To here.
7832 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7834 * sim-regno.h: New file.
7835 * Makefile.in (sim_regno_h): Define.
7836 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7837 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7838 (legacy_register_sim_regno): New function.
7839 (one2one_register_sim_regno): New function.
7840 (gdbsim_fetch_register): Rewrite.
7841 (gdbsim_store_register): Only store a register when
7842 REGISTER_SIM_REGNO is valid.
7843 * d10v-tdep.c: Include "sim-regno.h".
7844 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7845 (d10v_ts3_register_sim_regno): Ditto.
7846 * gdbarch.sh: Include "sim-regno.h".
7847 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7848 * gdbarch.h, gdbarch.c: Regenerate.
7849 * arch-utils.h (default_register_sim_regno): Delete declaration.
7850 * arch-utils.c (default_register_sim_regno): Delete function.
7852 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7854 * ppcnbsd-nat.c: Rewrite.
7855 * ppcnbsd-tdep.c: New file.
7856 * ppcnbsd-tdep.h: New file.
7857 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7858 solib.o, and solib-svr4.o.
7859 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7860 nbsd-tdep.o, and corelow.o.
7862 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7864 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7865 `tr' and `sed'. Mention that `broken' targets are not expected to
7868 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7870 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7871 Let PC point right after the prologue before looking up symbols.
7873 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7875 * i386-tdep.c (i386_register_virtual_type): Return
7876 builtin_type_vec128i for SSE registers.
7878 * gdbtypes.h (builtin_type_vec128i): Declare.
7880 * gdbtypes.c (build_builtin_type_vec128i): New function.
7881 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7882 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7883 (build_gdbtypes): Initialize new builtin vector types.
7884 (_initialize_gdbtypes): Register new vector types with gdbarch.
7886 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7888 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7889 since it has been multi-arch'd.
7890 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7891 Move Alpha and VAX multi-arch news entries to same section
7892 as other multi-arch news.
7894 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7896 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7897 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7898 static. Rename some register numbers to put them in ns32k-tdep
7900 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7901 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7903 (_initialize_ns32k_tdep): Use gdbarch_register.
7904 * ns32k-tdep.h: New file.
7905 * ns32knbsd-tdep.c: New file.
7906 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7907 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7908 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7909 REGISTER_BYTES, REGISTER_BYTE): Remove.
7910 * config/ns32k/tm-ns32k.h: New file.
7911 * config/ns32k/tm-umax.h: Remove.
7913 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7915 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7916 ns32k_store_struct_return, ns32k_extract_return_value,
7917 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7919 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7920 ns32k_saved_pc_after_call.
7921 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7922 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7923 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7924 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7925 ns32k_extract_struct_value_address.
7927 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7929 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7930 ns32k_fix_call_dummy): New.
7931 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7932 ns32k_call_dummy_words.
7933 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7934 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7935 CALL_DUMMY_NARGS): Remove.
7936 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7938 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7940 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7941 ns32k_frame_saved_pc, ns32k_frame_args_address,
7942 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7943 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7944 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7945 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7946 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7947 (BREAKPOINT): Remove..
7948 (FRAME_CHAIN): Define as ns32k_frame_chain.
7949 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7950 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7951 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7952 (FRAME_FIND_SAVED_REGS): Remove.
7953 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7954 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7955 (POP_FRAME): Define as ns32k_pop_frame.
7957 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7959 * ns32k-tdep.c (ns32k_register_byte_32082,
7960 ns32k_register_byte_32382, ns32k_register_raw_size,
7961 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7963 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7964 ns32k_register_byte_32382.
7965 * config/ns32k/tm-umax.h: Update copyright years.
7966 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7967 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7968 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7969 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7970 (ns32k_get_enter_addr): Fix prototype.
7972 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7974 * ns32k-tdep.c: Update copyright years.
7975 (ns32k_register_name_32082): New function.
7976 (ns32k_register_name_32382): Ditto.
7977 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7978 (REGISTER_NAME): Define as ns32k_register_name_32382.
7979 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7980 (REGISTER_NAME): Define as ns32k_register_name_32082.
7982 2002-05-24 Jim Blandy <jimb@redhat.com>
7984 * dwarf2read.c (free_line_header): Use xfree, not free.
7986 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7988 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7989 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7991 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7993 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7995 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7997 From Ross Alexander at NEC Europe:
7998 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8000 2002-05-23 Michael Snyder <msnyder@redhat.com>
8002 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8003 for input, rather than parse_and_eval_address.
8005 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8007 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8008 * Makefile.in (sim_d10v_h): Update definition.
8010 2002-05-24 Andrew Cagney <cagney@redhat.com>
8012 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8013 change `2002-05-22 Michael Snyder' below.
8014 (d10v_push_arguments): Ditto.
8015 (d10v_extract_return_value): Ditto.
8017 2002-05-23 Jim Blandy <jimb@redhat.com>
8019 * macrotab.c (check_for_redefinition): Don't complain if the new
8020 definition is the same as the previous one. Take more arguments
8021 to allow the comparison.
8022 (macro_define_object, macro_define_function): Pass more arguments
8023 to check_for_redefinition.
8025 2002-05-22 Michael Snyder <msnyder@redhat.com>
8027 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8028 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8029 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8030 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8031 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8032 Add a temp variable to save a call (and a memory read).
8033 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8034 if possible (so that PC_IN_CALL_DUMMY will work).
8036 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8038 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8040 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8042 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8044 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8045 (dwarf2_build_frame_info): Add offset to fde->initial_location
8046 so that frames of shared libraries are mapped correctly.
8047 (execute_stack_op): Change type of 'result' from ULONGEST to
8050 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8052 * config/alpha/tm-nbsd.h: Include solib.h.
8054 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8056 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8057 assumptions about the host's byte order.
8059 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8061 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8063 * alphanbsd-tdep.c: Include solib-svr4.h.
8064 * shnbsd-tdep.c: Ditto.
8066 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8068 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8069 nbsd-tdep.h to dependency list.
8070 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8071 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8072 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8073 nbsdaout.mh and nbsdelf.mh consistently.
8074 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8075 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8076 nbsdaout.mt and nbsdelf.mh consistently.
8077 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8078 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8079 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8080 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8081 a.out shared library stuff from here...
8082 * config/nm-nbsdaout.h: ...to here.
8083 * config/tm-nbsd.h: Remove.
8084 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8085 * config/arm/nbsd.mh: Remove.
8086 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8088 * config/arm/nbsdaout.mh: New file.
8089 * config/arm/nbsdelf.mh: New file.
8090 * config/arm/nm-nbsdaout.h: New file.
8091 * config/i386/nbsd.mh: Remove.
8092 * config/i386/nbsd.mt: Remove.
8093 * config/i386/nbsdaout.mh: New file.
8094 * config/i386/nbsdaout.mt: New file.
8095 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8096 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8097 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8098 i386_register_u_addr): Remove.
8099 * config/i386/nm-nbsdaout.h: New file.
8100 * config/i386/nm-nbsdelf.h: Remove.
8101 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8102 (USE_STRUCT_CONVENTION): Remove.
8103 * config/i386/tm-nbsdaout.h: New file.
8104 * config/i386/tm-nbsdelf.h: Remove.
8105 * config/m68k/nbsd.mh: Remove.
8106 * config/m68k/nbsd.mt: Remove.
8107 * config/m68k/nbsdaout.mh: New file.
8108 * config/m68k/nbsdaout.mt: New file.
8109 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8110 * config/m68k/nm-nbsdaout.h: New file.
8111 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8112 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8113 * config/ns32k/nbsd.mh: Remove.
8114 * config/ns32k/nbsd.mt: Remove.
8115 * config/ns32k/nbsdaout.mh: New file.
8116 * config/ns32k/nbsdaout.mt: New file.
8117 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8118 * config/ns32k/nm-nbsdaout.h: New file.
8119 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8120 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8121 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8122 (SVR4_SHARED_LIBS): Remove.
8123 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8124 * config/sparc/nbsd.mh: Remove.
8125 * config/sparc/nbsd.mt: Remove.
8126 * config/sparc/nbsdaout.mh: New file.
8127 * config/sparc/nbsdaout.mt: New file.
8128 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8129 * config/sparc/nbsdelf.mt: New file.
8130 * config/sparc/nm-nbsdaout.h: New file.
8131 * config/sparc/nm-nbsdelf.h: Remove.
8132 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8133 * config/sparc/tm-nbsdaout.h: New file.
8135 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8137 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8139 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8141 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8143 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8145 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8147 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8149 * NEWS: Note new MIPS NetBSD native configuration.
8150 * configure.host (mips*-*-netbsd*): New host.
8151 * configure.tgt (mips*-*-netbsd*): New target.
8152 * mipsnbsd-nat.c: New file.
8153 * mipsnbsd-tdep.c: New file.
8154 * mipsnbsd-tdep.h: New file.
8155 * config/mips/nbsd.mh: New file.
8156 * config/mips/nbsd.mt: New file.
8157 * config/mips/nm-nbsd.h: New file.
8158 * config/mips/tm-nbsd.h: New file.
8160 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8162 * Makefile.in (SFILES): Add osabi.c.
8163 (COMMON_OBS): Add osabi.o.
8164 (osabi.o): New dependency list.
8165 * osabi.c: New file.
8166 * osabi.h: New file.
8167 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8169 * Makefile.in (alpha_tdep_h): Define and use instead of
8171 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8172 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8174 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8175 * alpha-tdep.h: Include osabi.h.
8176 (alpha_abi): Remove.
8177 (gdbarch_tdep): Use generic OS ABI framework.
8178 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8179 gdbarch_register_osabi.
8180 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8181 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8182 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8184 * Makefile.in (sh_tdep_h): Add osabi.h.
8185 * sh-tdep.h (sh_osabi): Remove.
8186 (gdbarch_tdep): Use generic OS ABI framework.
8187 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8188 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8189 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8190 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8192 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8193 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8194 gdbarch_register_osabi.
8195 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8196 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8197 (get_elfosabi): Rename to...
8198 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8199 ABI framework support routines.
8200 (arm_gdbarch_init): Use generic OS ABI framework.
8201 (arm_dump_tdep): Likewise.
8202 (_initialize_arm_tdep): Likewise.
8203 * arm-tdep.h: Include osabi.h.
8205 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8207 (arm_gdbarch_register_os_abi): Remove prototype.
8208 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8209 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8211 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8212 * mips-tdep.c: Include osabi.h.
8213 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8216 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8218 * h8300-tdep.c: Fix formatting.
8220 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8222 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8223 printing vector registers.
8225 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8227 From Fernando Nasser:
8228 * remote.c (remote_async_open_1): Re-throw the exception when the
8230 (remote_cisco_open): Ditto.
8231 (remote_open_1): Ditto.
8233 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8235 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8236 (remote_start_remote): Add uiout parameter. Pass through to
8237 remote_start_remote_dummy.
8238 (remote_open_1): Use catch_exception instead of catch_errors.
8239 (remote_async_open_1): Ditto.
8240 (remote_cisco_open): Ditto.
8242 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8244 * remote.c (remote_start_remote): Replace PTR with void pointer.
8245 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8248 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8250 * gdb_indent.sh: Allow the script to be run in the sim directory.
8252 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8254 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8255 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8257 * corelow.c (core_open): Only call set_gdbarch_from_file if
8260 2002-05-17 Andrey Volkov <avolkov@transas.com>
8262 * h8300-tdep.c: Add support of EXR register
8263 * config/h8300/tm-h8300.h: Ditto.
8265 2002-05-17 Andrey Volkov <avolkov@transas.com>
8267 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8269 2002-05-17 Andrey Volkov <avolkov@transas.com>
8271 * h8300-tdep.c: Change literal regnums to REGNO.
8273 2002-05-17 Jim Blandy <jimb@redhat.com>
8275 * NEWS: Note addition of macro support.
8277 Expand preprocessor macros in C expressions.
8278 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8279 (scan_macro_expansion, scanning_macro_expansion,
8280 finished_macro_expansion): New function declarations.
8281 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8282 variable declarations.
8283 * parser-defs.h (expression_context_pc): New declaration.
8284 * parse.c (expression_context_pc): New variable.
8285 (parse_exp_1): Set expression_context_pc, as well as
8286 expression_context_block.
8287 * c-exp.y (yylex): If we're not already reading the result of a
8288 macro expansion, try to macro-expand the next token. When we're
8289 done scanning a macro expansion, switch back to the mainline text.
8290 Commas and `if's in a macro's expansion don't terminate the input.
8291 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8292 (macro_original_text, macro_expanded_text,
8293 expression_macro_lookup_func, expression_macro_lookup_baton): New
8295 (scan_macro_expansion, scanning_macro_expansion,
8296 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8297 c_preprocess_and_parse): New functions.
8298 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8299 c_preprocess_and_parse, instead of c_parse.
8300 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8301 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8303 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8305 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8306 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8307 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8309 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8311 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8313 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8315 * Makefile.in (sh_tdep_h): Define and use.
8316 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8317 register enum): Move to...
8318 * * sh-tdep.h: ...here.
8319 * sh-tdep.c: Include sh-tdep.h.
8320 * sh3-rom.c: Likewise.
8321 * shnbsd-tdep.c: Likewise.
8323 2002-05-16 Michael Snyder <msnyder@redhat.com>
8325 * arm-tdep.c: Spelling fix in comment.
8327 2002-05-16 Jim Blandy <jimb@redhat.com>
8329 Add commands for manually expanding macros and showing their
8331 * macrocmd.c, macroscope.c, macroscope.h: New files.
8332 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8333 (macroscope_h): New variable.
8334 (HFILES_NO_SRCDIR): Add macroscope.h.
8335 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8336 (macroscope.o, macrocmd.o): New rules.
8338 Teach the Dwarf 2 reader to read macro information.
8339 * dwarf2read.c: #include "macrotab.h".
8340 (dwarf_macinfo_buffer): New variable.
8341 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8343 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8344 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8345 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8346 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8347 dwarf2_macro_spaces_in_definition): New complaints.
8348 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8349 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8350 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8351 the partial symbol table.
8352 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8353 from what's recorded in the partial symbol table.
8354 (read_file_scope): If the compilation unit has a
8355 `DW_AT_macro_info' attribute, read its macro information.
8356 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8358 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8361 * ser-tcp.c: Don't include <netinet/udp.h>.
8363 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8365 * MAINTAINERS: Update my email address.
8367 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8369 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8370 include file of the same name.
8372 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8374 * configure.tgt: Mark v850 as multi-arched.
8375 * config/v850/tm-v850.h: Remove file.
8376 * config/v850/v850.mt: Eliminate TM_FILE.
8378 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8380 * v850-tdep.c: Full multi-arch.
8381 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8382 Define GDB_MULTI_ARCH to 2.
8384 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8386 * p-exp.y (current_type): New static variable.
8387 Carries the type of the expression at the position that is parsed.
8388 (push_current_type, pop_current_type): Two new functions. Used
8389 to store/restore current_type in expression on specific tokens.
8390 (search_field): New static variable. Set to one after parsing a point
8391 as at that point only a FIELDNAME token should be searched.
8392 (FIELDNAME): New token. After a point only a token belonging to
8393 current_type type definition is allowed.
8394 (all over token rules): reset and change current_type according
8396 (exp '[' rule): insert implicit array index field if
8397 exp is a pascal string type.
8399 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8401 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8402 frame info. Use frame_info's saved_regs instead of matching member
8403 in extra_frame_info throughout.
8404 (v850_frame_init_saved_regs): New function.
8405 (v850_init_extra_frame_info): Move most functionality into
8406 v850_frame_init_saved_regs().
8407 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8408 (v850_frame_find_saved_regs): Remove declaration.
8409 (FRAME_FIND_SAVED_REGS): Remove definition.
8410 (v850_frame_init_saved_regs): Add declaration.
8411 (FRAME_INIT_SAVED_REGS): Add definition.
8413 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8415 * v850-tdep.c: Begin multi-arch'ing v850.
8416 (v850_target_architecture_hook): Remove function.
8417 (v850_gdbarch_init): New function. Add code previously in
8418 v850_target_architecture_hook().
8419 (_initialize_v850_tdep): Don't set target_architecture_hook.
8420 Call register_gdbarch_init() instead.
8422 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8424 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8425 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8426 (fixup_class_method_type): Likewise.
8428 2002-05-15 Jim Blandy <jimb@redhat.com>
8430 Add macro structures to GDB's symbol tables. Nobody puts anything
8432 * symtab.h (struct symtab): New member: `macro_table'.
8433 * buildsym.h (pending_macros): New global variable.
8434 * buildsym.c: #include "macrotab.h".
8435 (buildsym_init): Initialize `pending_macros'.
8436 (end_symtab): If we found macro information while reading a CU's
8437 debugging info, do build a symtab structure for it. Make the
8438 symtab point to the macro information, and clear the
8439 `pending_macros' pointer which held it while we were reading the
8441 (really_free_pendings): Free any pending macro table.
8442 * objfiles.h (struct objfile): New member: `macro_cache'.
8443 * objfiles.c (allocate_objfile): Set allocate and free functions
8444 for the macro cache's objstack.
8445 (free_objfile): Empty the macro cache's obstack.
8446 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8447 set new allocate and free functions for it.
8448 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8449 free functions for the macro cache's objstack. (Why is this
8450 function building its own objfile?)
8451 * symmisc.c (print_objfile_statistics): Print statistics on the
8453 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8455 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8457 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8458 (REGISTER_U_ADDR): Delete definition.
8459 (arm_register_u_addr): Delete declaration.
8461 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8463 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8464 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8466 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8468 * regcache.c (register_valid): Revise comments refering to "Not
8469 available" and "unavailable".
8470 * frame.c (frame_register_read): Ditto.
8471 * findvar.c (value_of_register): Ditto.
8473 2002-05-15 Andrew Cagney <cagney@redhat.com>
8475 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8476 (remote-sim.o): Update dependencies.
8477 (d10v-tdep.o): Specify dependencies.
8478 (sim_d10v_h): Define.
8480 2002-05-14 Jim Blandy <jimb@redhat.com>
8482 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8483 * macrotab.c (macro_lookup_inclusion, find_definition,
8484 new_macro_table): Same.
8486 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8487 not `! strcmp ()'. This is a dubious improvement.
8488 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8490 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8491 although it's not necessary, to avoid a warning.
8493 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8495 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8496 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8497 TYPE_INSTANCE_FLAGS.
8498 (struct main_type): New.
8499 (struct type): Move most members to struct main_type. Change
8500 cv_type and as_type to new type_chain member. Add instance_flags.
8501 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8502 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8503 (finish_cv_type): Remove prototype.
8504 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8506 (alloc_type_instance): New function.
8507 (smash_type): New function.
8508 (make_pointer_type, make_reference_type, make_function_type)
8509 (smash_to_member_type, smash_to_method_type): Call smash_type.
8510 (make_qualified_type): New function.
8511 (make_type_with_address_space): Call make_qualified_type.
8512 (make_cv_type): Likewise.
8513 (finish_cv_type): Remove unnecessary function.
8514 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8515 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8516 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8517 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8518 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8519 * hpread.c (hpread_read_struct_type): Likewise.
8520 * stabsread.c (read_struct_type): Likewise.
8522 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8524 * configure.tgt: Add a catch all sh* target, for cases like
8525 sh[2,3,4]-elf and sh-hms.
8527 2002-05-14 Keith Seitz <keiths@redhat.com>
8529 * event-loop.c (create_file_handler): Don't do anything but
8530 update data when we are given a fd which we are already
8533 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8535 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8536 (update_context): Use __func__ in warnings.
8538 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8540 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8541 and tcp_close to net_open and net_close.
8542 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8543 using UDP if requested. Don't try to disable Nagle on UDP
8545 * remote.c (remote_serial_open): New function. Warn about UDP.
8546 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8548 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8550 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8552 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8554 * configure.tgt: Remove sh-hms target.
8555 * MAINTAINERS: Don't list sh-hms as a separate target.
8557 2002-05-13 Jim Blandy <jimb@redhat.com>
8559 Add first preprocessor macro-expansion files.
8560 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8561 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8562 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8563 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8564 (COMMON_OBS): Add macrotab.o, macroexp.o.
8565 (macroexp.o, macrotab.o): New rules.
8567 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8569 * config/m88k/tm-m88k.h: Update copyright.
8570 (m88k_target_write_pc): Declare
8571 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8572 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8573 (SHIFT_INST_REGS): Update definition.
8574 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8575 using old definition of TARGET_WRITE_PC.
8576 * regcache.c (generic_target_write_pc): Delete code handling
8578 * gdbarch.sh (NNPC_REGNUM): Delete.
8579 * gdbarch.h, gdbarch.c: Regenerate.
8581 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8583 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8586 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8588 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8589 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8590 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8592 * c-typeprint.c (cp_type_print_method_args): Likewise.
8593 (c_type_print_args): Likewise.
8594 * d10v-tdep.c (d10v_push_arguments): Likewise.
8595 (d10v_extract_return_value): Likewise.
8596 * expprint.c (print_subexp): Likewise.
8597 * gdbtypes.c (lookup_primitive_typename): Likewise.
8598 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8599 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8600 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8601 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8602 (TYPE_VECTOR): Likewise.
8603 * hpread.c (hpread_read_struct_type)
8604 (fix_static_member_physnames, fixup_class_method_type)
8605 (hpread_type_lookup): Likewise.
8606 * mdebugread.c (parse_symbol, parse_type): Likewise.
8607 * p-lang.c (is_pascal_string_type): Likewise.
8608 * valops.c (hand_function_call): Likewise.
8609 * x86-64-tdep.c (classify_argument): Likewise.
8611 * hpread.c (hpread_read_function_type)
8612 (hpread_read_doc_function_type): Call replace_type.
8613 * dstread.c (create_new_type): Delete.
8614 (decode_dst_structure, process_dst_function): Call alloc_type.
8615 Use type access macros.
8617 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8619 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8620 the're not supported by the current architecture.
8621 (i387_fill_fxsave): Likewise.
8623 2002-05-12 Fred Fish <fnf@redhat.com>
8625 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8626 sect_index_xxx members to index the first slot in section_offsets
8627 if all of the section_offsets are zero.
8629 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8631 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8632 checked in with last change.
8634 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8636 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8637 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8640 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8642 * Makefile.in: Update dependencies.
8644 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8646 * language.c (local_hex_string_custom): Simplify. Do not depend
8647 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8649 * memattr.c (mem_info_command): Replace calls to
8650 longest_local_hex_string and longest_local_hex_string_custom.
8651 * buildsym.c (make_blockvector): Ditto.
8652 * solib.c (info_sharedlibrary_command): Ditto.
8653 * tracepoint.c (tracepoints_info): Ditto.
8654 * symtab.c (print_msymbol_info): Ditto.
8656 * language.c (local_hex_string): Delete.
8657 (local_hex_string_custom): Delete.
8658 (longest_local_hex_string): Rename to local_hex_string.
8659 (longest_local_hex_string_custom): Rename to
8660 local_hex_string_custom.
8661 * language.h (local_hex_string): Change parameter type to LONGEST.
8662 (local_hex_string_custom): Ditto.
8663 (longest_local_hex_string): Delete declaration.
8664 (longest_local_hex_string_custom): Ditto.
8666 * solib.c: Update copyright.
8667 * memattr.c: Update copyright.
8669 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8671 * arch-utils.h (legacy_register_to_value): Declare.
8672 (legacy_value_to_register): Declare.
8673 (legacy_convert_register_p): Declare.
8674 * arch-utils.c (legacy_register_to_value): New function.
8675 (legacy_value_to_register): New function.
8676 (legacy_convert_register_p): New function.
8678 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8679 (VALUE_TO_REGISTER): Define.
8680 (CONVERT_REGISTER_P): Define.
8681 * gdbarch.h, gdbarch.c: Regenerate.
8683 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8685 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8688 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8689 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8691 * Makefile.in: Update dependencies for valops.c.
8692 * valops.c: Include "gdb_assert.h".
8693 (typecmp): Skip THIS parameter to methods.
8694 (find_method_list): Remove static_memfuncp argument,
8695 update callers. Check for stub methods.
8696 (find_value_oload_method_list): Don't set *static_memfuncp.
8697 (find_overload_match): Don't check for stub methods. Assert
8698 that methods are not stubbed. Handle static methods.
8699 (value_find_oload_method_list): Remove static_memfuncp argument.
8700 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8701 to the argument list for static stub methods.
8702 * value.h (value_find_oload_method_list): Update prototype.
8704 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8706 * arch-utils.h (generic_register_size): Declare.
8707 (generic_register_raw_size, generic_register_virtual_size): Delete
8709 * arch-utils.c (generic_register_raw_size): Delete.
8710 (generic_register_size): New function.
8711 (generic_register_virtual_size): Delete.
8713 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8714 default generic_register_size.
8715 * gdbarch.h, gdbarch.c: Re-generate.
8717 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8718 register_virtual_size.
8719 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8720 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8722 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8724 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8725 * gdbarch.h, gdbarch.c: Regenerate.
8726 * gnu-v3-abi.c: Update copyright.
8727 (vtable_address_point_offset): Update.
8728 (gnuv3_rtti_type): Update.
8729 (gnuv3_baseclass_offset): Update.
8730 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8731 (init_fetch_link_map_offsets): Update.
8732 * remote.c (get_remote_state): Update.
8734 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8736 * TODO: Remove value_headof/value_from_vtable_info comment.
8737 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8738 * values.c (value_headof, value_from_vtable_info): Delete.
8739 * value.h (value_from_vtable_info): Delete prototype.
8741 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8743 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8744 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8746 (gdb_assert_h): Define.
8747 (gdb_wait_h): Define.
8748 (gdb_regex_h): Define.
8750 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8752 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8753 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8755 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8757 * nbsd-tdep.c: Fix comment.
8759 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8761 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8762 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8763 (nbsd-tdep.o): New dependency list.
8764 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8766 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8767 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8768 * nbsd-tdep.c: New file.
8769 * nbsd-tdep.h: New file.
8770 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8772 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8773 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8774 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8775 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8777 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8779 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8780 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8781 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8782 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8783 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8784 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8786 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8788 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8789 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8790 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8791 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8792 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8793 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8794 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8796 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8798 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8799 fetch_elfcore_registers to...
8800 * i386nbsd-tdep.c: ...here.
8801 (i386nbsd_use_struct_convention): Rename to...
8802 (i386nbsd_aout_use_struct_convention): ...this.
8803 (i386nbsd_supply_reg): New function.
8804 (i386nbsd_fill_reg): New function.
8805 (fetch_core_registers): Use i386nbsd_supply_reg.
8806 (fetch_elfcore_registers): Likewise.
8807 (_initialize_i386nbsd_tdep): New function.
8808 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8809 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8810 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8811 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8812 (i386nbsd_aout_use_struct_convention): ...this.
8814 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8816 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8817 (store_inferior_registers): Use shnbsd_fill_reg.
8818 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8819 sh_nbsd_supply_register): Collapse into...
8820 (shnbsd_supply_reg): ...this.
8821 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8822 (shnbsd_fill_reg): ...this.
8823 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8824 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8825 (fetch_core_registers): Use shnbsd_supply_reg.
8826 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8827 (sh_nbsd_core_fns): Rename to...
8828 (shnbsd_core_fns): ...this.
8829 (sh_nbsd_elfcore_fns): Rename to...
8830 (shnbsd_elfcore_fns): ...this.
8831 (sh_nbsd_init_abi): Rename to...
8832 (shnbsd_init_abi): ...this.
8833 (_initialize_sh_nbsd_tdep): Rename to...
8834 (_initialize_shnbsd_tdep): ...this.
8835 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8836 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8837 sh_nbsd_fill_register): Remove prototypes.
8838 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8840 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8842 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8843 (i387-nat.o): Delete dependency list.
8844 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8845 (x86-64-linux-nat.o): Likewise.
8846 * i387-nat.c: Delete file, moving contents to...
8847 * i387-tdep.c: ...here.
8848 * i387-nat.h: Rename...
8849 * i387-tdep.h: ...to this.
8850 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8851 * i386-linux-nat.c: Likewise.
8852 * i386bsd-nat.c: Likewise.
8853 * i386gnu-nat.c: Likewise.
8854 * i386nbsd-nat.c: Likewise.
8855 * i386v4-nat.c: Likewise.
8856 * x86-64-linux-nat.c: Likewise.
8857 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8858 * config/i386/go32.mh (NATDEPFILES): Likewise.
8859 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8860 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8861 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8862 * config/i386/linux.mh (NATDEPFILES): Likewise.
8863 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8864 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8865 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8866 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8868 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8870 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8871 (alphanbsd-nat.o): Remove dependency list.
8872 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8873 * alphanbsd-nat.c: Delete. Contents moved to...
8874 * alphanbsd-tdep.c: ...here.
8875 (_initialize_alphanbsd_tdep): Register core functions.
8876 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8878 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8880 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8881 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8882 (alphanbsd-nat.o): Likewise.
8883 (alphabsd-tdep.o): New dependency list.
8884 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8885 (fill_gregset): Use alphabsd_fill_reg.
8886 (supply_fpregset): Use alphabsd_supply_fpreg.
8887 (fill_fpregset): Use alphabsd_fill_fpreg.
8888 (fetch_inferior_registers): Use struct reg and struct fpreg
8889 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8890 and alphabsd_supply_fpreg.
8891 (store_inferior_registers): Use struct reg and struct fpreg
8892 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8893 and alphabsd_fill_fpreg.
8894 * alphabsd-tdep.c: New file.
8895 * alphabsd-tdep.h: New file.
8896 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8897 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8898 alphabsd_supply_fpreg.
8899 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8900 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8902 2002-05-11 Eric Christopher <echristo@redhat.com>
8904 * mips-tdep.c (mips_double_register_type): Fix thinko.
8905 (mips_single_register_type): Ditto.
8906 * MAINTAINERS: Add self.
8908 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8910 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8911 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8912 right thing on architectures with different endianness and/or
8915 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8917 From Christian Limpach <chris@Pin.LU>
8918 * configure.in: Change sed expression which comments out
8919 NATDEPFILES to also comment out continuation lines.
8920 * configure: Regenerate.
8922 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8924 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8927 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8929 * sh-tdep.c: Include correct file.
8931 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8933 New support for sh64-elf (sh5) target.
8935 * configure.tgt: For sh64-elf target, default to sh-elf.
8937 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8938 (struct gdbarch_tdep): Add new fields for new registers and ABI
8941 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8942 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8943 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8944 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8945 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8946 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8947 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8948 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8949 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8950 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8951 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8952 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8953 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8954 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8955 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8956 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8957 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8958 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8959 sign_extend, sh64_nofp_frame_init_saved_regs,
8960 sh64_init_extra_frame_info, sh64_get_saved_register,
8961 sh64_extract_struct_value_address, sh64_pop_frame,
8962 sh64_push_arguments, sh64_extract_return_value,
8963 sh64_store_return_value, sh64_show_media_regs,
8964 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8965 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8966 sh_sh64_register_virtual_type,
8967 sh_sh64_register_convert_to_virtual,
8968 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8969 sh64_register_read, sh64_pseudo_register_write,
8970 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8971 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8972 sh64_do_pseudo_register, sh_compact_do_registers_info,
8973 sh64_do_registers_info, sh_gdbarch_init): New functions.
8975 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8977 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8979 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8981 * linespec.c (decode_line_1): Check for a double quote after
8982 a filename correctly.
8984 2002-05-10 Jim Blandy <jimb@redhat.com>
8986 Properly track the size of the current objfile's .debug_line section.
8987 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8988 (DWARF_LINE_SIZE): New macro.
8989 (dwarf2_build_psymtabs_hard): Record the line section's size in
8990 the partial symbol table.
8991 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8994 2002-05-10 Petr Sorfa <petrs@caldera.com>
8996 * ia64-tdep.c: Handle breakpoints on L instruction type
8997 in MLX instruction bundle by moving the breakpoint to
8998 the third slot (X instruction type) as L holds only data.
9000 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9002 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9003 (process_one_symbol): Complain about discarding local symbols
9004 due to a misplaced N_LBRAC entry.
9006 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9008 From Daniel Berlin <dan@cgsoftware.com>
9009 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9010 decrease the depth we are at, in the case of templates.
9012 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9014 * mips-tdep.c (mips_float_register_type): New function.
9015 (mips_double_register_type): New function.
9016 (mips_print_register): Use them.
9017 (do_fp_register_row): Likewise.
9019 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9021 * signals/signals.c (signals): Remove conditional compilation around
9022 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9023 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9025 2002-05-09 Michael Snyder <msnyder@redhat.com>
9027 * remote-rdp.c (remote_rdp_can_run): Remove.
9029 2002-05-09 Tom Tromey <tromey@redhat.com>
9031 * jv-valprint.c (java_val_print): Handle `char' as a special case
9034 2002-05-09 Michael Snyder <msnyder@redhat.com>
9036 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9037 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9038 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9039 str r(0123),[sp,#nn].
9040 (arm_skip_prologue): Ditto. Also make disassembly
9041 order-independent by placing it in a loop.
9043 2002-05-06 Michael Snyder <msnyder@redhat.com>
9045 * stabsread.c (read_type): Add recognition for new attribute:
9046 "@V;" means that an array type is actually a vector.
9047 This is analogous to the vector flag that's been added to dwarf2.
9049 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9051 * i386-tdep.h (i386_abi): New enum.
9052 (struct gdbarch_tdep): Replace os_ident member with abi.
9053 (i386_gdbarch_register_os_abi): New prototype.
9054 * i386-tdep.c (i386_abi_names): New array.
9055 (process_note_abi_tag_sections): Removed.
9056 (process_note_sections): New function.
9057 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9058 (struct i386_abi_handler): New struct.
9059 (i386_abi_handler_list): New variable.
9060 (i386_gdbarch_register_os_abi): New function.
9061 (i386_gdbarch_init): Adapt for the changes given above.
9063 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9065 * gregset.h: Say "GNU/Linux".
9067 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9069 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9070 (build_gdbtypes): Build builtin_type_v2_float.
9071 (_initialize_gdbtypes): Register new builtin type.
9073 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9075 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9076 (clear_gdbarch_swap): New function.
9077 (initialize_non_multiarch): Call.
9078 (gdbarch_update_p): Before calling init(), swap out and clear the
9079 existing architecture.
9080 * gdbarch.c: Regenerate.
9082 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9084 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9087 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9089 * sh-nbsd-nat.c: Rename to...
9090 * shnbsd-nat.c: ...this.
9091 * sh-nbsd-tdep.c: Rename to...
9092 * shnbsd-tdep.c: ...this.
9093 * sh-nbsd-tdep.h: Rename to...
9094 * shnbsd-tdep.h: ...this.
9095 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9096 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9098 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9100 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9101 concatenation for command help messages.
9103 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9105 * NEWS: Note new sh*-*-netbsdelf* configuration.
9106 * configure.host: Set gdb_host_cpu to sh for all sh*.
9107 (sh*-*-netbsdelf*): New host.
9108 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9109 (sh*-*-netbsdelf*): New target.
9110 * sh-nbsd-nat.c: New file.
9111 * sh-nbsd-tdep.c: New file.
9112 * sh-nbsd-tdep.h: New file.
9113 * config/sh/nbsd.mh: New file.
9114 * config/sh/nbsd.mt: New file.
9115 * config/sh/nm-nbsd.h: New file.
9116 * config/sh/tm-nbsd.h: New file.
9118 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9120 * sh-tdep.c (sh_osabi_names): Declare.
9121 (process_note_abi_tag_sections): New function.
9122 (get_elfosabi): Ditto.
9123 (sh_gdbarch_register_os_abi): Ditto.
9124 (sh_dump_tdep): Ditto.
9125 _initialize_sh_tdep): Use gdbarch_register to register
9126 sh_gdbarch_init and sh_dump_tdep.
9127 * config/sh/tm-sh.h (sh_osabi): Declare.
9128 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9130 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9132 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9133 (thumb_scan_prologue): Ditto.
9134 (arm_find_callers_reg): Ditto.
9135 (arm_frame_chain): Ditto.
9136 (arm_init_extra_frame_info): Ditto.
9137 (arm_frame_saved_pc): Ditto.
9138 (arm_pop_frame): Ditto.
9139 (arm_push_return_address): New function.
9140 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9141 call_dummy_location, call_dummy_breakpoint_offset_p,
9142 call_dummy_breakpoint_offset, call_dummy_p,
9143 call_dummy_stack_adjust_p, call_dummy_words,
9144 sizeof_call_dummy_words, call_dummy_start_offset,
9145 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9146 call_dummy_address, push_return_address and push_dummy_frame for
9147 generic dummy frames.
9149 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9151 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9152 size computation for alloca.
9153 (sh_fp_frame_init_saved_regs): Likewise.
9155 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9157 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9158 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9159 * arm-tdep.c (arm_store_return_value): Use them.
9160 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9161 * remote-rdp.c (remote_rdp_fetch_register): Use
9162 ARM_MAX_REGISTER_RAW_SIZE.
9163 (remote_rdp_store_register): Likewise.
9165 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9167 * dwarf2cfi.c: Code cleanup, removed unused variables,
9168 added default labels to switch {} statements.
9169 * x86-64-tdep.c: Ditto.
9170 * x86-64-linux-nat.c: Ditto.
9172 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9174 * solib.h: Protect against multiple inclusion.
9176 2002-05-06 Jim Blandy <jimb@redhat.com>
9178 Add first preprocessor macro-expansion files.
9179 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9180 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9181 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9182 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9183 (COMMON_OBS): Add macrotab.o, macroexp.o.
9184 (macroexp.o, macrotab.o): New rules.
9186 Separate the job of reading the line number info statement program
9187 header (...expialidocious) out into its own function.
9188 * dwarf2read.c (struct line_head, struct filenames, struct
9189 directories): Replace with...
9190 (struct line_header): New structure, containing the full
9191 contents of the statement program header, including the
9192 include directory and file name tables.
9193 (read_file_scope): If we have line number info, instead of just
9194 calling dwarf_decode_lines to do all the work, call
9195 dwarf_decode_line_header first to get a `struct line_header'
9196 containing the data in the statement program header, and then
9197 pass that to dwarf_decode_lines, which will pick up where that
9198 left off. Be sure to clean up the `struct line_header' object.
9199 (dwarf_decode_line_header, free_line_header, add_include_dir,
9200 add_file_name): New functions.
9201 (dwarf_decode_lines): Move all the code to read the statement
9202 program header into dwarf_decode_line_header. Take the line
9203 header it built as the first argument, instead of the offset to
9204 the compilation unit's line number info. Use the new `struct
9205 line_header' type instead of the old structures. No need to do
9206 cleanups here now, since we don't allocate anything.
9207 (dwarf2_statement_list_fits_in_line_number_section,
9208 dwarf2_line_header_too_long): New complaints.
9210 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9212 * gdbtypes.c (init_vector_type): New function.
9213 (build_builtin_type_vec128): Simplify the representation of SIMD
9215 (build_gdbtypes): Initialize new builtin vector types.
9216 (_initialize_gdbtypes): Register new vector types with gdbarch.
9217 (builtin_type_v4_float, builtin_type_v4_int32,
9218 builtin_type_v8_int16, builtin_type_v16_int8,
9219 builtin_type_v2_int32, builtin_type_v4_int16,
9220 builtin_type_v8_int8): New (renamed) SIMD types.
9222 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9224 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9225 (i387_fill_fxsave): Likewise.
9227 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9229 * alpha-tdep.c (alpha_extract_return_value): Don't use
9230 non-constant array size in prototype.
9232 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9234 From Brian Taylor <briant at model dot com>:
9235 * ui-out.c (ui_out_field_core_addr): Use the function
9236 longest_local_hex_string_custom'to format addresses > 32 bits
9239 * ui-out.c (ui_out_field_core_addr): Update comment.
9241 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9243 * stack.c (select_and_print_frame): Make static. Delete the
9245 (func_command): Update call.
9246 (select_frame_command): Delete code computing the frame level.
9247 * frame.h (select_and_print_frame): Delete declaration.
9249 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9251 * sparc-tdep.c (sparc_get_saved_register): Comment why
9252 get_prev_frame call is safe.
9254 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9256 * frame.h (select_frame): Delete level parameter.
9257 * stack.c (select_frame): Update. Use frame_relative_level to
9258 obtain the frame's level.
9259 (select_and_print_frame): Update call.
9260 (select_frame_command): Ditto.
9261 (up_silently_base): Ditto.
9262 (down_silently_base): Ditto.
9263 * ocd.c (ocd_start_remote): Ditto.
9264 * remote-rdp.c (remote_rdp_open): Ditto.
9265 * remote-mips.c (mips_initialize): Ditto.
9266 (common_open): Ditto.
9267 * remote-e7000.c (e7000_start_remote): Ditto.
9268 * m3-nat.c (select_thread): Ditto.
9269 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9270 (child_get_current_exception_event): Ditto.
9271 * varobj.c (varobj_create): Ditto.
9272 (varobj_update): Ditto.
9273 (c_value_of_root): Ditto.
9274 * tracepoint.c (finish_tfind_command): Ditto.
9275 * corelow.c (core_open): Ditto.
9276 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9277 * thread.c (info_threads_command): Ditto.
9278 (switch_to_thread): Ditto.
9279 * infrun.c (normal_stop): Ditto.
9280 (restore_selected_frame): Ditto.
9281 (restore_inferior_status): Ditto.
9282 * breakpoint.c (insert_breakpoints): Ditto.
9283 (watchpoint_check): Ditto.
9284 (bpstat_stop_status): Ditto.
9285 (do_enable_breakpoint): Ditto.
9286 * blockframe.c (flush_cached_frames): Ditto.
9287 (reinit_frame_cache): Ditto.
9289 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9291 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9294 2002-05-04 Jim Blandy <jimb@redhat.com>
9296 * gdbtypes.c (replace_type): Doc fix.
9298 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9300 * valprint.c (strcat_longest): Delete commented out function.
9303 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9305 * MAINTAINERS: Mark a29k as deleted.
9306 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9307 Move new configurations to the top.
9308 * configure.tgt: Remove a29k.
9309 * config/a29k/tm-vx29k.h: Delete.
9310 * config/a29k/vx29k.mt: Delete.
9311 * config/a29k/tm-a29k.h: Delete.
9312 * config/a29k/a29k-udi.mt: Delete.
9313 * config/a29k/a29k.mt: Delete.
9314 * a29k-tdep.c: Delete.
9315 * remote-udi.c: Delete.
9316 * remote-mm.c: Delete.
9317 * remote-eb.c: Delete.
9318 * remote-adapt.c: Delete.
9319 * Makefile.in: Remove obsolete code.
9320 * config/s390/s390x.mt: Ditto.
9321 * config/s390/s390.mt: Ditto.
9322 * config/sparc/sparclynx.mh: Ditto.
9323 * config/sparc/linux.mh: Ditto.
9324 * config/pa/hppaosf.mh: Ditto.
9325 * config/pa/hppabsd.mh: Ditto.
9326 * config/ns32k/nbsd.mt: Ditto.
9327 * config/mips/vr5000.mt: Ditto.
9328 * config/m68k/sun3os4.mh: Ditto.
9329 * config/m68k/nbsd.mt: Ditto.
9330 * config/m68k/m68klynx.mh: Ditto.
9331 * config/m32r/m32r.mt: Ditto.
9332 * config/i386/x86-64linux.mt: Ditto.
9333 * config/i386/nbsdelf.mt: Ditto.
9334 * config/i386/nbsd.mt: Ditto.
9335 * config/i386/i386lynx.mh: Ditto.
9337 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9339 * target.c (debug_print_register): New function. Handle oversize
9341 (debug_to_fetch_registers): Call.
9342 (debug_to_store_registers): Call.
9344 2002-05-03 Jim Blandy <jimb@redhat.com>
9346 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9347 (read_type): Doc fix.
9348 * gdbtypes.c (replace_type): Doc fix.
9350 * stabsread.c (multiply_defined_struct): New complaint.
9351 (read_struct_type): If the type we were passed isn't empty, or
9352 incomplete, don't read the new struct type into it; complain,
9353 and return the original type unchanged. Take a new `type_code'
9354 argument, which is the type code for the new type.
9355 (read_type): Rather than storing the type's type code here, pass
9356 it as an argument to read_struct_type, and let that take care of
9357 storing it. That way, we don't overwrite the original type code,
9358 so read_struct_type can use it to decide whether we're overwriting
9359 something we shouldn't.
9360 (complain_about_struct_wipeout): New function.
9362 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9364 * gdbarch.sh: Assert that gdbarch is non-NULL.
9365 * gdbarch.c: Regenerate.
9367 2002-05-03 Jason Merrill <jason@redhat.com>
9369 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9372 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9374 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9375 (x86_64_dwarf2gdb_regno_map_length),
9376 (x86_64_dwarf2_reg_to_regnum): Added.
9377 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9378 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9379 (_initialize_x86_64_tdep): Synced with the change above.
9380 (x86_64_skip_prologue): Reformulated message.
9382 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9384 * f-exp.y: Also use new prev_lexptr variable
9385 to improve error reporting. Based on Michael Snyder
9386 2002-04-24 dated patch to c-exp.y.
9387 * jv-exp.y: Likewise.
9388 * m2-exp.y: Likewise.
9390 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9392 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9393 we are dealing with vectors.
9395 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9397 * config/m68k/tm-nbsd.h: Obvious fix,
9398 correct machine name.
9400 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9402 * p-typeprint.c (pascal_type_print_base): Add support
9403 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9405 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9407 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9408 for fondamental pascal 'char' type.
9410 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9412 * p-lang.h (is_pascal_string_type): Declaration changed,
9413 new sixth argument of type char ** added.
9414 * p-lang.c (is_pascal_string_type): Implementation
9415 changed. Args length_pos, length_size, string_pos, char_size
9416 can now be NULL. New argument arrayname set to the field
9417 name of the char array. Return value set to char array
9418 field index plus one.
9419 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9420 is_pascal_string_type function.
9422 2002-05-02 Andrew Cagney <cagney@redhat.com>
9424 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9425 <cagney@redhat.com> change.
9426 * gdbarch.c: Regenerate.
9428 2002-05-02 Andrew Cagney <cagney@redhat.com>
9430 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9431 before probing for a new one. Detect errorenous gdbarch_init
9433 * gdbarch.c: Regenerate.
9435 2002-05-01 Andrew Cagney <cagney@redhat.com>
9437 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9438 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9439 * config/v850/tm-v850.h: Ditto. Update copyright.
9441 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9443 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9446 2002-04-30 Michael Snyder <msnyder@redhat.com>
9448 * arm-tdep.c: Whitespace clean-ups.
9449 (arm_skip_prologue): Fix thinko; two lines
9450 should have been removed as part of 4/24 change.
9452 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9454 * rs6000-tdep.c: Added comment describing how fpscr register
9455 numbers were chosen.
9457 2002-04-30 Michael Snyder <msnyder@redhat.com>
9459 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9461 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9463 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9464 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9465 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9467 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9469 From Louis Hamilton <hamilton@redhat.com>:
9470 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9471 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9472 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9473 not bfd-private xcoff data, to determine wordsize.
9474 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9476 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9478 GDB 5.2 released from 5.2 branch.
9480 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9482 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9483 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9484 (x86_64_register_info_table): Added comments with register numbers.
9486 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9488 * rs6000-tdep.c (rs6000_extract_return_value,
9489 rs6000_store_return_value): Handle returning vectors.
9490 (rs6000_gdbarch_init): Use
9491 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9492 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9494 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9496 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9497 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9499 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9501 * hpread.c (hpread_psymtab_to_symtab_1,
9502 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9503 with fprintf_unfiltered (gdb_stderr,...).
9505 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9507 * remote-array.c (printf_monitor, write_monitor,
9508 array_insert_breakpoint, array_remove_breakpoint ):
9509 Replace fprintf (stderr,...
9510 with fprintf_unfiltered (gdb_stderr,....
9511 * remote-es.c: Likewise.
9512 * remote-os9k.c: Likewise.
9513 * remote-st.c: Likewise.
9515 2002-04-28 Andreas Schwab <schwab@suse.de>
9517 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9518 linux-proc.o and gcore.o.
9520 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9522 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9523 code without frame pointers.
9525 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9527 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9530 2002-04-26 Ben Elliston <bje@redhat.com>
9532 * target.c (do_xfer_memory): Correct reference to the new option
9533 "trust-readonly-sections".
9535 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9537 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9538 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9539 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9541 (read_array_type): Record the fact that this array type is really a
9542 vector (i.e. are passed in by value).
9544 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9546 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9547 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9548 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9549 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9550 * alpha-linux-tdep.c: Include frame.h.
9551 (alpha_linux_sigcontext_addr): New function.
9552 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9553 alpha_linux_sigcontext_addr.
9554 * alpha-osf1-tdep.c: Include gdbcore.h.
9555 (alpha_osf1_sigcontext_addr): New function.
9556 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9557 alpha_osf1_sigcontext_addr.
9558 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9559 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9561 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9563 * stack.c (selected_frame_level):
9564 (select_frame): Do not set selected_frame_level.
9565 * frame.h (selected_frame_level): Delete declaration.
9567 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9569 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9570 convert_from_func_ptr-addr when AIX / PowerOpen.
9572 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9574 * valops.c (hand_function_call): Call
9575 generic_save_call_dummy_addr.
9576 * frame.h (generic_save_call_dummy_addr): Declare.
9577 * blockframe.c (struct dummy_frame): Add fields call_lo and
9579 (generic_find_dummy_frame): Check for PC in range call_lo to
9580 call_hi instead of entry_point_address.
9581 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9582 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9583 (generic_save_call_dummy_addr): New function.
9585 2002-04-24 David S. Miller <davem@redhat.com>
9587 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9588 sparc_skip_prologue.
9589 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9590 information to find prologue when possible.
9591 (sparc_prologue_frameless_p): Call examine_prologue directly.
9592 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9593 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9595 (SKIP_PROLOGUE): Likewise.
9597 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9599 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9600 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9601 indicate that the condition it was testing is always true.
9602 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9603 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9604 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9606 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9608 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9609 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9610 tdep->jb_pc and tdep->jb_elt_size.
9611 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9612 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9613 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9614 * alpha-nat.c (get_longjmp_target): Remove.
9615 (JB_ELEMENT_SIZE): Ditto.
9617 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9618 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9619 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9620 to alpha_get_longjmp_target.
9621 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9622 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9623 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9625 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9627 * README: Update to GDB 5.2.
9629 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9631 * gdbarch.sh (LC_ALL): Set to `c'.
9633 2002-04-25 Theodore A. Roth <troth@verinet.com>
9635 * avr-tdep.c: Ran through gdb_indent.sh.
9637 2002-04-25 Theodore A. Roth <troth@verinet.com>
9639 * MAINTAINERS: Add myself as AVR maintainer.
9640 * NEWS: Note new target avr.
9642 2002-04-25 Theodore A. Roth <troth@verinet.com>
9644 * Makefile.in: Add support for AVR target.
9645 * configure.tgt: Add support for AVR target.
9646 * avr-tdep.c: New file
9647 * config/avr/avr.mt: New file.
9649 2002-04-25 Theodore A. Roth <troth@verinet.com>
9651 * MAINTAINERS: Add myself to write-after-approval.
9653 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9655 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9656 with fprintf_unfiltered (gdb_stderr,....
9658 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9661 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9663 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9665 * p-exp.y: Also use new prev_lexptr variable
9666 to improve error reporting. Based on Michael Snyder
9667 2002-04-24 dated patch to c-exp.y.
9669 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9671 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9672 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9673 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9675 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9677 (FUNCTION_START_OFFSET): Remove.
9678 (BREAKPOINT): Ditto.
9680 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9682 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9685 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9687 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9688 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9689 alpha_linux_pc_in_sigtramp.
9690 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9691 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9692 alpha_osf1_pc_in_sigtramp.
9693 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9694 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9695 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9696 alphafbsd_pc_in_sigtramp.
9697 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9698 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9699 alphanbsd_pc_in_sigtramp.
9700 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9701 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9703 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9705 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9707 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9709 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9711 (alphanbsd-nat.o): New dependency list.
9712 (alphanbsd-tdep.o): Ditto.
9713 * NEWS: Note new native NetBSD/alpha configuration.
9714 * alphanbsd-nat.c: New file.
9715 * alphanbsd-tdep.c: Ditto.
9716 * configure.host (alpha*-*-netbsd*): New host.
9717 * configure.tgt (alpha*-*-netbsd*): New target.
9718 * config/alpha/nbsd.mh: New file.
9719 * config/alpha/nbsd.mt: Ditto.
9720 * config/alpha/nm-nbsd.h: Ditto.
9721 * config/alpha/tm-nbsd.h: Ditto.
9723 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9725 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9726 (alpha-osf1-tdep.o): New dependency list.
9727 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9728 and skip_sigtramp_frame members.
9729 * alpha-linux-tdep.c: Include gdbcore.h.
9730 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9731 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9732 * alpha-osf1-tdep.c: New file.
9733 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9735 (alpha_frame_past_sigtramp_frame): New function.
9736 (alpha_dynamic_sigtramp_offset): Ditto.
9737 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9738 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9739 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9740 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9741 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9742 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9743 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9744 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9745 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9746 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9747 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9748 to find_solib_trampoline_target.
9749 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9750 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9751 (SKIP_TRAMPOLINE_CODE): Remove.
9752 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9753 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9754 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9755 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9756 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9757 (PROC_SIGTRAMP_MAGIC): Ditto.
9758 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9759 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9760 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9761 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9762 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9764 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9766 * NEWS: Note that Alpha targets are now multi-arch.
9768 2002-04-24 Michael Snyder <msnyder@redhat.com>
9770 * parser-defs.h (prev_lexptr): New external variable.
9771 * parse.c (parse_exp_1): Set prev_lexptr to null before
9772 calling the language-specific parser.
9773 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9774 (yyerror): Use prev_lexptr in error reporting.
9776 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9778 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9779 * gregset.h: If FILL_FPXREGSET is defined, provide
9780 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9781 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9782 is defined, call fill_fpxregset.
9784 2002-04-24 Roland McGrath <roland@frob.com>
9786 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9787 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9788 (supply_gregset, supply_fpregset): New functions.
9790 * gnu-nat.c (gnu_find_memory_regions): New function.
9791 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9792 (gnu_xfer_memory): Add a cast.
9794 2002-04-24 Michael Snyder <msnyder@redhat.com>
9796 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9797 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9798 of argument regs ("str r(0123), [r11, #-nn"]).
9799 (arm_skip_prologue): Better handling for frameless functions.
9800 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9801 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9803 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9805 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9806 NUM_PSEUDO_REGS can be used.
9808 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9810 * arch-utils.h: Update copyright.
9812 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9813 * gdbarch.h, gdbarch.c: Re-generate.
9815 * inferior.h (IN_SIGTRAMP): Delete definition.
9816 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9817 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9819 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9820 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9821 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9822 (find_proc_framesize): Ditto.
9823 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9824 (alpha_init_extra_frame_info): Ditto.
9825 * infrun.c (handle_inferior_event): Ditto.
9826 (handle_inferior_event): Ditto.
9827 (check_sigtramp2): Ditto.
9828 * blockframe.c (create_new_frame): Ditto.
9829 (get_prev_frame): Ditto.
9830 * ppc-linux-tdep.c: Update comments.
9831 * i386-linux-tdep.c: Update comments.
9832 * breakpoint.c (bpstat_what): Update comment.
9834 2002-04-24 David S. Miller <davem@redhat.com>
9836 * i960-tdep.c (register_in_window_p): New function.
9837 (i960_find_saved_register): Use it instead of
9838 REGISTER_IN_WINDOW_P.
9839 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9841 * symtab.h (find_stab_function_addr): Kill extern.
9842 * minsyms.c (find_stab_function_addr): Remove from here...
9843 * dbxread.c: ... to here, and mark it static.
9845 2002-04-20 David S. Miller <davem@redhat.com>
9847 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9848 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9850 2002-04-21 David S. Miller <davem@redhat.com>
9852 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9853 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9854 (vx_write_register): Likewise.
9856 2002-04-23 J. Brobecker <brobecker@gnat.com>
9858 * source.c (is_regular_file): New function.
9859 (openp): Check wether file to open is a regular file
9860 to avoid opening directories.
9862 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9864 * findvar.c (extract_signed_integer): Cast printf argument
9865 to suppress format warning.
9866 (extract_unsigned_integer): Likewise.
9867 * infcmd.c (registers_info): Likewise.
9868 * top.c (get_prompt_1): Likewise.
9869 * valops.c (value_assign): Likewise.
9870 * valprint.c (print_decimal): Likewise.
9872 2002-04-22 H.J. Lu (hjl@gnu.org)
9874 * c-exp.y (typebase): Support
9876 [long|long long|short] [signed|unsigned] [int|]
9880 signed [long|long long|short] int
9882 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9884 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9886 * vax-tdep.h: New file.
9887 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9888 Make several routines static.
9889 (vax_get_saved_register): New function.
9890 (vax_gdbarch_init): New function.
9891 (_initialize_vax_tdep): Register vax_gdbarch_init.
9892 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9893 Remove macros now under the control of gdbarch.
9895 2002-04-22 Michael Snyder <msnyder@redhat.com>
9897 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9898 Some whitespace and coding standards tweaks.
9900 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9902 * vax-tdep.c: Include regcache.h.
9903 (vax_call_dummy_words): New.
9904 (sizeof_vax_call_dummy_words): New.
9905 (vax_fix_call_dummy): New function.
9906 (vax_saved_pc_after_call): Ditto.
9907 * config/vax/tm-vax.h: Don't include regcache.h.
9908 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9909 (CALL_DUMMY): Remove.
9910 (CALL_DUMMY_WORDS): Define.
9911 (SIZEOF_CALL_DUMMY_WORDS): Define.
9912 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9914 2002-04-18 Michael Snyder <msnyder@redhat.com>
9916 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9918 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9920 * vax-tdep.c (vax_frame_chain): New function.
9921 (vax_push_dummy_frame): Ditto.
9922 (vax_pop_frame): Ditto.
9923 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9924 (FRAMELESS_FUNCTION_INVOCATION): Use
9925 generic_frameless_function_invocation_not.
9926 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9927 (POP_FRAME): Use vax_pop_frame.
9929 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9931 * vax-tdep.c (vax_store_struct_return): New function.
9932 (vax_extract_return_value): Ditto.
9933 (vax_store_return_value): Ditto.
9934 (vax_extract_struct_value_address): Ditto.
9935 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9936 vax_store_struct_return.
9937 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9938 (STORE_RETURN_VALUE): Use vax_store_return_value.
9939 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9941 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9943 * vax-tdep.c (vax_frame_saved_pc): New function.
9944 (vax_frame_args_address_correct): Ditto.
9945 (vax_frame_args_address): Ditto.
9946 (vax_frame_locals_address): Ditto.
9947 (vax_frame_num_args): Move code to be in proximity to
9948 other frame-related functions.
9949 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9950 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9951 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9952 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9953 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9955 2002-04-22 H.J. Lu (hjl@gnu.org)
9957 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9960 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9962 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9963 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9964 (FRAME_INIT_SAVED_REGS): New macro.
9966 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9968 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9970 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9972 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9974 (fetch_osf_core_registers): Likewise.
9975 (supply_gregset): Likewise.
9977 2002-04-22 J. Brobecker <brobecker@gnat.com>
9979 * symfile.h (get_section_index): Define.
9980 * symfile.c (get_section_index): New function.
9981 * mdebugread.c (SC_IS_SBSS): New macro.
9982 (SC_IS_BSS): Return true for the scBss storage class only, as
9983 the scSBss storage class refers to the .sbss section.
9984 (parse_partial_symbols): Discard the symbols which associated
9985 section does not exist.
9986 Make sure to use the .sbss section index for symbols which
9987 storage class is scBss, rather than using the .bss section index.
9989 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9991 * vax-tdep.c: Update copyright years.
9992 (vax_register_name): New function.
9993 (vax_register_byte): Ditto.
9994 (vax_register_raw_size): Ditto.
9995 (vax_register_virtual_size): Ditto.
9996 (vax_register_virtual_type): Ditto.
9997 * config/vax/tm-vax.h: Update copyright years.
9998 (REGISTER_NAMES): Remove.
9999 (REGISTER_NAME): Define.
10000 (REGISTER_BYTE): Use vax_register_byte.
10001 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10002 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10003 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10005 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10007 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10009 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10011 2002-04-21 David S. Miller <davem@redhat.com>
10013 * arch-utils.c (generic_prologue_frameless_p): Kill
10014 SKIP_PROLOGUE_FRAMELESS_P code.
10015 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10017 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10018 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10019 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10021 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10022 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10023 (sparc_gdbarch_init): Pass it to
10024 set_gdbarch_prologue_frameless_p.
10026 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10028 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10029 (alphabsd-nat.o): New dependency list.
10031 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10033 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10035 (alpha-linux-tdep.o): New dependency list.
10036 (alphafbsd-tdep.o): Likewise.
10038 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10040 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10042 * alpha-tdep.c: ...from here.
10043 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10045 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10047 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10048 prototype from here...
10049 * alpha-tdep.h: ...to here.
10051 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10053 * frame.h (selected_frame_level): Document as deprecated.
10054 (frame_relative_level): Declare.
10055 * stack.c (frame_relative_level): New function.
10056 (selected_frame_level): Document as deprecated.
10057 (select_frame): Do not set the selected_frame_level.
10059 * stack.c (frame_info, record_selected_frame): Update.
10060 (frame_command, current_frame_command): Update.
10061 (up_silently_base, up_command, down_silently_base): Update.
10062 (down_command): Update.
10063 * inflow.c (kill_command): Update.
10064 * tracepoint.c (finish_tfind_command): Update.
10065 * corelow.c (core_open): Update.
10066 * thread.c (info_threads_command): Update.
10067 (do_captured_thread_select): Update.
10068 * infcmd.c (finish_command): Update.
10069 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10071 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10073 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10075 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10077 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10080 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10082 * alphafbsd-tdep.c: Update copyright years. Include
10084 (alphafbsd_use_struct_convention): Make static.
10085 (alphafbsd_init_abi): New function.
10086 (_initialize_alphafbsd_tdep): New function.
10087 * config/alpha/tm-fbsd.h: Update copyright years.
10088 (USE_STRUCT_CONVENTION): Remove.
10090 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10092 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10093 an Alpha ABI variant.
10094 (alpha_abi_handler_list): Declare.
10095 (alpha_gdbarch_register_os_abi): New function.
10096 (alpha_gdbarch_init): Give registered ABI variant handlers a
10097 chance to tweak the gdbarch once we have set up defaults.
10098 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10100 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10102 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10103 to standard_coerce_float_to_double.
10104 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10106 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10108 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10109 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10110 from gdbarch_tdep rather than a constant.
10111 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10112 the default text address for all Alpha Unix ABIs.
10113 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10114 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10116 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10118 * alpha-tdep.h: New file. Includes several Alpha target constants
10120 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10121 let gdbarch deal with.
10122 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10123 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10124 to dependency list.
10125 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10126 Alpha target register names.
10127 * alphabsd-nat.c: Likewise.
10128 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10129 Alpha target register names. Make serveral routines static.
10130 (alpha_get_saved_register): New function.
10131 (alpha_abi_names): New.
10132 (process_note_abi_tag_sections): New function.
10133 (get_elfosabi): New function.
10134 (alpha_gdbarch_init): New function.
10135 (alpha_dump_tdep): New function.
10136 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10138 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10140 * frame.c (find_saved_register): Delete #ifdef
10141 HAVE_REGISTER_WINDOWS code.
10142 * config/sparc/tm-sparc.h: Update comments.
10143 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10145 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10147 * i960-tdep.c (i960_find_saved_register): New function.
10148 (i960_get_saved_register): New function.
10149 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10150 (i960_get_saved_register): Declare.
10151 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10153 2002-04-20 David S. Miller <davem@redhat.com>
10155 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10157 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10159 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10160 instead of NUM_PSEUDO_REGS.
10162 2002-04-20 David S. Miller <davem@redhat.com>
10164 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10165 GDB_MULTI_ARCH_PARTIAL
10166 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10167 define, let tm-sp64.h do it.
10169 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10171 * frame.c (find_saved_register): Avoid a NULL pointer
10172 dereference and actually walk the frame list.
10174 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10176 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10177 sorted in most most-recent-used order. Document.
10178 * gdbarch.h, gdbarch.c: Regenerate.
10180 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10182 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10184 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10185 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10186 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10189 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10192 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10193 (build_builtin_type_vec128): Ditto.
10194 (append_composite_type_field): Fix calculation of type length in
10197 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10199 * config/djgpp/README: Update.
10201 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10204 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10206 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10207 (alpha_setup_arbitrary_frame): ...to this.
10208 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10209 for alpha_setup_arbitrary_frame.
10211 2002-04-18 Andrew Cagney <cagney@redhat.com>
10213 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10214 * gdbarch.h, gdbarch.c: Regenerate.
10216 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10217 * target.h (memory_breakpoint_from_pc): Update declaration.
10218 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10220 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10221 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10222 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10223 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10224 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10225 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10226 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10227 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10228 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10229 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10230 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10231 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10233 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10235 * monitor.c (monitor_insert_breakpoint): Ditto.
10236 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10238 * config/mcore/tm-mcore.h: Update copyright.
10239 * mem-break.c: Ditto.
10240 * xstormy16-tdep.c: Ditto.
10242 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10244 * p-exp.y: Add precedence rule for '^' token.
10245 This removes the shift/reduce conflicts.
10246 Remove the comment concerning these shift/reduce conflicts.
10248 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10250 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10251 (registers_powerpc_nofp): New register set for processors
10252 without floating point unit.
10254 2002-04-18 David S. Miller <davem@redhat.com>
10256 * MAINTAINERS: Add myself to write-after-approval.
10258 2002-04-17 Michael Snyder <msnyder@redhat.com>
10260 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10262 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10264 * rs6000-tdep.c (frame_initial_stack_address): Use
10265 frame_register_read to read the alloca_reg.
10267 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10269 * frame.c (find_saved_register): Find saved registers in the next
10273 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10275 * gdbarch.sh (LANG): Set to ``c''.
10277 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10279 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10281 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10283 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10286 * hpread.c (hpread_get_lntt): Add declaration.
10287 Also fix PR gdb/391.
10289 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10291 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10292 * aclocal.m4, configure: Re-generate.
10295 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10297 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10298 instead of tm_print_insn.
10300 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10302 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10304 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10306 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10307 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10308 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10310 2002-04-12 Don Howard <dhoward@redhat.com>
10312 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10313 max_user_call_depth.
10314 (init_cmd_lists): Initialize the new value;
10315 * cli/cli-script.c (execute_user_command): Limit the call depth of
10316 user defined commands. This avoids a core-dump when user commands
10317 are infinitly recursive.
10319 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10321 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10322 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10323 from tdep struct instead of DEFAULT_LR_SAVE.
10324 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10325 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10326 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10328 2002-04-12 Michael Snyder <msnyder@redhat.com>
10330 * Remote.c: Spelling fix.
10331 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10332 If no symbol found for "sbrk", try "_sbrk".
10333 (make_output_phdrs): Use bfd_section_name.
10334 (gcore_copy_callback): Use bfd_section_name.
10335 * eval.c: Indentation fix-ups.
10336 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10337 in case it gets applied to an address that is already
10338 in the instruction space.
10339 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10340 * symfile.c: Fix indentation, long lines.
10341 * source.c: White space fix-up.
10343 2002-04-12 Andrew Cagney <cagney@redhat.com>
10345 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10346 * frame.c (frame_register_read): New function. Return non-zero on
10348 (read_relative_register_raw_bytes_for_frame): Delete.
10349 (read_relative_register_raw_bytes): Delete.
10350 * frame.h (frame_register_read): Declare.
10351 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10352 * sh-tdep.c: Ditto.
10353 * infcmd.c (do_registers_info): Ditto.
10354 * hppa-tdep.c: Ditto.
10355 * rs6000-tdep.c: Ditto.
10356 * h8500-tdep.c: Ditto.
10357 * mips-tdep.c: Ditto.
10358 * h8300-tdep.c: Ditto.
10359 * z8k-tdep.c: Ditto.
10361 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10363 From Jimi X <jimix@watson.ibm.com>:
10364 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10367 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10369 From Jimi X <jimix@watson.ibm.com>:
10370 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10373 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10375 From Jimi X <jimix@watson.ibm.com>:
10376 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10377 register sets for these processor variants.
10379 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10381 * regformats/reg-ppc.dat: Support FPSCR.
10383 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10385 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10386 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10387 Add fpscr as an invalid/unfetchable register.
10388 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10389 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10390 (fill_fpregset): Add support for register fpscr.
10391 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10392 (fill_gregset): Account for the fact that register ``mq'' might
10394 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10395 (registers_power): Add fpscr to register set at slot 71.
10396 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10397 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10399 2002-04-11 Michael Snyder <msnyder@redhat.com>
10401 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10402 * configure: Regenerate.
10403 * config.in: Regenerate.
10404 * acconfig.h: Add define for _SYSCALL32.
10405 * core-sol2.c: Remove #define _SYSCALL32.
10406 * solib-legacy.c: Remove #define _SYSCALL32.
10408 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10410 * stack.c (select_frame): Cleanup internal error message, do not
10413 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10415 * stack.c (select_frame): Check that selected_frame and the
10416 specified level are as expected.
10417 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10419 * frame.h (struct frame_info): Add field `level'. Update
10421 Work-in-progress PR gdb/464.
10423 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10425 * maint.c (maint_print_section_info): Rename print_section_info.
10426 (print_bfd_section_info, print_objfile_section_info): Update.
10427 * inferior.h (struct gdbarch): Add opaque declaration.
10428 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10429 * gdbarch.h: Regenerate.
10431 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10433 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10434 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10435 (kernel_u_size): Added.
10436 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10437 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10439 2002-04-04 Jim Ingham <jingham@apple.com>
10441 * valarith.c (find_size_for_pointer_math): New function, either returns
10442 the size for a pointer's target, returns 1 for void *, or errors for
10444 (value_add, value_sub): use find_size_for_pointer_math.
10446 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10448 * linux-low.c (linux_look_up_symbols): New hook.
10449 (linux_target_ops): Add linux_look_up_symbols.
10450 * remote-utils.c (decode_address): New function.
10451 (look_up_one_symbol): New function.
10452 * server.c (handle_query): Call target look_up_symbols hook.
10453 * server.h (look_up_one_symbol): Add prototype.
10454 * target.h (struct target_ops): Add look_up_symbols hook.
10456 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10458 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10459 override FP_REGNUM with frame->fp. Update copyright.
10460 * parse.c (num_std_regs, std_regs): Delete.
10461 (target_map_name_to_register): Do not search std_regs. Update
10462 function description.
10463 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10464 declarations. Update copyright.
10467 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10469 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10470 after the last symbol in a block.
10472 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10474 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10475 is non zero as a found symbol.
10477 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10479 * findvar.c: Include "builtin-regs.h".
10480 (value_of_register): Call value_of_builtin_reg when applicable.
10481 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10482 (target_map_name_to_register): Call
10483 builtin_reg_map_name_to_regnum.
10484 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10485 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10486 (builtin_regs_h): Define.
10487 (builtin-regs.o): New target.
10488 (findvar.o): Add $(builtin_regs_h).
10489 * builtin-regs.c, builtin-regs.h: New files.
10490 * std-regs.c: New file.
10491 Partial fix for PR gdb/251.
10493 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10495 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10496 it's no longer required.
10498 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10500 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10502 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10504 From Jimi X <jimix@watson.ibm.com>:
10505 * rs6000-tdep.c (rs6000_software_single_step): Use
10506 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10507 and size. Use target_insert_breakpoint() and
10508 target_remove_breakpoint() to insert and remove breakpoints
10509 instead of explicit memory reads and writes.
10511 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10513 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10514 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10515 ELF_OBJECT_FORMAT ifdef.
10517 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10519 From Jimi X <jimix@watson.ibm.com>:
10520 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10522 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10524 From Jimi X <jimix@watson.ibm.com>:
10525 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10526 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10528 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10530 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10531 s/asprintf/xasprintf/.
10532 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10534 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10536 I believe Jeff Law denies responsability for this one:
10537 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10538 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10539 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10540 Work-around for PR gdb/366.
10542 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10544 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10545 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10546 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10548 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10550 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10551 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10554 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10556 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10559 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10561 * README (Reporting Bugs in GDB): Document the bug web page as the
10562 prefered way of submitting bugs.
10565 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10567 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10568 -1. Update comment.
10569 * gdbarch.h, gdbarch.c: Re-generate.
10571 2002-04-07 Andreas Schwab <schwab@suse.de>
10573 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10574 buffer to regcache_collect.
10576 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10578 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10579 * gdbarch.c, gdbarch.h: Re-generate.
10581 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10583 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10584 declaration. Fix -Werror.
10586 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10588 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10589 * gdbarch.c: Regenerate.
10591 2002-04-05 Michael Snyder <msnyder@redhat.com>
10593 * breakpoint.c (clear_command): Rewrite middle section to
10594 combine two loops with identical control conditions.
10595 Add a cleanup to eliminate a memory leak.
10596 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10598 2002-04-05 H.J. Lu (hjl@gnu.org)
10600 * solib-svr4.c (bkpt_names): Add "__start".
10602 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10604 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10605 as test for 64 bit target.
10607 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10609 * h8500-tdep.c (h8500_write_fp): Delete function.
10610 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10611 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10612 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10614 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10615 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10617 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10618 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10619 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10620 (d10v_write_fp): Delete function.
10621 * inferior.h (write_fp, generic_target_write_fp): Delete
10623 * regcache.c (generic_target_write_fp): Delete function.
10624 (write_fp): Delete function.
10625 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10626 * gdbarch.h, gdbarch.c: Regenerate.
10627 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10628 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10629 (sparc64_write_fp): Delete declaration.
10630 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10631 (h8500_write_fp): Delete declaration.
10633 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10635 * sparc-tdep.c (sparc64_write_fp): Delete.
10636 (sparc_push_dummy_frame): Replace write_fp call with code to store
10638 (sparc_gdbarch_init): Do not initialize write_fp.
10640 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10642 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10645 2002-03-29 Jim Blandy <jimb@redhat.com>
10647 * stack.c (get_selected_block): Add new argument `addr_in_block',
10648 used to return the exact code address we used to select the block,
10649 not just the block.
10650 * blockframe.c (get_frame_block, get_current_block): Same.
10651 * frame.h (get_frame_block, get_current_block,
10652 get_selected_block): Update declarations.
10653 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10654 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10656 2002-04-05 Michael Snyder <msnyder@redhat.com>
10658 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10661 2002-04-05 J. Brobecker <brobecker@gnat.com>
10663 * utils.c (xfullpath): New function.
10664 * defs.h (xfullpath): Add declaration.
10665 * source.c (openp): Use xfullpath in place of gdb_realpath to
10666 avoid resolving the basename part of filenames when the
10667 associated file is a symbolic link. This fixes a potential
10668 inconsistency between the filenames known to GDB and the
10669 filenames it prints in the annotations.
10670 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10671 to be able to match a filename with either the real filename, or
10672 the name of any symbolic link to this file.
10673 (lookup_partial_symtab): Ditto.
10675 2002-04-04 Michael Snyder <msnyder@redhat.com>
10677 * breakpoint.c: Add support for hardware breakpoints in overlays.
10678 (overlay_events_enabled): New state variable.
10679 (insert_breakpoints): Use overlay_events_enabled to decide
10680 whether to attempt to set a breakpoint at the overlay load addr.
10681 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10682 (remove_breakpoint): Use overlay_events_enabled to decide
10683 whether breakpoints need to be removed from overlay load addr.
10684 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10685 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10686 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10687 disable_overlay_breakpoints): Update overlay_events_enabled.
10689 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10691 * dwarf2read.c (struct function_range): New.
10692 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10693 (check_cu_functions): New.
10694 (read_file_scope): Initialize global function lists.
10695 Call dwarf_decode_line after processing children.
10696 (read_func_scope): Add to global function list.
10697 (dwarf_decode_lines): Call check_cu_functions everywhere
10698 record_line is called. Call record_line with a linenumber
10699 of 0 to mark sequence ends.
10701 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10703 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10704 change sync with glibc.
10706 2002-04-03 Jim Blandy <jimb@redhat.com>
10708 * configure.in: Call AC_C_INLINE.
10709 * configure: Regenerated.
10711 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10713 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10714 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10716 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10718 * NEWS: Mention gcore support on FreeBSD/i386.
10720 * fbsd-proc.c: New file.
10721 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10722 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10724 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10727 2002-03-29 Jim Blandy <jimb@redhat.com>
10729 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10730 unescaped newlines in string literals, but newer ones don't. So
10733 2002-03-26 Michael Snyder <msnyder@redhat.com>
10734 Andrew Cagney <cagney@redhat.com>
10736 * cli/cli-dump.c: New file. Dump memory to file,
10737 restore file to memory.
10738 * cli/cli-dump.h: New file.
10739 * Makefile.in: Add rules, dependencies for cli-dump.o.
10740 * NEWS: Mention new commands.
10742 2002-03-28 Michael Snyder <msnyder@redhat.com>
10744 * symfile.c (symbol_file_add): Move test for null symbols to later.
10746 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10748 From veksler at il.ibm.com:
10749 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10750 the xstrduped original path.
10753 2002-03-27 Michael Snyder <msnyder@redhat.com>
10755 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10756 * infcmd.c (_initialize_infcmd): Ditto.
10757 * language.c (_initialize_language): Ditto.
10758 * symfile.c (_initialize_symfile): Ditto.
10759 * top.c (_init_main): Ditto.
10760 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10762 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10764 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10765 vector registers handling.
10766 (skip_prologue): Handle new AltiVec instructions. Fill in new
10767 fields of frame data.
10768 (frame_get_saved_regs): Fill in information for AltiVec registers.
10770 2002-03-27 Jim Blandy <jimb@redhat.com>
10772 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10773 a function; leave this macro here to invoke that function.
10774 (symbol_init_mangled_name): Declaration for that function.
10775 * symtab.c (symbol_init_mangled_name): New function.
10777 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10779 * valarith.c: Replace strerror with safe_strerror.
10780 * tracepoint.c: Ditto.
10781 * lin-lwp.c: Ditto.
10782 * go32-nat.c: Ditto.
10784 * gnu-nat.c: Ditto.
10786 2002-03-27 Andreas Schwab <schwab@suse.de>
10788 * event-top.c (command_line_handler): Remove useless if.
10790 2002-03-27 Andreas Jaeger <aj@suse.de>
10792 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10795 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10797 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10798 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10799 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10800 (x86_64_linux_dr_get_status, supply_gregset),
10801 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10802 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10803 (x86_64_register_info_table): Add.
10804 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10805 (x86_64_register_raw_size, x86_64_register_virtual_type),
10806 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10807 general x86_64_register_info_table.
10808 (i386_gdbarch_init): gdbarch_register_bytes is now set
10809 dynamicaly during initialization.
10810 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10811 * gdbserver/linux-x86-64-low.c: Ditto.
10813 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10815 * gdbserver/server.c (main): Call target_signal_to_host_p
10816 and target_signal_to_host on signals received from the remote.
10817 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10818 target_signal_from_host on signals sent to the remote.
10819 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10820 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10822 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10824 * signals/signals.c: Include "server.h" in gdbserver build.
10825 (target_signal_from_name): Don't use STREQ.
10826 (_initialize_signals): Likewise. Don't include function in
10829 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10831 * signals.c: Moved to...
10832 * signals/signals.c: Here.
10833 * Makefile (signals.o): Update.
10835 2002-03-26 Jeff Law (law@redhat.com)
10837 * somread.c (som_symtab_read): Remove some commented out code and
10838 updated related comments. Do not set the minimal symbol table to
10839 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10840 in a dynamic executable.
10841 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10842 where we are unable to find the minimal symbol for the given
10845 2002-03-25 Jeff Law (law@redhat.com)
10847 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10849 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10851 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10853 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10855 * command.h: Update copyright.
10856 (struct cmd_list_element): Replace definition with opaque
10858 (enum cmd_types): Document that it will eventually be moved to
10860 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10861 (MALLOCED_REPLACEMENT): Delete macro.
10862 * Makefile.in (cli_decode_h): Add $(command_h).
10863 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10864 * top.c: Include "cli/cli-decode.h".
10865 * completer.c: Include "cli/cli-decode.h".
10866 * maint.c: Include "cli/cli-decode.h".
10867 * cli/cli-decode.h: Include "command.h".
10868 (enum command_class): Delete.
10869 (enum cmd_types): Comment out.
10870 (enum cmd_auto_boolean): Delete.
10871 (enum var_types): Delete.
10873 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10875 * cli/cli-decode.c: Include "gdb_assert.h".
10876 (add_set_or_show_cmd): New static function.
10877 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10878 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10879 all fields, such as func, from the set command.
10881 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10883 * MAINTAINERS (sh-elf): Change warning flag to -w.
10885 2002-03-23 Andrew Cagney <cagney@redhat.com>
10887 * defs.h (error): Add printf format attribute.
10888 * thread-db.c (thread_from_lwp): Fix error format string.
10889 * stack.c (parse_frame_specification): Ditto.
10890 * cli/cli-decode.c (undef_cmd_error): Ditto.
10891 * scm-lang.c (scm_lookup_name): Ditto.
10892 * tracepoint.c (trace_error): Ditto.
10893 * remote-utils.c (usage): Ditto.
10894 * remote.c (compare_sections_command): Ditto.
10897 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10899 * gdbtypes.c (append_composite_type_field): New function.
10900 (init_composite_type): New function.
10901 * gdbtypes.h (append_composite_type_field): Declare.
10902 (init_composite_type): Ditto.
10904 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10906 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10908 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10909 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10910 structure returning convention for SYSV ABI case, but not
10911 for GNU/Linux, FreeBSD, or NetBSD.
10913 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10915 * symtab.h (lookup_block_symbol): Add mangled_name argument
10918 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10919 with new mangled_name argument.
10920 * linespec.c (decode_line_1): Likewise.
10921 * valops (value_of_this): Likewise.
10922 * symtab.c (lookup_transparent_type): Likewise.
10923 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10924 (lookup_symbol): If we are given a mangled name, pass it down
10925 to lookup_symbol_aux.
10926 (lookup_block_symbol): If we are given a mangled name to check
10927 against, only return symbols which match it.
10929 2002-03-22 Christopher Faylor <cgf@redhat.com>
10931 * win32-nat.c (child_create_inferior): Check for proper shell to use
10932 here, in case the user changes it on the fly.
10933 (_initialize_inftarg): Remove shell path considerations.
10935 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10937 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10938 for gdbarch_max_register_raw_size and max_register_virtual_size.
10939 Adjust copyright year.
10941 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10943 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10944 in a function to cover the entire beginning of the function
10945 as well if it does not already.
10947 2002-03-21 Tom Rix <trix@redhat.com>
10949 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10950 (rs6000_ptrace64): Renamed from ptrace64.
10952 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10954 * gdbserver/remote-utils.c (remote_open): Don't call
10955 getprotobyname, we're all using TCP here so just use
10957 * gdbserver/gdbreplay.c (remote_open): Ditto.
10959 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10961 * regcache.c (_initialize_regcache): No need to call
10962 build_regcache() at this time; it gets called whenever
10963 the gdbarch changes.
10965 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10967 * sparc-nat.c: Include sys/param.h where possible.
10969 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10972 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10973 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10974 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10976 * stabsread.c (rs6000_builtin_type): Likewise.
10977 (read_sun_floating_type): Likewise.
10979 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10981 * stabsread.c (read_member_functions): Remove skip code for duplicate
10982 constructor/destructor methods. Use standard parsing for these
10983 methods and just do not chain them to the list of methods after
10986 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10988 * coffread.c: Remove redundant static declarations. Replace
10989 occurrences of `PTR' with `void *'.
10990 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10991 * top.h (quit_cover): Likewise.
10992 * defs.h (catch_errors): Likewise.
10994 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10996 * defs.h (XMALLOC): Define.
10997 * gdb-events.sh (XMALLOC): Delete macro.
10998 * gdb-events.c, gdb-events.h: Regenerate.
10999 * gdbarch.sh (XMALLOC): Delete macro.
11000 * gdbarch.c: Regenerate.
11001 * serial.c (XMALLOC): Delete macro.
11002 * ui-file.c (XMALLOC): Ditto.
11003 * ser-unix.h (XMALLOC): Ditto.
11004 * sh-tdep.c (XMALLOC): Ditto.
11005 * ui-out.c (XMALLOC): Ditto.
11006 * utils.c (XMALLOC): Ditto.
11007 * i386-tdep.c (XMALLOC): Ditto.
11008 * gdb-events.c (XMALLOC): Ditto.
11009 * d10v-tdep.c (XMALLOC): Ditto.
11010 * cli-out.c (XMALLOC): Ditto.
11012 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11013 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11014 * ui-file.c, ui-out.c: Ditto.
11016 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11018 * command.h (struct cmd_list_element): Add field context.
11019 (set_cmd_context, get_cmd_context): Declare.
11020 * cli/cli-decode.h: Ditto.
11021 * cli/cli-decode.c (get_cmd_context): New function.
11022 (set_cmd_context): New function.
11023 (add_cmd): Initialize context.
11024 Part of fixing PR gdb/145 and PR gdb/146.
11026 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11028 * cli/cli-decode.c (cmd_type): New function.
11029 * command.h (cmd_type): Declare.
11030 * infrun.c (set_schedlock_func): Call function cmd_type.
11031 * kod.c (kod_set_os): Call cmd_type.
11032 * cris-tdep.c (cris_version_update): Use function cmd_type.
11033 (cris_mode_update, cris_abi_update): Ditto.
11035 * command.h: (execute_cmd_post_hook): Declare.
11036 (execute_cmd_pre_hook): Declare.
11037 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11038 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11039 functions. Execute pre/post hook while ensuring that afterwords
11040 hook_in is cleared.
11041 * top.c (execute_command): Use execute_cmd_post_hook, and
11042 execute_cmd_pre_hook to execute pre/post commands.
11043 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11045 (hook_stop_stub): Call execute_cmd_pre_hook.
11047 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11049 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11050 set'' and this leads to a core dump. Move xstrdup of
11051 operating_system to after check that it is not NULL.
11053 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11055 * kod.c (kod_set_os): Remove unnecessary check that
11056 ``command->type'' is set_cmd.
11058 * valprint.c (set_input_radix): Use input_radix.
11059 (set_output_radix): Use output_radix.
11060 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11063 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11065 * value.h (struct value): Delete field ``substring_addr''. Change
11066 aligner fields to force_doublest_align, force_longest_align,
11067 force_core_addr_align and force_pointer_aligh.
11069 * value.h (struct value): Fix typo in above change.
11071 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11073 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11074 to fix internal_error from ``maintenance print architecture''.
11076 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11078 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11079 for gcc versions after gcc-2.8.1.
11081 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11083 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11084 for method resolution. Restore adjustment of ``this'' pointer after
11085 calling value_struct_elt, which was accidentally removed during the
11088 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11090 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11092 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11093 get_saved_register.
11094 * value.h (value_of_register): Update.
11096 2002-03-14 Richard Henderson <rth@redhat.com>
11098 * configure.in: Detect declaration for canonicalize_file_name.
11099 * utils.c (canonicalize_file_name): Declare, if needed.
11100 (gdb_realpath): Prefer realpath if available and usable.
11101 * config.in, configure: Rebuild.
11103 2002-03-14 Richard Henderson <rth@redhat.com>
11105 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11106 a constant array bound.
11108 * MAINTAINERS: Add myself to write-after-approval.
11110 2002-03-14 Michael Snyder <msnyder@redhat.com>
11112 * symfile.c (syms_from_objfile): Return immediately if no syms.
11113 (symbol_file_add): Return immediately if no syms.
11114 (find_sym_fns): Return immediately if no syms.
11116 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11118 * gdbserver/remote-util.c (remote_open): Print remote-side's
11119 IP address when remote debugging over the network.
11121 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11123 * config/sparc/fbsd.mh: Fix copyright.
11124 * config/sparc/fbsd.mt: Likewise.
11126 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11128 * MAINTAINERS: Fix typo in name of gdb warnings option.
11129 (x86-64): Fix formating so that this can be parsed by awk.
11131 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11133 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11134 * defs.h: Include "gdb/signals.h".
11135 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11137 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11139 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11140 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11143 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11144 Don Howard <dhoward@redhat.com>
11146 * mips-tdep.c (ST0_FR): Define.
11147 (mips2_fp_compat): New function, temporarily disabled.
11148 (mips_read_fp_register_single): New function.
11149 (mips_read_fp_register_double): New function.
11150 (mips_print_register): Use them.
11151 (do_fp_register_row): Likewise.
11153 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11155 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11158 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11160 * stabsread.c (read_member_functions): Fix is_stub test for
11161 static member functions, improve comment.
11163 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11165 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11166 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11167 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11168 commands that set boolean values.
11169 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11170 (arm_rdi_resume): Always initialize PC.
11171 (arm_rdi_open): Don't use rslt as a boolean.
11172 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11173 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11174 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11175 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11177 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11179 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11180 * configure: Rebuilt.
11182 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11184 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11185 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11187 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11189 * cli/cli-decode.c (set_cmd_completer): New function.
11190 * command.h (set_cmd_completer): Declare.
11191 * cli/cli-decode.h (set_cmd_completer): Ditto.
11193 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11194 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11195 * win32-nat.c (_initialize_inftarg): Ditto.
11196 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11197 * proc-api.c (_initialize_proc_api): Ditto.
11198 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11199 * source.c (_initialize_source): Ditto.
11200 * exec.c (_initialize_exec): Ditto.
11201 * solib.c (_initialize_solib): Ditto.
11202 * top.c (init_main): Ditto.
11203 * tracepoint.c (_initialize_tracepoint): Ditto.
11204 * symfile.c (_initialize_symfile): Ditto.
11205 * printcmd.c (_initialize_printcmd): Ditto.
11206 * infcmd.c (_initialize_infcmd): Ditto.
11207 * corefile.c (_initialize_core): Ditto.
11209 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11211 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11213 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11215 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11217 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11219 * NEWS: Update headings, 5.2 has branched.
11221 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11223 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11224 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11225 (register_addr, REGISTER_RAW_SIZE): Likewise.
11226 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11227 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11229 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11231 * MAINTAINERS (x86-64): Add myself.
11232 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11233 changed value_ptr -> struct value *
11235 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11237 * configure.host (sparc64-*-freebsd): Add.
11238 * configure.tgt: Likewise.
11239 * config/sparc/fbsd.mh: New file.
11240 * config/sparc/fbsd.mt: Likewise.
11241 * config/sparc/nm-fbsd.h: Likewise.
11242 * config/sparc/tm-fbsd.h: Likewise.
11244 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11246 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11247 regformats/reg-s390x.dat.
11249 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11251 * utils.c: Add FIXME explaining true/false problem.
11253 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11255 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11257 2002-02-28 Michael Chastain <mec@shout.net>
11259 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11261 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11263 * gdbserver/linux-s390-low.c: New file.
11264 * regformats/reg-s390.dat: New file.
11265 * regformats/reg-s390x.dat: New file.
11266 * gdbserver/configure.srv: Add S/390.
11267 * gdbserver/Makefile.in: Add S/390.
11268 * configure.tgt: Enable gdbserver for S/390.
11270 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11272 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11273 first line of the doc string for "info dos", except at the end of
11274 the sentence, since the short help stops at the first period.
11276 2002-02-28 Jason Merrill <jason@redhat.com>
11278 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11280 2002-02-27 Fred Fish <fnf@redhat.com>
11282 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11283 comment (dumy -> dummy).
11285 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11287 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11289 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11291 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11293 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11295 * gdbserver/acconfig.h: New file.
11296 * gdbserver/i387-fp.c: New file.
11297 * gdbserver/i387-fp.h: New file.
11298 * gdbserver/linux-x86-64.c: New file.
11299 * regformats/reg-x86-64.dat: New file.
11300 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11301 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11302 * gdbserver/configure.in: Add support for regsets.
11303 * gdbserver/config.in: Regenerate.
11304 * gdbserver/configure: Regenerate.
11305 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11306 * gdbserver/linux-low.h: New file.
11307 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11309 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11310 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11311 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11312 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11313 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11314 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11315 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11316 "i387-fp.h". Add PTRACE_GETREGS and friends.
11317 * gdbserver/regcache.c (supply_register): New function.
11318 (supply_register_by_name): New function.
11319 (collect_register): New function.
11320 (collect_register_by_name): New function.
11322 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11324 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11325 (config.status): Add configure.srv dependency.
11326 (server_h): Add config.h dependency.
11328 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11330 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11331 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11332 * gdbserver/configure.srv: Change i386-*-linux* to use
11335 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11337 * x86-64-tdep.c: Re-indent. Update copyright date.
11339 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11341 From Michal Ludvig <mludvig@suse.cz>:
11342 * x86-64-tdep.c (value.h): Delete.
11343 (gdb_assert.h): Include.
11344 (x86_64_register_convert_to_virtual,
11345 x86_64_register_convert_to_raw ): Add check which lets only
11346 floating-point values to be converted.
11347 (value_push): Delete.
11348 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11349 (i386_gdbarch_init): Number of register_bytes fixed.
11351 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11353 * MAINTAINERS: Add x86-64 target.
11355 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11357 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11358 * osfsolib.c (solib_map_sections): Ditto.
11359 * irix5-nat.c (solib_map_sections): Ditto.
11360 * corelow.c (gdb_check_format): Ditto.
11361 * symfile.c (symfile_bfd_open): Ditto.
11362 * solib.c (solib_map_sections): Ditto.
11365 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11367 * remote.c (_initialize_remote): By default, disable ``e'' and
11368 ``E'' step out-of-range packets.
11370 2002-02-26 Andreas Schwab <schwab@suse.de>
11372 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11373 m68k_linux_frame_saved_pc.
11374 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11376 (SIGCONTEXT_PC_OFFSET): Remove.
11377 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11378 m68k_linux_sigtramp_saved_pc): New functions.
11379 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11380 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11381 (UCONTEXT_PC_OFFSET): Define.
11382 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11383 non-RT and RT signal trampolines.
11385 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11387 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11388 (TARGET_NBPG, STACK_END_ADDR): Delete
11389 (VARIABLES_INSIDE_BLOCK): Delete.
11391 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11393 * utils.c (perror_with_name): Make string parameter constant.
11394 (print_sys_errmsg): Ditto.
11396 * defs.h (perror_with_name): Update.
11397 (print_sys_errmsg): Update.
11400 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11402 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11403 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11405 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11407 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11408 if it already matches the current architecture from the exec file.
11409 Include arch-utils.h for gdbarch_info_init prototype.
11410 * Makefile.in (rs6000-nat.o): Update dependencies.
11412 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11414 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11415 list of exported variables.
11417 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11419 * gdbserver/configure.srv: New file.
11420 * gdbserver/configure.in: Use configure.srv instead
11421 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11423 * gdbserver/configure: Regenerated.
11424 * gdbserver/terminal.h: New file.
11425 * gdbserver/Makefile.in: Update for configure changes. Remove
11426 more unneeded include paths.
11428 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11430 From wiz at danbala:
11431 * config/sparc/tm-sp64.h: Fix grammar and typos.
11434 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11436 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11437 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11438 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11439 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11440 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11441 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11442 * s390-tdep.c: Ditto.
11443 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11444 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11445 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11446 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11447 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11448 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11449 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11450 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11451 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11452 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11455 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11457 * lin-thread.c: Delete file.
11458 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11459 to gdb_proc_service.h.
11460 * configure: Re-generate.
11462 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11463 * serial.c (serial_open): Delete check for "ocd".
11466 * Makefile.in (linux-thread.o): Delete target.
11467 * linux-thread.c: Delete file.
11469 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11470 renamed SH files to be consistent.
11472 * symtab.c (sort_search_symbols): Use xfree.
11474 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11476 * arm-linux-tdep.c (arm_linux_init_abi): Register
11477 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11478 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11479 definition with undef, since we don't want the sysvr4 definition.
11480 (SKIP_TRAMPOLINE_CODE): Likewise.
11482 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11484 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11486 * configure.in: (AC_CHECK_FUNCS) Added test for
11487 canonicalize_file_name Regenerated.
11488 * config.in, configure: Regenerated.
11489 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11490 defined use canonicalize_file_name.
11492 2002-02-23 Michael Chastain <mec@shout.net>
11494 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11496 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11498 * README: Remove references to cygnus.com.
11499 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11500 dot com'' form. Remove references to cygnus.com and sourceware.
11502 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11504 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11505 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11506 1003.1-2001 no longer allows "head -1".
11507 * gdb/Makefile.in (version.c): Likewise.
11508 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11509 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11510 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11512 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11514 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11515 * command.h (cmd_cfunc_eq): Declare.
11516 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11518 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11519 ``struct cmd_list_element *''.
11520 * cli/cli-cmds.c (is_complete_command): Update. Use
11522 * top.c (execute_command): Pass the command to
11523 is_complete_command.
11524 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11526 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11528 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11529 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11530 architecture defines.
11531 * s390-tdep.c (s390_gdbarch_init): Likewise.
11533 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11535 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11536 (arm_linux_push_arguments): Likewise.
11537 (arm_linux_init_abi): Register them. Also register linux-specific
11539 (find_minsym_and_objfile): Use strcmp, not STREQ.
11540 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11541 (arm_linux_call_dummy_words): Delete declaration.
11542 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11543 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11545 (LOWEST_PC): Delete.
11547 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11549 * maint.c (print_section_info): Do not prepend `0x' to filepos
11550 output, it will be handled by local_hex_string_custom.
11552 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11554 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11555 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11556 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11558 2002-02-22 Jim Blandy <jimb@redhat.com>
11560 Indicate that the bcache functions don't change the strings
11562 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11563 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11565 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11567 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11569 2002-02-21 Christopher Faylor <cgf@redhat.com>
11571 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11572 find the complete path to a loaded DLL.
11574 2002-02-21 Fred Fish <fnf@redhat.com>
11576 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11577 that marks the end of the range of a function, enter a line number
11578 entry that has a line number of zero and a PC offset that matches
11579 the end of the function. This starts a range of PC's for which no
11580 line number information is known.
11581 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11582 PC's for which no line number info is found (line number is zero)
11583 then we didn't find any valid line information.
11584 * symtab.h: Document use of zero line number entry.
11586 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11588 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11589 (have_ptrace_getvrregs): Define for run time checks.
11590 (gdb_vrregset_t): New type for Altivec register handling.
11591 (fetch_register, store_register): Fetch/store altivec register
11593 (fetch_altivec_register, store_altivec_register): New functions.
11594 (supply_vrregset, fill_vrregset): New functions.
11595 (fetch_altivec_registers, store_altivec_registers): New functions.
11596 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11599 2002-02-21 Jiri Smid <smid@suse.cz>
11601 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11603 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11605 * Makefile.in (armnbsd-nat.o): Update dependencies.
11606 * armnbsd-nat.c (supply_gregset): New function. Common code to
11607 supply the integer register set.
11608 (supply_fparegset): New function. Similar for FPA registers.
11609 (fetch_regs, fetch_fp_regs): Use them.
11610 (fetch_core_registers): Likewise.
11611 (fetch_elfcore_registers): New function.
11612 (arm_netbsd_elfcore_fns): New core-file type specification.
11613 (_initialize_arm_netbsd_nat): Register it.
11615 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11617 * armnbsd-nat.c: Include gdbcore.h.
11618 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11619 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11620 'void' to declaration, to shut up ARI.
11621 (fetch_core_registers): Make static. Rewrite using supply_register.
11622 (arm_netbsd_core_fns): New core-file type specification.
11623 (_initialize_arm_netbsd_nat): New function.
11625 2002-02-21 Christopher Faylor <cgf@redhat.com>
11627 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11630 2002-02-20 Christopher Faylor <cgf@redhat.com>
11632 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11635 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11637 * jv-exp.y (parse_number): Change type of implicit longs
11638 to builtin_type_uint64.
11640 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11642 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11643 to be an integer instead of a `union wait'.
11645 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11647 * mips-linux-nat.c: Call the operating system GNU/Linux.
11648 * mips-linux-tdep.c: Likewise.
11649 * mips-tdep.c: Likewise.
11651 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11654 * jv-exp.y (parse_number): Handle 64-bit integers.
11656 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11658 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11659 AC_STDC_HEADERS to AC_HEADER_STDC.
11660 * gdbserver/configure: Regenerated.
11662 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11664 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11666 * sparc-tdep.c (get_longjmp_target): Likewise.
11668 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11670 * News: Add news about ARM and Multi-arch. Mention the new target
11673 2002-02-19 Jim Blandy <jimb@redhat.com>
11675 * stabsread.c (error_type_complaint): Improve error message.
11677 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11679 * gdbserver/README: Update documentation.
11680 * gdbserver/configure.in: Update configury to match documentation.
11681 * gdbserver/Makefile.in: Likewise.
11682 * gdbserver/configure: Regenerated.
11683 * gdbserver/aclocal.m4: New file, generated by aclocal.
11684 * gdbserver/config.in: New file, generated by autoheader.
11686 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11688 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11691 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11693 * arm-tdep.h (enum arm_float_model): New enum.
11694 (struct gdbarch_tdep): Add fp_model.
11695 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11696 up floating-point conversions until we know the floating-point model
11697 in use by the inferior. Don't complain about being unable to
11698 determine the ABI of the inferior when we don't have one.
11699 (arm_extract_return_value): Support different floating-point models.
11700 (arm_store_return_value): Likewise.
11701 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11703 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11705 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11707 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11708 of ``current_gdbarch''.
11710 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11712 * armnbsd-nat.c : ANSIfy all function declarations.
11713 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11714 (fetch_inferior_registers): Re-implement in terms of above.
11715 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11716 (store_inferior_registers): Re-implement in terms of above.
11718 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11720 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11722 * arm-linux-tdep.c: Likewise.
11723 * config/arm/tm-linux.h: Likewise.
11725 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11727 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11728 * config/arm/nbsd.mt (TM_FILE): Delete.
11729 * config/arm/tm-nbsd.h: Delete.
11731 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11733 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11734 Initialize CALL_DUMMY_LENGTH.
11736 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11738 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11740 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11741 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11742 defines one thing and that is incorrect for this port.
11743 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11745 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11747 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11749 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11751 * win32-nat.c (display_selector): New function. Displays information
11752 about the information returned by GetThreadSelectorEntry API function.
11753 (display_selectors): New function. Displays the infomation of
11754 the selector given as argument, or of CS, DS ans FS selectors
11755 if no argument is given.
11756 ( _initialize_inftarg): Add "w32" as info prefix command.
11757 Add "info w32 selector" as command calling display_selectors.
11759 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11761 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11762 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11765 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11767 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11769 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11771 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11772 (arm_fix_call_dummy): Call it.
11773 (arm_call_dummy_breakpoint_offset): Delete.
11774 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11775 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11777 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11779 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11780 Default to func_frame_chain_valid.
11781 * gdbarch.h, gdbarch.c: Re-generate.
11782 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11784 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11786 * ppc-linux-nat.c: Update copyright.
11787 (fetch_register, store_register): Add tid parameter, don't compute
11789 (fetch_ppc_registers, store_ppc_registers): Add tid
11790 parameter. Pass it along to callees.
11791 (fetch_inferior_registers, store_inferior_registers): Compute tid
11792 here, and pass it to calleed functions.
11793 (fill_gregset, supply_fpregset): Clean up formatting.
11795 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11797 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11798 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11800 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11802 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11803 * gdbarch.c gdbarch.h: Regenerate.
11804 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11806 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11807 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11808 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11810 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11811 * arm-tdep.c (arm_get_longjmp_target): New function.
11812 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11813 this to a positive value register arm_get_longjmp_target as the
11815 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11816 (arm_linux_init_abi): Set up longjmp description in tdep.
11817 * armnbsd-nat.c (get_longjmp_target): Delete.
11818 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11819 description in tdep.
11820 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11821 (get_longjmp_target): Delete declaration.
11822 (GET_LONGJMP_TARGET): Delete.
11823 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11824 (GET_LONGJMP_TARGET): Delete.
11826 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11828 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11829 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11830 of ``current_gdbarch''.
11832 2002-02-17 Tom Tromey <tromey@redhat.com>
11834 * cli/cli-cmds.c (compare_strings): New function.
11835 (complete_command): Only print each unique item once.
11836 * completer.h (complete_line): Declare.
11837 * completer.c (complete_line): New function.
11838 (line_completion_function): Use it.
11840 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11842 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11843 * gdbarch.h, gdbarch.c: Re-generate.
11845 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11847 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11849 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11851 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11852 * valops.c (value_arg_coerce): Don't take the address of a reference
11853 to convert an argument to a reference.
11855 2002-02-15 Christopher Faylor <cgf@redhat.com>
11857 * win32-nat.c (get_image_name): New function.
11858 (handle_load_dll): Use get_image_name function.
11859 (get_child_debug_event): Avoid registering debug events until possibly
11860 execed process is started.
11861 (child_create_inferior): Allow invocation via shell so that command
11862 line redirection, etc. works ok.
11863 (_initialize_inftarg): Add new command: "set shell" to control whether
11864 a shell is used to start a process.
11866 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11868 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11869 instead of find_register_by_number.
11870 (cannot_store_register): Likewise.
11872 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11874 * dwarf2read.c: Replace fprintf (stderr, ...) by
11875 fprintf_unfiltered (gdb_stderr, ...).
11877 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11879 * gdbserver/gdbserver.1: Document --attach.
11881 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11883 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11885 * arm-tdep.c (arm_default_arm_le_breakpoint)
11886 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11887 (arm_default_thumb_be_breakpoint): New. Initialize them from
11888 traditional breakpoint defines.
11889 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11890 (arm_gdbarch_init): Initialize new breakpoint variables.
11891 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11892 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11893 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11894 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11896 (arm_netbsd_init_abi_common): ... here; new function.
11897 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11898 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11899 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11900 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11902 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11904 * arm-tdep.h (enum arm_abi): New enum.
11905 (struct gdbarch_tdep): New structure.
11906 (LOWEST_PC): Provide a default.
11907 (arm_gdbarch_register_os_abi): Declare new function.
11908 * arm-tdep.c (arm_abi_names): New array.
11909 (process_note_abi_tag_sections): New function.
11910 (get_elfosabi): New function.
11911 (arm_gdbarch_register_os_abi): New function.
11912 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11913 support for that ABI has been built in, then call the appropriate
11914 configuration routine. Use gdbarch_num_regs() to get the number
11916 (arm_dump_tdep): New function.
11917 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11918 place-holder functions.
11919 (_initialize_arm_tdep): Register them.
11920 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11922 * armnbsd-tdep.c: New file.
11923 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11924 * config/arm/nbsd.mt (TDEPFILES): Add it.
11925 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11927 * armnbsd-nat.c: Include regcache.h.
11928 * Makefile.in (armnbsd-nat.o): Update dependency list.
11930 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11932 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11934 * gdbserver/Makefile.in: Fix typos in target rules.
11936 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11938 Fix part of PR gdb/267.
11939 * linespec.c (find_methods): Handle constructors specially for now.
11941 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11943 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11945 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11946 standard_coerce_float_to_double().
11948 2002-02-14 Christopher Faylor <cgf@redhat.com>
11950 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11953 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11955 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11956 find_variant_by_name, because it confuses the multiarch
11957 framework. Return NULL if there isn't an architecture with the
11958 user supplied name, instead of forcing a different one without
11959 recording the change with the multiarch machinery.
11960 (find_variant_by_name): Delete.
11962 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11964 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11965 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11967 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11969 * stack.c (print_frame_info_base): When calling
11970 print_frame_info_listing_hook, set current_source_symtab.
11972 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11974 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11975 and remove unused $(INCLUDE_DIR).
11976 Add regcache.c to OBS.
11977 Add generated register protocol files to clean target.
11978 Update dependencies for new objects, obsolete old target code.
11980 * gdbserver/linux-low.c: Remove all platform-specific code to
11981 new files. Remove various dead code. Update to use regcache
11983 * gdbserver/remote-utils.c (fromhex): Add return statement
11985 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11987 (input_interrupt): Add integer parameter to match prototype
11988 of a signal handler.
11989 (outreg): Use register_data ().
11990 (prepare_resume_reply): Use gdbserver_expedite_regs.
11991 * gdbserver/server.c (main): Dynamically allocate own_buf because
11992 PBUFSIZ is no longer constant. Use registers_to_string () and
11993 registers_from_string ().
11994 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11995 for error (), fatal (), and warning (). Update definition of
11996 PBUFSIZ to use regcache functionality. Add include guard.
11997 * gdbserver/utils.c (fatal): Add missing ``const''.
11998 (warning): New function.
12000 * regformats/regdat.sh: Include "regcache.h" in generated files.
12001 Provide init_registers () function.
12002 * regformats/regdef.h: Add prototype for set_register_cache ().
12005 * gdbserver/linux-arm-low.c: New file.
12006 * gdbserver/linux-i386-low.c: New file.
12007 * gdbserver/linux-ia64-low.c: New file.
12008 * gdbserver/linux-m68k-low.c: New file.
12009 * gdbserver/linux-mips-low.c: New file.
12010 * gdbserver/linux-ppc-low.c: New file.
12011 * gdbserver/linux-sh-low.c: New file.
12013 * gdbserver/regcache.c: New file.
12014 * gdbserver/regcache.h: New file.
12016 * gdbserver/low-linux.c: Removed obsolete file.
12018 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12020 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12021 * config/i386/linux.mt: Likewise.
12022 * config/ia64/linux.mt: Likewise.
12023 * config/m68k/linux.mh: Likewise.
12024 * config/powerpc/linux.mh: Likewise.
12025 * config/mips/linux.mt: Likewise.
12027 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12029 * config/i386/i386lynx.mh: Mark gdbserver variables
12030 as (currently) obsolete for this target.
12031 * config/i386/nbsd.mt: Likewise.
12032 * config/i386/nbsdelf.mt: Likewise.
12033 * config/m32r/m32r.mt: Likewise.
12034 * config/m68k/m68klynx.mh: Likewise.
12035 * config/m68k/nbsd.mt: Likewise.
12036 * config/m68k/sun3os4.mh: Likewise.
12037 * config/mips/vr5000.mt: Likewise.
12038 * config/ns32k/nbsd.mt: Likewise.
12039 * config/pa/hppabsd.mh: Likewise.
12040 * config/pa/hppaosf.mh: Likewise.
12041 * config/powerpc/nbsd.mt: Likewise.
12042 * config/rs6000/rs6000lynx.mh: Likewise.
12043 * config/s390/s390.mt: Likewise.
12044 * config/s390/s390x.mt: Likewise.
12045 * config/sparc/sparclynx.mh: Likewise.
12046 * config/sparc/sun4os4.mh: Likewise.
12047 * config/i386/x86-64linux.mt: Likewise.
12048 * config/sparc/linux.mh: Likewise.
12050 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12052 * configure.tgt: Configure gdbserver only for known working
12053 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12054 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12055 SUBDIRS if it is configured. Update comment for ${nativefile}.
12056 * configure: Regenerated.
12058 2002-02-13 Michael Snyder <msnyder@redhat.com>
12060 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12062 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12063 (default_gcore_mach): Just return 0, work around a problem in bfd.
12064 (default_gcore_target): OK to return NULL if exec_bfd is null.
12065 (make_mem_sec): Use a cast, avoid a warning.
12067 * procfs.c (find_memory_regions_callback): Use a cast instead of
12068 calling host_pointer_to_address (which complains if
12069 sizeof (host pointer) != sizeof (target pointer)).
12070 (procfs_make_note_section): Avoid overflow in psargs string.
12072 * procfs.c (procfs_make_note_section): Make the default
12073 implementation return an error.
12075 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12077 * procfs.c (procfs_make_note_section): Provide a default definition
12078 (for alpha-dec-osf4.0f). Fix typos.
12080 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12082 * linux-proc.c: Add include of regcache.h.
12083 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12085 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12087 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12088 * memattr.c (create_mem_region): Disallow useless empty region.
12089 Regions are half-open intervals, so allow [A..B) [B..C) as
12092 2002-02-13 Michael Chastain <mec@shout.net>
12094 * defs.h: Kill CONST_PTR.
12095 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12096 * c-lang.c (c_builtin_types): Likewise.
12097 * ch-lang.c (ch_builtin_types): Likewise.
12098 * f-lang.c (f_builtin_types): Likewise.
12099 * language.c (unknown_builtin_types): Likewise.
12100 * m2-lang.c (m2_builtin_types): Likewise.
12101 * p-lang.c (pascal_builtin_types): Likewise.
12102 * scm-lang.c (c_builtin_types): Likewise.
12104 2002-02-13 Keith Seitz <keiths@redhat.com>
12106 * arm-tdep.h (arm_get_next_pc): Add declaration.
12108 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12110 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12111 with other related struct-returning functions.
12112 (arm_extract_struct_value_address): New function.
12113 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12114 initialize float_format, double_format and long_double_format as
12115 appropriate to the endianness of the target.
12116 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12117 (arm_use_struct_convention): Delete declaration.
12118 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12120 2002-02-13 Keith Seitz <keiths@redhat.com>
12122 * defs.h (core_addr_to_string_nz): New function.
12124 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12126 Apply missing bits of 2002-01-15 patch.
12127 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12128 (fill_fpregset): Use i387_fill_fsave.
12130 2002-02-12 Keith Seitz <keiths@redhat.com>
12132 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12133 (core_addr_to_string_nz): New function.
12135 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12137 * arm-linux-nat.c: Really include arm-tdep.h.
12138 * config/arm/tm-linux.h (struct type, struct value): Declare.
12140 2002-02-11 Michael Snyder <msnyder@redhat.com>
12142 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12143 (gcore section): Ifdef for Solaris and Unixware only.
12144 (procfs_do_thread_registers): Unixware needs one lwpstatus
12145 per thread (not one prstatus or pstatus).
12146 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12147 not over all gdb threads. For unixware, call elfcore_write_pstatus
12148 once before iterating over threads.
12150 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12152 * arm-tdep.h: New file.
12153 * arm-tdep.c: Include arm-tdep.h.
12154 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12155 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12156 (arm_print_float_info, arm_register_type, convert_to_extended)
12157 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12158 (arm_extract_return_value, arm_register_name): Make static.
12159 (arm_software_single_step): Similarly. Fix types in declaration.
12160 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12161 (arm_store_return_value, arm_store_struct_return): New functions.
12162 (arm_gdbarch_init): Register the above functions. Also register
12163 call_dummy_start_offset, sizeof_call_dummy_words,
12164 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12165 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12166 max_register_virtual_size, register_size. Set up
12167 prologue_cache.saved_regs here, rather than ...
12168 (_initialize_arm_tdep): ... here.
12169 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12171 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12172 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12173 (arm_print_float_info, arm_register_type, convert_to_extended)
12174 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12175 (arm_extract_return_value, arm_register_name): Delete declarations.
12176 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12177 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12178 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12179 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12180 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12181 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12182 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12183 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12184 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12185 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12186 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12187 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12189 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12190 * remote-rdi.c remote-rdp.c: Likewise.
12191 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12192 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12193 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12196 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12197 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12198 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12199 from non-ARM_ prefixed definitions.
12200 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12202 * remote-rdi.c remote-rdp.c: Likewise.
12203 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12205 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12207 * arm-tdep.c (arm_frameless_function_invocation)
12208 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12209 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12210 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12211 (arm_pop_frame, arm_get_next_pc): Make static.
12212 (arm_gdbarch_init): Register above in gdbarch structure.
12213 (arm_read_fp): Renamed from arm_target_read_fp.
12214 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12215 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12216 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12217 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12218 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12219 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12220 (arm_pc_is_thumb_dummy): Delete declarations.
12221 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12222 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12223 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12224 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12226 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12228 * symtab.c (compare_search_syms): New function.
12229 (sort_search_symbols): New function.
12230 (search_symbols): Sort symbols after searching rather than
12233 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12235 * NEWS: Linux -> GNU/Linux.
12237 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12239 * gdbarch.sh: For for level one methods, disallow a definition
12240 when partially multi-arched. Add comments explaining rationale.
12241 * gdbarch.h: Re-generate.
12243 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12245 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12246 multi-arch partial.
12248 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12250 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12251 field. Use diff -u.
12252 * gdbarch.c: Re-generate.
12254 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12256 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12257 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12260 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12262 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12263 multi-arch partial.
12264 (PUSH_ARGUMENTS): Switch to using predefault.
12265 * gdbarch.c: Regenerate.
12267 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12269 * valops.c (PUSH_ARGUMENTS): Delete definition.
12270 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12271 partial. Default to default_push_arguments.
12272 * gdbarch.h, gdbarch.c: Regenerate.
12274 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12276 * defs.h (throw_exception): Rename return_to_top_level. Update
12278 * utils.c (error_stream, internal_verror, quit): Ditto.
12279 * top.c (throw_exception, catcher): Ditto.
12280 * sparclet-rom.c (sparclet_load): Ditto.
12281 * remote.c (interrupt_query, minitelnet): Ditto.
12282 * remote-sds.c (interrupt_query): Ditto.
12283 * remote-mips.c (mips_error, mips_kill): Ditto.
12284 * ocd.c (interrupt_query): Ditto.
12285 * monitor.c (monitor_interrupt_query): Ditto.
12286 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12287 * target.h: Update comment.
12289 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12291 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12293 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12294 default_double_format.
12295 * gdbarch.h, gdbarch.c: Re-generate.
12296 * findvar.c (floatformat_unknown): Delete variable definition.
12297 * doublest.h (floatformat_unknown): Delete variable declaration.
12299 2002-02-09 Jim Blandy <jimb@redhat.com>
12301 * stabsread.c (read_type): Add code to parse Sun's syntax for
12302 prototyped function types.
12304 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12306 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12307 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12309 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12311 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12312 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12313 now _initialize_xcoffsolib gets called again and overrides the
12314 commands from solib.c in a native configuration.
12316 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12318 * doublest.c (store_typed_floating): Don't try to return a value.
12321 2002-02-08 Jim Blandy <jimb@redhat.com>
12323 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12324 is prototyped and has no arguments, print its argument list as
12327 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12329 * MAINTAINERS (write-after-approval): Add myself.
12330 (paper-trail): I've escaped!
12332 2002-02-08 Christopher Faylor <cgf@redhat.com>
12334 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12336 (_initialize_check_for_gdb_ini): Ditto.
12338 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12340 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12341 xaprintf -> xasprintf.
12343 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12345 * win32-nat.c: Remove use of printf and sprintf functions.
12347 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12349 * arm-tdep.c (arm_frame_chain_valid): Make static.
12350 (arm_push_arguments): Likewise.
12351 (arm_gdbarch_init): New function.
12352 (_initialize_arm_tdep): Call it.
12353 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12354 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12355 (FRAME_CHAIN_VALID): Delete.
12356 (arm_frame_chain_valid): Delete declaration.
12357 (PUSH_ARGUMENTS): Delete.
12358 (arm_push_arguments): Delete declaration.
12359 (CALL_DUMMY_P): Delete.
12361 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12362 Corinna Vinschen <vinschen@redhat.com>
12364 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12365 on builtin float types.
12367 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12369 * utils.c: Include <curses.h> before "bfd.h".
12370 * tui/tui-hooks.c: Likewise.
12371 * tui/tui.c: Likewise.
12372 * tui/tuiCommand.c: Likewise.
12373 * tui/tuiData.c: Likewise.
12374 * tui/tuiDataWin.c: Likewise.
12375 * tui/tuiDisassem.c: Likewise.
12376 * tui/tuiGeneralWin.c: Likewise.
12377 * tui/tuiIO.c: Likewise.
12378 * tui/tuiLayout.c: Likewise.
12379 * tui/tuiRegs.c: Likewise.
12380 * tui/tuiSource.c: Likewise.
12381 * tui/tuiSourceWin.c: Likewise.
12382 * tui/tuiStack.c: Likewise.
12383 * tui/tuiWin.c: Likewise.
12385 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12387 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12388 to include space for pseudoregs as well. Update loops accordingly.
12389 (sh_fp_frame_init_saved_regs): Ditto.
12390 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12392 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12394 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12395 Add Richard Earnshaw to Arm maintainers.
12397 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12399 * defs.h (warning_begin): Delete declaration.
12401 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12404 2002-02-07 Michael Snyder <msnyder@redhat.com>
12406 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12407 Logic bug, remove misplaced else.
12409 2002-02-07 Klee Dienes <klee@apple.com>
12411 * fork-inferior.c (fork_inferior): Add '!' to the list of
12412 characters that need to be quoted when building a string for the
12413 shell. Quote '!' specifically with a backslash, since CSH chokes
12414 when trying to evaluate "str!str".
12416 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12418 * rdi-share/host.h: Only provide a typedef for bool if it is not
12421 2002-02-04 Michael Snyder <msnyder@redhat.com>
12423 * breakpoint.h (enum bptype): Add new overlay event bp type.
12424 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12426 * breakpoint.c (create_internal_breakpoint): New function.
12427 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12428 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12429 (create_thread_event_breakpoint): Ditto.
12430 (create_solib_event_breakpoint): Ditto.
12431 (create_overlay_event_breakpoint): New function.
12432 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12433 (update_breakpoints_after_exec): Delete and re-initialize
12434 overlay event breakpoints after an exec. Add FIXME comment
12435 about longjmp breakpoint.
12436 (print_it_typical): Ignore overlay event breakpoints.
12437 (print_one_breakpoint): Ditto.
12439 (bpstat_what): Do not stop for overlay event breakpoints.
12440 (delete_breakpoint): Don't delete overlay event breakpoints.
12441 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12442 (breakpoint_re_set): Re-create overlay event breakpoint.
12444 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12445 (overlay_manual_command): Disable overlay breakpoints.
12446 (overlay_off_command): Disable overlay breakpoints.
12448 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12450 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12451 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12452 to here from config/tm-arm.h.
12453 (coff_sym_is_thumb): Make static.
12454 (arm_elf_make_msymbol_special): New function.
12455 (arm_coff_make_msymbol_special): New function.
12456 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12457 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12458 (coff_sym_is_thumb): Delete declaration.
12459 (arm_elf_make_msymbol_special): Declare.
12460 (arm_coff_make_msymbol_special): Declare.
12461 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12462 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12464 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12466 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12468 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12470 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12471 * gdbarch.c gdbarch.h: Regenerate.
12472 * arch-utils.c (default_print_float_info): New function.
12473 * arch-utils.h (default_print_float_info): Prototype it.
12474 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12475 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12476 (PRINT_FLOAT_INFO): Document it.
12478 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12479 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12480 (PRINT_FLOAT_INFO): Define.
12482 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12484 * win32-nat.c (_initialize_check_for_gdb_ini):
12485 Add typecast to sprintf argument to suppress a warning.
12487 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12489 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12490 to allow easier handling of pass state.
12491 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12492 that gives exception name and address.
12493 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12494 and set last_sig value to ourstatus->value.sig. Some missing
12496 (child_continue): Correctly report continue_status.
12497 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12498 TARGET_SIGNAL_0 (new default value).
12499 (child_resume): consider sig argument passed to decide if
12500 the exception should be passed to debuggee or not.
12502 2002-02-05 Michael Snyder <msnyder@redhat.com>
12504 * regcache.c (fetch_register): Call target_fetch_register
12505 only if we don't call FETCH_PSEUDO_REGISTER.
12506 (store_register): Call target_store_register only if we
12507 don't call STORE_PSEUDO_REGISTER.
12509 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12511 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12512 ELF_MAKE_MSYMBOL_SPECIAL.
12513 * gdbarch.c, gdbarch.h: Regenerate.
12514 * arch-utils.c (default_make_msymbol_special): New function.
12515 * arch-utils.h (default_make_msymbol_special): Export.
12516 * elfread.c (elf_symtab_read): Compile use of
12517 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12519 * coffread.c (coff_symtab_read): Ditto, for
12520 COFF_MAKE_MSYMBOL_SPECIAL.
12522 2002-02-05 Jim Blandy <jimb@redhat.com>
12524 * solib-svr4.c (svr4_truncate_ptr): New function.
12525 (svr4_relocate_section_addresses): Do the address arithmetic with
12526 the appropriate truncation for target addresses, even when
12527 CORE_ADDR is larger than a target address.
12529 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12531 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12534 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12536 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12539 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12541 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12543 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12545 * gdbserver/linux-low.c: Remove unused include files.
12547 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12549 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12550 (read_inferior_memory): Use it.
12551 (write_inferior_memory): Likewise.
12553 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12555 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12556 grubbing through sys_errlist.
12558 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12560 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12562 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12563 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12565 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12567 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12568 (do_sfunc, set_cmd_sfunc): New functions.
12570 * command.h (struct cmd_list_element): Add field func.
12571 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12572 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12573 * cli/cli-decode.h: Ditto.
12575 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12576 (help_all, help_cmd_list): Ditto.
12577 (find_cmd, complete_on_cmdlist): Ditto.
12578 * top.c (execute_command): Ditto.
12580 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12583 * infcmd.c (notice_args_read): Fix function signature.
12585 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12586 * cli/cli-decode.c (add_set_cmd): Ditto.
12587 * utils.c (initialize_utils): Ditto.
12588 * maint.c (_initialize_maint_cmds): Ditto.
12589 * infrun.c (_initialize_infrun): Ditto.
12590 * demangle.c (_initialize_demangler): Ditto.
12591 * remote.c (add_packet_config_cmd): Ditto.
12592 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12593 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12594 * proc-api.c (_initialize_proc_api): Ditto.
12595 * kod.c (_initialize_kod): Ditto.
12596 * valprint.c (_initialize_valprint): Ditto.
12597 * top.c (init_main): Ditto.
12598 * infcmd.c (_initialize_infcmd): Ditto.
12599 * corefile.c (_initialize_core): Ditto.
12600 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12601 * arch-utils.c (initialize_current_architecture): Ditto.
12602 (_initialize_gdbarch_utils): Ditto.
12603 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12605 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12606 * wince.c (_initialize_inftarg): Ditto.
12607 * symfile.c (_initialize_symfile): Ditto.
12608 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12609 * language.c (_initialize_language): Ditto.
12610 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12612 2002-02-04 Michael Snyder <msnyder@redhat.com>
12614 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12616 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12618 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12619 Add rules for building the register data files.
12621 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12623 * regformats/regdat.sh: Add braces to the definition of
12624 expedite_regs_${arch}.
12626 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12628 * regformats/regdef.h (struct reg): Add comment describing the
12629 requirements for offset and size fields.
12631 2002-02-04 Andreas Schwab <schwab@suse.de>
12633 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12634 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12636 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12638 * gdbarch.sh (copyright): Update years in generated header.
12639 (SMASH_TEXT_ADDRESS): Add rule.
12640 * gdbarch.h, gdbarch.c: Re-generate.
12641 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12642 * dbxread.c: Likewise.
12643 * dwarfread.c: Likewise.
12644 * elfread.c: Likewise.
12645 * somread.c: Likewise.
12647 * arm-tdep.c (arm_smash_text_address): New function.
12648 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12650 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12652 Add support for hardware watchpoints on win32 native.
12653 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12654 CONTEXT_DEBUG_REGISTERS.
12655 (dr variable): New variable. Static array containing a local copy
12656 of debug registers.
12657 (debug_registers_changed): New variable. Reflects when debug registers
12658 are changed and need to be written to inferior.
12659 (debug_registers_used): New variable. Reflects when any debug register
12660 was set, used when new threads are created.
12661 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12663 (thread_rec): Set dr array if id is the thread of current_event .
12664 (child_continue, child_resume): Change the debug registers for all
12665 threads if debug_registers_changed.
12666 (child_add_thread): Change the debug registers if debug_registers_used.
12667 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12668 Link nm.h to new nm-cygwin.h file.
12669 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12670 of hardware registers.
12672 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12674 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12675 Restore behavour broken by 2002-01-20 Andrew Cagney
12676 <ac131313@redhat.com> IEEE_FLOAT removal.
12678 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12680 * c-valprint.c (c_val_print): Pass a proper valaddr to
12681 cp_print_class_method.
12682 * valops.c (search_struct_method): If there is only one method
12683 and args is NULL, return that method.
12685 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12687 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12688 accessing tag_name directly.
12690 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12692 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12693 of accessing tag_name directly.
12695 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12698 * gdbtypes.c (replace_type): New function.
12699 * gdbtypes.h (replace_type): Add prototype.
12700 * stabsread.c (read_type): Use replace_type.
12702 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12704 * Makefile.in (memattr.o): Add missing dependencies rule.
12706 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12708 * breakpoint.c (break_at_finish_command): Really export.
12709 (break_at_finish_at_depth_command): Ditto.
12710 (tbreak_at_finish_command): Ditto.
12711 * hppa-tdep.c: Include completer.h.
12712 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12713 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12715 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12717 * utils.c (do_write): New function.
12718 (error_stream): Rewrite combining the code from error_begin and
12720 (verror): Rewrite using error_stream.
12721 (error_begin): Delete function.
12723 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12725 * utils.c (error_begin): Make static.
12726 * defs.h (error_begin): Delete declaration.
12728 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12729 (decode_line_1): Use cplusplus_error instead of error_begin,
12730 cplusplus_hint and return_to_top_level.
12731 * coffread.c (coff_symfile_read): Use error instead of error_begin
12732 and return_to_top_level.
12733 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12735 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12737 * language.h (type_error, range_error): Make string parameter
12739 * language.c (warning_pre_print): Delete extern declaration.
12740 * dwarfread.c (warning_pre_print): Ditto.
12741 * language.c (type_error, range_error): Rewrite to use verror and
12742 vwarning instead of warning_begin.
12744 2002-02-01 Michael Snyder <msnyder@redhat.com>
12746 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12747 (set_ignore_count): Move misplaced comment back where it belongs.
12749 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12751 * command.h (NO_FUNCTION): Delete macro.
12752 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12753 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12754 * tracepoint.c (_initialize_tracepoint): Ditto.
12755 * cli/cli-decode.c (add_set_cmd): Ditto.
12756 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12758 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12760 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12761 Update ``this'' pointer when calling virtual functions.
12763 2002-02-01 Michael Snyder <msnyder@redhat.com>
12765 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12766 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12768 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12770 * regformats/reg-arm.dat: New file.
12771 * regformats/reg-i386.dat: New file.
12772 * regformats/reg-ia64.dat: New file.
12773 * regformats/reg-m68k.dat: New file.
12774 * regformats/reg-mips.dat: New file.
12775 * regformats/reg-ppc.dat: New file.
12776 * regformats/reg-sh.dat: New file.
12777 * regformats/regdef.h: New file.
12778 * regformats/regdat.sh: New file.
12780 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12782 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12783 (arm_frame_args_address, arm_frame_locals_address): New functions.
12784 (arm_frame_num_args): New function.
12785 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12786 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12787 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12789 2002-01-31 Michael Snyder <msnyder@redhat.com>
12791 * breakpoint.c (break_at_finish_command): Export.
12792 (break_at_finish_at_depth_command): Export.
12793 (tbreak_at_finish_command): Export.
12794 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12795 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12796 "txbreak" commands, which are HPPA specific.
12798 * printcmd.c (disassemble_command): Remove an ancient
12799 artifact of an old merge.
12801 * symfile.h (enum overlay_debugging_state):
12802 Define enum constant values for overlay mode.
12803 * symfile.c (overlay_debugging): Use enums instead of literals.
12804 (overlay_is_mapped, overlay_auto_command,
12805 overlay_manual_command): Ditto.
12807 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12808 breakpoint_here_p, breakpoint_inserted_here_p,
12809 breakpoint_thread_match, bpstat_stop_status,
12810 describe_other_breakpoints, check_duplicates, clear_command):
12811 Coding standard fixes.
12813 * target.c (target_xfer_memory): Add spaces, coding standard.
12814 (do_xfer_memory): Add missing line to trust-readonly
12815 code: check bfd SEC_READONLY flag for section.
12817 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12819 * PROBLEMS: Fix typo, 5.1->5.1.1.
12821 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12823 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12824 data symbols, since we search based on textlow and texthigh.
12825 (find_pc_sect_symtab): Likewise.
12827 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12829 * defs.h (vwarning): Declare.
12830 * utils.c (vwarning): New function.
12831 (warning): Call vwarning.
12832 (warning_begin): Delete function.
12834 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12835 the warning message.
12836 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12839 2002-01-30 Michael Snyder <msnyder@redhat.com>
12841 * NEWS: Mention "set trust-readonly-sections" command.
12842 Mention generate-core-file command.
12844 2002-01-15 Michael Snyder <msnyder@redhat.com>
12846 * target.c: New command, "set trust-readonly-sections on".
12847 (do_xfer_memory): Honor the suggestion to trust readonly sections
12848 by reading them from the object file instead of from the target.
12849 (initialize_targets): Register command "set trust-readonly-sections".
12851 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12853 * parse.c (target_map_name_to_register): Simplify, search regs and
12854 pseudo-regs using a single loop.
12856 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12858 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12860 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12862 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12863 * config/i386/i386v42mp.mh: Add i387-nat.o .
12864 * i386v4-nat.c: Include i387-nat.h.
12865 (supply_fpregset): Use i387_supply_fsave.
12866 (fill_fpregset): Use i387_fill_fsave.
12868 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12870 * arm-tdep.c (arm_call_dummy_words): Define.
12871 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12872 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12873 (CALL_DUMMY_WORDS): Define.
12874 (arm_call_dummy_words): Declare.
12875 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12876 (arm_linux_call_dummy_words): Declare.
12878 2002-01-30 Andreas Schwab <schwab@suse.de>
12880 * m68klinux-nat.c: Fix last change to use regcache_collect
12881 instead of referencing registers[] directly.
12883 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12885 * parse.c (target_map_name_to_register): Delete code wrapped in
12886 #ifdef REGISTER_NAME_ALIAS_HOOK.
12888 2002-01-28 Michael Snyder <msnyder@redhat.com>
12890 * regcache.c (legacy_read_register_gen): Need to be able to
12891 read pseudo-register as well as real register.
12892 (legacy_write_register_gen): Ditto.
12894 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12896 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12897 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12898 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12899 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12900 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12901 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12902 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12903 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12904 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12905 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12906 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12907 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12908 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12909 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12910 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12911 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12912 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12913 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12914 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12915 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12917 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12919 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12920 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12921 (initialize_current_architecture): Update target_byte_order using
12922 information from BFD.
12923 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12924 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12926 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12928 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12929 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12931 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12932 #ifdef INVALID_FLOAT.
12933 * infcmd.c (do_registers_info): Ditto.
12934 * values.c (unpack_double): Ditto. Add comment.
12936 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12937 already commented out.
12939 2002-01-26 Andreas Schwab <schwab@suse.de>
12941 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12942 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12943 registers and add support for PTRACE_GETREGS.
12945 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12947 GDB 5.1.1 released from 5.1 branch.
12948 * NEWS: Add 5.1.1 news.
12949 * README: Sync with 5.1 branch.
12951 2002-01-23 Fred Fish <fnf@redhat.com>
12953 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12954 stabstring on initial malloc. Reallocing will copy it for us,
12957 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12959 * Makefile.in (hpread_h): Delete.
12960 (HFILES_NO_SRCDIR): Remove hpread.h.
12961 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12962 (hpread.o): Update dependencies.
12963 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12965 * hp-psymtab-read.c: Remove file.
12966 * hp-symtab-read.c: Remove file.
12967 * hpread.h: Remove file.
12969 * hpread.c: Merge all contents of hp-psymtab-read.c,
12970 hp-symtab-read.c and hpread.h into this file, as it was prior to
12973 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12974 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12975 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12976 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12978 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12980 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12981 fill_gregset): Call gdbarch_tdep() just once, assign result to
12982 variable and use that, instead of calling the function several
12985 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12987 * configure.host: Accept sparcv9 as alias for sparc64.
12988 * configure.tgt: Likewise.
12990 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12992 * solib-aix5.c (build_so_list_from_mapfile)
12993 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12994 arguments is not reversed.
12995 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12996 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12998 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13000 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13001 modified version of obsolete sh_fetch_pseudo_register.
13002 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13003 (sh4_register_read): New function.
13004 (sh_pseudo_register_write): New function. Renamed and modified
13005 version of obsolete sh_store_pseudo_register.
13006 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13007 (sh4_register_write): New function.
13008 (sh_gdbarch_init): Remove setting of gdbarch function
13009 fetch_pseudo_register and store_pseudo_register. Remove setting of
13010 register_convert_to_raw, register_convert_to_virtual,
13011 register_convertible.
13012 (sh_sh4_register_convertible): Delete. No longer needed. All is
13013 taken care by architecture specific functions
13014 register_read/register_write.
13015 (sh_sh4_register_convert_to_virtual): Make static.
13016 (sh_sh4_register_convert_to_raw): Ditto.
13018 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13020 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13021 (floatformat_is_nan, floatformat_mantissa): Ditto.
13023 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13024 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13025 builtin_type_ieee_double_little,
13026 builtin_type_ieee_double_littlebyte_bigword,
13027 builtin_type_m68881_ext, builtin_type_i960_ext,
13028 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13029 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13030 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13031 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13033 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13035 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13036 parameter. Set frameless flag if it exists and depended of
13037 whether the scanned function is frameless or not.
13038 (xstormy16_skip_prologue): If function is frameless, return
13039 result of xstormy16_scan_prologue().
13040 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13043 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13045 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13046 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13047 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13048 sh_sh4_register_byte, sh_sh4_register_raw_size,
13049 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13050 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13051 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13052 sh_store_pseudo_register, sh_do_pseudo_register): Call
13053 gdbarch_tdep() just once, assign result to variable and use that,
13054 instead of calling the function several times.
13056 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13058 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13059 macros instead of LAST_FPU_CTRL_REGNUM.
13060 (store_register): Likewise.
13062 2002-01-21 Jim Blandy <jimb@redhat.com>
13064 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13065 is up-to-date before running the program, not just when a program
13068 2002-01-21 Fred Fish <fnf@redhat.com>
13070 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13071 when we have found all instructions we are looking for.
13073 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13075 * arm-tdep.c (arm_register_name): New function.
13076 (arm_registers_names): Make static.
13077 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13078 (arm_register_name): Declare.
13079 (REGISTER_NAME): Use it.
13081 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13082 Kevin Buettner <kevinb@redhat.com>
13084 Convert arm targets to new FRAME interface.
13085 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13086 (arm_frame_find_save_regs): Delete.
13087 (arm_frame_init_saved_regs): New.
13088 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13089 Allocate extra_info as required. Convert all uses of fsr.regs
13090 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13092 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13093 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13094 (check_prologue_cache, save_prologue_cache): Likewise.
13095 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13096 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13097 (FRAME_FIND_SAVED_REGS): Delete.
13098 (arm_frame_find_saved_regs): Delete prototype.
13099 (arm_frame_init_saved_regs): New prototype.
13100 (FRAME_INIT_SAVED_REGS): Define.
13102 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13104 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13106 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13108 From Jeff Law <law@redhat.com>:
13109 * infttrace.c: Include <sys/pstat.h>.
13110 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13111 exec file if the ttrace equivalent fails.
13113 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13115 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13116 (closeLogFile): Ditto.
13118 2002-01-20 Michael Chastain <mec@shout.net>
13120 * top.c (print_gdb_version): Bump copyright year to 2002.
13122 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13124 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13125 Zannoni and Eli Zaretskii.
13127 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13129 * buildsym.c: Update copyright years.
13130 * c-typeprint.c: Likewise.
13131 * dwarf2read.c: Likewise.
13132 * f-typeprint.c: Likewise.
13133 * gdbtypes.c: Likewise.
13134 * gdbtypes.h: Likewise.
13135 * hp-symtab-read.c: Likewise.
13136 * hpread.c: Likewise.
13137 * mdebugread.c: Likewise.
13138 * p-typeprint.c: Likewise.
13140 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13142 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13143 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13144 byte-order selectable.
13145 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13146 * arch-utils.c: Ditto.
13147 (set_endian): Ditto.
13148 (set_endian_from_file): Ditto.
13149 * gdbserver/low-sim.c (create_inferior): Ditto.
13150 * gdbarch.sh: Ditto.
13151 * gdbarch.h: Re-generate.
13152 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13153 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13154 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13155 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13156 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13157 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13158 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13159 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13161 * config/mips/tm-wince.h: Remove #undef of macro
13162 TARGET_BYTE_ORDER_SELECTABLE.
13163 * config/sh/tm-wince.h: Ditto.
13165 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13167 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13168 member function fields. Add accessor macro
13169 TYPE_FN_FIELD_ARTIFICIAL.
13170 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13171 * c-typeprint.c (c_type_print_base): Skip artificial member
13174 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13176 * f-typeprint.c: Delete unused function f_type_print_args.
13177 * p-typeprint.c: Delete unused function pascal_type_print_args.
13179 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13181 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13182 comment. Add ``artificial'' to ``union field_location''.
13184 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13186 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13187 * mdebugread.c (parse_symbol): Likewise.
13188 * stabsread.c (define_symbol): Likewise.
13189 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13190 initializing TYPE_FIELD_BITPOS to n (obsolete).
13191 (hpread_doc_function_type): Likewise.
13192 * hpread.c (hpread_function_type): Likewise.
13194 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13196 * configure.in (host_makefile_frag): Only require a host makefile
13197 fragment when a native build.
13198 * configure: Re-generate.
13200 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13202 * doublest.h (floatformat_from_type): Declare.
13203 * doublest.c (floatformat_from_type): New function.
13204 (convert_typed_floating): Use.
13206 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13207 call to function floatformat_from_type.
13209 * gdbarch.sh (IEEE_FLOAT): Delete.
13210 * gdbarch.h, gdbarch.c: Re-generate.
13211 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13212 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13213 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13214 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13215 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13216 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13217 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13218 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13219 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13220 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13221 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13222 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13224 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13225 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13226 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13227 * sh-tdep.c (sh_gdbarch_init): Ditto.
13228 * mips-tdep.c (mips_gdbarch_init): Ditto.
13229 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13230 * cris-tdep.c (cris_gdbarch_init): Ditto.
13232 2002-01-20 Jiri Smid <smid@suse.cz>
13234 * configure.host, configure.tgt: Support x86-64.
13235 * NEWS: Note new target x86-64.
13237 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13238 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13239 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13240 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13241 x86-64-linux-nat.o): Fix dependencies.
13243 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13245 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13246 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13247 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13248 * config/sparc/xm-sun4os4.h: Delete file.
13249 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13251 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13253 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13254 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13255 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13256 * config/i386/i386lynx.mh (XM_FILE): Delete.
13257 * config/rs6000/xm-rs6000ly.h: Delete file.
13258 * config/sparc/xm-sparclynx.h: Delete file.
13259 * config/m68k/xm-m68klynx.h: Delete file.
13260 * config/i386/xm-i386lynx.h: Delete file.
13261 * config/xm-lynx.h: Delete file.
13262 * config/djgpp/fnchange.lst: Update.
13264 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13266 * alpha-tdep.c (alpha_register_byte): New function.
13267 (alpha_register_raw_size): Ditto.
13268 (alpha_register_virtual_size): Ditto.
13269 (alpha_skip_prologue_internal): Renamed from
13270 alpha_skip_prologue.
13271 (alpha_skip_prologue): New version that calls
13272 alpha_skip_prologue_internal.
13273 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13274 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13275 second argument from alpha_skip_prologue.
13276 (REGISTER_BYTE): Use alpha_register_byte.
13277 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13278 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13279 (FRAMELESS_FUNCTION_INVOCATION): Use
13280 generic_frameless_function_invocation_not.
13281 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13282 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13284 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13286 * config/mips/xm-news-mips.h: Delete file.
13287 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13289 * config/m88k/xm-m88k.h: Delete file.
13290 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13291 * config/m88k/xm-delta88v4.h: Ditto.
13292 * config/m88k/xm-delta88.h: Ditto.
13294 * config/alpha/xm-fbsd.h: Delete file.
13295 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13297 * config/sparc/xm-sparc.h: Delete file.
13298 * Makefile.in (xm-sun4os4.h): Delete dependency.
13299 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13300 * config/sparc/xm-sun4os4.h: Ditto.
13301 * config/sparc/xm-linux.h: Ditto.
13303 * config/i386/xm-windows.h: Delete file.
13305 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13307 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13308 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13310 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13312 * alpha-tdep.c (alpha_call_dummy_words): New.
13313 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13314 (CALL_DUMMY_P): Define.
13315 (CALL_DUMMY_WORDS): Define.
13316 (SIZEOF_CALL_DUMMY_WORDS): Define.
13318 2002-01-19 Per Bothner <per@bothner.com>
13320 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13321 isn't NULL, which can happen with some gcj-3.x-produced code.
13323 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13325 * alpha-tdep.c (alpha_register_virtual_type): New function.
13326 (alpha_init_frame_pc_first): Ditto.
13327 (alpha_fix_call_dummy): Ditto.
13328 (alpha_store_struct_return): Ditto.
13329 (alpha_extract_struct_value_address): Ditto.
13330 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13331 alpha_register_virtual_type.
13332 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13333 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13334 alpha_extract_struct_value_address.
13335 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13336 (INIT_FRAME_PC): Use init_frame_pc_noop.
13337 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13339 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13341 * i386gnu-nat.c: Include "i386-tdep.h".
13342 (fetch_fpregs): Simplify code dealing with uninitialized floating
13343 point states such that it doesn't require FP7_REGNUM.
13345 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13347 * alpha-tdep.c (frame_extra_info): New.
13348 (alpha_find_saved_regs): Make static. Use
13350 (alpha_frame_init_saved_regs): New function.
13351 (alpha_frame_saved_pc): Use frame->extra_info.
13352 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13353 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13354 (init_extra_frame_info): Rename to...
13355 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13356 (alpha_print_extra_frame_info): New function.
13357 (alpha_frame_locals_address): Ditto.
13358 (alpha_frame_args_address): Ditto.
13359 (alpha_pop_frame): Use frame->extra_info.
13360 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13361 alpha_frame_args_address.
13362 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13363 (alpha_find_saved_regs): Remove prototype.
13364 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13365 (EXTRA_FRAME_INFO): Remove.
13366 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13367 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13369 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13371 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13372 (alpha_cannot_fetch_register): Ditto.
13373 (alpha_cannot_store_register): Ditto.
13374 (alpha_register_convertible): Ditto.
13375 (alpha_use_struct_convention): Ditto.
13376 * config/alpha/tm-alpha.h: Update copyright years.
13377 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13378 (INNER_THAN): Use core_addr_lessthan.
13379 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13380 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13381 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13382 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13383 (FRAME_CHAIN): Remove unnecessary cast.
13385 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13387 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13390 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13392 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13393 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13394 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13395 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13396 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13397 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13398 * x86-64-linux-nat.c: Ditto.
13400 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13402 * alpha-tdep.c (alpha_register_name): New function.
13403 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13404 (REGISTER_NAME): Define.
13406 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13408 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13410 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13412 * alpha-tdep.c: Update copyright years.
13413 (alpha_next_pc): New function.
13414 (alpha_software_single_step): Ditto.
13415 * config/alpha/tm-alpha.h: Add prototype for
13416 alpha_software_single_step.
13418 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13420 * alphabsd-nat.c: Update copyright years.
13421 (fill_gregset): Use regcache_collect.
13422 (fill_fpregset): Likewise.
13423 (fetch_inferior_registers): Only fetch integer registers
13424 if requested to do so.
13425 (store_inferior_registers): Only store integer registers
13426 if requested to do so.
13428 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13430 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13431 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13432 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13433 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13434 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13435 * config/arm/linux.mh (XDEPFILES): Delete.
13436 * config/arm/nbsd.mh (XDEPFILES): Delete.
13437 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13438 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13439 * config/i386/i386m3.mh (XDEPFILES): Delete.
13440 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13441 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13442 * config/i386/fbsd.mh (XDEPFILES): Delete.
13443 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13444 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13445 * config/i386/i386v4.mh (XDEPFILES): Delete.
13446 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13447 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13448 * config/i386/i386aix.mh (XDEPFILES): Delete.
13449 * config/i386/go32.mh (XDEPFILES): Delete.
13450 * config/i386/cygwin.mh (XDEPFILES): Delete.
13451 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13452 * config/i386/i386mach.mh (XDEPFILES): Delete.
13453 * config/i386/i386v32.mh (XDEPFILES): Delete.
13454 * config/i386/linux.mh (XDEPFILES): Delete.
13455 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13456 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13457 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13458 * config/i386/i386sco.mh (XDEPFILES): Delete.
13459 * config/i386/i386v.mh (XDEPFILES): Delete.
13460 * config/i386/nbsd.mh (XDEPFILES): Delete.
13461 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13462 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13463 * config/i386/symmetry.mh (XDEPFILES): Delete.
13464 * config/i386/obsd.mh (XDEPFILES): Delete.
13465 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13466 * config/ia64/linux.mh (XDEPFILES): Delete.
13467 * config/ia64/aix.mh (XDEPFILES): Delete.
13468 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13469 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13470 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13471 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13472 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13473 * config/m68k/linux.mh (XDEPFILES): Delete.
13474 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13475 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13476 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13477 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13478 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13479 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13480 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13481 * config/m88k/delta88.mh (XDEPFILES): Delete.
13482 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13483 * config/m88k/m88k.mh (XDEPFILES): Delete.
13484 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13485 * config/mips/linux.mh (XDEPFILES): Delete.
13486 * config/mips/irix6.mh (XDEPFILES): Delete.
13487 * config/mips/irix5.mh (XDEPFILES): Delete.
13488 * config/mips/irix4.mh (XDEPFILES): Delete.
13489 * config/mips/irix3.mh (XDEPFILES): Delete.
13490 * config/mips/decstation.mh (XDEPFILES): Delete.
13491 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13492 (NATDEPFILES): Move core-aout.o to here.
13493 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13494 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13495 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13496 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13497 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13498 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13499 * config/pa/hpux11.mh (XDEPFILES): Delete.
13500 * config/powerpc/aix.mh (XDEPFILES): Delete.
13501 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13502 * config/powerpc/linux.mh (XDEPFILES): Delete.
13503 * config/romp/rtbsd.mh: Rename XDEPFILES.
13504 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13505 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13506 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13507 * config/s390/s390.mh (XDEPFILES): Delete.
13508 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13509 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13510 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13511 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13512 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13513 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13514 * config/sparc/linux.mh (XDEPFILES): Delete.
13515 * config/vax/vaxult.mh (XDEPFILES): Delete.
13516 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13517 * Makefile.in (DEPFILES): Remove XDEPFILES.
13519 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13521 * utils.c (internal_verror): Fix comments, default is yes not no.
13522 Update queries to match. Default to quit and dump core.
13524 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13526 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13528 * defs.h, event-top.c, gdbcmd.h: Ditto.
13529 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13530 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13531 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13532 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13533 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13534 * mi/mi-main.c:Ditto.
13536 * stack.c, symfile.c: Update copyright.
13538 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13540 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13541 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13542 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13543 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13545 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13547 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13548 * gdbserver/low-lynx.c (myattach): Likewise.
13549 * gdbserver/low-nbsd.c (myattach): Likewise.
13550 * gdbserver/low-sim.c (myattach): Likewise.
13551 * gdbserver/low-sparc.c (myattach): Likewise.
13552 * gdbserver/low-sun3.c (myattach): Likewise.
13554 * gdbserver/low-linux.c (myattach): New function.
13556 * gdbserver/server.c (attach_inferior): New function.
13557 (main): Handle "--attach".
13559 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13561 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13564 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13566 * c-typeprint.c (is_type_conversion_operator): Add additional
13567 check for non-conversion operators.
13569 2002-01-15 Michael Snyder <msnyder@redhat.com>
13571 * linux-proc.c: Add "info proc" command, a la procfs.c.
13572 (read_mapping): New function, abstract and re-use code.
13573 (linux_find_memory_regions): Use new func read_mapping.
13574 (linux_info_proc_cmd): New function, implement "info proc".
13575 (_initialize_linux_proc): Add new command "info proc".
13577 2002-01-15 Michael Snyder <msnyder@redhat.com>
13579 * symfile.c (generic_load): Use bfd_map_over_sections method
13580 instead of manipulating bfd structure members directly.
13581 (add_section_size_callback): New function, bfd sections callback
13582 used by generic_load.
13583 (load_sections_callback): New function, bfd sections callback
13584 used by generic_load.
13586 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13588 [Based on work by Jim Blandy]
13589 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13590 (builtin_type_vec128): Export.
13591 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13593 (builtin_type_vec128): New builtin type for 128 bit vector
13595 (build_gdbtypes): Initialize builtin_type_v16qi and
13596 builtin_type_v8hi. Create the vec128 register builtin type
13598 (build_builtin_type_vec128): New function.
13599 (_initialize_gdbtypes): Register builtin_type_v16qi and
13600 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13601 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13602 AltiVec register to new builtin type.
13604 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13606 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13609 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13611 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13612 CLEAN_UP_REGISTER_VALUE.
13613 * regcache.c (supply_register): Update only call.
13615 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13617 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13618 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13619 a29k-*-vxworks* targets as obsolete.
13621 2002-01-14 Michael Snyder <msnyder@redhat.com>
13623 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13624 until we can resolve portability issues.
13625 * gregset.h: Remove references to fpxregs.
13626 * gcore.c (gcore_command): Initialize note_sec to NULL.
13628 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13630 * signals.c (target_signal_to_name): Rewrite. Only use
13631 signals[].name when in bounds and non-NULL.
13633 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13635 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13636 * signals.c (target_signal_to_name): Verify that SIG is within the
13637 bounds of the signals array.
13639 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13641 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13643 2002-01-13 Keith Seitz <keiths@redhat.com>
13645 * stack.c (print_frame_info_base): Print the frame's pc
13646 only if when print_frame_info_listing_hook is not defined.
13648 2002-01-13 Keith Seitz <keiths@redhat.com>
13650 * varobj.c (varobj_set_value): Make sure that there were no
13651 errors evaluating the object before attempting to set its
13653 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13654 so this offset adjustment is no longer necessary.
13655 (create_child): Don't set the error flag if the child is
13656 a CPLUS_FAKE_CHILD.
13657 (value_of_child): If value_fetch_lazy fails, return NULL
13658 so that callers will be notified that an error occurred.
13659 (c_value_of_variable): Delay check of variable's validity
13660 until later. We actually want all structs and unions to have
13662 Do not return "???" for variables which could not be evaluated.
13663 This error condition must be returned to the caller so that it
13664 can get the error condition from gdb.
13665 (cplus_name_of_child): Adjust index for vptr before figuring
13666 out the name of the child.
13667 (cplus_value_of_child): If a child's (real) parent is not valid,
13668 don't even bother trying to give a value for it. Just return
13669 an error. Change all instances in this function.
13670 (cplus_type_of_child): If our parent is one of the "fake"
13671 parents, we need to get at the type of the real parent, and
13672 derive the child's true type using this information.
13674 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13676 From 2002-01-09 John Marshall <johnm@falch.net>:
13677 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13678 sources.redhat.com, and tweak some related URLs which had
13679 suffered from linkrot.
13681 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13684 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13685 structures passed in registers.
13687 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13689 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13690 white space which prevented compilation. Reported by DSK
13691 <dsk@student.unsw.edu.au>.
13693 2002-01-11 Michael Snyder <msnyder@redhat.com>
13695 * symfile.c (build_section_addr_info_from_section_tab):
13696 Use bfd access method instead of manipulating bfd directly.
13697 (syms_from_objfile): Ditto.
13698 (simple_overlay_update_1): Ditto.
13699 (simple_overlay_update): Ditto.
13700 (generic_load): Ditto.
13701 (overlay_unmapped_address): FIXME comment, bfd access methods.
13702 (sections_overlap): FIXME comment, bfd access methods.
13703 (pc_in_mapped_range): FIXME comment, bfd access methods.
13704 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13705 (section_is_mapped): FIXME comment, bfd access methods.
13706 (section_is_overlay): FIXME comment, bfd access methods.
13708 * symfile.c (generic_load): Whitespace and long line cleanups.
13709 Remove duplicate variable, change several local variables to
13710 more appropriate data types.
13711 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13713 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13715 From Peter Schauer:
13716 * language.c (longest_local_hex_string_custom): Use phex_nz to
13717 convert NUM to a hex string.
13719 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13721 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13723 Update Copyright year.
13725 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13727 * language.c (longest_raw_hex_string): Delete unused function.
13729 2002-01-11 Petr Sorfa <petrs@caldera.com>
13731 * MAINTAINERS (write-after-approval): Add myself.
13732 * dwarf2read.c (read_tag_string_type): Handling of
13734 (read_tag_string_type): FORTRAN fix to prevent propagation of
13736 (set_cu_language): Handling of DW_LANG_Fortran95
13738 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13740 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13741 GETPID(inferior_ptid).
13742 (store_inferior_registers): Likewise.
13744 2002-01-10 Jason Merrill <jason@redhat.com>
13746 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13749 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13751 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13752 and bfd/elf32-sh-nbsd.c.
13754 2002-01-10 Michael Snyder <msnyder@redhat.com>
13756 * NEWS: Mention --pid and corefile/proc-id behavior change.
13758 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13759 * gcore.c: Include cli/cli-decode.h instead of command.h.
13761 * main.c (captured_main): Add new command line option "--pid".
13762 If the second command line argument (following the symbol-file)
13763 begins with a digit, try to attach to it before trying to open
13765 (print_gdb_help): Document the "--pid" argument.
13767 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13769 * completer.c (command_completer): New function.
13771 * completer.h <command_completer>: Add prototype.
13773 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13774 completer for the "help" command.
13776 2002-01-09 Jason Merrill <jason@redhat.com>
13778 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13780 2002-01-09 Michael Snyder <msnyder@redhat.com>
13782 * i386-linux-nat.c (fill_fpxregset): Make global.
13783 (store_fpxregset): Ditto.
13785 * gregset.h (gdb_fpxregset_t): Define.
13786 (supply_fpxregset): Prototype.
13787 (fill_fpxregset): Prototype.
13789 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13791 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13793 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13794 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13795 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13797 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13799 * MAINTAINERS: Update target maintainer rules so that any
13800 Maintainer can approve a tested patch for a maintenance-only
13803 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13805 * MAINTAINERS (write-after-approval): Add myself.
13807 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13810 2002-01-08 Michael Snyder <msnyder@redhat.com>
13812 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13813 real name of the executable, rather than the /proc name.
13815 2002-01-03 Michael Snyder <msnyder@redhat.com>
13817 Implement a "generate-core-file" command in gdb, save target state.
13818 * gcore.c: New file. Implement new command 'generate-core-file'.
13819 Save a corefile image of the current state of the inferior.
13820 * linux-proc.c: Add linux-specific code for saving corefiles.
13821 * target.h (struct target_ops): Add new target vectors for saving
13822 corefiles; to_find_memory_regions and to_make_corefile_notes.
13823 (target_find_memory_regions): New macro.
13824 (target_make_corefile_notes): New macro.
13825 * target.c (update_current_target): Inherit new target methods.
13826 (dummy_find_memory_regions): New place-holder method.
13827 (dummy_make_corefile_notes): New place-holder method.
13828 (init_dummy_target): Initialize new dummy target vectors.
13829 * exec.c (exec_set_find_memory_regions): New function.
13830 Allow the exec_ops vector for memory regions to be taken over.
13831 (exec_make_note_section): New function, target vector method.
13832 * defs.h (exec_set_find_memory_regions): Export prototype.
13833 * procfs.c (proc_find_memory_regions): New function, corefile method.
13834 (procfs_make_note_section): New function, corefile method.
13835 (init_procfs_ops): Set new target vector pointers.
13836 (find_memory_regions_callback): New function.
13837 (procfs_do_thread_registers): New function.
13838 (procfs_corefile_thread_callback): New function.
13839 * sol-thread.c (sol_find_memory_regions): New function.
13840 (sol_make_note_section): New function.
13841 (init_sol_thread_ops): Initialize new target vectors.
13842 * inftarg.c (inftarg_set_find_memory_regions): New function.
13843 Allow to_find_memory_regions vector to be taken over.
13844 (inftarg_set_make_corefile_notes): New function.
13845 Allow to_make_corefile_notes vector to be taken over.
13846 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13847 interface layer if not target_has_execution (may be a corefile).
13848 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13849 * config/sparc/sun4sol2.mh: Ditto.
13850 * config/alpha/alpha-linux.mh: Ditto.
13851 * config/arm/linux.mh: Ditto.
13852 * config/i386/x86-64linux.mh: Ditto.
13853 * config/ia64/linux.mh: Ditto.
13854 * config/m68k/linux.mh: Ditto.
13855 * config/mips/linux.mh: Ditto.
13856 * config/powerpc/linux.mh: Ditto.
13857 * config/sparc/linux.mh: Ditto.
13859 2002-01-07 Michael Snyder <msnyder@redhat.com>
13861 * arm-linux-nat.c: Remove references to regcache.c internal data
13862 (registers[] and register_valid[]).
13864 2002-01-07 Michael Snyder <msnyder@redhat.com>
13866 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13867 so that attaching to a pid will automatically read the process's
13868 symbol file and shlibs.
13869 * Makefile.in: Add rule for linux-proc.o.
13870 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13871 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13872 * config/arm/linux.mh: Ditto.
13873 * config/i386/linux.mh: Ditto.
13874 * config/i386/x86-64linux.mh: Ditto.
13875 * config/ia64/linux.mh: Ditto.
13876 * config/m68k/linux.mh: Ditto.
13877 * config/mips/linux.mh: Ditto.
13878 * config/powerpc/linux.mh: Ditto.
13879 * config/sparc/linux.mh: Ditto.
13881 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13883 * win32-nat.c: Add i386-tdep.h dependency.
13885 2002-01-07 Michael Snyder <msnyder@redhat.com>
13887 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13888 instead of bfd_get_arch_size. Don't bail out just because
13889 there's no exec_bfd.
13891 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13892 * p-valprint.c (pascal_object_print_value): Ditto.
13893 * somread.c (som_symtab_read): Ditto.
13894 * symfile.c (simple_free_overlay_region_table): Ditto.
13895 * valops.c (value_assign): Ditto.
13897 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13898 use tilde_expand and strerror for opening save-tracepoints file.
13900 * thread-db.c (thread_db_new_objfile): Indendation fix.
13902 * infptrace.c (GDB_MAX_ALLOCA): New define.
13903 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13904 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13905 can be overridden with whatever value is appropriate to the host).
13906 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13907 alloca to allocate potentially large buffer.
13908 * rs6000-nat.c (child_xfer_memory): Ditto.
13909 * symm-nat.c (child_xfer_memory): Ditto.
13910 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13912 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13914 From Nick Clifton <nickc@redhat.com>
13915 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13917 2002-01-07 Michael Snyder <msnyder@redhat.com>
13919 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13920 Don't use exec_bfd if it's NULL.
13922 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13924 * valops.c (value_arg_coerce): Fix formatting.
13926 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13928 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13929 * gnu-nat.c: Ditto.
13931 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13933 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13934 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13935 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13936 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13937 z8k-coff have not been multi-arched. Update z8k-coff build
13940 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13942 * MAINTAINERS: Mark a29k target as obsolete.
13943 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13944 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13946 * NEWS: Note that a29k targets are obsolete.
13947 * a29k-tdep.c: Mark as obsolete.
13948 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13949 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13950 a29k-*-vxworks* targets as obsolete.
13951 * remote-adapt.c: Obsolete.
13952 * remote-eb.c: Obsolete.
13953 * remote-mm.c: Obsolete.
13954 * remote-udi.c: Obsolete.
13955 * config/a29k/a29k-udi.mt: Obsolete.
13956 * config/a29k/a29k.mt: Obsolete.
13957 * config/a29k/tm-a29k.h: Obsolete.
13958 * config/a29k/tm-vx29k.h: Obsolete.
13959 * config/a29k/vx29k.mt: Obsolete.
13961 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13963 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13964 with BFD_ENDIAN_BIG.
13966 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13968 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13969 * configure, config.in: Re-generate.
13970 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13971 * defs.h: Do not include <endian.h>.
13973 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13975 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13976 * config.in: Regenerate.
13977 * configure.in: Update copyright years.
13978 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13979 * configure: Regenerate.
13980 * i386bsd-nat.c: Update copyright years.
13981 (fill_gregset): Use regcache_collect.
13982 (fetch_inferior_registers): Only fetch integer registers
13983 if requested to do so. Add support for XMM registers
13984 using PT_GETXMMREGS.
13985 (store_inferior_registers): Only store integer registers
13986 if requested to do so. Add support for XMM registers
13987 using PT_SETXMMREGS.
13988 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13989 (store_inferior_registers): Remove.
13990 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13991 (fetch_elfcore_registers): New function.
13992 (i386nbsd_elfcore_fns): New.
13993 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13994 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13996 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13997 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13998 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13999 * config/i386/tm-nbsd.h: Update copyright years.
14000 (HAVE_SSE_REGS): Define.
14001 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14002 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14003 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14004 (SIGCONTEXT_PC_OFFSET): Remove.
14005 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14007 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14009 * configure.tgt: Remove powerpc-*-macos* target.
14010 * config/m68k/xm-mpw.h: Delete file.
14011 * config/xm-mpw.h: Delete file.
14012 * ser-mac.c: Delete file.
14013 * mpw-make.sed: Delete file.
14014 * mpw-config.in: Delete file.
14015 * mac-xdep.c: Delete file.
14016 * mac-gdb.r: Delete file.
14017 * mac-defs.h: Delete file.
14018 * mac-nat.c: Delete file.
14019 * config/powerpc/macos.mh: Delete file.
14020 * config/powerpc/macos.mt: Delete file.
14021 * config/powerpc/nm-macos.h: Delete file.
14022 * config/powerpc/tm-macos.h: Delete file.
14023 * source.c (openp, open_source_file): Remove obsolete code.
14024 * top.c (gdb_readline): Ditto.
14025 * utils.c (query): Ditto.
14026 * event-top.c (display_gdb_prompt): Ditto.
14027 * Makefile.in (ser-mac.o): Delete obsolete target.
14030 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14032 * defs.h (BIG_ENDIAN): Delete macro definition.
14033 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14034 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14035 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14036 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14037 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14038 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14039 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14040 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14041 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14042 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14043 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14044 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14045 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14046 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14047 * gdbarch.c: Re-generate.
14049 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14051 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14054 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14056 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14058 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14060 * value.h (value_ptr): Delete typedef.
14062 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14064 * i386nbsd-nat.c: Update copyright years.
14065 Include i386-tdep.h.
14067 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14069 * stabsread.c: Update copyright years.
14071 From Debashis Mahata <debashis.mahata@wipro.com>:
14072 (read_struct_fields): Deal with Sun C compiler erroneous stab
14073 output for structs and unions.
14076 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14078 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14081 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14083 * cp-abi.c: Fix whitespace.
14084 (baseclass_offset): New wrapper function.
14085 * cp-abi.h (baseclass_offset): Add prototype.
14086 (struct cp_abi_ops): Add baseclass_offset pointer.
14088 * valops.c (vb_match): Move to...
14089 * gnu-v2-abi.c (vb_match): here.
14090 * valops.c (baseclass_offset): Move to...
14091 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14093 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14095 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14096 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14097 * hpacc-abi.c (init_hpacc_ops): Likewise.
14099 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14101 * valops.c (find_overload_match): Accept obj as a
14102 reference parameter. Update it before returning.
14103 * value.h (find_overload_match): Update prototype.
14104 * eval.c (evaluate_subexp_standard): Pass object to
14105 find_overload_match by reference.
14107 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14109 * valarith.c: Replace value_ptr with struct value pointer. Remove
14110 register attribute from value declarations.
14113 * scm-lang.c (scm_lookup_name): Ditto.
14115 2002-01-03 Michael Snyder <msnyder@redhat.com>
14117 Abstract the functionality of iterating over mapped memory
14118 regions into a general purpose iterator function.
14119 * procfs.c (iterate_over_mappings): New function, general purpose
14120 iterator for memory sections.
14121 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14122 (solib_mappings_callback): New function, callback for above.
14123 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14124 (info_mappings_callback): New function, callback for above.
14126 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14128 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14130 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14131 * i386-tdep.c: Include "elf-bfd.h".
14132 (process_note_abi_tag_sections): New function.
14133 (i386_gdbarch_init): Add code to recognize various OS/ABI
14136 * maint.c (_initialize_maint_cmds): Add missing \ in
14139 For older changes see ChangeLog-2001
14145 version-control: never