1 2002-12-06 Andrew Cagney <ac131313@redhat.com>
3 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
4 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
5 provide a default value.
6 * gdbarch.h, gdbarch.c: Regenerate.
7 * frame.c (get_prev_frame): Update. Check
8 DEPRECATED_INIT_FRAME_PC_FIRST_P.
9 * s390-tdep.c (s390_gdbarch_init): Update.
10 * mips-tdep.c (mips_gdbarch_init): Update.
11 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
13 * alpha-tdep.c (alpha_gdbarch_init): Update.
15 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
17 * ia64-linux-nat.c: Include gdb_string.h.
19 * ppc-linux-nat.c: Ditto.
20 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
23 2002-12-05 Andrew Cagney <ac131313@redhat.com>
25 * gdbthread.h: Include "frame.h".
26 (struct thread_info): Replace step_frame_address with
28 * inferior.h: Include "frame.h".
29 (step_frame_id): Replace external variable step_frame_address.
30 * gdbthread.h (save_infrun_state): Replace step_frame_address
31 parameter with step_frame_id parameter.
32 (load_infrun_state): Ditto.
33 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
34 * infcmd.c (step_frame_id, step_1, step_once): Update.
35 * thread.c (load_infrun_state, save_infrun_state): Update.
36 * infrun.c (clear_proceed_status, save_inferior_status): Update.
37 (handle_inferior_event, step_over_function): Update.
38 (normal_stop, context_switch, restore_inferior_status): Update.
39 (struct inferior_status): Replace step_frame_address with
42 2002-12-05 David Carlton <carlton@math.stanford.edu>
44 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
45 DW_TAG_member as well as a declaration as being a C++ static data
47 (read_structure_scope): Combine tests for DW_TAG_member and
50 2002-12-05 David Carlton <carlton@math.stanford.edu>
52 * linespec.c (decode_compound): New function.
53 (decode_line_1): Move code into decode_compound.
55 2002-12-05 David Carlton <carlton@math.stanford.edu>
57 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
59 (lookup_symbol_aux): Do the 'field_of_this' check before checking
60 the static block. See PR gdb/804.
62 2002-12-05 David Carlton <carlton@math.stanford.edu>
64 * symtab.c (lookup_symbol_aux_block): New function.
65 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
67 2002-12-05 Andrew Cagney <ac131313@redhat.com>
69 * gdbarch.sh: Dump the predicate function and macro values.
70 (read): Print error on standard error.
71 * gdbarch.c: Regenerate.
73 2002-12-04 Kevin Buettner <kevinb@redhat.com>
75 * Makefile.in (mips_tdep_h): Define.
76 (mips-tdep.o): Add mips_tdep_h to dependency list.
77 * mips-tdep.h: New file.
78 * mips-tdep.c (mips-tdep.h): Include.
79 (enum mips_abi): Move to mips-tdep.h.
80 (mips_abi): New function.
82 2002-12-04 David Carlton <carlton@math.stanford.edu>
84 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
86 2002-12-04 David Carlton <carlton@math.stanford.edu>
88 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
90 (lookup_symbol_aux_minsyms): New function.
92 2002-12-04 J. Brobecker <brobecker@gnat.com>
94 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
96 2002-12-04 J. Brobecker <brobecker@gnat.com>
98 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
99 which is an obsolete macro name.
101 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
103 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
104 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
106 2002-12-03 H.J. Lu (hjl@gnu.org)
108 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
109 (create_breakpoints): Make sure the addr_string field is not
112 2002-12-03 Andrew Cagney <ac131313@redhat.com>
114 * sparc-nat.c (fetch_inferior_registers)
115 (store_inferior_registers): Add comment on problem of LWP vs
118 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
119 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
120 (lin_lwp_store_registers): Remove.
121 (init_lin_lwp_ops): Use fetch_inferior_registers
122 and store_inferior_registers directly.
123 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
124 (store_inferior_registers): Likewise.
127 2002-12-03 Andrew Cagney <ac131313@redhat.com>
129 * frame.h (get_frame_id): Convert to a function.
130 (null_frame_id, frame_id_p): Declare.
131 (frame_id_eq, frame_id_inner): Declare.
132 (frame_id_build): New function.
133 * frame.c (get_frame_id): Update. Use null_frame_id.
134 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
136 (null_frame_id, frame_id_p): Define.
137 (frame_id_eq, frame_id_inner): Define.
138 (frame_id_build): New function.
139 * varobj.c (varobj_create): Update.
140 (varobj_update): Update.
141 * valops.c (value_assign): Update.
142 (new_root_variable): Update.
143 * infrun.c (save_inferior_status): Update.
144 * breakpoint.c (watch_command_1): Update.
146 2002-12-03 J. Brobecker <brobecker@gnat.com>
148 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
151 2002-12-03 Andrew Cagney <cagney@redhat.com>
153 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
156 * PROBLEMS: Mention PR gdb/725.
158 2002-12-03 Andreas Schwab <schwab@suse.de>
160 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
162 2002-12-02 Adam Fedor <fedor@gnu.org>
163 Klee Dienes <kdienes@apple.com>
165 * objc-lang.c (objc_printstr): Add width arg to match
167 (compare_selectors): Add 'const' to arg types.
168 (compare_classes): Likewise.
169 (find_imps): Cast msym pointer to avoid compiler warning.
170 (print_object_command): Validate the address before
171 passing it to the print routine.
172 (find_objc_msgcall_submethod): Change function argument to
174 * objc-lang.h: Add 'extern' to all function declarations.
175 (value_nsstring): Add declaration.
177 2002-12-02 J. Brobecker <brobecker@gnat.com>
179 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
180 Fixes a build failure on HP/UX.
182 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
184 (hpread_has_name): Advance declaration to avoid a compilation warning.
185 (pst_syms_count): Add missing variable type. By change, the compiler
186 was defaulting to int, which seems a good choice. Fixes a compilation
188 (pst_syms_size): Likewise.
190 2002-12-02 J. Brobecker <brobecker@gnat.com>
192 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
193 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
194 later to set the proper gdbarch methods depending on the osabi.
195 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
197 2002-12-02 J. Brobecker <brobecker@gnat.com>
199 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
200 * osabi.c (gdb_osabi_name): Add strings images for the two new
202 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
204 2002-12-02 Andrew Cagney <ac131313@redhat.com>
206 * MAINTAINERS (Java): Global maintainers are responible for Java.
207 (Past Maintainers): Mention both Anthony Green and Per Bothner as
208 part Java maintainers.
210 2002-12-02 J. Brobecker <brobecker@gnat.com>
212 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
213 Fixes a compilation failure on AiX.
215 2002-12-02 J. Brobecker <brobecker@gnat.com>
217 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
218 why aix-thread.o is not listed.
220 2002-12-01 Andrew Cagney <ac131313@redhat.com>
222 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
223 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
224 * gdbarch.h, gdbarch.c: Re-generate.
225 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
226 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
227 * config/pa/tm-hppa.h, frame.h: Update.
228 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
229 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
230 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
231 * cris-tdep.c, alpha-tdep.c: Update.
232 * frame.c (set_unwind_by_pc, create_new_frame): Use either
233 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
234 (get_prev_frame): Ditto.
236 2002-11-30 Andrew Cagney <cagney@redhat.com>
238 * exec.c (xfer_memory): Replace boolean with int.
239 * p-exp.y: Use 0 instead of false.
240 * corelow.c (gdb_check_format): Change return type to int from
242 * utils.c: Don't include <curses.h> or <term.h> first.
244 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
246 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
247 (m68hc11_register_byte): Remove.
248 (m68hc11_gdbarch_init): Don't set the above.
250 2002-11-29 Andrew Cagney <cagney@redhat.com>
252 * remote-mips.c (mips_initialize): Force a selected frame rebuild
253 by calling get_selected_frame.
254 * ocd.c (ocd_start_remote): Use get_selected frame instead of
255 set_current_frame, create_new_frame, select_frame and
257 * remote-e7000.c (e7000_start_remote): Ditto.
258 * remote-mips.c (common_open): Ditto
259 * remote-rdp.c (remote_rdp_open): Ditto.
261 2002-11-29 Andreas Schwab <schwab@suse.de>
263 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
264 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
265 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
266 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
267 read_memory_unsigned_integer instead of read_memory_integer when
268 dealing with addresses and instruction opcodes.
269 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
270 (m68k_linux_frame_saved_pc): Likewise.
272 2002-11-29 Andrew Cagney <ac131313@redhat.com>
274 * stack.c (selected_frame, select_frame): Move from here ...
275 * frame.c (selected_frame, select_frame): ... to here. Include
277 * Makefile.in (frame.o): Update dependencies.
278 * frame.c (get_selected_frame): New function.
279 * frame.h (get_selected_frame): Declare.
280 (deprecated_selected_frame): Rename selected_frame.
281 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
282 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
283 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
284 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
285 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
286 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
287 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
288 * z8k-tdep.c, cli/cli-cmds.c: Update.
290 2002-11-29 Andrew Cagney <ac131313@redhat.com>
292 * frame.h (get_selected_block): Add comments.
294 2002-11-28 Andrew Cagney <ac131313@redhat.com>
296 * frame.c (pc_notcurrent): New function.
297 (find_frame_sal): New function.
298 * frame.h (find_frame_sal): Declare.
299 (struct symtab_and_line): Add opaque declaration.
300 * stack.c (print_frame_info_base): Use find_frame_sal instead of
303 * ada-lang.c (find_printable_frame): Ditto.
305 2002-11-28 J. Brobecker <brobecker@gnat.com>
307 * configure.in: Check that the pthdebug library is recent enough
308 before enabling thread support on native AiX.
309 * configure: Regenerate.
311 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
312 from the list of object files as it is now appended by configure
313 if thread support is enabled.
314 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
315 if thread support is enabled.
317 2002-11-28 Andrew Cagney <cagney@redhat.com>
319 * stack.c (get_selected_block): In-line get_current_block.
320 * frame.h (get_current_block): Delete declaration.
321 * blockframe.c (get_current_block): Delete function.
323 2002-11-28 Andrew Cagney <ac131313@redhat.com>
325 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
326 USE_GENERIC_DUMMY_FRAMES.
327 * gdbarch.h, gdbarch.c: Regenerate.
328 * valops.c, frame.c: Update.
329 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
330 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
331 * config/pa/tm-hppa.h, blockframe.c: Update.
332 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
333 * m68k-tdep.c, alpha-tdep.c: Ditto.
335 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
336 * mips-tdep.c: Ditto.
338 2002-11-27 Andrew Cagney <ac131313@redhat.com>
340 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
341 (USE_GENERIC_DUMMY_FRAMES): Default to true.
342 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
343 * gdbarch.c, gdbarch.h: Re-generate.
344 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
345 (CALL_DUMMY_LOCATION): Delete macro definition.
346 (PC_IN_CALL_DUMMY): Delete macro definitions.
348 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
349 default is already generic_pc_in_call_dummy.
350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
351 * v850-tdep.c (v850_gdbarch_init): Ditto.
352 * sh-tdep.c (sh_gdbarch_init): Ditto.
353 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
354 * mips-tdep.c (mips_gdbarch_init): Ditto.
355 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
357 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
358 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
359 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
360 * avr-tdep.c (avr_gdbarch_init): Ditto.
362 * arm-tdep.c (arm_gdbarch_init): Do not set
363 use_generic_dummy_frames, default is already 1.
364 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
365 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
366 * v850-tdep.c (v850_gdbarch_init): Ditto.
367 * sh-tdep.c (sh_gdbarch_init): Ditto.
368 * s390-tdep.c (s390_gdbarch_init): Ditto.
369 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
370 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
371 * mips-tdep.c (mips_gdbarch_init): Ditto.
372 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
374 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
375 * i386-tdep.c (i386_gdbarch_init): Ditto.
376 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
377 * frv-tdep.c (frv_gdbarch_init): Ditto.
378 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
379 * cris-tdep.c (cris_gdbarch_init): Ditto.
380 * avr-tdep.c (avr_gdbarch_init): Ditto.
382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
383 call_dummy_location, default is already AT_ENTRY_POINT.
384 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
385 * v850-tdep.c (v850_gdbarch_init): Ditto.
386 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
387 * sh-tdep.c (sh_gdbarch_init): Ditto.
388 * s390-tdep.c (s390_gdbarch_init): Ditto.
389 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
390 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
391 * mips-tdep.c (mips_gdbarch_init): Ditto.
392 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
394 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
395 * i386-tdep.c (i386_gdbarch_init): Ditto.
396 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
397 * frv-tdep.c (frv_gdbarch_init): Ditto.
398 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
399 * cris-tdep.c (cris_gdbarch_init): Ditto.
400 * avr-tdep.c (avr_gdbarch_init): Ditto.
401 * arm-tdep.c (arm_gdbarch_init): Ditto.
402 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
404 2002-11-28 Andrew Cagney <cagney@redhat.com>
406 * frame.h: Update comments on set_current_frame, create_new_frame,
407 flush_cached_frames, reinit_frame_cache, select_frame and
410 2002-11-27 Andrew Cagney <cagney@redhat.com>
412 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
413 deprecated pc_in_call_dummy function.
414 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
415 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
416 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
417 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
418 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
420 2002-11-26 Martin M. Hunt <hunt@redhat.com>
422 * Makefile.in: Remove Tix dependencies.
423 * acinclude.m4: Ditto.
425 * configure.in: Ditto.
426 * configure: Regenerated.
428 2002-11-26 Andrew Cagney <ac131313@redhat.com>
430 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
431 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
432 * gdbarch.c: Re-generate.
434 2002-11-26 Andrew Cagney <ac131313@redhat.com>
436 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
437 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
438 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
439 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
440 pc_in_call_dummy_at_entry_point.
441 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
442 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
443 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
444 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
445 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
446 pc_in_call_dummy_on_stack.
447 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
448 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
449 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
450 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
451 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
453 2002-11-26 Andrew Cagney <ac131313@redhat.com>
455 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
456 pc_in_call_dummy_before_text_end
457 (deprecated_pc_in_call_dummy_after_text_end): Rename
458 pc_in_call_dummy_after_text_end.
459 (deprecated_pc_in_call_dummy_on_stack): Rename
460 pc_in_call_dummy_on_stack.
461 (deprecated_pc_in_call_dummy_at_entry_point): Rename
462 pc_in_call_dummy_at_entry_point.
463 * m68k-tdep.c (m68k_gdbarch_init): Update.
464 * s390-tdep.c (s390_gdbarch_init): Update.
465 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
466 * vax-tdep.c (vax_gdbarch_init): Update.
467 * sparc-tdep.c (sparc_gdbarch_init): Update.
468 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
469 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
470 * i386-tdep.c (i386_gdbarch_init): Update.
471 * frv-tdep.c (frv_gdbarch_init): Update.
472 * cris-tdep.c (cris_gdbarch_init): Update.
473 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
474 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
475 (deprecated_pc_in_call_dummy_after_text_end)
476 (deprecated_pc_in_call_dummy_on_stack)
477 (deprecated_pc_in_call_dummy_at_entry_point): Update.
478 * alpha-tdep.c (alpha_gdbarch_init): Update.
480 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
482 * acconfig.h (HAVE_PREAD64): Add.
483 * configure.in: Check for pread64.
484 * config.in: Regenerated.
485 * configure: Regenerated.
486 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
487 * linux-proc.c (linux_proc_xfer_memory): New function.
488 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
490 2002-11-25 David Carlton <carlton@math.stanford.edu>
492 * dwarf2read.c (scan_partial_symbols): Descend into namespace
495 2002-11-25 Andrew Cagney <ac131313@redhat.com>
497 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
498 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
500 2002-11-25 Jim Blandy <jimb@redhat.com>
502 * symfile.c (init_objfile_sect_indices): New function.
503 (default_symfile_offsets): Move the section-index-initializing
504 stuff into init_objfile_sect_indices, and call that.
506 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
507 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
509 * symfile.c (syms_from_objfile): Adjust indentation.
511 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
512 || info_verbose isn't true.
514 2002-11-24 Andrew Cagney <ac131313@redhat.com>
516 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
517 default to get_frame_base.
518 * gdbarch.h, gdbarch.c: Regenerate.
519 * arch-utils.c (default_frame_address): Delete function.
520 * arch-utils.h (default_frame_address): Delete declaration
522 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
524 * varobj.c (find_frame_addr_in_frame_chain):
525 Use get_frame_base instead of FRAME_FP,
528 2002-11-19 Andrew Cagney <ac131313@redhat.com>
530 * frame.h (FRAME_FP): Delete macro.
531 (get_frame_base): New function declaration.
532 * frame.c (get_frame_base): New function.
533 (get_frame_id): Use ->frame.
534 (frame_find_by_id): Rewrite to use get_frame_id.
535 * blockframe.c: Use get_frame_base instead of FRAME_FP.
536 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
537 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
538 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
539 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
540 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
541 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
543 2002-11-24 Andrew Cagney <ac131313@redhat.com>
545 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
547 2002-11-24 Andrew Cagney <ac131313@redhat.com>
549 * frame.c (set_unwind_by_pc): Revert change below, use
551 (get_prev_frame): Ditto.
553 2002-11-24 Andrew Cagney <ac131313@redhat.com>
555 * dummy-frame.c (pc_in_dummy_frame): New function.
556 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
557 (find_dummy_frame): Update comment.
558 (generic_pop_current_frame): Use get_frame_type.
559 * dummy-frame.h (pc_in_dummy_frame): Declare.
560 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
561 (create_new_frame): Use pc_in_dummy_frame.
562 (get_prev_frame): Use pc_in_dummy_frame.
563 (frame_saved_regs_register_unwind): Use get_prev_frame.
564 (deprecated_generic_get_saved_register): Use get_prev_frame.
566 2002-11-23 Andrew Cagney <ac131313@redhat.com>
568 * blockframe.c (find_frame_addr_in_frame_chain): Move function
570 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
571 (varobj_create): Note that frame ID should be used.
572 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
574 2002-11-23 Andrew Cagney <ac131313@redhat.com>
576 * breakpoint.c: Include "gdb_assert.h".
577 (deprecated_frame_in_dummy): Assert that generic dummy frames are
579 * Makefile.in (breakpoint.o): Update dependencies.
580 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
581 deprecated_frame_in_dummy.
582 * stack.c (print_frame_info_base): Ditto.
584 (print_frame_info_base): Ditto. Delete dead code.
586 2002-11-23 Andreas Schwab <schwab@suse.de>
588 * Makefile.in (m68k_tdep_h): Define.
589 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
590 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
591 * m68k-tdep.c: Move register number enum ...
592 * m68k-tdep.h: ... to this new file and rename the constants from
593 E_* to M68K_*. All uses changed.
594 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
595 * abug-rom.c: Include "m68k-tdep.h". Use
596 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
597 * cpu32bug-rom.c: Likewise.
598 * dbug-rom.c: Likewise.
599 * m68k-tdep.c: Likewise.
600 * m68klinux-nat.c: Likewise.
601 * remote-est.c: Likewise.
602 * rom68k-rom.c: Likewise.
603 * config/m68k/tm-linux.h: Likewise.
605 2002-11-23 Andrew Cagney <ac131313@redhat.com>
607 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
608 dummy frame initialization code.
609 * mips-tdep.c (mips_gdbarch_init): Ditto.
611 2002-11-22 Christopher Faylor <cgf@redhat.com>
613 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
616 2002-11-22 Andrew Cagney <ac131313@redhat.com>
618 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
619 to default_frame_address.
620 * gdbarch.h, gdbarch.c: Re-generate.
622 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
623 or frame_locals_address to default_frame_address.
624 * m68k-tdep.c (m68k_gdbarch_init): Update.
625 * i386-tdep.c (i386_gdbarch_init): Update.
626 * frv-tdep.c (frv_gdbarch_init): Update.
627 * sh-tdep.c (sh_gdbarch_init): Update.
628 * v850-tdep.c (v850_gdbarch_init): Update.
629 * sparc-tdep.c (sparc_gdbarch_init): Update.
630 * mips-tdep.c (mips_gdbarch_init): Update.
631 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
632 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
635 * cris-tdep.c (cris_frame_args_address): Delete function.
636 (cris_frame_locals_address): Delete function.
637 (cris_gdbarch_init): Do not set frame_args_address or
638 frame_locals_address.
640 2002-11-22 Michael Snyder <msnyder@redhat.com>
642 * thread-db.c (thread_db_load): Tell the user what's going on
643 if dlopen fails on libthread_db.
645 2002-11-23 Andreas Schwab <schwab@suse.de>
647 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
648 invariant return values.
650 2002-11-22 Andreas Schwab <schwab@suse.de>
652 * valops.c (value_slice): Move declaration of `offset' to avoid
655 2002-11-22 Christopher Faylor <cgf@redhat.com>
657 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
658 (struct so_stuff): Add end_addr field.
659 (register_loaded_dll): Calculate and store end address of loaded dll.
660 (solib_address): New function.
661 (child_solib_loaded_library_pathname): Pass carefully constructed
662 section info to safe_symbol_file_add rather than ignoring it.
663 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
665 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
666 (child_create_inferior): Fix a compiler warning.
667 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
668 (solib_address): Declare new function.
670 2002-11-22 Andreas Schwab <schwab@suse.de>
672 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
675 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
677 * maint.c (_initialize_maint_cmds): Fix typo. From
678 Francesco Potorti` <pot@gnu.org>.
680 2002-11-21 Andrew Cagney <cagney@redhat.com>
682 * mips-tdep.c (mips_dump_tdep): Delete references to
683 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
684 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
685 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
686 * printcmd.c (build_address_symbolic): Delete calls to
687 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
688 (address_info): Ditto.
691 2002-11-19 Klee Dienes <kdienes@apple.com>
692 Adam Fedor <fedor@gnu.org>
694 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
695 the ability to explicitly specify the quote characters and word
696 break characters; if NULL is specified for either, use the old
697 behavior of using the characters used by the completer.
698 (skip_chars): New function. Convenience wrapper around
699 skip_quoted_chars to provide the original skip_chars behavior.
700 * completer.h (skip_quoted_chars): Add prototype.
702 2002-11-19 Andrew Cagney <ac131313@redhat.com>
704 Problems reported by Paul Eggert.
705 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
707 2002-11-19 Andreas Schwab <schwab@suse.de>
709 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
710 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
711 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
712 (m68k_linux_frame_saved_pc): Move to ...
713 * m68klinux-tdep.c: ... here. New file.
714 * Makefile.in (m68klinux-tdep.o): Add dependencies.
715 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
717 2002-11-19 Adam Fedor <fedor@gnu.org>
719 * objc-exp.y: Revert to old skip_quoted usage.
721 2002-11-19 Adam Fedor <fedor@gnu.org>
723 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
724 (objc_lang_h): Define.
725 (YYFILES): Add objc-exp.tab.c.
726 (local-maintainer-clean): Remove objc-exp.tab.c.
727 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
729 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
731 * p-exp.y (typecast rule): Add automatic dereference of
732 pascal classes if needed.
733 (THIS): Set current_type.
734 Automatically dereference pascal classes.
735 (typebase rule): Add ^typebase recognition.
737 2002-11-18 Adam Fedor <fedor@gnu.org>
739 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
740 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
741 (op_name): Handle OP_OBJC_SELF.
742 * Makefile.in (expprint.o): Add additional depends.
744 2002-11-18 Adam Fedor <fedor@gnu.org>
746 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
747 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
748 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
749 * objc-exp.y: Likewise.
751 2002-11-18 Adam Fedor <fedor@gnu.org>
753 * gdb/parser-defs.h: (struct objc_class_str): New structure
754 for parsing ObjC classes.
756 2002-11-18 Andrew Cagney <ac131313@redhat.com>
758 * stack.c (frame_relative_level): Copy function from here ...
759 * frame.c (frame_relative_level): ...to here.
761 2002-11-18 Andrew Cagney <ac131313@redhat.com>
763 * frame.h (enum frame_type): Define.
764 (get_frame_type): Declare.
765 (struct frame_info): Add field `type'. Delete field
766 signal_handler_caller.
767 (deprecated_set_frame_signal_handler_caller): Declare.
768 * frame.c (get_frame_type): New function.
769 (deprecated_set_frame_type): New function.
770 (create_new_frame): Set the frame's type.
771 (get_prev_frame): Similar.
772 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
773 * s390-tdep.c: Ditto.
774 * m68klinux-nat.c: Ditto.
775 * ns32k-tdep.c: Ditto.
776 * x86-64-linux-tdep.c: Ditto.
778 * rs6000-tdep.c: Ditto.
779 * ppc-linux-tdep.c: Ditto.
780 * i386-interix-tdep.c: Ditto.
781 * mips-tdep.c: Ditto.
782 * m68k-tdep.c: Ditto.
783 * hppa-tdep.c: Ditto.
784 * ia64-tdep.c: Ditto.
785 * cris-tdep.c: Ditto.
787 * alpha-tdep.c: Ditto.
788 * i386-tdep.c: Ditto.
791 * blockframe.c: Update.
792 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
793 deprecated_set_frame_type instead of signal_handler_caller.
794 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
795 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
796 * breakpoint.h: Delete FIXME suggesting get_frame_type.
798 2002-11-18 Klee Dienes <kdienes@apple.com>
800 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
802 2002-11-18 Klee Dienes <kdienes@apple.com>
804 * buildsym.c (pop_context): Add comment.
806 2002-11-18 Klee Dienes <kdienes@apple.com>
808 * buildsym.h (pop_context): Convert to function, defined in
810 * buildsym.c: Include gdb_assert.h.
811 (pop_context): Implement as C function. Add check for stack
813 * dbxread.c (process_one_symbol): Complain and stop processing
814 that symbol if we are already at the top of the context stack for
815 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
816 when processing N_RBRAC.
818 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
820 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
822 (struct target_waitstatus): Add opaque definition.
823 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
824 * exec.c (init_exec_ops): Likewise.
825 * fork-child.c (clone_and_follow_inferior): Remove.
826 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
827 * inferior.h (clone_and_follow_inferior): Remove prototype.
828 * infrun.c (follow_fork_mode_both): Remove.
829 (follow_fork_mode_kind_names): Remove commented out "both".
830 (follow_inferior_fork): Remove follow_fork_mode_both support.
831 * inftarg.c (child_clone_and_follow_inferior): Remove.
832 (child_post_follow_inferior_by_clone): Remove.
833 (init_child_ops): Don't set to_clone_and_follow_inferior
834 or to_post_follow_inferior_by_clone.
835 * target.c (default_clone_and_follow_inferior): Remove.
836 (cleanup_target): Don't set to_clone_and_follow_inferior
837 or to_post_follow_inferior_by_clone.
838 (find_default_clone_and_follow_inferior): Remove.
839 (init_dummy_target): Don't set to_clone_and_follow_inferior.
840 (debug_to_clone_and_follow_inferior): Remove.
841 (debug_to_post_follow_inferior_by_clone): Remove.
842 (setup_target_debug): Don't set to_clone_and_follow_inferior
843 or to_post_follow_inferior_by_clone.
844 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
845 and to_post_follow_inferior_by_clone.
846 (child_clone_and_follow_inferior): Remove prototype.
847 (child_post_follow_inferior_by_clone): Remove prototype.
848 (target_clone_and_follow_inferior): Remove macro.
849 (target_post_follow_inferior_by_clone): Remove macro.
850 (find_default_clone_and_follow_inferior): Remove prototype.
852 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
854 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
855 inferior_has_vforked, and inferior_has_execd instead of
856 target_has_forked, target_has_vforked, and target_has_execd.
857 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
858 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
859 (CHILD_WAIT): Define.
860 (child_wait): Add prototype.
861 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
863 (hpux_has_vforked): Likewise, from child_has_vforked.
864 (hpux_has_execd): Likewise, from child_has_execd.
865 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
866 (not_same_real_pid, child_wait): New, copied from inftarg.c.
867 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
868 and hpux_has_syscall_event instead of the target hooks.
869 * infrun.c (inferior_has_forked, inferior_has_vforked)
870 (inferior_has_execd): New functions.
871 * inftarg.c (not_same_real_pid): Remove.
872 (child_wait): Remove references to not_same_real_pid,
873 target_has_forked, target_has_vforked, target_has_execd,
874 and target_has_syscall_event.
875 (child_has_forked, child_has_vforked, child_has_execd)
876 (child_has_syscall_event): Remove.
877 (init_child_ops): Remove references to child_has_forked,
878 child_has_vforked, child_has_execd, and child_has_syscall_event.
879 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
880 (hpux_has_vforked): Likewise, from child_has_vforked.
881 (hpux_has_execd): Likewise, from child_has_execd.
882 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
883 * target.c (cleanup_target): Remove references to
884 to_has_forked, to_has_vforked, to_has_execd, and
885 to_has_syscall_event.
886 (update_current_target): Likewise.
887 (setup_target_debug): Likewise.
888 (debug_to_has_forked): Remove.
889 (debug_to_has_vforked): Remove.
890 (debug_to_has_execd): Remove.
891 (debug_to_has_syscall_event): Remove.
892 * target.h (struct target_ops): Remove to_has_forked.
893 to_has_vforked, to_has_execd, and to_has_syscall_event.
894 (child_has_forked, child_has_vforked, child_has_execd)
895 (child_has_syscall_event): Remove prototypes.
896 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
898 (target_has_forked, target_has_vforked, target_has_execd)
899 (target_has_syscall_event): Remove macros.
901 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
903 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
904 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
905 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
906 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
907 * target.c (cleanup_target): Remove reference to
908 to_can_follow_vfork_prior_to_exec.
909 (update_current_target): Likewise.
910 (debug_to_can_follow_vfork_prior_to_exec): Remove.
911 (setup_target_debug): Remove reference to
912 to_can_follow_vfork_prior_to_exec.
913 * target.h (struct target_ops): Remove
914 to_can_follow_vfork_prior_to_exec.
915 (child_can_follow_vfork_prior_to_exec): Remove prototype.
916 (target_can_follow_vfork_prior_to_exec): Remove definition.
917 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
919 * infrun.c (follow_vfork_when_exec): Remove.
920 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
921 (follow_exec): Likewise.
922 (handle_inferior_event): Likewise.
923 (keep_going): Likewise.
925 2002-11-15 Andrew Cagney <cagney@redhat.com>
927 * frame.c (generic_unwind_get_saved_register): Make static.
928 * frame.h (generic_unwind_get_saved_register): Delete declaration.
929 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
930 defaults to generic_unwind_get_saved_register.
931 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
932 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
933 * frv-tdep.c (frv_gdbarch_init): Ditto.
934 * i386-tdep.c (i386_gdbarch_init): Ditto.
935 * s390-tdep.c (s390_gdbarch_init): Ditto.
936 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
937 * v850-tdep.c (v850_gdbarch_init): Ditto.
938 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
939 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
940 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
942 2002-11-15 Andrew Cagney <cagney@redhat.com>
944 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
947 2002-11-15 Andrew Cagney <cagney@redhat.com>
949 * frame.h (sigtramp_saved_pc): Delete declaration.
950 * blockframe.c (sigtramp_saved_pc): Delete function.
951 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
952 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
953 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
954 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
956 2002-11-15 Andrew Cagney <ac131313@redhat.com>
958 * frame.c (frame_pc_unwind): New function.
959 (frame_saved_regs_pc_unwind): New function.
960 (frame_register_unwind): Pass unwind_cache instead of
961 register_unwind_cache.
962 (set_unwind_by_pc): Add unwind_pc parameter, set.
963 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
964 (get_prev_frame): Ditto.
965 * frame.h (frame_pc_unwind_ftype): Declare.
966 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
967 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
968 (frame_pc_unwind): Declare.
969 * dummy-frame.c (dummy_frame_pc_unwind): New function.
970 (struct dummy_frame): Add comment mentioning that values are for
972 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
973 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
974 (generic_file_frame_chain_valid): Ditto.
975 * stack.c (frame_info): Ditto.
977 2002-11-15 David Carlton <carlton@math.stanford.edu>
979 * linespec.c (locate_first_half): New function.
980 (decode_line_1): Move code into locate_first_half.
982 2002-11-15 Andrew Cagney <ac131313@redhat.com>
984 * complaints.h: Add comment explaining how to eliminate a
985 deprecated_complain call.
986 * complaints.h: Fix spelling errors.
988 2002-11-15 David Carlton <carlton@math.stanford.edu>
990 * printcmd.c: Remove #include "disasm.h".
992 2002-11-14 Andrew Cagney <ac131313@redhat.com>
994 * frame.h: Move the most relevant interface functions to the start
997 2002-11-14 Andrew Cagney <ac131313@redhat.com>
999 * regcache.h (deprecated_registers): Rename registers.
1000 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1001 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1002 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1003 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1004 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1005 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1006 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1007 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1008 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1009 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1010 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1011 * v850ice.c: Update.
1013 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1015 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1018 2002-11-13 Andrew Cagney <cagney@redhat.com>
1020 * regcache.h (deprecated_read_register_bytes): Rename
1021 read_register_bytes.
1022 (deprecated_write_register_bytes): Rename write_register_bytes.
1023 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1024 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1025 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1026 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1027 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1028 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1029 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1030 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1031 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1032 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1033 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1034 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1035 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1036 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1038 2002-11-13 Jim Blandy <jimb@redhat.com>
1040 * findvar.c (read_var_value): Doc fix.
1042 2002-11-13 Andrew Cagney <cagney@redhat.com>
1044 * regcache.c (struct regcache): Replace passthough_p with
1046 (regcache_xmalloc): Initialize readonly_p.
1047 (build_regcache): Initialize readonly_p.
1048 (regcache_save): New function.
1049 (regcache_restore): New function.
1050 (regcache_cpy): Re-implement using regcache_save and
1052 (regcache_raw_read): Update.
1053 (regcache_cooked_read): When a read-only cache, checked for cached
1054 pseudo register values.
1055 (regcache_raw_write): Assert that the cache is not read-only.
1056 Remove code handling a non-passthrough cache.
1057 * regcache.h (regcache_save): Declare.
1058 (regcache_restore): Declare.
1060 2002-11-13 Andrew Cagney <cagney@redhat.com>
1062 * regcache.c (struct regcache_descr): Add fields
1063 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1064 (init_legacy_regcache_descr): Compute the size of a cooked
1065 register cache and then assign that to sizeof_raw_registers. Set
1066 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1067 (init_legacy_regcache_descr): Ditto.
1069 2002-11-13 Andrew Cagney <cagney@redhat.com>
1071 * regcache.c (register_buffer): Move to near start of file, update
1073 (regcache_raw_read): Use.
1074 (regcache_raw_write): Use.
1075 (struct regcache): Rename raw_registers to registers and
1076 raw_register_valid_p to register_valid_p.
1077 (regcache_xmalloc): Update.
1078 (regcache_xfree): Update.
1079 (register_buffer): Update.
1080 (regcache_cpy): Update.
1081 (regcache_cpy_no_passthrough): Update.
1082 (regcache_valid_p): Update.
1083 (deprecated_grub_regcache_for_registers): Update.
1084 (deprecated_grub_regcache_for_register_valid): Update.
1085 (set_register_cached): Update.
1086 (regcache_raw_write): Update.
1088 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1090 * p-exp.y (name_not_typename): Use copy_name to
1091 set current_type variable for fields of THIS.
1093 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1095 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1096 * monitor.c (init_base_monitor_ops): Likewise.
1097 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1098 * remote-array.c (init_array_ops): Likewise.
1099 * remote-e7000.c (init_e7000_ops): Likewise.
1100 * remote-es.c (init_es1800_ops): Likewise.
1101 (init_es1800_child_ops): Likewise.
1102 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1103 * remote-sim.c (init_gdbsim_ops): Likewise.
1104 * remote-st.c (init_st2000_ops): Likewise.
1105 * sol-thread.c (init_sol_core_ops): Likewise.
1106 (init_sol_thread_ops): Likewise.
1107 * v850ice.c (init_850ice_ops): Likewise.
1108 * win32-nat.c (init_child_ops): Likewise.
1109 * wince.c (init_child_ops): Likewise.
1111 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1113 * utils.c (gdb_realpath): Make rp a constant pointer.
1115 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1117 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1118 a constant buffer; cannonicalize_file_name(); realpath() with a
1119 pathconf() defined buffer, xstrdup().
1121 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1123 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1124 to hang2.C; hang3.c to hang3.C.
1126 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1128 * findvar.c (read_var_value): Reenable TLS code.
1130 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1131 Jim Blandy <jimb@redhat.com>
1133 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1134 * target.c (update_current_target): Add
1135 to_get_thread_local_address.
1136 * target.h (to_get_thread_local_address): Export.
1137 (target_get_thread_local_address): Define.
1138 (target_get_thread_local_address_p): Define.
1139 * thread-db.c: Include solib-svr4.h.
1140 (td_thr_tls_get_addr_p): Define.
1141 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1142 (thread_db_get_thread_local_address): New function.
1143 (init_thread_db_ops): Initialize to_get_thread_local_address.
1144 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1145 * configure: Regenerate.
1146 * config.in: Regenerate.
1148 2002-11-11 David Carlton <carlton@math.stanford.edu>
1150 * linespec.c (set_flags): New function.
1151 (decode_line_1): Move code into set_flags.
1153 2002-11-11 David Carlton <carlton@math.stanford.edu>
1155 * linespec.c (decode_line_1): Move chunks of code to separate
1157 (initialize_defaults): New function.
1158 (decode_indirect): New function.
1160 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1162 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1163 instead of void_code_ptr.
1164 (sigtramp_saved_pc): Ditto.
1166 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1169 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1171 * gdbtypes.h (struct main_type): Move artificial flag out of
1172 loc. New member of ``struct field'' named static_kind. Reduce
1173 overloaded meaning of bitsize.
1174 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1175 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1176 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1178 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1180 (template_to_fixed_record_type, template_to_static_fixed_type)
1181 (to_record_with_fixed_variant_part): Likewise.
1182 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1183 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1184 * dwarfread.c (struct_type, enum_type): Likewise.
1185 * hpread.c (hpread_read_enum_type)
1186 (hpread_read_function_type, hpread_read_doc_function_type)
1187 (hpread_read_struct_type): Likewise.
1188 * mdebugread.c (parse_symbol): Likewise.
1190 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1192 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1193 * stack.c (print_frame_info_base): Update.
1194 (print_frame_info_base, frame_info): Update.
1195 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1196 (sparc_frame_saved_pc): Update.
1197 * ada-lang.c (find_printable_frame): Update.
1198 * breakpoint.c (deprecated_frame_in_dummy): Update.
1200 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1202 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1204 (regmap): Extend to cover all registers.
1205 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1206 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1208 (fetch_register, sore_register): Simplify.
1209 (old_fetch_inferior_registers, old_store_inferior_registers):
1211 (cannot_fetch_register, cannot_store_register): Change
1212 implementation to use regmap array to decide which registers
1213 cannot be fetched/stored. This removes $orig_eax from the
1214 registers that cannot be fetched/stored.
1215 (fetch_inferior_registers): Call fetch_register directly instead
1216 of calling old_fetch_inferior_registers.
1217 (store_inferior_registers): Call store_register directly instead
1218 of calling old_store_inferior_registers.
1219 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1220 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1221 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1223 2002-11-09 Klee Dienes <kdienes@apple.com>
1225 * i387-tdep.c (i387_supply_register): When called with NULL as a
1226 buffer, mark the register as not provided (to mirror the behavior
1227 of supply_register).
1228 (i387_supply_fxsave): Ditto.
1229 (i387_supply_fsave): Ditto (inherits the behavior from
1230 i387_supply_register).
1232 2002-11-09 Klee Dienes <kdienes@apple.com>
1234 * blockframe.c (sigtramp_saved_pc): Use
1235 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1236 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1237 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1239 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1241 * frame.c (get_prev_frame): Test prev_p to identify a previously
1242 unwound frame. Initialize prev_p.
1243 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1246 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1248 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1249 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1250 more comments. Zap dead code.
1252 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1254 * infcmd.c (print_vector_info, print_float_info): Move code that
1255 checks whether the target has any registers and whether there is a
1256 selected frame up, such that it is also used if a target provides
1257 multi-arch definitions of these functions.
1259 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1261 * Makefile.in (DESTDIR): Define.
1262 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1265 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1266 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1268 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1270 * i386-linux-tdep.c: Include "reggroups.h".
1271 (i386_linux_register_reggroup_p): New function.
1272 (i386_linux_init_abi): Set register_reggroup_p to
1273 i386_linux_register_reggroup_p.
1274 * i386-tdep.h (i386_register_reggroup_p): Declare.
1275 * i386-tdep.c: Include "reggroups.h".
1276 (i386_init_reggroups): New function.
1277 (i386_add_reggroups): New function.
1278 (i386_register_reggroup_p): New function.
1279 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1280 (_initialize_i386_tdep): Call i386_init_reggroups.
1281 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1284 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1286 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1287 request that's available in *BSD.
1289 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1291 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1294 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1296 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1297 * dummy-frame.c (find_dummy_frame): Rename
1298 generic_find_dummy_frame, make static. Return the dummy frame
1299 instead of the regcache.
1300 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1301 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1302 (dummy_frame_register_unwind): Rename
1303 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1304 * dummy-frame.h (dummy_frame_register_unwind): Rename
1305 generic_call_dummy_register_unwind.
1307 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1309 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1310 except the inclusion of "i386/tm-i386.h", to...
1311 * config/i386/nm-i386v42mp.h: ...here.
1312 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1314 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1316 * Makefile.in (frame.o): Update dependencies.
1317 * blockframe.c (current_frame, frame_obstack_alloc)
1318 (frame_saved_regs_zalloc, get_current_frame)
1319 (set_current_frame, create_new_frame)
1320 (set_unwind_by_pc, get_next_frame)
1321 (flush_cached_frames, reinit_frame_cache)
1322 (frame_saved_regs_register_unwind)
1323 (deprecated_generic_get_saved_register)
1324 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1325 (_initialize_blockframe): Move frame code from here...
1326 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1327 "annotate.h" and "dummy-frame.h".
1328 (_initialize_frame): New function.
1330 2002-11-08 Jim Blandy <jimb@redhat.com>
1332 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1333 when we finish a function a context.
1334 * buildsym.h (outermost_context_p): New macro.
1335 (Bug analyzed by David Edelsohn.)
1337 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1339 * blockframe.c: Include "dummy-frame.h".
1340 (struct dummy_frame, dummy_frame_stack)
1341 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1342 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1343 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1344 (generic_save_call_dummy_addr, generic_pop_current_frame)
1345 (generic_pop_dummy_frame, generic_fix_call_dummy)
1346 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1347 dummy frame code from here...
1348 * dummy-frame.c: ...to here. New file.
1349 * dummy-frame.h: New file.
1350 (generic_call_dummy_register_unwind): Declare.
1351 (generic_find_dummy_frame): Declare.
1352 * Makefile.in (SFILES): Add dummy-frame.c.
1353 (dummy-frame.o): Specify dependencies.
1354 (dummy_frame_h): Define.
1355 (COMMON_OBS): Add dummy-frame.o.
1356 (blockframe.o): Update dependencies.
1358 2002-11-08 Jim Blandy <jimb@redhat.com>
1360 * dwarf2read.c (read_func_scope): Restore local_symbols and
1361 param_symbols after we finish the function context. (Based on a
1362 patch from David Edelsohn.)
1364 2002-11-08 David Carlton <carlton@math.stanford.edu>
1366 * linespec.c (symbol_found): New function.
1367 (minsym_found): New function.
1368 (decode_line_1): Separate out some code into separate functions.
1370 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1372 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1373 the benefit of the interix target.
1374 * i386-tdep.h (i386_frameless_signal_p): Declare.
1376 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1378 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1379 declaration that snuck in from change below.
1381 2002-11-06 Andrew Cagney <cagney@redhat.com>
1383 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1385 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1386 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1387 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1388 (i386_mxcsr_regnum_p): new function. Use instead of
1390 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1391 (i386_sse_regnum_p): Declare.
1392 (i386_mxcsr_regnum_p): Declare.
1393 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1394 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1395 (IS_FP_REGNUM): Update definition.
1396 (IS_FPU_CTRL_REGNUM): Update definition..
1397 (IS_SSE_REGNUM): Update definition..
1398 * i386v-nat.c (register_u_addr): Update.
1399 * go32-nat.c (fetch_register): Update.
1400 (store_register): Update.
1402 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1404 Preparation work to convert the hppa targets to multiarch partial.
1406 * hppa-tdep.c: Add new functions replacing macro bodies from
1407 config/pa/tm-hppa.h. These function will be used to initialize
1408 the gdbarch structure. Import some comments from tm-hppa.h,
1409 and place them where appropriate, to avoid loosing them when
1410 we cleanup this file.
1411 (hppa_reg_struct_has_addr): New function.
1412 (hppa_inner_than): New function.
1413 (hppa_stack_align): New function.
1414 (hppa_pc_requires_run_before_use): New function.
1415 (hppa_instruction_nullified): New function.
1416 (hppa_register_byte): New function.
1417 (hppa_register_virtual_type): New function.
1418 (hppa_store_struct_return): New function.
1419 (hppa_cannot_store_register): New function.
1420 (hppa_frame_args_address): New function.
1421 (hppa_frame_locals_address): New function.
1422 (hppa_smash_text_address): New function.
1423 (hppa_coerce_float_to_double): New function. Requires the inclusion
1426 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1428 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1429 gdbarch-eligible macro to a call to the new associated function
1430 created in hppa-tdep.c.
1431 (INNER_THAN): Likewise.
1432 (STACK_ALIGN): Likewise.
1433 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1434 (INSTRUCTION_NULLIFIED): Likewise.
1435 (REGISTER_BYTE): Likewise.
1436 (REGISTER_VIRTUAL_TYPE): Likewise.
1437 (STORE_STRUCT_RETURN): Likewise.
1438 (CANNOT_STORE_REGISTER): Likewise.
1439 (FRAME_ARGS_ADDRESS): Likewise.
1440 (FRAME_LOCALS_ADDRESS): Likewise.
1441 (SMASH_TEXT_ADDRESS): Likewise.
1442 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1443 (ABOUT_TO_RETURN): Delete, as no longer used.
1445 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1447 * printcmd.c (disassemble_command): Remove obsolete function.
1448 (_initialize_printcmd): Do not create disassemble command here.
1449 * cli/cli-cmds.c (disassemble_command): New function. Implements
1450 disassemble command.
1451 (init_cli_cmds): Create disassemble command here instead.
1453 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1455 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1457 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1459 * regcache.h (regcache_cooked_read_using_offset_hack)
1460 (regcache_cooked_write_using_offset_hack): Delete declarations.
1461 (register_changed): Delete declaration.
1462 * regcache.c (regcache_cooked_read_using_offset_hack)
1463 (regcache_cooked_write_using_offset_hack): Delete functions.
1464 (cooked_xfer_using_offset_hack): Delete function.
1465 (register_changed): Delete function.
1467 2002-11-07 Jim Blandy <jimb@redhat.com>
1469 * macroscope.c: #include "complaints.h".
1470 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1471 but not in the macro table.
1472 * Makefile.in (macroscope.o): Record dependency.
1474 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1476 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1478 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1480 * regcache.c (deprecated_registers_fetched): Update.
1481 * regcache.h (deprecated_registers_fetched): Rename
1483 * remote-vxsparc.c (vx_read_register): Update.
1484 * remote-vxmips.c (vx_read_register): Update.
1485 * remote-vx68.c (vx_read_register): Update.
1486 * irix5-nat.c (fetch_core_registers): Update.
1487 * mipsm3-nat.c (fetch_inferior_registers): Update.
1488 * sun3-nat.c (fetch_inferior_registers): Update.
1489 * symm-nat.c (fetch_inferior_registers): Update.
1490 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1491 (fetch_core_registers): Update.
1492 (fetch_kcore_registers): Update.
1493 * mips-nat.c (fetch_inferior_registers): Update.
1494 * corelow.c (get_core_registers): Update.
1495 * a68v-nat.c (fetch_inferior_registers): Update.
1497 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1499 Put in place the framework necessary for multiarching the hppa targets.
1500 * hppa-tdep.c (hppa_gdbarch_init): New function.
1501 (hppa_dump_tdep): New function.
1502 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1503 tdep structure dumper.
1504 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1505 until the multi-arching conversion has partially been completed.
1507 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1509 * valops.c (value_assign): Merge lval_register case into
1510 lval_reg_frame_relative. Use frame_register and
1511 regcache_cooked_write instead of get_saved_register and
1512 write_register_bytes. After flushing the register cache, try to
1513 re-select the selected frame.
1515 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1517 * regcache.h (deprecated_register_valid): Rename register_valid.
1518 * regcache.c: Update.
1519 * ia64-aix-nat.c: Update.
1520 * i386gnu-nat.c: Update.
1521 * alpha-nat.c: Update.
1522 * sparc-nat.c: Update.
1523 * lynx-nat.c: Update.
1524 * remote-mips.c: Update.
1526 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1528 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1529 to end of file, to be more consistent with the pratice followed
1532 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1534 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1535 (print_float_info): Print registers in float_reggroup.
1536 (print_vector_info): Print registers in vector_reggroup.
1537 (default_print_registers_info): When all, print registers in
1538 all_reggroup. Otherwize, print registers in general_reggroup.
1539 (registers_info): Rewrite. Add support for register groups.
1542 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1544 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1546 (symtab_symbol_info): Remove eons old ifdeffed out code.
1547 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1550 2002-11-06 Theodore A. Roth <troth@openavr.org>
1552 * c-exp.y: Add missing semi-colons.
1553 * f-exp.y: Add missing semi-colons.
1554 * m2-exp.y: Add missing semi-colons.
1555 * p-exp.y: Add missing semi-colons.
1556 Add empty action to start rule to avoid a type clash error when
1557 building with bison >= 1.50.
1559 2002-11-06 Jim Blandy <jimb@redhat.com>
1561 * macrotab.h (struct macro_source_file): Doc fix.
1563 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1565 * varobj.c (child_exists, cplus_number_of_children): Change
1566 STREQ macro references to strcmp.
1567 (cplus_name_of_child): Change code to handle the fact that
1568 fields are not necessarily contiguous with regards to their
1569 access control. This is a fix for PR gdb/792.
1571 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1573 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1574 * gdbarch.h, gdbarch.c: Regnerate.
1575 * frame.h (frame_register): Declare.
1576 * frame.c (frame_register): New function.
1577 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1578 GET_SAVED_REGISTER, otherwize call
1579 generic_unwind_get_saved_register.
1580 (frame_register_read): Use frame_register instead of
1583 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1585 From Jim Ingham <jingham@apple.com>:
1586 * event-top.c (gdb_disable_readline): New function.
1587 (_initialize_event_loop): Move comment.
1589 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1591 * event-loop.c (start_event_loop): Add comment.
1594 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1596 * infcmd.c (default_print_registers_info): Do not call
1597 PRINT_REGISTER_HOOK.
1599 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1601 * sparc-tdep.c (sparc_print_register_hook): Make static.
1602 (sparc_print_registers_info): New function.
1603 (sparc_do_registers_info): New function.
1604 (sparclet_print_registers_info): New function.
1605 (sparclet_do_registers_info): New function.
1606 (do_sparc_print_registers_info): New function.
1607 (sparc_print_registers): New static function, clone of infcmd.c's
1608 default_print_registers_info.
1609 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1610 (sparclet_do_registers_info): Declare.
1611 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1612 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1614 (sparc_do_registers_info): Declare.
1615 (PRINT_REGISTER_HOOK): Delete macro.
1616 (sparc_print_register_hook): Delete declaration.
1618 2002-11-05 David Carlton <carlton@math.stanford.edu>
1620 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1622 (lookup_symbol_aux_local): New function.
1623 (lookup_symbol_aux_symtabs): New function.
1624 (lookup_symbol_aux_psymtabs): New function.
1626 2002-11-05 David Carlton <carlton@math.stanford.edu>
1628 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1629 previous values of 'objfile' and 'block'.
1631 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1633 * values.c (value_change_enclosing_type): Set
1634 enclosing_type field correctly also for the case where
1635 more memory needs to be allocated.
1637 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1639 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1642 * i387-tdep.c (i387_print_float_info): Replace calls to
1643 register_read and deprecated_read_register_gen with calls to
1644 frame_register_read, and make the necessary adjustments to the
1647 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1649 * gdbarch.sh (register_reggroup_p): Allow default value.
1650 * gdbarch.h, gdbarch.c: Regenerate.
1652 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1654 * regcache.h: Add coment indicating replacements for deprecated
1657 2002-11-02 Andrew Cagney <cagney@redhat.com>
1659 * reggroups.h, reggroups.c: New files.
1660 * regcache.c: Include "reggroups.h".
1661 (enum regcache_dump_what): Add `regcache_dump_groups'.
1662 (regcache_dump): Contract size of the "Type" column. When
1663 specified, dump the register's groups.
1664 (maintenance_print_register_groups): New function.
1665 (_initialize_regcache): Add command `maint print register-groups'.
1666 * Makefile.in (COMMON_OBS): Add reggroups.o
1667 (SFILES): Add reggroups.c.
1668 (reggroups_h): Define.
1669 (regcache.o, gdbarch.o): Update dependencies.
1670 (reggroups.o): Specify dependencies.
1671 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1672 Add opaque declaration for `struct reggroup' in generated .h file.
1673 Include "reggroups.h" in generated .c file.
1674 gdbarch.h, gdbarch.c: Re-generate.
1676 2002-11-02 Andrew Cagney <cagney@redhat.com>
1678 * regcache.h (deprecated_read_register_gen): Rename
1680 (deprecated_write_register_gen): Rename write_register_gen.
1681 * i387-tdep.c: Update.
1682 * x86-64-linux-nat.c: Update
1684 * thread-db.c: Update.
1685 * win32-nat.c: Update.
1686 * mips-tdep.c: Update.
1687 * d10v-tdep.c: Update.
1688 * cris-tdep.c: Update.
1689 * remote-sim.c: Update.
1690 * remote-rdi.c: Update.
1691 * remote-rdp.c: Update.
1694 * blockframe.c: Update.
1695 * x86-64-tdep.c: Update.
1696 * xstormy16-tdep.c: Update.
1697 * sh-tdep.c: Update.
1698 * s390-tdep.c: Update.
1699 * rs6000-tdep.c: Update.
1700 * sparc-tdep.c: Update.
1701 * i386-tdep.c: Update.
1702 * dwarf2cfi.c: Update.
1703 * regcache.c: Update.
1705 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1707 New interix-specific files:
1708 * config/i386/nm-interix.h: New file.
1709 * config/i386/interix.mh: New file.
1710 * config/i386/interix.mt: New file.
1711 * i386-interix-nat.c: New file.
1712 * i386-interix-tdep.c: New file.
1714 2002-11-01 Andrew Cagney <cagney@redhat.com>
1716 * frame.h (deprecated_generic_get_saved_register): Rename
1717 generic_get_saved_register.
1718 * blockframe.c (deprecated_generic_get_saved_register): Update.
1719 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1720 (xstormy16_frame_saved_register): Update.
1721 * sh-tdep.c (sh_gdbarch_init): Update.
1722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1723 * ia64-tdep.c (ia64_get_saved_register): Update.
1724 * cris-tdep.c (cris_gdbarch_init): Update.
1725 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1726 * arm-tdep.c (arm_gdbarch_init): Update.
1728 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1730 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1732 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1734 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1735 trampolines in sigaction.
1737 2002-10-31 Andrew Cagney <cagney@redhat.com>
1739 * h8300-tdep.c: Include "gdb_assert.h".
1740 (h8300_print_register): Add gdbarch, file and frame parameters.
1741 Use frame_read_unsigned_register to read the register's value.
1742 Use fprintf_filtered to display output.
1743 (h8300_print_registers_info): Replace h8300_do_registers_info.
1744 (h8300_gdbarch_init): Set print_registers_info.
1746 2002-10-31 Andrew Cagney <cagney@redhat.com>
1748 * frame.c (frame_read_unsigned_register): New function.
1749 (frame_read_signed_register): New function.
1750 * frame.h (frame_read_unsigned_register): Declare.
1751 (frame_read_signed_register): Declare.
1753 2002-10-31 Andrew Cagney <cagney@redhat.com>
1755 * h8500-tdep.c (h8500_print_registers_info): New static function,
1756 clone of infcmd.c's default_print_registers_info.
1757 (h8500_do_registers_info): New funtion.
1758 (h8500_print_register_hook): Rename print_register_hook, make
1761 * config/h8500/tm-h8500.h: Update copyright.
1762 (DEPRECATED_DO_REGISTERS_INFO): Define.
1763 (h8500_do_registers_info: Declare.
1764 (PRINT_REGISTER_HOOK): Delete macro.
1765 (print_register_hook): Delete function.
1767 2002-10-31 Andrew Cagney <cagney@redhat.com>
1769 * z8k-tdep.c (z8k_print_register_hook): Make static.
1770 (z8k_print_registers_info): New static function, clone of
1771 infcmd.c's default_print_registers_info.
1772 (z8k_do_registers_info): New function. Wrap
1773 z8k_print_registers_info.
1774 * config/z8k/tm-z8k.h: Update copyright.
1775 (PRINT_REGISTER_HOOK): Delete macro.
1776 (z8k_print_register_hook): Delete declaration.
1777 (DEPRECATED_DO_REGISTERS_INFO): Define.
1778 (z8k_do_registers_info): Declare.
1780 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1782 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1783 as this is already provided by value.h, and was actually causing
1784 a compilation error because of a conflict in parameter type
1785 declaration due to a missing const keyword.
1786 (low_text_segment_addres): Fix a compilation warning.
1788 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1790 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1791 registers without a name.
1792 (mips_linux_cannot_store_register): Don't store registers without
1795 2002-10-28 David Carlton <carlton@math.stanford.edu>
1797 * symtab.c (find_addr_symbol): Delete. (It was already commented
1799 * symtab.h: Delete prototype for find_addr_symbol.
1801 2002-10-26 Andrew Cagney <cagney@redhat.com>
1803 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1805 gdbarch.h, gdbarch.c: Re-generate.
1806 * infcmd.c (default_print_registers_info): Update reference.
1807 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1808 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1809 * sh-tdep.c (sh_gdbarch_init): Ditto.
1810 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1813 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1815 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1816 cfi_init_extra_frame_info.
1817 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1818 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1820 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1821 target where necessary. Add more comments and remove the ones
1822 that don't provide any useful information.
1824 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1825 deprecated_read_register_dummy with
1826 frame_unwind_unsigned_register.
1828 * i386-tdep.c (i386_extract_struct_value_address): Use
1829 regcache_raw_read_unsigned instead of
1830 regcache_cooked_read_unsigned since we know that the register
1831 we're reading isn't a pseudo register. Rename variable 'val' into
1832 the more descriptive 'addr'.
1834 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1835 (x86_64_push_return_address): Add comment.
1836 (x86_64_pop_frame): Make static.
1837 (examine_argument): Clarify comment.
1838 (x86_64_skip_prologue): Make prolog_expact variable static.
1840 * dwarf2cfi.c: Fix some formatting problems.
1841 (context_cpy, read_encoded_pointer): Clarify comments.
1843 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1844 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1845 i386 target back into x86_64_gdbarch_init. Add some comments and
1846 remove meaningless ones.
1848 2002-10-25 Andrew Cagney <cagney@redhat.com>
1850 * complaints.h (struct deprecated_complaint): Rename `struct
1852 * complaints.c (complain): Update.
1853 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1854 incorrect comment indicating that "symfile.h" was being included
1855 for the `struct complaint' definition.
1856 * remote-vx.c: Update.
1857 * objc-lang.c: Update.
1858 * xcoffread.c: Update.
1860 * mdebugread.c: Update.
1861 * stabsread.c: Update.
1862 * dwarf2read.c: Update.
1863 * dwarfread.c: Update.
1864 * elfread.c: Update.
1865 * coffread.c: Update.
1866 * stabsread.h: Update.
1867 * dbxread.c: Update.
1868 * buildsym.c: Update.
1869 * gdbtypes.c: Update.
1870 * macrotab.c: Update.
1872 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1874 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1875 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1876 (x86_64_init_abi): ...new function.
1878 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1879 * i386v-nat.c: Include "i386-tdep.h".
1881 2002-10-25 Andrew Cagney <cagney@redhat.com>
1883 * gdbtypes.c (address_space_name_to_int): Update.
1884 (address_space_int_to_name): Update.
1885 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1886 multi-arch predicate.
1887 (address_class_name_to_type_flags): Ditto.
1888 * gdbarch.h, gdbarch.c: Re-generate.
1890 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1892 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1894 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1896 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1898 * symtab.h (INIT_SAL): Delete macro.
1900 * symtab.c (init_sal): New function.
1902 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1903 to init_sal function call.
1904 (find_sal_from_funcs_and_line): Ditto.
1905 (all_sals_for_line): Ditto.
1906 * breakpoint.c (create_internal_breakpoint): Ditto.
1907 (create_fork_vfork_event_catchpoint): Ditto.
1908 (create_exec_event_catchpoint): Ditto.
1909 (parse_breakpoint_sals): Ditto.
1910 (watch_command_1): Ditto.
1911 (handle_gnu_4_16_catch_command): Ditto.
1912 (clear_command): Ditto.
1913 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1914 * infcmd.c (run_stack_dummy): Ditto.
1915 * infrun.c (process_event_stop_test): Ditto.
1916 (check_sigtramp2): Ditto.
1917 (step_over_function): Ditto.
1918 * linespec.c (decode_line_2): Ditto.
1919 (decode_line_1): Ditto.
1920 * source.c (line_info): Ditto.
1921 * symtab.c (find_pc_sect_line): Ditto.
1923 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1925 * dwarf2cfi.c (struct context)
1926 (struct context_reg): Moved to dwarf2cfi.h
1927 (context_alloc, frame_state_alloc, context_cpy):
1928 Made extern instead of static, removed prototypes.
1929 * dwarf2cfi.h (struct context)
1930 (struct context_reg): New, moved from dwarf2cfi.c
1931 (context_alloc, frame_state_alloc, context_cpy):
1933 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1934 Changed from static to extern.
1935 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1936 (LINUX_SIGCONTEXT_FP_OFFSET)
1937 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1938 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1939 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1940 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1941 set_gdbarch_*() calls now use x86-64 specific functions
1942 instead of DWARF2 CFI ones.
1943 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1944 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1945 (x86_64_init_extra_frame_info): New prototypes.
1947 2002-10-23 David Carlton <carlton@math.stanford.edu>
1949 * linespec.c: #include "parser-defs.h".
1950 Delete prototype for find_template_name_end.
1951 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1953 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1955 * NEWS: add recent mi fixes.
1956 * varobj.c (struct varobj): Add new "updated" flag.
1957 (new_variable): Default "updated" flag to 0.
1958 (varobj_set_value): Set "updated" flag to 1 if value
1960 (varobj_update): Check varobj "updated" flag before
1961 comparing old and refreshed values. Fix for
1964 2002-10-23 David Carlton <carlton@math.stanford.edu>
1966 * parse.c (parse_exp_1): Use BLOCK_START.
1967 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1969 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1971 2002-10-23 David Carlton <carlton@math.stanford.edu>
1973 * symtab.c: Delete cplusplus_hint.
1974 Delete prototype for find_template_name_end.
1976 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1978 * symtab.h: Update comment.
1980 2002-10-23 Michael Snyder <msnyder@redhat.com>
1982 * printcmd.c (address_info): Restore quotes in output.
1983 * valops.c (value_of_local): Restore quotes in error message.
1985 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1987 * symtab.c (symbol_demangled_name): New function.
1988 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1989 turning most of it into a function.
1990 (symbol_demangled_name): Export.
1992 2002-10-23 Michael Snyder <msnyder@redhat.com>
1994 * valops.c (value_of_local): Restore quotes in error message.
1996 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1998 * symtab.c (symbol_init_language_specific): New function.
1999 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2000 turning most of it into a function.
2001 (symbol_init_language_specific): Export.
2003 2002-10-23 David Carlton <carlton@math.stanford.edu>
2005 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2006 (dwarf_attr_name): Ditto.
2007 (dwarf_type_encoding_name): Ditto.
2008 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2009 (process_die): Handle DW_TAG_namespace,
2010 DW_TAG_imported_declaration, DW_TAG_imported_module.
2011 (read_namespace): New function.
2013 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2015 * configure.in: Define NEW_PROC_API on Interix too.
2016 * configure: Regenerate.
2018 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2020 * configure: Regenerate using the proper version of autoconf.
2022 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2024 * findvar.c (read_var_value): Temporarily disable TLS code, until
2025 complete TLS support is added.
2027 2002-10-21 Jim Blandy <jimb@redhat.com>
2028 Elena Zannoni <ezannoni@redhat.com>
2030 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2031 for thread local storage locations.
2032 (struct symbol): Add objfile field.
2033 (SYMBOL_OBJFILE): Define.
2034 * dwarf2read.c (is_thread_local): New static variable.
2035 (new_symbol): If variable is in thread local fill in address class
2036 and objfile appropriately.
2037 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2039 * printcmd.c (address_info): Print the information for thread
2040 local storage variable.
2041 * findvar.c (read_var_value): In case of thread local variable,
2042 defer to the target vector code to compute address.
2044 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2046 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2047 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2049 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2051 * symtab.h (address_class): Rename
2052 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2053 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2054 * printcmd.c (address_info): Ditto.
2055 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2057 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2059 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2060 DBREG_DRX macro to acces debug registers.
2062 * Makefile.in (i386obsd-tdep.o): New target.
2064 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2065 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2067 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2068 * config/i386/obsd.mt: New file.
2069 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2070 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2071 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2072 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2073 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2074 * i386obsd-tdep.c: New file.
2076 2002-10-19 Adam Fedor <fedor@gnu.org>
2078 * objc-exp.y (name_not_typename): Fix invalid comment.
2080 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2082 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2083 to allocate partial syms and macro byte caches.
2085 2002-10-18 David Carlton <carlton@math.stanford.edu>
2087 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2089 2002-10-18 Adam Fedor <fedor@gnu.org>
2091 * stabsread.c (find_name_end): New function.
2092 (define_symbol): Use it.
2094 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2096 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2097 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2098 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2099 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2101 2002-10-17 David Carlton <carlton@math.stanford.edu>
2103 * symfile.h: Add opaque declaration for struct obstack.
2104 Declare obsavestring to take a const char *.
2105 * symfile.c (obsavestring): Make first argument a const char *.
2107 2002-10-16 Adam Fedor <fedor@gnu.org>
2109 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2110 names when matching breakpoints in current file.
2112 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2114 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2115 (read_tag_pointer_type): Add address class support.
2116 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2117 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2119 * gdbarch.h, gdbarch.c: Regenerate.
2120 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2121 (make_type_with_address_space, recursive_type_dump): Add address
2123 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2124 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2125 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2127 2002-10-16 Klee Dienes <kdienes@apple.com>
2129 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2130 to get the last character of a char[] buffer, not
2131 name[sizeof(vptr_name)-1].
2133 2002-10-14 Adam Fedor <fedor@gnu.org>
2135 * symtab.h: New objc_specific struct.
2136 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2137 (SYMBOL_DEMANGLED_NAME): Likewise.
2139 2002-10-14 Adam Fedor <fedor@gnu.org>
2141 * symfile.c (init_filename_language_table): Add ObjC file extension.
2143 2002-10-14 Adam Fedor <fedor@gnu.org>
2145 * utils.c (puts_filtered_tabular): New function.
2146 (fprintf_symbol_filtered): Get ObjC demangled name.
2147 * defs.h (puts_filtered_tabular): Declared.
2149 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2151 * c-lang.h (c_type_print_varspec_prefix): Delete.
2152 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2153 ``need_post_space'' parameter. Adjust all callers.
2155 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2157 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2158 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2159 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2160 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2162 2002-10-13 Adam Fedor <fedor@gnu.org>
2164 * source.c (print_source_lines): Update comments.
2166 2002-10-13 Adam Fedor <fedor@gnu.org>
2168 * valops.c (value_of_local): New function.
2169 (value_of_this): Use it.
2170 * value.h (value_of_local): Declared.
2172 2002-10-13 Adam Fedor <fedor@gnu.org>
2174 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2175 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2177 2002-10-12 Adam Fedor <fedor@gnu.org>
2179 * language.c (binop_result_type): Add language_objc to case.
2180 (integral_type): Likewise.
2181 (character_type): Likewise.
2182 (string_type): Likewise.
2183 (boolean_type): Likewise.
2184 (structured_type): Likewise.
2185 (binop_type_check): Likewise.
2187 2002-10-11 Adam Fedor <fedor@gnu.org>
2189 * printcmd.c (address_info): Print 'self' for ObjC.
2191 2002-10-11 Adam Fedor <fedor@gnu.org>
2193 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2196 2002-10-11 Adam Fedor <fedor@gnu.org>
2198 * language.h (CAST_IS_CONVERSION): Add language_objc.
2200 2002-10-11 Adam Fedor <fedor@gnu.org>
2202 * defs.h (enum language): Add language_objc.
2204 2002-10-11 Klee Dienes <kdienes@apple.com>
2206 * corefile.c (read_memory_typed_address): New function.
2207 * gdbcore.h (read_memory_typed_address): Add prototype.
2208 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2209 to read a value destined for a CORE_ADDR, not read_memory_integer.
2210 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2211 (f77_get_dynamic_lowerbound): Ditto.
2213 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2215 * utils.c (string_to_core_addr): After turning string into
2216 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2217 which will do necessary sign-extension, etc.
2219 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2221 * c-exp.y (THIS): Delete token and grammar rule.
2222 (yylex): Don't return THIS.
2223 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2224 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2225 * demangle.c (cplus_markers): Update comment. Put '$'
2226 first. Remove CPLUS_MARKER.
2227 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2228 * jv-exp.y (THIS): Delete token and grammar rule.
2229 (yylex): Don't return THIS.
2230 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2231 * objc-exp.y (THIS): Delete token and grammar rule.
2232 (yylex): Don't return THIS.
2233 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2234 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2235 (read_member_functions): Likewise for opname.
2236 (read_tilde_fields): Use is_cplus_marker.
2238 * defs.h (CPLUS_MARKER): Don't define.
2239 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2240 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2241 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2242 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2243 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2245 * config/i386/tm-i386v4.h: Delete file.
2246 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2247 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2248 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2249 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2250 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2251 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2252 * config/i386/i386v4.mt (TM_FILE): Likewise.
2253 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2255 2002-10-10 Marko Mlinar <markom@opencores.org>
2257 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2258 accidentially not commited 2002-10-09
2259 * gdbarch.h, gdbarch.c: Re-generate.
2261 2002-10-09 Marko Mlinar <markom@opencores.org>
2263 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2264 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2265 * gdbarch.h, gdbarch.c: Re-generate.
2267 2002-10-08 Petr Sorfa <petrs@caldera.com>
2269 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2271 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2272 so we can work on more than one compilation unit at a time. This
2273 helps prepare GDB to handle inter-CU die references.
2274 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2275 the code to be defined before struct comp_unit_head.
2276 (comp_unit_head): Added new members - offset, cu_head,
2277 begin_die, next and dwarf2_abbrevs.
2278 (dwarf2_abbrevs): Removed single static var; now member of
2279 struct comp_unit_head.
2280 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2282 (psymtab_to_symtab_1): Changed to work with the new
2283 struct comp_unit_head.
2284 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2285 constructs the dwarf2_abbrevs[] inside the cu_header.
2286 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2287 dwarf2_abbrev table to clean up.
2288 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2289 handling of dwarf2_abbrevs inside the cu_header.
2290 (read_partial_die): Now supports the call to the new
2291 dwarf2_lookup_abbrev.
2292 (read_full_die): Now supports the call to the new
2293 dwarf2_lookup_abbrev.
2295 2002-10-06 Christopher Faylor <cgf@redhat.com>
2297 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2298 insure that shell variables, such as "transformed_name" are propagated
2299 to later shell statements in rule.
2301 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2303 * config/i386/nm-i386sco.h: Add protection against
2304 multiple-inclusion. Include "i386/nm-i386v.h".
2305 (REGISTER_U_ADDR): Remove define.
2306 (i386_register_u_addr): Remove prototype.
2308 2002-10-04 Michael Snyder <msnyder@redhat.com>
2310 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2311 before treating it as a single-step event.
2313 2002-10-03 Adam Fedor <fedor@gnu.org>
2315 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2316 (objc_demangle): Remove assignment in if statements, Replace
2318 (add_msglist): Likewise.
2319 (end_msglist): Likewise.
2320 (complare_selectors): Likewise.
2321 (selectors_info): Likewise.
2322 (compare_classes): Likewise.
2323 (classes_info): Likewise.
2324 (print_object_command): Likewise.
2325 (find_objc_msgcall_submethod): Replace PTR with void *.
2326 * objc-lang.h: Remove check for __STDC__.
2328 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2330 * ui-out.h (ui_out_field_fmt_int): New prototype.
2331 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2332 of field width and alignment.
2333 * stack.c (print_frame_info_base): When printing frame level, use
2334 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2337 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2339 * MAINTAINERS: Add self to Write After Approval list.
2341 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2343 * infcmd.c (interrupt_target_command_wrapper): Delete.
2344 (interrupt_target_command): Make non static.
2345 (nofp_registers_info): Make static.
2346 * stack.c (return_command_wrapper): Delete.
2347 (return_command): Make non static.
2349 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2351 * event-top.c (gdb_setup_readline): New function. Code moved from
2352 _initialize_event_loop().
2353 (_initialize_event_loop): Call gdb_setup_readline().
2355 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2357 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2358 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2359 * gdbarch.h, gdbarch.c: Re-generate.
2361 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2364 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2366 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2367 of fill_in_vptr_fieldno.
2369 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2371 * inferior.h (registers_info, stepi_command, nexti_command,
2372 continue_command, interrupt_target_command): Export from infcmd.c.
2373 * frame.h (args_info, selected_frame_level_changed_hook,
2374 return_command): Export from stack.c.
2375 * v850ice.c (stepi_command, nexti_command, continue_command): use
2376 prototypes from inferior.h.
2377 * tracepoint.c (registers_info, args_info, locals_info): Use
2378 prototypes from frame.h and inferior.h.
2379 * Makefile.in (mi-main.o): Add dependency on frame.h.
2381 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2383 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2384 value in register 3 adjusted by ppc_gp0_regnum.
2386 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2388 2002-10-02 Marko Mlinar <markom@opencores.org>
2390 * MAINTAINERS: Add myself to the Write After Approval list.
2392 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2394 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2395 of the section for the N64 ABI, fixed.
2397 * config/mips/tm-irix6.h: Include solib.h.
2399 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2401 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2404 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2406 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2407 and that "mi0" syntax has been removed.
2409 2002-09-30 David Carlton <carlton@math.stanford.edu>
2411 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2412 * ppc-sysv-tdep.c: #include "gdb_string.h".
2413 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2416 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2418 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2419 "vrsave"'s register number.
2421 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2423 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2424 use frame_unwind_signed_register to obtain the PC.
2425 (mips_frame_chain): Handle a generic dummy frame.
2426 (mips_init_extra_frame_info): When a generic dummy frame, don't
2427 re-compute the frame base.
2428 (mips_pop_frame): Handle generic dummy frames.
2429 (mips_gdbarch_init): When generic dummy frames, set
2430 use_generic_dummy_frames, push_dummy_frame to
2431 generic_push_dummy_frame, pc_in_call_dummy to
2432 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2433 generic_save_dummy_frame_tos.
2435 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2437 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2438 against TOP when TOP was explictly set.
2439 (generic_push_dummy_frame): Set TOP to zero.
2441 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2443 * event-loop.c (start_event_loop): Rename variable 'result' to
2444 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2446 2002-09-30 Keith Seitz <keiths@redhat.com>
2448 * gdb-events.sh (selected_thread_changed): New event.
2449 * gdb-events.c: Regenerated.
2450 * gdb-events.h: Regenerated.
2452 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2454 * MAINTAINERS: Add self to Write After Approval list.
2456 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2458 * disasm.c: New file.
2459 * disasm.h: New file.
2460 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2461 (compare_lines): Ditto.
2462 (dump_insns): Ditto.
2463 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2465 (do_assembly_only): Ditto.
2466 (do_disassembly): Renamed to gdb_disassembly and moved to
2467 disasm.c. Sdded uiout argument.
2468 * Makefile.in: Add new files. Reorder SFILES list. Update
2469 dependencies. Include libgdb.a later in the insight executable.
2471 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2473 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2474 bfd/elf64-alpha-fbsd.c.
2476 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2478 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2481 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2483 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2485 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2487 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2488 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2489 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2490 (S_msg_sig_post_reply): Ditto.
2492 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2494 * sh-tdep.c (sh_use_struct_convention): Use definition according
2496 (sh_push_arguments): Store in register with correct endianess.
2497 (sh_default_store_return_value): Ditto.
2498 (sh_gdbarch_init): Set sizeof long double to 8.
2500 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2502 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2503 Fix some whitespace problems.
2505 2002-09-27 David Carlton <carlton@math.stanford.edu>
2507 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2508 (mcore-tdep.o): Ditto.
2509 (ns32k-tdep.o): Ditto.
2510 (ns32knbsd-tdep.o): Ditto.
2512 (vax-tdep.o): Ditto.
2513 * cris-tdep.c: #include "gdb_string.h"
2514 * mcore-tdep.c: Ditto.
2515 * ns32k-tdep.c: Ditto.
2516 * ns32knbsd-tdep.c: Ditto.
2518 * vax-tdep.c: Ditto.
2520 2002-09-27 David Carlton <carlton@math.stanford.edu>
2522 * config/djgpp/fnchange.lst: Add entries for
2523 gdb/testsuite/gdb.c++/m-static files.
2525 2002-09-27 Jim Wilson <wilson@redhat.com>
2527 * MAINTAINERS: Add myself to the Write After Approval list.
2529 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2531 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2534 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2536 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2539 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2541 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2542 (rs6000_struct_return_address): Delete variable.
2543 (rs6000_store_struct_return): Update.
2544 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2545 deprecated_extract_struct_value_address.
2546 (rs6000_frame_align): New function.
2547 (rs6000_gdbarch_init): Set frame_align.
2549 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2551 From Grace Sainsbury <graces@redhat.com>:
2552 * Makefile.in (gdbtk-main.o): New target.
2553 (gdb.o): New target.
2555 (main.o): Update dependencies.
2556 (gdb$(EXEEXT)): Add gdb.o.
2557 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2558 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2559 (SUBDIR_GDBTK_CLEAN): Set.
2560 (install-gdbtk): Install the insight binary.
2561 (uninstall-gdbtk): New target.
2562 (all-gdbtk, clean-gdbtk): New rule.
2563 * top.c (use_windows): Default to zero.
2564 * main.c: Include "main.h".
2566 (struct captured_main_args): Delete.
2567 (gdb_main): New function.
2571 2002-09-25 Andrew Cagney <cagney@redhat.com>
2573 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2574 (frame_map_regnum_to_name): New function.
2575 (frame_map_name_to_regnum): New function.
2576 * frame.h (frame_map_name_to_regnum): Declare.
2577 (frame_map_regnum_to_name): Declare.
2578 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2579 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2580 * parse.c: Do not include "builtin-regs.h".
2581 (target_map_name_to_register): Delete function.
2582 (write_dollar_variable): Use frame_map_name_to_regnum.
2583 * parser-defs.h (target_map_name_to_register): Delete declaration.
2584 * expprint.c: Include "frame.h".
2585 (print_subexp): Use frame_map_regnum_to_name.
2586 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2587 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2589 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2591 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2592 wasn't saved, and the next innermost frame is a dummy, return the
2593 dummy frame's link register.
2595 2002-09-24 Jim Blandy <jimb@redhat.com>
2597 Fix from Paul Breed:
2598 * main.c (captured_main): Add a `break' after the case for 'b'.
2600 2002-09-24 Keith Seitz <keiths@redhat.com>
2602 * varobj.c (c_type_of_child): Use get_target_type instead
2603 of TYPE_TARGET_TYPE.
2605 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2607 * source.c (get_current_or_default_source_symtab_and_line): Remove
2609 (set_default_source_symtab_and_line): New function. Attempts to
2610 determine a source file to list lines from if one is not currently
2612 (get_current_source_symtab_and_line): Initialize sal.pc and
2614 (set_current_source_symtab_and_line): Mark argument as const.
2615 * source.h: Update declarations and comments.
2616 * linespec.c (decode_line_1): Replace call to removed routine above.
2617 * stack.c (print_frame_info_base): Ditto.
2618 * cli/cli-cmds.c (edit_command): Ditto.
2619 (list_command): Ditto.
2621 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2623 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2624 sal.pc and sal.end fields.
2625 (get_current_or_default_source_symtab_and_line): Ditto.
2626 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2627 so we do not cause a new source symtab to be searched for (reverting an
2628 unintentional change from the 2002-09-20 patch).
2629 * scm-lang.c (scm_unpac): Ditto.
2631 2002-09-21 Andrew Cagney <cagney@redhat.com>
2633 * complaints.c (symfile_explanations): Remove new-line from
2634 ``isolated_message''.
2635 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2636 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2638 2002-09-20 Nick Clifton <nickc@redhat.com>
2640 * NEWS: Announce that V850EA ISA is no longer supported.
2641 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2643 2002-09-20 David Carlton <carlton@math.stanford.edu>
2645 * Makefile.in (c-lang.o): Correct dependencies.
2646 (utils.o): Gather dependencies.
2648 * c-lang.c: #include "gdb_string.h"
2650 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2652 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2653 * cli/cli-cmds.c (list_command): New function. Implements the new
2655 (_init_cli_cmds): Add new command definition.
2656 * gdb.1: Document edit command.
2657 * doc/gdb.texinfo: Document edit command.
2659 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2661 * source.c: Make global variables current_source_symtab and
2662 current_source_line static.
2663 (list_command): Moved to cli/cli-cmds.c.
2664 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2665 (get_first_line_listed): New accessor function.
2666 (get_lines_to_list): New accessor function.
2667 (get_current_source_symtab_and_line): New function. Retrieves the
2668 position in the source code that we consider current.
2669 (get_current_or_default_source_symtab_and_line): New function.
2670 Like the above but attempts to determine a default position if one
2671 is not currently defined.
2672 (set_current_source_symtab_and_line): New function. Sets the source
2673 code position considered current and returns the previously set one.
2674 (clear_current_source_symtab_and_line): Reset stored information about
2675 a current source line.
2676 (_initialize_source): Remove registration for the "list" command and
2678 * source.h: Add declarations for the new functions above.
2679 * symtab.h: Remove declarations for the global variables mentioned
2681 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2682 obtain current source line.
2683 * linespec.c (decode_line_1): Ditto.
2684 * macroscope.c (default_macro_scope): Ditto.
2685 * scm-lang.c (scm_unpac): Ditto.
2686 * stack.c (print_frame_info_base): Ditto.
2687 * symfile.c (clear_symtab_users): Ditto.
2688 * symtab.c (decode_line_spec): Ditto.
2689 * cli/cli-cmds.c (list_command): Moved here from source.c.
2690 (ambiguous_line_spec): Moved here from source.c.
2691 (_init_cli_cmds): Add definition for "list" and its alias.
2692 * Makefile.in: Update dependencies.
2694 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2696 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2697 with what gcc thinks is correct.
2699 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2701 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2702 multiple register push instruction.
2704 2002-09-19 Jim Blandy <jimb@redhat.com>
2706 Add support for distinct host and target character sets.
2707 * charset.c, charset.h: New files.
2708 * c-exp.y: #include "charset.h".
2709 (yylex): Convert character and string literals to the target
2710 character set, before returning them as the semantic value of the
2712 * c-lang.c: #include "charset.h".
2713 (c_emit_char): Use charset-specific methods to recognize
2714 characters with backslash escape forms, to decide which characters
2715 to print literally and which to print using numeric escape
2716 sequences, and to convert target characters to host characters
2718 * utils.c: #include "charset.h".
2719 (no_control_char_error): New function.
2720 (parse_escape): Use charset-specific methods to recognize
2721 backslash escapes, parse `control character' notation, and convert
2722 characters from the host character set to the target character set.
2723 * configure.in: Set the default host character set.
2724 Check where to find iconv, and what its argument types might be.
2725 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2726 * Makefile.in (SFILES): List charset.c.
2727 (COMMON_OBS): List charset.o.
2728 (charset.o): New rule.
2729 (charset_h): New header dependency variable.
2730 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2731 (LIBICONV): New variable, set by configure.
2732 (CLIBS): Include $(LIBICONV) here.
2733 * aclocal.m4, config.in, configure: Regenerated.
2735 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2737 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2740 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2742 * gdb_mbuild.sh: New file.
2744 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2746 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2748 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2750 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2751 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2752 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2753 valops.c, value.h: Revert previous change.
2755 2002-09-18 Michael Snyder <msnyder@redhat.com>
2757 Preliminary support for Objective-C:
2758 * defs.h (language_objc): New enum value.
2759 (puts_filtered_tabular): Declaration only, exported from utils.c.
2760 (skip_quoted): Delete, declared in completer.h.
2761 * c-exp.y: Include completer.h.
2764 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2765 New operator enum values.
2766 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2767 * language.c (binop_result_type): Handle language_objc case.
2768 (integral_type, character_type, string_type, boolean_type,
2769 structured_type, binop_type_check): Ditto.
2770 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2771 (struct objc_specific): Add to general_symbol_info.
2772 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2773 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2774 * parser-defs.h (struct objc_class_str): New struct type.
2775 (start_msglist, end_msglist, add_msglist): Declaration only,
2776 exported from objc-lang.c.
2777 * value.h (value_of_local, value_nsstring,
2778 call_function_by_hand_expecting_type): Exported from valops.c.
2779 * valops.c (find_function_addr): Export.
2780 (call_function_by_hand_expecting_type): New function.
2781 (value_of_local): New function.
2782 * symfile.c (init_filename_language_table): Add ".m" extension
2784 * utils.c (puts_filtered_tabular): New function.
2785 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2786 (set/show demangle): Extend help-string to refer to ObjC.
2787 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2788 * stabsread.c (symbol_reference_defined): Objective-C symbols
2789 may contain colons: make allowances when scanning stabs strings
2791 (objc_find_colon): New function.
2792 * printcmd.c (address_info): If language == objc then print
2793 "self" instead of "this".
2794 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2795 OP_NSSTRING, and OP_SELF.
2796 (prefixify_subexp): Ditto.
2797 * source.c (print_source_lines): Mention objc in comment.
2798 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2801 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2803 * complaints.h: Update copyright.
2804 (struct complaints): Declare.
2805 (struct complaint): Make `message' constant.
2806 (internal_complaint): Declare.
2807 (complaint): Declare.
2808 (complaint_root): Delete declaration.
2809 (symfile_complaints): Delete declaration.
2810 (struct complaints): Add opaque declaration.
2811 (clear_complaints): Add a complaints parameter.
2812 * complaints.c: Update copyright.
2813 (enum complaint_series): Define.
2814 (complaint_root): Delete.
2815 (struct complaints): Define.
2816 (complaint_sentinel, symfile_complaint_book): New variables.
2817 (symfile_explanations, symfile_complaints): New variables.
2819 (get_complaints): New function.
2820 (vcomplaint): New function.
2821 (complaint): New function.
2822 (internal_complaint): New function.
2823 (complain): Call vcomplain with symfile_complaint.
2824 (clear_complaints): Rewrite.
2825 (_initialize_complaints): Use add_setshow_command.
2826 * Makefile.in (complaints.o): Update dependencies.
2827 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2828 to call to clear_complaints.
2829 (new_symfile_objfile, reread_symbols): Ditto.
2830 (oldsyms_complaint): Delete.
2831 (empty_symtab_complaint, unknown_option_complaint): Delete.
2832 (free_named_symtabs): Use complaint instead of complain.
2834 2002-09-18 Michael Snyder <msnyder@redhat.com>
2836 Contributed by Apple Computer, Inc. Merged with current sources
2837 by Adam Fedor <fedor@doc.com> [cagney].
2839 * objc-lang.c: First clean-up round: comments, indentation.
2840 * objc-lang.h: Ditto.
2841 * objc-lang.y: Ditto.
2843 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2845 * maint.c (maintenance_internal_error): Print the parameter as the
2847 (maintenance_internal_warning): New function.
2848 (_initialize_maint_cmds): Add command `maint internal-warning'.
2850 * defs.h (internal_warning, internal_vwarning): Declare.
2851 * utils.c (struct internal_problem): Define.
2852 (internal_vproblem): New function.
2853 (internal_warning): New function.
2854 (internal_vwarning): New function.
2855 (internal_warning_problem, internal_error_problem): New variables.
2856 (internal_verror): Just call internal_vproblem.
2858 2002-09-18 Michael Snyder <msnyder@redhat.com>
2860 * objc-lang.c: New file, support for Objective-C.
2861 Preliminary check-in, not yet integrated into gdb.
2862 * objc-lang.h: New file.
2863 * objc-exp.y: New file.
2865 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2867 * infrun.c (signal_stop_update): Convert definition to ISO C.
2868 (signal_print_update): Ditto.
2869 (signal_pass_update): Ditto.
2870 * inflow.c (terminal_save_ours): Ditto.
2872 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2875 * config/djgpp/fnchange.lst: Handle name clashes between
2876 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2879 * i386-linux-tdep.h: Fix tipo.
2881 2002-09-18 Adam Fedor <fedor@gnu.org>
2883 * MAINTAINERS: Add myself to the Write After Approval list.
2885 2002-09-18 Jim Blandy <jimb@redhat.com>
2887 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2888 texthigh and textlow to reader-specific structs caused
2889 objfile_relocate to miss them. This is fixable, but the work that
2890 the change was supposed to prepare GDB for never got done anyway.
2892 2002-09-18 David Carlton <carlton@math.stanford.edu>
2894 * MAINTAINERS: Alphabetize Write After Approval list.
2896 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2899 * values.c (value_static_field): Call read_var_value.
2901 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2903 * valops.c (hand_function_call): Align the initial stack pointer
2904 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2905 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2907 * mips-tdep.c (mips_frame_align): New function.
2908 (mips_gdbarch_init): Set frame_align.
2909 * gdbarch.sh (FRAME_ALIGN): New method.
2910 * gdbarch.h, gdbarch.c: Re-generate.
2912 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2914 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2917 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2919 * NEWS: Mention that MIPS $fp behavior changed.
2920 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2921 reference to FP_REGNUM.
2922 (mipsnbsd_cannot_store_register): Ditto.
2923 * mips-linux-nat.c: Update copyright.
2924 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2925 (mips_linux_cannot_store_register): Ditto.
2926 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2927 * config/mips/tm-mips.h: Update copyright.
2928 (FP_REGNUM): Delete macro.
2929 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2930 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2931 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2932 (mips_r3041_reg_names, mips_r3051_reg_names)
2933 (mips_r3081_reg_names): Replace "fp" with "".
2936 2002-09-17 Theodore A. Roth <troth@verinet.com>
2938 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2939 generic_read_register_dummy() (PR gdb/703).
2940 (avr_push_return_address): #if 0 out unused vars.
2941 (avr_gdbarch_init): Enable use of avr_push_return_address().
2943 2002-09-17 Michael Snyder <msnyder@redhat.com>
2945 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2946 RTE will take care of it.
2948 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2950 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2951 invalid, return SP_REGNUM.
2953 2002-09-17 Michael Snyder <msnyder@redhat.com>
2955 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2956 point registers without sign extension.
2958 2002-09-17 Andrew Cagney <cagney@redhat.com>
2960 * blockframe.c (deprecated_read_register_dummy): Rename
2961 generic_read_register_dummy.
2962 * frame.c (frame_unwind_signed_register): New function.
2963 (frame_unwind_unsigned_register): New function.
2964 * frame.h (frame_unwind_signed_register): Declare.
2965 (frame_unwind_unsigned_register): Declare.
2966 (deprecated_read_register_dummy): Rename
2967 generic_read_register_dummy.
2969 * h8300-tdep.c (h8300_frame_chain): Update.
2970 (h8300_frame_saved_pc): Update.
2971 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2972 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2973 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2974 (s390_frame_chain): Update.
2975 * v850-tdep.c (v850_find_callers_reg): Update.
2976 (v850_frame_saved_pc): Update.
2977 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2978 (m32r_find_callers_reg): Update.
2979 (m32r_frame_saved_pc): Update.
2980 * sh-tdep.c (sh_find_callers_reg): Update.
2981 (sh64_get_saved_pr): Update.
2982 (sh_init_extra_frame_info): Update.
2983 (sh_init_extra_frame_info): Update.
2984 (sh64_init_extra_frame_info): Update.
2985 (sh64_init_extra_frame_info): Update.
2986 * mcore-tdep.c (mcore_find_callers_reg): Update.
2987 (mcore_frame_saved_pc): Update.
2988 (mcore_init_extra_frame_info): Update.
2989 * i386-tdep.c (i386_frame_saved_pc): Update.
2990 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2991 (ia64_init_extra_frame_info): Update.
2992 (ia64_init_extra_frame_info): Update.
2993 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2994 * cris-tdep.c (cris_init_extra_frame_info): Update.
2995 * avr-tdep.c (avr_frame_chain): Update.
2996 (avr_init_extra_frame_info): Update.
2997 (avr_frame_saved_pc): Update.
2998 * arm-tdep.c (arm_find_callers_reg): Update.
2999 (arm_init_extra_frame_info): Update.
3000 (arm_frame_saved_pc): Update.
3002 2002-09-17 Tom Tromey <tromey@redhat.com>
3004 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3007 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3009 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3010 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3012 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3015 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3017 * osfsolib.c: Remove file, replaced by solib-osf.c.
3018 * Makefile.in: Remove compilation rules for osfsolib.c.
3020 2002-09-16 David Carlton <carlton@math.stanford.edu>
3022 * cp-valprint.c (cp_print_class_method): Correct args to
3023 check_stub_method_group.
3025 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3027 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3028 `set architecture'. Unify naming convention of functions.
3029 (h8300_skip_prologue): Improve prologue analysis.
3030 (h8300_push_arguments): Rewritten to more closely match GCC's
3031 bizarre argument-passing behavior, along with the comment describing
3033 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3034 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3035 sim, remote-e7000.c, remote-hms.c and remote.c
3037 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3039 * i386-tdep.c (gdb_print_insn_i386): Removed.
3040 (i386_print_insn): New function.
3041 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3042 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3045 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3047 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3050 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3052 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3053 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3054 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3056 2002-09-13 Christopher Faylor <cgf@redhat.com>
3058 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3060 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3062 * gdbtypes.c (check_stub_method): Make static.
3063 (check_stub_method_group): New function.
3064 * gdbtypes.h: Update prototypes.
3065 * cp-support.c: New file.
3066 * cp-support.h: New file.
3068 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3069 (update_method_name_from_physname): New function.
3070 (read_member_functions): Correct method names for operators
3071 and v3 constructors/destructors. Separate v2 constructors and
3073 * Makefile.in (stabsread.o): Update dependencies.
3074 (SFILES): Add cp-support.c.
3075 (COMMON_OBS): Add cp-support.o.
3076 (cp_support_h, cp-support.o): Add.
3078 * cp-valprint.c (cp_print_class_method): Call
3079 check_stub_method_group instead of check_stub_method. Remove
3081 * p-valprint.c (pascal_object_print_class_method): Likewise.
3082 * valops.c (search_struct_method): Likewise.
3083 (find_method_list, value_struct_elt_for_reference): Likewise.
3085 2002-09-13 Andrew Cagney <cagney@redhat.com>
3087 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3088 * gdbarch.h, gdbarch.c: Regenerate.
3090 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3092 * frame.c (find_saved_register): Delete function.
3093 * frame.h (find_saved_register): Delete declaration.
3096 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3098 * mips-tdep.c (read_next_frame_reg): Re-hack using
3099 frame_register_unwind.
3101 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3103 * mips-tdep.c (mips_get_saved_register): Re-hack using
3104 frame_register_unwind.
3106 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3108 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3109 vector. Will be useful for Interix.
3110 * gdbarch.h, gdbarch.c: Regenerate.
3112 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3113 name of the malloc function by NAME_OF_MALLOC.
3115 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3117 * value.h (find_function_in_inferior): Add const keyword to
3118 one of the parameters. Allows us to invoke this function with
3120 * valops.c (find_function_in_inferior): Likewise.
3122 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3124 * exec.c (xfer_memory): Fix compilation warning with old versions
3126 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3128 2002-09-12 David Carlton <carlton@math.stanford.edu>
3130 * symtab.h: Run through gdb_indent.h.
3131 Add 2002 to Copyright year list.
3133 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3135 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3137 * MAINTAINERS: Add myself to write after approval list.
3139 2002-09-11 J. Brobecker <brobecker@gnat.com>
3141 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3143 2002-09-11 J. Brobecker <brobecker@gnat.com>
3145 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3148 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3150 * procfs.c (do_detach): Clear current signal, not just fault.
3151 Corrects problem with breakpoint trap signal leaking to detached
3154 2002-09-10 Michael Snyder <msnyder@redhat.com>
3156 * buildsym.c (finish_block): Protect against null pointer.
3158 2002-09-10 Andrew Cagney <cagney@redhat.com>
3160 * infcmd.c (default_print_registers_info): Send all output to
3161 ``file'' instead of ``gdb_stdout''.
3163 2002-09-10 Michael Snyder <msnyder@redhat.com>
3165 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3166 LONGEST, and use signed register read (addresses are sign-
3169 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3171 * event-loop.c (gdb_do_one_event): Make public.
3172 * event-loop.h (gdb_do_one_event): Declare.
3174 2002-09-10 Jeff Law <law@redhat.com>
3176 * infttrace.c (child_resume): Simplify and rework to avoid
3179 2002-09-09 Fred Fish <fnf@intrinsity.com>
3181 * printcmd.c (print_scalar_formatted): "len" is the number of
3182 target bytes, NOT the number of target bits.
3184 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3186 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3187 * top.c (init_main): Set rl_terminal_name.
3189 2002-09-08 Aidan Skinner <aidan@velvet.net>
3191 * ada-lang.c (ada_array_bound, ada_type_match,
3192 _initialize_ada_language): Fix K&R definitions.
3193 * ada-tasks.c (get_current_task): Fix K&R definitions.
3194 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3196 2002-09-07 Christopher Faylor <cgf@redhat.com>
3198 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3201 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3203 * i386-tdep.c (i386_register_virtual_type,
3204 i386_register_convertible, i386_register_convert_to_virtual,
3205 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3206 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3207 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3208 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3209 Don't set push_arguments twice.
3211 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3212 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3213 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3214 sigtramp_end to NULL.
3215 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3217 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3219 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3222 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3223 * gdbarch.h, gdbarch.c: Re-generate.
3224 * blockframe.c (find_pc_sect_partial_function): Convert to use
3225 SIGTRAMP_START_P predicate.
3227 2002-09-05 Michael Snyder <msnyder@redhat.com>
3229 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3230 generic_dummy_frame method and old method. Also distinguish
3231 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3232 (arm_extract_return_value): Use new regcache method.
3234 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3235 adjustment that doesn't conform to the ABI.
3236 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3237 saved regcache, not from current regcache.
3239 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3241 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3244 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3246 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3247 if arm_apcs_32 is false.
3249 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3251 GDB 5.3 branch created.
3253 2002-09-03 Theodore A. Roth <troth@verinet.com>
3255 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3256 generic_unwind_get_saved_register.
3258 2002-09-03 David Carlton <carlton@math.stanford.edu>
3260 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3261 argument (PR gdb/653). Update call to smash_to_method_type.
3262 (read_structure_scope): Update call to dwarf2_add_member_fn.
3264 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3266 * x86-64-linux-tdep.c: Include gdb_string.h
3267 * x86-64-linux-nat.c: Ditto.
3269 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3271 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3272 when YYDEBUG is set to 1.
3273 * c-exp.y: Likewise.
3274 * f-exp.y: Likewise.
3275 * jv-exp.y: Likewise.
3276 * m2-exp.y: Likewise.
3277 * p-exp.y: Likewise.
3279 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3281 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3283 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3284 solib_svr4_fetch_link_map_offsets to
3285 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3286 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3287 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3288 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3289 solib-svr4.o, and solib-legacy.o.
3290 * config/i386/tm-nbsd.h: Include solib.h.
3292 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3294 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3295 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3296 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3297 comment noting that this needs its own target configuration.
3298 * config/i386/nbsd.mt: New file.
3299 * config/i386/nbsdaout.mt: Remove.
3300 * config/i386/nbsdelf.mt: Ditto.
3301 * config/i386/tm-nbsdaout.h: Ditto.
3303 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3305 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3306 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3307 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3309 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3310 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3311 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3313 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3315 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3316 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3317 * i386-tdep.h (i386bsd_init_abi): New prototype.
3318 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3319 function declaration.
3320 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3321 for NetBSD-a.out or NetBSD-ELF.
3322 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3323 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3324 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3325 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3327 (i386nbsd_pc_in_sigtramp): New function.
3328 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3329 i386nbsd_pc_in_sigtramp.
3330 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3331 and i386nbsdelf_init_abi OS ABI handlers.
3332 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3333 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3335 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3337 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3338 registers if the target really has them.
3340 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3342 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3345 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3347 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3349 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3350 (alphanbsd_skip_sigtramp_frame): New functions.
3351 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3352 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3353 to alphanbsd_sigcontext_addr.
3355 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3357 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3359 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3360 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3361 nbsd_pc_in_sigtramp.
3362 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3363 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3364 * nbsd-tdep.c: Include gdb_string.h.
3365 (nbsd_pc_in_sigtramp): New function.
3366 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3367 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3368 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3369 ppcnbsd_pc_in_sigtramp.
3370 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3371 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3372 shnbsd_pc_in_sigtramp.
3373 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3374 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3375 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3377 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3379 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3380 watchpoints to NULL.
3381 (insert_breakpoints): set val field of watchpoints if NULL.
3384 2002-08-29 Jim Blandy <jimb@redhat.com>
3386 * symtab.c (lookup_symbol_aux): In the cases where we find a
3387 minimal symbol of an appropriate name and use its address to
3388 select a symtab to read and search, use `name' (as passed to us)
3389 as the demangled name when searching the symtab's global and
3390 static blocks, not the minsym's name.
3392 2002-08-29 Keith Seitz <keiths@redhat.com>
3394 * stack.c (print_frame_info_base): Always set current_source_symtab
3395 and current_source_line.
3397 2002-08-29 Donn Terry <donnte@microsoft.com>
3399 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3401 2002-08-28 Keith Seitz <keiths@redhat.com>
3403 * stack.c (select_frame): Add FIXME concerning selected-frame
3405 (select_frame_command): Send selected-frame-level-changed
3406 event notification, but only if the level actually changed.
3407 (up_silently_base): Add selected-frame-level-changed event
3409 (down_silently_base): Likewise.
3411 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3413 * Makefile.in: Update dependencies for all gdb/*.c files.
3415 2002-08-27 Tom Tromey <tromey@redhat.com>
3417 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3418 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3419 Update dependencies.
3420 * i387-tdep.c: Include gdb_string.h.
3421 * osabi.c: Likewise.
3422 * i386-linux-nat.c: Likewise.
3423 * lin-lwp.c: Likewise.
3424 * ax-gdb.c: Likewise.
3425 * signals/signals.c: Likewise.
3426 * jv-valprint.c: Likewise.
3427 * p-lang.c: Likewise.
3428 * c-valprint.c: Likewise.
3429 * cp-abi.c: Likewise.
3431 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3433 * cli/cli-script.h (copy_command_lines): Export.
3434 * breakpoint.c: Include cli/cli-script.h.
3435 * Makefile.in (breakpoint.o): Update dependencies.
3437 2002-08-26 Michael Snyder <msnyder@redhat.com>
3439 * breakpoint.c (insert_breakpoints): Protect all references
3440 to 'process_warning'. Shorten long lines.
3442 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3444 * cli/cli-script.c (copy_command_lines): New function.
3445 * defs.h (copy_command_lines): Export.
3446 * testsuite/gdb.base/commands.exp: New tests for commands
3447 attached to a temporary breakpoint, and for commands that
3448 delete the breakpoint they are attached to.
3450 2002-08-26 Michael Snyder <msnyder@redhat.com>
3452 * breakpoint.c (bpstat_stop_status): Instead of copying the
3453 pointer to the breakpoint commands struct, make a new copy
3454 of the struct and point to that.
3455 (bpstat_clear): Free the commands struct.
3456 (bpstat_clear_actions): Free the commands struct.
3457 (bpstat_do_actions): Free the command actions. Also execute
3458 the local cleanups, instead of deleting them.
3459 (delete_breakpoint): Leave the commands field of the bpstat
3460 chain alone -- it will be freed later.
3462 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3464 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3465 deleted in 2002-08-20 commit. This function is still used by
3468 2002-08-26 Keith Seitz <keiths@redhat.com>
3470 * gdb-events.sh: Add selected-frame-level-changed event.
3471 * gdb-events.c: Regenerated.
3472 * gdb-events.h: Regenerated.
3474 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3477 * inflow.c (terminal_save_ours): New function to save terminal
3479 * inferior.h (terminal_save_ours): Declare.
3480 * target.c (debug_to_terminal_save_ours): New function.
3481 (cleanup_target): Defaults to_terminal_save_ours.
3482 (update_current_target): Inherit to_terminal_save_ours.
3483 (setup_target_debug): Set to_terminal_save_ours.
3484 * target.h (target_terminal_save_ours): New to save terminal settings.
3485 (target_ops): New member to_terminal_save_ours.
3486 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3487 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3488 * inftarg.c (init_child_ops): Likewise.
3489 * m3-nat.c (init_m3_ops): Likewise.
3490 * procfs.c (init_procfs_ops): Likewise.
3491 * wince.c (init_child_ops): Likewise.
3492 * win32-nat.c (init_child_ops): Likewise.
3493 * sol-thread.c (init_sol_thread_ops): Likewise.
3495 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3497 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3498 use regcache_* functions.
3499 (i386_gdbarch_init): Set store_return_value instead of
3500 deprecated_store_return_value.
3502 * regcache.c (regcache_raw_write_signed,
3503 regcache_raw_write_unsigned): New functions.
3504 * regcache.h (regcache_raw_write_signed,
3505 regcache_raw_write_unsigned): New prototypes.
3507 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3509 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3510 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3511 source file dependencies. Cleanup corresponding generator rules.
3513 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3515 * regcache.h (register_offset_hack): Declare.
3516 (regcache_cooked_read_using_offset_hack): Declare.
3517 (regcache_cooked_write_using_offset_hack): Declare.
3519 * regcache.c (register_offset_hack): New function.
3520 (regcache_cooked_read_using_offset_hack): New function.
3521 (regcache_cooked_write_using_offset_hack): New function.
3522 (regcache_dump): Check that the registers, according to their
3523 offset, are packed hard against each other.
3524 (cooked_xfer_using_offset_hack): New function.
3526 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3528 * regcache.c (struct regcache_descr): Add field register_type.
3529 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3531 (init_regcache_descr): Initialize register_type. Pass the descr
3532 to init_legacy_regcache_descr. Use register_type instead of
3533 REGISTER_VIRTUAL_TYPE.
3534 (register_type): New function.
3535 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3536 * regcache.h (register_type): Declare.
3538 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3540 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3541 instead of deprecated_store_return_value. Fix fallout from
3542 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3544 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3546 * regcache.c (max_register_size): New function.
3547 (init_legacy_regcache_descr): Ensure that max_register_size is
3548 large enough for REGISTER_VIRTUAL_SIZE.
3549 * regcache.h (max_register_size): Declare.
3551 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3553 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3555 (e500_extract_return_value): Change type of valbuf pointer to
3558 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3560 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3563 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3564 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3565 long long) to prevent compiler warning on 64-bit systems.
3567 2002-08-23 Andrew Cagney <cagney@redhat.com>
3569 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3570 (DEPRECATED_STORE_RETURN_VALUE): New method.
3571 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3572 * gdbarch.h, gdbarch.c: Re-generate.
3574 * values.c (set_return_value): Pass current_regcache to
3576 * arch-utils.h (legacy_store_return_value): Declare.
3577 * arch-utils.c (legacy_store_return_value): New function.
3578 (legacy_extract_return_value): Update parameters.
3580 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3582 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3583 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3584 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3585 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3586 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3587 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3588 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3589 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3590 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3591 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3594 * i386-tdep.c (i386_extract_return_value): Update.
3595 * arch-utils.c (legacy_extract_return_value): Update.
3596 * frv-tdep.c (frv_gdbarch_init): Update.
3597 * cris-tdep.c (cris_gdbarch_init): Update.
3598 * d10v-tdep.c (d10v_gdbarch_init): Update.
3599 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3600 * m68k-tdep.c (m68k_gdbarch_init): Update.
3601 * mcore-tdep.c (mcore_gdbarch_init): Update.
3602 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3603 * s390-tdep.c (s390_gdbarch_init): Update.
3604 * sparc-tdep.c (sparc_gdbarch_init): Update.
3605 * sh-tdep.c (sh_gdbarch_init): Update.
3606 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3607 * v850-tdep.c (v850_gdbarch_init): Update.
3608 * avr-tdep.c (avr_gdbarch_init): Update.
3609 * ia64-tdep.c (ia64_gdbarch_init): Update.
3610 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3611 * vax-tdep.c (vax_gdbarch_init): Update.
3612 * alpha-tdep.c (alpha_gdbarch_init): Update.
3613 * arm-tdep.c (arm_gdbarch_init): Update.
3614 * mips-tdep.c (mips_gdbarch_init): Update.
3615 * i386-tdep.c (i386_gdbarch_init): Update.
3617 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3619 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3620 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3622 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3624 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3627 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3629 * infrun.c (handle_inferior_event): Move a comment outside of a
3630 function call, in order to avoid indent reformatting this part
3631 of the code in an unreadable way.
3633 2002-08-23 Grace Sainsbury <graces@redhat.com>
3635 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3636 when breakpoints fail. Move general breakpoint error messages to
3638 * breakpoint.c (insert_breakpoints): Change warnings when
3639 breakpoints are nto inserted to specify the type. Remove call to
3640 memory_error when hardware breakpoints can't be inserted. Remove
3641 multiple calls to warning so all messages are sent to the user at
3643 (delete_breakpoints): Make insert error messsages more explicit.
3645 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3647 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3648 gdbserver/ChangeLog.
3650 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3652 * i386-tdep.c: Include "objfiles.h".
3653 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3654 skip_trampoline_code.
3655 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3656 (CPLUS_MARKER): Define to '.'.
3658 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3660 (linux_corefile_thread_callback): Increase args->num_notes.
3661 (linux_make_note_section): Initialize thread_args.num_notes, and
3662 use it to determine whether notes for any threads were created.
3664 2002-08-23 Donn Terry <donnte@microsoft.com>
3666 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3667 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3669 (write_with_trace): Conditionalize out the switch branch handling
3670 PCSHOLD if the corresponding macro is not defined. Likewise for
3671 PRSABORT and PRSTOP.
3672 This change will be needed by the Interix port.
3674 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3676 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3677 write_register wherever possible instead of manipulating the
3678 register bytes directly.
3679 Assign VALUE_CONTENTS to a variable and use that.
3680 The GPR numbers are now dependent on the architecture.
3682 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3684 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3686 (skip_prologue): Add support for BookE/e500 instructions.
3687 (e500_extract_return_value): New function.
3688 (frame_get_saved_regs): Add support for saving ev registers and
3690 (e500_store_return_value): New function.
3691 (rs6000_gdbarch_init): Move up default intializations of
3692 deprecated_extract_return_value and store_return_value. Overwrite
3693 init of store_return_value with e500 specific version.
3694 Set extract_return_value for e500.
3696 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3698 * blockframe.c (generic_call_dummy_register_unwind): Use
3699 regcache_cooked_read to catch cases in which the variable is
3700 stored in a pseudo register.
3702 2002-08-22 Andrew Cagney <cagney@redhat.com>
3704 * NEWS: Mention that the i960 has been made obsolete.
3705 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3707 (remote-nrom.o): Obsolete target.
3708 (remote-nindy.o, i960-tdep.o): Ditto.
3709 * remote-nrom.c: Make file obsolete.
3710 * remote-nindy.c, remote-vx960.c: Ditto.
3711 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3712 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3713 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3714 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3715 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3716 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3717 i960-*-vxworks* obsolete.
3718 * MAINTAINERS: Note that the i960 is obsolete.
3720 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3722 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3723 detach to allow reinitialization.
3725 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3727 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3730 2002-08-22 Jim Blandy <jimb@redhat.com>
3732 * coffread.c (coff_symfile_read): Don't try to read the line
3733 number table from disk if the image file doesn't have a symbol
3734 table; we'll never actually look at the info anyway, and Windows
3735 ships DLL's with bogus file offsets for the line number data.
3737 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3739 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3742 2002-08-21 Michael Snyder <msnyder@redhat.com>
3744 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3745 (MSYMBOL_SIZE): Replace macro with function.
3746 (DEFAULT_MIPS_TYPE): Delete unused macro.
3747 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3748 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3750 2002-08-21 Jim Blandy <jimb@redhat.com>
3752 * valops.c (value_cast): Simplify and correct logic for doing a
3753 static cast from a pointer to a base class to a pointer to a
3756 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3758 * infcmd.c (default_print_registers_info): Replace
3760 (registers_info): Use gdbarch_print_registers_info instead of
3762 * inferior.h (default_print_registers_info): Replace
3764 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3765 (DO_REGISTERS_INFO): Change to a predicate function.
3766 * gdbarch.h, gdbarch.c: Regenerate.
3768 2002-08-21 Keith Seitz <keiths@redhat.com>
3770 * gdb-events.sh: Add target-changed event.
3771 * gdb-events.c: Regenerated.
3772 * gdb-events.c: Regenerated.
3773 * valops.c (value_assign): Add target-changed event notification
3774 to inlval_register, lval_memory, and lval_reg_frame_relative.
3776 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3778 * NEWS: Add an entry regarding the improvement of the next/step
3779 operation on Alpha Tru64 multi-processor machines.
3781 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3783 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3785 * Makefile.in: Update all _h macro definitions.
3786 * Makefile.in (install-gdbtk): Move to install section.
3787 (rdi-share/libangsd.a): Move to end of file.
3789 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3791 * frame.c (frame_register_unwind): When a register, set addrp to
3792 the register's byte.
3794 2002-08-20 Michael Snyder <msnyder@redhat.com>
3796 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3797 used locally, so move them from the target machine header to here.
3798 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3799 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3801 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3803 2002-08-20 Andrew Cagney <cagney@redhat.com>
3805 * NEWS: Mention that the Apollo line was made obsolete.
3806 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3807 m68*-hp-hpux* obsolete.
3808 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3809 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3810 * buildsym.c (make_blockvector): Make static.
3811 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3812 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3813 (ALLDEPFILES): Remove dstread.c.
3814 (dstread.o): Obsolete make rule.
3815 * dstread.c: Makefile obsolete.
3817 * config/m68k/hp300hpux.mt: Ditto.
3818 * config/m68k/hp300hpux.mh: Ditto.
3819 * config/m68k/hp300bsd.mt: Ditto.
3820 * config/m68k/hp300bsd.mh: Ditto.
3821 * config/m68k/apollo68b.mt: Ditto.
3822 * config/m68k/apollo68v.mh: Ditto.
3823 * config/m68k/apollo68b.mh: Ditto.
3825 2002-08-20 Michael Snyder <msnyder@redhat.com>
3827 * mips-tdep.c (mips_in_return_stub): Make static.
3828 (mips_gdbarch_init): Set in_solib_return_trampoline.
3829 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3831 2002-08-20 Michael Snyder <msnyder@redhat.com>
3833 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3834 * gdbarch.c, gdbarch.h: Regenerate.
3835 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3837 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3839 2002-08-20 Michael Snyder <msnyder@redhat.com>
3841 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3842 (mips_gdbarch_init): Set skip_trampoline_code,
3843 in_solib_call_trampoline.
3844 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3845 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3847 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3849 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3851 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3852 vector type for ev registers.
3853 (e500_pseudo_register_read): New function.
3854 (e500_pseudo_register_write): New function.
3855 (e500_dwarf2_reg_to_regnum): New function.
3856 (PPC_UISA_NOFP_SPRS): New macro.
3857 (PPC_EV_REGS): New macro.
3858 (PPC_GPRS_PSEUDO_REGS): New macro.
3859 (registers_e500): New register set for e500.
3860 (variants): Add e500 variant.
3861 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3862 before setting architectural dependent variations. Initialize ev
3863 registers numbers. Add case for e500 architecture. Set the
3864 number of pseudo registers.
3866 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3868 * rs6000-tdep.c: Clean up comments.
3870 2002-08-20 Andrew Cagney <cagney@redhat.com>
3872 * h8300-tdep.c: Re-indent file.
3874 2002-08-20 Jim Blandy <jimb@redhat.com>
3876 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3879 2002-08-20 Keith Seitz <keiths@redhat.com>
3881 * breakpoints.c (watch_command_1): Use internal breakpoint
3882 when setting a watchpoint_scope breakpoint.
3884 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3886 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3887 (build_builtin_type_vec64i): Ditto.
3888 (build_builtin_type_vec128): Ditto.
3889 (build_builtin_type_vec128i): Ditto.
3891 2002-08-19 Michael Snyder <msnyder@redhat.com>
3893 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3894 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3895 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3896 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3897 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3898 CALL_DUMMY_ADDRESS): Delete.
3899 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3900 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3901 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3902 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3903 push_return_address.
3904 (mips_register_raw_size, mips_eabi_use_struct_convention,
3905 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3906 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3907 mips_init_extra_frame_info, mips_eabi_push_arguments,
3908 mips_n32n64_push_arguments, mips_push_return_address,
3909 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3910 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3912 2002-08-19 Michael Snyder <msnyder@redhat.com>
3914 * mips-tdep.c (mips_frame_num_args): New function.
3915 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3916 frame_saved_pc, frame_args_address, frame_locals_address,
3917 frame_num_args, and frame_args_skip.
3918 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3919 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3920 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3921 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3923 2002-08-20 Michael Snyder <msnyder@redhat.com>
3925 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3926 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3927 * mips-tdep.c (mips_store_struct_return): New function.
3928 (mips_extract_struct_value_address): New function.
3929 (mips_gdbarch_init): Set store_struct_return and
3930 extract_struct_value_address.
3932 2002-08-20 David Carlton <carlton@math.stanford.edu>
3934 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3935 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3936 (read_file_scope): Check that line_header is nonzero before
3937 decoding macro information.
3939 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3941 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3942 flag the general-purpose registers as floating-point on targets
3943 that don't support the floating-point registers.
3945 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3947 * rs6000-tdep.c (altivec_register_p): Delete.
3948 (rs6000_do_altivec_registers): Delete.
3949 (rs6000_altivec_registers_info): Delete.
3950 (rs6000_do_registers_info): Delete.
3951 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3952 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3954 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3956 * infcmd.c (do_registers_info): Print vector registers in hex
3958 (print_vector_info): Check that printing registers
3960 (print_float_info): Ditto.
3962 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3964 * mips-tdep.c (mips_gdbarch_init): Update.
3965 (mips_o32_extract_return_value): Rewrite.
3966 (mips_o32_store_return_value): Rewrite.
3967 (mips_o32_xfer_return_value): New function.
3968 (mips_xfer_register): Tweak debug print message. Allow for
3969 buf_offset when dumping the value transfered.
3971 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3973 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3974 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3975 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3976 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3977 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3979 2002-08-14 Michael Snyder <msnyder@redhat.com>
3981 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3983 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3985 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3987 (P): New macro to define a register as a pseudo register.
3988 (R, R4, R8, R16, FR32, R64, R0): Updated.
3989 (struct variant): Add new fields for number of pseudo registers
3990 and number of total registers.
3991 (tot_num_registers): New macro replacing....
3992 (num_registers): ...deleted macro.
3993 (num_registers): New function.
3994 (num_pseudo_registers): New function.
3995 (variants): Update all variants to intialize new fields correctly.
3996 Postpone initialization of number of pseudo regs and real regs.
3997 (init_variants): New function.
3998 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4001 2002-08-19 David Carlton <carlton@math.stanford.edu>
4003 * valops.c (search_struct_field): Change error message to treat
4004 return value of 0 from value_static_field as meaning that field is
4006 (value_struct_elt_for_reference): Ditto.
4007 * values.c (value_static_field): Treat an unresolved location the
4008 same as a nonexistent symbol. Fix PR gdb/635.
4009 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4010 enclosed. Fix PR gdb/574.
4011 * MAINTAINERS: Add self to Write After Approval list.
4013 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4015 * mips-tdep.c (mips_xfer_register): New function.
4016 (mips_n32n64_extract_return_value): Rewrite.
4017 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4018 instead of deprecated_extract_return_value.
4020 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4022 * rs6000-tdep.c (TDEP): Delete macro.
4023 (branch_dest): Replace use of TDEP macro with its body.
4024 (rs6000_pop_frame): Ditto.
4025 (rs6000_push_arguments): Ditto.
4026 (rs6000_skip_trampoline_code): Ditto.
4027 (rs6000_frame_saved_pc): Ditto.
4028 (rs6000_frame_chain): Ditto.
4029 (rs6000_register_name): Ditto.
4030 (rs6000_register_byte): Ditto.
4031 (rs6000_register_raw_size): Ditto.
4032 (rs6000_register_virtual_type): Ditto.
4033 (rs6000_register_convertible): Ditto.
4034 (rs6000_convert_from_func_ptr_addr): Ditto.
4036 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4038 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4040 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4041 MIPS_LINUX_JB_ELEMENT_SIZE.
4042 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4043 for MAX_REGISTER_RAW_SIZE arrays.
4044 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4045 MIPS_LINUX_JB_ELEMENT_SIZE.
4047 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4049 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4051 2002-08-19 Aidan Skinner <aidan@velvet.net>
4053 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4054 ada-valprint.c ada-tasks.c.
4055 (YYFILES): Add ada-exp.y.
4056 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4057 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4058 (ada-exp.tab.o): New target.
4060 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4062 * regcache.c (regcache_xfer_part): New function.
4063 (regcache_raw_read_part): New function.
4064 (regcache_raw_write_part): New function.
4065 (regcache_cooked_read_part): New function.
4066 (regcache_cooked_write_part): New function.
4067 * regcache.h (regcache_raw_read_part): Declare.
4068 (regcache_raw_write_part): Declare.
4069 (regcache_cooked_read_part): Declare.
4070 (regcache_cooked_write_part): Declare.
4072 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4074 * remote.c (remote_open_1): Add async_p.
4075 (remote_async_open_1): Delete.
4076 (open_remote_target): Delete.
4077 (remote_open, extended_remote_open): Update calls to remote_open_1.
4078 (remote_async_open, extended_remote_async_open): Call
4079 remote_open_1 instead of remote_async_open_1.
4081 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4083 * blockframe.c: Fix a few coding standard violations.
4085 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4087 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4089 * config/i386/tm-i386sco5.h: ... here. File removed.
4090 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4092 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4093 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4094 (TM_FILE): Set to tm-i386.h.
4095 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4096 * config/i386/tm-i386v.h: Remove file.
4097 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4098 instead of "i386/tm-i386v.h".
4099 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4100 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4102 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4103 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4106 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4108 * config/i386/nm-i386v.h: Add protection against
4110 (i386_register_u_addr): Remove prototype.
4111 (register_u_addr): New prototype.
4112 (REGISTER_U_ADDR): Redefine accordingly.
4113 * i386v-nat.c: Improve several comments.
4114 (i386_register_u_addr): Change signature and rename to
4115 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4118 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4120 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4121 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4122 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4123 deprecated_extract_return_value.
4124 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4125 rename mips_o32o64_push_arguments.
4126 (mips_gdbarch_init): Update.
4127 (mips_extract_return_value): Delete.
4128 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4129 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4130 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4131 (mips_n32n64_extract_return_value): Clone
4132 mips_extract_return_value.
4133 (mips_store_return_value): Delete.
4134 (mips_o32_store_return_value): Clone mips_store_return_value.
4135 (mips_o64_store_return_value): Clone mips_store_return_value.
4136 (mips_eabi_store_return_value): Clone mips_store_return_value.
4137 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4139 2002-08-18 Aidan Skinner <aidan@velvet.net>
4141 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4142 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4144 2002-08-18 Aidan Skinner <aidan@velvet.net>
4146 * ada-lang.c: Run through gdb_indent.sh.
4147 * ada-lang.h: Run through gdb_indent.sh.
4148 * ada-tasks.c: Run through gdb_indent.sh.
4149 * ada-typeprint.c: Run through gdb_indent.sh.
4150 * ada-valprint.c: Run through gdb_indent.sh.
4152 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4154 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4157 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4159 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4161 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4162 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4164 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4165 write_register_gen instead of write_register_bytes.
4167 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4168 i[3456]-*-osf1mk* configurations have been made obsolete.
4169 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4170 i[3456]86-*-osf1mk* hosts obsolete.
4171 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4173 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4174 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4175 config/i386/i386m3.mt, config/i386/nm-m3.h,
4176 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4177 config/i386/i386mk.mh, config/i386/i386mk.mt,
4178 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4180 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4181 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4182 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4184 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4186 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4187 (hppa_value_returned_from_stack): Declare.
4188 (hppa_extract_return_value): Declare.
4189 * config/pa/hppa.mt: New file.
4190 * configure.tgt: Recognize hppa*-*-*.
4191 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4193 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4195 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4198 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4200 * top.c (gdb_rl_operate_and_get_next): Make sure
4201 operate-and-get-next functions correctly even when the history
4202 list is completely filled.
4204 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4206 * MAINTAINERS (Target Instruction Set Architectures): Rename
4207 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4208 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4209 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4210 already listed under Host/Native.
4212 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4213 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4216 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4218 * config/ia64/ia64.mt: New file.
4219 * config/alpha/alpha.mt: New file.
4220 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4221 ia64-linux-gnu. Mention that ia64-elf is broken.
4222 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4224 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4226 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4227 generic_func_frame_valid instead of func_frame_valid.
4229 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4231 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4232 procfs appears to be broken when debugging on multi-processor
4233 machines. So enable software single stepping in order to avoid
4234 using the procfs interface to do next/step operations, using
4235 internal breakpoints instead.
4237 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4238 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4239 make this pc address equal to the value it would have if the
4240 system stepping capability was used. Also set a new flag used
4241 to ensure that we don't readjust the PC one more time later.
4243 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4244 address by DECR_PC_AFTER_BREAK when software single step is
4245 in use for this architecture, as this has already been taken
4246 care of in handle_inferior_event().
4248 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4250 * infrun.c (handle_inferior_event): Minor reformatting, to make
4251 a rather long condition expression easier to read.
4253 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4255 * Makefile.in (gdbtk.o): Move to end of file.
4256 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4257 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4258 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4259 (gdbtk-wrapper.o, gdbres.o): Ditto.
4261 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4263 * Makefile.in (copying.o): Separate out compile rule.
4264 (hpux-thread.o, procfs.o, signals.o): Ditto.
4265 (v850ice.o, z8k-tdep.o): Ditto.
4266 (tui-file.o): Move to TUI section.
4267 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4268 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4270 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4272 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4273 skip_trampoline_code, for better namespace-proofing.
4275 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4277 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4279 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4281 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4283 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4284 signal, check whether we hit a breakpoint before checking for a
4285 single step breakpoint. Otherwise, GDB fails to notice that a
4286 breakpoint has been hit when stepping onto a breakpoint.
4288 2002-08-16 Keith Seitz <keiths@redhat.com>
4290 * gdb-events.sh (clear_gdb_event_hooks): New function.
4291 * gdb-events.c: Regenerate.
4292 * gdb-events.h: Regenerate.
4294 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4296 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4297 not_a_sw_breakpoint.
4298 * breakpoint.h (bpstat_stop_status): Add parameter names.
4300 2002-08-16 Grace Sainsbury <graces@redhat.com>
4302 * remote.c (remote_insert_hw_breakpoint)
4303 (remote_remove_hw_breakpoint): Fix calculation of length field
4306 2002-08-15 Michael Snyder <msnyder@redhat.com>
4308 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4309 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4310 (supply_fpregset): Ditto.
4312 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4313 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4314 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4315 (TARGET_READ_SP): Delete.
4316 (DO_REGISTERS_INFO): Delete.
4317 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4319 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4320 from macros to functions.
4322 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4323 (mips_register_convertible, mips_register_convert_to_virtual,
4324 mips_register_convert_to_raw): Make static.
4325 (mips_read_sp): New function.
4326 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4327 (mips_do_registers_info): Make static.
4328 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4329 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4330 (mips_register_convert_from_type, mips_register_convert_to_type):
4332 (mips_gdbarch_init): Set up function_start_offset,
4333 register_virtual_size, pc_in_sigtramp.
4335 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4337 * infcmd.c (vector_info): New function.
4338 (_initialize_infcmd): Add command "info vector".
4339 (print_vector_info): New function.
4341 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4342 * gdbarch.h, gdbarch.c: Regenerate.
4344 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4346 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4347 ``print_all''. Only print vector registers when ``print_all''.
4349 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4351 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4352 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4354 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4355 Add `args' parameter.
4356 * gdbarch.h, gdbarch.c: Regenerate.
4358 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4360 * infcmd.c (float_info): Call print_float_info.
4361 (print_float_info): New function. By default, print the
4362 floating-point registers.
4364 * arch-utils.h (default_print_float_info): Delete declaration.
4365 * arch-utils.c (default_print_float_info): Delete function.
4367 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4369 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4372 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4375 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4376 * configure.host: Make i[3456]86-*-aix host obsolete.
4377 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4378 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4379 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4380 config/i386/xm-i386aix.h: Make files obsolete.
4381 * i386aix-nat.c: Make file obsolete.
4382 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4383 (i386aix-nat.o): Make target obsolete.
4385 * config/i386/nm-gnu.h: Removed.
4386 * config/i386/nm-i386gnu.h: New file.
4387 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4388 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4390 * config/i386/tm-i386gnu.h: ... here. Removed.
4391 * config/i386/xm-i386gnu.h: Removed.
4392 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4393 (NAT_FILE): Set to nm-i386gnu.h.
4394 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4395 * i386-tdep.c: New file.
4396 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4397 (i386gnu-tdep.o): Specify dependencies.
4399 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4401 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4402 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4403 Adjust a few comments to reflect reality a bit closer.
4404 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4405 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4406 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4407 target_insert_watchpoint, target_remove_watchpoint):
4409 * config/i386/nm-i386sco5.h: ... here.
4410 (kernel_u_size): Add prototype. Improve a few comments and add
4411 protection against multiple inclusion.
4413 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4416 * uw-thread.c (SP_ARG0): Define if not already defined.
4417 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4419 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4421 * config/i386/tm-i386.h: Don't include "regcache.h".
4423 * i387-tdep.h (i387_print_float_info): New prototype.
4424 * i387-tdep.c (print_i387_value, print_i387_ext,
4425 print_i387_status_word, print_i387_control_word): Add `struct
4426 ui_file *' argument and use it for output.
4427 (i387_print_float_info): Renamed from i387_float_info. Add
4428 `struct gdbarch *' and `struct ui_file *' arguments and use the
4430 * i386-tdep.c: Include "i387-tdep.h".
4431 (i386_gdbarch_init): Set print_float_info.
4432 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4433 (FLOAT_INFO): Remove define.
4435 2002-08-13 Michael Snyder <msnyder@redhat.com>
4437 * mips-tdep.c (mips_push_arguments): Rename to
4438 mips_eabi_push_arguments, and tune for EABI.
4439 (MIPS_REGS_HAVE_HOME_P): Delete.
4440 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4441 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4442 Delete references to mips_regs_have_home_p.
4444 2002-08-14 Keith Seitz <keiths@redhat.com>
4446 * Makefile.in (install-gdbtk): Create insight plugin directory.
4447 Install plugins.tcl file.
4449 2002-08-14 Keith Seitz <keiths@redhat.com>
4451 * configure.in: Move SUBDIRS to near top of the file so that
4452 --enable options may add things to it.
4453 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4454 * configure: Regenerate.
4456 2002-08-13 Michael Snyder <msnyder@redhat.com>
4458 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4459 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4460 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4462 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4464 * vax-tdep.c (vax_get_saved_register): Delete function.
4465 (vax_gdbarch_init): Update.
4466 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4467 (ns32k_gdbarch_init): Update.
4468 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4469 (alpha_gdbarch_init): Update.
4471 2002-08-13 Andrew Cagney <cagney@redhat.com>
4473 * regcache.c (init_regcache_descr): Overallocate the
4474 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4475 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4477 (set_register_cached): Add range checking assertions. Use
4480 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4482 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4483 numbers for MMX registers.
4485 2002-08-13 Andrew Cagney <cagney@redhat.com>
4487 * i386-tdep.c (i386_gdbarch_init): Use
4488 generic_unwind_get_saved_register.
4490 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4492 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4493 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4495 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4496 Delete. Add comment regarding this now-deleted target method.
4498 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4500 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4501 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4502 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4503 real PC and the page number (if it's within the memory bank window).
4504 (m68hc11_pseudo_register_write): Likewise when saving.
4505 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4506 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4507 (m68hc11_register_raw_size): And use 32-bit for it.
4508 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4509 16K memory bank is used by the prog; also use the virtual pc.
4511 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4513 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4514 (m68hc11_gdbarch_init): Install it in gdbarch.
4515 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4516 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4517 (MSYMBOL_SIZE): New for documentation.
4518 (insn_return_kind): Enum to specify how a function returns.
4519 (frame_extra_info): Cleanup and record the return mode.
4520 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4521 register in address computation.
4522 (m68hc11_get_return_insn): New to obtain the return instruction used
4524 (m68hc11_frame_init_saved_regs): Take into account the return
4525 instruction used by the function for far and interrupt functions.
4526 (m68hc11_init_extra_frame_info): Take into account page register.
4527 (m68hc11_frame_args_address): Adjust according to the return mode.
4528 (show_regs): Print page register only when it's used.
4530 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4532 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4533 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4534 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4536 (m68hc11_register_raw_size): Likewise.
4538 2002-08-13 Andrew Cagney <cagney@redhat.com>
4540 * i386-tdep.c (i386_register_name): Handle mmx registers.
4541 (mmx_regnum_p): New function.
4542 (i386_mmx_names): New array.
4543 (mmx_num_regs): New variable.
4544 (i386_pseudo_register_read): New function.
4545 (i386_pseudo_register_write): New function.
4546 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4548 * regcache.c (regcache_raw_read_unsigned): New function.
4549 (regcache_raw_read_signed): New function.
4550 * regcache.h (regcache_raw_read_unsigned): Declare.
4551 (regcache_raw_read_signed): Declare.
4553 2002-08-13 Andrew Cagney <cagney@redhat.com>
4555 * regcache.c (regcache_raw_read_as_address): Delete function.
4556 (regcache_cooked_read_signed): New function.
4557 (regcache_cooked_read_unsigned): New function.
4558 * regcache.h (regcache_cooked_read_signed): Declare.
4559 (regcache_cooked_read_unsigned): Declare.
4560 (regcache_raw_read_as_address): Delete declaration.
4562 * blockframe.c (generic_read_register_dummy): Use
4563 regcache_cooked_read_unsigned.
4564 * i386-tdep.c (i386_extract_struct_value_address): Use
4565 regcache_cooked_read_unsigned.
4567 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4570 double sizes according to ELF ABI flags.
4571 (gdbarch_tdep): Record elf_flags.
4573 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4575 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4576 (m6812_prolog): They can appear in 68HC12 function prologue.
4577 (m68hc11_frame_chain): Cleanup.
4579 2002-08-12 Andrew Cagney <cagney@redhat.com>
4581 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4583 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4584 (i386_linux_register_raw_size): Delete function.
4585 (i386_linux_init_abi): Update.
4586 * i386-tdep.c (i386_register_raw_size): Delete function.
4587 (i386_register_byte): Delete function.
4588 (i386_gdbarch_init): Update.
4589 (i386_register_size): Delete array.
4590 (i386_register_offset): Delete array.
4592 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4593 (REGISTER_RAW_SIZE): Delete macro.
4594 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4595 (REGISTER_BYTE): Delete macro.
4597 2002-08-11 Aidan Skinner <aidan@velvet.net>
4599 * ada-lang.c (ada_lookup_partial_symbol)
4600 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4601 prototype names so that grep ^func works properly.
4603 * ada-lang.c (ada_array_element_type)
4604 (ada_lookup_partial_symbol): Fix typos in parameter list.
4606 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4607 Fix prototype names so that grep ^func works properly.
4609 2002-08-10 Andrew Cagney <cagney@redhat.com>
4610 Elena Zannoni <ezannoni@redhat.com>
4611 Martin M. Hunt <hunt@redhat.com>
4613 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4614 (build_builtin_type_vec128i): Set the vector bit.
4615 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4616 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4617 (build_builtin_type_vec64): New function.
4618 (build_builtin_type_vec64i): New function.
4619 (build_gdbtypes): Initialize builtin_type_vec64 and
4620 builtin_type_vec64i.
4622 2002-08-09 Andrew Cagney <cagney@redhat.com>
4624 * regcache.c (regcache_dump): Compare the register offset
4626 * arch-utils.c (generic_register_byte): New function.
4627 * arch-utils.h (generic_register_byte): Declare.
4628 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4629 * gdbarch.h, gdbarch.c: Regenerate.
4631 2002-08-09 Andrew Cagney <cagney@redhat.com>
4633 * regcache.c: Include "gdbcmd.h"
4634 (_initialize_regcache): Add commands "maintenance print
4635 registers", "maintenance print raw-registers" and "maintenance
4636 print cooked-registers".
4637 (enum regcache_dump_what): Define.
4638 (dump_endian_bytes): New function.
4639 (regcache_dump): New function.
4640 (regcache_print): New function.
4641 (maintenance_print_registers): New function.
4642 (maintenance_print_raw_registers): New function.
4643 (maintenance_print_cooked_registers): New function.
4644 * Makefile.in (regcache.o): Update dependencies.
4646 2002-08-09 Michael Snyder <msnyder@redhat.com>
4648 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4649 (mips_push_arguments): Correct some comments. Use paddr_nz
4650 for printing addresses in debug output. Replace static
4651 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4652 (mips_n32n64_push_arguments): New function, cloned from
4653 mips_push_arguments and tuned for the n32/n64 ABI.
4654 (mips_push_register): Buffer needs dynamic allocation.
4655 (mips_print_register): Ditto.
4656 (do_gp_register_row): Ditto.
4657 (mips_store_return_value): Ditto.
4658 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4660 2002-08-09 Don Howard <dhoward@redhat.com>
4662 * memattr.c (mem_info_command): Print special case of upper bound
4663 as max CORE_ADDR + 1.
4665 2002-08-08 Michael Snyder <msnyder@redhat.com>
4667 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4668 returns structs by ref if they're too big to fit in two registers.
4670 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4672 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4674 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4675 mips_find_saved_regs().
4676 (mips_pop_frame): Likewise.
4678 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4680 * blockframe.c (frame_saved_regs_register_unwind): Revise
4681 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4684 2002-08-09 Grace Sainsbury <graces@redhat.com>
4686 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4687 T-packets; the 'a' is not taken as a register number.
4688 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4689 (remote_stopped_data_address): New functions; add to target
4691 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4692 prototypes to match other implementations of this
4693 function. replace integer argument with pointer -- the length
4694 field in the Z-packet is the length of what is pointed to or 1 if
4695 pointer is null. Add to target vector.
4696 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4700 * remote.c (remote_wait): Add support to extract optional
4701 watchpoint information from T-packet. Ignore unrecognized
4702 optional info in T-packet.
4703 (remote_async_wait): Ditto.
4705 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4707 * cli/cli-dump.c: Change fopen modes to use binary open modes
4708 as defined in include/fopen-bin.h throughout.
4710 2002-08-08 Michael Snyder <msnyder@redhat.com>
4712 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4714 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4716 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4717 assertion failure by returning early after a warning.
4719 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4721 * mips-tdep.c (mips_find_saved_regs): Make static.
4722 (mips_frame_init_saved_regs): New function.
4723 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4724 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4725 (mips_find_saved_regs): Delete declaration.
4727 2002-08-08 Grace Sainsbury <graces@redhat.com>
4729 * remote.c (remote_wait, remote_async_wait): Change
4730 thread_num from int to ULONGEST.
4731 (unpack_varlen_hex): Change result parameter from
4732 int * to ULONGEST *.
4734 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4736 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4737 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4739 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4741 2002-08-08 Andrew Cagney <cagney@redhat.com>
4743 * gcore.c (override_derive_stack_segment): Delete variable.
4744 (preempt_derive_stack_segment): Delete function.
4745 (derive_stack_segment): Delete function.
4746 (default_derive_stack_segment): Renamed to derive_stack_segment.
4747 (override_derive_heap_segment): Delete variable.
4748 (preempt_derive_heap_segment): Delete function.
4749 (derive_heap_segment): Delete function.
4750 (default_derive_heap_segment): Rename to derive_heap_segment.
4752 2002-08-06 Michael Snyder <msnyder@redhat.com>
4754 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4755 * mips-tdep.c (mips_EABI_use_struct_convention,
4756 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4757 New functions. (mips_use_struct_convention): Delete.
4758 (mips_gdbarch_init): set use_gdbarch_convention.
4760 2002-08-06 Michael Snyder <msnyder@redhat.com>
4762 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4763 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4764 mips_o32_reg_struct_has_addr): New functions.
4765 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4767 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4769 * regcache.c (pseudo_register): Delete function.
4770 (fetch_register): Delete function.
4771 (store_register): Delete function.
4772 (regcache_raw_read, legacy_read_register_gen): Use
4773 target_fetch_registers instead of fetch_register.
4774 (legacy_write_register_gen, regcache_raw_write): Use
4775 target_store_register instead of store_register.
4776 (write_register_bytes): Ditto.
4778 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4779 (STORE_PSEUDO_REGISTER): Delete.
4780 * gdbarch.h, gdbarch.c: Regenerate.
4782 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4784 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4785 write dump file binary.
4787 2002-08-05 Michael Snyder <msnyder@redhat.com>
4789 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4790 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4791 (mips_gdbarch_init): Set N32 target to be mips64.
4793 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4795 * frame.c (find_saved_register): Break out of loop once saved
4796 register address is found. Don't mention sparc in loop comment
4799 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4801 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4802 mips_default_saved_regsize to 8.
4804 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4806 * gcore.c: Do not include <sys/procfs.h>.
4807 * Makefile.in (gcore.o): Update dependencies.
4809 2002-08-06 Andrew Cagney <cagney@redhat.com>
4811 * configure.tgt: Make arc-*-* obsolete.
4812 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4813 * MAINTAINERS: Make arc-elf obsolete.
4814 * arc-tdep.c: Make file obsolete.
4815 * config/arc/arc.mt: Ditto.
4816 * config/arc/tm-arc.h: Ditto.
4818 2002-08-05 Theodore A. Roth <troth@verinet.com>
4820 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4822 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4824 * mcore-tdep.c (mcore_gdbarch_init): Use
4825 generic_unwind_get_saved_register instead of
4826 generic_get_saved_register.
4827 * v850-tdep.c (v850_gdbarch_init): Ditto.
4828 * frv-tdep.c (frv_gdbarch_init): Ditto.
4829 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4830 * s390-tdep.c (s390_gdbarch_init): Ditto.
4831 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4832 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4833 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4835 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4837 * objfiles.h: Add missing #include "symfile.h"
4839 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4841 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4843 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4844 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4847 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4849 * NEWS: Cleanup and nitpick.
4851 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4853 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4855 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4857 * Makefile.in (gdbtk-bp.o): Update dependencies.
4858 (gdbtk-register.o): Ditto.
4859 (gdbtk-varobj.o): Ditto.
4861 2002-08-03 Andrew Cagney <cagney@redhat.com>
4863 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4864 m68hc11_fetch_pseudo_register.
4865 (m68hc11_pseudo_register_write): Replace
4866 m68hc11_store_pseudo_register.
4867 (m68hc11_gdbarch_init): Update.
4869 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4871 * gdbarch.sh: Include "gdb_string.h".
4872 * gdbarch.c: Regenerate.
4874 * regcache.c: Include "gdb_string.h".
4875 * ax-general.c: Ditto.
4877 * std-regs.c: Ditto.
4878 * fbsd-proc.c: Ditto.
4881 * Makefile.in (regcache.o): Update dependencies.
4882 (thread.o, gdbarch.o): Ditto.
4883 (ax-general.o, gdbarch.o): Ditto.
4884 (varobj.o, std-regs.o): Ditto.
4885 (fbsd-proc.o): Specify dependencies.
4887 2002-08-02 Andrew Cagney <cagney@redhat.com>
4889 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4891 (regcache_cooked_write): Ditto.
4893 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4895 * regcache.c (regcache_cooked_read): New function.
4896 (regcache_cooked_write): New function.
4897 (read_register_gen): Rewrite using regcache_cooked_read.
4898 (write_register_gen): Rewrite using regcache_cooked_write.
4900 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4903 2002-08-02 Andrew Cagney <cagney@redhat.com>
4905 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4906 Replace the architecture methods register_read and register_write.
4907 * gdbarch.h, gdbarch.c: Regenerate.
4908 * regcache.c (init_regcache_descr): Update.
4909 (read_register_gen): Update.
4910 (write_register_gen): Update.
4911 (supply_register): Update comment.
4913 * sh-tdep.c (sh_gdbarch_init): Update.
4914 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4915 `regcache' and `gdbarch' parameters. Make `buffer' a void
4916 pointer. Update code.
4917 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4918 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4919 void pointer. Update code.
4920 (sh64_register_write): Delete.
4921 (sh4_register_read): Delete.
4922 (sh64_register_read): Delete.
4923 (sh4_register_write): Delete.
4924 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4925 void pointer, `to' parameter a void pointer.
4926 (sh_sh64_register_convert_to_raw): Ditto.
4928 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4930 * mips-tdep.c (mips_register_virtual_type): Use architecture
4931 invariant return values.
4933 2002-08-01 Andrew Cagney <cagney@redhat.com>
4935 * linux-proc.c: Include "gdb_string.h".
4936 * Makefile.in (linux-proc.o): Update dependency list.
4938 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4940 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4943 2002-08-01 Grace Sainsbury <graces@redhat.com>
4945 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4946 to_insert_watchpoint, to_remove_watchpoint,
4947 to_stopped_by_watchpoint, to_stopped_data_address,
4948 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4949 target vecctor. Define their corresponding macros so they call
4952 * target.c: Add default and debug versions of for
4953 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4954 to_insert_watchpoint, to_remove_watchpoint,
4955 to_stopped_by_watchpoint, to_stopped_data_address,
4956 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4958 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4960 * mips-tdep.c (mips_register_virtual_type): New function.
4961 (mips_gdbarch_init): Register mips_register_virtual_type()
4962 with gdbarch machinery.
4963 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4964 this file instead of tm-bigmips.h.
4965 (MIPS_REGSIZE): Delete this macro.
4966 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4967 multiarch version in mips-tdep.c will be found.
4969 2002-08-01 Andrew Cagney <cagney@redhat.com>
4971 * NEWS: Menion that CHILL has been made obsolete.
4973 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4974 * stabsread.c (read_range_type): Ditto.
4975 * gdbtypes.h: Ditto.
4976 * language.c (binop_type_check): Ditto.
4977 (binop_result_type): Ditto.
4978 (integral_type): Ditto.
4979 (character_type): Ditto.
4980 (string_type): Ditto.
4981 (boolean_type): Ditto.
4982 (structured_type): Ditto.
4983 (lang_bool_type): Ditto.
4984 (binop_type_check): Ditto.
4985 * language.h (_LANG_chill): Ditto.
4986 * dwarfread.c (set_cu_language): Ditto.
4987 * dwarfread.c (CHILL_PRODUCER): Ditto.
4988 * dwarfread.c (handle_producer): Ditto.
4989 * expression.h (enum exp_opcode): Ditto.
4990 * eval.c: Ditto for comments.
4991 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4992 * expprint.c (print_subexp): Ditto.
4993 (print_subexp): Ditto.
4994 * valops.c (value_cast): Ditto.
4995 (search_struct_field): Ditto.
4996 * value.h (COERCE_VARYING_ARRAY): Ditto.
4997 * symfile.c (init_filename_language_table): Ditto.
4998 (add_psymbol_with_dem_name_to_list): Ditto.
4999 * valarith.c (value_binop): Ditto.
5001 * valops.c (value_slice): Ditto.
5002 * symtab.h (union language_specific): Ditto.
5003 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5004 (SYMBOL_DEMANGLED_NAME): Ditto.
5005 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5006 * defs.h (enum language): Ditto.
5007 * symtab.c (got_symtab): Ditto.
5008 * utils.c (fprintf_symbol_filtered): Ditto.
5010 * ch-typeprint.c: Make file obsolete.
5011 * ch-valprint.c: Make file obsolete.
5012 * ch-lang.h: Make file obsolete.
5013 * ch-exp.c: Make file obsolete.
5014 * ch-lang.c: Make file obsolete.
5016 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5018 (TARGET_FLAGS_TO_PASS): Ditto.
5019 (CHILLFLAGS): Obsolete.
5021 (CHILL_FOR_TARGET): Obsolete.
5022 (CHILL_LIB): Obsolete.
5023 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5025 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5026 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5028 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5031 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5033 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5034 This does not change anything at the moment, but will be helpful
5035 later when full Ada support is integrated.
5037 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5039 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5042 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5044 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5045 and save it in a local variable. Use variable in later test.
5047 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5049 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5050 test. (Thanks to Daniel Jacobowitz.)
5052 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5054 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5055 (mips_abi_strings): Add "n64".
5056 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5058 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5060 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5061 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5063 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5065 * utils.c (host_pointer_to_address, address_to_host_pointer):
5066 Use gdb_assert() instead of explicit call to internal_error().
5068 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5070 * Makefile.in (rs6000-nat.o): Update dependencies.
5072 From Nicholas Duffek:
5073 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5074 (aix-thread.o): New rule.
5075 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5076 * config/powerpc/aix432.mh: New file.
5078 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5080 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5081 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5082 (fetch_core_registers, ppc_linux_supply_gregset)
5083 (ppc_linux_supply_fpregset): New functions.
5084 (ppc_linux_regset_core_fns): New.
5085 (_initialize_ppc_linux_tdep): Call add_core_fns.
5086 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5087 and ppc_linux_supply_gregset.
5088 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5089 (supply_fpregset): Call ppc_linux_supply_fpregset.
5090 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5092 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5094 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5096 * symtab.c (lookup_symbol): Demangle before lowercasing.
5098 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5100 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5102 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5103 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5104 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5105 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5107 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5108 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5109 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5110 (avr-tdep.o, mon960-rom.o): Ditto.
5111 (aout_stabs_gnu_h): Define.
5112 (symtab_h): Remove $(gdb_obstack_h).
5114 2002-07-30 Jim Blandy <jimb@redhat.com>
5116 Patch from David Carlton <carlton@math.stanford.edu>:
5117 * gdbinit.in: Move the `dir' commands that add GDB's own source
5118 directory to the search path to the end, so that the `gdb' source
5119 directory will be searched first.
5121 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5123 * gdb_obstack.h: New file.
5124 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5125 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5126 * objfiles.h: Include "gdb_obstack.h".
5127 * Makefile.in (gdb_obstack_h): Define.
5128 (symtab_h): Add $(gdb_obstack_h).
5129 (objfiles_h): Add $(gdb_obstack_h).
5131 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5132 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5133 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5134 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5135 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5136 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5137 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5138 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5140 * Makefile.in (bcache.o): Update dependencies.
5141 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5142 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5143 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5144 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5145 (stabsread.o, symfile.o, symmisc.o): Ditto.
5146 (symtab.o, typeprint.o, macroexp.o): Ditto.
5147 (macrotab.o, mdebugread.o): Ditto.
5148 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5149 (coff_ecoff_h, aout_aout64_h): Define.
5150 (aout_stabs_gnu_h, libaout_h): Define.
5152 2002-07-29 Andrew Cagney <cagney@redhat.com>
5154 * regcache.c (struct regcache_descr): Rename nr_registers to
5155 nr_cooked_registers. Revise comments describing the structure
5157 (init_regcache_descr): Update.
5158 (init_legacy_regcache_descr): Update.
5159 (read_register_gen, write_register_gen): When a cooked register in
5160 the raw register range, directly access the value from the raw
5163 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5165 * z8k-tdep.c: Do not include "obstack.h".
5166 * h8300-tdep.c, h8500-tdep.c: Ditto.
5167 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5168 * valprint.c, v850-tdep.c: Ditto.
5169 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5170 * mn10200-tdep.c: Ditto.
5172 * Makefile.in (z8k-tdep.o): Update dependencies.
5173 (m68hc11-tdep.o, valprint.o): Ditto.
5174 (v850-tdep.o, d10v-tdep.o): Ditto.
5175 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5176 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5177 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5178 (sh_opc_h, gdb_sim_sh_h): Define.
5179 (elf_sh_h, elf_bfd_h): Define.
5180 (opcode_m68hc11_h): Define.
5181 (OPCODES_SRC, OPCODES_DIR): define.
5182 (OPCODES): Use $(OPCODES_DIR).
5183 (gdb_sim_d10v_h): Rename sim_d10v_h.
5184 (gdb_sim_arm_h): Rename sim_arm_h.
5186 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5188 * utils.c (host_pointer_to_address, address_to_host_pointer):
5189 Change internal_error() message to indicate function responsible
5192 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5194 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5195 calls to local_hex_string_custom().
5197 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5199 * irix5-nat.c: Move IRIX shared library support from here...
5200 * solib-irix.c: ...to here. Revised substantially to work with
5201 generic solib framework.
5203 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5204 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5205 * mips-irix-tdep.c: New file.
5207 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5208 (mips-irix-tdep.o, solib-irix.o): New rules.
5209 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5211 * config/mips/irix6.mt (TDEPFILES): Likewise.
5212 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5214 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5216 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5217 disabled (via ``#if 0'') includes.
5219 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5221 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5222 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5223 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5224 Add support for the fpscr register.
5225 * rs6000-nat.c (regmap, fetch_inferior_registers)
5226 (store_inferior_registers, fetch_core_registers): Likewise.
5228 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5230 * rs6000-nat.c (language.h): Include.
5231 (special_regs): Delete this array.
5232 (regmap): New function.
5233 (fetch_register, store_register): Use regmap() to map gdb
5234 register numbers to ptrace register numbers. Also, use
5235 outputs from regmap() to make decisions regarding type of
5236 ptrace() call to make. In particular, don't compare against
5237 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5238 (fetch_inferior_registers, store_inferior_registers): Where
5239 possible, obtain register numbers from tdep struct. Don't
5240 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5241 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5242 (LAST_UISA_SP_REGNUM): Delete.
5244 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5246 * rs6000-nat.c (ppc-tdep.h): Include.
5247 (fetch_registers, store_register, fetch_core_registers): Don't
5248 access registers[] directly. Instead, use supply_register() or
5249 regcache_collect() as appropriate.
5250 (find_toc_address): Format hex address with local_hex_string().
5252 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5254 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5257 2002-07-24 Tom Tromey <tromey@redhat.com>
5259 * jv-exp.y: Marked all strings with _().
5260 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5262 (MethodInvocation, CastExpression, parse_number, yyerror,
5263 java_type_from_name, push_expression_name, yylex): Typo fixes.
5265 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5267 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5268 (tee_file_flush, tee_file_write, tee_file_fputs)
5269 (tee_file_isatty): New.
5270 * ui-file.h (tee_file_new): Add prototype.
5272 2002-07-24 Aidan Skinner <aidan@velvet.net>
5274 * ada-lang.c: Change k&r style function definitions to prototyped
5276 * ada-typeprint.c: Change k&r style function definitions to prototyped
5278 * ada-valprint.c: Change k&r style function definitions to prototyped
5281 2002-07-24 Andrew Cagney <cagney@redhat.com>
5283 * README: Remove reference to remote-bug.
5284 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5286 (m88k-nat.o): Delete rule.
5287 (m88k-tdep.o): Delete rule.
5288 (remote-bug.o): Delete rule.
5289 * MAINTAINERS: Mark as obsolete.
5290 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5291 * m88k-tdep.c: Make file obsolete.
5292 * config/m88k/m88k.mh: Ditto.
5293 * config/m88k/delta88v4.mh: Ditto.
5294 * config/m88k/delta88v4.mt: Ditto.
5295 * config/m88k/delta88.mt: Ditto.
5296 * config/m88k/delta88.mh: Ditto.
5297 * remote-bug.c: Ditto.
5298 * config/m88k/tm-delta88.h: Ditto.
5299 * config/m88k/nm-delta88v4.h: Ditto.
5300 * config/m88k/xm-delta88.h: Ditto.
5301 * config/m88k/xm-dgux.h: Ditto.
5302 * config/m88k/tm-m88k.h: Ditto.
5303 * config/m88k/nm-m88k.h: Ditto.
5304 * config/m88k/tm-delta88v4.h: Ditto.
5305 * m88k-nat.c: Ditto.
5306 * cxux-nat.c: Ditto.
5307 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5308 and m88*-*-* obsolete.
5309 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5312 2002-07-24 Andrew Cagney <cagney@redhat.com>
5314 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5315 constant. Same for local pointer variables.
5316 (extract_signed_integer): Ditto.
5317 * defs.h (extract_unsigned_integer): Update.
5318 (extract_signed_integer): Update.
5320 2002-07-24 Andrew Cagney <cagney@redhat.com>
5322 * regcache.c (regcache_raw_write): Change buf parameter to a
5323 constant void pointer.
5324 (regcache_raw_read): Change buf parameter to a void pointer.
5325 (legacy_write_register_gen): Change myaddr parameter a constant
5327 (supply_register): Change val parameter to a const void pointer.
5328 * regcache.h (regcache_raw_write): Update declaration.
5329 (regcache_raw_read): Update declaration.
5330 (supply_register): Update declaration.
5332 2002-07-24 Tom Tromey <tromey@redhat.com>
5334 * defs.h (gdb_readline_wrapper): Declare.
5335 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5336 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5337 * top.c (gdb_readline_wrapper): New function.
5338 (command_line_input): Use it.
5340 2002-07-24 Andrew Cagney <cagney@redhat.com>
5342 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5343 regcache_read and regcache_write.
5344 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5345 * regcache.c: Update.
5346 * sh-tdep.c (sh64_push_arguments): Update comment.
5347 (sh_pseudo_register_read): Update.
5348 (sh_pseudo_register_write): Update.
5349 (sh4_register_read): Update.
5350 (sh4_register_write): Update.
5351 (sh64_pseudo_register_read): Update.
5352 (sh64_pseudo_register_write): Update.
5353 (sh64_register_read): Update.
5354 (sh64_register_write): Update.
5355 * i386-tdep.c (i386_extract_return_value): Update.
5356 (i386_extract_struct_value_address): Update.
5357 (i386_extract_return_value): Update.
5358 * blockframe.c (generic_read_register_dummy): Update.
5359 (generic_call_dummy_register_unwind): Update
5360 * infrun.c (write_inferior_status_register): Update.
5362 2002-07-23 Jim Blandy <jimb@redhat.com>
5364 * parser-defs.h (expression_context_pc): Make this extern.
5365 (Thanks to Michael Snyder.)
5367 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5369 GDB 5.2.1 released from 5.2 branch.
5370 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5371 * README: Update to mention 5.2.1.
5373 2002-07-23 Mark Salter <msalter@redhat.com>
5375 * remote.c (remote_read_bytes): Fix check for error.
5377 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5379 * aix-thread.c (language.h): Include.
5380 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5381 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5382 Print newlines at end of debug messages.
5383 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5384 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5386 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5388 * aix-thread.c (ppc-tdep.h): Include.
5389 (special_register_p): New function.
5390 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5391 (store_regs_user_thread): Use register number information from
5392 gdbarch_tdep struct instead of hardcoded offsets relative to
5393 FIRST_UISA_SP_REGNUM.
5394 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5395 special_register_p() instead of using FPLAST_REGNUM and
5396 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5397 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5398 will be MQ's register number.
5400 2002-07-22 Michael Snyder <msnyder@redhat.com>
5402 * aix-thread.c (ops): Rename to aix_thread_ops.
5403 (base_ops): Rename to base_target.
5404 (ops_attach): Rename to aix_thread_attach.
5405 (ops_detach): Rename to aix_thread_detach.
5406 (ops_resume): Rename to aix_thread_detach.
5407 (ops_wait): Rename to aix_thread_wait.
5408 (ops_kill): Rename to aix_thread_kill.
5409 (init_ops): Rename to init_aix_thread_ops.
5410 (ops_fetch_register): Rename to aix_thread_fetch_register.
5411 (ops_store_register): Rename to aix_thread_store_register.
5412 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5413 (ops_thread_alive): Rename to aix_thread_thread_alive.
5414 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5415 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5416 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5417 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5418 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5419 (store_regs_lib): Rename to store_regs_user_thread.
5420 (store_regs_kern): Rename to store_regs_kernel_thread.
5422 2002-07-22 Michael Snyder <msnyder@redhat.com>
5424 * aix-thread.c (ops_prepare_to_store): Eliminate.
5425 (init_ops): Don't initialize ops.prepare_to_store.
5426 (store_regs_kern): Pre-fetch register buffers from child,
5427 because some registers may not be in the cache. Copy
5428 regs from register cache only if they are cached.
5429 (store_regs_lib): Copy regs from register cache only
5431 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5432 fill_gprs64): Ditto.
5434 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5436 * aix-thread.c (gdb_assert.h): Include.
5437 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5438 register sizes (from register cache) match size of buffer holding
5440 (fill_sprs32): Change parameter types to match those in the ptrace()
5442 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5443 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5445 2002-07-22 Michael Snyder <msnyder@redhat.com>
5447 * aix-thread.c (supply_sprs64): Cosmetic change.
5448 (supply_sprs32): Cosmetic change.
5449 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5450 (fill_sprs64): Use regcache_collect instead of read_register.
5451 (store_regs_lib): Use regcache_collect instead of
5452 read_register. Use fill_sprs32 instead of fill_sprs64,
5453 if debugging a 32-bit architecture.
5454 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5455 out of the register cache, instead of passing a pointer into
5456 the register cache directly to ptrace. Use regcache_collect
5457 insteaad of read_register.
5458 (ops_prepare_to_store): Use target_read_registers instead
5459 of read_register_bytes.
5461 2002-07-20 Aidan Skinner <aidan@velvet.net>
5463 * MAINTAINERS: Add self under write after approval.
5465 2002-07-20 Aidan Skinner <aidan@velvet.net>
5467 * ada-tasks.c: Change k&r style function definitions to prototyped
5470 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5472 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5473 * x86-64-tdep.c: Include "objfiles.h".
5474 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5475 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5477 2002-07-17 Michal Ludvig <michal@suse.cz>
5479 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5480 (update_context): Initialise cfa variable.
5482 2002-07-17 Michael Snyder <msnyder@redhat.com>
5484 * aix-thread.c: Shorten some long lines.
5485 Bring comments into line with code spec.
5487 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5489 * infrun.c: Re-indent using gdb_indent.sh.
5491 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5493 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5494 Leave the indentation temporarily untouched, to minimize the diffs.
5496 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5498 * stabsread.c: Make os9k sections of the code obsolete,
5500 * stabsread.h: Make os9k sections of the code obsolete.
5502 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5504 * linux-low.c (regsets_store_inferior_registers): Add free()
5505 at the end of a loop to prevent memory leak.
5506 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5507 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5508 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5510 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5512 2002-07-17 Jim Blandy <jimb@redhat.com>
5514 * macrocmd.c (info_macro_command): Remove newline from error
5517 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5519 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5520 (sh_gdbarch_init): Use it for sh-dsp.
5522 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5524 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5525 64-bit DWARF2 format.
5527 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5529 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5530 <sys/proc.h> when not available.
5532 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5534 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5535 * stabsread.c: Make os9k sections of the code obsolete.
5536 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5537 * config/i386/i386os9k.mt: Make file obsolete.
5538 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5539 (COMMON_OBS): Remove os9kread.o
5540 (SFILES): Remove os9kread.c.
5541 (os9kread.o, remote-os9k.o): Make target obsolete.
5542 * remote-os9k.c: Make file obsolete.
5543 * os9kread.c: Make file obsolete.
5546 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5548 * NEWS: Mention that the FR30 has been made obsolete.
5549 * fr30-tdep.c: Make file obsolete.
5550 * config/fr30/tm-fr30.h: Ditto.
5551 * config/fr30/fr30.mt: Ditto.
5552 * configure.tgt: Make fr30-*-elf obsolete.
5553 * MAINTAINERS: Make fr30-elf obsolete.
5555 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5557 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5558 found is not inside a section.
5560 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5562 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5564 (pdc_realloc): Use xrealloc() instead of realloc().
5566 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5568 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5569 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5570 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5573 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5575 * aix-thread.c (ptrace_check): Eliminate goto.
5576 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5579 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5581 * aix-thread.c (gdbcmd.h): Include.
5582 (DEBUG, DBG, DBG2, dbg): Eliminate.
5583 (debug_aix_thread): New static global.
5584 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5585 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5586 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5587 invocations to DBG and DBG2 macros to test against
5588 ``debug_aix_thread'' and call fprintf_unfiltered().
5589 (_initialize_aix_thread): Add new command "set debug aix-thread".
5591 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5593 From Gerhard Tonn <TON@de.ibm.com>:
5594 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5595 instead of supply_register.
5597 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5599 * dwarf2cfi.c: Include "gdb_assert.h".
5600 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5602 (update_context): Do not use __func__. Add missing ``break''.
5603 (update_context): Do not use __func__.
5605 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5607 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5608 and its setting. Set gdbarch instruction printing functions
5609 directly. For non-rs6000 case use new function
5610 gdb_print_insn_powerpc.
5611 (gdb_print_insn_powerpc): New function.
5613 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5615 * NEWS: Mention that the d30v has been marked obsolete.
5616 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5617 * configure.tgt: Mark d30v-*-* as obsolete.
5618 * d30v-tdep.c: Mark file as obsolete.
5619 * config/d30v/d30v.mt: Ditto.
5620 * config/d30v/tm-d30v.h: Ditto.
5622 2002-07-13 Aidan Skinner <aidan@velvet.net>
5624 * ada-tasks.c (add_task_entry): replace calls to
5625 malloc() with xmalloc
5626 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5628 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5629 ada_finish_decode_line_1, all_sals_for_line
5630 ada_breakpoint_rewrite): replace calls to free() with xfree()
5632 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5634 From Nicholas Duffek (with minor changes by Martin Hunt,
5635 Louis Hamilton, and Kevin Buettner):
5636 * aix-thread.c: New file.
5638 2002-07-12 Petr Sorfa <petrs@caldera.com>
5640 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5641 complaint for invalid attribute class or form.
5642 (read_func_scope): DW_AT_frame_base
5643 better handling of DW_AT_block*.
5644 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5645 better handling of DW_AT_block*.
5646 (read_common_block): DW_AT_location
5647 better handling of DW_AT_block*.
5648 (read_partial_die): DW_AT_location better handling
5650 (new_symbol): DW_AT_external better handling of
5651 DW_AT_block*. Proper initialization of variable
5653 (attr_form_is_block): New function that returns true
5654 if the attribute's form is of DW_FORM_block*.
5656 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5658 * valops.c (find_method_list): Remove comment about
5659 removed STATIC_MEMFUNCP argument.
5660 (value_find_oload_method_list): Likewise.
5662 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5664 From Nicholas Duffek:
5665 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5666 target_new_objfile_hook.
5668 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5670 From Nicholas Duffek:
5671 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5674 2002-07-12 Andrew Cagney <cagney@redhat.com>
5676 * MAINTAINERS: Mention --enable-sim-build-warnings.
5677 (m68hc11-elf): Disable sim build warnings.
5678 (m32r-elf): Mark as broken obsolete candidate.
5679 (x86_64-linux-gnu): Mark as buildable with -Werror.
5680 (arm-elf): Change -w to ``,'' which enables warnings but not
5683 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5685 * bcache.h: Update copyright.
5686 (struct bstring, struct bcache): Move definition to "bcache.c".
5687 Replaced by opaque declaration.
5688 (bcache_xfree): Replace free_bcache.
5689 (bcache_xmalloc, bcache_memory_used): Declare.
5691 * bcache.c: Update copyright.
5692 (struct bstring, struct bcache): Moved to here from "bcache.h".
5694 (bcache_xmalloc, bcache_memory_used): New functions.
5695 (bcache_xfree): Replace function free_bcache.
5697 * Makefile.in (objfiles.o): Add $(bcache_h).
5698 (objfiles_h): Remove $(bcache_h).
5699 (symfile.o): Add $(bcache_h).
5701 * symmisc.c: Update copyright.
5702 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5703 (print_objfile_statistics): Use bcache_memory_used.
5705 * symfile.c: Include "bcache.h".
5706 (reread_symbols): Use bcache_xfree.
5707 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5708 (add_psymbol_to_list): Pass psymbol_cache by value.
5709 (add_psymbol_with_dem_name_to_list): Ditto.
5711 * objfiles.h: Update copyright.
5712 (struct bcache): Declare opaque. Do not include "bcache.h".
5713 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5715 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5717 * objfiles.c: Include "bcache.h". Update copyright.
5718 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5720 (free_objfile): Use bcache_xfree.
5722 2002-07-11 Grace Sainsbury <graces@redhat.com>
5724 * monitor.c (monitor_fetch_register): Make name a constant.
5725 (monitor_store_register): Same.
5727 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5729 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5730 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5731 (finish_block) For non-function blocks, hash the symbol table. For
5732 function blocks, mark the symbol table as unhashed.
5733 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5734 (msymbol_hash_iw): Likewise.
5735 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5737 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5738 (lookup_minimal_symbol): Likewise for both.
5739 * symtab.h (struct block): Add `hashtable' flag. Comment the
5741 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5742 (ALL_BLOCK_SYMBOLS): Update.
5743 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5744 (struct symbol): Add `hash_next' pointer.
5745 * symtab.c (lookup_block_symbol): Search using the hash table when
5747 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5748 (search_symbols, find_addr_symbol): Likewise.
5750 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5751 (read_dst_symtab): Likewise.
5752 * jv-lang.c (get_java_class_symtab): Likewise.
5753 * mdebugread.c: Include "gdb_assert.h".
5754 (shrink_block): Assert that the block being modified is not hashed.
5755 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5756 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5758 (dump_symtab): Recognize hashed blocks.
5759 * printcmd.c (print_frame_args): Assert that function blocks do not
5760 have hashed symbol tables.
5761 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5762 (fill_in_ada_prototype, debug_print_block): Likewise.
5763 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5765 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5767 * stack.c (print_frame): Use result of frame_address_in_block()
5768 instead of fi->pc when evaluating symbols.
5769 (backtrace_command_1): Ditto.
5771 2002-07-11 Andrew Cagney <cagney@redhat.com>
5773 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5776 * arm-tdep.c (arm_register_name): Make return type constant.
5778 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5780 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5782 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5783 * s390-tdep.c (s390_fp_regnum): Ditto.
5784 (s390_read_fp): Ditto.
5785 (s390_pop_frame): Ditto.
5786 (_initialize_s390_tdep): Ditto.
5787 * remote.c (get_remote_state): Ditto.
5788 * procfs.c (mappingflags): Ditto.
5789 * memattr.c (_initialize_mem): Ditto.
5790 * mcore-tdep.c (mcore_pop_frame): Ditto.
5791 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5792 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5793 * language.c (set_case_str): Ditto.
5794 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5795 * frv-tdep.c (new_variant): Ditto.
5796 (frv_stopped_data_address): Ditto.
5797 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5798 (context_alloc): Ditto.
5799 (frame_state_alloc): Ditto.
5800 (unwind_tmp_obstack_init): Ditto.
5801 (unwind_tmp_obstack_free): Ditto.
5802 (cfi_read_fp): Ditto.
5803 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5804 (cris_pop_frame): Ditto.
5805 * c-lang.c (scanning_macro_expansion): Ditto.
5806 (finished_macro_expansion): Ditto.
5807 (c_preprocess_and_parse): Ditto.
5808 * gdbarch.sh: Ditto.
5809 * gdbarch.h, gdbarch.c: Regenerate.
5810 * config/mn10200/tm-mn10200.h: Adjust indentation.
5811 * target.c: Adjust indentation.
5812 * symtab.h: Adjust indentation.
5813 * stabsread.h: Adjust indentation.
5814 * remote-es.c: Adjust indentation.
5815 * os9kread.c: Adjust indentation.
5817 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5819 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5820 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5822 2002-07-10 Grace Sainsbury <graces@redhat.com>
5824 * NEWS: Mention m68k, mcore multi-arching.
5825 * MAINTAINERS: Change status of m68k, mcore to reflect
5828 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5830 * valops.c (find_overload_match): Free oload_syms.
5832 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5834 Define HAVE_SYS_PROC_H if sys/proc.h exists
5835 * configure.in: Add check for sys/proc.h
5836 * config.in: Regenerate.
5837 * configure: Regenerate.
5839 2002-07-09 Grace Sainsbury <graces@redhat.com>
5841 * config/m68k/tm-m68k.h: Remove macros wrapped in
5842 #if !GDB_MULTI_ARCH.
5844 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5846 * config.in, configure: Regenerate.
5848 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5850 * dwarf2cfi.c: Include "gcore.h".
5851 (execute_stack_op): Fix implementation of the
5852 DW_OP_deref and DW_OP_deref_size operators by letting do their
5853 lookup in the target.
5855 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5857 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5858 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5861 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5863 Fix PR gdb/595, gdb/602
5864 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5865 Don't call value_cast, just read the vtable pointer; update comments
5868 2002-07-05 Grace Sainsbury <graces@redhat.com>
5870 * config/mcore/tm-mcore.h: Remove file.
5871 * config/mcore/mcore.mt: Remove definition of TM_FILE
5872 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5874 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5876 * i386bsd-tdep.c: Include "gdb_string.h".
5878 2002-07-04 Grace Sainsbury <graces@redhat.com>
5880 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5881 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5883 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5884 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5885 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5886 (RETVAL_REGNUM): Move macros from tm-mcore.h
5887 (mcore_reg_struct_has_addr): New function.
5888 (mcore_gdbarch_init): Added initializations for the macros removed
5891 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5893 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5894 traditonal string branding within the ELF header.
5896 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5898 * symtab.c (remove_params): New function.
5899 (make_symbol_overload_list): Use it instead of cplus_demangle.
5900 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5902 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5904 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5906 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5908 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5909 and tdep->sigtramp_end.
5910 * i386obsd-nat.c: New file.
5911 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5913 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5914 Don't call get_current_frame().
5916 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5918 * i386-nat.c (child_post_startup_inferior): New function
5919 calling i386_cleanup_dregs if
5920 I386_USE_GENERIC_WATCHPOINTS is defined.
5921 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5922 conditional to acknowledge that i386-nat.c has its
5923 own child_post_startup_inferior function.
5925 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5927 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5928 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5929 instead of MAX_REGISTER_RAW_SIZE.
5930 (i386_extract_return_value, i386_extract_struct_value_address):
5931 Convert to use regcache.
5932 (i386_gdbarch_init): Set max_register_raw_size and
5933 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5934 Set extract_return_value and extract_struct_value_address instead
5935 of their deprecated variants.
5937 Convert i386 target to generic dummy frames.
5938 * i386-tdep.c: Include "symfile.h".
5939 (i386_frameless_signal_p): Consider a function to be frameless if
5940 the pc points at the first instruction of the function.
5941 (i386_frame_chain): Handle (generic) call dummies.
5942 (i386_frame_saved_pc): Likewise.
5943 (i386_frame_init_saved_regs): Remove code dealing with call
5944 dummies on the stack.
5945 (i386_push_dummy_frame): Removed.
5946 (i386_call_dummy_words): Removed.
5947 (i386_fix_call_dummy): Removed.
5948 (i386_push_return_address): New function.
5949 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5950 parameter, and don't call get_current_frame.
5951 (i386_pop_frame): New function.
5952 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5953 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5954 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5955 call_dummy_length to 0, set call_dummy_words to NULL, set
5956 sizeof_call_dummy_words to 0, set fix_call_dummy to
5957 generic_fix_call_dummy, set pc_in_call_dummy to
5958 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5959 generic_push_dummy_frame, set push_return_address to
5960 i386_push_return_address and set frame_chain_valid to
5961 generic_file_frame_chain_valid.
5963 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5965 * gdbarch.sh (struct regcache): Add opaque declaration.
5966 (EXTRACT_RETURN_VALUE): New architecture method.
5967 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5968 * gdbarch.h, gdbarch.c: Regenerate.
5969 * arch-utils.c (legacy_extract_return_value): New function.
5970 * arch-utils.h (legacy_extract_return_value): Declare.
5971 * values.c (value_being_returned): Re-enable code handling
5972 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5973 deprecated_grub_regcache_for_registers call to block handling
5974 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5975 (EXTRACT_RETURN_VALUE): Do not define.
5977 2002-07-03 Grace Sainsbury <graces@redhat.com>
5979 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5980 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5981 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5982 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5983 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5984 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5985 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5986 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5987 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5988 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5989 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5990 argument so the function fits the prototype in the architecture
5992 (mcore_pop_frame): Remove argument so the function fits the
5993 prototype. Use get_current_frame instead of the argument.
5994 (mcore_push_arguments): Change type of struct_return so the
5995 function can be used in the architecture vector.
5996 (mcore_store_struct_return): Add.
5997 (mcore_frame_init_saved_regs): Add.
5998 (mcore_gdbarch_init): Add function calls to replace the macros
5999 removed from tm-mcore.h
6001 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6003 * infcmd.c (print_return_value): Remove compatibility code calling
6004 deprecated_grub_regcache_for_registers.
6006 * values.c: Include "regcache.h".
6007 (value_being_returned): Update. Use
6008 deprecated_grub_regcache_for_registers to extract the register
6010 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6011 ``struct regcache''.
6012 * Makefile.in (values.o): Add dependency on $(regcache_h).
6014 * inferior.h (run_stack_dummy): Change type of second parameter to
6015 a ``struct regcache''.
6016 * valops.c (hand_function_call): Change type of retbuf to ``struct
6017 regcache''. Allocate using regcache_xmalloc, clean using
6018 make_cleanup_regcache_xfree.
6019 * infcmd.c (run_stack_dummy): Update. Use
6020 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6022 * regcache.c (do_regcache_xfree): New function.
6023 (make_cleanup_regcache_xfree): New function.
6024 * regcache.h (make_cleanup_regcache_xfree): Declare.
6026 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6028 * event-top.c (command_line_handler): Don't read past
6029 beginning of buffer.
6031 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6033 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6035 (varobj_create): Store frame_id for root.
6036 (varobj_gen_name): Use xasprintf.
6037 (varobj_update): Save and restore frame using get_frame_id() and
6039 (create_child): Use xasprintf.
6040 (new_root_variable): Initialize frame_id.
6041 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6042 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6043 to prevent memory leak.
6045 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6047 * valops.c (hand_function_call): Move declaration of retbuf to
6048 start of function, allocate using malloc, add a cleanup but before
6049 the inf_status cleanup, cleanup the buffer. Rename local variable
6050 old_chain to inf_status_cleanup.
6052 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6054 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6056 * cli/cli-decode.c (cmd_func_p): New function.
6057 (cmd_func): New function.
6059 * command.h: Add cmd_func() and cmd_func_p().
6061 2002-07-03 Grace Sainsbury <graces@redhat.com>
6063 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6064 (REGISTER_SIZE): Remove.
6065 (MAX_REGISTER_RAW_SIZE): Remove.
6066 (REGISTER_VIRTUAL_TYPE): Remove.
6067 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6068 (REGISTER_NAME): Remove.
6069 (USE_GENERIC_DUMMY_FRAMES): Remove.
6070 (CALL_DUMMY): Remove.
6071 (CALL_DUMMY_START_OFFSET): Remove.
6072 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6073 (CALL_DUMMY_LOCATION): Remove.
6074 (FIX_CALL_DUMMY): Remove.
6075 (CALL_DUMMY_ADDRESS): Remove.
6076 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6077 (SAVE_DUMMY_FRAME_TOS): Remove.
6078 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6079 (mcore_register_virtual_type): New function.
6080 (mcore_register_byte): New function.
6081 (mcore_register_size): New function.
6082 (mcore_register_name): New function.
6083 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6084 macros removed from tm-mcore.h.
6085 (mcore_dump_tdep): Add.
6086 (_initialize_mcore_tdep): Add gdbarch_register call.
6088 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6090 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6091 frameless_look_for_prologue, such that we actually call this
6094 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6096 * frame.h (frame_address_in_block): New function.
6098 * blockframe.c (frame_address_in_block): New function extracted
6099 from get_frame_block().
6100 (get_frame_block): Use frame_address_in_block().
6101 (block_innermost_frame): Use frame_address_in_block() to match
6102 the frame pc address against the block boundaries rather than
6103 the frame pc directly. This prevents a failure when a frame pc
6104 is actually a return-address pointing immediately after the end
6107 2002-07-02 Grace Sainsbury <graces@redhat.com>
6109 * MAINTAINERS: Add self under write after approval.
6111 2002-07-02 Grace Sainsbury <graces@redhat.com>
6113 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6114 used in architecture vector. The default is
6115 m68k_local_breakpoint_from_pc.
6116 (m68k_local_breakpoint_from_pc): Add.
6117 (enum): Add register numbers from tm-m68k.h.
6118 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6120 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6121 GDB_MULTI_ARCH_PARTIAL.
6122 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6123 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6125 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6126 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6127 to enum in m68k-tdep.c
6129 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6131 * solib-osf.c (open_map): Compute the list of shared libraries
6132 loaded by the inferior, rather than the list of libraries loaded
6133 by GDB itself. Otherwise, GDB ends up reading the symbols from
6134 the wrong shared libraries...
6136 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6138 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6139 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6141 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6143 (FRAMELESS_SIGNAL): Remove function.
6144 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6145 i386_linux_saved_pc_after_call): Removed.
6146 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6147 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6148 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6150 * i386-tdep.c (i386_frameless_signal_p): New function.
6151 (i386_frame_chain): Deal with frameless signals.
6152 (i386_sigtramp_saved_sp): New function.
6153 (i386_frame_saved_pc): Deal with frameless signals.
6154 (i386_saved_pc_after_call): Make sure the correct value is
6155 returned just after entry into a sigtramp.
6156 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6157 i386fbsd4_sc_sp_offset): New variables.
6158 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6159 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6160 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6161 similiar to what we already did for sc_pc_offset.
6162 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6165 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6167 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6169 * config/i386/tm-x86-64linux.h: New.
6170 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6172 * config/i386/nm-x86-64.h: Rename to ...
6173 * config/i386/nm-x86-64linux.h: ... this one.
6174 * config/i386/x86-64linux.mh: Reflect the above change.
6176 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6178 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6179 with sigcontext_addr. Add sc_sp_offset.
6180 (i386bsd_sigtramp_saved_pc): Remove prototype.
6181 (i386bsd_sicontext_addr): Add prototype.
6182 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6183 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6184 (i386_svr4_sigtramp_saved_pc): Removed.
6185 (i386_svr4_sigcontext_addr): New function.
6186 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6187 Initialize tdep->sigcontext_addr instead. Initialize
6188 tdep->sc_pc_offset and tdep->sc_sp_offset.
6189 (i386_gdbarch_init): Likewise.
6190 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6192 (i386bsd_sigtramp_saved_pc): Remove function.
6193 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6194 Initialize tdep->sigcontext_addr instead. Initialize
6196 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6197 of tdep->sigtramp_saved_pc.
6198 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6199 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6202 * i386-tdep.c (i386_frameless_function_invocation,
6203 i386_frame_num_args, i386_frame_init_saved_regs,
6204 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6205 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6206 i386_extract_return_value, i386_store_return_value,
6207 i386_extract_struct_value_address, i386_register_virtual_type,
6208 i386_register_convertible, i386_register_convert_to_virtual,
6209 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6210 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6213 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6215 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6217 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6218 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6219 this macro. Include "value.h".
6221 2002-06-30 Aidan Skinner <aidan@velvet.net>
6223 * ada-exp.tab.c: remove as it's a generated file
6224 * ada-lex.c: remove as it's a generated file
6226 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6228 * config/i386/tm-i386.h (struct frame_info, struct
6229 frame_saved_regs, struct value, struct type): Remove forward
6232 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6233 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6234 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6235 (FILL_FPXREGSET): Define.
6237 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6239 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6240 i[3456]86-*-netbsd* case.
6241 * config/i386/tm-obsd.h: Removed.
6242 * config/i386/obsd.mt: Removed.
6243 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6245 (MH_CFLAGS): Add -DYYDEBUG=0.
6247 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6248 i386nbsd_sc_pc_offset on OpenBSD too.
6250 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6251 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6252 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6254 * i386bsd-tdep.c: Include "arch-utils.h".
6255 (i386bsd_aout_in_solib_call_trampoline): New function.
6256 (i386bsd_init_abi): Set in_solib_call_trampoline to
6257 i386bsd_aout_in_solib_call_trampoline.
6258 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6259 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6261 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6263 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6264 (struct obstack, struct bcache): Add opaque declarations.
6265 * Makefile.in (macrotab_h): Update
6267 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6269 * blockframe.c (generic_find_dummy_frame): Change return type to
6270 ``struct regcache''.
6271 (struct dummy_frame): Replace field ``registers'' with regcache, a
6272 struct regcache object.
6273 (generic_find_dummy_frame): Update.
6274 (generic_push_dummy_frame): Update. Use regcache_xfree,
6275 regcache_xmalloc and regcache_cpy.
6276 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6278 (deprecated_generic_find_dummy_frame): Update.
6279 (generic_read_register_dummy): Update. Use
6280 regcache_read_as_address.
6281 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6282 (generic_get_saved_register): Update. Use regcache_read.
6284 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6286 * Makefile.in (objfiles_h): Add $(bcache_h).
6287 * objfiles.h: Include "bcache.h".
6289 * Makefile.in (symtab_h): Remove $(bcache_h).
6290 * symtab.h: Do not include "bcache.h".
6292 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6294 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6295 generic_func_frame_chain_valid.
6297 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6299 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6300 * config/i386/tm-fbsd.h: Likewise.
6302 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6304 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6305 generic_unwind_get_saved_register.
6307 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6309 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6310 * regcache.c (supply_register): Add missing argument to
6311 register_buffer call.
6313 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6315 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6316 Solaris /bin/grep does not not like it. From Peter Schauer.
6318 2002-06-26 Tom Tromey <tromey@redhat.com>
6320 * command.h (add_setshow_cmd): Declare.
6321 (add_setshow_cmd_full): Declare.
6322 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6323 returns void. Use add_setshow_cmd_full.
6324 (add_setshow_cmd_full): New function.
6325 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6326 (add_setshow_boolean_cmd): Likewise.
6328 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6330 * config/vax/tm-vax.h: Protect from multiple inclusion.
6331 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6332 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6333 * config/vax/tm-vaxbsd.h: ...here. New file.
6334 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6336 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6338 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6339 (BELIEVE_PCC_PROMOTION): Remove.
6340 (AP_REGNUM): Move to...
6341 * config/vax/nm-vax.h: ...here.
6342 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6343 (vax_breakpoint_from_pc): New function.
6344 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6345 and gdbarch_believe_pcc_promotion.
6347 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6349 * Makefile.in (vax_tdep_h): Define.
6350 (vax-tdep.o): Use $(vax_tdep_h).
6351 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6352 (vax_dump_tdep): New function.
6353 (_initialize_vax_tdep): Register vax_dump_tdep.
6354 * vax-tdep.h: Include osabi.h.
6355 (struct gdbarch_tdep): New.
6357 2002-06-26 Andrew Cagney <cagney@redhat.com>
6359 * frame.h (deprecated_generic_find_dummy_frame): Rename
6360 generic_find_dummy_frame.
6361 * blockframe.c (generic_find_dummy_frame): Make static.
6362 (deprecated_generic_find_dummy_frame): New function.
6363 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6364 generic_find_dummy_frame with deprecated_find_dummy_frame.
6365 (sh64_nofp_frame_init_saved_regs): Ditto.
6366 (sh_fp_frame_init_saved_regs): Ditto.
6367 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6368 (s390_frame_chain): Ditto.
6369 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6371 2002-06-26 Grace Sainsbury <graces@redhat.com>
6373 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6374 gdbarch vector are at the top.
6376 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6377 (FRAME_ARGS_ADDRESS): Remove.
6378 (FRAME_LOCALS_ADDRESS): Remove.
6379 (FRAME_NUM_ARGS): Remove.
6380 (FRAME_ARGS_SKIP): Remove.
6381 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6382 (m68k_gdbarch_init): Add gdbarch initializations for macros
6383 undefined in tm-m68k.h
6385 2002-06-26 Grace Sainsbury <graces@redhat.com>
6387 * monitor.h: Add the function regname to monitor_ops
6388 structure. This way NUM_REGS does not have to be a constant.
6389 * monitor.c (monitor_fetch_register): Added support for regname
6390 function. The function is called if the array regnames is NULL.
6391 (monitor_store_register): Same.
6392 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6394 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6395 cpu32bug_cmds.regname to point to new function.
6396 * abug-rom.c (abug_regname): Same as above.
6397 (init_abug_cmds): Same.
6398 * dbug-rom.c (dbug_regname): Same as above.
6399 (init_dbug_cmds): Same.
6400 * remote-est.c (est_regname): Same.
6401 (init_est_cmds): Same.
6402 * rom68k-rom.c (rom68k_regname): Same.
6403 (init_rom68k_cmds): Same.
6405 2002-06-25 Tom Tromey <tromey@redhat.com>
6407 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6409 2002-06-25 Andrew Cagney <cagney@redhat.com>
6411 * infrun.c (stop_registers): Change variable's type to ``struct
6413 (xmalloc_inferior_status): Delete function.
6414 (free_inferior_status): Delete function.
6415 (normal_stop): Use regcache_cpy.
6416 (struct inferior_status): Change type of fields ``stop_registers''
6417 and ``registers'' to ``struct regcache''.
6418 (write_inferior_status_register): Use regcache_write.
6419 (save_inferior_status): Instead of calling
6420 xmalloc_inferior_status, allocate the inf_status buffer directly.
6421 Use regcache_dup_no_passthrough and regcache_dup to save the
6423 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6424 Replace the stop_registers regcache instead of overriding it. Use
6425 regcache_xfree. Instead of calling free_inferior_status, xfree
6426 the buffer directly.
6427 (discard_inferior_status): Use regcache_xfree. Instead of calling
6428 free_inferior_status, xfree the buffer directly.
6429 (build_infrun): Use regcache_xmalloc.
6430 (_initialize_infrun): Delete redundant call to build_infrun.
6432 * Makefile.in (infcmd.o): Add $(regcache_h).
6434 * infcmd.c: Include "regcache.h".
6435 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6436 obtain the address of `stop_registers' register buffer.
6437 (print_return_value): Ditto.
6439 * inferior.h (struct regcache): Add opaque declaration.
6440 (stop_registers): Change variable's declared type to ``struct
6443 2002-06-24 Tom Tromey <tromey@redhat.com>
6445 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6446 * target.c (initialize_targets): Fixed typo in
6447 trust-readonly-sections `show' documentation.
6449 * main.c: Marked all strings with _().
6451 2002-06-24 Don Howard <dhoward@redhat.com>
6453 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6454 that means max CORE_ADDR+1.
6455 (lookup_mem_region): Ditto.
6456 (mem_info_command): Ditto.
6458 2002-06-24 Grace Sainsbury <graces@redhat.com>
6460 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6461 (REGISTER_BYTES_OK): Remove.
6462 (REGISTER_BYTES): Remove.
6463 (STORE_STRUCT_RETURN): Remove.
6464 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6465 (STORE_RETURN_VALUE): Remove.
6466 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6467 (FRAME_CHAIN): Remove.
6468 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6469 (FRAME_SAVED_PC): Remove.
6470 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6471 (m68k_store_struct_return): Add.
6472 (m68k_deprecated_extract_return_value): Add.
6473 (m68k_deprecated_extract_struct_value_address): Add.
6474 (m68k_store_return_value): Add.
6475 (m68k_frame_chain): Add.
6476 (m68k_frameless_function_invocation): Add.
6477 (m68k_frame_saved_pc): Add.
6478 (m68k_gdbarch_init): added set_gdbarch calls for new
6479 functions and deleted macros.
6481 2002-06-23 Tom Tromey <tromey@redhat.com>
6483 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6484 (ALLDEPFILES): Likewise.
6485 (udiheaders): Removed.
6486 (udip2soc.o): Likewise.
6487 (udi2go32.o): Likewise.
6489 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6491 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6493 * infrun.c (_initialize_infrun): Delete unnecessary call to
6496 * regcache.h: Update comments describing the regcache_cpy family
6498 (regcache_save, regcache_restore): Delete declaration.
6499 (regcache_save_no_passthrough): Delete declaration.
6500 (regcache_restore_no_passthrough): Delete declaration.
6501 * regcache.c (regcache_save): Delete function.
6502 (regcache_save_no_passthrough): Delete function.
6503 (regcache_restore): Delete function.
6504 (regcache_restore_no_passthrough): Delete function.
6506 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6508 * config/m68k/tm-m68k.h: Fix typo.
6509 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6510 (m68k_frame_init_saved_regs): Declare.
6512 2002-06-21 Jim Blandy <jimb@redhat.com>
6514 Remove some vestiges of Harris 88k support.
6515 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6516 register numbering quirk.
6517 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6518 odd symbols occurring in Harris 88k ELF targets.
6520 2002-06-21 Tom Tromey <tromey@redhat.com>
6522 * gdb_locale.h: New file.
6523 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6524 (defs_h): Added gdb_locale.h.
6525 * configure, config.in: Rebuilt.
6526 * configure.in (PACKAGE): Define.
6527 * defs.h: Include gdb_locale.h.
6528 * main.c (captured_main): Call setlocale, bindtextdomain,
6531 2002-06-21 Dave Brolley <brolley@redhat.com>
6533 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6534 * config/frv/frv.mt: New file.
6535 * config/frv/tm-frv.h: New file.
6536 * configure.tgt: Support frv-*-*.
6537 * Makefile.in (frv-tdep.o): New target.
6538 * frv-tdep.c: New file.
6539 * NEWS: Mention frv.
6541 2002-06-21 Dave Brolley <brolley@redhat.com>
6543 * MAINTAINERS: Add self to "Write After Approval" list.
6545 2002-06-21 Grace Sainsbury <graces@redhat.com>
6547 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6548 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6549 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6550 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6551 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6553 * m68k-tdep.c: Include arch-utils.h
6554 (m68k_register_raw_size): Add.
6555 (m68k_register_virtual_size): Add.
6556 (m68k_register_virtual_type): Add.
6557 (m68k_register_name): Add.
6558 (m68k_stack_align): Add.
6559 (m68k_register_byte): Add.
6560 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6563 2002-06-21 Grace Sainsbury <graces@redhat.com>
6565 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6566 m68k_find_saved_regs.
6567 (m68k_pop_frame): Removed saved_regs structure, and replaced
6568 references to it with frame->saved_regs.
6569 (m68k_gdbarch_init): Added function calls to initialize the
6571 (m68k_fix_call_dummy): Add.
6572 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6573 (CALL_DUMMY): Remove.
6574 (CALL_DUMMY_LENGTH): Remove.
6575 (CALL_DUMMY_START_OFFSET): Remove.
6576 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6577 (FIX_CALL_DUMMY): Remove.
6578 (PUSH_DUMMY_FRAME): Remove.
6579 (POP_FRAME): Remove.
6581 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6583 * parse.c (parse_fprintf): New function used to avoid calls to
6584 fprintf in bison parser generated debug code.
6585 * parser-defs.h: Declaration of new parse_fprintf function.
6586 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6587 Set YYDEBUG to 1 by default.
6588 Set YYFPRINTF as parse_fprintf.
6590 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6592 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6594 (pointer_encoding, enum ptr_encoding): New.
6595 (execute_cfa_program): Take care about pointer encoding.
6596 (dwarf2_build_frame_info): Only call parse_frame_info for
6597 .debug_frame and .eh_frame.
6598 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6599 fixed augmentation handling, added relative addressing,
6600 ignore duplicate FDEs. Added comments.
6601 * dwarf2cfi.c: Reindented.
6603 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6605 * event-top.c (command_handler): Don't use space_at_cmd_start
6606 unless there is sbrk() on the host. Assign time and space data
6607 to union fields of the appropriate length.
6609 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6611 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6612 x86_64_register_name. Return type changed to 'const char *'.
6613 (x86_64_register_name2nr): Rename to x86_64_register_number.
6614 (x86_64_gdbarch_init): Update to reflect the change.
6615 * x86-64-tdep.h: Ditto.
6616 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6617 (supply_fpregset): Ditto.
6619 2002-06-19 Andrew Cagney <cagney@redhat.com>
6621 * regcache.h: Update copyright.
6622 (struct regcache, struct gdbarch): Add opaque declarations.
6623 (current_regcache): Declare global variable.
6624 (regcache_read, regcache_write): Add gdbarch parameter.
6625 (regcache_save, regcache_save_no_passthrough)
6626 (regcache_restore, regcache_restore_no_passthrough)
6627 (regcache_dup, regcache_dup_no_passthrough)
6628 (regcache_cpy, regcache_cpy_no_passthrough)
6629 (deprecated_grub_regcache_for_registers)
6630 (deprecated_grub_regcache_for_register_valid)
6631 (regcache_valid_p): Add function declarations.
6633 * regcache.c: Update copyright.
6634 (regcache_descr_handle): New global variable.
6635 (struct regcache_descr): Define.
6636 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6637 (regcache_descr, xfree_regcache_descr): New functions.
6638 (struct regcache): Define.
6639 (regcache_xmalloc, regcache_xfree): New functions.
6640 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6641 (regcache_dup, regcache_dup_no_passthrough): New functions.
6642 (regcache_valid_p, regcache_read_as_address): New functions.
6643 (deprecated_grub_regcache_for_registers): New function.
6644 (deprecated_grub_regcache_for_register_valid): New function.
6645 (current_regcache): New global variable.
6646 (register_buffer): Add regcache parameter. Update calls.
6647 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6648 (read_register_gen, write_register_gen): Update register_buffer
6649 call. Test for legacy_p instead of gdbarch_register_read_p or
6650 gdbarch_register_write_p.
6651 (regcache_collect): Update register_buffer call.
6652 (build_regcache): Rewrite. Use deprecated grub functions.
6653 (regcache_save, regcache_save_no_passthrough): New functions.
6654 (regcache_restore, regcache_restore_no_passthrough): New
6656 (_initialize_regcache): Create the regcache_data_handle. Swap
6657 current_regcache global variable.
6659 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6660 parameter to regcache_read and regcache_write calls.
6661 (sh4_register_read): Ditto.
6662 (sh64_pseudo_register_read): Ditto.
6663 (sh64_register_read): Ditto.
6664 (sh_pseudo_register_write): Ditto.
6665 (sh4_register_write): Ditto.
6666 (sh64_pseudo_register_write): Ditto.
6667 (sh64_register_write): Ditto.
6669 * defs.h (XCALLOC): Define.
6671 2002-06-19 Grace Sainsbury <graces@redhat.com>
6673 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6674 * m68k-tdep.c (m68k_gdbarch_init): Added.
6675 (m68k_dump_tdep): Added.
6677 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6679 * ada-lang.c (fill_in_ada_prototype): Update comment.
6681 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6683 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6685 (mips_abi_string, mips_abi_strings): New.
6686 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6687 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6688 tdep->mips_abi_string. Honor mips_abi_string. Default to
6689 O32 if no ABI is found.
6690 (mips_dump_tdep): Use mips_abi_strings.
6691 (mips_abi_update): New function.
6692 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6693 ``set mips abi'' and ``show mips abi''. Check the size of
6696 2002-06-19 Andrew Cagney <cagney@redhat.com>
6698 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6701 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6703 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6704 current frame using only the first stack size adjustment. All
6705 subsequent size adjustments are not considered to be part of
6706 the "static" part of the current frame.
6707 Compute the address of the saved registers relative to the
6708 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6709 in use in this frame.
6711 2002-06-18 Don Howard <dhoward@redhat.com>
6713 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6714 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6715 suggesting this solution.
6717 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6719 * config/romp/xm-rtbsd.h: Delete file.
6720 * config/romp/rtbsd.mh: Delete file.
6722 2002-06-18 Keith Seitz <keiths@redhat.com>
6724 * breakpoint.c (condition_command): Post breakpoint_modify
6725 when a condition is added to an existing breakpoint.
6726 (commands_command): Likewise for commands.
6727 (set_ignore_count): Likewise for ignore counts.
6728 If no tty, do not simply return, still need to send event
6730 (ignore_command): Only print a newline if the command came
6732 Don't call breakpoints_changed, since this is now properly
6733 handled by set_ignore_count.
6735 2002-06-18 Andrew Cagney <cagney@redhat.com>
6737 * MAINTAINERS: Note that cris-elf target can be compiled with
6739 * cris-tdep.c (cris_register_name): Make return type constant.
6740 (cris_breakpoint_from_pc): Ditto.
6742 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6744 * frame.h (struct frame_info): Change type of context to
6747 2002-06-17 Andrew Cagney <cagney@redhat.com>
6749 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6751 * gdbarch.h, gdbarch.c: Regenerate.
6752 * config/mips/tm-mips.h (mips_register_name): Update.
6753 * i386-tdep.h (i386_register_name): Update.
6754 * mips-tdep.c (mips_register_name): Update
6755 * alpha-tdep.c (alpha_register_name): Update.
6756 * arch-utils.c (legacy_register_name): Update.
6757 * arch-utils.h (legacy_register_name): Update.
6758 * avr-tdep.c (avr_register_name): Update.
6759 * ia64-tdep.c (ia64_register_name): Update.
6760 * i386-tdep.c (i386_register_name): Update.
6761 * sparc-tdep.c (sparc32_register_name): Update.
6762 (sparc64_register_name): Update.
6763 (sparclite_register_name): Update.
6764 (sparclet_register_name): Update.
6765 * sh-tdep.c (sh_generic_register_name): Update.
6766 (sh_sh_register_name): Update.
6767 (sh_sh3_register_name): Update.
6768 (sh_sh3e_register_name): Update.
6769 (sh_sh_dsp_register_name): Update.
6770 (sh_sh3_dsp_register_name): Update.
6771 (sh_sh4_register_name): Update.
6772 (sh_sh64_register_name): Update.
6773 * s390-tdep.c (s390_register_name): Update.
6774 * rs6000-tdep.c (rs6000_register_name): Update.
6775 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6776 (ns32k_register_name_32382): Update.
6777 * d10v-tdep.c (d10v_ts2_register_name): Update.
6778 (d10v_ts3_register_name): Update.
6779 * xstormy16-tdep.c (xstormy16_register_name): Update.
6780 * vax-tdep.c (vax_register_name): Update.
6781 * v850-tdep.c (v850_register_name): Update.
6782 * m68hc11-tdep.c (m68hc11_register_name): Update.
6783 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6784 (am33_register_name): Update.
6786 2002-06-17 Grace Sainsbury <graces@redhat.com>
6788 * m68k-tdep.c: Reindented.
6790 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6792 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6793 list of predefined types.
6795 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6797 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6798 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6799 REGISTER_CONVERT_TO_RAW): Remove defines.
6800 (i386_register_virtual_type, i386_register_convertible,
6801 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6803 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6804 macros mentioned above.
6806 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6807 (i386lynx_saved_pc_after_call): Remove prototype.
6808 * i386ly-tdep.c: Include "i386-tdep.h".
6809 (i386lynx_saved_pc_after_call): Make static. Use
6810 read_memory_nobpt instead of read_memory. Use
6811 read_memory_unsigned_integer instead of read_memory_integer.
6812 (i386lynx_init_abi): New function.
6813 (i386lynx_coff_osabi_sniffer): New function.
6814 (_initialize_i386bsd_tdep): New function.
6816 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6817 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6818 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6819 (i386_fix_call_dummy): Remove prototype.
6820 * i386-tdep.c (i386_call_dummy_words): New variable.
6821 (i386_gdbarch_init): Adjust for removal of the
6822 macros mentioned above.
6824 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6826 * command.h (add_setshow_auto_boolean_cmd): Replace
6827 add_set_auto_boolean_cmd.
6828 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6829 add_set_auto_boolean_cmd.
6830 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6831 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6832 mask-address'' command.
6833 (show_mask_address): Add cmd parameter.
6834 * remote.c (add_packet_config_cmd): Update. Change type of
6835 set_func and show_func to cmd_sfunc_ftype.
6836 (_initialize_remote): Update `set remote Z-packet'
6837 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6838 (show_remote_protocol_e_packet_cmd): Ditto.
6839 (show_remote_protocol_E_packet_cmd): Ditto.
6840 (show_remote_protocol_P_packet_cmd): Ditto.
6841 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6842 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6843 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6844 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6845 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6846 (show_remote_protocol_Z_packet_cmd): Ditto.
6847 (show_remote_protocol_binary_download_cmd): Ditto.
6848 (show_remote_cmd): Pass NULL to all of above.
6850 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6852 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6853 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6854 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6855 POP_FRAME): Remove defines.
6856 (i386_push_arguments, i386_store_struct_return,
6857 i386_extract_return_value, i386_store_return_value,
6858 i386_extract_struct_value_address, i386_push_dummy_frame,
6859 i386_pop_frame): Renove prototypes.
6860 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6861 macros mentioned above.
6863 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6865 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6866 add_set_boolean_cmd.
6867 (add_setshow_cmd): New function.
6868 * command.h (add_setshow_boolean_cmd): Replace
6869 add_set_boolean_cmd.
6870 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6871 and ``set rdiromatzero''.
6872 * maint.c (_initialize_maint_cmds): Update commented out code.
6873 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6874 * target.c (initialize_targets): Update `set
6875 trust-readonly-sections'.
6876 * remote.c (_initialize_remote): Update `set remotebreak'.
6878 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6880 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6881 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6882 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6883 fit into multi-arch framework.
6884 (i386_breakpoint_from_pc): New function.
6885 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6888 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6889 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6890 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6891 (i386_frameless_function_invocation, i386_frame_num_args,
6892 i386_frame_init_saved_regs): Remove prototypes.
6893 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6894 macros mentioned above.
6896 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6898 * cli/cli-decode.c (set_cmd_cfunc): Update.
6899 (set_cmd_sfunc): Update.
6900 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6901 (set_cmd_sfunc, set_cmd_cfunc): Update.
6902 * cli/cli-decode.h: Update.
6904 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6906 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6907 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6909 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6911 * defs.h (auto_boolean): Declare enum.
6912 * command.h (cmd_auto_boolean): Delete enum.
6913 * mips-tdep.c (mask_address_var): Update.
6914 (mips_mask_address_p): Update.
6915 (show_mask_address): Update.
6916 * remote.c (struct packet_config): Update.
6917 (update_packet_config): Update.
6918 (show_packet_config_cmd): Update.
6919 (packet_ok): Update.
6920 (add_packet_config_cmd): Update.
6921 (_initialize_remote):
6922 * command.h: Update.
6923 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6924 (do_setshow_command): Update.
6925 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6926 * cli/cli-decode.h: Update.
6928 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6930 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6931 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6932 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6933 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6934 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6935 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6937 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6938 list of DJGPP COFF targets.
6940 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6941 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6942 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6943 (FP0_REGNUM): Remove define.
6944 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6945 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6946 (i386_register_virtual_size): Remove protoype.
6947 * i386-tdep.c (i386_register_virtual_size): Removed.
6948 (i386_extract_return_value, i386_store_return_value): Use
6949 FP0_REGNUM instead of NUM_FREGS to determine whether the
6950 floating-point registers are available.
6951 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6952 Adjust for removal of macros mentioned above.
6954 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6956 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6958 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6960 (supply_gregset, fill_gregset): Remove use of register keyword and
6961 remove declaration for regmap. Use I386_NUM_GREGS instead of
6962 NUM_REGS and NUM_FREGS.
6963 (FPREGSET_FSAVE_OFFSET): Remove.
6964 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6965 NUM_FREGS to determine whether the floating-point registers are
6968 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6969 gnu_store_registers): Replace usage of NUM_GREGS with
6972 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6973 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6974 usage of NUM_GREGS with I386_NUM_GREGS.
6976 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6978 * i386bsd-nat.c: Include "i386-tdep.h".
6979 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6982 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6983 and associated comment. They no longer make any sense, since we
6984 don't use this file anymore on Linux.
6986 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6987 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6988 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6989 elements in these arrays.
6990 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6993 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6995 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6996 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6998 2002-06-14 Andrew Cagney <cagney@redhat.com>
7000 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7001 EXTRACT_RETURN_VALUE.
7002 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7003 EXTRACT_STRUCT_VALUE_ADDRESS.
7004 * gdbarch.h, gdbarch.c: Regenerate.
7006 * values.c (value_being_returned): Handle
7007 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7008 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7010 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7011 * arm-tdep.c (arm_gdbarch_init): Update.
7012 * avr-tdep.c (avr_gdbarch_init): Update.
7013 * cris-tdep.c (cris_gdbarch_init): Update.
7014 * d10v-tdep.c (d10v_gdbarch_init): Update.
7015 * ia64-tdep.c (ia64_gdbarch_init): Update.
7016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7017 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7018 * s390-tdep.c (s390_gdbarch_init): Update.
7019 * sh-tdep.c (sh_gdbarch_init): Update.
7020 * s390-tdep.c (s390_gdbarch_init): Update.
7021 * sparc-tdep.c (sparc_gdbarch_init): Update.
7022 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7023 * v850-tdep.c (v850_gdbarch_init): Update.
7024 * vax-tdep.c (vax_gdbarch_init): Update.
7025 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7026 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7028 * config/arc/tm-arc.h: Update.
7029 * config/d30v/tm-d30v.h: Update.
7030 * config/fr30/tm-fr30.h: Update.
7031 * config/h8300/tm-h8300.h: Update.
7032 * config/h8500/tm-h8500.h: Update.
7033 * config/i386/tm-i386.h: Update.
7034 * config/i386/tm-ptx.h: Update.
7035 * config/i386/tm-symmetry.h: Update.
7036 * config/i960/tm-i960.h: Update.
7037 * config/m32r/tm-m32r.h: Update.
7038 * config/m68k/tm-delta68.h: Update.
7039 * config/m68k/tm-linux.h: Update.
7040 * config/m68k/tm-m68k.h: Update.
7041 * config/m88k/tm-m88k.h: Update.
7042 * config/mcore/tm-mcore.h: Update.
7043 * config/mips/tm-mips.h: Update.
7044 * config/mn10200/tm-mn10200.h: Update.
7045 * config/pa/tm-hppa.h: Update.
7046 * config/pa/tm-hppa64.h: Update.
7047 * config/sparc/tm-sp64.h: Update.
7048 * config/sparc/tm-sparc.h: Update.
7049 * config/sparc/tm-sparclet.h: Update.
7050 * config/z8k/tm-z8k.h: Update.
7052 2002-06-14 Andrew Cagney <cagney@redhat.com>
7054 * Makefile.in (i386_linux_tdep_h): Define.
7055 (i386_tdep_h, i387_tdep_h): Define.
7056 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7057 $(i386_tdep_h) and $(i387_tdep_h).
7058 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7060 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7062 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7063 Already covered by the default.
7065 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7066 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7067 (i386_gdbarch_init): Initialize long_double_format and long_double
7070 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7071 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7073 * config/i386/i386sol2.mh: ... here.
7074 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7075 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7076 (SIGCONTEXT_PC_OFFSET): Remove define.
7077 (IN_SIGTRAMP): Remove define.
7078 * i386-sol2-tdep.c: New file.
7080 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7081 * config/i386/tm-i386nw.h: Removed.
7083 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7084 USE_STRUCT_CONVENTION): Remove defines.
7085 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7086 (get_longjmp_target): Remove prototype.
7087 (IN_SIGTRAMP): Remove define.
7088 (i386bsd_in_sigtramp): Remove prototype.
7089 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7090 function. Update comment accordingly
7091 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7092 (FRAME_SAVED_PC): Remove define.
7093 (i386bsd_frame_saved_pc): Remove prototype.
7094 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7095 GET_LONGJMP_TARGET): Remove defines.
7096 (get_longjmp_target): Remove prototype.
7097 (IN_SIGTRAMP): Remove define.
7098 (i386bsd_in_sigtramp): Remove prototype.
7099 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7100 function. Update comment accordingly
7101 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7102 (FRAME_SAVED_PC): Remove define.
7103 (i386bsd_frame_saved_pc): Remove prototype.
7104 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7106 (USE_STRUCT_CONVENTION): Remove prototype.
7107 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7109 (_initialize_i386bsd_nat): Revise logic to determine some
7110 constants at compile time when compiling a native GDB. Warn if
7111 things don't match up with what we expect.
7112 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7114 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7115 to use date stored in `struct gdbarch_tdep'.
7116 (i386bsd_sigcontext_offset): Remove varaible.
7117 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7118 stored in `struct gdbarch_tdep'.
7119 (i386bsd_frame_saved_pc): Make static.
7120 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7121 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7122 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7123 i386fbsd4_sc_pc_offset): New variables.
7124 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7125 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7127 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7129 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7130 Modify the value of i386fbsd_sigtramp_start and
7131 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7132 i386fbsd_sigtramp_end.
7133 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7136 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7137 define to i386-linux-tdep.h.
7138 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7139 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7141 (i386_linux_register_name, i386_linux_register_byte,
7142 i386_linux_register_raw_size): Remove prototypes.
7143 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7144 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7145 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7146 TARGET_WRITE_PC): Remove defines.
7147 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7148 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7149 i386_linux_write_pc): Remove prototypes.
7150 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7151 (get_longjmp_target): Remove prototype.
7152 * i386-linux-tdep.h: New file.
7153 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7154 * i386-linux-tdep.c: Include "i386-tdep.h" and
7155 "i386-linux-tdep.h".
7156 (i386_linux_register_name, i386_linux_register_byte,
7157 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7158 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7160 (i386_linux_init_abi): New function.
7161 (_initialize_i386_linux_tdep): New function.
7163 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7164 (i386_saved_pc_after_call): Remove prototype.
7165 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7166 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7167 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7168 (i386_register_name, i386_stab_reg_to_regnum,
7169 i386_dwarf_reg_to_regnum): Remove prototypes.
7170 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7171 SIZEOF_SSE_REGS): Remove defines.
7172 (REGISTER_BYTES): Remove define.
7173 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7174 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7175 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7176 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7177 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7178 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7179 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7180 (get_longjmp_target): Remove prototype.
7181 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7182 (sigtramp_saved_pc): Remove define.
7183 (i386v4_sigtramp_saved_pc): Remove prototype.
7184 * config/i386/tm-go32.h (FRAME_CHAIN,
7185 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7186 (i386go32_frame_saved_pc): Remove prototype.
7187 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7188 (get_longjmp_target): Remove prototype.
7189 * i386-tdep.h: Include "osabi.h".
7190 (enum i386_abi): Removed.
7191 (enum struct_return): New enum.
7192 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7193 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7194 sc_pc_offset members.
7195 (i386_gdbarch_register_os_abi): Remove prototype.
7196 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7197 I386_SSE_NUM_REGS): New defines.
7198 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7199 I386_SSE_SIZEOF_REGS): New defines.
7200 (i386_register_name, i386_register_byte, i386_register_raw_size):
7202 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7203 (i386bsd_sigtramp_saved_pc): New prototype.
7204 * i386-tdep.c: Don't include "elf-bfd.h".
7205 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7206 i386_frame_chain, i386_saved_pc_after_call): Make static.
7207 (i386_frame_saved_pc): Rewrite to call architecture dependent
7208 function to deal with signal handlers. Make static.
7209 (i386go32_frame_saved_pc): Removed.
7210 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7212 (i386_get_longjmp_target): New function.
7213 (default_struct_convention, pcc_struct_convention,
7214 reg_struct_convention, valid_conventions, struct_convention): New
7216 (i386_use_struct_convention): New function.
7217 (i386v4_sigtramp_saved_pc): Renamed to
7218 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7219 (i386_pc_in_sigtramp): New function.
7220 (i386_abi_names): Removed.
7221 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7222 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7224 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7225 i386_gdbarch_register_os_abi): Removed.
7226 (struct i386_abi_handler): Removed.
7227 (i386_abi_handler_list): Removed.
7228 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7230 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7231 i386_nw_init_abi): New functions.
7232 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7233 Use set_gdbarch_xxx() calls instead of relying on macros for a
7235 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7236 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7237 Register the various architecture variants defined in this file.
7239 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7241 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7242 (struct main_type): Remove arg_types member. Update comments for
7244 (TYPE_ARG_TYPES): Remove.
7245 (TYPE_FN_FIELD_ARGS): Update.
7246 (smash_to_method_type): Update prototype.
7248 * c-typeprint.c (cp_type_print_method_args): Take method type
7249 instead of argument list. Use new argument layout. Simplify.
7250 (c_type_print_args): Use new argument layout. Simplify.
7251 (c_type_print_base): Update call to cp_type_print_method_args.
7252 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7253 argument; use die->type instead. Update call to
7254 smash_to_method_type.
7255 (read_structure_scope): Update call to dwarf2_add_member_fn.
7256 * gdbtypes.c (allocate_stub_method): Update comment.
7257 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7258 Use new argument layout.
7259 (check_stub_method): Use new argument layout. Don't count
7260 void as an argument.
7261 (print_arg_types): Update comments. Use new argument layout.
7262 (recursive_dump_type): Don't print arg_types member.
7263 * hpread.c (hpread_read_struct_type): Use new argument layout.
7264 (fixup_class_method_type): Likewise.
7265 (hpread_type_lookup): Likewise.
7266 * stabsread.c (read_type): Update calls to read_args and
7267 smash_to_method_type.
7268 (read_args): Use new argument layout. Simplify.
7269 * valops.c (typecmp): Use new argument layout. Update parameters
7270 and comments. Simplify.
7271 (hand_function_call): Use new argument layout.
7272 (search_struct_method): Update call to typecmp.
7273 (find_overload_match): Use new argument layout.
7275 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7277 * NEWS: Mention multithreaded debug support for gdbserver.
7279 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7281 * MAINTAINERS: Mention NEWS.
7283 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7285 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7286 (struct mips_objfile_private, compare_pdr_entries): New.
7287 (non_heuristic_proc_desc): Read the ".pdr" section if it
7290 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7292 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7293 (arm_debug): New static variable.
7294 (_initialize_arm_tdep): Add ``set debug arm'' command.
7296 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7298 * Makefile.in (sim_arm_h): Define.
7299 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7300 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7301 (arm_register_sim_regno): New function, map an internal REGNUM
7302 onto a simulator register number.
7303 (arm_gdbarch_init): Set register_sim_regno.
7305 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7307 * MAINTAINERS: Add self.
7309 2002-06-11 Jim Blandy <jimb@redhat.com>
7311 * source.c (source_info): Mention whether the symtab has
7312 information about preprocessor macros.
7314 Call the command `info macro', not `show macro'.
7315 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7317 (_initialize_macrocmd): Register `info_macro_command' in
7318 `infolist', not `showlist'.
7320 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7322 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7323 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7324 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7325 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7326 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7328 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7329 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7330 (_initialize_mips_tdep): Remove dead code.
7331 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7332 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7333 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7334 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7335 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7336 MIPS_LAST_FP_ARG_REGNUM): Remove.
7338 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7340 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7341 (unwind_tmp_obstack_free, parse_frame_info)
7342 (update_context, cfi_read_fp, cfi_write_fp)
7343 (cfi_frame_chain, cfi_init_extra_frame_info)
7344 (cfi_virtual_frame_pointer): Use the above function.
7345 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7347 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7349 * v850-tdep.c (v850_type_is_scalar): New function.
7350 (v850_use_struct_convention): Match current gcc implementation
7351 as close as possible.
7352 (v850_push_arguments): Fix stack_offset handling. Don't write
7353 struct_addr into register. This is done by v850_store_struct_return.
7354 (v850_extract_return_value): Care for structs.
7355 (v850_store_return_value): Ditto.
7356 (v850_store_struct_return): Actually write address.
7358 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7360 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7361 without debug information too.
7363 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7365 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7366 Make multi-arch pure.
7367 * gdbarch.h, gdbarch.c: Re-generate.
7368 * arm-tdep.c (arm_print_float_info): Update.
7369 * arch-utils.h (default_print_float_info): Update.
7370 * arch-utils.c (default_print_float_info): Update.
7371 * infcmd.c (float_info): Update call.
7373 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7375 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7376 the front of the initialize list.
7378 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7380 * infrun.c (struct inferior_status): Replace fields
7381 selected_frame_address and selected_level with field
7383 (save_inferior_status): Update. Use get_frame_id.
7384 (struct restore_selected_frame_args): Delete.
7385 (restore_selected_frame): Update. Use frame_find_by_id.
7386 (restore_inferior_status): Update.
7388 * breakpoint.h (struct breakpoint): Change type of
7389 watchpoint_frame to frame_id.
7390 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7391 call to get_current_frame.
7392 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7394 (watchpoint_check): Use frame_find_by_id.
7396 * frame.h (record_selected_frame): Delete declaration.
7397 * stack.c (record_selected_frame): Delete function.
7399 * frame.h (struct frame_id): Define.
7400 (get_frame_id): Declare.
7401 (frame_find_by_id): Declare.
7402 * frame.c (frame_find_by_id): New function.
7403 (get_frame_id): New function.
7405 2002-06-10 Andrey Volkov <avolkov@transas.com>
7407 * ser-e7kpc.c: Fix duplicated define and call of
7408 _initialize_ser_e7000pc
7410 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7412 * signals/signals.c (target_signal_from_host): Fix #ifdef
7414 (do_target_signal_to_host): Likewise.
7416 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7418 * mips-tdep.c (mips_find_abi_section): New function.
7419 (mips_gdbarch_init): Call it.
7421 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7423 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7424 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7425 after Andrew's 2002-06-08 gdbarch change.
7427 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7429 * i386-linux-nat.c (suppy_gregset): Don't supply
7430 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7432 (fill_gregset): Don't fetch it under the same circumstances.
7434 2002-06-09 Andrew Cagney <cagney@redhat.com>
7436 * Makefile.in (callback_h): Define.
7437 (remote_sim_h): Update path to remote-sim.h.
7438 (remote-rdp.o): Add $(callback_h).
7439 (remote-sim.o): Use $(callback_h).
7440 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7441 * remote-rdp.c: Include "gdb/callback.h".
7443 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7445 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7446 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7448 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7450 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7451 * rdi-share/serpardr.c: Ditto.
7452 * rdi-share/unixcomm.c: Ditto.
7453 * rdi-share/serdrv.c: Ditto.
7454 * rdi-share/hostchan.h: Ditto.
7455 * rdi-share/hostchan.c: Ditto.
7456 * rdi-share/host.h: Ditto.
7457 * rdi-share/devsw.c: Ditto.
7459 * objfiles.h: Change type of obj_private to void pointer.
7460 * pa64solib.c: Update copyright. Don't include "assert.h", use
7461 strcmp instead of STREQ, use LONGEST, do not use PTR
7462 * somsolib.c: Ditto.
7464 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7465 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7466 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7468 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7470 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7471 (default_get_saved_register): Delete function.
7472 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7473 generic_unwind_get_saved_register.
7474 * gdbarch.h, gdbarch.c: Re-generate.
7476 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7478 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7479 generic_func_frame_chain_valid.
7480 * gdbarch.h, gdbarch.c: Re-generate.
7481 * blockframe.c (generic_func_frame_chain_valid): Only check
7482 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7483 passing FP to PC_IN_CALL_DUMMY.
7486 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7488 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7489 (register_gdbarch_data): Initialize init_p.
7490 (gdbarch_data): Initialize data pointer using the init function.
7491 (init_gdbarch_data): Delete function.
7492 (gdbarch_update_p): Update.
7493 (initialize_non_multiarch): Update.
7494 (struct gdbarch): Add field initialized_p.
7495 * gdbarch.h, gdbarch.c: Re-generate.
7497 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7499 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7500 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7501 better do the things actually here.
7502 * x86-64-tdep.c (x86_64_register_name2nr): New.
7503 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7504 (x86_64_gdbarch_init): Respect the above change.
7505 * x86-64-tdep.h (x86_64_register_name2nr)
7506 (x86_64_register_nr2name): Add prototypes.
7507 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7509 2002-06-06 Michael Snyder <msnyder@redhat.com>
7511 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7512 Delete extra braces and re-indent.
7513 (d10v_store_return_value): Char return values
7514 must be shifted over by one byte in R0.
7515 (d10v_extract_return_value): Delete extra braces, re-indent.
7517 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7519 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7520 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7521 (d10v_integer_to_address): Rewrite.
7522 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7523 the d10v specific functions which take care of converting to the
7526 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7528 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7529 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7531 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7533 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7535 * config/tm-linux.h: Ditto.
7536 * config/alpha/tm-alphalinux.h: Ditto.
7537 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7538 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7539 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7540 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7541 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7542 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7543 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7544 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7545 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7546 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7547 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7548 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7549 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7550 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7551 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7552 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7553 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7554 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7555 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7556 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7557 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7558 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7559 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7560 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7561 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7562 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7563 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7564 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7565 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7566 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7567 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7568 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7569 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7570 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7571 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7572 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7573 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7575 2002-05-04 Aidan Skinner <aidan@velvet.net>
7577 * ada-exp.tab.c: New file
7578 * ada-exp.y: New file
7579 * ada-lang.c: New file
7580 * ada-lang.h: New file
7581 * ada-lex.c: New file
7582 * ada-lex.l: New file
7583 * ada-tasks.c: New file
7584 * ada-typeprint.c: New file
7585 * ada-valprint.c: New file
7587 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7589 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7590 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7592 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7594 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7595 insetead of ppc-linux-tdep.o.
7596 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7597 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7599 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7601 2002-05-07 Christian Groessler <chris@groessler.org>
7602 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7603 bit register contents for little endian hosts.
7605 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7607 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7610 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7612 * gdbarch.h: Regenerate.
7614 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7616 * MAINTAINERS: Add everyone to write-after-approval list.
7618 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7620 * stack.c (frame_info): Use frame_register_unwind instead of
7621 saved_regs. Mention when the SP is on the stack or in a register.
7623 * frame.h (frame_register_unwind_ftype): Define. Document.
7624 (struct frame_info): Add field register_unwind and
7625 register_unwind_cache.
7626 (frame_register_unwind): Declare.
7627 (generic_unwind_get_saved_register): Declare.
7629 * frame.c (frame_register_unwind): New function.
7630 (generic_unwind_get_saved_register): New function.
7632 * blockframe.c (generic_call_dummy_register_unwind): New function.
7633 (frame_saved_regs_register_unwind): New function.
7634 (set_unwind_by_pc): New function.
7635 (create_new_frame): New function.
7636 (get_prev_frame): New function.
7638 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7640 * a29k-share/: Delete directory.
7641 * remote-vx29k.c: Delete file.
7643 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7645 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7646 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7648 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7650 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7651 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7654 (sparcnbsd-tdep.o): New dependency lists.
7655 * NEWS: Note new UltraSPARC NetBSD native configuration.
7656 * configure.host (sparc64-*-netbsd*): New host.
7657 * configure.tgt (sparc-*-netbsdelf*)
7658 (sparc-*-netbsd*): Set gdb_target to nbsd.
7659 (sparc64-*-netbsd*): New target.
7660 * sparc64nbsd-nat.c: New file.
7661 * sparcnbsd-nat.c: New file.
7662 * sparcnbsd-tdep.c: New file.
7663 * sparcnbsd-tdep.h: New file.
7664 * config/sparc/nbsd.mt: New file.
7665 * config/sparc/nbsd64.mh: New file.
7666 * config/sparc/nbsd64.mt: New file.
7667 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7668 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7670 * config/sparc/nbsdaout.mt: Remove.
7671 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7672 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7674 * config/sparc/nbsdelf.mt: Remove.
7675 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7676 sparc-nat.c compatiblity defines.
7677 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7678 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7679 * config/sparc/tm-nbsd64.h: New file.
7680 * config/sparc/tm-nbsdaout.h: Remove.
7681 * config/sparc/xm-nbsd.h: Remove.
7683 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7685 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7686 * sparc-tdep.c: Include osabi.h.
7687 (gdbarch_tdep): Add osabi member.
7688 (_initialize_sparc_tdep): Use gdbarch_register.
7689 (sparc_gdbarch_init): Use generic OS ABI framework.
7690 (sparc_dump_tdep): New function.
7692 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7694 * corefile.c (do_captured_read_memory_integer): Return non-zero
7696 (safe_read_memory_integer): Copy result of memory read when
7697 status is non-zero. Also, add comments.
7699 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7701 * Makefile.in (ppc_tdep_h): Define.
7704 (rs6000-tdep.o): Use $(ppc_tdep_h).
7707 (ppcnbsd-tdep.o): New dependency lists.
7708 * ppc-tdep.h: Use generic OS ABI framework.
7709 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7710 (ppc_linux_init_abi): New functions.
7711 (ppc_sysv_abi_broken_use_struct_convention)
7712 (ppc_sysv_abi_use_struct_convention)
7713 (ppc_sysv_abi_push_arguments): Move to...
7714 * ppc-sysv-tdep.c: ...here.
7715 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7716 * rs6000-tdep.c (process_note_abi_tag_sections)
7717 (get_elfosabi): Remove.
7718 (rs6000_gdbarch_init): Use generic OS ABI framework.
7719 (rs6000_dump_tdep): New function.
7720 (_initialize_rs6000_tdep): Use gdbarch_register.
7721 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7722 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7723 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7724 of ppc-linux-tdep.o.
7725 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7726 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7727 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7728 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7729 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7730 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7732 2002-05-29 Jim Blandy <jimb@redhat.com>
7734 * macroscope.c (default_macro_scope): Put `void' in empty argument
7737 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7739 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7740 * arch-utils.c: Include "sim-regno.h".
7741 * gdbarch.sh: Don't include "sim-regno.h".
7742 * gdbarch.h, gdbarch.c: Regenerate.
7743 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7745 * arch-utils.h (legacy_register_sim_regno): To here.
7746 * remote-sim.c (legacy_register_sim_regno): Move function from
7748 * arch-utils.c (legacy_register_sim_regno): To here.
7750 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7752 * sim-regno.h: New file.
7753 * Makefile.in (sim_regno_h): Define.
7754 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7755 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7756 (legacy_register_sim_regno): New function.
7757 (one2one_register_sim_regno): New function.
7758 (gdbsim_fetch_register): Rewrite.
7759 (gdbsim_store_register): Only store a register when
7760 REGISTER_SIM_REGNO is valid.
7761 * d10v-tdep.c: Include "sim-regno.h".
7762 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7763 (d10v_ts3_register_sim_regno): Ditto.
7764 * gdbarch.sh: Include "sim-regno.h".
7765 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7766 * gdbarch.h, gdbarch.c: Regenerate.
7767 * arch-utils.h (default_register_sim_regno): Delete declaration.
7768 * arch-utils.c (default_register_sim_regno): Delete function.
7770 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7772 * ppcnbsd-nat.c: Rewrite.
7773 * ppcnbsd-tdep.c: New file.
7774 * ppcnbsd-tdep.h: New file.
7775 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7776 solib.o, and solib-svr4.o.
7777 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7778 nbsd-tdep.o, and corelow.o.
7780 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7782 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7783 `tr' and `sed'. Mention that `broken' targets are not expected to
7786 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7788 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7789 Let PC point right after the prologue before looking up symbols.
7791 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7793 * i386-tdep.c (i386_register_virtual_type): Return
7794 builtin_type_vec128i for SSE registers.
7796 * gdbtypes.h (builtin_type_vec128i): Declare.
7798 * gdbtypes.c (build_builtin_type_vec128i): New function.
7799 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7800 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7801 (build_gdbtypes): Initialize new builtin vector types.
7802 (_initialize_gdbtypes): Register new vector types with gdbarch.
7804 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7806 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7807 since it has been multi-arch'd.
7808 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7809 Move Alpha and VAX multi-arch news entries to same section
7810 as other multi-arch news.
7812 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7814 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7815 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7816 static. Rename some register numbers to put them in ns32k-tdep
7818 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7819 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7821 (_initialize_ns32k_tdep): Use gdbarch_register.
7822 * ns32k-tdep.h: New file.
7823 * ns32knbsd-tdep.c: New file.
7824 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7825 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7826 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7827 REGISTER_BYTES, REGISTER_BYTE): Remove.
7828 * config/ns32k/tm-ns32k.h: New file.
7829 * config/ns32k/tm-umax.h: Remove.
7831 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7833 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7834 ns32k_store_struct_return, ns32k_extract_return_value,
7835 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7837 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7838 ns32k_saved_pc_after_call.
7839 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7840 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7841 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7842 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7843 ns32k_extract_struct_value_address.
7845 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7847 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7848 ns32k_fix_call_dummy): New.
7849 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7850 ns32k_call_dummy_words.
7851 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7852 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7853 CALL_DUMMY_NARGS): Remove.
7854 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7856 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7858 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7859 ns32k_frame_saved_pc, ns32k_frame_args_address,
7860 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7861 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7862 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7863 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7864 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7865 (BREAKPOINT): Remove..
7866 (FRAME_CHAIN): Define as ns32k_frame_chain.
7867 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7868 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7869 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7870 (FRAME_FIND_SAVED_REGS): Remove.
7871 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7872 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7873 (POP_FRAME): Define as ns32k_pop_frame.
7875 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7877 * ns32k-tdep.c (ns32k_register_byte_32082,
7878 ns32k_register_byte_32382, ns32k_register_raw_size,
7879 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7881 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7882 ns32k_register_byte_32382.
7883 * config/ns32k/tm-umax.h: Update copyright years.
7884 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7885 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7886 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7887 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7888 (ns32k_get_enter_addr): Fix prototype.
7890 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7892 * ns32k-tdep.c: Update copyright years.
7893 (ns32k_register_name_32082): New function.
7894 (ns32k_register_name_32382): Ditto.
7895 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7896 (REGISTER_NAME): Define as ns32k_register_name_32382.
7897 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7898 (REGISTER_NAME): Define as ns32k_register_name_32082.
7900 2002-05-24 Jim Blandy <jimb@redhat.com>
7902 * dwarf2read.c (free_line_header): Use xfree, not free.
7904 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7906 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7907 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7909 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7911 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7913 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7915 From Ross Alexander at NEC Europe:
7916 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7918 2002-05-23 Michael Snyder <msnyder@redhat.com>
7920 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7921 for input, rather than parse_and_eval_address.
7923 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7925 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7926 * Makefile.in (sim_d10v_h): Update definition.
7928 2002-05-24 Andrew Cagney <cagney@redhat.com>
7930 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7931 change `2002-05-22 Michael Snyder' below.
7932 (d10v_push_arguments): Ditto.
7933 (d10v_extract_return_value): Ditto.
7935 2002-05-23 Jim Blandy <jimb@redhat.com>
7937 * macrotab.c (check_for_redefinition): Don't complain if the new
7938 definition is the same as the previous one. Take more arguments
7939 to allow the comparison.
7940 (macro_define_object, macro_define_function): Pass more arguments
7941 to check_for_redefinition.
7943 2002-05-22 Michael Snyder <msnyder@redhat.com>
7945 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7946 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7947 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7948 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7949 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7950 Add a temp variable to save a call (and a memory read).
7951 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7952 if possible (so that PC_IN_CALL_DUMMY will work).
7954 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7956 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7958 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7960 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7962 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7963 (dwarf2_build_frame_info): Add offset to fde->initial_location
7964 so that frames of shared libraries are mapped correctly.
7965 (execute_stack_op): Change type of 'result' from ULONGEST to
7968 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7970 * config/alpha/tm-nbsd.h: Include solib.h.
7972 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7974 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7975 assumptions about the host's byte order.
7977 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7979 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7981 * alphanbsd-tdep.c: Include solib-svr4.h.
7982 * shnbsd-tdep.c: Ditto.
7984 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7986 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7987 nbsd-tdep.h to dependency list.
7988 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7989 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7990 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7991 nbsdaout.mh and nbsdelf.mh consistently.
7992 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7993 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7994 nbsdaout.mt and nbsdelf.mh consistently.
7995 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7996 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7997 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7998 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7999 a.out shared library stuff from here...
8000 * config/nm-nbsdaout.h: ...to here.
8001 * config/tm-nbsd.h: Remove.
8002 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8003 * config/arm/nbsd.mh: Remove.
8004 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8006 * config/arm/nbsdaout.mh: New file.
8007 * config/arm/nbsdelf.mh: New file.
8008 * config/arm/nm-nbsdaout.h: New file.
8009 * config/i386/nbsd.mh: Remove.
8010 * config/i386/nbsd.mt: Remove.
8011 * config/i386/nbsdaout.mh: New file.
8012 * config/i386/nbsdaout.mt: New file.
8013 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8014 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8015 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8016 i386_register_u_addr): Remove.
8017 * config/i386/nm-nbsdaout.h: New file.
8018 * config/i386/nm-nbsdelf.h: Remove.
8019 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8020 (USE_STRUCT_CONVENTION): Remove.
8021 * config/i386/tm-nbsdaout.h: New file.
8022 * config/i386/tm-nbsdelf.h: Remove.
8023 * config/m68k/nbsd.mh: Remove.
8024 * config/m68k/nbsd.mt: Remove.
8025 * config/m68k/nbsdaout.mh: New file.
8026 * config/m68k/nbsdaout.mt: New file.
8027 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8028 * config/m68k/nm-nbsdaout.h: New file.
8029 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8030 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8031 * config/ns32k/nbsd.mh: Remove.
8032 * config/ns32k/nbsd.mt: Remove.
8033 * config/ns32k/nbsdaout.mh: New file.
8034 * config/ns32k/nbsdaout.mt: New file.
8035 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8036 * config/ns32k/nm-nbsdaout.h: New file.
8037 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8038 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8039 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8040 (SVR4_SHARED_LIBS): Remove.
8041 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8042 * config/sparc/nbsd.mh: Remove.
8043 * config/sparc/nbsd.mt: Remove.
8044 * config/sparc/nbsdaout.mh: New file.
8045 * config/sparc/nbsdaout.mt: New file.
8046 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8047 * config/sparc/nbsdelf.mt: New file.
8048 * config/sparc/nm-nbsdaout.h: New file.
8049 * config/sparc/nm-nbsdelf.h: Remove.
8050 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8051 * config/sparc/tm-nbsdaout.h: New file.
8053 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8055 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8057 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8059 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8061 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8063 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8065 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8067 * NEWS: Note new MIPS NetBSD native configuration.
8068 * configure.host (mips*-*-netbsd*): New host.
8069 * configure.tgt (mips*-*-netbsd*): New target.
8070 * mipsnbsd-nat.c: New file.
8071 * mipsnbsd-tdep.c: New file.
8072 * mipsnbsd-tdep.h: New file.
8073 * config/mips/nbsd.mh: New file.
8074 * config/mips/nbsd.mt: New file.
8075 * config/mips/nm-nbsd.h: New file.
8076 * config/mips/tm-nbsd.h: New file.
8078 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8080 * Makefile.in (SFILES): Add osabi.c.
8081 (COMMON_OBS): Add osabi.o.
8082 (osabi.o): New dependency list.
8083 * osabi.c: New file.
8084 * osabi.h: New file.
8085 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8087 * Makefile.in (alpha_tdep_h): Define and use instead of
8089 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8090 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8092 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8093 * alpha-tdep.h: Include osabi.h.
8094 (alpha_abi): Remove.
8095 (gdbarch_tdep): Use generic OS ABI framework.
8096 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8097 gdbarch_register_osabi.
8098 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8099 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8100 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8102 * Makefile.in (sh_tdep_h): Add osabi.h.
8103 * sh-tdep.h (sh_osabi): Remove.
8104 (gdbarch_tdep): Use generic OS ABI framework.
8105 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8106 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8107 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8108 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8110 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8111 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8112 gdbarch_register_osabi.
8113 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8114 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8115 (get_elfosabi): Rename to...
8116 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8117 ABI framework support routines.
8118 (arm_gdbarch_init): Use generic OS ABI framework.
8119 (arm_dump_tdep): Likewise.
8120 (_initialize_arm_tdep): Likewise.
8121 * arm-tdep.h: Include osabi.h.
8123 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8125 (arm_gdbarch_register_os_abi): Remove prototype.
8126 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8127 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8129 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8130 * mips-tdep.c: Include osabi.h.
8131 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8134 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8136 * h8300-tdep.c: Fix formatting.
8138 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8140 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8141 printing vector registers.
8143 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8145 From Fernando Nasser:
8146 * remote.c (remote_async_open_1): Re-throw the exception when the
8148 (remote_cisco_open): Ditto.
8149 (remote_open_1): Ditto.
8151 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8153 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8154 (remote_start_remote): Add uiout parameter. Pass through to
8155 remote_start_remote_dummy.
8156 (remote_open_1): Use catch_exception instead of catch_errors.
8157 (remote_async_open_1): Ditto.
8158 (remote_cisco_open): Ditto.
8160 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8162 * remote.c (remote_start_remote): Replace PTR with void pointer.
8163 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8166 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8168 * gdb_indent.sh: Allow the script to be run in the sim directory.
8170 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8172 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8173 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8175 * corelow.c (core_open): Only call set_gdbarch_from_file if
8178 2002-05-17 Andrey Volkov <avolkov@transas.com>
8180 * h8300-tdep.c: Add support of EXR register
8181 * config/h8300/tm-h8300.h: Ditto.
8183 2002-05-17 Andrey Volkov <avolkov@transas.com>
8185 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8187 2002-05-17 Andrey Volkov <avolkov@transas.com>
8189 * h8300-tdep.c: Change literal regnums to REGNO.
8191 2002-05-17 Jim Blandy <jimb@redhat.com>
8193 * NEWS: Note addition of macro support.
8195 Expand preprocessor macros in C expressions.
8196 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8197 (scan_macro_expansion, scanning_macro_expansion,
8198 finished_macro_expansion): New function declarations.
8199 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8200 variable declarations.
8201 * parser-defs.h (expression_context_pc): New declaration.
8202 * parse.c (expression_context_pc): New variable.
8203 (parse_exp_1): Set expression_context_pc, as well as
8204 expression_context_block.
8205 * c-exp.y (yylex): If we're not already reading the result of a
8206 macro expansion, try to macro-expand the next token. When we're
8207 done scanning a macro expansion, switch back to the mainline text.
8208 Commas and `if's in a macro's expansion don't terminate the input.
8209 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8210 (macro_original_text, macro_expanded_text,
8211 expression_macro_lookup_func, expression_macro_lookup_baton): New
8213 (scan_macro_expansion, scanning_macro_expansion,
8214 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8215 c_preprocess_and_parse): New functions.
8216 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8217 c_preprocess_and_parse, instead of c_parse.
8218 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8219 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8221 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8223 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8224 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8225 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8227 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8229 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8231 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8233 * Makefile.in (sh_tdep_h): Define and use.
8234 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8235 register enum): Move to...
8236 * * sh-tdep.h: ...here.
8237 * sh-tdep.c: Include sh-tdep.h.
8238 * sh3-rom.c: Likewise.
8239 * shnbsd-tdep.c: Likewise.
8241 2002-05-16 Michael Snyder <msnyder@redhat.com>
8243 * arm-tdep.c: Spelling fix in comment.
8245 2002-05-16 Jim Blandy <jimb@redhat.com>
8247 Add commands for manually expanding macros and showing their
8249 * macrocmd.c, macroscope.c, macroscope.h: New files.
8250 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8251 (macroscope_h): New variable.
8252 (HFILES_NO_SRCDIR): Add macroscope.h.
8253 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8254 (macroscope.o, macrocmd.o): New rules.
8256 Teach the Dwarf 2 reader to read macro information.
8257 * dwarf2read.c: #include "macrotab.h".
8258 (dwarf_macinfo_buffer): New variable.
8259 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8261 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8262 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8263 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8264 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8265 dwarf2_macro_spaces_in_definition): New complaints.
8266 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8267 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8268 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8269 the partial symbol table.
8270 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8271 from what's recorded in the partial symbol table.
8272 (read_file_scope): If the compilation unit has a
8273 `DW_AT_macro_info' attribute, read its macro information.
8274 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8276 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8279 * ser-tcp.c: Don't include <netinet/udp.h>.
8281 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8283 * MAINTAINERS: Update my email address.
8285 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8287 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8288 include file of the same name.
8290 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8292 * configure.tgt: Mark v850 as multi-arched.
8293 * config/v850/tm-v850.h: Remove file.
8294 * config/v850/v850.mt: Eliminate TM_FILE.
8296 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8298 * v850-tdep.c: Full multi-arch.
8299 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8300 Define GDB_MULTI_ARCH to 2.
8302 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8304 * p-exp.y (current_type): New static variable.
8305 Carries the type of the expression at the position that is parsed.
8306 (push_current_type, pop_current_type): Two new functions. Used
8307 to store/restore current_type in expression on specific tokens.
8308 (search_field): New static variable. Set to one after parsing a point
8309 as at that point only a FIELDNAME token should be searched.
8310 (FIELDNAME): New token. After a point only a token belonging to
8311 current_type type definition is allowed.
8312 (all over token rules): reset and change current_type according
8314 (exp '[' rule): insert implicit array index field if
8315 exp is a pascal string type.
8317 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8319 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8320 frame info. Use frame_info's saved_regs instead of matching member
8321 in extra_frame_info throughout.
8322 (v850_frame_init_saved_regs): New function.
8323 (v850_init_extra_frame_info): Move most functionality into
8324 v850_frame_init_saved_regs().
8325 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8326 (v850_frame_find_saved_regs): Remove declaration.
8327 (FRAME_FIND_SAVED_REGS): Remove definition.
8328 (v850_frame_init_saved_regs): Add declaration.
8329 (FRAME_INIT_SAVED_REGS): Add definition.
8331 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8333 * v850-tdep.c: Begin multi-arch'ing v850.
8334 (v850_target_architecture_hook): Remove function.
8335 (v850_gdbarch_init): New function. Add code previously in
8336 v850_target_architecture_hook().
8337 (_initialize_v850_tdep): Don't set target_architecture_hook.
8338 Call register_gdbarch_init() instead.
8340 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8342 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8343 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8344 (fixup_class_method_type): Likewise.
8346 2002-05-15 Jim Blandy <jimb@redhat.com>
8348 Add macro structures to GDB's symbol tables. Nobody puts anything
8350 * symtab.h (struct symtab): New member: `macro_table'.
8351 * buildsym.h (pending_macros): New global variable.
8352 * buildsym.c: #include "macrotab.h".
8353 (buildsym_init): Initialize `pending_macros'.
8354 (end_symtab): If we found macro information while reading a CU's
8355 debugging info, do build a symtab structure for it. Make the
8356 symtab point to the macro information, and clear the
8357 `pending_macros' pointer which held it while we were reading the
8359 (really_free_pendings): Free any pending macro table.
8360 * objfiles.h (struct objfile): New member: `macro_cache'.
8361 * objfiles.c (allocate_objfile): Set allocate and free functions
8362 for the macro cache's objstack.
8363 (free_objfile): Empty the macro cache's obstack.
8364 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8365 set new allocate and free functions for it.
8366 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8367 free functions for the macro cache's objstack. (Why is this
8368 function building its own objfile?)
8369 * symmisc.c (print_objfile_statistics): Print statistics on the
8371 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8373 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8375 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8376 (REGISTER_U_ADDR): Delete definition.
8377 (arm_register_u_addr): Delete declaration.
8379 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8381 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8382 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8384 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8386 * regcache.c (register_valid): Revise comments refering to "Not
8387 available" and "unavailable".
8388 * frame.c (frame_register_read): Ditto.
8389 * findvar.c (value_of_register): Ditto.
8391 2002-05-15 Andrew Cagney <cagney@redhat.com>
8393 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8394 (remote-sim.o): Update dependencies.
8395 (d10v-tdep.o): Specify dependencies.
8396 (sim_d10v_h): Define.
8398 2002-05-14 Jim Blandy <jimb@redhat.com>
8400 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8401 * macrotab.c (macro_lookup_inclusion, find_definition,
8402 new_macro_table): Same.
8404 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8405 not `! strcmp ()'. This is a dubious improvement.
8406 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8408 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8409 although it's not necessary, to avoid a warning.
8411 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8413 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8414 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8415 TYPE_INSTANCE_FLAGS.
8416 (struct main_type): New.
8417 (struct type): Move most members to struct main_type. Change
8418 cv_type and as_type to new type_chain member. Add instance_flags.
8419 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8420 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8421 (finish_cv_type): Remove prototype.
8422 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8424 (alloc_type_instance): New function.
8425 (smash_type): New function.
8426 (make_pointer_type, make_reference_type, make_function_type)
8427 (smash_to_member_type, smash_to_method_type): Call smash_type.
8428 (make_qualified_type): New function.
8429 (make_type_with_address_space): Call make_qualified_type.
8430 (make_cv_type): Likewise.
8431 (finish_cv_type): Remove unnecessary function.
8432 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8433 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8434 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8435 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8436 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8437 * hpread.c (hpread_read_struct_type): Likewise.
8438 * stabsread.c (read_struct_type): Likewise.
8440 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8442 * configure.tgt: Add a catch all sh* target, for cases like
8443 sh[2,3,4]-elf and sh-hms.
8445 2002-05-14 Keith Seitz <keiths@redhat.com>
8447 * event-loop.c (create_file_handler): Don't do anything but
8448 update data when we are given a fd which we are already
8451 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8453 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8454 (update_context): Use __func__ in warnings.
8456 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8458 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8459 and tcp_close to net_open and net_close.
8460 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8461 using UDP if requested. Don't try to disable Nagle on UDP
8463 * remote.c (remote_serial_open): New function. Warn about UDP.
8464 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8466 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8468 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8470 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8472 * configure.tgt: Remove sh-hms target.
8473 * MAINTAINERS: Don't list sh-hms as a separate target.
8475 2002-05-13 Jim Blandy <jimb@redhat.com>
8477 Add first preprocessor macro-expansion files.
8478 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8479 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8480 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8481 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8482 (COMMON_OBS): Add macrotab.o, macroexp.o.
8483 (macroexp.o, macrotab.o): New rules.
8485 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8487 * config/m88k/tm-m88k.h: Update copyright.
8488 (m88k_target_write_pc): Declare
8489 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8490 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8491 (SHIFT_INST_REGS): Update definition.
8492 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8493 using old definition of TARGET_WRITE_PC.
8494 * regcache.c (generic_target_write_pc): Delete code handling
8496 * gdbarch.sh (NNPC_REGNUM): Delete.
8497 * gdbarch.h, gdbarch.c: Regenerate.
8499 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8501 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8504 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8506 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8507 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8508 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8510 * c-typeprint.c (cp_type_print_method_args): Likewise.
8511 (c_type_print_args): Likewise.
8512 * d10v-tdep.c (d10v_push_arguments): Likewise.
8513 (d10v_extract_return_value): Likewise.
8514 * expprint.c (print_subexp): Likewise.
8515 * gdbtypes.c (lookup_primitive_typename): Likewise.
8516 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8517 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8518 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8519 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8520 (TYPE_VECTOR): Likewise.
8521 * hpread.c (hpread_read_struct_type)
8522 (fix_static_member_physnames, fixup_class_method_type)
8523 (hpread_type_lookup): Likewise.
8524 * mdebugread.c (parse_symbol, parse_type): Likewise.
8525 * p-lang.c (is_pascal_string_type): Likewise.
8526 * valops.c (hand_function_call): Likewise.
8527 * x86-64-tdep.c (classify_argument): Likewise.
8529 * hpread.c (hpread_read_function_type)
8530 (hpread_read_doc_function_type): Call replace_type.
8531 * dstread.c (create_new_type): Delete.
8532 (decode_dst_structure, process_dst_function): Call alloc_type.
8533 Use type access macros.
8535 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8537 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8538 the're not supported by the current architecture.
8539 (i387_fill_fxsave): Likewise.
8541 2002-05-12 Fred Fish <fnf@redhat.com>
8543 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8544 sect_index_xxx members to index the first slot in section_offsets
8545 if all of the section_offsets are zero.
8547 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8549 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8550 checked in with last change.
8552 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8554 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8555 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8558 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8560 * Makefile.in: Update dependencies.
8562 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8564 * language.c (local_hex_string_custom): Simplify. Do not depend
8565 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8567 * memattr.c (mem_info_command): Replace calls to
8568 longest_local_hex_string and longest_local_hex_string_custom.
8569 * buildsym.c (make_blockvector): Ditto.
8570 * solib.c (info_sharedlibrary_command): Ditto.
8571 * tracepoint.c (tracepoints_info): Ditto.
8572 * symtab.c (print_msymbol_info): Ditto.
8574 * language.c (local_hex_string): Delete.
8575 (local_hex_string_custom): Delete.
8576 (longest_local_hex_string): Rename to local_hex_string.
8577 (longest_local_hex_string_custom): Rename to
8578 local_hex_string_custom.
8579 * language.h (local_hex_string): Change parameter type to LONGEST.
8580 (local_hex_string_custom): Ditto.
8581 (longest_local_hex_string): Delete declaration.
8582 (longest_local_hex_string_custom): Ditto.
8584 * solib.c: Update copyright.
8585 * memattr.c: Update copyright.
8587 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8589 * arch-utils.h (legacy_register_to_value): Declare.
8590 (legacy_value_to_register): Declare.
8591 (legacy_convert_register_p): Declare.
8592 * arch-utils.c (legacy_register_to_value): New function.
8593 (legacy_value_to_register): New function.
8594 (legacy_convert_register_p): New function.
8596 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8597 (VALUE_TO_REGISTER): Define.
8598 (CONVERT_REGISTER_P): Define.
8599 * gdbarch.h, gdbarch.c: Regenerate.
8601 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8603 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8606 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8607 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8609 * Makefile.in: Update dependencies for valops.c.
8610 * valops.c: Include "gdb_assert.h".
8611 (typecmp): Skip THIS parameter to methods.
8612 (find_method_list): Remove static_memfuncp argument,
8613 update callers. Check for stub methods.
8614 (find_value_oload_method_list): Don't set *static_memfuncp.
8615 (find_overload_match): Don't check for stub methods. Assert
8616 that methods are not stubbed. Handle static methods.
8617 (value_find_oload_method_list): Remove static_memfuncp argument.
8618 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8619 to the argument list for static stub methods.
8620 * value.h (value_find_oload_method_list): Update prototype.
8622 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8624 * arch-utils.h (generic_register_size): Declare.
8625 (generic_register_raw_size, generic_register_virtual_size): Delete
8627 * arch-utils.c (generic_register_raw_size): Delete.
8628 (generic_register_size): New function.
8629 (generic_register_virtual_size): Delete.
8631 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8632 default generic_register_size.
8633 * gdbarch.h, gdbarch.c: Re-generate.
8635 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8636 register_virtual_size.
8637 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8638 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8640 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8642 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8643 * gdbarch.h, gdbarch.c: Regenerate.
8644 * gnu-v3-abi.c: Update copyright.
8645 (vtable_address_point_offset): Update.
8646 (gnuv3_rtti_type): Update.
8647 (gnuv3_baseclass_offset): Update.
8648 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8649 (init_fetch_link_map_offsets): Update.
8650 * remote.c (get_remote_state): Update.
8652 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8654 * TODO: Remove value_headof/value_from_vtable_info comment.
8655 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8656 * values.c (value_headof, value_from_vtable_info): Delete.
8657 * value.h (value_from_vtable_info): Delete prototype.
8659 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8661 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8662 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8664 (gdb_assert_h): Define.
8665 (gdb_wait_h): Define.
8666 (gdb_regex_h): Define.
8668 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8670 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8671 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8673 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8675 * nbsd-tdep.c: Fix comment.
8677 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8679 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8680 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8681 (nbsd-tdep.o): New dependency list.
8682 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8684 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8685 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8686 * nbsd-tdep.c: New file.
8687 * nbsd-tdep.h: New file.
8688 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8690 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8691 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8692 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8693 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8695 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8697 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8698 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8699 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8700 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8701 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8702 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8704 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8706 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8707 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8708 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8709 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8710 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8711 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8712 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8714 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8716 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8717 fetch_elfcore_registers to...
8718 * i386nbsd-tdep.c: ...here.
8719 (i386nbsd_use_struct_convention): Rename to...
8720 (i386nbsd_aout_use_struct_convention): ...this.
8721 (i386nbsd_supply_reg): New function.
8722 (i386nbsd_fill_reg): New function.
8723 (fetch_core_registers): Use i386nbsd_supply_reg.
8724 (fetch_elfcore_registers): Likewise.
8725 (_initialize_i386nbsd_tdep): New function.
8726 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8727 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8728 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8729 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8730 (i386nbsd_aout_use_struct_convention): ...this.
8732 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8734 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8735 (store_inferior_registers): Use shnbsd_fill_reg.
8736 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8737 sh_nbsd_supply_register): Collapse into...
8738 (shnbsd_supply_reg): ...this.
8739 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8740 (shnbsd_fill_reg): ...this.
8741 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8742 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8743 (fetch_core_registers): Use shnbsd_supply_reg.
8744 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8745 (sh_nbsd_core_fns): Rename to...
8746 (shnbsd_core_fns): ...this.
8747 (sh_nbsd_elfcore_fns): Rename to...
8748 (shnbsd_elfcore_fns): ...this.
8749 (sh_nbsd_init_abi): Rename to...
8750 (shnbsd_init_abi): ...this.
8751 (_initialize_sh_nbsd_tdep): Rename to...
8752 (_initialize_shnbsd_tdep): ...this.
8753 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8754 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8755 sh_nbsd_fill_register): Remove prototypes.
8756 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8758 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8760 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8761 (i387-nat.o): Delete dependency list.
8762 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8763 (x86-64-linux-nat.o): Likewise.
8764 * i387-nat.c: Delete file, moving contents to...
8765 * i387-tdep.c: ...here.
8766 * i387-nat.h: Rename...
8767 * i387-tdep.h: ...to this.
8768 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8769 * i386-linux-nat.c: Likewise.
8770 * i386bsd-nat.c: Likewise.
8771 * i386gnu-nat.c: Likewise.
8772 * i386nbsd-nat.c: Likewise.
8773 * i386v4-nat.c: Likewise.
8774 * x86-64-linux-nat.c: Likewise.
8775 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8776 * config/i386/go32.mh (NATDEPFILES): Likewise.
8777 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8778 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8779 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8780 * config/i386/linux.mh (NATDEPFILES): Likewise.
8781 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8782 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8783 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8784 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8786 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8788 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8789 (alphanbsd-nat.o): Remove dependency list.
8790 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8791 * alphanbsd-nat.c: Delete. Contents moved to...
8792 * alphanbsd-tdep.c: ...here.
8793 (_initialize_alphanbsd_tdep): Register core functions.
8794 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8796 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8798 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8799 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8800 (alphanbsd-nat.o): Likewise.
8801 (alphabsd-tdep.o): New dependency list.
8802 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8803 (fill_gregset): Use alphabsd_fill_reg.
8804 (supply_fpregset): Use alphabsd_supply_fpreg.
8805 (fill_fpregset): Use alphabsd_fill_fpreg.
8806 (fetch_inferior_registers): Use struct reg and struct fpreg
8807 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8808 and alphabsd_supply_fpreg.
8809 (store_inferior_registers): Use struct reg and struct fpreg
8810 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8811 and alphabsd_fill_fpreg.
8812 * alphabsd-tdep.c: New file.
8813 * alphabsd-tdep.h: New file.
8814 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8815 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8816 alphabsd_supply_fpreg.
8817 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8818 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8820 2002-05-11 Eric Christopher <echristo@redhat.com>
8822 * mips-tdep.c (mips_double_register_type): Fix thinko.
8823 (mips_single_register_type): Ditto.
8824 * MAINTAINERS: Add self.
8826 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8828 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8829 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8830 right thing on architectures with different endianness and/or
8833 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8835 From Christian Limpach <chris@Pin.LU>
8836 * configure.in: Change sed expression which comments out
8837 NATDEPFILES to also comment out continuation lines.
8838 * configure: Regenerate.
8840 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8842 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8845 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8847 * sh-tdep.c: Include correct file.
8849 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8851 New support for sh64-elf (sh5) target.
8853 * configure.tgt: For sh64-elf target, default to sh-elf.
8855 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8856 (struct gdbarch_tdep): Add new fields for new registers and ABI
8859 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8860 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8861 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8862 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8863 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8864 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8865 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8866 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8867 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8868 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8869 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8870 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8871 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8872 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8873 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8874 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8875 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8876 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8877 sign_extend, sh64_nofp_frame_init_saved_regs,
8878 sh64_init_extra_frame_info, sh64_get_saved_register,
8879 sh64_extract_struct_value_address, sh64_pop_frame,
8880 sh64_push_arguments, sh64_extract_return_value,
8881 sh64_store_return_value, sh64_show_media_regs,
8882 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8883 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8884 sh_sh64_register_virtual_type,
8885 sh_sh64_register_convert_to_virtual,
8886 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8887 sh64_register_read, sh64_pseudo_register_write,
8888 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8889 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8890 sh64_do_pseudo_register, sh_compact_do_registers_info,
8891 sh64_do_registers_info, sh_gdbarch_init): New functions.
8893 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8895 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8897 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8899 * linespec.c (decode_line_1): Check for a double quote after
8900 a filename correctly.
8902 2002-05-10 Jim Blandy <jimb@redhat.com>
8904 Properly track the size of the current objfile's .debug_line section.
8905 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8906 (DWARF_LINE_SIZE): New macro.
8907 (dwarf2_build_psymtabs_hard): Record the line section's size in
8908 the partial symbol table.
8909 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8912 2002-05-10 Petr Sorfa <petrs@caldera.com>
8914 * ia64-tdep.c: Handle breakpoints on L instruction type
8915 in MLX instruction bundle by moving the breakpoint to
8916 the third slot (X instruction type) as L holds only data.
8918 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8920 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8921 (process_one_symbol): Complain about discarding local symbols
8922 due to a misplaced N_LBRAC entry.
8924 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8926 From Daniel Berlin <dan@cgsoftware.com>
8927 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8928 decrease the depth we are at, in the case of templates.
8930 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8932 * mips-tdep.c (mips_float_register_type): New function.
8933 (mips_double_register_type): New function.
8934 (mips_print_register): Use them.
8935 (do_fp_register_row): Likewise.
8937 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8939 * signals/signals.c (signals): Remove conditional compilation around
8940 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8941 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8943 2002-05-09 Michael Snyder <msnyder@redhat.com>
8945 * remote-rdp.c (remote_rdp_can_run): Remove.
8947 2002-05-09 Tom Tromey <tromey@redhat.com>
8949 * jv-valprint.c (java_val_print): Handle `char' as a special case
8952 2002-05-09 Michael Snyder <msnyder@redhat.com>
8954 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8955 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8956 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8957 str r(0123),[sp,#nn].
8958 (arm_skip_prologue): Ditto. Also make disassembly
8959 order-independent by placing it in a loop.
8961 2002-05-06 Michael Snyder <msnyder@redhat.com>
8963 * stabsread.c (read_type): Add recognition for new attribute:
8964 "@V;" means that an array type is actually a vector.
8965 This is analogous to the vector flag that's been added to dwarf2.
8967 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8969 * i386-tdep.h (i386_abi): New enum.
8970 (struct gdbarch_tdep): Replace os_ident member with abi.
8971 (i386_gdbarch_register_os_abi): New prototype.
8972 * i386-tdep.c (i386_abi_names): New array.
8973 (process_note_abi_tag_sections): Removed.
8974 (process_note_sections): New function.
8975 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8976 (struct i386_abi_handler): New struct.
8977 (i386_abi_handler_list): New variable.
8978 (i386_gdbarch_register_os_abi): New function.
8979 (i386_gdbarch_init): Adapt for the changes given above.
8981 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8983 * gregset.h: Say "GNU/Linux".
8985 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8987 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8988 (build_gdbtypes): Build builtin_type_v2_float.
8989 (_initialize_gdbtypes): Register new builtin type.
8991 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8993 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8994 (clear_gdbarch_swap): New function.
8995 (initialize_non_multiarch): Call.
8996 (gdbarch_update_p): Before calling init(), swap out and clear the
8997 existing architecture.
8998 * gdbarch.c: Regenerate.
9000 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9002 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9005 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9007 * sh-nbsd-nat.c: Rename to...
9008 * shnbsd-nat.c: ...this.
9009 * sh-nbsd-tdep.c: Rename to...
9010 * shnbsd-tdep.c: ...this.
9011 * sh-nbsd-tdep.h: Rename to...
9012 * shnbsd-tdep.h: ...this.
9013 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9014 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9016 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9018 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9019 concatenation for command help messages.
9021 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9023 * NEWS: Note new sh*-*-netbsdelf* configuration.
9024 * configure.host: Set gdb_host_cpu to sh for all sh*.
9025 (sh*-*-netbsdelf*): New host.
9026 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9027 (sh*-*-netbsdelf*): New target.
9028 * sh-nbsd-nat.c: New file.
9029 * sh-nbsd-tdep.c: New file.
9030 * sh-nbsd-tdep.h: New file.
9031 * config/sh/nbsd.mh: New file.
9032 * config/sh/nbsd.mt: New file.
9033 * config/sh/nm-nbsd.h: New file.
9034 * config/sh/tm-nbsd.h: New file.
9036 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9038 * sh-tdep.c (sh_osabi_names): Declare.
9039 (process_note_abi_tag_sections): New function.
9040 (get_elfosabi): Ditto.
9041 (sh_gdbarch_register_os_abi): Ditto.
9042 (sh_dump_tdep): Ditto.
9043 _initialize_sh_tdep): Use gdbarch_register to register
9044 sh_gdbarch_init and sh_dump_tdep.
9045 * config/sh/tm-sh.h (sh_osabi): Declare.
9046 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9048 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9050 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9051 (thumb_scan_prologue): Ditto.
9052 (arm_find_callers_reg): Ditto.
9053 (arm_frame_chain): Ditto.
9054 (arm_init_extra_frame_info): Ditto.
9055 (arm_frame_saved_pc): Ditto.
9056 (arm_pop_frame): Ditto.
9057 (arm_push_return_address): New function.
9058 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9059 call_dummy_location, call_dummy_breakpoint_offset_p,
9060 call_dummy_breakpoint_offset, call_dummy_p,
9061 call_dummy_stack_adjust_p, call_dummy_words,
9062 sizeof_call_dummy_words, call_dummy_start_offset,
9063 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9064 call_dummy_address, push_return_address and push_dummy_frame for
9065 generic dummy frames.
9067 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9069 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9070 size computation for alloca.
9071 (sh_fp_frame_init_saved_regs): Likewise.
9073 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9075 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9076 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9077 * arm-tdep.c (arm_store_return_value): Use them.
9078 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9079 * remote-rdp.c (remote_rdp_fetch_register): Use
9080 ARM_MAX_REGISTER_RAW_SIZE.
9081 (remote_rdp_store_register): Likewise.
9083 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9085 * dwarf2cfi.c: Code cleanup, removed unused variables,
9086 added default labels to switch {} statements.
9087 * x86-64-tdep.c: Ditto.
9088 * x86-64-linux-nat.c: Ditto.
9090 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9092 * solib.h: Protect against multiple inclusion.
9094 2002-05-06 Jim Blandy <jimb@redhat.com>
9096 Add first preprocessor macro-expansion files.
9097 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9098 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9099 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9100 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9101 (COMMON_OBS): Add macrotab.o, macroexp.o.
9102 (macroexp.o, macrotab.o): New rules.
9104 Separate the job of reading the line number info statement program
9105 header (...expialidocious) out into its own function.
9106 * dwarf2read.c (struct line_head, struct filenames, struct
9107 directories): Replace with...
9108 (struct line_header): New structure, containing the full
9109 contents of the statement program header, including the
9110 include directory and file name tables.
9111 (read_file_scope): If we have line number info, instead of just
9112 calling dwarf_decode_lines to do all the work, call
9113 dwarf_decode_line_header first to get a `struct line_header'
9114 containing the data in the statement program header, and then
9115 pass that to dwarf_decode_lines, which will pick up where that
9116 left off. Be sure to clean up the `struct line_header' object.
9117 (dwarf_decode_line_header, free_line_header, add_include_dir,
9118 add_file_name): New functions.
9119 (dwarf_decode_lines): Move all the code to read the statement
9120 program header into dwarf_decode_line_header. Take the line
9121 header it built as the first argument, instead of the offset to
9122 the compilation unit's line number info. Use the new `struct
9123 line_header' type instead of the old structures. No need to do
9124 cleanups here now, since we don't allocate anything.
9125 (dwarf2_statement_list_fits_in_line_number_section,
9126 dwarf2_line_header_too_long): New complaints.
9128 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9130 * gdbtypes.c (init_vector_type): New function.
9131 (build_builtin_type_vec128): Simplify the representation of SIMD
9133 (build_gdbtypes): Initialize new builtin vector types.
9134 (_initialize_gdbtypes): Register new vector types with gdbarch.
9135 (builtin_type_v4_float, builtin_type_v4_int32,
9136 builtin_type_v8_int16, builtin_type_v16_int8,
9137 builtin_type_v2_int32, builtin_type_v4_int16,
9138 builtin_type_v8_int8): New (renamed) SIMD types.
9140 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9142 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9143 (i387_fill_fxsave): Likewise.
9145 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9147 * alpha-tdep.c (alpha_extract_return_value): Don't use
9148 non-constant array size in prototype.
9150 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9152 From Brian Taylor <briant at model dot com>:
9153 * ui-out.c (ui_out_field_core_addr): Use the function
9154 longest_local_hex_string_custom'to format addresses > 32 bits
9157 * ui-out.c (ui_out_field_core_addr): Update comment.
9159 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9161 * stack.c (select_and_print_frame): Make static. Delete the
9163 (func_command): Update call.
9164 (select_frame_command): Delete code computing the frame level.
9165 * frame.h (select_and_print_frame): Delete declaration.
9167 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9169 * sparc-tdep.c (sparc_get_saved_register): Comment why
9170 get_prev_frame call is safe.
9172 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9174 * frame.h (select_frame): Delete level parameter.
9175 * stack.c (select_frame): Update. Use frame_relative_level to
9176 obtain the frame's level.
9177 (select_and_print_frame): Update call.
9178 (select_frame_command): Ditto.
9179 (up_silently_base): Ditto.
9180 (down_silently_base): Ditto.
9181 * ocd.c (ocd_start_remote): Ditto.
9182 * remote-rdp.c (remote_rdp_open): Ditto.
9183 * remote-mips.c (mips_initialize): Ditto.
9184 (common_open): Ditto.
9185 * remote-e7000.c (e7000_start_remote): Ditto.
9186 * m3-nat.c (select_thread): Ditto.
9187 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9188 (child_get_current_exception_event): Ditto.
9189 * varobj.c (varobj_create): Ditto.
9190 (varobj_update): Ditto.
9191 (c_value_of_root): Ditto.
9192 * tracepoint.c (finish_tfind_command): Ditto.
9193 * corelow.c (core_open): Ditto.
9194 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9195 * thread.c (info_threads_command): Ditto.
9196 (switch_to_thread): Ditto.
9197 * infrun.c (normal_stop): Ditto.
9198 (restore_selected_frame): Ditto.
9199 (restore_inferior_status): Ditto.
9200 * breakpoint.c (insert_breakpoints): Ditto.
9201 (watchpoint_check): Ditto.
9202 (bpstat_stop_status): Ditto.
9203 (do_enable_breakpoint): Ditto.
9204 * blockframe.c (flush_cached_frames): Ditto.
9205 (reinit_frame_cache): Ditto.
9207 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9209 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9212 2002-05-04 Jim Blandy <jimb@redhat.com>
9214 * gdbtypes.c (replace_type): Doc fix.
9216 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9218 * valprint.c (strcat_longest): Delete commented out function.
9221 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9223 * MAINTAINERS: Mark a29k as deleted.
9224 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9225 Move new configurations to the top.
9226 * configure.tgt: Remove a29k.
9227 * config/a29k/tm-vx29k.h: Delete.
9228 * config/a29k/vx29k.mt: Delete.
9229 * config/a29k/tm-a29k.h: Delete.
9230 * config/a29k/a29k-udi.mt: Delete.
9231 * config/a29k/a29k.mt: Delete.
9232 * a29k-tdep.c: Delete.
9233 * remote-udi.c: Delete.
9234 * remote-mm.c: Delete.
9235 * remote-eb.c: Delete.
9236 * remote-adapt.c: Delete.
9237 * Makefile.in: Remove obsolete code.
9238 * config/s390/s390x.mt: Ditto.
9239 * config/s390/s390.mt: Ditto.
9240 * config/sparc/sparclynx.mh: Ditto.
9241 * config/sparc/linux.mh: Ditto.
9242 * config/pa/hppaosf.mh: Ditto.
9243 * config/pa/hppabsd.mh: Ditto.
9244 * config/ns32k/nbsd.mt: Ditto.
9245 * config/mips/vr5000.mt: Ditto.
9246 * config/m68k/sun3os4.mh: Ditto.
9247 * config/m68k/nbsd.mt: Ditto.
9248 * config/m68k/m68klynx.mh: Ditto.
9249 * config/m32r/m32r.mt: Ditto.
9250 * config/i386/x86-64linux.mt: Ditto.
9251 * config/i386/nbsdelf.mt: Ditto.
9252 * config/i386/nbsd.mt: Ditto.
9253 * config/i386/i386lynx.mh: Ditto.
9255 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9257 * target.c (debug_print_register): New function. Handle oversize
9259 (debug_to_fetch_registers): Call.
9260 (debug_to_store_registers): Call.
9262 2002-05-03 Jim Blandy <jimb@redhat.com>
9264 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9265 (read_type): Doc fix.
9266 * gdbtypes.c (replace_type): Doc fix.
9268 * stabsread.c (multiply_defined_struct): New complaint.
9269 (read_struct_type): If the type we were passed isn't empty, or
9270 incomplete, don't read the new struct type into it; complain,
9271 and return the original type unchanged. Take a new `type_code'
9272 argument, which is the type code for the new type.
9273 (read_type): Rather than storing the type's type code here, pass
9274 it as an argument to read_struct_type, and let that take care of
9275 storing it. That way, we don't overwrite the original type code,
9276 so read_struct_type can use it to decide whether we're overwriting
9277 something we shouldn't.
9278 (complain_about_struct_wipeout): New function.
9280 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9282 * gdbarch.sh: Assert that gdbarch is non-NULL.
9283 * gdbarch.c: Regenerate.
9285 2002-05-03 Jason Merrill <jason@redhat.com>
9287 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9290 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9292 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9293 (x86_64_dwarf2gdb_regno_map_length),
9294 (x86_64_dwarf2_reg_to_regnum): Added.
9295 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9296 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9297 (_initialize_x86_64_tdep): Synced with the change above.
9298 (x86_64_skip_prologue): Reformulated message.
9300 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9302 * f-exp.y: Also use new prev_lexptr variable
9303 to improve error reporting. Based on Michael Snyder
9304 2002-04-24 dated patch to c-exp.y.
9305 * jv-exp.y: Likewise.
9306 * m2-exp.y: Likewise.
9308 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9310 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9311 we are dealing with vectors.
9313 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9315 * config/m68k/tm-nbsd.h: Obvious fix,
9316 correct machine name.
9318 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9320 * p-typeprint.c (pascal_type_print_base): Add support
9321 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9323 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9325 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9326 for fondamental pascal 'char' type.
9328 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9330 * p-lang.h (is_pascal_string_type): Declaration changed,
9331 new sixth argument of type char ** added.
9332 * p-lang.c (is_pascal_string_type): Implementation
9333 changed. Args length_pos, length_size, string_pos, char_size
9334 can now be NULL. New argument arrayname set to the field
9335 name of the char array. Return value set to char array
9336 field index plus one.
9337 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9338 is_pascal_string_type function.
9340 2002-05-02 Andrew Cagney <cagney@redhat.com>
9342 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9343 <cagney@redhat.com> change.
9344 * gdbarch.c: Regenerate.
9346 2002-05-02 Andrew Cagney <cagney@redhat.com>
9348 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9349 before probing for a new one. Detect errorenous gdbarch_init
9351 * gdbarch.c: Regenerate.
9353 2002-05-01 Andrew Cagney <cagney@redhat.com>
9355 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9356 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9357 * config/v850/tm-v850.h: Ditto. Update copyright.
9359 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9361 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9364 2002-04-30 Michael Snyder <msnyder@redhat.com>
9366 * arm-tdep.c: Whitespace clean-ups.
9367 (arm_skip_prologue): Fix thinko; two lines
9368 should have been removed as part of 4/24 change.
9370 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9372 * rs6000-tdep.c: Added comment describing how fpscr register
9373 numbers were chosen.
9375 2002-04-30 Michael Snyder <msnyder@redhat.com>
9377 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9379 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9381 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9382 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9383 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9385 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9387 From Louis Hamilton <hamilton@redhat.com>:
9388 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9389 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9390 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9391 not bfd-private xcoff data, to determine wordsize.
9392 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9394 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9396 GDB 5.2 released from 5.2 branch.
9398 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9400 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9401 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9402 (x86_64_register_info_table): Added comments with register numbers.
9404 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9406 * rs6000-tdep.c (rs6000_extract_return_value,
9407 rs6000_store_return_value): Handle returning vectors.
9408 (rs6000_gdbarch_init): Use
9409 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9410 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9412 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9414 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9415 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9417 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9419 * hpread.c (hpread_psymtab_to_symtab_1,
9420 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9421 with fprintf_unfiltered (gdb_stderr,...).
9423 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9425 * remote-array.c (printf_monitor, write_monitor,
9426 array_insert_breakpoint, array_remove_breakpoint ):
9427 Replace fprintf (stderr,...
9428 with fprintf_unfiltered (gdb_stderr,....
9429 * remote-es.c: Likewise.
9430 * remote-os9k.c: Likewise.
9431 * remote-st.c: Likewise.
9433 2002-04-28 Andreas Schwab <schwab@suse.de>
9435 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9436 linux-proc.o and gcore.o.
9438 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9440 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9441 code without frame pointers.
9443 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9445 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9448 2002-04-26 Ben Elliston <bje@redhat.com>
9450 * target.c (do_xfer_memory): Correct reference to the new option
9451 "trust-readonly-sections".
9453 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9455 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9456 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9457 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9459 (read_array_type): Record the fact that this array type is really a
9460 vector (i.e. are passed in by value).
9462 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9464 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9465 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9466 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9467 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9468 * alpha-linux-tdep.c: Include frame.h.
9469 (alpha_linux_sigcontext_addr): New function.
9470 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9471 alpha_linux_sigcontext_addr.
9472 * alpha-osf1-tdep.c: Include gdbcore.h.
9473 (alpha_osf1_sigcontext_addr): New function.
9474 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9475 alpha_osf1_sigcontext_addr.
9476 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9477 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9479 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9481 * stack.c (selected_frame_level):
9482 (select_frame): Do not set selected_frame_level.
9483 * frame.h (selected_frame_level): Delete declaration.
9485 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9487 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9488 convert_from_func_ptr-addr when AIX / PowerOpen.
9490 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9492 * valops.c (hand_function_call): Call
9493 generic_save_call_dummy_addr.
9494 * frame.h (generic_save_call_dummy_addr): Declare.
9495 * blockframe.c (struct dummy_frame): Add fields call_lo and
9497 (generic_find_dummy_frame): Check for PC in range call_lo to
9498 call_hi instead of entry_point_address.
9499 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9500 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9501 (generic_save_call_dummy_addr): New function.
9503 2002-04-24 David S. Miller <davem@redhat.com>
9505 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9506 sparc_skip_prologue.
9507 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9508 information to find prologue when possible.
9509 (sparc_prologue_frameless_p): Call examine_prologue directly.
9510 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9511 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9513 (SKIP_PROLOGUE): Likewise.
9515 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9517 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9518 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9519 indicate that the condition it was testing is always true.
9520 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9521 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9522 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9524 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9526 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9527 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9528 tdep->jb_pc and tdep->jb_elt_size.
9529 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9530 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9531 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9532 * alpha-nat.c (get_longjmp_target): Remove.
9533 (JB_ELEMENT_SIZE): Ditto.
9535 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9536 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9537 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9538 to alpha_get_longjmp_target.
9539 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9540 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9541 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9543 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9545 * README: Update to GDB 5.2.
9547 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9549 * gdbarch.sh (LC_ALL): Set to `c'.
9551 2002-04-25 Theodore A. Roth <troth@verinet.com>
9553 * avr-tdep.c: Ran through gdb_indent.sh.
9555 2002-04-25 Theodore A. Roth <troth@verinet.com>
9557 * MAINTAINERS: Add myself as AVR maintainer.
9558 * NEWS: Note new target avr.
9560 2002-04-25 Theodore A. Roth <troth@verinet.com>
9562 * Makefile.in: Add support for AVR target.
9563 * configure.tgt: Add support for AVR target.
9564 * avr-tdep.c: New file
9565 * config/avr/avr.mt: New file.
9567 2002-04-25 Theodore A. Roth <troth@verinet.com>
9569 * MAINTAINERS: Add myself to write-after-approval.
9571 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9573 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9574 with fprintf_unfiltered (gdb_stderr,....
9576 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9579 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9581 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9583 * p-exp.y: Also use new prev_lexptr variable
9584 to improve error reporting. Based on Michael Snyder
9585 2002-04-24 dated patch to c-exp.y.
9587 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9589 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9590 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9591 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9593 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9595 (FUNCTION_START_OFFSET): Remove.
9596 (BREAKPOINT): Ditto.
9598 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9600 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9603 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9605 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9606 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9607 alpha_linux_pc_in_sigtramp.
9608 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9609 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9610 alpha_osf1_pc_in_sigtramp.
9611 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9612 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9613 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9614 alphafbsd_pc_in_sigtramp.
9615 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9616 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9617 alphanbsd_pc_in_sigtramp.
9618 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9619 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9621 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9623 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9625 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9627 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9629 (alphanbsd-nat.o): New dependency list.
9630 (alphanbsd-tdep.o): Ditto.
9631 * NEWS: Note new native NetBSD/alpha configuration.
9632 * alphanbsd-nat.c: New file.
9633 * alphanbsd-tdep.c: Ditto.
9634 * configure.host (alpha*-*-netbsd*): New host.
9635 * configure.tgt (alpha*-*-netbsd*): New target.
9636 * config/alpha/nbsd.mh: New file.
9637 * config/alpha/nbsd.mt: Ditto.
9638 * config/alpha/nm-nbsd.h: Ditto.
9639 * config/alpha/tm-nbsd.h: Ditto.
9641 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9643 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9644 (alpha-osf1-tdep.o): New dependency list.
9645 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9646 and skip_sigtramp_frame members.
9647 * alpha-linux-tdep.c: Include gdbcore.h.
9648 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9649 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9650 * alpha-osf1-tdep.c: New file.
9651 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9653 (alpha_frame_past_sigtramp_frame): New function.
9654 (alpha_dynamic_sigtramp_offset): Ditto.
9655 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9656 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9657 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9658 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9659 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9660 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9661 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9662 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9663 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9664 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9665 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9666 to find_solib_trampoline_target.
9667 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9668 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9669 (SKIP_TRAMPOLINE_CODE): Remove.
9670 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9671 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9672 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9673 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9674 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9675 (PROC_SIGTRAMP_MAGIC): Ditto.
9676 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9677 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9678 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9679 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9680 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9682 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9684 * NEWS: Note that Alpha targets are now multi-arch.
9686 2002-04-24 Michael Snyder <msnyder@redhat.com>
9688 * parser-defs.h (prev_lexptr): New external variable.
9689 * parse.c (parse_exp_1): Set prev_lexptr to null before
9690 calling the language-specific parser.
9691 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9692 (yyerror): Use prev_lexptr in error reporting.
9694 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9696 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9697 * gregset.h: If FILL_FPXREGSET is defined, provide
9698 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9699 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9700 is defined, call fill_fpxregset.
9702 2002-04-24 Roland McGrath <roland@frob.com>
9704 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9705 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9706 (supply_gregset, supply_fpregset): New functions.
9708 * gnu-nat.c (gnu_find_memory_regions): New function.
9709 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9710 (gnu_xfer_memory): Add a cast.
9712 2002-04-24 Michael Snyder <msnyder@redhat.com>
9714 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9715 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9716 of argument regs ("str r(0123), [r11, #-nn"]).
9717 (arm_skip_prologue): Better handling for frameless functions.
9718 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9719 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9721 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9723 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9724 NUM_PSEUDO_REGS can be used.
9726 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9728 * arch-utils.h: Update copyright.
9730 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9731 * gdbarch.h, gdbarch.c: Re-generate.
9733 * inferior.h (IN_SIGTRAMP): Delete definition.
9734 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9735 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9737 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9738 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9739 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9740 (find_proc_framesize): Ditto.
9741 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9742 (alpha_init_extra_frame_info): Ditto.
9743 * infrun.c (handle_inferior_event): Ditto.
9744 (handle_inferior_event): Ditto.
9745 (check_sigtramp2): Ditto.
9746 * blockframe.c (create_new_frame): Ditto.
9747 (get_prev_frame): Ditto.
9748 * ppc-linux-tdep.c: Update comments.
9749 * i386-linux-tdep.c: Update comments.
9750 * breakpoint.c (bpstat_what): Update comment.
9752 2002-04-24 David S. Miller <davem@redhat.com>
9754 * i960-tdep.c (register_in_window_p): New function.
9755 (i960_find_saved_register): Use it instead of
9756 REGISTER_IN_WINDOW_P.
9757 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9759 * symtab.h (find_stab_function_addr): Kill extern.
9760 * minsyms.c (find_stab_function_addr): Remove from here...
9761 * dbxread.c: ... to here, and mark it static.
9763 2002-04-20 David S. Miller <davem@redhat.com>
9765 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9766 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9768 2002-04-21 David S. Miller <davem@redhat.com>
9770 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9771 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9772 (vx_write_register): Likewise.
9774 2002-04-23 J. Brobecker <brobecker@gnat.com>
9776 * source.c (is_regular_file): New function.
9777 (openp): Check wether file to open is a regular file
9778 to avoid opening directories.
9780 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9782 * findvar.c (extract_signed_integer): Cast printf argument
9783 to suppress format warning.
9784 (extract_unsigned_integer): Likewise.
9785 * infcmd.c (registers_info): Likewise.
9786 * top.c (get_prompt_1): Likewise.
9787 * valops.c (value_assign): Likewise.
9788 * valprint.c (print_decimal): Likewise.
9790 2002-04-22 H.J. Lu (hjl@gnu.org)
9792 * c-exp.y (typebase): Support
9794 [long|long long|short] [signed|unsigned] [int|]
9798 signed [long|long long|short] int
9800 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9802 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9804 * vax-tdep.h: New file.
9805 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9806 Make several routines static.
9807 (vax_get_saved_register): New function.
9808 (vax_gdbarch_init): New function.
9809 (_initialize_vax_tdep): Register vax_gdbarch_init.
9810 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9811 Remove macros now under the control of gdbarch.
9813 2002-04-22 Michael Snyder <msnyder@redhat.com>
9815 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9816 Some whitespace and coding standards tweaks.
9818 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9820 * vax-tdep.c: Include regcache.h.
9821 (vax_call_dummy_words): New.
9822 (sizeof_vax_call_dummy_words): New.
9823 (vax_fix_call_dummy): New function.
9824 (vax_saved_pc_after_call): Ditto.
9825 * config/vax/tm-vax.h: Don't include regcache.h.
9826 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9827 (CALL_DUMMY): Remove.
9828 (CALL_DUMMY_WORDS): Define.
9829 (SIZEOF_CALL_DUMMY_WORDS): Define.
9830 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9832 2002-04-18 Michael Snyder <msnyder@redhat.com>
9834 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9836 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9838 * vax-tdep.c (vax_frame_chain): New function.
9839 (vax_push_dummy_frame): Ditto.
9840 (vax_pop_frame): Ditto.
9841 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9842 (FRAMELESS_FUNCTION_INVOCATION): Use
9843 generic_frameless_function_invocation_not.
9844 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9845 (POP_FRAME): Use vax_pop_frame.
9847 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9849 * vax-tdep.c (vax_store_struct_return): New function.
9850 (vax_extract_return_value): Ditto.
9851 (vax_store_return_value): Ditto.
9852 (vax_extract_struct_value_address): Ditto.
9853 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9854 vax_store_struct_return.
9855 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9856 (STORE_RETURN_VALUE): Use vax_store_return_value.
9857 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9859 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9861 * vax-tdep.c (vax_frame_saved_pc): New function.
9862 (vax_frame_args_address_correct): Ditto.
9863 (vax_frame_args_address): Ditto.
9864 (vax_frame_locals_address): Ditto.
9865 (vax_frame_num_args): Move code to be in proximity to
9866 other frame-related functions.
9867 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9868 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9869 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9870 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9871 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9873 2002-04-22 H.J. Lu (hjl@gnu.org)
9875 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9878 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9880 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9881 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9882 (FRAME_INIT_SAVED_REGS): New macro.
9884 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9886 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9888 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9890 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9892 (fetch_osf_core_registers): Likewise.
9893 (supply_gregset): Likewise.
9895 2002-04-22 J. Brobecker <brobecker@gnat.com>
9897 * symfile.h (get_section_index): Define.
9898 * symfile.c (get_section_index): New function.
9899 * mdebugread.c (SC_IS_SBSS): New macro.
9900 (SC_IS_BSS): Return true for the scBss storage class only, as
9901 the scSBss storage class refers to the .sbss section.
9902 (parse_partial_symbols): Discard the symbols which associated
9903 section does not exist.
9904 Make sure to use the .sbss section index for symbols which
9905 storage class is scBss, rather than using the .bss section index.
9907 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9909 * vax-tdep.c: Update copyright years.
9910 (vax_register_name): New function.
9911 (vax_register_byte): Ditto.
9912 (vax_register_raw_size): Ditto.
9913 (vax_register_virtual_size): Ditto.
9914 (vax_register_virtual_type): Ditto.
9915 * config/vax/tm-vax.h: Update copyright years.
9916 (REGISTER_NAMES): Remove.
9917 (REGISTER_NAME): Define.
9918 (REGISTER_BYTE): Use vax_register_byte.
9919 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9920 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9921 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9923 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9925 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9927 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9929 2002-04-21 David S. Miller <davem@redhat.com>
9931 * arch-utils.c (generic_prologue_frameless_p): Kill
9932 SKIP_PROLOGUE_FRAMELESS_P code.
9933 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9935 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9936 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9937 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9939 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9940 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9941 (sparc_gdbarch_init): Pass it to
9942 set_gdbarch_prologue_frameless_p.
9944 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9946 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9947 (alphabsd-nat.o): New dependency list.
9949 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9951 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9953 (alpha-linux-tdep.o): New dependency list.
9954 (alphafbsd-tdep.o): Likewise.
9956 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9958 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9960 * alpha-tdep.c: ...from here.
9961 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9963 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9965 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9966 prototype from here...
9967 * alpha-tdep.h: ...to here.
9969 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9971 * frame.h (selected_frame_level): Document as deprecated.
9972 (frame_relative_level): Declare.
9973 * stack.c (frame_relative_level): New function.
9974 (selected_frame_level): Document as deprecated.
9975 (select_frame): Do not set the selected_frame_level.
9977 * stack.c (frame_info, record_selected_frame): Update.
9978 (frame_command, current_frame_command): Update.
9979 (up_silently_base, up_command, down_silently_base): Update.
9980 (down_command): Update.
9981 * inflow.c (kill_command): Update.
9982 * tracepoint.c (finish_tfind_command): Update.
9983 * corelow.c (core_open): Update.
9984 * thread.c (info_threads_command): Update.
9985 (do_captured_thread_select): Update.
9986 * infcmd.c (finish_command): Update.
9987 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9989 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9991 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9993 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9995 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9998 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10000 * alphafbsd-tdep.c: Update copyright years. Include
10002 (alphafbsd_use_struct_convention): Make static.
10003 (alphafbsd_init_abi): New function.
10004 (_initialize_alphafbsd_tdep): New function.
10005 * config/alpha/tm-fbsd.h: Update copyright years.
10006 (USE_STRUCT_CONVENTION): Remove.
10008 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10010 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10011 an Alpha ABI variant.
10012 (alpha_abi_handler_list): Declare.
10013 (alpha_gdbarch_register_os_abi): New function.
10014 (alpha_gdbarch_init): Give registered ABI variant handlers a
10015 chance to tweak the gdbarch once we have set up defaults.
10016 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10018 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10020 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10021 to standard_coerce_float_to_double.
10022 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10024 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10026 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10027 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10028 from gdbarch_tdep rather than a constant.
10029 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10030 the default text address for all Alpha Unix ABIs.
10031 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10032 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10034 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10036 * alpha-tdep.h: New file. Includes several Alpha target constants
10038 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10039 let gdbarch deal with.
10040 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10041 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10042 to dependency list.
10043 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10044 Alpha target register names.
10045 * alphabsd-nat.c: Likewise.
10046 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10047 Alpha target register names. Make serveral routines static.
10048 (alpha_get_saved_register): New function.
10049 (alpha_abi_names): New.
10050 (process_note_abi_tag_sections): New function.
10051 (get_elfosabi): New function.
10052 (alpha_gdbarch_init): New function.
10053 (alpha_dump_tdep): New function.
10054 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10056 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10058 * frame.c (find_saved_register): Delete #ifdef
10059 HAVE_REGISTER_WINDOWS code.
10060 * config/sparc/tm-sparc.h: Update comments.
10061 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10063 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10065 * i960-tdep.c (i960_find_saved_register): New function.
10066 (i960_get_saved_register): New function.
10067 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10068 (i960_get_saved_register): Declare.
10069 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10071 2002-04-20 David S. Miller <davem@redhat.com>
10073 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10075 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10077 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10078 instead of NUM_PSEUDO_REGS.
10080 2002-04-20 David S. Miller <davem@redhat.com>
10082 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10083 GDB_MULTI_ARCH_PARTIAL
10084 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10085 define, let tm-sp64.h do it.
10087 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10089 * frame.c (find_saved_register): Avoid a NULL pointer
10090 dereference and actually walk the frame list.
10092 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10094 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10095 sorted in most most-recent-used order. Document.
10096 * gdbarch.h, gdbarch.c: Regenerate.
10098 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10100 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10102 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10103 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10104 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10107 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10110 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10111 (build_builtin_type_vec128): Ditto.
10112 (append_composite_type_field): Fix calculation of type length in
10115 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10117 * config/djgpp/README: Update.
10119 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10122 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10124 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10125 (alpha_setup_arbitrary_frame): ...to this.
10126 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10127 for alpha_setup_arbitrary_frame.
10129 2002-04-18 Andrew Cagney <cagney@redhat.com>
10131 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10132 * gdbarch.h, gdbarch.c: Regenerate.
10134 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10135 * target.h (memory_breakpoint_from_pc): Update declaration.
10136 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10138 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10139 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10140 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10141 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10142 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10143 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10144 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10145 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10146 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10147 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10148 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10149 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10151 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10153 * monitor.c (monitor_insert_breakpoint): Ditto.
10154 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10156 * config/mcore/tm-mcore.h: Update copyright.
10157 * mem-break.c: Ditto.
10158 * xstormy16-tdep.c: Ditto.
10160 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10162 * p-exp.y: Add precedence rule for '^' token.
10163 This removes the shift/reduce conflicts.
10164 Remove the comment concerning these shift/reduce conflicts.
10166 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10168 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10169 (registers_powerpc_nofp): New register set for processors
10170 without floating point unit.
10172 2002-04-18 David S. Miller <davem@redhat.com>
10174 * MAINTAINERS: Add myself to write-after-approval.
10176 2002-04-17 Michael Snyder <msnyder@redhat.com>
10178 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10180 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10182 * rs6000-tdep.c (frame_initial_stack_address): Use
10183 frame_register_read to read the alloca_reg.
10185 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10187 * frame.c (find_saved_register): Find saved registers in the next
10191 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10193 * gdbarch.sh (LANG): Set to ``c''.
10195 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10197 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10199 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10201 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10204 * hpread.c (hpread_get_lntt): Add declaration.
10205 Also fix PR gdb/391.
10207 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10209 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10210 * aclocal.m4, configure: Re-generate.
10213 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10215 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10216 instead of tm_print_insn.
10218 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10220 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10222 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10224 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10225 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10226 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10228 2002-04-12 Don Howard <dhoward@redhat.com>
10230 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10231 max_user_call_depth.
10232 (init_cmd_lists): Initialize the new value;
10233 * cli/cli-script.c (execute_user_command): Limit the call depth of
10234 user defined commands. This avoids a core-dump when user commands
10235 are infinitly recursive.
10237 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10239 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10240 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10241 from tdep struct instead of DEFAULT_LR_SAVE.
10242 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10243 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10244 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10246 2002-04-12 Michael Snyder <msnyder@redhat.com>
10248 * Remote.c: Spelling fix.
10249 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10250 If no symbol found for "sbrk", try "_sbrk".
10251 (make_output_phdrs): Use bfd_section_name.
10252 (gcore_copy_callback): Use bfd_section_name.
10253 * eval.c: Indentation fix-ups.
10254 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10255 in case it gets applied to an address that is already
10256 in the instruction space.
10257 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10258 * symfile.c: Fix indentation, long lines.
10259 * source.c: White space fix-up.
10261 2002-04-12 Andrew Cagney <cagney@redhat.com>
10263 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10264 * frame.c (frame_register_read): New function. Return non-zero on
10266 (read_relative_register_raw_bytes_for_frame): Delete.
10267 (read_relative_register_raw_bytes): Delete.
10268 * frame.h (frame_register_read): Declare.
10269 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10270 * sh-tdep.c: Ditto.
10271 * infcmd.c (do_registers_info): Ditto.
10272 * hppa-tdep.c: Ditto.
10273 * rs6000-tdep.c: Ditto.
10274 * h8500-tdep.c: Ditto.
10275 * mips-tdep.c: Ditto.
10276 * h8300-tdep.c: Ditto.
10277 * z8k-tdep.c: Ditto.
10279 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10281 From Jimi X <jimix@watson.ibm.com>:
10282 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10285 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10287 From Jimi X <jimix@watson.ibm.com>:
10288 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10291 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10293 From Jimi X <jimix@watson.ibm.com>:
10294 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10295 register sets for these processor variants.
10297 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10299 * regformats/reg-ppc.dat: Support FPSCR.
10301 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10303 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10304 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10305 Add fpscr as an invalid/unfetchable register.
10306 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10307 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10308 (fill_fpregset): Add support for register fpscr.
10309 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10310 (fill_gregset): Account for the fact that register ``mq'' might
10312 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10313 (registers_power): Add fpscr to register set at slot 71.
10314 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10315 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10317 2002-04-11 Michael Snyder <msnyder@redhat.com>
10319 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10320 * configure: Regenerate.
10321 * config.in: Regenerate.
10322 * acconfig.h: Add define for _SYSCALL32.
10323 * core-sol2.c: Remove #define _SYSCALL32.
10324 * solib-legacy.c: Remove #define _SYSCALL32.
10326 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10328 * stack.c (select_frame): Cleanup internal error message, do not
10331 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10333 * stack.c (select_frame): Check that selected_frame and the
10334 specified level are as expected.
10335 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10337 * frame.h (struct frame_info): Add field `level'. Update
10339 Work-in-progress PR gdb/464.
10341 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10343 * maint.c (maint_print_section_info): Rename print_section_info.
10344 (print_bfd_section_info, print_objfile_section_info): Update.
10345 * inferior.h (struct gdbarch): Add opaque declaration.
10346 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10347 * gdbarch.h: Regenerate.
10349 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10351 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10352 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10353 (kernel_u_size): Added.
10354 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10355 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10357 2002-04-04 Jim Ingham <jingham@apple.com>
10359 * valarith.c (find_size_for_pointer_math): New function, either returns
10360 the size for a pointer's target, returns 1 for void *, or errors for
10362 (value_add, value_sub): use find_size_for_pointer_math.
10364 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10366 * linux-low.c (linux_look_up_symbols): New hook.
10367 (linux_target_ops): Add linux_look_up_symbols.
10368 * remote-utils.c (decode_address): New function.
10369 (look_up_one_symbol): New function.
10370 * server.c (handle_query): Call target look_up_symbols hook.
10371 * server.h (look_up_one_symbol): Add prototype.
10372 * target.h (struct target_ops): Add look_up_symbols hook.
10374 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10376 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10377 override FP_REGNUM with frame->fp. Update copyright.
10378 * parse.c (num_std_regs, std_regs): Delete.
10379 (target_map_name_to_register): Do not search std_regs. Update
10380 function description.
10381 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10382 declarations. Update copyright.
10385 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10387 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10388 after the last symbol in a block.
10390 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10392 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10393 is non zero as a found symbol.
10395 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10397 * findvar.c: Include "builtin-regs.h".
10398 (value_of_register): Call value_of_builtin_reg when applicable.
10399 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10400 (target_map_name_to_register): Call
10401 builtin_reg_map_name_to_regnum.
10402 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10403 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10404 (builtin_regs_h): Define.
10405 (builtin-regs.o): New target.
10406 (findvar.o): Add $(builtin_regs_h).
10407 * builtin-regs.c, builtin-regs.h: New files.
10408 * std-regs.c: New file.
10409 Partial fix for PR gdb/251.
10411 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10413 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10414 it's no longer required.
10416 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10418 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10420 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10422 From Jimi X <jimix@watson.ibm.com>:
10423 * rs6000-tdep.c (rs6000_software_single_step): Use
10424 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10425 and size. Use target_insert_breakpoint() and
10426 target_remove_breakpoint() to insert and remove breakpoints
10427 instead of explicit memory reads and writes.
10429 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10431 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10432 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10433 ELF_OBJECT_FORMAT ifdef.
10435 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10437 From Jimi X <jimix@watson.ibm.com>:
10438 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10440 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10442 From Jimi X <jimix@watson.ibm.com>:
10443 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10444 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10446 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10448 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10449 s/asprintf/xasprintf/.
10450 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10452 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10454 I believe Jeff Law denies responsability for this one:
10455 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10456 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10457 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10458 Work-around for PR gdb/366.
10460 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10462 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10463 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10464 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10466 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10468 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10469 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10472 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10474 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10477 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10479 * README (Reporting Bugs in GDB): Document the bug web page as the
10480 prefered way of submitting bugs.
10483 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10485 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10486 -1. Update comment.
10487 * gdbarch.h, gdbarch.c: Re-generate.
10489 2002-04-07 Andreas Schwab <schwab@suse.de>
10491 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10492 buffer to regcache_collect.
10494 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10496 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10497 * gdbarch.c, gdbarch.h: Re-generate.
10499 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10501 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10502 declaration. Fix -Werror.
10504 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10506 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10507 * gdbarch.c: Regenerate.
10509 2002-04-05 Michael Snyder <msnyder@redhat.com>
10511 * breakpoint.c (clear_command): Rewrite middle section to
10512 combine two loops with identical control conditions.
10513 Add a cleanup to eliminate a memory leak.
10514 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10516 2002-04-05 H.J. Lu (hjl@gnu.org)
10518 * solib-svr4.c (bkpt_names): Add "__start".
10520 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10522 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10523 as test for 64 bit target.
10525 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10527 * h8500-tdep.c (h8500_write_fp): Delete function.
10528 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10529 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10530 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10531 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10532 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10533 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10535 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10536 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10537 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10538 (d10v_write_fp): Delete function.
10539 * inferior.h (write_fp, generic_target_write_fp): Delete
10541 * regcache.c (generic_target_write_fp): Delete function.
10542 (write_fp): Delete function.
10543 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10544 * gdbarch.h, gdbarch.c: Regenerate.
10545 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10546 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10547 (sparc64_write_fp): Delete declaration.
10548 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10549 (h8500_write_fp): Delete declaration.
10551 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10553 * sparc-tdep.c (sparc64_write_fp): Delete.
10554 (sparc_push_dummy_frame): Replace write_fp call with code to store
10556 (sparc_gdbarch_init): Do not initialize write_fp.
10558 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10560 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10563 2002-03-29 Jim Blandy <jimb@redhat.com>
10565 * stack.c (get_selected_block): Add new argument `addr_in_block',
10566 used to return the exact code address we used to select the block,
10567 not just the block.
10568 * blockframe.c (get_frame_block, get_current_block): Same.
10569 * frame.h (get_frame_block, get_current_block,
10570 get_selected_block): Update declarations.
10571 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10572 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10574 2002-04-05 Michael Snyder <msnyder@redhat.com>
10576 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10579 2002-04-05 J. Brobecker <brobecker@gnat.com>
10581 * utils.c (xfullpath): New function.
10582 * defs.h (xfullpath): Add declaration.
10583 * source.c (openp): Use xfullpath in place of gdb_realpath to
10584 avoid resolving the basename part of filenames when the
10585 associated file is a symbolic link. This fixes a potential
10586 inconsistency between the filenames known to GDB and the
10587 filenames it prints in the annotations.
10588 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10589 to be able to match a filename with either the real filename, or
10590 the name of any symbolic link to this file.
10591 (lookup_partial_symtab): Ditto.
10593 2002-04-04 Michael Snyder <msnyder@redhat.com>
10595 * breakpoint.c: Add support for hardware breakpoints in overlays.
10596 (overlay_events_enabled): New state variable.
10597 (insert_breakpoints): Use overlay_events_enabled to decide
10598 whether to attempt to set a breakpoint at the overlay load addr.
10599 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10600 (remove_breakpoint): Use overlay_events_enabled to decide
10601 whether breakpoints need to be removed from overlay load addr.
10602 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10603 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10604 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10605 disable_overlay_breakpoints): Update overlay_events_enabled.
10607 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10609 * dwarf2read.c (struct function_range): New.
10610 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10611 (check_cu_functions): New.
10612 (read_file_scope): Initialize global function lists.
10613 Call dwarf_decode_line after processing children.
10614 (read_func_scope): Add to global function list.
10615 (dwarf_decode_lines): Call check_cu_functions everywhere
10616 record_line is called. Call record_line with a linenumber
10617 of 0 to mark sequence ends.
10619 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10621 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10622 change sync with glibc.
10624 2002-04-03 Jim Blandy <jimb@redhat.com>
10626 * configure.in: Call AC_C_INLINE.
10627 * configure: Regenerated.
10629 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10631 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10632 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10634 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10636 * NEWS: Mention gcore support on FreeBSD/i386.
10638 * fbsd-proc.c: New file.
10639 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10640 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10642 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10645 2002-03-29 Jim Blandy <jimb@redhat.com>
10647 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10648 unescaped newlines in string literals, but newer ones don't. So
10651 2002-03-26 Michael Snyder <msnyder@redhat.com>
10652 Andrew Cagney <cagney@redhat.com>
10654 * cli/cli-dump.c: New file. Dump memory to file,
10655 restore file to memory.
10656 * cli/cli-dump.h: New file.
10657 * Makefile.in: Add rules, dependencies for cli-dump.o.
10658 * NEWS: Mention new commands.
10660 2002-03-28 Michael Snyder <msnyder@redhat.com>
10662 * symfile.c (symbol_file_add): Move test for null symbols to later.
10664 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10666 From veksler at il.ibm.com:
10667 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10668 the xstrduped original path.
10671 2002-03-27 Michael Snyder <msnyder@redhat.com>
10673 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10674 * infcmd.c (_initialize_infcmd): Ditto.
10675 * language.c (_initialize_language): Ditto.
10676 * symfile.c (_initialize_symfile): Ditto.
10677 * top.c (_init_main): Ditto.
10678 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10680 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10682 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10683 vector registers handling.
10684 (skip_prologue): Handle new AltiVec instructions. Fill in new
10685 fields of frame data.
10686 (frame_get_saved_regs): Fill in information for AltiVec registers.
10688 2002-03-27 Jim Blandy <jimb@redhat.com>
10690 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10691 a function; leave this macro here to invoke that function.
10692 (symbol_init_mangled_name): Declaration for that function.
10693 * symtab.c (symbol_init_mangled_name): New function.
10695 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10697 * valarith.c: Replace strerror with safe_strerror.
10698 * tracepoint.c: Ditto.
10699 * lin-lwp.c: Ditto.
10700 * go32-nat.c: Ditto.
10702 * gnu-nat.c: Ditto.
10704 2002-03-27 Andreas Schwab <schwab@suse.de>
10706 * event-top.c (command_line_handler): Remove useless if.
10708 2002-03-27 Andreas Jaeger <aj@suse.de>
10710 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10713 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10715 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10716 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10717 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10718 (x86_64_linux_dr_get_status, supply_gregset),
10719 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10720 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10721 (x86_64_register_info_table): Add.
10722 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10723 (x86_64_register_raw_size, x86_64_register_virtual_type),
10724 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10725 general x86_64_register_info_table.
10726 (i386_gdbarch_init): gdbarch_register_bytes is now set
10727 dynamicaly during initialization.
10728 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10729 * gdbserver/linux-x86-64-low.c: Ditto.
10731 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10733 * gdbserver/server.c (main): Call target_signal_to_host_p
10734 and target_signal_to_host on signals received from the remote.
10735 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10736 target_signal_from_host on signals sent to the remote.
10737 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10738 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10740 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10742 * signals/signals.c: Include "server.h" in gdbserver build.
10743 (target_signal_from_name): Don't use STREQ.
10744 (_initialize_signals): Likewise. Don't include function in
10747 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10749 * signals.c: Moved to...
10750 * signals/signals.c: Here.
10751 * Makefile (signals.o): Update.
10753 2002-03-26 Jeff Law (law@redhat.com)
10755 * somread.c (som_symtab_read): Remove some commented out code and
10756 updated related comments. Do not set the minimal symbol table to
10757 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10758 in a dynamic executable.
10759 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10760 where we are unable to find the minimal symbol for the given
10763 2002-03-25 Jeff Law (law@redhat.com)
10765 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10767 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10769 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10771 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10773 * command.h: Update copyright.
10774 (struct cmd_list_element): Replace definition with opaque
10776 (enum cmd_types): Document that it will eventually be moved to
10778 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10779 (MALLOCED_REPLACEMENT): Delete macro.
10780 * Makefile.in (cli_decode_h): Add $(command_h).
10781 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10782 * top.c: Include "cli/cli-decode.h".
10783 * completer.c: Include "cli/cli-decode.h".
10784 * maint.c: Include "cli/cli-decode.h".
10785 * cli/cli-decode.h: Include "command.h".
10786 (enum command_class): Delete.
10787 (enum cmd_types): Comment out.
10788 (enum cmd_auto_boolean): Delete.
10789 (enum var_types): Delete.
10791 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10793 * cli/cli-decode.c: Include "gdb_assert.h".
10794 (add_set_or_show_cmd): New static function.
10795 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10796 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10797 all fields, such as func, from the set command.
10799 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10801 * MAINTAINERS (sh-elf): Change warning flag to -w.
10803 2002-03-23 Andrew Cagney <cagney@redhat.com>
10805 * defs.h (error): Add printf format attribute.
10806 * thread-db.c (thread_from_lwp): Fix error format string.
10807 * stack.c (parse_frame_specification): Ditto.
10808 * cli/cli-decode.c (undef_cmd_error): Ditto.
10809 * scm-lang.c (scm_lookup_name): Ditto.
10810 * tracepoint.c (trace_error): Ditto.
10811 * remote-utils.c (usage): Ditto.
10812 * remote.c (compare_sections_command): Ditto.
10815 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10817 * gdbtypes.c (append_composite_type_field): New function.
10818 (init_composite_type): New function.
10819 * gdbtypes.h (append_composite_type_field): Declare.
10820 (init_composite_type): Ditto.
10822 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10824 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10826 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10827 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10828 structure returning convention for SYSV ABI case, but not
10829 for GNU/Linux, FreeBSD, or NetBSD.
10831 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10833 * symtab.h (lookup_block_symbol): Add mangled_name argument
10836 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10837 with new mangled_name argument.
10838 * linespec.c (decode_line_1): Likewise.
10839 * valops (value_of_this): Likewise.
10840 * symtab.c (lookup_transparent_type): Likewise.
10841 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10842 (lookup_symbol): If we are given a mangled name, pass it down
10843 to lookup_symbol_aux.
10844 (lookup_block_symbol): If we are given a mangled name to check
10845 against, only return symbols which match it.
10847 2002-03-22 Christopher Faylor <cgf@redhat.com>
10849 * win32-nat.c (child_create_inferior): Check for proper shell to use
10850 here, in case the user changes it on the fly.
10851 (_initialize_inftarg): Remove shell path considerations.
10853 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10855 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10856 for gdbarch_max_register_raw_size and max_register_virtual_size.
10857 Adjust copyright year.
10859 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10861 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10862 in a function to cover the entire beginning of the function
10863 as well if it does not already.
10865 2002-03-21 Tom Rix <trix@redhat.com>
10867 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10868 (rs6000_ptrace64): Renamed from ptrace64.
10870 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10872 * gdbserver/remote-utils.c (remote_open): Don't call
10873 getprotobyname, we're all using TCP here so just use
10875 * gdbserver/gdbreplay.c (remote_open): Ditto.
10877 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10879 * regcache.c (_initialize_regcache): No need to call
10880 build_regcache() at this time; it gets called whenever
10881 the gdbarch changes.
10883 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10885 * sparc-nat.c: Include sys/param.h where possible.
10887 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10890 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10891 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10892 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10894 * stabsread.c (rs6000_builtin_type): Likewise.
10895 (read_sun_floating_type): Likewise.
10897 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10899 * stabsread.c (read_member_functions): Remove skip code for duplicate
10900 constructor/destructor methods. Use standard parsing for these
10901 methods and just do not chain them to the list of methods after
10904 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10906 * coffread.c: Remove redundant static declarations. Replace
10907 occurrences of `PTR' with `void *'.
10908 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10909 * top.h (quit_cover): Likewise.
10910 * defs.h (catch_errors): Likewise.
10912 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10914 * defs.h (XMALLOC): Define.
10915 * gdb-events.sh (XMALLOC): Delete macro.
10916 * gdb-events.c, gdb-events.h: Regenerate.
10917 * gdbarch.sh (XMALLOC): Delete macro.
10918 * gdbarch.c: Regenerate.
10919 * serial.c (XMALLOC): Delete macro.
10920 * ui-file.c (XMALLOC): Ditto.
10921 * ser-unix.h (XMALLOC): Ditto.
10922 * sh-tdep.c (XMALLOC): Ditto.
10923 * ui-out.c (XMALLOC): Ditto.
10924 * utils.c (XMALLOC): Ditto.
10925 * i386-tdep.c (XMALLOC): Ditto.
10926 * gdb-events.c (XMALLOC): Ditto.
10927 * d10v-tdep.c (XMALLOC): Ditto.
10928 * cli-out.c (XMALLOC): Ditto.
10930 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10931 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10932 * ui-file.c, ui-out.c: Ditto.
10934 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10936 * command.h (struct cmd_list_element): Add field context.
10937 (set_cmd_context, get_cmd_context): Declare.
10938 * cli/cli-decode.h: Ditto.
10939 * cli/cli-decode.c (get_cmd_context): New function.
10940 (set_cmd_context): New function.
10941 (add_cmd): Initialize context.
10942 Part of fixing PR gdb/145 and PR gdb/146.
10944 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10946 * cli/cli-decode.c (cmd_type): New function.
10947 * command.h (cmd_type): Declare.
10948 * infrun.c (set_schedlock_func): Call function cmd_type.
10949 * kod.c (kod_set_os): Call cmd_type.
10950 * cris-tdep.c (cris_version_update): Use function cmd_type.
10951 (cris_mode_update, cris_abi_update): Ditto.
10953 * command.h: (execute_cmd_post_hook): Declare.
10954 (execute_cmd_pre_hook): Declare.
10955 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10956 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10957 functions. Execute pre/post hook while ensuring that afterwords
10958 hook_in is cleared.
10959 * top.c (execute_command): Use execute_cmd_post_hook, and
10960 execute_cmd_pre_hook to execute pre/post commands.
10961 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10963 (hook_stop_stub): Call execute_cmd_pre_hook.
10965 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10967 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10968 set'' and this leads to a core dump. Move xstrdup of
10969 operating_system to after check that it is not NULL.
10971 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10973 * kod.c (kod_set_os): Remove unnecessary check that
10974 ``command->type'' is set_cmd.
10976 * valprint.c (set_input_radix): Use input_radix.
10977 (set_output_radix): Use output_radix.
10978 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10981 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10983 * value.h (struct value): Delete field ``substring_addr''. Change
10984 aligner fields to force_doublest_align, force_longest_align,
10985 force_core_addr_align and force_pointer_aligh.
10987 * value.h (struct value): Fix typo in above change.
10989 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10991 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10992 to fix internal_error from ``maintenance print architecture''.
10994 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10996 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10997 for gcc versions after gcc-2.8.1.
10999 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11001 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11002 for method resolution. Restore adjustment of ``this'' pointer after
11003 calling value_struct_elt, which was accidentally removed during the
11006 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11008 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11010 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11011 get_saved_register.
11012 * value.h (value_of_register): Update.
11014 2002-03-14 Richard Henderson <rth@redhat.com>
11016 * configure.in: Detect declaration for canonicalize_file_name.
11017 * utils.c (canonicalize_file_name): Declare, if needed.
11018 (gdb_realpath): Prefer realpath if available and usable.
11019 * config.in, configure: Rebuild.
11021 2002-03-14 Richard Henderson <rth@redhat.com>
11023 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11024 a constant array bound.
11026 * MAINTAINERS: Add myself to write-after-approval.
11028 2002-03-14 Michael Snyder <msnyder@redhat.com>
11030 * symfile.c (syms_from_objfile): Return immediately if no syms.
11031 (symbol_file_add): Return immediately if no syms.
11032 (find_sym_fns): Return immediately if no syms.
11034 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11036 * gdbserver/remote-util.c (remote_open): Print remote-side's
11037 IP address when remote debugging over the network.
11039 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11041 * config/sparc/fbsd.mh: Fix copyright.
11042 * config/sparc/fbsd.mt: Likewise.
11044 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11046 * MAINTAINERS: Fix typo in name of gdb warnings option.
11047 (x86-64): Fix formating so that this can be parsed by awk.
11049 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11051 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11052 * defs.h: Include "gdb/signals.h".
11053 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11055 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11057 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11058 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11061 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11062 Don Howard <dhoward@redhat.com>
11064 * mips-tdep.c (ST0_FR): Define.
11065 (mips2_fp_compat): New function, temporarily disabled.
11066 (mips_read_fp_register_single): New function.
11067 (mips_read_fp_register_double): New function.
11068 (mips_print_register): Use them.
11069 (do_fp_register_row): Likewise.
11071 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11073 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11076 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11078 * stabsread.c (read_member_functions): Fix is_stub test for
11079 static member functions, improve comment.
11081 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11083 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11084 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11085 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11086 commands that set boolean values.
11087 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11088 (arm_rdi_resume): Always initialize PC.
11089 (arm_rdi_open): Don't use rslt as a boolean.
11090 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11091 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11092 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11093 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11095 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11097 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11098 * configure: Rebuilt.
11100 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11102 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11103 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11105 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11107 * cli/cli-decode.c (set_cmd_completer): New function.
11108 * command.h (set_cmd_completer): Declare.
11109 * cli/cli-decode.h (set_cmd_completer): Ditto.
11111 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11112 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11113 * win32-nat.c (_initialize_inftarg): Ditto.
11114 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11115 * proc-api.c (_initialize_proc_api): Ditto.
11116 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11117 * source.c (_initialize_source): Ditto.
11118 * exec.c (_initialize_exec): Ditto.
11119 * solib.c (_initialize_solib): Ditto.
11120 * top.c (init_main): Ditto.
11121 * tracepoint.c (_initialize_tracepoint): Ditto.
11122 * symfile.c (_initialize_symfile): Ditto.
11123 * printcmd.c (_initialize_printcmd): Ditto.
11124 * infcmd.c (_initialize_infcmd): Ditto.
11125 * corefile.c (_initialize_core): Ditto.
11127 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11129 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11131 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11133 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11135 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11137 * NEWS: Update headings, 5.2 has branched.
11139 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11141 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11142 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11143 (register_addr, REGISTER_RAW_SIZE): Likewise.
11144 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11145 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11147 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11149 * MAINTAINERS (x86-64): Add myself.
11150 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11151 changed value_ptr -> struct value *
11153 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11155 * configure.host (sparc64-*-freebsd): Add.
11156 * configure.tgt: Likewise.
11157 * config/sparc/fbsd.mh: New file.
11158 * config/sparc/fbsd.mt: Likewise.
11159 * config/sparc/nm-fbsd.h: Likewise.
11160 * config/sparc/tm-fbsd.h: Likewise.
11162 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11164 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11165 regformats/reg-s390x.dat.
11167 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11169 * utils.c: Add FIXME explaining true/false problem.
11171 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11173 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11175 2002-02-28 Michael Chastain <mec@shout.net>
11177 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11179 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11181 * gdbserver/linux-s390-low.c: New file.
11182 * regformats/reg-s390.dat: New file.
11183 * regformats/reg-s390x.dat: New file.
11184 * gdbserver/configure.srv: Add S/390.
11185 * gdbserver/Makefile.in: Add S/390.
11186 * configure.tgt: Enable gdbserver for S/390.
11188 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11190 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11191 first line of the doc string for "info dos", except at the end of
11192 the sentence, since the short help stops at the first period.
11194 2002-02-28 Jason Merrill <jason@redhat.com>
11196 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11198 2002-02-27 Fred Fish <fnf@redhat.com>
11200 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11201 comment (dumy -> dummy).
11203 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11205 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11207 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11209 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11211 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11213 * gdbserver/acconfig.h: New file.
11214 * gdbserver/i387-fp.c: New file.
11215 * gdbserver/i387-fp.h: New file.
11216 * gdbserver/linux-x86-64.c: New file.
11217 * regformats/reg-x86-64.dat: New file.
11218 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11219 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11220 * gdbserver/configure.in: Add support for regsets.
11221 * gdbserver/config.in: Regenerate.
11222 * gdbserver/configure: Regenerate.
11223 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11224 * gdbserver/linux-low.h: New file.
11225 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11227 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11228 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11229 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11230 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11231 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11232 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11233 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11234 "i387-fp.h". Add PTRACE_GETREGS and friends.
11235 * gdbserver/regcache.c (supply_register): New function.
11236 (supply_register_by_name): New function.
11237 (collect_register): New function.
11238 (collect_register_by_name): New function.
11240 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11242 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11243 (config.status): Add configure.srv dependency.
11244 (server_h): Add config.h dependency.
11246 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11248 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11249 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11250 * gdbserver/configure.srv: Change i386-*-linux* to use
11253 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11255 * x86-64-tdep.c: Re-indent. Update copyright date.
11257 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11259 From Michal Ludvig <mludvig@suse.cz>:
11260 * x86-64-tdep.c (value.h): Delete.
11261 (gdb_assert.h): Include.
11262 (x86_64_register_convert_to_virtual,
11263 x86_64_register_convert_to_raw ): Add check which lets only
11264 floating-point values to be converted.
11265 (value_push): Delete.
11266 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11267 (i386_gdbarch_init): Number of register_bytes fixed.
11269 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11271 * MAINTAINERS: Add x86-64 target.
11273 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11275 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11276 * osfsolib.c (solib_map_sections): Ditto.
11277 * irix5-nat.c (solib_map_sections): Ditto.
11278 * corelow.c (gdb_check_format): Ditto.
11279 * symfile.c (symfile_bfd_open): Ditto.
11280 * solib.c (solib_map_sections): Ditto.
11283 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11285 * remote.c (_initialize_remote): By default, disable ``e'' and
11286 ``E'' step out-of-range packets.
11288 2002-02-26 Andreas Schwab <schwab@suse.de>
11290 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11291 m68k_linux_frame_saved_pc.
11292 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11294 (SIGCONTEXT_PC_OFFSET): Remove.
11295 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11296 m68k_linux_sigtramp_saved_pc): New functions.
11297 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11298 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11299 (UCONTEXT_PC_OFFSET): Define.
11300 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11301 non-RT and RT signal trampolines.
11303 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11305 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11306 (TARGET_NBPG, STACK_END_ADDR): Delete
11307 (VARIABLES_INSIDE_BLOCK): Delete.
11309 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11311 * utils.c (perror_with_name): Make string parameter constant.
11312 (print_sys_errmsg): Ditto.
11314 * defs.h (perror_with_name): Update.
11315 (print_sys_errmsg): Update.
11318 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11320 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11321 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11323 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11325 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11326 if it already matches the current architecture from the exec file.
11327 Include arch-utils.h for gdbarch_info_init prototype.
11328 * Makefile.in (rs6000-nat.o): Update dependencies.
11330 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11332 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11333 list of exported variables.
11335 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11337 * gdbserver/configure.srv: New file.
11338 * gdbserver/configure.in: Use configure.srv instead
11339 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11341 * gdbserver/configure: Regenerated.
11342 * gdbserver/terminal.h: New file.
11343 * gdbserver/Makefile.in: Update for configure changes. Remove
11344 more unneeded include paths.
11346 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11348 From wiz at danbala:
11349 * config/sparc/tm-sp64.h: Fix grammar and typos.
11352 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11354 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11355 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11356 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11357 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11358 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11359 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11360 * s390-tdep.c: Ditto.
11361 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11362 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11363 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11364 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11365 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11366 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11367 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11368 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11369 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11370 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11373 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11375 * lin-thread.c: Delete file.
11376 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11377 to gdb_proc_service.h.
11378 * configure: Re-generate.
11380 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11381 * serial.c (serial_open): Delete check for "ocd".
11384 * Makefile.in (linux-thread.o): Delete target.
11385 * linux-thread.c: Delete file.
11387 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11388 renamed SH files to be consistent.
11390 * symtab.c (sort_search_symbols): Use xfree.
11392 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11394 * arm-linux-tdep.c (arm_linux_init_abi): Register
11395 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11396 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11397 definition with undef, since we don't want the sysvr4 definition.
11398 (SKIP_TRAMPOLINE_CODE): Likewise.
11400 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11402 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11404 * configure.in: (AC_CHECK_FUNCS) Added test for
11405 canonicalize_file_name Regenerated.
11406 * config.in, configure: Regenerated.
11407 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11408 defined use canonicalize_file_name.
11410 2002-02-23 Michael Chastain <mec@shout.net>
11412 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11414 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11416 * README: Remove references to cygnus.com.
11417 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11418 dot com'' form. Remove references to cygnus.com and sourceware.
11420 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11422 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11423 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11424 1003.1-2001 no longer allows "head -1".
11425 * gdb/Makefile.in (version.c): Likewise.
11426 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11427 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11428 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11430 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11432 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11433 * command.h (cmd_cfunc_eq): Declare.
11434 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11436 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11437 ``struct cmd_list_element *''.
11438 * cli/cli-cmds.c (is_complete_command): Update. Use
11440 * top.c (execute_command): Pass the command to
11441 is_complete_command.
11442 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11444 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11446 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11447 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11448 architecture defines.
11449 * s390-tdep.c (s390_gdbarch_init): Likewise.
11451 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11453 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11454 (arm_linux_push_arguments): Likewise.
11455 (arm_linux_init_abi): Register them. Also register linux-specific
11457 (find_minsym_and_objfile): Use strcmp, not STREQ.
11458 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11459 (arm_linux_call_dummy_words): Delete declaration.
11460 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11461 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11463 (LOWEST_PC): Delete.
11465 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11467 * maint.c (print_section_info): Do not prepend `0x' to filepos
11468 output, it will be handled by local_hex_string_custom.
11470 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11472 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11473 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11474 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11476 2002-02-22 Jim Blandy <jimb@redhat.com>
11478 Indicate that the bcache functions don't change the strings
11480 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11481 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11483 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11485 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11487 2002-02-21 Christopher Faylor <cgf@redhat.com>
11489 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11490 find the complete path to a loaded DLL.
11492 2002-02-21 Fred Fish <fnf@redhat.com>
11494 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11495 that marks the end of the range of a function, enter a line number
11496 entry that has a line number of zero and a PC offset that matches
11497 the end of the function. This starts a range of PC's for which no
11498 line number information is known.
11499 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11500 PC's for which no line number info is found (line number is zero)
11501 then we didn't find any valid line information.
11502 * symtab.h: Document use of zero line number entry.
11504 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11506 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11507 (have_ptrace_getvrregs): Define for run time checks.
11508 (gdb_vrregset_t): New type for Altivec register handling.
11509 (fetch_register, store_register): Fetch/store altivec register
11511 (fetch_altivec_register, store_altivec_register): New functions.
11512 (supply_vrregset, fill_vrregset): New functions.
11513 (fetch_altivec_registers, store_altivec_registers): New functions.
11514 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11517 2002-02-21 Jiri Smid <smid@suse.cz>
11519 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11521 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11523 * Makefile.in (armnbsd-nat.o): Update dependencies.
11524 * armnbsd-nat.c (supply_gregset): New function. Common code to
11525 supply the integer register set.
11526 (supply_fparegset): New function. Similar for FPA registers.
11527 (fetch_regs, fetch_fp_regs): Use them.
11528 (fetch_core_registers): Likewise.
11529 (fetch_elfcore_registers): New function.
11530 (arm_netbsd_elfcore_fns): New core-file type specification.
11531 (_initialize_arm_netbsd_nat): Register it.
11533 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11535 * armnbsd-nat.c: Include gdbcore.h.
11536 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11537 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11538 'void' to declaration, to shut up ARI.
11539 (fetch_core_registers): Make static. Rewrite using supply_register.
11540 (arm_netbsd_core_fns): New core-file type specification.
11541 (_initialize_arm_netbsd_nat): New function.
11543 2002-02-21 Christopher Faylor <cgf@redhat.com>
11545 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11548 2002-02-20 Christopher Faylor <cgf@redhat.com>
11550 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11553 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11555 * jv-exp.y (parse_number): Change type of implicit longs
11556 to builtin_type_uint64.
11558 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11560 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11561 to be an integer instead of a `union wait'.
11563 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11565 * mips-linux-nat.c: Call the operating system GNU/Linux.
11566 * mips-linux-tdep.c: Likewise.
11567 * mips-tdep.c: Likewise.
11569 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11572 * jv-exp.y (parse_number): Handle 64-bit integers.
11574 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11576 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11577 AC_STDC_HEADERS to AC_HEADER_STDC.
11578 * gdbserver/configure: Regenerated.
11580 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11582 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11584 * sparc-tdep.c (get_longjmp_target): Likewise.
11586 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11588 * News: Add news about ARM and Multi-arch. Mention the new target
11591 2002-02-19 Jim Blandy <jimb@redhat.com>
11593 * stabsread.c (error_type_complaint): Improve error message.
11595 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11597 * gdbserver/README: Update documentation.
11598 * gdbserver/configure.in: Update configury to match documentation.
11599 * gdbserver/Makefile.in: Likewise.
11600 * gdbserver/configure: Regenerated.
11601 * gdbserver/aclocal.m4: New file, generated by aclocal.
11602 * gdbserver/config.in: New file, generated by autoheader.
11604 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11606 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11609 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11611 * arm-tdep.h (enum arm_float_model): New enum.
11612 (struct gdbarch_tdep): Add fp_model.
11613 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11614 up floating-point conversions until we know the floating-point model
11615 in use by the inferior. Don't complain about being unable to
11616 determine the ABI of the inferior when we don't have one.
11617 (arm_extract_return_value): Support different floating-point models.
11618 (arm_store_return_value): Likewise.
11619 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11621 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11623 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11625 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11626 of ``current_gdbarch''.
11628 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11630 * armnbsd-nat.c : ANSIfy all function declarations.
11631 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11632 (fetch_inferior_registers): Re-implement in terms of above.
11633 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11634 (store_inferior_registers): Re-implement in terms of above.
11636 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11638 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11640 * arm-linux-tdep.c: Likewise.
11641 * config/arm/tm-linux.h: Likewise.
11643 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11645 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11646 * config/arm/nbsd.mt (TM_FILE): Delete.
11647 * config/arm/tm-nbsd.h: Delete.
11649 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11651 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11652 Initialize CALL_DUMMY_LENGTH.
11654 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11656 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11658 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11659 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11660 defines one thing and that is incorrect for this port.
11661 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11663 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11665 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11667 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11669 * win32-nat.c (display_selector): New function. Displays information
11670 about the information returned by GetThreadSelectorEntry API function.
11671 (display_selectors): New function. Displays the infomation of
11672 the selector given as argument, or of CS, DS ans FS selectors
11673 if no argument is given.
11674 ( _initialize_inftarg): Add "w32" as info prefix command.
11675 Add "info w32 selector" as command calling display_selectors.
11677 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11679 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11680 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11683 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11685 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11687 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11689 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11690 (arm_fix_call_dummy): Call it.
11691 (arm_call_dummy_breakpoint_offset): Delete.
11692 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11693 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11695 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11697 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11698 Default to func_frame_chain_valid.
11699 * gdbarch.h, gdbarch.c: Re-generate.
11700 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11702 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11704 * ppc-linux-nat.c: Update copyright.
11705 (fetch_register, store_register): Add tid parameter, don't compute
11707 (fetch_ppc_registers, store_ppc_registers): Add tid
11708 parameter. Pass it along to callees.
11709 (fetch_inferior_registers, store_inferior_registers): Compute tid
11710 here, and pass it to calleed functions.
11711 (fill_gregset, supply_fpregset): Clean up formatting.
11713 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11715 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11716 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11718 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11720 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11721 * gdbarch.c gdbarch.h: Regenerate.
11722 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11724 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11725 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11726 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11728 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11729 * arm-tdep.c (arm_get_longjmp_target): New function.
11730 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11731 this to a positive value register arm_get_longjmp_target as the
11733 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11734 (arm_linux_init_abi): Set up longjmp description in tdep.
11735 * armnbsd-nat.c (get_longjmp_target): Delete.
11736 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11737 description in tdep.
11738 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11739 (get_longjmp_target): Delete declaration.
11740 (GET_LONGJMP_TARGET): Delete.
11741 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11742 (GET_LONGJMP_TARGET): Delete.
11744 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11746 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11747 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11748 of ``current_gdbarch''.
11750 2002-02-17 Tom Tromey <tromey@redhat.com>
11752 * cli/cli-cmds.c (compare_strings): New function.
11753 (complete_command): Only print each unique item once.
11754 * completer.h (complete_line): Declare.
11755 * completer.c (complete_line): New function.
11756 (line_completion_function): Use it.
11758 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11760 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11761 * gdbarch.h, gdbarch.c: Re-generate.
11763 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11765 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11767 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11769 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11770 * valops.c (value_arg_coerce): Don't take the address of a reference
11771 to convert an argument to a reference.
11773 2002-02-15 Christopher Faylor <cgf@redhat.com>
11775 * win32-nat.c (get_image_name): New function.
11776 (handle_load_dll): Use get_image_name function.
11777 (get_child_debug_event): Avoid registering debug events until possibly
11778 execed process is started.
11779 (child_create_inferior): Allow invocation via shell so that command
11780 line redirection, etc. works ok.
11781 (_initialize_inftarg): Add new command: "set shell" to control whether
11782 a shell is used to start a process.
11784 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11786 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11787 instead of find_register_by_number.
11788 (cannot_store_register): Likewise.
11790 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11792 * dwarf2read.c: Replace fprintf (stderr, ...) by
11793 fprintf_unfiltered (gdb_stderr, ...).
11795 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11797 * gdbserver/gdbserver.1: Document --attach.
11799 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11801 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11803 * arm-tdep.c (arm_default_arm_le_breakpoint)
11804 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11805 (arm_default_thumb_be_breakpoint): New. Initialize them from
11806 traditional breakpoint defines.
11807 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11808 (arm_gdbarch_init): Initialize new breakpoint variables.
11809 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11810 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11811 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11812 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11814 (arm_netbsd_init_abi_common): ... here; new function.
11815 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11816 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11817 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11818 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11820 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11822 * arm-tdep.h (enum arm_abi): New enum.
11823 (struct gdbarch_tdep): New structure.
11824 (LOWEST_PC): Provide a default.
11825 (arm_gdbarch_register_os_abi): Declare new function.
11826 * arm-tdep.c (arm_abi_names): New array.
11827 (process_note_abi_tag_sections): New function.
11828 (get_elfosabi): New function.
11829 (arm_gdbarch_register_os_abi): New function.
11830 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11831 support for that ABI has been built in, then call the appropriate
11832 configuration routine. Use gdbarch_num_regs() to get the number
11834 (arm_dump_tdep): New function.
11835 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11836 place-holder functions.
11837 (_initialize_arm_tdep): Register them.
11838 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11840 * armnbsd-tdep.c: New file.
11841 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11842 * config/arm/nbsd.mt (TDEPFILES): Add it.
11843 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11845 * armnbsd-nat.c: Include regcache.h.
11846 * Makefile.in (armnbsd-nat.o): Update dependency list.
11848 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11850 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11852 * gdbserver/Makefile.in: Fix typos in target rules.
11854 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11856 Fix part of PR gdb/267.
11857 * linespec.c (find_methods): Handle constructors specially for now.
11859 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11861 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11863 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11864 standard_coerce_float_to_double().
11866 2002-02-14 Christopher Faylor <cgf@redhat.com>
11868 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11871 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11873 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11874 find_variant_by_name, because it confuses the multiarch
11875 framework. Return NULL if there isn't an architecture with the
11876 user supplied name, instead of forcing a different one without
11877 recording the change with the multiarch machinery.
11878 (find_variant_by_name): Delete.
11880 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11882 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11883 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11885 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11887 * stack.c (print_frame_info_base): When calling
11888 print_frame_info_listing_hook, set current_source_symtab.
11890 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11892 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11893 and remove unused $(INCLUDE_DIR).
11894 Add regcache.c to OBS.
11895 Add generated register protocol files to clean target.
11896 Update dependencies for new objects, obsolete old target code.
11898 * gdbserver/linux-low.c: Remove all platform-specific code to
11899 new files. Remove various dead code. Update to use regcache
11901 * gdbserver/remote-utils.c (fromhex): Add return statement
11903 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11905 (input_interrupt): Add integer parameter to match prototype
11906 of a signal handler.
11907 (outreg): Use register_data ().
11908 (prepare_resume_reply): Use gdbserver_expedite_regs.
11909 * gdbserver/server.c (main): Dynamically allocate own_buf because
11910 PBUFSIZ is no longer constant. Use registers_to_string () and
11911 registers_from_string ().
11912 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11913 for error (), fatal (), and warning (). Update definition of
11914 PBUFSIZ to use regcache functionality. Add include guard.
11915 * gdbserver/utils.c (fatal): Add missing ``const''.
11916 (warning): New function.
11918 * regformats/regdat.sh: Include "regcache.h" in generated files.
11919 Provide init_registers () function.
11920 * regformats/regdef.h: Add prototype for set_register_cache ().
11923 * gdbserver/linux-arm-low.c: New file.
11924 * gdbserver/linux-i386-low.c: New file.
11925 * gdbserver/linux-ia64-low.c: New file.
11926 * gdbserver/linux-m68k-low.c: New file.
11927 * gdbserver/linux-mips-low.c: New file.
11928 * gdbserver/linux-ppc-low.c: New file.
11929 * gdbserver/linux-sh-low.c: New file.
11931 * gdbserver/regcache.c: New file.
11932 * gdbserver/regcache.h: New file.
11934 * gdbserver/low-linux.c: Removed obsolete file.
11936 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11938 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11939 * config/i386/linux.mt: Likewise.
11940 * config/ia64/linux.mt: Likewise.
11941 * config/m68k/linux.mh: Likewise.
11942 * config/powerpc/linux.mh: Likewise.
11943 * config/mips/linux.mt: Likewise.
11945 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11947 * config/i386/i386lynx.mh: Mark gdbserver variables
11948 as (currently) obsolete for this target.
11949 * config/i386/nbsd.mt: Likewise.
11950 * config/i386/nbsdelf.mt: Likewise.
11951 * config/m32r/m32r.mt: Likewise.
11952 * config/m68k/m68klynx.mh: Likewise.
11953 * config/m68k/nbsd.mt: Likewise.
11954 * config/m68k/sun3os4.mh: Likewise.
11955 * config/mips/vr5000.mt: Likewise.
11956 * config/ns32k/nbsd.mt: Likewise.
11957 * config/pa/hppabsd.mh: Likewise.
11958 * config/pa/hppaosf.mh: Likewise.
11959 * config/powerpc/nbsd.mt: Likewise.
11960 * config/rs6000/rs6000lynx.mh: Likewise.
11961 * config/s390/s390.mt: Likewise.
11962 * config/s390/s390x.mt: Likewise.
11963 * config/sparc/sparclynx.mh: Likewise.
11964 * config/sparc/sun4os4.mh: Likewise.
11965 * config/i386/x86-64linux.mt: Likewise.
11966 * config/sparc/linux.mh: Likewise.
11968 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11970 * configure.tgt: Configure gdbserver only for known working
11971 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11972 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11973 SUBDIRS if it is configured. Update comment for ${nativefile}.
11974 * configure: Regenerated.
11976 2002-02-13 Michael Snyder <msnyder@redhat.com>
11978 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11980 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11981 (default_gcore_mach): Just return 0, work around a problem in bfd.
11982 (default_gcore_target): OK to return NULL if exec_bfd is null.
11983 (make_mem_sec): Use a cast, avoid a warning.
11985 * procfs.c (find_memory_regions_callback): Use a cast instead of
11986 calling host_pointer_to_address (which complains if
11987 sizeof (host pointer) != sizeof (target pointer)).
11988 (procfs_make_note_section): Avoid overflow in psargs string.
11990 * procfs.c (procfs_make_note_section): Make the default
11991 implementation return an error.
11993 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11995 * procfs.c (procfs_make_note_section): Provide a default definition
11996 (for alpha-dec-osf4.0f). Fix typos.
11998 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12000 * linux-proc.c: Add include of regcache.h.
12001 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12003 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12005 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12006 * memattr.c (create_mem_region): Disallow useless empty region.
12007 Regions are half-open intervals, so allow [A..B) [B..C) as
12010 2002-02-13 Michael Chastain <mec@shout.net>
12012 * defs.h: Kill CONST_PTR.
12013 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12014 * c-lang.c (c_builtin_types): Likewise.
12015 * ch-lang.c (ch_builtin_types): Likewise.
12016 * f-lang.c (f_builtin_types): Likewise.
12017 * language.c (unknown_builtin_types): Likewise.
12018 * m2-lang.c (m2_builtin_types): Likewise.
12019 * p-lang.c (pascal_builtin_types): Likewise.
12020 * scm-lang.c (c_builtin_types): Likewise.
12022 2002-02-13 Keith Seitz <keiths@redhat.com>
12024 * arm-tdep.h (arm_get_next_pc): Add declaration.
12026 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12028 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12029 with other related struct-returning functions.
12030 (arm_extract_struct_value_address): New function.
12031 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12032 initialize float_format, double_format and long_double_format as
12033 appropriate to the endianness of the target.
12034 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12035 (arm_use_struct_convention): Delete declaration.
12036 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12038 2002-02-13 Keith Seitz <keiths@redhat.com>
12040 * defs.h (core_addr_to_string_nz): New function.
12042 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12044 Apply missing bits of 2002-01-15 patch.
12045 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12046 (fill_fpregset): Use i387_fill_fsave.
12048 2002-02-12 Keith Seitz <keiths@redhat.com>
12050 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12051 (core_addr_to_string_nz): New function.
12053 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12055 * arm-linux-nat.c: Really include arm-tdep.h.
12056 * config/arm/tm-linux.h (struct type, struct value): Declare.
12058 2002-02-11 Michael Snyder <msnyder@redhat.com>
12060 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12061 (gcore section): Ifdef for Solaris and Unixware only.
12062 (procfs_do_thread_registers): Unixware needs one lwpstatus
12063 per thread (not one prstatus or pstatus).
12064 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12065 not over all gdb threads. For unixware, call elfcore_write_pstatus
12066 once before iterating over threads.
12068 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12070 * arm-tdep.h: New file.
12071 * arm-tdep.c: Include arm-tdep.h.
12072 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12073 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12074 (arm_print_float_info, arm_register_type, convert_to_extended)
12075 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12076 (arm_extract_return_value, arm_register_name): Make static.
12077 (arm_software_single_step): Similarly. Fix types in declaration.
12078 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12079 (arm_store_return_value, arm_store_struct_return): New functions.
12080 (arm_gdbarch_init): Register the above functions. Also register
12081 call_dummy_start_offset, sizeof_call_dummy_words,
12082 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12083 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12084 max_register_virtual_size, register_size. Set up
12085 prologue_cache.saved_regs here, rather than ...
12086 (_initialize_arm_tdep): ... here.
12087 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12089 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12090 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12091 (arm_print_float_info, arm_register_type, convert_to_extended)
12092 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12093 (arm_extract_return_value, arm_register_name): Delete declarations.
12094 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12095 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12096 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12097 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12098 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12099 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12100 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12101 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12102 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12103 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12104 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12105 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12107 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12108 * remote-rdi.c remote-rdp.c: Likewise.
12109 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12110 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12111 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12114 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12115 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12116 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12117 from non-ARM_ prefixed definitions.
12118 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12120 * remote-rdi.c remote-rdp.c: Likewise.
12121 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12123 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12125 * arm-tdep.c (arm_frameless_function_invocation)
12126 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12127 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12128 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12129 (arm_pop_frame, arm_get_next_pc): Make static.
12130 (arm_gdbarch_init): Register above in gdbarch structure.
12131 (arm_read_fp): Renamed from arm_target_read_fp.
12132 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12133 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12134 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12135 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12136 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12137 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12138 (arm_pc_is_thumb_dummy): Delete declarations.
12139 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12140 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12141 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12142 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12144 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12146 * symtab.c (compare_search_syms): New function.
12147 (sort_search_symbols): New function.
12148 (search_symbols): Sort symbols after searching rather than
12151 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12153 * NEWS: Linux -> GNU/Linux.
12155 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12157 * gdbarch.sh: For for level one methods, disallow a definition
12158 when partially multi-arched. Add comments explaining rationale.
12159 * gdbarch.h: Re-generate.
12161 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12163 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12164 multi-arch partial.
12166 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12168 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12169 field. Use diff -u.
12170 * gdbarch.c: Re-generate.
12172 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12174 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12175 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12178 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12180 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12181 multi-arch partial.
12182 (PUSH_ARGUMENTS): Switch to using predefault.
12183 * gdbarch.c: Regenerate.
12185 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12187 * valops.c (PUSH_ARGUMENTS): Delete definition.
12188 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12189 partial. Default to default_push_arguments.
12190 * gdbarch.h, gdbarch.c: Regenerate.
12192 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12194 * defs.h (throw_exception): Rename return_to_top_level. Update
12196 * utils.c (error_stream, internal_verror, quit): Ditto.
12197 * top.c (throw_exception, catcher): Ditto.
12198 * sparclet-rom.c (sparclet_load): Ditto.
12199 * remote.c (interrupt_query, minitelnet): Ditto.
12200 * remote-sds.c (interrupt_query): Ditto.
12201 * remote-mips.c (mips_error, mips_kill): Ditto.
12202 * ocd.c (interrupt_query): Ditto.
12203 * monitor.c (monitor_interrupt_query): Ditto.
12204 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12205 * target.h: Update comment.
12207 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12209 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12211 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12212 default_double_format.
12213 * gdbarch.h, gdbarch.c: Re-generate.
12214 * findvar.c (floatformat_unknown): Delete variable definition.
12215 * doublest.h (floatformat_unknown): Delete variable declaration.
12217 2002-02-09 Jim Blandy <jimb@redhat.com>
12219 * stabsread.c (read_type): Add code to parse Sun's syntax for
12220 prototyped function types.
12222 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12224 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12225 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12227 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12229 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12230 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12231 now _initialize_xcoffsolib gets called again and overrides the
12232 commands from solib.c in a native configuration.
12234 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12236 * doublest.c (store_typed_floating): Don't try to return a value.
12239 2002-02-08 Jim Blandy <jimb@redhat.com>
12241 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12242 is prototyped and has no arguments, print its argument list as
12245 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12247 * MAINTAINERS (write-after-approval): Add myself.
12248 (paper-trail): I've escaped!
12250 2002-02-08 Christopher Faylor <cgf@redhat.com>
12252 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12254 (_initialize_check_for_gdb_ini): Ditto.
12256 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12258 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12259 xaprintf -> xasprintf.
12261 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12263 * win32-nat.c: Remove use of printf and sprintf functions.
12265 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12267 * arm-tdep.c (arm_frame_chain_valid): Make static.
12268 (arm_push_arguments): Likewise.
12269 (arm_gdbarch_init): New function.
12270 (_initialize_arm_tdep): Call it.
12271 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12272 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12273 (FRAME_CHAIN_VALID): Delete.
12274 (arm_frame_chain_valid): Delete declaration.
12275 (PUSH_ARGUMENTS): Delete.
12276 (arm_push_arguments): Delete declaration.
12277 (CALL_DUMMY_P): Delete.
12279 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12280 Corinna Vinschen <vinschen@redhat.com>
12282 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12283 on builtin float types.
12285 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12287 * utils.c: Include <curses.h> before "bfd.h".
12288 * tui/tui-hooks.c: Likewise.
12289 * tui/tui.c: Likewise.
12290 * tui/tuiCommand.c: Likewise.
12291 * tui/tuiData.c: Likewise.
12292 * tui/tuiDataWin.c: Likewise.
12293 * tui/tuiDisassem.c: Likewise.
12294 * tui/tuiGeneralWin.c: Likewise.
12295 * tui/tuiIO.c: Likewise.
12296 * tui/tuiLayout.c: Likewise.
12297 * tui/tuiRegs.c: Likewise.
12298 * tui/tuiSource.c: Likewise.
12299 * tui/tuiSourceWin.c: Likewise.
12300 * tui/tuiStack.c: Likewise.
12301 * tui/tuiWin.c: Likewise.
12303 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12305 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12306 to include space for pseudoregs as well. Update loops accordingly.
12307 (sh_fp_frame_init_saved_regs): Ditto.
12308 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12310 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12312 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12313 Add Richard Earnshaw to Arm maintainers.
12315 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12317 * defs.h (warning_begin): Delete declaration.
12319 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12322 2002-02-07 Michael Snyder <msnyder@redhat.com>
12324 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12325 Logic bug, remove misplaced else.
12327 2002-02-07 Klee Dienes <klee@apple.com>
12329 * fork-inferior.c (fork_inferior): Add '!' to the list of
12330 characters that need to be quoted when building a string for the
12331 shell. Quote '!' specifically with a backslash, since CSH chokes
12332 when trying to evaluate "str!str".
12334 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12336 * rdi-share/host.h: Only provide a typedef for bool if it is not
12339 2002-02-04 Michael Snyder <msnyder@redhat.com>
12341 * breakpoint.h (enum bptype): Add new overlay event bp type.
12342 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12344 * breakpoint.c (create_internal_breakpoint): New function.
12345 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12346 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12347 (create_thread_event_breakpoint): Ditto.
12348 (create_solib_event_breakpoint): Ditto.
12349 (create_overlay_event_breakpoint): New function.
12350 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12351 (update_breakpoints_after_exec): Delete and re-initialize
12352 overlay event breakpoints after an exec. Add FIXME comment
12353 about longjmp breakpoint.
12354 (print_it_typical): Ignore overlay event breakpoints.
12355 (print_one_breakpoint): Ditto.
12357 (bpstat_what): Do not stop for overlay event breakpoints.
12358 (delete_breakpoint): Don't delete overlay event breakpoints.
12359 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12360 (breakpoint_re_set): Re-create overlay event breakpoint.
12362 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12363 (overlay_manual_command): Disable overlay breakpoints.
12364 (overlay_off_command): Disable overlay breakpoints.
12366 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12368 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12369 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12370 to here from config/tm-arm.h.
12371 (coff_sym_is_thumb): Make static.
12372 (arm_elf_make_msymbol_special): New function.
12373 (arm_coff_make_msymbol_special): New function.
12374 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12375 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12376 (coff_sym_is_thumb): Delete declaration.
12377 (arm_elf_make_msymbol_special): Declare.
12378 (arm_coff_make_msymbol_special): Declare.
12379 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12380 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12382 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12384 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12386 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12388 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12389 * gdbarch.c gdbarch.h: Regenerate.
12390 * arch-utils.c (default_print_float_info): New function.
12391 * arch-utils.h (default_print_float_info): Prototype it.
12392 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12393 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12394 (PRINT_FLOAT_INFO): Document it.
12396 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12397 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12398 (PRINT_FLOAT_INFO): Define.
12400 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12402 * win32-nat.c (_initialize_check_for_gdb_ini):
12403 Add typecast to sprintf argument to suppress a warning.
12405 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12407 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12408 to allow easier handling of pass state.
12409 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12410 that gives exception name and address.
12411 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12412 and set last_sig value to ourstatus->value.sig. Some missing
12414 (child_continue): Correctly report continue_status.
12415 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12416 TARGET_SIGNAL_0 (new default value).
12417 (child_resume): consider sig argument passed to decide if
12418 the exception should be passed to debuggee or not.
12420 2002-02-05 Michael Snyder <msnyder@redhat.com>
12422 * regcache.c (fetch_register): Call target_fetch_register
12423 only if we don't call FETCH_PSEUDO_REGISTER.
12424 (store_register): Call target_store_register only if we
12425 don't call STORE_PSEUDO_REGISTER.
12427 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12429 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12430 ELF_MAKE_MSYMBOL_SPECIAL.
12431 * gdbarch.c, gdbarch.h: Regenerate.
12432 * arch-utils.c (default_make_msymbol_special): New function.
12433 * arch-utils.h (default_make_msymbol_special): Export.
12434 * elfread.c (elf_symtab_read): Compile use of
12435 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12437 * coffread.c (coff_symtab_read): Ditto, for
12438 COFF_MAKE_MSYMBOL_SPECIAL.
12440 2002-02-05 Jim Blandy <jimb@redhat.com>
12442 * solib-svr4.c (svr4_truncate_ptr): New function.
12443 (svr4_relocate_section_addresses): Do the address arithmetic with
12444 the appropriate truncation for target addresses, even when
12445 CORE_ADDR is larger than a target address.
12447 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12449 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12452 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12454 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12457 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12459 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12461 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12463 * gdbserver/linux-low.c: Remove unused include files.
12465 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12467 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12468 (read_inferior_memory): Use it.
12469 (write_inferior_memory): Likewise.
12471 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12473 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12474 grubbing through sys_errlist.
12476 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12478 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12480 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12481 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12483 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12485 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12486 (do_sfunc, set_cmd_sfunc): New functions.
12488 * command.h (struct cmd_list_element): Add field func.
12489 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12490 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12491 * cli/cli-decode.h: Ditto.
12493 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12494 (help_all, help_cmd_list): Ditto.
12495 (find_cmd, complete_on_cmdlist): Ditto.
12496 * top.c (execute_command): Ditto.
12498 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12501 * infcmd.c (notice_args_read): Fix function signature.
12503 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12504 * cli/cli-decode.c (add_set_cmd): Ditto.
12505 * utils.c (initialize_utils): Ditto.
12506 * maint.c (_initialize_maint_cmds): Ditto.
12507 * infrun.c (_initialize_infrun): Ditto.
12508 * demangle.c (_initialize_demangler): Ditto.
12509 * remote.c (add_packet_config_cmd): Ditto.
12510 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12511 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12512 * proc-api.c (_initialize_proc_api): Ditto.
12513 * kod.c (_initialize_kod): Ditto.
12514 * valprint.c (_initialize_valprint): Ditto.
12515 * top.c (init_main): Ditto.
12516 * infcmd.c (_initialize_infcmd): Ditto.
12517 * corefile.c (_initialize_core): Ditto.
12518 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12519 * arch-utils.c (initialize_current_architecture): Ditto.
12520 (_initialize_gdbarch_utils): Ditto.
12521 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12523 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12524 * wince.c (_initialize_inftarg): Ditto.
12525 * symfile.c (_initialize_symfile): Ditto.
12526 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12527 * language.c (_initialize_language): Ditto.
12528 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12530 2002-02-04 Michael Snyder <msnyder@redhat.com>
12532 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12534 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12536 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12537 Add rules for building the register data files.
12539 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12541 * regformats/regdat.sh: Add braces to the definition of
12542 expedite_regs_${arch}.
12544 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12546 * regformats/regdef.h (struct reg): Add comment describing the
12547 requirements for offset and size fields.
12549 2002-02-04 Andreas Schwab <schwab@suse.de>
12551 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12552 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12554 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12556 * gdbarch.sh (copyright): Update years in generated header.
12557 (SMASH_TEXT_ADDRESS): Add rule.
12558 * gdbarch.h, gdbarch.c: Re-generate.
12559 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12560 * dbxread.c: Likewise.
12561 * dwarfread.c: Likewise.
12562 * elfread.c: Likewise.
12563 * somread.c: Likewise.
12565 * arm-tdep.c (arm_smash_text_address): New function.
12566 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12568 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12570 Add support for hardware watchpoints on win32 native.
12571 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12572 CONTEXT_DEBUG_REGISTERS.
12573 (dr variable): New variable. Static array containing a local copy
12574 of debug registers.
12575 (debug_registers_changed): New variable. Reflects when debug registers
12576 are changed and need to be written to inferior.
12577 (debug_registers_used): New variable. Reflects when any debug register
12578 was set, used when new threads are created.
12579 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12581 (thread_rec): Set dr array if id is the thread of current_event .
12582 (child_continue, child_resume): Change the debug registers for all
12583 threads if debug_registers_changed.
12584 (child_add_thread): Change the debug registers if debug_registers_used.
12585 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12586 Link nm.h to new nm-cygwin.h file.
12587 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12588 of hardware registers.
12590 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12592 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12593 Restore behavour broken by 2002-01-20 Andrew Cagney
12594 <ac131313@redhat.com> IEEE_FLOAT removal.
12596 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12598 * c-valprint.c (c_val_print): Pass a proper valaddr to
12599 cp_print_class_method.
12600 * valops.c (search_struct_method): If there is only one method
12601 and args is NULL, return that method.
12603 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12605 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12606 accessing tag_name directly.
12608 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12610 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12611 of accessing tag_name directly.
12613 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12616 * gdbtypes.c (replace_type): New function.
12617 * gdbtypes.h (replace_type): Add prototype.
12618 * stabsread.c (read_type): Use replace_type.
12620 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12622 * Makefile.in (memattr.o): Add missing dependencies rule.
12624 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12626 * breakpoint.c (break_at_finish_command): Really export.
12627 (break_at_finish_at_depth_command): Ditto.
12628 (tbreak_at_finish_command): Ditto.
12629 * hppa-tdep.c: Include completer.h.
12630 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12631 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12633 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12635 * utils.c (do_write): New function.
12636 (error_stream): Rewrite combining the code from error_begin and
12638 (verror): Rewrite using error_stream.
12639 (error_begin): Delete function.
12641 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12643 * utils.c (error_begin): Make static.
12644 * defs.h (error_begin): Delete declaration.
12646 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12647 (decode_line_1): Use cplusplus_error instead of error_begin,
12648 cplusplus_hint and return_to_top_level.
12649 * coffread.c (coff_symfile_read): Use error instead of error_begin
12650 and return_to_top_level.
12651 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12653 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12655 * language.h (type_error, range_error): Make string parameter
12657 * language.c (warning_pre_print): Delete extern declaration.
12658 * dwarfread.c (warning_pre_print): Ditto.
12659 * language.c (type_error, range_error): Rewrite to use verror and
12660 vwarning instead of warning_begin.
12662 2002-02-01 Michael Snyder <msnyder@redhat.com>
12664 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12665 (set_ignore_count): Move misplaced comment back where it belongs.
12667 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12669 * command.h (NO_FUNCTION): Delete macro.
12670 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12671 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12672 * tracepoint.c (_initialize_tracepoint): Ditto.
12673 * cli/cli-decode.c (add_set_cmd): Ditto.
12674 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12676 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12678 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12679 Update ``this'' pointer when calling virtual functions.
12681 2002-02-01 Michael Snyder <msnyder@redhat.com>
12683 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12684 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12686 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12688 * regformats/reg-arm.dat: New file.
12689 * regformats/reg-i386.dat: New file.
12690 * regformats/reg-ia64.dat: New file.
12691 * regformats/reg-m68k.dat: New file.
12692 * regformats/reg-mips.dat: New file.
12693 * regformats/reg-ppc.dat: New file.
12694 * regformats/reg-sh.dat: New file.
12695 * regformats/regdef.h: New file.
12696 * regformats/regdat.sh: New file.
12698 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12700 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12701 (arm_frame_args_address, arm_frame_locals_address): New functions.
12702 (arm_frame_num_args): New function.
12703 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12704 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12705 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12707 2002-01-31 Michael Snyder <msnyder@redhat.com>
12709 * breakpoint.c (break_at_finish_command): Export.
12710 (break_at_finish_at_depth_command): Export.
12711 (tbreak_at_finish_command): Export.
12712 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12713 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12714 "txbreak" commands, which are HPPA specific.
12716 * printcmd.c (disassemble_command): Remove an ancient
12717 artifact of an old merge.
12719 * symfile.h (enum overlay_debugging_state):
12720 Define enum constant values for overlay mode.
12721 * symfile.c (overlay_debugging): Use enums instead of literals.
12722 (overlay_is_mapped, overlay_auto_command,
12723 overlay_manual_command): Ditto.
12725 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12726 breakpoint_here_p, breakpoint_inserted_here_p,
12727 breakpoint_thread_match, bpstat_stop_status,
12728 describe_other_breakpoints, check_duplicates, clear_command):
12729 Coding standard fixes.
12731 * target.c (target_xfer_memory): Add spaces, coding standard.
12732 (do_xfer_memory): Add missing line to trust-readonly
12733 code: check bfd SEC_READONLY flag for section.
12735 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12737 * PROBLEMS: Fix typo, 5.1->5.1.1.
12739 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12741 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12742 data symbols, since we search based on textlow and texthigh.
12743 (find_pc_sect_symtab): Likewise.
12745 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12747 * defs.h (vwarning): Declare.
12748 * utils.c (vwarning): New function.
12749 (warning): Call vwarning.
12750 (warning_begin): Delete function.
12752 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12753 the warning message.
12754 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12757 2002-01-30 Michael Snyder <msnyder@redhat.com>
12759 * NEWS: Mention "set trust-readonly-sections" command.
12760 Mention generate-core-file command.
12762 2002-01-15 Michael Snyder <msnyder@redhat.com>
12764 * target.c: New command, "set trust-readonly-sections on".
12765 (do_xfer_memory): Honor the suggestion to trust readonly sections
12766 by reading them from the object file instead of from the target.
12767 (initialize_targets): Register command "set trust-readonly-sections".
12769 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12771 * parse.c (target_map_name_to_register): Simplify, search regs and
12772 pseudo-regs using a single loop.
12774 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12776 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12778 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12780 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12781 * config/i386/i386v42mp.mh: Add i387-nat.o .
12782 * i386v4-nat.c: Include i387-nat.h.
12783 (supply_fpregset): Use i387_supply_fsave.
12784 (fill_fpregset): Use i387_fill_fsave.
12786 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12788 * arm-tdep.c (arm_call_dummy_words): Define.
12789 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12790 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12791 (CALL_DUMMY_WORDS): Define.
12792 (arm_call_dummy_words): Declare.
12793 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12794 (arm_linux_call_dummy_words): Declare.
12796 2002-01-30 Andreas Schwab <schwab@suse.de>
12798 * m68klinux-nat.c: Fix last change to use regcache_collect
12799 instead of referencing registers[] directly.
12801 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12803 * parse.c (target_map_name_to_register): Delete code wrapped in
12804 #ifdef REGISTER_NAME_ALIAS_HOOK.
12806 2002-01-28 Michael Snyder <msnyder@redhat.com>
12808 * regcache.c (legacy_read_register_gen): Need to be able to
12809 read pseudo-register as well as real register.
12810 (legacy_write_register_gen): Ditto.
12812 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12814 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12815 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12816 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12817 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12818 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12819 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12820 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12821 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12822 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12823 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12824 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12825 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12826 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12827 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12828 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12829 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12830 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12831 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12832 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12833 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12835 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12837 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12838 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12839 (initialize_current_architecture): Update target_byte_order using
12840 information from BFD.
12841 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12842 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12844 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12846 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12847 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12849 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12850 #ifdef INVALID_FLOAT.
12851 * infcmd.c (do_registers_info): Ditto.
12852 * values.c (unpack_double): Ditto. Add comment.
12854 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12855 already commented out.
12857 2002-01-26 Andreas Schwab <schwab@suse.de>
12859 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12860 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12861 registers and add support for PTRACE_GETREGS.
12863 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12865 GDB 5.1.1 released from 5.1 branch.
12866 * NEWS: Add 5.1.1 news.
12867 * README: Sync with 5.1 branch.
12869 2002-01-23 Fred Fish <fnf@redhat.com>
12871 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12872 stabstring on initial malloc. Reallocing will copy it for us,
12875 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12877 * Makefile.in (hpread_h): Delete.
12878 (HFILES_NO_SRCDIR): Remove hpread.h.
12879 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12880 (hpread.o): Update dependencies.
12881 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12883 * hp-psymtab-read.c: Remove file.
12884 * hp-symtab-read.c: Remove file.
12885 * hpread.h: Remove file.
12887 * hpread.c: Merge all contents of hp-psymtab-read.c,
12888 hp-symtab-read.c and hpread.h into this file, as it was prior to
12891 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12892 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12893 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12894 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12896 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12898 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12899 fill_gregset): Call gdbarch_tdep() just once, assign result to
12900 variable and use that, instead of calling the function several
12903 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12905 * configure.host: Accept sparcv9 as alias for sparc64.
12906 * configure.tgt: Likewise.
12908 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12910 * solib-aix5.c (build_so_list_from_mapfile)
12911 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12912 arguments is not reversed.
12913 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12914 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12916 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12918 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12919 modified version of obsolete sh_fetch_pseudo_register.
12920 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12921 (sh4_register_read): New function.
12922 (sh_pseudo_register_write): New function. Renamed and modified
12923 version of obsolete sh_store_pseudo_register.
12924 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12925 (sh4_register_write): New function.
12926 (sh_gdbarch_init): Remove setting of gdbarch function
12927 fetch_pseudo_register and store_pseudo_register. Remove setting of
12928 register_convert_to_raw, register_convert_to_virtual,
12929 register_convertible.
12930 (sh_sh4_register_convertible): Delete. No longer needed. All is
12931 taken care by architecture specific functions
12932 register_read/register_write.
12933 (sh_sh4_register_convert_to_virtual): Make static.
12934 (sh_sh4_register_convert_to_raw): Ditto.
12936 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12938 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12939 (floatformat_is_nan, floatformat_mantissa): Ditto.
12941 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12942 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12943 builtin_type_ieee_double_little,
12944 builtin_type_ieee_double_littlebyte_bigword,
12945 builtin_type_m68881_ext, builtin_type_i960_ext,
12946 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12947 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12948 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12949 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12951 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12953 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12954 parameter. Set frameless flag if it exists and depended of
12955 whether the scanned function is frameless or not.
12956 (xstormy16_skip_prologue): If function is frameless, return
12957 result of xstormy16_scan_prologue().
12958 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12961 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12963 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12964 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12965 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12966 sh_sh4_register_byte, sh_sh4_register_raw_size,
12967 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12968 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12969 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12970 sh_store_pseudo_register, sh_do_pseudo_register): Call
12971 gdbarch_tdep() just once, assign result to variable and use that,
12972 instead of calling the function several times.
12974 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12976 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12977 macros instead of LAST_FPU_CTRL_REGNUM.
12978 (store_register): Likewise.
12980 2002-01-21 Jim Blandy <jimb@redhat.com>
12982 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12983 is up-to-date before running the program, not just when a program
12986 2002-01-21 Fred Fish <fnf@redhat.com>
12988 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12989 when we have found all instructions we are looking for.
12991 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12993 * arm-tdep.c (arm_register_name): New function.
12994 (arm_registers_names): Make static.
12995 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12996 (arm_register_name): Declare.
12997 (REGISTER_NAME): Use it.
12999 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13000 Kevin Buettner <kevinb@redhat.com>
13002 Convert arm targets to new FRAME interface.
13003 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13004 (arm_frame_find_save_regs): Delete.
13005 (arm_frame_init_saved_regs): New.
13006 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13007 Allocate extra_info as required. Convert all uses of fsr.regs
13008 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13010 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13011 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13012 (check_prologue_cache, save_prologue_cache): Likewise.
13013 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13014 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13015 (FRAME_FIND_SAVED_REGS): Delete.
13016 (arm_frame_find_saved_regs): Delete prototype.
13017 (arm_frame_init_saved_regs): New prototype.
13018 (FRAME_INIT_SAVED_REGS): Define.
13020 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13022 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13024 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13026 From Jeff Law <law@redhat.com>:
13027 * infttrace.c: Include <sys/pstat.h>.
13028 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13029 exec file if the ttrace equivalent fails.
13031 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13033 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13034 (closeLogFile): Ditto.
13036 2002-01-20 Michael Chastain <mec@shout.net>
13038 * top.c (print_gdb_version): Bump copyright year to 2002.
13040 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13042 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13043 Zannoni and Eli Zaretskii.
13045 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13047 * buildsym.c: Update copyright years.
13048 * c-typeprint.c: Likewise.
13049 * dwarf2read.c: Likewise.
13050 * f-typeprint.c: Likewise.
13051 * gdbtypes.c: Likewise.
13052 * gdbtypes.h: Likewise.
13053 * hp-symtab-read.c: Likewise.
13054 * hpread.c: Likewise.
13055 * mdebugread.c: Likewise.
13056 * p-typeprint.c: Likewise.
13058 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13060 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13061 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13062 byte-order selectable.
13063 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13064 * arch-utils.c: Ditto.
13065 (set_endian): Ditto.
13066 (set_endian_from_file): Ditto.
13067 * gdbserver/low-sim.c (create_inferior): Ditto.
13068 * gdbarch.sh: Ditto.
13069 * gdbarch.h: Re-generate.
13070 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13071 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13072 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13073 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13074 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13075 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13076 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13077 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13079 * config/mips/tm-wince.h: Remove #undef of macro
13080 TARGET_BYTE_ORDER_SELECTABLE.
13081 * config/sh/tm-wince.h: Ditto.
13083 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13085 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13086 member function fields. Add accessor macro
13087 TYPE_FN_FIELD_ARTIFICIAL.
13088 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13089 * c-typeprint.c (c_type_print_base): Skip artificial member
13092 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13094 * f-typeprint.c: Delete unused function f_type_print_args.
13095 * p-typeprint.c: Delete unused function pascal_type_print_args.
13097 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13099 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13100 comment. Add ``artificial'' to ``union field_location''.
13102 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13104 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13105 * mdebugread.c (parse_symbol): Likewise.
13106 * stabsread.c (define_symbol): Likewise.
13107 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13108 initializing TYPE_FIELD_BITPOS to n (obsolete).
13109 (hpread_doc_function_type): Likewise.
13110 * hpread.c (hpread_function_type): Likewise.
13112 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13114 * configure.in (host_makefile_frag): Only require a host makefile
13115 fragment when a native build.
13116 * configure: Re-generate.
13118 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13120 * doublest.h (floatformat_from_type): Declare.
13121 * doublest.c (floatformat_from_type): New function.
13122 (convert_typed_floating): Use.
13124 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13125 call to function floatformat_from_type.
13127 * gdbarch.sh (IEEE_FLOAT): Delete.
13128 * gdbarch.h, gdbarch.c: Re-generate.
13129 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13130 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13131 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13132 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13133 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13134 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13135 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13136 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13137 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13138 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13139 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13140 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13142 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13143 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13144 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13145 * sh-tdep.c (sh_gdbarch_init): Ditto.
13146 * mips-tdep.c (mips_gdbarch_init): Ditto.
13147 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13148 * cris-tdep.c (cris_gdbarch_init): Ditto.
13150 2002-01-20 Jiri Smid <smid@suse.cz>
13152 * configure.host, configure.tgt: Support x86-64.
13153 * NEWS: Note new target x86-64.
13155 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13156 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13157 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13158 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13159 x86-64-linux-nat.o): Fix dependencies.
13161 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13163 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13164 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13165 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13166 * config/sparc/xm-sun4os4.h: Delete file.
13167 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13169 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13171 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13172 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13173 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13174 * config/i386/i386lynx.mh (XM_FILE): Delete.
13175 * config/rs6000/xm-rs6000ly.h: Delete file.
13176 * config/sparc/xm-sparclynx.h: Delete file.
13177 * config/m68k/xm-m68klynx.h: Delete file.
13178 * config/i386/xm-i386lynx.h: Delete file.
13179 * config/xm-lynx.h: Delete file.
13180 * config/djgpp/fnchange.lst: Update.
13182 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13184 * alpha-tdep.c (alpha_register_byte): New function.
13185 (alpha_register_raw_size): Ditto.
13186 (alpha_register_virtual_size): Ditto.
13187 (alpha_skip_prologue_internal): Renamed from
13188 alpha_skip_prologue.
13189 (alpha_skip_prologue): New version that calls
13190 alpha_skip_prologue_internal.
13191 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13192 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13193 second argument from alpha_skip_prologue.
13194 (REGISTER_BYTE): Use alpha_register_byte.
13195 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13196 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13197 (FRAMELESS_FUNCTION_INVOCATION): Use
13198 generic_frameless_function_invocation_not.
13199 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13200 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13202 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13204 * config/mips/xm-news-mips.h: Delete file.
13205 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13207 * config/m88k/xm-m88k.h: Delete file.
13208 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13209 * config/m88k/xm-delta88v4.h: Ditto.
13210 * config/m88k/xm-delta88.h: Ditto.
13212 * config/alpha/xm-fbsd.h: Delete file.
13213 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13215 * config/sparc/xm-sparc.h: Delete file.
13216 * Makefile.in (xm-sun4os4.h): Delete dependency.
13217 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13218 * config/sparc/xm-sun4os4.h: Ditto.
13219 * config/sparc/xm-linux.h: Ditto.
13221 * config/i386/xm-windows.h: Delete file.
13223 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13225 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13226 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13228 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13230 * alpha-tdep.c (alpha_call_dummy_words): New.
13231 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13232 (CALL_DUMMY_P): Define.
13233 (CALL_DUMMY_WORDS): Define.
13234 (SIZEOF_CALL_DUMMY_WORDS): Define.
13236 2002-01-19 Per Bothner <per@bothner.com>
13238 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13239 isn't NULL, which can happen with some gcj-3.x-produced code.
13241 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13243 * alpha-tdep.c (alpha_register_virtual_type): New function.
13244 (alpha_init_frame_pc_first): Ditto.
13245 (alpha_fix_call_dummy): Ditto.
13246 (alpha_store_struct_return): Ditto.
13247 (alpha_extract_struct_value_address): Ditto.
13248 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13249 alpha_register_virtual_type.
13250 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13251 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13252 alpha_extract_struct_value_address.
13253 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13254 (INIT_FRAME_PC): Use init_frame_pc_noop.
13255 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13257 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13259 * i386gnu-nat.c: Include "i386-tdep.h".
13260 (fetch_fpregs): Simplify code dealing with uninitialized floating
13261 point states such that it doesn't require FP7_REGNUM.
13263 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13265 * alpha-tdep.c (frame_extra_info): New.
13266 (alpha_find_saved_regs): Make static. Use
13268 (alpha_frame_init_saved_regs): New function.
13269 (alpha_frame_saved_pc): Use frame->extra_info.
13270 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13271 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13272 (init_extra_frame_info): Rename to...
13273 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13274 (alpha_print_extra_frame_info): New function.
13275 (alpha_frame_locals_address): Ditto.
13276 (alpha_frame_args_address): Ditto.
13277 (alpha_pop_frame): Use frame->extra_info.
13278 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13279 alpha_frame_args_address.
13280 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13281 (alpha_find_saved_regs): Remove prototype.
13282 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13283 (EXTRA_FRAME_INFO): Remove.
13284 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13285 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13287 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13289 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13290 (alpha_cannot_fetch_register): Ditto.
13291 (alpha_cannot_store_register): Ditto.
13292 (alpha_register_convertible): Ditto.
13293 (alpha_use_struct_convention): Ditto.
13294 * config/alpha/tm-alpha.h: Update copyright years.
13295 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13296 (INNER_THAN): Use core_addr_lessthan.
13297 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13298 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13299 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13300 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13301 (FRAME_CHAIN): Remove unnecessary cast.
13303 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13305 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13308 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13310 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13311 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13312 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13313 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13314 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13315 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13316 * x86-64-linux-nat.c: Ditto.
13318 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13320 * alpha-tdep.c (alpha_register_name): New function.
13321 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13322 (REGISTER_NAME): Define.
13324 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13326 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13328 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13330 * alpha-tdep.c: Update copyright years.
13331 (alpha_next_pc): New function.
13332 (alpha_software_single_step): Ditto.
13333 * config/alpha/tm-alpha.h: Add prototype for
13334 alpha_software_single_step.
13336 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13338 * alphabsd-nat.c: Update copyright years.
13339 (fill_gregset): Use regcache_collect.
13340 (fill_fpregset): Likewise.
13341 (fetch_inferior_registers): Only fetch integer registers
13342 if requested to do so.
13343 (store_inferior_registers): Only store integer registers
13344 if requested to do so.
13346 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13348 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13349 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13350 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13351 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13352 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13353 * config/arm/linux.mh (XDEPFILES): Delete.
13354 * config/arm/nbsd.mh (XDEPFILES): Delete.
13355 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13356 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13357 * config/i386/i386m3.mh (XDEPFILES): Delete.
13358 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13359 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13360 * config/i386/fbsd.mh (XDEPFILES): Delete.
13361 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13362 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13363 * config/i386/i386v4.mh (XDEPFILES): Delete.
13364 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13365 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13366 * config/i386/i386aix.mh (XDEPFILES): Delete.
13367 * config/i386/go32.mh (XDEPFILES): Delete.
13368 * config/i386/cygwin.mh (XDEPFILES): Delete.
13369 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13370 * config/i386/i386mach.mh (XDEPFILES): Delete.
13371 * config/i386/i386v32.mh (XDEPFILES): Delete.
13372 * config/i386/linux.mh (XDEPFILES): Delete.
13373 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13374 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13375 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13376 * config/i386/i386sco.mh (XDEPFILES): Delete.
13377 * config/i386/i386v.mh (XDEPFILES): Delete.
13378 * config/i386/nbsd.mh (XDEPFILES): Delete.
13379 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13380 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13381 * config/i386/symmetry.mh (XDEPFILES): Delete.
13382 * config/i386/obsd.mh (XDEPFILES): Delete.
13383 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13384 * config/ia64/linux.mh (XDEPFILES): Delete.
13385 * config/ia64/aix.mh (XDEPFILES): Delete.
13386 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13387 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13388 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13389 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13390 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13391 * config/m68k/linux.mh (XDEPFILES): Delete.
13392 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13393 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13394 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13395 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13396 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13397 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13398 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13399 * config/m88k/delta88.mh (XDEPFILES): Delete.
13400 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13401 * config/m88k/m88k.mh (XDEPFILES): Delete.
13402 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13403 * config/mips/linux.mh (XDEPFILES): Delete.
13404 * config/mips/irix6.mh (XDEPFILES): Delete.
13405 * config/mips/irix5.mh (XDEPFILES): Delete.
13406 * config/mips/irix4.mh (XDEPFILES): Delete.
13407 * config/mips/irix3.mh (XDEPFILES): Delete.
13408 * config/mips/decstation.mh (XDEPFILES): Delete.
13409 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13410 (NATDEPFILES): Move core-aout.o to here.
13411 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13412 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13413 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13414 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13415 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13416 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13417 * config/pa/hpux11.mh (XDEPFILES): Delete.
13418 * config/powerpc/aix.mh (XDEPFILES): Delete.
13419 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13420 * config/powerpc/linux.mh (XDEPFILES): Delete.
13421 * config/romp/rtbsd.mh: Rename XDEPFILES.
13422 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13423 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13424 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13425 * config/s390/s390.mh (XDEPFILES): Delete.
13426 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13427 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13428 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13429 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13430 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13431 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13432 * config/sparc/linux.mh (XDEPFILES): Delete.
13433 * config/vax/vaxult.mh (XDEPFILES): Delete.
13434 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13435 * Makefile.in (DEPFILES): Remove XDEPFILES.
13437 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13439 * utils.c (internal_verror): Fix comments, default is yes not no.
13440 Update queries to match. Default to quit and dump core.
13442 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13444 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13446 * defs.h, event-top.c, gdbcmd.h: Ditto.
13447 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13448 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13449 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13450 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13451 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13452 * mi/mi-main.c:Ditto.
13454 * stack.c, symfile.c: Update copyright.
13456 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13458 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13459 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13460 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13461 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13463 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13465 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13466 * gdbserver/low-lynx.c (myattach): Likewise.
13467 * gdbserver/low-nbsd.c (myattach): Likewise.
13468 * gdbserver/low-sim.c (myattach): Likewise.
13469 * gdbserver/low-sparc.c (myattach): Likewise.
13470 * gdbserver/low-sun3.c (myattach): Likewise.
13472 * gdbserver/low-linux.c (myattach): New function.
13474 * gdbserver/server.c (attach_inferior): New function.
13475 (main): Handle "--attach".
13477 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13479 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13482 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13484 * c-typeprint.c (is_type_conversion_operator): Add additional
13485 check for non-conversion operators.
13487 2002-01-15 Michael Snyder <msnyder@redhat.com>
13489 * linux-proc.c: Add "info proc" command, a la procfs.c.
13490 (read_mapping): New function, abstract and re-use code.
13491 (linux_find_memory_regions): Use new func read_mapping.
13492 (linux_info_proc_cmd): New function, implement "info proc".
13493 (_initialize_linux_proc): Add new command "info proc".
13495 2002-01-15 Michael Snyder <msnyder@redhat.com>
13497 * symfile.c (generic_load): Use bfd_map_over_sections method
13498 instead of manipulating bfd structure members directly.
13499 (add_section_size_callback): New function, bfd sections callback
13500 used by generic_load.
13501 (load_sections_callback): New function, bfd sections callback
13502 used by generic_load.
13504 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13506 [Based on work by Jim Blandy]
13507 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13508 (builtin_type_vec128): Export.
13509 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13511 (builtin_type_vec128): New builtin type for 128 bit vector
13513 (build_gdbtypes): Initialize builtin_type_v16qi and
13514 builtin_type_v8hi. Create the vec128 register builtin type
13516 (build_builtin_type_vec128): New function.
13517 (_initialize_gdbtypes): Register builtin_type_v16qi and
13518 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13519 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13520 AltiVec register to new builtin type.
13522 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13524 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13527 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13529 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13530 CLEAN_UP_REGISTER_VALUE.
13531 * regcache.c (supply_register): Update only call.
13533 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13535 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13536 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13537 a29k-*-vxworks* targets as obsolete.
13539 2002-01-14 Michael Snyder <msnyder@redhat.com>
13541 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13542 until we can resolve portability issues.
13543 * gregset.h: Remove references to fpxregs.
13544 * gcore.c (gcore_command): Initialize note_sec to NULL.
13546 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13548 * signals.c (target_signal_to_name): Rewrite. Only use
13549 signals[].name when in bounds and non-NULL.
13551 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13553 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13554 * signals.c (target_signal_to_name): Verify that SIG is within the
13555 bounds of the signals array.
13557 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13559 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13561 2002-01-13 Keith Seitz <keiths@redhat.com>
13563 * stack.c (print_frame_info_base): Print the frame's pc
13564 only if when print_frame_info_listing_hook is not defined.
13566 2002-01-13 Keith Seitz <keiths@redhat.com>
13568 * varobj.c (varobj_set_value): Make sure that there were no
13569 errors evaluating the object before attempting to set its
13571 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13572 so this offset adjustment is no longer necessary.
13573 (create_child): Don't set the error flag if the child is
13574 a CPLUS_FAKE_CHILD.
13575 (value_of_child): If value_fetch_lazy fails, return NULL
13576 so that callers will be notified that an error occurred.
13577 (c_value_of_variable): Delay check of variable's validity
13578 until later. We actually want all structs and unions to have
13580 Do not return "???" for variables which could not be evaluated.
13581 This error condition must be returned to the caller so that it
13582 can get the error condition from gdb.
13583 (cplus_name_of_child): Adjust index for vptr before figuring
13584 out the name of the child.
13585 (cplus_value_of_child): If a child's (real) parent is not valid,
13586 don't even bother trying to give a value for it. Just return
13587 an error. Change all instances in this function.
13588 (cplus_type_of_child): If our parent is one of the "fake"
13589 parents, we need to get at the type of the real parent, and
13590 derive the child's true type using this information.
13592 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13594 From 2002-01-09 John Marshall <johnm@falch.net>:
13595 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13596 sources.redhat.com, and tweak some related URLs which had
13597 suffered from linkrot.
13599 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13602 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13603 structures passed in registers.
13605 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13607 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13608 white space which prevented compilation. Reported by DSK
13609 <dsk@student.unsw.edu.au>.
13611 2002-01-11 Michael Snyder <msnyder@redhat.com>
13613 * symfile.c (build_section_addr_info_from_section_tab):
13614 Use bfd access method instead of manipulating bfd directly.
13615 (syms_from_objfile): Ditto.
13616 (simple_overlay_update_1): Ditto.
13617 (simple_overlay_update): Ditto.
13618 (generic_load): Ditto.
13619 (overlay_unmapped_address): FIXME comment, bfd access methods.
13620 (sections_overlap): FIXME comment, bfd access methods.
13621 (pc_in_mapped_range): FIXME comment, bfd access methods.
13622 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13623 (section_is_mapped): FIXME comment, bfd access methods.
13624 (section_is_overlay): FIXME comment, bfd access methods.
13626 * symfile.c (generic_load): Whitespace and long line cleanups.
13627 Remove duplicate variable, change several local variables to
13628 more appropriate data types.
13629 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13631 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13633 From Peter Schauer:
13634 * language.c (longest_local_hex_string_custom): Use phex_nz to
13635 convert NUM to a hex string.
13637 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13639 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13641 Update Copyright year.
13643 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13645 * language.c (longest_raw_hex_string): Delete unused function.
13647 2002-01-11 Petr Sorfa <petrs@caldera.com>
13649 * MAINTAINERS (write-after-approval): Add myself.
13650 * dwarf2read.c (read_tag_string_type): Handling of
13652 (read_tag_string_type): FORTRAN fix to prevent propagation of
13654 (set_cu_language): Handling of DW_LANG_Fortran95
13656 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13658 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13659 GETPID(inferior_ptid).
13660 (store_inferior_registers): Likewise.
13662 2002-01-10 Jason Merrill <jason@redhat.com>
13664 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13667 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13669 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13670 and bfd/elf32-sh-nbsd.c.
13672 2002-01-10 Michael Snyder <msnyder@redhat.com>
13674 * NEWS: Mention --pid and corefile/proc-id behavior change.
13676 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13677 * gcore.c: Include cli/cli-decode.h instead of command.h.
13679 * main.c (captured_main): Add new command line option "--pid".
13680 If the second command line argument (following the symbol-file)
13681 begins with a digit, try to attach to it before trying to open
13683 (print_gdb_help): Document the "--pid" argument.
13685 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13687 * completer.c (command_completer): New function.
13689 * completer.h <command_completer>: Add prototype.
13691 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13692 completer for the "help" command.
13694 2002-01-09 Jason Merrill <jason@redhat.com>
13696 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13698 2002-01-09 Michael Snyder <msnyder@redhat.com>
13700 * i386-linux-nat.c (fill_fpxregset): Make global.
13701 (store_fpxregset): Ditto.
13703 * gregset.h (gdb_fpxregset_t): Define.
13704 (supply_fpxregset): Prototype.
13705 (fill_fpxregset): Prototype.
13707 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13709 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13711 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13712 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13713 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13715 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13717 * MAINTAINERS: Update target maintainer rules so that any
13718 Maintainer can approve a tested patch for a maintenance-only
13721 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13723 * MAINTAINERS (write-after-approval): Add myself.
13725 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13728 2002-01-08 Michael Snyder <msnyder@redhat.com>
13730 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13731 real name of the executable, rather than the /proc name.
13733 2002-01-03 Michael Snyder <msnyder@redhat.com>
13735 Implement a "generate-core-file" command in gdb, save target state.
13736 * gcore.c: New file. Implement new command 'generate-core-file'.
13737 Save a corefile image of the current state of the inferior.
13738 * linux-proc.c: Add linux-specific code for saving corefiles.
13739 * target.h (struct target_ops): Add new target vectors for saving
13740 corefiles; to_find_memory_regions and to_make_corefile_notes.
13741 (target_find_memory_regions): New macro.
13742 (target_make_corefile_notes): New macro.
13743 * target.c (update_current_target): Inherit new target methods.
13744 (dummy_find_memory_regions): New place-holder method.
13745 (dummy_make_corefile_notes): New place-holder method.
13746 (init_dummy_target): Initialize new dummy target vectors.
13747 * exec.c (exec_set_find_memory_regions): New function.
13748 Allow the exec_ops vector for memory regions to be taken over.
13749 (exec_make_note_section): New function, target vector method.
13750 * defs.h (exec_set_find_memory_regions): Export prototype.
13751 * procfs.c (proc_find_memory_regions): New function, corefile method.
13752 (procfs_make_note_section): New function, corefile method.
13753 (init_procfs_ops): Set new target vector pointers.
13754 (find_memory_regions_callback): New function.
13755 (procfs_do_thread_registers): New function.
13756 (procfs_corefile_thread_callback): New function.
13757 * sol-thread.c (sol_find_memory_regions): New function.
13758 (sol_make_note_section): New function.
13759 (init_sol_thread_ops): Initialize new target vectors.
13760 * inftarg.c (inftarg_set_find_memory_regions): New function.
13761 Allow to_find_memory_regions vector to be taken over.
13762 (inftarg_set_make_corefile_notes): New function.
13763 Allow to_make_corefile_notes vector to be taken over.
13764 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13765 interface layer if not target_has_execution (may be a corefile).
13766 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13767 * config/sparc/sun4sol2.mh: Ditto.
13768 * config/alpha/alpha-linux.mh: Ditto.
13769 * config/arm/linux.mh: Ditto.
13770 * config/i386/x86-64linux.mh: Ditto.
13771 * config/ia64/linux.mh: Ditto.
13772 * config/m68k/linux.mh: Ditto.
13773 * config/mips/linux.mh: Ditto.
13774 * config/powerpc/linux.mh: Ditto.
13775 * config/sparc/linux.mh: Ditto.
13777 2002-01-07 Michael Snyder <msnyder@redhat.com>
13779 * arm-linux-nat.c: Remove references to regcache.c internal data
13780 (registers[] and register_valid[]).
13782 2002-01-07 Michael Snyder <msnyder@redhat.com>
13784 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13785 so that attaching to a pid will automatically read the process's
13786 symbol file and shlibs.
13787 * Makefile.in: Add rule for linux-proc.o.
13788 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13789 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13790 * config/arm/linux.mh: Ditto.
13791 * config/i386/linux.mh: Ditto.
13792 * config/i386/x86-64linux.mh: Ditto.
13793 * config/ia64/linux.mh: Ditto.
13794 * config/m68k/linux.mh: Ditto.
13795 * config/mips/linux.mh: Ditto.
13796 * config/powerpc/linux.mh: Ditto.
13797 * config/sparc/linux.mh: Ditto.
13799 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13801 * win32-nat.c: Add i386-tdep.h dependency.
13803 2002-01-07 Michael Snyder <msnyder@redhat.com>
13805 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13806 instead of bfd_get_arch_size. Don't bail out just because
13807 there's no exec_bfd.
13809 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13810 * p-valprint.c (pascal_object_print_value): Ditto.
13811 * somread.c (som_symtab_read): Ditto.
13812 * symfile.c (simple_free_overlay_region_table): Ditto.
13813 * valops.c (value_assign): Ditto.
13815 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13816 use tilde_expand and strerror for opening save-tracepoints file.
13818 * thread-db.c (thread_db_new_objfile): Indendation fix.
13820 * infptrace.c (GDB_MAX_ALLOCA): New define.
13821 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13822 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13823 can be overridden with whatever value is appropriate to the host).
13824 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13825 alloca to allocate potentially large buffer.
13826 * rs6000-nat.c (child_xfer_memory): Ditto.
13827 * symm-nat.c (child_xfer_memory): Ditto.
13828 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13830 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13832 From Nick Clifton <nickc@redhat.com>
13833 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13835 2002-01-07 Michael Snyder <msnyder@redhat.com>
13837 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13838 Don't use exec_bfd if it's NULL.
13840 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13842 * valops.c (value_arg_coerce): Fix formatting.
13844 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13846 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13847 * gnu-nat.c: Ditto.
13849 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13851 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13852 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13853 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13854 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13855 z8k-coff have not been multi-arched. Update z8k-coff build
13858 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13860 * MAINTAINERS: Mark a29k target as obsolete.
13861 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13862 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13864 * NEWS: Note that a29k targets are obsolete.
13865 * a29k-tdep.c: Mark as obsolete.
13866 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13867 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13868 a29k-*-vxworks* targets as obsolete.
13869 * remote-adapt.c: Obsolete.
13870 * remote-eb.c: Obsolete.
13871 * remote-mm.c: Obsolete.
13872 * remote-udi.c: Obsolete.
13873 * config/a29k/a29k-udi.mt: Obsolete.
13874 * config/a29k/a29k.mt: Obsolete.
13875 * config/a29k/tm-a29k.h: Obsolete.
13876 * config/a29k/tm-vx29k.h: Obsolete.
13877 * config/a29k/vx29k.mt: Obsolete.
13879 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13881 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13882 with BFD_ENDIAN_BIG.
13884 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13886 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13887 * configure, config.in: Re-generate.
13888 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13889 * defs.h: Do not include <endian.h>.
13891 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13893 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13894 * config.in: Regenerate.
13895 * configure.in: Update copyright years.
13896 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13897 * configure: Regenerate.
13898 * i386bsd-nat.c: Update copyright years.
13899 (fill_gregset): Use regcache_collect.
13900 (fetch_inferior_registers): Only fetch integer registers
13901 if requested to do so. Add support for XMM registers
13902 using PT_GETXMMREGS.
13903 (store_inferior_registers): Only store integer registers
13904 if requested to do so. Add support for XMM registers
13905 using PT_SETXMMREGS.
13906 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13907 (store_inferior_registers): Remove.
13908 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13909 (fetch_elfcore_registers): New function.
13910 (i386nbsd_elfcore_fns): New.
13911 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13912 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13914 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13915 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13916 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13917 * config/i386/tm-nbsd.h: Update copyright years.
13918 (HAVE_SSE_REGS): Define.
13919 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13920 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13921 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13922 (SIGCONTEXT_PC_OFFSET): Remove.
13923 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13925 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13927 * configure.tgt: Remove powerpc-*-macos* target.
13928 * config/m68k/xm-mpw.h: Delete file.
13929 * config/xm-mpw.h: Delete file.
13930 * ser-mac.c: Delete file.
13931 * mpw-make.sed: Delete file.
13932 * mpw-config.in: Delete file.
13933 * mac-xdep.c: Delete file.
13934 * mac-gdb.r: Delete file.
13935 * mac-defs.h: Delete file.
13936 * mac-nat.c: Delete file.
13937 * config/powerpc/macos.mh: Delete file.
13938 * config/powerpc/macos.mt: Delete file.
13939 * config/powerpc/nm-macos.h: Delete file.
13940 * config/powerpc/tm-macos.h: Delete file.
13941 * source.c (openp, open_source_file): Remove obsolete code.
13942 * top.c (gdb_readline): Ditto.
13943 * utils.c (query): Ditto.
13944 * event-top.c (display_gdb_prompt): Ditto.
13945 * Makefile.in (ser-mac.o): Delete obsolete target.
13948 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13950 * defs.h (BIG_ENDIAN): Delete macro definition.
13951 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13952 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13953 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13954 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13955 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13956 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13957 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13958 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13959 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13960 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13961 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13962 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13963 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13964 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13965 * gdbarch.c: Re-generate.
13967 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13969 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13972 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13974 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13976 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13978 * value.h (value_ptr): Delete typedef.
13980 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13982 * i386nbsd-nat.c: Update copyright years.
13983 Include i386-tdep.h.
13985 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13987 * stabsread.c: Update copyright years.
13989 From Debashis Mahata <debashis.mahata@wipro.com>:
13990 (read_struct_fields): Deal with Sun C compiler erroneous stab
13991 output for structs and unions.
13994 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13996 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13999 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14001 * cp-abi.c: Fix whitespace.
14002 (baseclass_offset): New wrapper function.
14003 * cp-abi.h (baseclass_offset): Add prototype.
14004 (struct cp_abi_ops): Add baseclass_offset pointer.
14006 * valops.c (vb_match): Move to...
14007 * gnu-v2-abi.c (vb_match): here.
14008 * valops.c (baseclass_offset): Move to...
14009 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14011 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14013 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14014 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14015 * hpacc-abi.c (init_hpacc_ops): Likewise.
14017 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14019 * valops.c (find_overload_match): Accept obj as a
14020 reference parameter. Update it before returning.
14021 * value.h (find_overload_match): Update prototype.
14022 * eval.c (evaluate_subexp_standard): Pass object to
14023 find_overload_match by reference.
14025 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14027 * valarith.c: Replace value_ptr with struct value pointer. Remove
14028 register attribute from value declarations.
14031 * scm-lang.c (scm_lookup_name): Ditto.
14033 2002-01-03 Michael Snyder <msnyder@redhat.com>
14035 Abstract the functionality of iterating over mapped memory
14036 regions into a general purpose iterator function.
14037 * procfs.c (iterate_over_mappings): New function, general purpose
14038 iterator for memory sections.
14039 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14040 (solib_mappings_callback): New function, callback for above.
14041 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14042 (info_mappings_callback): New function, callback for above.
14044 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14046 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14048 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14049 * i386-tdep.c: Include "elf-bfd.h".
14050 (process_note_abi_tag_sections): New function.
14051 (i386_gdbarch_init): Add code to recognize various OS/ABI
14054 * maint.c (_initialize_maint_cmds): Add missing \ in
14057 For older changes see ChangeLog-2001
14063 version-control: never