1 2002-12-03 H.J. Lu (hjl@gnu.org)
3 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
4 (create_breakpoints): Make sure the addr_string field is not
7 2002-12-03 Andrew Cagney <ac131313@redhat.com>
9 * sparc-nat.c (fetch_inferior_registers)
10 (store_inferior_registers): Add comment on problem of LWP vs
13 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
14 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
15 (lin_lwp_store_registers): Remove.
16 (init_lin_lwp_ops): Use fetch_inferior_registers
17 and store_inferior_registers directly.
18 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
19 (store_inferior_registers): Likewise.
22 2002-12-03 Andrew Cagney <ac131313@redhat.com>
24 * frame.h (get_frame_id): Convert to a function.
25 (null_frame_id, frame_id_p): Declare.
26 (frame_id_eq, frame_id_inner): Declare.
27 (frame_id_build): New function.
28 * frame.c (get_frame_id): Update. Use null_frame_id.
29 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
31 (null_frame_id, frame_id_p): Define.
32 (frame_id_eq, frame_id_inner): Define.
33 (frame_id_build): New function.
34 * varobj.c (varobj_create): Update.
35 (varobj_update): Update.
36 * valops.c (value_assign): Update.
37 (new_root_variable): Update.
38 * infrun.c (save_inferior_status): Update.
39 * breakpoint.c (watch_command_1): Update.
41 2002-12-03 J. Brobecker <brobecker@gnat.com>
43 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
46 2002-12-03 Andrew Cagney <cagney@redhat.com>
48 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
51 * PROBLEMS: Mention PR gdb/725.
53 2002-12-03 Andreas Schwab <schwab@suse.de>
55 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
57 2002-12-02 Adam Fedor <fedor@gnu.org>
58 Klee Dienes <kdienes@apple.com>
60 * objc-lang.c (objc_printstr): Add width arg to match
62 (compare_selectors): Add 'const' to arg types.
63 (compare_classes): Likewise.
64 (find_imps): Cast msym pointer to avoid compiler warning.
65 (print_object_command): Validate the address before
66 passing it to the print routine.
67 (find_objc_msgcall_submethod): Change function argument to
69 * objc-lang.h: Add 'extern' to all function declarations.
70 (value_nsstring): Add declaration.
72 2002-12-02 J. Brobecker <brobecker@gnat.com>
74 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
75 Fixes a build failure on HP/UX.
77 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
79 (hpread_has_name): Advance declaration to avoid a compilation warning.
80 (pst_syms_count): Add missing variable type. By change, the compiler
81 was defaulting to int, which seems a good choice. Fixes a compilation
83 (pst_syms_size): Likewise.
85 2002-12-02 J. Brobecker <brobecker@gnat.com>
87 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
88 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
89 later to set the proper gdbarch methods depending on the osabi.
90 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
92 2002-12-02 J. Brobecker <brobecker@gnat.com>
94 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
95 * osabi.c (gdb_osabi_name): Add strings images for the two new
97 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
99 2002-12-02 Andrew Cagney <ac131313@redhat.com>
101 * MAINTAINERS (Java): Global maintainers are responible for Java.
102 (Past Maintainers): Mention both Anthony Green and Per Bothner as
103 part Java maintainers.
105 2002-12-02 J. Brobecker <brobecker@gnat.com>
107 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
108 Fixes a compilation failure on AiX.
110 2002-12-02 J. Brobecker <brobecker@gnat.com>
112 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
113 why aix-thread.o is not listed.
115 2002-12-01 Andrew Cagney <ac131313@redhat.com>
117 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
118 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
119 * gdbarch.h, gdbarch.c: Re-generate.
120 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
121 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
122 * config/pa/tm-hppa.h, frame.h: Update.
123 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
124 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
125 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
126 * cris-tdep.c, alpha-tdep.c: Update.
127 * frame.c (set_unwind_by_pc, create_new_frame): Use either
128 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
129 (get_prev_frame): Ditto.
131 2002-11-30 Andrew Cagney <cagney@redhat.com>
133 * exec.c (xfer_memory): Replace boolean with int.
134 * p-exp.y: Use 0 instead of false.
135 * corelow.c (gdb_check_format): Change return type to int from
137 * utils.c: Don't include <curses.h> or <term.h> first.
139 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
141 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
142 (m68hc11_register_byte): Remove.
143 (m68hc11_gdbarch_init): Don't set the above.
145 2002-11-29 Andrew Cagney <cagney@redhat.com>
147 * remote-mips.c (mips_initialize): Force a selected frame rebuild
148 by calling get_selected_frame.
149 * ocd.c (ocd_start_remote): Use get_selected frame instead of
150 set_current_frame, create_new_frame, select_frame and
152 * remote-e7000.c (e7000_start_remote): Ditto.
153 * remote-mips.c (common_open): Ditto
154 * remote-rdp.c (remote_rdp_open): Ditto.
156 2002-11-29 Andreas Schwab <schwab@suse.de>
158 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
159 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
160 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
161 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
162 read_memory_unsigned_integer instead of read_memory_integer when
163 dealing with addresses and instruction opcodes.
164 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
165 (m68k_linux_frame_saved_pc): Likewise.
167 2002-11-29 Andrew Cagney <ac131313@redhat.com>
169 * stack.c (selected_frame, select_frame): Move from here ...
170 * frame.c (selected_frame, select_frame): ... to here. Include
172 * Makefile.in (frame.o): Update dependencies.
173 * frame.c (get_selected_frame): New function.
174 * frame.h (get_selected_frame): Declare.
175 (deprecated_selected_frame): Rename selected_frame.
176 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
177 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
178 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
179 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
180 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
181 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
182 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
183 * z8k-tdep.c, cli/cli-cmds.c: Update.
185 2002-11-29 Andrew Cagney <ac131313@redhat.com>
187 * frame.h (get_selected_block): Add comments.
189 2002-11-28 Andrew Cagney <ac131313@redhat.com>
191 * frame.c (pc_notcurrent): New function.
192 (find_frame_sal): New function.
193 * frame.h (find_frame_sal): Declare.
194 (struct symtab_and_line): Add opaque declaration.
195 * stack.c (print_frame_info_base): Use find_frame_sal instead of
198 * ada-lang.c (find_printable_frame): Ditto.
200 2002-11-28 J. Brobecker <brobecker@gnat.com>
202 * configure.in: Check that the pthdebug library is recent enough
203 before enabling thread support on native AiX.
204 * configure: Regenerate.
206 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
207 from the list of object files as it is now appended by configure
208 if thread support is enabled.
209 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
210 if thread support is enabled.
212 2002-11-28 Andrew Cagney <cagney@redhat.com>
214 * stack.c (get_selected_block): In-line get_current_block.
215 * frame.h (get_current_block): Delete declaration.
216 * blockframe.c (get_current_block): Delete function.
218 2002-11-28 Andrew Cagney <ac131313@redhat.com>
220 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
221 USE_GENERIC_DUMMY_FRAMES.
222 * gdbarch.h, gdbarch.c: Regenerate.
223 * valops.c, frame.c: Update.
224 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
225 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
226 * config/pa/tm-hppa.h, blockframe.c: Update.
227 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
228 * m68k-tdep.c, alpha-tdep.c: Ditto.
230 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
231 * mips-tdep.c: Ditto.
233 2002-11-27 Andrew Cagney <ac131313@redhat.com>
235 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
236 (USE_GENERIC_DUMMY_FRAMES): Default to true.
237 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
238 * gdbarch.c, gdbarch.h: Re-generate.
239 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
240 (CALL_DUMMY_LOCATION): Delete macro definition.
241 (PC_IN_CALL_DUMMY): Delete macro definitions.
243 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
244 default is already generic_pc_in_call_dummy.
245 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
246 * v850-tdep.c (v850_gdbarch_init): Ditto.
247 * sh-tdep.c (sh_gdbarch_init): Ditto.
248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
249 * mips-tdep.c (mips_gdbarch_init): Ditto.
250 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
252 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
253 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
254 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
255 * avr-tdep.c (avr_gdbarch_init): Ditto.
257 * arm-tdep.c (arm_gdbarch_init): Do not set
258 use_generic_dummy_frames, default is already 1.
259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
260 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
261 * v850-tdep.c (v850_gdbarch_init): Ditto.
262 * sh-tdep.c (sh_gdbarch_init): Ditto.
263 * s390-tdep.c (s390_gdbarch_init): Ditto.
264 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
265 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
266 * mips-tdep.c (mips_gdbarch_init): Ditto.
267 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
269 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
270 * i386-tdep.c (i386_gdbarch_init): Ditto.
271 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
272 * frv-tdep.c (frv_gdbarch_init): Ditto.
273 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
274 * cris-tdep.c (cris_gdbarch_init): Ditto.
275 * avr-tdep.c (avr_gdbarch_init): Ditto.
277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
278 call_dummy_location, default is already AT_ENTRY_POINT.
279 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
280 * v850-tdep.c (v850_gdbarch_init): Ditto.
281 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
282 * sh-tdep.c (sh_gdbarch_init): Ditto.
283 * s390-tdep.c (s390_gdbarch_init): Ditto.
284 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
285 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
286 * mips-tdep.c (mips_gdbarch_init): Ditto.
287 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
289 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
290 * i386-tdep.c (i386_gdbarch_init): Ditto.
291 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
292 * frv-tdep.c (frv_gdbarch_init): Ditto.
293 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
294 * cris-tdep.c (cris_gdbarch_init): Ditto.
295 * avr-tdep.c (avr_gdbarch_init): Ditto.
296 * arm-tdep.c (arm_gdbarch_init): Ditto.
297 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
299 2002-11-28 Andrew Cagney <cagney@redhat.com>
301 * frame.h: Update comments on set_current_frame, create_new_frame,
302 flush_cached_frames, reinit_frame_cache, select_frame and
305 2002-11-27 Andrew Cagney <cagney@redhat.com>
307 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
308 deprecated pc_in_call_dummy function.
309 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
310 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
311 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
312 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
313 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
315 2002-11-26 Martin M. Hunt <hunt@redhat.com>
317 * Makefile.in: Remove Tix dependencies.
318 * acinclude.m4: Ditto.
320 * configure.in: Ditto.
321 * configure: Regenerated.
323 2002-11-26 Andrew Cagney <ac131313@redhat.com>
325 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
326 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
327 * gdbarch.c: Re-generate.
329 2002-11-26 Andrew Cagney <ac131313@redhat.com>
331 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
332 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
333 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
334 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
335 pc_in_call_dummy_at_entry_point.
336 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
337 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
338 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
339 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
340 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
341 pc_in_call_dummy_on_stack.
342 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
343 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
344 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
345 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
346 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
348 2002-11-26 Andrew Cagney <ac131313@redhat.com>
350 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
351 pc_in_call_dummy_before_text_end
352 (deprecated_pc_in_call_dummy_after_text_end): Rename
353 pc_in_call_dummy_after_text_end.
354 (deprecated_pc_in_call_dummy_on_stack): Rename
355 pc_in_call_dummy_on_stack.
356 (deprecated_pc_in_call_dummy_at_entry_point): Rename
357 pc_in_call_dummy_at_entry_point.
358 * m68k-tdep.c (m68k_gdbarch_init): Update.
359 * s390-tdep.c (s390_gdbarch_init): Update.
360 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
361 * vax-tdep.c (vax_gdbarch_init): Update.
362 * sparc-tdep.c (sparc_gdbarch_init): Update.
363 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
364 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
365 * i386-tdep.c (i386_gdbarch_init): Update.
366 * frv-tdep.c (frv_gdbarch_init): Update.
367 * cris-tdep.c (cris_gdbarch_init): Update.
368 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
369 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
370 (deprecated_pc_in_call_dummy_after_text_end)
371 (deprecated_pc_in_call_dummy_on_stack)
372 (deprecated_pc_in_call_dummy_at_entry_point): Update.
373 * alpha-tdep.c (alpha_gdbarch_init): Update.
375 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
377 * acconfig.h (HAVE_PREAD64): Add.
378 * configure.in: Check for pread64.
379 * config.in: Regenerated.
380 * configure: Regenerated.
381 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
382 * linux-proc.c (linux_proc_xfer_memory): New function.
383 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
385 2002-11-25 David Carlton <carlton@math.stanford.edu>
387 * dwarf2read.c (scan_partial_symbols): Descend into namespace
390 2002-11-25 Andrew Cagney <ac131313@redhat.com>
392 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
393 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
395 2002-11-25 Jim Blandy <jimb@redhat.com>
397 * symfile.c (init_objfile_sect_indices): New function.
398 (default_symfile_offsets): Move the section-index-initializing
399 stuff into init_objfile_sect_indices, and call that.
401 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
402 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
404 * symfile.c (syms_from_objfile): Adjust indentation.
406 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
407 || info_verbose isn't true.
409 2002-11-24 Andrew Cagney <ac131313@redhat.com>
411 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
412 default to get_frame_base.
413 * gdbarch.h, gdbarch.c: Regenerate.
414 * arch-utils.c (default_frame_address): Delete function.
415 * arch-utils.h (default_frame_address): Delete declaration
417 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
419 * varobj.c (find_frame_addr_in_frame_chain):
420 Use get_frame_base instead of FRAME_FP,
423 2002-11-19 Andrew Cagney <ac131313@redhat.com>
425 * frame.h (FRAME_FP): Delete macro.
426 (get_frame_base): New function declaration.
427 * frame.c (get_frame_base): New function.
428 (get_frame_id): Use ->frame.
429 (frame_find_by_id): Rewrite to use get_frame_id.
430 * blockframe.c: Use get_frame_base instead of FRAME_FP.
431 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
432 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
433 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
434 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
435 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
436 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
438 2002-11-24 Andrew Cagney <ac131313@redhat.com>
440 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
442 2002-11-24 Andrew Cagney <ac131313@redhat.com>
444 * frame.c (set_unwind_by_pc): Revert change below, use
446 (get_prev_frame): Ditto.
448 2002-11-24 Andrew Cagney <ac131313@redhat.com>
450 * dummy-frame.c (pc_in_dummy_frame): New function.
451 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
452 (find_dummy_frame): Update comment.
453 (generic_pop_current_frame): Use get_frame_type.
454 * dummy-frame.h (pc_in_dummy_frame): Declare.
455 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
456 (create_new_frame): Use pc_in_dummy_frame.
457 (get_prev_frame): Use pc_in_dummy_frame.
458 (frame_saved_regs_register_unwind): Use get_prev_frame.
459 (deprecated_generic_get_saved_register): Use get_prev_frame.
461 2002-11-23 Andrew Cagney <ac131313@redhat.com>
463 * blockframe.c (find_frame_addr_in_frame_chain): Move function
465 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
466 (varobj_create): Note that frame ID should be used.
467 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
469 2002-11-23 Andrew Cagney <ac131313@redhat.com>
471 * breakpoint.c: Include "gdb_assert.h".
472 (deprecated_frame_in_dummy): Assert that generic dummy frames are
474 * Makefile.in (breakpoint.o): Update dependencies.
475 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
476 deprecated_frame_in_dummy.
477 * stack.c (print_frame_info_base): Ditto.
479 (print_frame_info_base): Ditto. Delete dead code.
481 2002-11-23 Andreas Schwab <schwab@suse.de>
483 * Makefile.in (m68k_tdep_h): Define.
484 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
485 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
486 * m68k-tdep.c: Move register number enum ...
487 * m68k-tdep.h: ... to this new file and rename the constants from
488 E_* to M68K_*. All uses changed.
489 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
490 * abug-rom.c: Include "m68k-tdep.h". Use
491 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
492 * cpu32bug-rom.c: Likewise.
493 * dbug-rom.c: Likewise.
494 * m68k-tdep.c: Likewise.
495 * m68klinux-nat.c: Likewise.
496 * remote-est.c: Likewise.
497 * rom68k-rom.c: Likewise.
498 * config/m68k/tm-linux.h: Likewise.
500 2002-11-23 Andrew Cagney <ac131313@redhat.com>
502 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
503 dummy frame initialization code.
504 * mips-tdep.c (mips_gdbarch_init): Ditto.
506 2002-11-22 Christopher Faylor <cgf@redhat.com>
508 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
511 2002-11-22 Andrew Cagney <ac131313@redhat.com>
513 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
514 to default_frame_address.
515 * gdbarch.h, gdbarch.c: Re-generate.
517 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
518 or frame_locals_address to default_frame_address.
519 * m68k-tdep.c (m68k_gdbarch_init): Update.
520 * i386-tdep.c (i386_gdbarch_init): Update.
521 * frv-tdep.c (frv_gdbarch_init): Update.
522 * sh-tdep.c (sh_gdbarch_init): Update.
523 * v850-tdep.c (v850_gdbarch_init): Update.
524 * sparc-tdep.c (sparc_gdbarch_init): Update.
525 * mips-tdep.c (mips_gdbarch_init): Update.
526 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
527 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
530 * cris-tdep.c (cris_frame_args_address): Delete function.
531 (cris_frame_locals_address): Delete function.
532 (cris_gdbarch_init): Do not set frame_args_address or
533 frame_locals_address.
535 2002-11-22 Michael Snyder <msnyder@redhat.com>
537 * thread-db.c (thread_db_load): Tell the user what's going on
538 if dlopen fails on libthread_db.
540 2002-11-23 Andreas Schwab <schwab@suse.de>
542 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
543 invariant return values.
545 2002-11-22 Andreas Schwab <schwab@suse.de>
547 * valops.c (value_slice): Move declaration of `offset' to avoid
550 2002-11-22 Christopher Faylor <cgf@redhat.com>
552 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
553 (struct so_stuff): Add end_addr field.
554 (register_loaded_dll): Calculate and store end address of loaded dll.
555 (solib_address): New function.
556 (child_solib_loaded_library_pathname): Pass carefully constructed
557 section info to safe_symbol_file_add rather than ignoring it.
558 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
560 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
561 (child_create_inferior): Fix a compiler warning.
562 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
563 (solib_address): Declare new function.
565 2002-11-22 Andreas Schwab <schwab@suse.de>
567 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
570 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
572 * maint.c (_initialize_maint_cmds): Fix typo. From
573 Francesco Potorti` <pot@gnu.org>.
575 2002-11-21 Andrew Cagney <cagney@redhat.com>
577 * mips-tdep.c (mips_dump_tdep): Delete references to
578 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
579 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
580 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
581 * printcmd.c (build_address_symbolic): Delete calls to
582 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
583 (address_info): Ditto.
586 2002-11-19 Klee Dienes <kdienes@apple.com>
587 Adam Fedor <fedor@gnu.org>
589 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
590 the ability to explicitly specify the quote characters and word
591 break characters; if NULL is specified for either, use the old
592 behavior of using the characters used by the completer.
593 (skip_chars): New function. Convenience wrapper around
594 skip_quoted_chars to provide the original skip_chars behavior.
595 * completer.h (skip_quoted_chars): Add prototype.
597 2002-11-19 Andrew Cagney <ac131313@redhat.com>
599 Problems reported by Paul Eggert.
600 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
602 2002-11-19 Andreas Schwab <schwab@suse.de>
604 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
605 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
606 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
607 (m68k_linux_frame_saved_pc): Move to ...
608 * m68klinux-tdep.c: ... here. New file.
609 * Makefile.in (m68klinux-tdep.o): Add dependencies.
610 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
612 2002-11-19 Adam Fedor <fedor@gnu.org>
614 * objc-exp.y: Revert to old skip_quoted usage.
616 2002-11-19 Adam Fedor <fedor@gnu.org>
618 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
619 (objc_lang_h): Define.
620 (YYFILES): Add objc-exp.tab.c.
621 (local-maintainer-clean): Remove objc-exp.tab.c.
622 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
624 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
626 * p-exp.y (typecast rule): Add automatic dereference of
627 pascal classes if needed.
628 (THIS): Set current_type.
629 Automatically dereference pascal classes.
630 (typebase rule): Add ^typebase recognition.
632 2002-11-18 Adam Fedor <fedor@gnu.org>
634 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
635 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
636 (op_name): Handle OP_OBJC_SELF.
637 * Makefile.in (expprint.o): Add additional depends.
639 2002-11-18 Adam Fedor <fedor@gnu.org>
641 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
642 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
643 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
644 * objc-exp.y: Likewise.
646 2002-11-18 Adam Fedor <fedor@gnu.org>
648 * gdb/parser-defs.h: (struct objc_class_str): New structure
649 for parsing ObjC classes.
651 2002-11-18 Andrew Cagney <ac131313@redhat.com>
653 * stack.c (frame_relative_level): Copy function from here ...
654 * frame.c (frame_relative_level): ...to here.
656 2002-11-18 Andrew Cagney <ac131313@redhat.com>
658 * frame.h (enum frame_type): Define.
659 (get_frame_type): Declare.
660 (struct frame_info): Add field `type'. Delete field
661 signal_handler_caller.
662 (deprecated_set_frame_signal_handler_caller): Declare.
663 * frame.c (get_frame_type): New function.
664 (deprecated_set_frame_type): New function.
665 (create_new_frame): Set the frame's type.
666 (get_prev_frame): Similar.
667 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
668 * s390-tdep.c: Ditto.
669 * m68klinux-nat.c: Ditto.
670 * ns32k-tdep.c: Ditto.
671 * x86-64-linux-tdep.c: Ditto.
673 * rs6000-tdep.c: Ditto.
674 * ppc-linux-tdep.c: Ditto.
675 * i386-interix-tdep.c: Ditto.
676 * mips-tdep.c: Ditto.
677 * m68k-tdep.c: Ditto.
678 * hppa-tdep.c: Ditto.
679 * ia64-tdep.c: Ditto.
680 * cris-tdep.c: Ditto.
682 * alpha-tdep.c: Ditto.
683 * i386-tdep.c: Ditto.
686 * blockframe.c: Update.
687 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
688 deprecated_set_frame_type instead of signal_handler_caller.
689 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
690 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
691 * breakpoint.h: Delete FIXME suggesting get_frame_type.
693 2002-11-18 Klee Dienes <kdienes@apple.com>
695 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
697 2002-11-18 Klee Dienes <kdienes@apple.com>
699 * buildsym.c (pop_context): Add comment.
701 2002-11-18 Klee Dienes <kdienes@apple.com>
703 * buildsym.h (pop_context): Convert to function, defined in
705 * buildsym.c: Include gdb_assert.h.
706 (pop_context): Implement as C function. Add check for stack
708 * dbxread.c (process_one_symbol): Complain and stop processing
709 that symbol if we are already at the top of the context stack for
710 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
711 when processing N_RBRAC.
713 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
715 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
717 (struct target_waitstatus): Add opaque definition.
718 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
719 * exec.c (init_exec_ops): Likewise.
720 * fork-child.c (clone_and_follow_inferior): Remove.
721 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
722 * inferior.h (clone_and_follow_inferior): Remove prototype.
723 * infrun.c (follow_fork_mode_both): Remove.
724 (follow_fork_mode_kind_names): Remove commented out "both".
725 (follow_inferior_fork): Remove follow_fork_mode_both support.
726 * inftarg.c (child_clone_and_follow_inferior): Remove.
727 (child_post_follow_inferior_by_clone): Remove.
728 (init_child_ops): Don't set to_clone_and_follow_inferior
729 or to_post_follow_inferior_by_clone.
730 * target.c (default_clone_and_follow_inferior): Remove.
731 (cleanup_target): Don't set to_clone_and_follow_inferior
732 or to_post_follow_inferior_by_clone.
733 (find_default_clone_and_follow_inferior): Remove.
734 (init_dummy_target): Don't set to_clone_and_follow_inferior.
735 (debug_to_clone_and_follow_inferior): Remove.
736 (debug_to_post_follow_inferior_by_clone): Remove.
737 (setup_target_debug): Don't set to_clone_and_follow_inferior
738 or to_post_follow_inferior_by_clone.
739 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
740 and to_post_follow_inferior_by_clone.
741 (child_clone_and_follow_inferior): Remove prototype.
742 (child_post_follow_inferior_by_clone): Remove prototype.
743 (target_clone_and_follow_inferior): Remove macro.
744 (target_post_follow_inferior_by_clone): Remove macro.
745 (find_default_clone_and_follow_inferior): Remove prototype.
747 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
749 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
750 inferior_has_vforked, and inferior_has_execd instead of
751 target_has_forked, target_has_vforked, and target_has_execd.
752 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
753 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
754 (CHILD_WAIT): Define.
755 (child_wait): Add prototype.
756 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
758 (hpux_has_vforked): Likewise, from child_has_vforked.
759 (hpux_has_execd): Likewise, from child_has_execd.
760 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
761 (not_same_real_pid, child_wait): New, copied from inftarg.c.
762 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
763 and hpux_has_syscall_event instead of the target hooks.
764 * infrun.c (inferior_has_forked, inferior_has_vforked)
765 (inferior_has_execd): New functions.
766 * inftarg.c (not_same_real_pid): Remove.
767 (child_wait): Remove references to not_same_real_pid,
768 target_has_forked, target_has_vforked, target_has_execd,
769 and target_has_syscall_event.
770 (child_has_forked, child_has_vforked, child_has_execd)
771 (child_has_syscall_event): Remove.
772 (init_child_ops): Remove references to child_has_forked,
773 child_has_vforked, child_has_execd, and child_has_syscall_event.
774 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
775 (hpux_has_vforked): Likewise, from child_has_vforked.
776 (hpux_has_execd): Likewise, from child_has_execd.
777 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
778 * target.c (cleanup_target): Remove references to
779 to_has_forked, to_has_vforked, to_has_execd, and
780 to_has_syscall_event.
781 (update_current_target): Likewise.
782 (setup_target_debug): Likewise.
783 (debug_to_has_forked): Remove.
784 (debug_to_has_vforked): Remove.
785 (debug_to_has_execd): Remove.
786 (debug_to_has_syscall_event): Remove.
787 * target.h (struct target_ops): Remove to_has_forked.
788 to_has_vforked, to_has_execd, and to_has_syscall_event.
789 (child_has_forked, child_has_vforked, child_has_execd)
790 (child_has_syscall_event): Remove prototypes.
791 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
793 (target_has_forked, target_has_vforked, target_has_execd)
794 (target_has_syscall_event): Remove macros.
796 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
798 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
799 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
800 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
801 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
802 * target.c (cleanup_target): Remove reference to
803 to_can_follow_vfork_prior_to_exec.
804 (update_current_target): Likewise.
805 (debug_to_can_follow_vfork_prior_to_exec): Remove.
806 (setup_target_debug): Remove reference to
807 to_can_follow_vfork_prior_to_exec.
808 * target.h (struct target_ops): Remove
809 to_can_follow_vfork_prior_to_exec.
810 (child_can_follow_vfork_prior_to_exec): Remove prototype.
811 (target_can_follow_vfork_prior_to_exec): Remove definition.
812 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
814 * infrun.c (follow_vfork_when_exec): Remove.
815 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
816 (follow_exec): Likewise.
817 (handle_inferior_event): Likewise.
818 (keep_going): Likewise.
820 2002-11-15 Andrew Cagney <cagney@redhat.com>
822 * frame.c (generic_unwind_get_saved_register): Make static.
823 * frame.h (generic_unwind_get_saved_register): Delete declaration.
824 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
825 defaults to generic_unwind_get_saved_register.
826 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
827 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
828 * frv-tdep.c (frv_gdbarch_init): Ditto.
829 * i386-tdep.c (i386_gdbarch_init): Ditto.
830 * s390-tdep.c (s390_gdbarch_init): Ditto.
831 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
832 * v850-tdep.c (v850_gdbarch_init): Ditto.
833 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
834 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
835 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
837 2002-11-15 Andrew Cagney <cagney@redhat.com>
839 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
842 2002-11-15 Andrew Cagney <cagney@redhat.com>
844 * frame.h (sigtramp_saved_pc): Delete declaration.
845 * blockframe.c (sigtramp_saved_pc): Delete function.
846 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
847 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
848 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
849 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
851 2002-11-15 Andrew Cagney <ac131313@redhat.com>
853 * frame.c (frame_pc_unwind): New function.
854 (frame_saved_regs_pc_unwind): New function.
855 (frame_register_unwind): Pass unwind_cache instead of
856 register_unwind_cache.
857 (set_unwind_by_pc): Add unwind_pc parameter, set.
858 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
859 (get_prev_frame): Ditto.
860 * frame.h (frame_pc_unwind_ftype): Declare.
861 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
862 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
863 (frame_pc_unwind): Declare.
864 * dummy-frame.c (dummy_frame_pc_unwind): New function.
865 (struct dummy_frame): Add comment mentioning that values are for
867 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
868 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
869 (generic_file_frame_chain_valid): Ditto.
870 * stack.c (frame_info): Ditto.
872 2002-11-15 David Carlton <carlton@math.stanford.edu>
874 * linespec.c (locate_first_half): New function.
875 (decode_line_1): Move code into locate_first_half.
877 2002-11-15 Andrew Cagney <ac131313@redhat.com>
879 * complaints.h: Add comment explaining how to eliminate a
880 deprecated_complain call.
881 * complaints.h: Fix spelling errors.
883 2002-11-15 David Carlton <carlton@math.stanford.edu>
885 * printcmd.c: Remove #include "disasm.h".
887 2002-11-14 Andrew Cagney <ac131313@redhat.com>
889 * frame.h: Move the most relevant interface functions to the start
892 2002-11-14 Andrew Cagney <ac131313@redhat.com>
894 * regcache.h (deprecated_registers): Rename registers.
895 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
896 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
897 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
898 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
899 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
900 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
901 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
902 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
903 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
904 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
905 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
908 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
910 * utils.c (gdb_realpath): Add comment mentioning realpath with a
913 2002-11-13 Andrew Cagney <cagney@redhat.com>
915 * regcache.h (deprecated_read_register_bytes): Rename
917 (deprecated_write_register_bytes): Rename write_register_bytes.
918 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
919 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
920 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
921 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
922 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
923 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
924 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
925 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
926 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
927 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
928 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
929 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
930 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
931 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
933 2002-11-13 Jim Blandy <jimb@redhat.com>
935 * findvar.c (read_var_value): Doc fix.
937 2002-11-13 Andrew Cagney <cagney@redhat.com>
939 * regcache.c (struct regcache): Replace passthough_p with
941 (regcache_xmalloc): Initialize readonly_p.
942 (build_regcache): Initialize readonly_p.
943 (regcache_save): New function.
944 (regcache_restore): New function.
945 (regcache_cpy): Re-implement using regcache_save and
947 (regcache_raw_read): Update.
948 (regcache_cooked_read): When a read-only cache, checked for cached
949 pseudo register values.
950 (regcache_raw_write): Assert that the cache is not read-only.
951 Remove code handling a non-passthrough cache.
952 * regcache.h (regcache_save): Declare.
953 (regcache_restore): Declare.
955 2002-11-13 Andrew Cagney <cagney@redhat.com>
957 * regcache.c (struct regcache_descr): Add fields
958 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
959 (init_legacy_regcache_descr): Compute the size of a cooked
960 register cache and then assign that to sizeof_raw_registers. Set
961 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
962 (init_legacy_regcache_descr): Ditto.
964 2002-11-13 Andrew Cagney <cagney@redhat.com>
966 * regcache.c (register_buffer): Move to near start of file, update
968 (regcache_raw_read): Use.
969 (regcache_raw_write): Use.
970 (struct regcache): Rename raw_registers to registers and
971 raw_register_valid_p to register_valid_p.
972 (regcache_xmalloc): Update.
973 (regcache_xfree): Update.
974 (register_buffer): Update.
975 (regcache_cpy): Update.
976 (regcache_cpy_no_passthrough): Update.
977 (regcache_valid_p): Update.
978 (deprecated_grub_regcache_for_registers): Update.
979 (deprecated_grub_regcache_for_register_valid): Update.
980 (set_register_cached): Update.
981 (regcache_raw_write): Update.
983 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
985 * p-exp.y (name_not_typename): Use copy_name to
986 set current_type variable for fields of THIS.
988 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
990 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
991 * monitor.c (init_base_monitor_ops): Likewise.
992 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
993 * remote-array.c (init_array_ops): Likewise.
994 * remote-e7000.c (init_e7000_ops): Likewise.
995 * remote-es.c (init_es1800_ops): Likewise.
996 (init_es1800_child_ops): Likewise.
997 * remote-rdp.c (init_remote_rdp_ops): Likewise.
998 * remote-sim.c (init_gdbsim_ops): Likewise.
999 * remote-st.c (init_st2000_ops): Likewise.
1000 * sol-thread.c (init_sol_core_ops): Likewise.
1001 (init_sol_thread_ops): Likewise.
1002 * v850ice.c (init_850ice_ops): Likewise.
1003 * win32-nat.c (init_child_ops): Likewise.
1004 * wince.c (init_child_ops): Likewise.
1006 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1008 * utils.c (gdb_realpath): Make rp a constant pointer.
1010 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1012 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1013 a constant buffer; cannonicalize_file_name(); realpath() with a
1014 pathconf() defined buffer, xstrdup().
1016 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1018 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1019 to hang2.C; hang3.c to hang3.C.
1021 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1023 * findvar.c (read_var_value): Reenable TLS code.
1025 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1026 Jim Blandy <jimb@redhat.com>
1028 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1029 * target.c (update_current_target): Add
1030 to_get_thread_local_address.
1031 * target.h (to_get_thread_local_address): Export.
1032 (target_get_thread_local_address): Define.
1033 (target_get_thread_local_address_p): Define.
1034 * thread-db.c: Include solib-svr4.h.
1035 (td_thr_tls_get_addr_p): Define.
1036 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1037 (thread_db_get_thread_local_address): New function.
1038 (init_thread_db_ops): Initialize to_get_thread_local_address.
1039 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1040 * configure: Regenerate.
1041 * config.in: Regenerate.
1043 2002-11-11 David Carlton <carlton@math.stanford.edu>
1045 * linespec.c (set_flags): New function.
1046 (decode_line_1): Move code into set_flags.
1048 2002-11-11 David Carlton <carlton@math.stanford.edu>
1050 * linespec.c (decode_line_1): Move chunks of code to separate
1052 (initialize_defaults): New function.
1053 (decode_indirect): New function.
1055 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1057 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1058 instead of void_code_ptr.
1059 (sigtramp_saved_pc): Ditto.
1061 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1064 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1066 * gdbtypes.h (struct main_type): Move artificial flag out of
1067 loc. New member of ``struct field'' named static_kind. Reduce
1068 overloaded meaning of bitsize.
1069 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1070 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1071 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1073 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1075 (template_to_fixed_record_type, template_to_static_fixed_type)
1076 (to_record_with_fixed_variant_part): Likewise.
1077 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1078 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1079 * dwarfread.c (struct_type, enum_type): Likewise.
1080 * hpread.c (hpread_read_enum_type)
1081 (hpread_read_function_type, hpread_read_doc_function_type)
1082 (hpread_read_struct_type): Likewise.
1083 * mdebugread.c (parse_symbol): Likewise.
1085 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1087 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1088 * stack.c (print_frame_info_base): Update.
1089 (print_frame_info_base, frame_info): Update.
1090 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1091 (sparc_frame_saved_pc): Update.
1092 * ada-lang.c (find_printable_frame): Update.
1093 * breakpoint.c (deprecated_frame_in_dummy): Update.
1095 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1097 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1099 (regmap): Extend to cover all registers.
1100 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1101 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1103 (fetch_register, sore_register): Simplify.
1104 (old_fetch_inferior_registers, old_store_inferior_registers):
1106 (cannot_fetch_register, cannot_store_register): Change
1107 implementation to use regmap array to decide which registers
1108 cannot be fetched/stored. This removes $orig_eax from the
1109 registers that cannot be fetched/stored.
1110 (fetch_inferior_registers): Call fetch_register directly instead
1111 of calling old_fetch_inferior_registers.
1112 (store_inferior_registers): Call store_register directly instead
1113 of calling old_store_inferior_registers.
1114 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1115 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1116 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1118 2002-11-09 Klee Dienes <kdienes@apple.com>
1120 * i387-tdep.c (i387_supply_register): When called with NULL as a
1121 buffer, mark the register as not provided (to mirror the behavior
1122 of supply_register).
1123 (i387_supply_fxsave): Ditto.
1124 (i387_supply_fsave): Ditto (inherits the behavior from
1125 i387_supply_register).
1127 2002-11-09 Klee Dienes <kdienes@apple.com>
1129 * blockframe.c (sigtramp_saved_pc): Use
1130 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1131 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1132 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1134 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1136 * frame.c (get_prev_frame): Test prev_p to identify a previously
1137 unwound frame. Initialize prev_p.
1138 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1141 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1143 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1144 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1145 more comments. Zap dead code.
1147 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1149 * infcmd.c (print_vector_info, print_float_info): Move code that
1150 checks whether the target has any registers and whether there is a
1151 selected frame up, such that it is also used if a target provides
1152 multi-arch definitions of these functions.
1154 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1156 * Makefile.in (DESTDIR): Define.
1157 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1160 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1161 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1163 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1165 * i386-linux-tdep.c: Include "reggroups.h".
1166 (i386_linux_register_reggroup_p): New function.
1167 (i386_linux_init_abi): Set register_reggroup_p to
1168 i386_linux_register_reggroup_p.
1169 * i386-tdep.h (i386_register_reggroup_p): Declare.
1170 * i386-tdep.c: Include "reggroups.h".
1171 (i386_init_reggroups): New function.
1172 (i386_add_reggroups): New function.
1173 (i386_register_reggroup_p): New function.
1174 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1175 (_initialize_i386_tdep): Call i386_init_reggroups.
1176 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1179 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1181 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1182 request that's available in *BSD.
1184 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1186 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1189 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1191 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1192 * dummy-frame.c (find_dummy_frame): Rename
1193 generic_find_dummy_frame, make static. Return the dummy frame
1194 instead of the regcache.
1195 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1196 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1197 (dummy_frame_register_unwind): Rename
1198 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1199 * dummy-frame.h (dummy_frame_register_unwind): Rename
1200 generic_call_dummy_register_unwind.
1202 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1204 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1205 except the inclusion of "i386/tm-i386.h", to...
1206 * config/i386/nm-i386v42mp.h: ...here.
1207 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1209 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1211 * Makefile.in (frame.o): Update dependencies.
1212 * blockframe.c (current_frame, frame_obstack_alloc)
1213 (frame_saved_regs_zalloc, get_current_frame)
1214 (set_current_frame, create_new_frame)
1215 (set_unwind_by_pc, get_next_frame)
1216 (flush_cached_frames, reinit_frame_cache)
1217 (frame_saved_regs_register_unwind)
1218 (deprecated_generic_get_saved_register)
1219 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1220 (_initialize_blockframe): Move frame code from here...
1221 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1222 "annotate.h" and "dummy-frame.h".
1223 (_initialize_frame): New function.
1225 2002-11-08 Jim Blandy <jimb@redhat.com>
1227 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1228 when we finish a function a context.
1229 * buildsym.h (outermost_context_p): New macro.
1230 (Bug analyzed by David Edelsohn.)
1232 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1234 * blockframe.c: Include "dummy-frame.h".
1235 (struct dummy_frame, dummy_frame_stack)
1236 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1237 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1238 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1239 (generic_save_call_dummy_addr, generic_pop_current_frame)
1240 (generic_pop_dummy_frame, generic_fix_call_dummy)
1241 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1242 dummy frame code from here...
1243 * dummy-frame.c: ...to here. New file.
1244 * dummy-frame.h: New file.
1245 (generic_call_dummy_register_unwind): Declare.
1246 (generic_find_dummy_frame): Declare.
1247 * Makefile.in (SFILES): Add dummy-frame.c.
1248 (dummy-frame.o): Specify dependencies.
1249 (dummy_frame_h): Define.
1250 (COMMON_OBS): Add dummy-frame.o.
1251 (blockframe.o): Update dependencies.
1253 2002-11-08 Jim Blandy <jimb@redhat.com>
1255 * dwarf2read.c (read_func_scope): Restore local_symbols and
1256 param_symbols after we finish the function context. (Based on a
1257 patch from David Edelsohn.)
1259 2002-11-08 David Carlton <carlton@math.stanford.edu>
1261 * linespec.c (symbol_found): New function.
1262 (minsym_found): New function.
1263 (decode_line_1): Separate out some code into separate functions.
1265 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1267 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1268 the benefit of the interix target.
1269 * i386-tdep.h (i386_frameless_signal_p): Declare.
1271 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1273 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1274 declaration that snuck in from change below.
1276 2002-11-06 Andrew Cagney <cagney@redhat.com>
1278 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1280 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1281 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1282 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1283 (i386_mxcsr_regnum_p): new function. Use instead of
1285 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1286 (i386_sse_regnum_p): Declare.
1287 (i386_mxcsr_regnum_p): Declare.
1288 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1289 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1290 (IS_FP_REGNUM): Update definition.
1291 (IS_FPU_CTRL_REGNUM): Update definition..
1292 (IS_SSE_REGNUM): Update definition..
1293 * i386v-nat.c (register_u_addr): Update.
1294 * go32-nat.c (fetch_register): Update.
1295 (store_register): Update.
1297 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1299 Preparation work to convert the hppa targets to multiarch partial.
1301 * hppa-tdep.c: Add new functions replacing macro bodies from
1302 config/pa/tm-hppa.h. These function will be used to initialize
1303 the gdbarch structure. Import some comments from tm-hppa.h,
1304 and place them where appropriate, to avoid loosing them when
1305 we cleanup this file.
1306 (hppa_reg_struct_has_addr): New function.
1307 (hppa_inner_than): New function.
1308 (hppa_stack_align): New function.
1309 (hppa_pc_requires_run_before_use): New function.
1310 (hppa_instruction_nullified): New function.
1311 (hppa_register_byte): New function.
1312 (hppa_register_virtual_type): New function.
1313 (hppa_store_struct_return): New function.
1314 (hppa_cannot_store_register): New function.
1315 (hppa_frame_args_address): New function.
1316 (hppa_frame_locals_address): New function.
1317 (hppa_smash_text_address): New function.
1318 (hppa_coerce_float_to_double): New function. Requires the inclusion
1321 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1323 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1324 gdbarch-eligible macro to a call to the new associated function
1325 created in hppa-tdep.c.
1326 (INNER_THAN): Likewise.
1327 (STACK_ALIGN): Likewise.
1328 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1329 (INSTRUCTION_NULLIFIED): Likewise.
1330 (REGISTER_BYTE): Likewise.
1331 (REGISTER_VIRTUAL_TYPE): Likewise.
1332 (STORE_STRUCT_RETURN): Likewise.
1333 (CANNOT_STORE_REGISTER): Likewise.
1334 (FRAME_ARGS_ADDRESS): Likewise.
1335 (FRAME_LOCALS_ADDRESS): Likewise.
1336 (SMASH_TEXT_ADDRESS): Likewise.
1337 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1338 (ABOUT_TO_RETURN): Delete, as no longer used.
1340 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1342 * printcmd.c (disassemble_command): Remove obsolete function.
1343 (_initialize_printcmd): Do not create disassemble command here.
1344 * cli/cli-cmds.c (disassemble_command): New function. Implements
1345 disassemble command.
1346 (init_cli_cmds): Create disassemble command here instead.
1348 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1350 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1352 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1354 * regcache.h (regcache_cooked_read_using_offset_hack)
1355 (regcache_cooked_write_using_offset_hack): Delete declarations.
1356 (register_changed): Delete declaration.
1357 * regcache.c (regcache_cooked_read_using_offset_hack)
1358 (regcache_cooked_write_using_offset_hack): Delete functions.
1359 (cooked_xfer_using_offset_hack): Delete function.
1360 (register_changed): Delete function.
1362 2002-11-07 Jim Blandy <jimb@redhat.com>
1364 * macroscope.c: #include "complaints.h".
1365 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1366 but not in the macro table.
1367 * Makefile.in (macroscope.o): Record dependency.
1369 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1371 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1373 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1375 * regcache.c (deprecated_registers_fetched): Update.
1376 * regcache.h (deprecated_registers_fetched): Rename
1378 * remote-vxsparc.c (vx_read_register): Update.
1379 * remote-vxmips.c (vx_read_register): Update.
1380 * remote-vx68.c (vx_read_register): Update.
1381 * irix5-nat.c (fetch_core_registers): Update.
1382 * mipsm3-nat.c (fetch_inferior_registers): Update.
1383 * sun3-nat.c (fetch_inferior_registers): Update.
1384 * symm-nat.c (fetch_inferior_registers): Update.
1385 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1386 (fetch_core_registers): Update.
1387 (fetch_kcore_registers): Update.
1388 * mips-nat.c (fetch_inferior_registers): Update.
1389 * corelow.c (get_core_registers): Update.
1390 * a68v-nat.c (fetch_inferior_registers): Update.
1392 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1394 Put in place the framework necessary for multiarching the hppa targets.
1395 * hppa-tdep.c (hppa_gdbarch_init): New function.
1396 (hppa_dump_tdep): New function.
1397 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1398 tdep structure dumper.
1399 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1400 until the multi-arching conversion has partially been completed.
1402 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1404 * valops.c (value_assign): Merge lval_register case into
1405 lval_reg_frame_relative. Use frame_register and
1406 regcache_cooked_write instead of get_saved_register and
1407 write_register_bytes. After flushing the register cache, try to
1408 re-select the selected frame.
1410 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1412 * regcache.h (deprecated_register_valid): Rename register_valid.
1413 * regcache.c: Update.
1414 * ia64-aix-nat.c: Update.
1415 * i386gnu-nat.c: Update.
1416 * alpha-nat.c: Update.
1417 * sparc-nat.c: Update.
1418 * lynx-nat.c: Update.
1419 * remote-mips.c: Update.
1421 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1423 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1424 to end of file, to be more consistent with the pratice followed
1427 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1429 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1430 (print_float_info): Print registers in float_reggroup.
1431 (print_vector_info): Print registers in vector_reggroup.
1432 (default_print_registers_info): When all, print registers in
1433 all_reggroup. Otherwize, print registers in general_reggroup.
1434 (registers_info): Rewrite. Add support for register groups.
1437 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1439 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1441 (symtab_symbol_info): Remove eons old ifdeffed out code.
1442 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1445 2002-11-06 Theodore A. Roth <troth@openavr.org>
1447 * c-exp.y: Add missing semi-colons.
1448 * f-exp.y: Add missing semi-colons.
1449 * m2-exp.y: Add missing semi-colons.
1450 * p-exp.y: Add missing semi-colons.
1451 Add empty action to start rule to avoid a type clash error when
1452 building with bison >= 1.50.
1454 2002-11-06 Jim Blandy <jimb@redhat.com>
1456 * macrotab.h (struct macro_source_file): Doc fix.
1458 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1460 * varobj.c (child_exists, cplus_number_of_children): Change
1461 STREQ macro references to strcmp.
1462 (cplus_name_of_child): Change code to handle the fact that
1463 fields are not necessarily contiguous with regards to their
1464 access control. This is a fix for PR gdb/792.
1466 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1468 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1469 * gdbarch.h, gdbarch.c: Regnerate.
1470 * frame.h (frame_register): Declare.
1471 * frame.c (frame_register): New function.
1472 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1473 GET_SAVED_REGISTER, otherwize call
1474 generic_unwind_get_saved_register.
1475 (frame_register_read): Use frame_register instead of
1478 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1480 From Jim Ingham <jingham@apple.com>:
1481 * event-top.c (gdb_disable_readline): New function.
1482 (_initialize_event_loop): Move comment.
1484 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1486 * event-loop.c (start_event_loop): Add comment.
1489 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1491 * infcmd.c (default_print_registers_info): Do not call
1492 PRINT_REGISTER_HOOK.
1494 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1496 * sparc-tdep.c (sparc_print_register_hook): Make static.
1497 (sparc_print_registers_info): New function.
1498 (sparc_do_registers_info): New function.
1499 (sparclet_print_registers_info): New function.
1500 (sparclet_do_registers_info): New function.
1501 (do_sparc_print_registers_info): New function.
1502 (sparc_print_registers): New static function, clone of infcmd.c's
1503 default_print_registers_info.
1504 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1505 (sparclet_do_registers_info): Declare.
1506 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1507 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1509 (sparc_do_registers_info): Declare.
1510 (PRINT_REGISTER_HOOK): Delete macro.
1511 (sparc_print_register_hook): Delete declaration.
1513 2002-11-05 David Carlton <carlton@math.stanford.edu>
1515 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1517 (lookup_symbol_aux_local): New function.
1518 (lookup_symbol_aux_symtabs): New function.
1519 (lookup_symbol_aux_psymtabs): New function.
1521 2002-11-05 David Carlton <carlton@math.stanford.edu>
1523 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1524 previous values of 'objfile' and 'block'.
1526 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1528 * values.c (value_change_enclosing_type): Set
1529 enclosing_type field correctly also for the case where
1530 more memory needs to be allocated.
1532 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1534 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1537 * i387-tdep.c (i387_print_float_info): Replace calls to
1538 register_read and deprecated_read_register_gen with calls to
1539 frame_register_read, and make the necessary adjustments to the
1542 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1544 * gdbarch.sh (register_reggroup_p): Allow default value.
1545 * gdbarch.h, gdbarch.c: Regenerate.
1547 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1549 * regcache.h: Add coment indicating replacements for deprecated
1552 2002-11-02 Andrew Cagney <cagney@redhat.com>
1554 * reggroups.h, reggroups.c: New files.
1555 * regcache.c: Include "reggroups.h".
1556 (enum regcache_dump_what): Add `regcache_dump_groups'.
1557 (regcache_dump): Contract size of the "Type" column. When
1558 specified, dump the register's groups.
1559 (maintenance_print_register_groups): New function.
1560 (_initialize_regcache): Add command `maint print register-groups'.
1561 * Makefile.in (COMMON_OBS): Add reggroups.o
1562 (SFILES): Add reggroups.c.
1563 (reggroups_h): Define.
1564 (regcache.o, gdbarch.o): Update dependencies.
1565 (reggroups.o): Specify dependencies.
1566 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1567 Add opaque declaration for `struct reggroup' in generated .h file.
1568 Include "reggroups.h" in generated .c file.
1569 gdbarch.h, gdbarch.c: Re-generate.
1571 2002-11-02 Andrew Cagney <cagney@redhat.com>
1573 * regcache.h (deprecated_read_register_gen): Rename
1575 (deprecated_write_register_gen): Rename write_register_gen.
1576 * i387-tdep.c: Update.
1577 * x86-64-linux-nat.c: Update
1579 * thread-db.c: Update.
1580 * win32-nat.c: Update.
1581 * mips-tdep.c: Update.
1582 * d10v-tdep.c: Update.
1583 * cris-tdep.c: Update.
1584 * remote-sim.c: Update.
1585 * remote-rdi.c: Update.
1586 * remote-rdp.c: Update.
1589 * blockframe.c: Update.
1590 * x86-64-tdep.c: Update.
1591 * xstormy16-tdep.c: Update.
1592 * sh-tdep.c: Update.
1593 * s390-tdep.c: Update.
1594 * rs6000-tdep.c: Update.
1595 * sparc-tdep.c: Update.
1596 * i386-tdep.c: Update.
1597 * dwarf2cfi.c: Update.
1598 * regcache.c: Update.
1600 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1602 New interix-specific files:
1603 * config/i386/nm-interix.h: New file.
1604 * config/i386/interix.mh: New file.
1605 * config/i386/interix.mt: New file.
1606 * i386-interix-nat.c: New file.
1607 * i386-interix-tdep.c: New file.
1609 2002-11-01 Andrew Cagney <cagney@redhat.com>
1611 * frame.h (deprecated_generic_get_saved_register): Rename
1612 generic_get_saved_register.
1613 * blockframe.c (deprecated_generic_get_saved_register): Update.
1614 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1615 (xstormy16_frame_saved_register): Update.
1616 * sh-tdep.c (sh_gdbarch_init): Update.
1617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1618 * ia64-tdep.c (ia64_get_saved_register): Update.
1619 * cris-tdep.c (cris_gdbarch_init): Update.
1620 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1621 * arm-tdep.c (arm_gdbarch_init): Update.
1623 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1625 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1627 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1629 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1630 trampolines in sigaction.
1632 2002-10-31 Andrew Cagney <cagney@redhat.com>
1634 * h8300-tdep.c: Include "gdb_assert.h".
1635 (h8300_print_register): Add gdbarch, file and frame parameters.
1636 Use frame_read_unsigned_register to read the register's value.
1637 Use fprintf_filtered to display output.
1638 (h8300_print_registers_info): Replace h8300_do_registers_info.
1639 (h8300_gdbarch_init): Set print_registers_info.
1641 2002-10-31 Andrew Cagney <cagney@redhat.com>
1643 * frame.c (frame_read_unsigned_register): New function.
1644 (frame_read_signed_register): New function.
1645 * frame.h (frame_read_unsigned_register): Declare.
1646 (frame_read_signed_register): Declare.
1648 2002-10-31 Andrew Cagney <cagney@redhat.com>
1650 * h8500-tdep.c (h8500_print_registers_info): New static function,
1651 clone of infcmd.c's default_print_registers_info.
1652 (h8500_do_registers_info): New funtion.
1653 (h8500_print_register_hook): Rename print_register_hook, make
1656 * config/h8500/tm-h8500.h: Update copyright.
1657 (DEPRECATED_DO_REGISTERS_INFO): Define.
1658 (h8500_do_registers_info: Declare.
1659 (PRINT_REGISTER_HOOK): Delete macro.
1660 (print_register_hook): Delete function.
1662 2002-10-31 Andrew Cagney <cagney@redhat.com>
1664 * z8k-tdep.c (z8k_print_register_hook): Make static.
1665 (z8k_print_registers_info): New static function, clone of
1666 infcmd.c's default_print_registers_info.
1667 (z8k_do_registers_info): New function. Wrap
1668 z8k_print_registers_info.
1669 * config/z8k/tm-z8k.h: Update copyright.
1670 (PRINT_REGISTER_HOOK): Delete macro.
1671 (z8k_print_register_hook): Delete declaration.
1672 (DEPRECATED_DO_REGISTERS_INFO): Define.
1673 (z8k_do_registers_info): Declare.
1675 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1677 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1678 as this is already provided by value.h, and was actually causing
1679 a compilation error because of a conflict in parameter type
1680 declaration due to a missing const keyword.
1681 (low_text_segment_addres): Fix a compilation warning.
1683 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1685 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1686 registers without a name.
1687 (mips_linux_cannot_store_register): Don't store registers without
1690 2002-10-28 David Carlton <carlton@math.stanford.edu>
1692 * symtab.c (find_addr_symbol): Delete. (It was already commented
1694 * symtab.h: Delete prototype for find_addr_symbol.
1696 2002-10-26 Andrew Cagney <cagney@redhat.com>
1698 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1700 gdbarch.h, gdbarch.c: Re-generate.
1701 * infcmd.c (default_print_registers_info): Update reference.
1702 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1703 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1704 * sh-tdep.c (sh_gdbarch_init): Ditto.
1705 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1706 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1708 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1710 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1711 cfi_init_extra_frame_info.
1712 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1713 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1715 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1716 target where necessary. Add more comments and remove the ones
1717 that don't provide any useful information.
1719 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1720 deprecated_read_register_dummy with
1721 frame_unwind_unsigned_register.
1723 * i386-tdep.c (i386_extract_struct_value_address): Use
1724 regcache_raw_read_unsigned instead of
1725 regcache_cooked_read_unsigned since we know that the register
1726 we're reading isn't a pseudo register. Rename variable 'val' into
1727 the more descriptive 'addr'.
1729 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1730 (x86_64_push_return_address): Add comment.
1731 (x86_64_pop_frame): Make static.
1732 (examine_argument): Clarify comment.
1733 (x86_64_skip_prologue): Make prolog_expact variable static.
1735 * dwarf2cfi.c: Fix some formatting problems.
1736 (context_cpy, read_encoded_pointer): Clarify comments.
1738 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1739 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1740 i386 target back into x86_64_gdbarch_init. Add some comments and
1741 remove meaningless ones.
1743 2002-10-25 Andrew Cagney <cagney@redhat.com>
1745 * complaints.h (struct deprecated_complaint): Rename `struct
1747 * complaints.c (complain): Update.
1748 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1749 incorrect comment indicating that "symfile.h" was being included
1750 for the `struct complaint' definition.
1751 * remote-vx.c: Update.
1752 * objc-lang.c: Update.
1753 * xcoffread.c: Update.
1755 * mdebugread.c: Update.
1756 * stabsread.c: Update.
1757 * dwarf2read.c: Update.
1758 * dwarfread.c: Update.
1759 * elfread.c: Update.
1760 * coffread.c: Update.
1761 * stabsread.h: Update.
1762 * dbxread.c: Update.
1763 * buildsym.c: Update.
1764 * gdbtypes.c: Update.
1765 * macrotab.c: Update.
1767 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1769 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1770 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1771 (x86_64_init_abi): ...new function.
1773 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1774 * i386v-nat.c: Include "i386-tdep.h".
1776 2002-10-25 Andrew Cagney <cagney@redhat.com>
1778 * gdbtypes.c (address_space_name_to_int): Update.
1779 (address_space_int_to_name): Update.
1780 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1781 multi-arch predicate.
1782 (address_class_name_to_type_flags): Ditto.
1783 * gdbarch.h, gdbarch.c: Re-generate.
1785 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1787 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1789 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1791 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1793 * symtab.h (INIT_SAL): Delete macro.
1795 * symtab.c (init_sal): New function.
1797 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1798 to init_sal function call.
1799 (find_sal_from_funcs_and_line): Ditto.
1800 (all_sals_for_line): Ditto.
1801 * breakpoint.c (create_internal_breakpoint): Ditto.
1802 (create_fork_vfork_event_catchpoint): Ditto.
1803 (create_exec_event_catchpoint): Ditto.
1804 (parse_breakpoint_sals): Ditto.
1805 (watch_command_1): Ditto.
1806 (handle_gnu_4_16_catch_command): Ditto.
1807 (clear_command): Ditto.
1808 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1809 * infcmd.c (run_stack_dummy): Ditto.
1810 * infrun.c (process_event_stop_test): Ditto.
1811 (check_sigtramp2): Ditto.
1812 (step_over_function): Ditto.
1813 * linespec.c (decode_line_2): Ditto.
1814 (decode_line_1): Ditto.
1815 * source.c (line_info): Ditto.
1816 * symtab.c (find_pc_sect_line): Ditto.
1818 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1820 * dwarf2cfi.c (struct context)
1821 (struct context_reg): Moved to dwarf2cfi.h
1822 (context_alloc, frame_state_alloc, context_cpy):
1823 Made extern instead of static, removed prototypes.
1824 * dwarf2cfi.h (struct context)
1825 (struct context_reg): New, moved from dwarf2cfi.c
1826 (context_alloc, frame_state_alloc, context_cpy):
1828 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1829 Changed from static to extern.
1830 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1831 (LINUX_SIGCONTEXT_FP_OFFSET)
1832 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1833 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1834 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1835 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1836 set_gdbarch_*() calls now use x86-64 specific functions
1837 instead of DWARF2 CFI ones.
1838 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1839 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1840 (x86_64_init_extra_frame_info): New prototypes.
1842 2002-10-23 David Carlton <carlton@math.stanford.edu>
1844 * linespec.c: #include "parser-defs.h".
1845 Delete prototype for find_template_name_end.
1846 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1848 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1850 * NEWS: add recent mi fixes.
1851 * varobj.c (struct varobj): Add new "updated" flag.
1852 (new_variable): Default "updated" flag to 0.
1853 (varobj_set_value): Set "updated" flag to 1 if value
1855 (varobj_update): Check varobj "updated" flag before
1856 comparing old and refreshed values. Fix for
1859 2002-10-23 David Carlton <carlton@math.stanford.edu>
1861 * parse.c (parse_exp_1): Use BLOCK_START.
1862 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1864 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1866 2002-10-23 David Carlton <carlton@math.stanford.edu>
1868 * symtab.c: Delete cplusplus_hint.
1869 Delete prototype for find_template_name_end.
1871 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1873 * symtab.h: Update comment.
1875 2002-10-23 Michael Snyder <msnyder@redhat.com>
1877 * printcmd.c (address_info): Restore quotes in output.
1878 * valops.c (value_of_local): Restore quotes in error message.
1880 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1882 * symtab.c (symbol_demangled_name): New function.
1883 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1884 turning most of it into a function.
1885 (symbol_demangled_name): Export.
1887 2002-10-23 Michael Snyder <msnyder@redhat.com>
1889 * valops.c (value_of_local): Restore quotes in error message.
1891 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1893 * symtab.c (symbol_init_language_specific): New function.
1894 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1895 turning most of it into a function.
1896 (symbol_init_language_specific): Export.
1898 2002-10-23 David Carlton <carlton@math.stanford.edu>
1900 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1901 (dwarf_attr_name): Ditto.
1902 (dwarf_type_encoding_name): Ditto.
1903 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1904 (process_die): Handle DW_TAG_namespace,
1905 DW_TAG_imported_declaration, DW_TAG_imported_module.
1906 (read_namespace): New function.
1908 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1910 * configure.in: Define NEW_PROC_API on Interix too.
1911 * configure: Regenerate.
1913 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1915 * configure: Regenerate using the proper version of autoconf.
1917 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1919 * findvar.c (read_var_value): Temporarily disable TLS code, until
1920 complete TLS support is added.
1922 2002-10-21 Jim Blandy <jimb@redhat.com>
1923 Elena Zannoni <ezannoni@redhat.com>
1925 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1926 for thread local storage locations.
1927 (struct symbol): Add objfile field.
1928 (SYMBOL_OBJFILE): Define.
1929 * dwarf2read.c (is_thread_local): New static variable.
1930 (new_symbol): If variable is in thread local fill in address class
1931 and objfile appropriately.
1932 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1934 * printcmd.c (address_info): Print the information for thread
1935 local storage variable.
1936 * findvar.c (read_var_value): In case of thread local variable,
1937 defer to the target vector code to compute address.
1939 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1941 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1942 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1944 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1946 * symtab.h (address_class): Rename
1947 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1948 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1949 * printcmd.c (address_info): Ditto.
1950 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1952 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1954 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1955 DBREG_DRX macro to acces debug registers.
1957 * Makefile.in (i386obsd-tdep.o): New target.
1959 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1960 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1962 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1963 * config/i386/obsd.mt: New file.
1964 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1965 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1966 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1967 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1968 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1969 * i386obsd-tdep.c: New file.
1971 2002-10-19 Adam Fedor <fedor@gnu.org>
1973 * objc-exp.y (name_not_typename): Fix invalid comment.
1975 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1977 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1978 to allocate partial syms and macro byte caches.
1980 2002-10-18 David Carlton <carlton@math.stanford.edu>
1982 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1984 2002-10-18 Adam Fedor <fedor@gnu.org>
1986 * stabsread.c (find_name_end): New function.
1987 (define_symbol): Use it.
1989 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1991 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1992 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1993 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1994 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1996 2002-10-17 David Carlton <carlton@math.stanford.edu>
1998 * symfile.h: Add opaque declaration for struct obstack.
1999 Declare obsavestring to take a const char *.
2000 * symfile.c (obsavestring): Make first argument a const char *.
2002 2002-10-16 Adam Fedor <fedor@gnu.org>
2004 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2005 names when matching breakpoints in current file.
2007 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2009 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2010 (read_tag_pointer_type): Add address class support.
2011 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2012 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2014 * gdbarch.h, gdbarch.c: Regenerate.
2015 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2016 (make_type_with_address_space, recursive_type_dump): Add address
2018 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2019 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2020 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2022 2002-10-16 Klee Dienes <kdienes@apple.com>
2024 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2025 to get the last character of a char[] buffer, not
2026 name[sizeof(vptr_name)-1].
2028 2002-10-14 Adam Fedor <fedor@gnu.org>
2030 * symtab.h: New objc_specific struct.
2031 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2032 (SYMBOL_DEMANGLED_NAME): Likewise.
2034 2002-10-14 Adam Fedor <fedor@gnu.org>
2036 * symfile.c (init_filename_language_table): Add ObjC file extension.
2038 2002-10-14 Adam Fedor <fedor@gnu.org>
2040 * utils.c (puts_filtered_tabular): New function.
2041 (fprintf_symbol_filtered): Get ObjC demangled name.
2042 * defs.h (puts_filtered_tabular): Declared.
2044 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2046 * c-lang.h (c_type_print_varspec_prefix): Delete.
2047 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2048 ``need_post_space'' parameter. Adjust all callers.
2050 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2052 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2053 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2054 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2055 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2057 2002-10-13 Adam Fedor <fedor@gnu.org>
2059 * source.c (print_source_lines): Update comments.
2061 2002-10-13 Adam Fedor <fedor@gnu.org>
2063 * valops.c (value_of_local): New function.
2064 (value_of_this): Use it.
2065 * value.h (value_of_local): Declared.
2067 2002-10-13 Adam Fedor <fedor@gnu.org>
2069 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2070 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2072 2002-10-12 Adam Fedor <fedor@gnu.org>
2074 * language.c (binop_result_type): Add language_objc to case.
2075 (integral_type): Likewise.
2076 (character_type): Likewise.
2077 (string_type): Likewise.
2078 (boolean_type): Likewise.
2079 (structured_type): Likewise.
2080 (binop_type_check): Likewise.
2082 2002-10-11 Adam Fedor <fedor@gnu.org>
2084 * printcmd.c (address_info): Print 'self' for ObjC.
2086 2002-10-11 Adam Fedor <fedor@gnu.org>
2088 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2091 2002-10-11 Adam Fedor <fedor@gnu.org>
2093 * language.h (CAST_IS_CONVERSION): Add language_objc.
2095 2002-10-11 Adam Fedor <fedor@gnu.org>
2097 * defs.h (enum language): Add language_objc.
2099 2002-10-11 Klee Dienes <kdienes@apple.com>
2101 * corefile.c (read_memory_typed_address): New function.
2102 * gdbcore.h (read_memory_typed_address): Add prototype.
2103 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2104 to read a value destined for a CORE_ADDR, not read_memory_integer.
2105 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2106 (f77_get_dynamic_lowerbound): Ditto.
2108 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2110 * utils.c (string_to_core_addr): After turning string into
2111 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2112 which will do necessary sign-extension, etc.
2114 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2116 * c-exp.y (THIS): Delete token and grammar rule.
2117 (yylex): Don't return THIS.
2118 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2119 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2120 * demangle.c (cplus_markers): Update comment. Put '$'
2121 first. Remove CPLUS_MARKER.
2122 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2123 * jv-exp.y (THIS): Delete token and grammar rule.
2124 (yylex): Don't return THIS.
2125 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2126 * objc-exp.y (THIS): Delete token and grammar rule.
2127 (yylex): Don't return THIS.
2128 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2129 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2130 (read_member_functions): Likewise for opname.
2131 (read_tilde_fields): Use is_cplus_marker.
2133 * defs.h (CPLUS_MARKER): Don't define.
2134 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2135 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2136 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2137 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2138 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2140 * config/i386/tm-i386v4.h: Delete file.
2141 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2142 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2143 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2144 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2145 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2146 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2147 * config/i386/i386v4.mt (TM_FILE): Likewise.
2148 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2150 2002-10-10 Marko Mlinar <markom@opencores.org>
2152 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2153 accidentially not commited 2002-10-09
2154 * gdbarch.h, gdbarch.c: Re-generate.
2156 2002-10-09 Marko Mlinar <markom@opencores.org>
2158 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2159 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2160 * gdbarch.h, gdbarch.c: Re-generate.
2162 2002-10-08 Petr Sorfa <petrs@caldera.com>
2164 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2166 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2167 so we can work on more than one compilation unit at a time. This
2168 helps prepare GDB to handle inter-CU die references.
2169 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2170 the code to be defined before struct comp_unit_head.
2171 (comp_unit_head): Added new members - offset, cu_head,
2172 begin_die, next and dwarf2_abbrevs.
2173 (dwarf2_abbrevs): Removed single static var; now member of
2174 struct comp_unit_head.
2175 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2177 (psymtab_to_symtab_1): Changed to work with the new
2178 struct comp_unit_head.
2179 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2180 constructs the dwarf2_abbrevs[] inside the cu_header.
2181 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2182 dwarf2_abbrev table to clean up.
2183 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2184 handling of dwarf2_abbrevs inside the cu_header.
2185 (read_partial_die): Now supports the call to the new
2186 dwarf2_lookup_abbrev.
2187 (read_full_die): Now supports the call to the new
2188 dwarf2_lookup_abbrev.
2190 2002-10-06 Christopher Faylor <cgf@redhat.com>
2192 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2193 insure that shell variables, such as "transformed_name" are propagated
2194 to later shell statements in rule.
2196 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2198 * config/i386/nm-i386sco.h: Add protection against
2199 multiple-inclusion. Include "i386/nm-i386v.h".
2200 (REGISTER_U_ADDR): Remove define.
2201 (i386_register_u_addr): Remove prototype.
2203 2002-10-04 Michael Snyder <msnyder@redhat.com>
2205 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2206 before treating it as a single-step event.
2208 2002-10-03 Adam Fedor <fedor@gnu.org>
2210 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2211 (objc_demangle): Remove assignment in if statements, Replace
2213 (add_msglist): Likewise.
2214 (end_msglist): Likewise.
2215 (complare_selectors): Likewise.
2216 (selectors_info): Likewise.
2217 (compare_classes): Likewise.
2218 (classes_info): Likewise.
2219 (print_object_command): Likewise.
2220 (find_objc_msgcall_submethod): Replace PTR with void *.
2221 * objc-lang.h: Remove check for __STDC__.
2223 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2225 * ui-out.h (ui_out_field_fmt_int): New prototype.
2226 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2227 of field width and alignment.
2228 * stack.c (print_frame_info_base): When printing frame level, use
2229 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2232 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2234 * MAINTAINERS: Add self to Write After Approval list.
2236 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2238 * infcmd.c (interrupt_target_command_wrapper): Delete.
2239 (interrupt_target_command): Make non static.
2240 (nofp_registers_info): Make static.
2241 * stack.c (return_command_wrapper): Delete.
2242 (return_command): Make non static.
2244 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2246 * event-top.c (gdb_setup_readline): New function. Code moved from
2247 _initialize_event_loop().
2248 (_initialize_event_loop): Call gdb_setup_readline().
2250 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2252 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2253 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2254 * gdbarch.h, gdbarch.c: Re-generate.
2256 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2259 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2261 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2262 of fill_in_vptr_fieldno.
2264 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2266 * inferior.h (registers_info, stepi_command, nexti_command,
2267 continue_command, interrupt_target_command): Export from infcmd.c.
2268 * frame.h (args_info, selected_frame_level_changed_hook,
2269 return_command): Export from stack.c.
2270 * v850ice.c (stepi_command, nexti_command, continue_command): use
2271 prototypes from inferior.h.
2272 * tracepoint.c (registers_info, args_info, locals_info): Use
2273 prototypes from frame.h and inferior.h.
2274 * Makefile.in (mi-main.o): Add dependency on frame.h.
2276 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2278 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2279 value in register 3 adjusted by ppc_gp0_regnum.
2281 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2283 2002-10-02 Marko Mlinar <markom@opencores.org>
2285 * MAINTAINERS: Add myself to the Write After Approval list.
2287 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2289 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2290 of the section for the N64 ABI, fixed.
2292 * config/mips/tm-irix6.h: Include solib.h.
2294 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2296 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2299 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2301 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2302 and that "mi0" syntax has been removed.
2304 2002-09-30 David Carlton <carlton@math.stanford.edu>
2306 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2307 * ppc-sysv-tdep.c: #include "gdb_string.h".
2308 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2311 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2313 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2314 "vrsave"'s register number.
2316 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2318 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2319 use frame_unwind_signed_register to obtain the PC.
2320 (mips_frame_chain): Handle a generic dummy frame.
2321 (mips_init_extra_frame_info): When a generic dummy frame, don't
2322 re-compute the frame base.
2323 (mips_pop_frame): Handle generic dummy frames.
2324 (mips_gdbarch_init): When generic dummy frames, set
2325 use_generic_dummy_frames, push_dummy_frame to
2326 generic_push_dummy_frame, pc_in_call_dummy to
2327 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2328 generic_save_dummy_frame_tos.
2330 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2332 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2333 against TOP when TOP was explictly set.
2334 (generic_push_dummy_frame): Set TOP to zero.
2336 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2338 * event-loop.c (start_event_loop): Rename variable 'result' to
2339 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2341 2002-09-30 Keith Seitz <keiths@redhat.com>
2343 * gdb-events.sh (selected_thread_changed): New event.
2344 * gdb-events.c: Regenerated.
2345 * gdb-events.h: Regenerated.
2347 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2349 * MAINTAINERS: Add self to Write After Approval list.
2351 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2353 * disasm.c: New file.
2354 * disasm.h: New file.
2355 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2356 (compare_lines): Ditto.
2357 (dump_insns): Ditto.
2358 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2360 (do_assembly_only): Ditto.
2361 (do_disassembly): Renamed to gdb_disassembly and moved to
2362 disasm.c. Sdded uiout argument.
2363 * Makefile.in: Add new files. Reorder SFILES list. Update
2364 dependencies. Include libgdb.a later in the insight executable.
2366 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2368 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2369 bfd/elf64-alpha-fbsd.c.
2371 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2373 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2376 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2378 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2380 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2382 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2383 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2384 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2385 (S_msg_sig_post_reply): Ditto.
2387 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2389 * sh-tdep.c (sh_use_struct_convention): Use definition according
2391 (sh_push_arguments): Store in register with correct endianess.
2392 (sh_default_store_return_value): Ditto.
2393 (sh_gdbarch_init): Set sizeof long double to 8.
2395 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2397 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2398 Fix some whitespace problems.
2400 2002-09-27 David Carlton <carlton@math.stanford.edu>
2402 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2403 (mcore-tdep.o): Ditto.
2404 (ns32k-tdep.o): Ditto.
2405 (ns32knbsd-tdep.o): Ditto.
2407 (vax-tdep.o): Ditto.
2408 * cris-tdep.c: #include "gdb_string.h"
2409 * mcore-tdep.c: Ditto.
2410 * ns32k-tdep.c: Ditto.
2411 * ns32knbsd-tdep.c: Ditto.
2413 * vax-tdep.c: Ditto.
2415 2002-09-27 David Carlton <carlton@math.stanford.edu>
2417 * config/djgpp/fnchange.lst: Add entries for
2418 gdb/testsuite/gdb.c++/m-static files.
2420 2002-09-27 Jim Wilson <wilson@redhat.com>
2422 * MAINTAINERS: Add myself to the Write After Approval list.
2424 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2426 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2429 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2431 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2434 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2436 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2437 (rs6000_struct_return_address): Delete variable.
2438 (rs6000_store_struct_return): Update.
2439 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2440 deprecated_extract_struct_value_address.
2441 (rs6000_frame_align): New function.
2442 (rs6000_gdbarch_init): Set frame_align.
2444 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2446 From Grace Sainsbury <graces@redhat.com>:
2447 * Makefile.in (gdbtk-main.o): New target.
2448 (gdb.o): New target.
2450 (main.o): Update dependencies.
2451 (gdb$(EXEEXT)): Add gdb.o.
2452 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2453 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2454 (SUBDIR_GDBTK_CLEAN): Set.
2455 (install-gdbtk): Install the insight binary.
2456 (uninstall-gdbtk): New target.
2457 (all-gdbtk, clean-gdbtk): New rule.
2458 * top.c (use_windows): Default to zero.
2459 * main.c: Include "main.h".
2461 (struct captured_main_args): Delete.
2462 (gdb_main): New function.
2466 2002-09-25 Andrew Cagney <cagney@redhat.com>
2468 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2469 (frame_map_regnum_to_name): New function.
2470 (frame_map_name_to_regnum): New function.
2471 * frame.h (frame_map_name_to_regnum): Declare.
2472 (frame_map_regnum_to_name): Declare.
2473 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2474 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2475 * parse.c: Do not include "builtin-regs.h".
2476 (target_map_name_to_register): Delete function.
2477 (write_dollar_variable): Use frame_map_name_to_regnum.
2478 * parser-defs.h (target_map_name_to_register): Delete declaration.
2479 * expprint.c: Include "frame.h".
2480 (print_subexp): Use frame_map_regnum_to_name.
2481 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2482 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2484 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2486 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2487 wasn't saved, and the next innermost frame is a dummy, return the
2488 dummy frame's link register.
2490 2002-09-24 Jim Blandy <jimb@redhat.com>
2492 Fix from Paul Breed:
2493 * main.c (captured_main): Add a `break' after the case for 'b'.
2495 2002-09-24 Keith Seitz <keiths@redhat.com>
2497 * varobj.c (c_type_of_child): Use get_target_type instead
2498 of TYPE_TARGET_TYPE.
2500 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2502 * source.c (get_current_or_default_source_symtab_and_line): Remove
2504 (set_default_source_symtab_and_line): New function. Attempts to
2505 determine a source file to list lines from if one is not currently
2507 (get_current_source_symtab_and_line): Initialize sal.pc and
2509 (set_current_source_symtab_and_line): Mark argument as const.
2510 * source.h: Update declarations and comments.
2511 * linespec.c (decode_line_1): Replace call to removed routine above.
2512 * stack.c (print_frame_info_base): Ditto.
2513 * cli/cli-cmds.c (edit_command): Ditto.
2514 (list_command): Ditto.
2516 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2518 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2519 sal.pc and sal.end fields.
2520 (get_current_or_default_source_symtab_and_line): Ditto.
2521 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2522 so we do not cause a new source symtab to be searched for (reverting an
2523 unintentional change from the 2002-09-20 patch).
2524 * scm-lang.c (scm_unpac): Ditto.
2526 2002-09-21 Andrew Cagney <cagney@redhat.com>
2528 * complaints.c (symfile_explanations): Remove new-line from
2529 ``isolated_message''.
2530 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2531 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2533 2002-09-20 Nick Clifton <nickc@redhat.com>
2535 * NEWS: Announce that V850EA ISA is no longer supported.
2536 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2538 2002-09-20 David Carlton <carlton@math.stanford.edu>
2540 * Makefile.in (c-lang.o): Correct dependencies.
2541 (utils.o): Gather dependencies.
2543 * c-lang.c: #include "gdb_string.h"
2545 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2547 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2548 * cli/cli-cmds.c (list_command): New function. Implements the new
2550 (_init_cli_cmds): Add new command definition.
2551 * gdb.1: Document edit command.
2552 * doc/gdb.texinfo: Document edit command.
2554 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2556 * source.c: Make global variables current_source_symtab and
2557 current_source_line static.
2558 (list_command): Moved to cli/cli-cmds.c.
2559 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2560 (get_first_line_listed): New accessor function.
2561 (get_lines_to_list): New accessor function.
2562 (get_current_source_symtab_and_line): New function. Retrieves the
2563 position in the source code that we consider current.
2564 (get_current_or_default_source_symtab_and_line): New function.
2565 Like the above but attempts to determine a default position if one
2566 is not currently defined.
2567 (set_current_source_symtab_and_line): New function. Sets the source
2568 code position considered current and returns the previously set one.
2569 (clear_current_source_symtab_and_line): Reset stored information about
2570 a current source line.
2571 (_initialize_source): Remove registration for the "list" command and
2573 * source.h: Add declarations for the new functions above.
2574 * symtab.h: Remove declarations for the global variables mentioned
2576 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2577 obtain current source line.
2578 * linespec.c (decode_line_1): Ditto.
2579 * macroscope.c (default_macro_scope): Ditto.
2580 * scm-lang.c (scm_unpac): Ditto.
2581 * stack.c (print_frame_info_base): Ditto.
2582 * symfile.c (clear_symtab_users): Ditto.
2583 * symtab.c (decode_line_spec): Ditto.
2584 * cli/cli-cmds.c (list_command): Moved here from source.c.
2585 (ambiguous_line_spec): Moved here from source.c.
2586 (_init_cli_cmds): Add definition for "list" and its alias.
2587 * Makefile.in: Update dependencies.
2589 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2591 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2592 with what gcc thinks is correct.
2594 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2596 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2597 multiple register push instruction.
2599 2002-09-19 Jim Blandy <jimb@redhat.com>
2601 Add support for distinct host and target character sets.
2602 * charset.c, charset.h: New files.
2603 * c-exp.y: #include "charset.h".
2604 (yylex): Convert character and string literals to the target
2605 character set, before returning them as the semantic value of the
2607 * c-lang.c: #include "charset.h".
2608 (c_emit_char): Use charset-specific methods to recognize
2609 characters with backslash escape forms, to decide which characters
2610 to print literally and which to print using numeric escape
2611 sequences, and to convert target characters to host characters
2613 * utils.c: #include "charset.h".
2614 (no_control_char_error): New function.
2615 (parse_escape): Use charset-specific methods to recognize
2616 backslash escapes, parse `control character' notation, and convert
2617 characters from the host character set to the target character set.
2618 * configure.in: Set the default host character set.
2619 Check where to find iconv, and what its argument types might be.
2620 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2621 * Makefile.in (SFILES): List charset.c.
2622 (COMMON_OBS): List charset.o.
2623 (charset.o): New rule.
2624 (charset_h): New header dependency variable.
2625 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2626 (LIBICONV): New variable, set by configure.
2627 (CLIBS): Include $(LIBICONV) here.
2628 * aclocal.m4, config.in, configure: Regenerated.
2630 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2632 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2635 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2637 * gdb_mbuild.sh: New file.
2639 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2641 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2643 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2645 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2646 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2647 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2648 valops.c, value.h: Revert previous change.
2650 2002-09-18 Michael Snyder <msnyder@redhat.com>
2652 Preliminary support for Objective-C:
2653 * defs.h (language_objc): New enum value.
2654 (puts_filtered_tabular): Declaration only, exported from utils.c.
2655 (skip_quoted): Delete, declared in completer.h.
2656 * c-exp.y: Include completer.h.
2659 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2660 New operator enum values.
2661 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2662 * language.c (binop_result_type): Handle language_objc case.
2663 (integral_type, character_type, string_type, boolean_type,
2664 structured_type, binop_type_check): Ditto.
2665 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2666 (struct objc_specific): Add to general_symbol_info.
2667 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2668 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2669 * parser-defs.h (struct objc_class_str): New struct type.
2670 (start_msglist, end_msglist, add_msglist): Declaration only,
2671 exported from objc-lang.c.
2672 * value.h (value_of_local, value_nsstring,
2673 call_function_by_hand_expecting_type): Exported from valops.c.
2674 * valops.c (find_function_addr): Export.
2675 (call_function_by_hand_expecting_type): New function.
2676 (value_of_local): New function.
2677 * symfile.c (init_filename_language_table): Add ".m" extension
2679 * utils.c (puts_filtered_tabular): New function.
2680 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2681 (set/show demangle): Extend help-string to refer to ObjC.
2682 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2683 * stabsread.c (symbol_reference_defined): Objective-C symbols
2684 may contain colons: make allowances when scanning stabs strings
2686 (objc_find_colon): New function.
2687 * printcmd.c (address_info): If language == objc then print
2688 "self" instead of "this".
2689 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2690 OP_NSSTRING, and OP_SELF.
2691 (prefixify_subexp): Ditto.
2692 * source.c (print_source_lines): Mention objc in comment.
2693 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2696 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2698 * complaints.h: Update copyright.
2699 (struct complaints): Declare.
2700 (struct complaint): Make `message' constant.
2701 (internal_complaint): Declare.
2702 (complaint): Declare.
2703 (complaint_root): Delete declaration.
2704 (symfile_complaints): Delete declaration.
2705 (struct complaints): Add opaque declaration.
2706 (clear_complaints): Add a complaints parameter.
2707 * complaints.c: Update copyright.
2708 (enum complaint_series): Define.
2709 (complaint_root): Delete.
2710 (struct complaints): Define.
2711 (complaint_sentinel, symfile_complaint_book): New variables.
2712 (symfile_explanations, symfile_complaints): New variables.
2714 (get_complaints): New function.
2715 (vcomplaint): New function.
2716 (complaint): New function.
2717 (internal_complaint): New function.
2718 (complain): Call vcomplain with symfile_complaint.
2719 (clear_complaints): Rewrite.
2720 (_initialize_complaints): Use add_setshow_command.
2721 * Makefile.in (complaints.o): Update dependencies.
2722 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2723 to call to clear_complaints.
2724 (new_symfile_objfile, reread_symbols): Ditto.
2725 (oldsyms_complaint): Delete.
2726 (empty_symtab_complaint, unknown_option_complaint): Delete.
2727 (free_named_symtabs): Use complaint instead of complain.
2729 2002-09-18 Michael Snyder <msnyder@redhat.com>
2731 Contributed by Apple Computer, Inc. Merged with current sources
2732 by Adam Fedor <fedor@doc.com> [cagney].
2734 * objc-lang.c: First clean-up round: comments, indentation.
2735 * objc-lang.h: Ditto.
2736 * objc-lang.y: Ditto.
2738 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2740 * maint.c (maintenance_internal_error): Print the parameter as the
2742 (maintenance_internal_warning): New function.
2743 (_initialize_maint_cmds): Add command `maint internal-warning'.
2745 * defs.h (internal_warning, internal_vwarning): Declare.
2746 * utils.c (struct internal_problem): Define.
2747 (internal_vproblem): New function.
2748 (internal_warning): New function.
2749 (internal_vwarning): New function.
2750 (internal_warning_problem, internal_error_problem): New variables.
2751 (internal_verror): Just call internal_vproblem.
2753 2002-09-18 Michael Snyder <msnyder@redhat.com>
2755 * objc-lang.c: New file, support for Objective-C.
2756 Preliminary check-in, not yet integrated into gdb.
2757 * objc-lang.h: New file.
2758 * objc-exp.y: New file.
2760 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2762 * infrun.c (signal_stop_update): Convert definition to ISO C.
2763 (signal_print_update): Ditto.
2764 (signal_pass_update): Ditto.
2765 * inflow.c (terminal_save_ours): Ditto.
2767 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2770 * config/djgpp/fnchange.lst: Handle name clashes between
2771 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2774 * i386-linux-tdep.h: Fix tipo.
2776 2002-09-18 Adam Fedor <fedor@gnu.org>
2778 * MAINTAINERS: Add myself to the Write After Approval list.
2780 2002-09-18 Jim Blandy <jimb@redhat.com>
2782 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2783 texthigh and textlow to reader-specific structs caused
2784 objfile_relocate to miss them. This is fixable, but the work that
2785 the change was supposed to prepare GDB for never got done anyway.
2787 2002-09-18 David Carlton <carlton@math.stanford.edu>
2789 * MAINTAINERS: Alphabetize Write After Approval list.
2791 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2794 * values.c (value_static_field): Call read_var_value.
2796 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2798 * valops.c (hand_function_call): Align the initial stack pointer
2799 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2800 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2802 * mips-tdep.c (mips_frame_align): New function.
2803 (mips_gdbarch_init): Set frame_align.
2804 * gdbarch.sh (FRAME_ALIGN): New method.
2805 * gdbarch.h, gdbarch.c: Re-generate.
2807 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2809 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2812 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2814 * NEWS: Mention that MIPS $fp behavior changed.
2815 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2816 reference to FP_REGNUM.
2817 (mipsnbsd_cannot_store_register): Ditto.
2818 * mips-linux-nat.c: Update copyright.
2819 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2820 (mips_linux_cannot_store_register): Ditto.
2821 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2822 * config/mips/tm-mips.h: Update copyright.
2823 (FP_REGNUM): Delete macro.
2824 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2825 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2826 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2827 (mips_r3041_reg_names, mips_r3051_reg_names)
2828 (mips_r3081_reg_names): Replace "fp" with "".
2831 2002-09-17 Theodore A. Roth <troth@verinet.com>
2833 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2834 generic_read_register_dummy() (PR gdb/703).
2835 (avr_push_return_address): #if 0 out unused vars.
2836 (avr_gdbarch_init): Enable use of avr_push_return_address().
2838 2002-09-17 Michael Snyder <msnyder@redhat.com>
2840 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2841 RTE will take care of it.
2843 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2845 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2846 invalid, return SP_REGNUM.
2848 2002-09-17 Michael Snyder <msnyder@redhat.com>
2850 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2851 point registers without sign extension.
2853 2002-09-17 Andrew Cagney <cagney@redhat.com>
2855 * blockframe.c (deprecated_read_register_dummy): Rename
2856 generic_read_register_dummy.
2857 * frame.c (frame_unwind_signed_register): New function.
2858 (frame_unwind_unsigned_register): New function.
2859 * frame.h (frame_unwind_signed_register): Declare.
2860 (frame_unwind_unsigned_register): Declare.
2861 (deprecated_read_register_dummy): Rename
2862 generic_read_register_dummy.
2864 * h8300-tdep.c (h8300_frame_chain): Update.
2865 (h8300_frame_saved_pc): Update.
2866 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2867 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2868 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2869 (s390_frame_chain): Update.
2870 * v850-tdep.c (v850_find_callers_reg): Update.
2871 (v850_frame_saved_pc): Update.
2872 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2873 (m32r_find_callers_reg): Update.
2874 (m32r_frame_saved_pc): Update.
2875 * sh-tdep.c (sh_find_callers_reg): Update.
2876 (sh64_get_saved_pr): Update.
2877 (sh_init_extra_frame_info): Update.
2878 (sh_init_extra_frame_info): Update.
2879 (sh64_init_extra_frame_info): Update.
2880 (sh64_init_extra_frame_info): Update.
2881 * mcore-tdep.c (mcore_find_callers_reg): Update.
2882 (mcore_frame_saved_pc): Update.
2883 (mcore_init_extra_frame_info): Update.
2884 * i386-tdep.c (i386_frame_saved_pc): Update.
2885 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2886 (ia64_init_extra_frame_info): Update.
2887 (ia64_init_extra_frame_info): Update.
2888 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2889 * cris-tdep.c (cris_init_extra_frame_info): Update.
2890 * avr-tdep.c (avr_frame_chain): Update.
2891 (avr_init_extra_frame_info): Update.
2892 (avr_frame_saved_pc): Update.
2893 * arm-tdep.c (arm_find_callers_reg): Update.
2894 (arm_init_extra_frame_info): Update.
2895 (arm_frame_saved_pc): Update.
2897 2002-09-17 Tom Tromey <tromey@redhat.com>
2899 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2902 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2904 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2905 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2907 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2910 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2912 * osfsolib.c: Remove file, replaced by solib-osf.c.
2913 * Makefile.in: Remove compilation rules for osfsolib.c.
2915 2002-09-16 David Carlton <carlton@math.stanford.edu>
2917 * cp-valprint.c (cp_print_class_method): Correct args to
2918 check_stub_method_group.
2920 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2922 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2923 `set architecture'. Unify naming convention of functions.
2924 (h8300_skip_prologue): Improve prologue analysis.
2925 (h8300_push_arguments): Rewritten to more closely match GCC's
2926 bizarre argument-passing behavior, along with the comment describing
2928 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2929 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2930 sim, remote-e7000.c, remote-hms.c and remote.c
2932 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2934 * i386-tdep.c (gdb_print_insn_i386): Removed.
2935 (i386_print_insn): New function.
2936 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2937 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2940 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2942 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2945 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2947 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2948 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2949 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2951 2002-09-13 Christopher Faylor <cgf@redhat.com>
2953 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2955 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2957 * gdbtypes.c (check_stub_method): Make static.
2958 (check_stub_method_group): New function.
2959 * gdbtypes.h: Update prototypes.
2960 * cp-support.c: New file.
2961 * cp-support.h: New file.
2963 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2964 (update_method_name_from_physname): New function.
2965 (read_member_functions): Correct method names for operators
2966 and v3 constructors/destructors. Separate v2 constructors and
2968 * Makefile.in (stabsread.o): Update dependencies.
2969 (SFILES): Add cp-support.c.
2970 (COMMON_OBS): Add cp-support.o.
2971 (cp_support_h, cp-support.o): Add.
2973 * cp-valprint.c (cp_print_class_method): Call
2974 check_stub_method_group instead of check_stub_method. Remove
2976 * p-valprint.c (pascal_object_print_class_method): Likewise.
2977 * valops.c (search_struct_method): Likewise.
2978 (find_method_list, value_struct_elt_for_reference): Likewise.
2980 2002-09-13 Andrew Cagney <cagney@redhat.com>
2982 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2983 * gdbarch.h, gdbarch.c: Regenerate.
2985 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2987 * frame.c (find_saved_register): Delete function.
2988 * frame.h (find_saved_register): Delete declaration.
2991 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2993 * mips-tdep.c (read_next_frame_reg): Re-hack using
2994 frame_register_unwind.
2996 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2998 * mips-tdep.c (mips_get_saved_register): Re-hack using
2999 frame_register_unwind.
3001 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3003 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3004 vector. Will be useful for Interix.
3005 * gdbarch.h, gdbarch.c: Regenerate.
3007 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3008 name of the malloc function by NAME_OF_MALLOC.
3010 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3012 * value.h (find_function_in_inferior): Add const keyword to
3013 one of the parameters. Allows us to invoke this function with
3015 * valops.c (find_function_in_inferior): Likewise.
3017 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3019 * exec.c (xfer_memory): Fix compilation warning with old versions
3021 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3023 2002-09-12 David Carlton <carlton@math.stanford.edu>
3025 * symtab.h: Run through gdb_indent.h.
3026 Add 2002 to Copyright year list.
3028 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3030 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3032 * MAINTAINERS: Add myself to write after approval list.
3034 2002-09-11 J. Brobecker <brobecker@gnat.com>
3036 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3038 2002-09-11 J. Brobecker <brobecker@gnat.com>
3040 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3043 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3045 * procfs.c (do_detach): Clear current signal, not just fault.
3046 Corrects problem with breakpoint trap signal leaking to detached
3049 2002-09-10 Michael Snyder <msnyder@redhat.com>
3051 * buildsym.c (finish_block): Protect against null pointer.
3053 2002-09-10 Andrew Cagney <cagney@redhat.com>
3055 * infcmd.c (default_print_registers_info): Send all output to
3056 ``file'' instead of ``gdb_stdout''.
3058 2002-09-10 Michael Snyder <msnyder@redhat.com>
3060 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3061 LONGEST, and use signed register read (addresses are sign-
3064 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3066 * event-loop.c (gdb_do_one_event): Make public.
3067 * event-loop.h (gdb_do_one_event): Declare.
3069 2002-09-10 Jeff Law <law@redhat.com>
3071 * infttrace.c (child_resume): Simplify and rework to avoid
3074 2002-09-09 Fred Fish <fnf@intrinsity.com>
3076 * printcmd.c (print_scalar_formatted): "len" is the number of
3077 target bytes, NOT the number of target bits.
3079 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3081 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3082 * top.c (init_main): Set rl_terminal_name.
3084 2002-09-08 Aidan Skinner <aidan@velvet.net>
3086 * ada-lang.c (ada_array_bound, ada_type_match,
3087 _initialize_ada_language): Fix K&R definitions.
3088 * ada-tasks.c (get_current_task): Fix K&R definitions.
3089 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3091 2002-09-07 Christopher Faylor <cgf@redhat.com>
3093 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3096 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3098 * i386-tdep.c (i386_register_virtual_type,
3099 i386_register_convertible, i386_register_convert_to_virtual,
3100 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3101 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3102 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3103 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3104 Don't set push_arguments twice.
3106 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3107 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3108 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3109 sigtramp_end to NULL.
3110 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3112 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3114 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3117 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3118 * gdbarch.h, gdbarch.c: Re-generate.
3119 * blockframe.c (find_pc_sect_partial_function): Convert to use
3120 SIGTRAMP_START_P predicate.
3122 2002-09-05 Michael Snyder <msnyder@redhat.com>
3124 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3125 generic_dummy_frame method and old method. Also distinguish
3126 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3127 (arm_extract_return_value): Use new regcache method.
3129 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3130 adjustment that doesn't conform to the ABI.
3131 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3132 saved regcache, not from current regcache.
3134 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3136 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3139 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3141 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3142 if arm_apcs_32 is false.
3144 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3146 GDB 5.3 branch created.
3148 2002-09-03 Theodore A. Roth <troth@verinet.com>
3150 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3151 generic_unwind_get_saved_register.
3153 2002-09-03 David Carlton <carlton@math.stanford.edu>
3155 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3156 argument (PR gdb/653). Update call to smash_to_method_type.
3157 (read_structure_scope): Update call to dwarf2_add_member_fn.
3159 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3161 * x86-64-linux-tdep.c: Include gdb_string.h
3162 * x86-64-linux-nat.c: Ditto.
3164 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3166 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3167 when YYDEBUG is set to 1.
3168 * c-exp.y: Likewise.
3169 * f-exp.y: Likewise.
3170 * jv-exp.y: Likewise.
3171 * m2-exp.y: Likewise.
3172 * p-exp.y: Likewise.
3174 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3176 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3178 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3179 solib_svr4_fetch_link_map_offsets to
3180 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3181 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3182 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3183 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3184 solib-svr4.o, and solib-legacy.o.
3185 * config/i386/tm-nbsd.h: Include solib.h.
3187 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3189 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3190 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3191 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3192 comment noting that this needs its own target configuration.
3193 * config/i386/nbsd.mt: New file.
3194 * config/i386/nbsdaout.mt: Remove.
3195 * config/i386/nbsdelf.mt: Ditto.
3196 * config/i386/tm-nbsdaout.h: Ditto.
3198 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3200 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3201 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3202 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3204 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3205 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3206 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3208 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3210 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3211 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3212 * i386-tdep.h (i386bsd_init_abi): New prototype.
3213 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3214 function declaration.
3215 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3216 for NetBSD-a.out or NetBSD-ELF.
3217 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3218 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3219 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3220 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3222 (i386nbsd_pc_in_sigtramp): New function.
3223 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3224 i386nbsd_pc_in_sigtramp.
3225 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3226 and i386nbsdelf_init_abi OS ABI handlers.
3227 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3228 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3230 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3232 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3233 registers if the target really has them.
3235 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3237 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3240 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3242 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3244 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3245 (alphanbsd_skip_sigtramp_frame): New functions.
3246 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3247 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3248 to alphanbsd_sigcontext_addr.
3250 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3252 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3254 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3255 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3256 nbsd_pc_in_sigtramp.
3257 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3258 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3259 * nbsd-tdep.c: Include gdb_string.h.
3260 (nbsd_pc_in_sigtramp): New function.
3261 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3262 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3263 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3264 ppcnbsd_pc_in_sigtramp.
3265 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3266 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3267 shnbsd_pc_in_sigtramp.
3268 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3269 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3270 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3272 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3274 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3275 watchpoints to NULL.
3276 (insert_breakpoints): set val field of watchpoints if NULL.
3279 2002-08-29 Jim Blandy <jimb@redhat.com>
3281 * symtab.c (lookup_symbol_aux): In the cases where we find a
3282 minimal symbol of an appropriate name and use its address to
3283 select a symtab to read and search, use `name' (as passed to us)
3284 as the demangled name when searching the symtab's global and
3285 static blocks, not the minsym's name.
3287 2002-08-29 Keith Seitz <keiths@redhat.com>
3289 * stack.c (print_frame_info_base): Always set current_source_symtab
3290 and current_source_line.
3292 2002-08-29 Donn Terry <donnte@microsoft.com>
3294 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3296 2002-08-28 Keith Seitz <keiths@redhat.com>
3298 * stack.c (select_frame): Add FIXME concerning selected-frame
3300 (select_frame_command): Send selected-frame-level-changed
3301 event notification, but only if the level actually changed.
3302 (up_silently_base): Add selected-frame-level-changed event
3304 (down_silently_base): Likewise.
3306 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3308 * Makefile.in: Update dependencies for all gdb/*.c files.
3310 2002-08-27 Tom Tromey <tromey@redhat.com>
3312 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3313 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3314 Update dependencies.
3315 * i387-tdep.c: Include gdb_string.h.
3316 * osabi.c: Likewise.
3317 * i386-linux-nat.c: Likewise.
3318 * lin-lwp.c: Likewise.
3319 * ax-gdb.c: Likewise.
3320 * signals/signals.c: Likewise.
3321 * jv-valprint.c: Likewise.
3322 * p-lang.c: Likewise.
3323 * c-valprint.c: Likewise.
3324 * cp-abi.c: Likewise.
3326 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3328 * cli/cli-script.h (copy_command_lines): Export.
3329 * breakpoint.c: Include cli/cli-script.h.
3330 * Makefile.in (breakpoint.o): Update dependencies.
3332 2002-08-26 Michael Snyder <msnyder@redhat.com>
3334 * breakpoint.c (insert_breakpoints): Protect all references
3335 to 'process_warning'. Shorten long lines.
3337 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3339 * cli/cli-script.c (copy_command_lines): New function.
3340 * defs.h (copy_command_lines): Export.
3341 * testsuite/gdb.base/commands.exp: New tests for commands
3342 attached to a temporary breakpoint, and for commands that
3343 delete the breakpoint they are attached to.
3345 2002-08-26 Michael Snyder <msnyder@redhat.com>
3347 * breakpoint.c (bpstat_stop_status): Instead of copying the
3348 pointer to the breakpoint commands struct, make a new copy
3349 of the struct and point to that.
3350 (bpstat_clear): Free the commands struct.
3351 (bpstat_clear_actions): Free the commands struct.
3352 (bpstat_do_actions): Free the command actions. Also execute
3353 the local cleanups, instead of deleting them.
3354 (delete_breakpoint): Leave the commands field of the bpstat
3355 chain alone -- it will be freed later.
3357 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3359 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3360 deleted in 2002-08-20 commit. This function is still used by
3363 2002-08-26 Keith Seitz <keiths@redhat.com>
3365 * gdb-events.sh: Add selected-frame-level-changed event.
3366 * gdb-events.c: Regenerated.
3367 * gdb-events.h: Regenerated.
3369 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3372 * inflow.c (terminal_save_ours): New function to save terminal
3374 * inferior.h (terminal_save_ours): Declare.
3375 * target.c (debug_to_terminal_save_ours): New function.
3376 (cleanup_target): Defaults to_terminal_save_ours.
3377 (update_current_target): Inherit to_terminal_save_ours.
3378 (setup_target_debug): Set to_terminal_save_ours.
3379 * target.h (target_terminal_save_ours): New to save terminal settings.
3380 (target_ops): New member to_terminal_save_ours.
3381 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3382 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3383 * inftarg.c (init_child_ops): Likewise.
3384 * m3-nat.c (init_m3_ops): Likewise.
3385 * procfs.c (init_procfs_ops): Likewise.
3386 * wince.c (init_child_ops): Likewise.
3387 * win32-nat.c (init_child_ops): Likewise.
3388 * sol-thread.c (init_sol_thread_ops): Likewise.
3390 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3392 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3393 use regcache_* functions.
3394 (i386_gdbarch_init): Set store_return_value instead of
3395 deprecated_store_return_value.
3397 * regcache.c (regcache_raw_write_signed,
3398 regcache_raw_write_unsigned): New functions.
3399 * regcache.h (regcache_raw_write_signed,
3400 regcache_raw_write_unsigned): New prototypes.
3402 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3404 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3405 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3406 source file dependencies. Cleanup corresponding generator rules.
3408 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3410 * regcache.h (register_offset_hack): Declare.
3411 (regcache_cooked_read_using_offset_hack): Declare.
3412 (regcache_cooked_write_using_offset_hack): Declare.
3414 * regcache.c (register_offset_hack): New function.
3415 (regcache_cooked_read_using_offset_hack): New function.
3416 (regcache_cooked_write_using_offset_hack): New function.
3417 (regcache_dump): Check that the registers, according to their
3418 offset, are packed hard against each other.
3419 (cooked_xfer_using_offset_hack): New function.
3421 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3423 * regcache.c (struct regcache_descr): Add field register_type.
3424 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3426 (init_regcache_descr): Initialize register_type. Pass the descr
3427 to init_legacy_regcache_descr. Use register_type instead of
3428 REGISTER_VIRTUAL_TYPE.
3429 (register_type): New function.
3430 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3431 * regcache.h (register_type): Declare.
3433 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3435 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3436 instead of deprecated_store_return_value. Fix fallout from
3437 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3439 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3441 * regcache.c (max_register_size): New function.
3442 (init_legacy_regcache_descr): Ensure that max_register_size is
3443 large enough for REGISTER_VIRTUAL_SIZE.
3444 * regcache.h (max_register_size): Declare.
3446 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3448 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3450 (e500_extract_return_value): Change type of valbuf pointer to
3453 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3455 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3458 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3459 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3460 long long) to prevent compiler warning on 64-bit systems.
3462 2002-08-23 Andrew Cagney <cagney@redhat.com>
3464 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3465 (DEPRECATED_STORE_RETURN_VALUE): New method.
3466 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3467 * gdbarch.h, gdbarch.c: Re-generate.
3469 * values.c (set_return_value): Pass current_regcache to
3471 * arch-utils.h (legacy_store_return_value): Declare.
3472 * arch-utils.c (legacy_store_return_value): New function.
3473 (legacy_extract_return_value): Update parameters.
3475 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3477 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3478 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3479 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3480 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3481 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3482 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3483 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3484 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3485 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3486 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3489 * i386-tdep.c (i386_extract_return_value): Update.
3490 * arch-utils.c (legacy_extract_return_value): Update.
3491 * frv-tdep.c (frv_gdbarch_init): Update.
3492 * cris-tdep.c (cris_gdbarch_init): Update.
3493 * d10v-tdep.c (d10v_gdbarch_init): Update.
3494 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3495 * m68k-tdep.c (m68k_gdbarch_init): Update.
3496 * mcore-tdep.c (mcore_gdbarch_init): Update.
3497 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3498 * s390-tdep.c (s390_gdbarch_init): Update.
3499 * sparc-tdep.c (sparc_gdbarch_init): Update.
3500 * sh-tdep.c (sh_gdbarch_init): Update.
3501 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3502 * v850-tdep.c (v850_gdbarch_init): Update.
3503 * avr-tdep.c (avr_gdbarch_init): Update.
3504 * ia64-tdep.c (ia64_gdbarch_init): Update.
3505 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3506 * vax-tdep.c (vax_gdbarch_init): Update.
3507 * alpha-tdep.c (alpha_gdbarch_init): Update.
3508 * arm-tdep.c (arm_gdbarch_init): Update.
3509 * mips-tdep.c (mips_gdbarch_init): Update.
3510 * i386-tdep.c (i386_gdbarch_init): Update.
3512 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3514 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3515 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3517 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3519 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3522 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3524 * infrun.c (handle_inferior_event): Move a comment outside of a
3525 function call, in order to avoid indent reformatting this part
3526 of the code in an unreadable way.
3528 2002-08-23 Grace Sainsbury <graces@redhat.com>
3530 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3531 when breakpoints fail. Move general breakpoint error messages to
3533 * breakpoint.c (insert_breakpoints): Change warnings when
3534 breakpoints are nto inserted to specify the type. Remove call to
3535 memory_error when hardware breakpoints can't be inserted. Remove
3536 multiple calls to warning so all messages are sent to the user at
3538 (delete_breakpoints): Make insert error messsages more explicit.
3540 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3542 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3543 gdbserver/ChangeLog.
3545 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3547 * i386-tdep.c: Include "objfiles.h".
3548 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3549 skip_trampoline_code.
3550 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3551 (CPLUS_MARKER): Define to '.'.
3553 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3555 (linux_corefile_thread_callback): Increase args->num_notes.
3556 (linux_make_note_section): Initialize thread_args.num_notes, and
3557 use it to determine whether notes for any threads were created.
3559 2002-08-23 Donn Terry <donnte@microsoft.com>
3561 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3562 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3564 (write_with_trace): Conditionalize out the switch branch handling
3565 PCSHOLD if the corresponding macro is not defined. Likewise for
3566 PRSABORT and PRSTOP.
3567 This change will be needed by the Interix port.
3569 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3571 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3572 write_register wherever possible instead of manipulating the
3573 register bytes directly.
3574 Assign VALUE_CONTENTS to a variable and use that.
3575 The GPR numbers are now dependent on the architecture.
3577 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3579 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3581 (skip_prologue): Add support for BookE/e500 instructions.
3582 (e500_extract_return_value): New function.
3583 (frame_get_saved_regs): Add support for saving ev registers and
3585 (e500_store_return_value): New function.
3586 (rs6000_gdbarch_init): Move up default intializations of
3587 deprecated_extract_return_value and store_return_value. Overwrite
3588 init of store_return_value with e500 specific version.
3589 Set extract_return_value for e500.
3591 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3593 * blockframe.c (generic_call_dummy_register_unwind): Use
3594 regcache_cooked_read to catch cases in which the variable is
3595 stored in a pseudo register.
3597 2002-08-22 Andrew Cagney <cagney@redhat.com>
3599 * NEWS: Mention that the i960 has been made obsolete.
3600 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3602 (remote-nrom.o): Obsolete target.
3603 (remote-nindy.o, i960-tdep.o): Ditto.
3604 * remote-nrom.c: Make file obsolete.
3605 * remote-nindy.c, remote-vx960.c: Ditto.
3606 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3607 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3608 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3609 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3610 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3611 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3612 i960-*-vxworks* obsolete.
3613 * MAINTAINERS: Note that the i960 is obsolete.
3615 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3617 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3618 detach to allow reinitialization.
3620 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3622 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3625 2002-08-22 Jim Blandy <jimb@redhat.com>
3627 * coffread.c (coff_symfile_read): Don't try to read the line
3628 number table from disk if the image file doesn't have a symbol
3629 table; we'll never actually look at the info anyway, and Windows
3630 ships DLL's with bogus file offsets for the line number data.
3632 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3634 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3637 2002-08-21 Michael Snyder <msnyder@redhat.com>
3639 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3640 (MSYMBOL_SIZE): Replace macro with function.
3641 (DEFAULT_MIPS_TYPE): Delete unused macro.
3642 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3643 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3645 2002-08-21 Jim Blandy <jimb@redhat.com>
3647 * valops.c (value_cast): Simplify and correct logic for doing a
3648 static cast from a pointer to a base class to a pointer to a
3651 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3653 * infcmd.c (default_print_registers_info): Replace
3655 (registers_info): Use gdbarch_print_registers_info instead of
3657 * inferior.h (default_print_registers_info): Replace
3659 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3660 (DO_REGISTERS_INFO): Change to a predicate function.
3661 * gdbarch.h, gdbarch.c: Regenerate.
3663 2002-08-21 Keith Seitz <keiths@redhat.com>
3665 * gdb-events.sh: Add target-changed event.
3666 * gdb-events.c: Regenerated.
3667 * gdb-events.c: Regenerated.
3668 * valops.c (value_assign): Add target-changed event notification
3669 to inlval_register, lval_memory, and lval_reg_frame_relative.
3671 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3673 * NEWS: Add an entry regarding the improvement of the next/step
3674 operation on Alpha Tru64 multi-processor machines.
3676 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3678 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3680 * Makefile.in: Update all _h macro definitions.
3681 * Makefile.in (install-gdbtk): Move to install section.
3682 (rdi-share/libangsd.a): Move to end of file.
3684 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3686 * frame.c (frame_register_unwind): When a register, set addrp to
3687 the register's byte.
3689 2002-08-20 Michael Snyder <msnyder@redhat.com>
3691 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3692 used locally, so move them from the target machine header to here.
3693 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3694 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3696 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3698 2002-08-20 Andrew Cagney <cagney@redhat.com>
3700 * NEWS: Mention that the Apollo line was made obsolete.
3701 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3702 m68*-hp-hpux* obsolete.
3703 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3704 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3705 * buildsym.c (make_blockvector): Make static.
3706 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3707 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3708 (ALLDEPFILES): Remove dstread.c.
3709 (dstread.o): Obsolete make rule.
3710 * dstread.c: Makefile obsolete.
3712 * config/m68k/hp300hpux.mt: Ditto.
3713 * config/m68k/hp300hpux.mh: Ditto.
3714 * config/m68k/hp300bsd.mt: Ditto.
3715 * config/m68k/hp300bsd.mh: Ditto.
3716 * config/m68k/apollo68b.mt: Ditto.
3717 * config/m68k/apollo68v.mh: Ditto.
3718 * config/m68k/apollo68b.mh: Ditto.
3720 2002-08-20 Michael Snyder <msnyder@redhat.com>
3722 * mips-tdep.c (mips_in_return_stub): Make static.
3723 (mips_gdbarch_init): Set in_solib_return_trampoline.
3724 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3726 2002-08-20 Michael Snyder <msnyder@redhat.com>
3728 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3729 * gdbarch.c, gdbarch.h: Regenerate.
3730 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3732 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3734 2002-08-20 Michael Snyder <msnyder@redhat.com>
3736 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3737 (mips_gdbarch_init): Set skip_trampoline_code,
3738 in_solib_call_trampoline.
3739 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3740 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3742 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3744 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3746 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3747 vector type for ev registers.
3748 (e500_pseudo_register_read): New function.
3749 (e500_pseudo_register_write): New function.
3750 (e500_dwarf2_reg_to_regnum): New function.
3751 (PPC_UISA_NOFP_SPRS): New macro.
3752 (PPC_EV_REGS): New macro.
3753 (PPC_GPRS_PSEUDO_REGS): New macro.
3754 (registers_e500): New register set for e500.
3755 (variants): Add e500 variant.
3756 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3757 before setting architectural dependent variations. Initialize ev
3758 registers numbers. Add case for e500 architecture. Set the
3759 number of pseudo registers.
3761 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3763 * rs6000-tdep.c: Clean up comments.
3765 2002-08-20 Andrew Cagney <cagney@redhat.com>
3767 * h8300-tdep.c: Re-indent file.
3769 2002-08-20 Jim Blandy <jimb@redhat.com>
3771 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3774 2002-08-20 Keith Seitz <keiths@redhat.com>
3776 * breakpoints.c (watch_command_1): Use internal breakpoint
3777 when setting a watchpoint_scope breakpoint.
3779 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3781 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3782 (build_builtin_type_vec64i): Ditto.
3783 (build_builtin_type_vec128): Ditto.
3784 (build_builtin_type_vec128i): Ditto.
3786 2002-08-19 Michael Snyder <msnyder@redhat.com>
3788 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3789 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3790 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3791 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3792 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3793 CALL_DUMMY_ADDRESS): Delete.
3794 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3795 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3796 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3797 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3798 push_return_address.
3799 (mips_register_raw_size, mips_eabi_use_struct_convention,
3800 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3801 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3802 mips_init_extra_frame_info, mips_eabi_push_arguments,
3803 mips_n32n64_push_arguments, mips_push_return_address,
3804 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3805 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3807 2002-08-19 Michael Snyder <msnyder@redhat.com>
3809 * mips-tdep.c (mips_frame_num_args): New function.
3810 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3811 frame_saved_pc, frame_args_address, frame_locals_address,
3812 frame_num_args, and frame_args_skip.
3813 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3814 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3815 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3816 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3818 2002-08-20 Michael Snyder <msnyder@redhat.com>
3820 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3821 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3822 * mips-tdep.c (mips_store_struct_return): New function.
3823 (mips_extract_struct_value_address): New function.
3824 (mips_gdbarch_init): Set store_struct_return and
3825 extract_struct_value_address.
3827 2002-08-20 David Carlton <carlton@math.stanford.edu>
3829 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3830 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3831 (read_file_scope): Check that line_header is nonzero before
3832 decoding macro information.
3834 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3836 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3837 flag the general-purpose registers as floating-point on targets
3838 that don't support the floating-point registers.
3840 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3842 * rs6000-tdep.c (altivec_register_p): Delete.
3843 (rs6000_do_altivec_registers): Delete.
3844 (rs6000_altivec_registers_info): Delete.
3845 (rs6000_do_registers_info): Delete.
3846 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3847 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3849 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3851 * infcmd.c (do_registers_info): Print vector registers in hex
3853 (print_vector_info): Check that printing registers
3855 (print_float_info): Ditto.
3857 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3859 * mips-tdep.c (mips_gdbarch_init): Update.
3860 (mips_o32_extract_return_value): Rewrite.
3861 (mips_o32_store_return_value): Rewrite.
3862 (mips_o32_xfer_return_value): New function.
3863 (mips_xfer_register): Tweak debug print message. Allow for
3864 buf_offset when dumping the value transfered.
3866 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3868 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3869 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3870 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3871 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3872 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3874 2002-08-14 Michael Snyder <msnyder@redhat.com>
3876 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3878 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3880 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3882 (P): New macro to define a register as a pseudo register.
3883 (R, R4, R8, R16, FR32, R64, R0): Updated.
3884 (struct variant): Add new fields for number of pseudo registers
3885 and number of total registers.
3886 (tot_num_registers): New macro replacing....
3887 (num_registers): ...deleted macro.
3888 (num_registers): New function.
3889 (num_pseudo_registers): New function.
3890 (variants): Update all variants to intialize new fields correctly.
3891 Postpone initialization of number of pseudo regs and real regs.
3892 (init_variants): New function.
3893 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3896 2002-08-19 David Carlton <carlton@math.stanford.edu>
3898 * valops.c (search_struct_field): Change error message to treat
3899 return value of 0 from value_static_field as meaning that field is
3901 (value_struct_elt_for_reference): Ditto.
3902 * values.c (value_static_field): Treat an unresolved location the
3903 same as a nonexistent symbol. Fix PR gdb/635.
3904 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3905 enclosed. Fix PR gdb/574.
3906 * MAINTAINERS: Add self to Write After Approval list.
3908 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3910 * mips-tdep.c (mips_xfer_register): New function.
3911 (mips_n32n64_extract_return_value): Rewrite.
3912 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3913 instead of deprecated_extract_return_value.
3915 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3917 * rs6000-tdep.c (TDEP): Delete macro.
3918 (branch_dest): Replace use of TDEP macro with its body.
3919 (rs6000_pop_frame): Ditto.
3920 (rs6000_push_arguments): Ditto.
3921 (rs6000_skip_trampoline_code): Ditto.
3922 (rs6000_frame_saved_pc): Ditto.
3923 (rs6000_frame_chain): Ditto.
3924 (rs6000_register_name): Ditto.
3925 (rs6000_register_byte): Ditto.
3926 (rs6000_register_raw_size): Ditto.
3927 (rs6000_register_virtual_type): Ditto.
3928 (rs6000_register_convertible): Ditto.
3929 (rs6000_convert_from_func_ptr_addr): Ditto.
3931 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3933 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3935 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3936 MIPS_LINUX_JB_ELEMENT_SIZE.
3937 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3938 for MAX_REGISTER_RAW_SIZE arrays.
3939 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3940 MIPS_LINUX_JB_ELEMENT_SIZE.
3942 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3944 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3946 2002-08-19 Aidan Skinner <aidan@velvet.net>
3948 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3949 ada-valprint.c ada-tasks.c.
3950 (YYFILES): Add ada-exp.y.
3951 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3952 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3953 (ada-exp.tab.o): New target.
3955 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3957 * regcache.c (regcache_xfer_part): New function.
3958 (regcache_raw_read_part): New function.
3959 (regcache_raw_write_part): New function.
3960 (regcache_cooked_read_part): New function.
3961 (regcache_cooked_write_part): New function.
3962 * regcache.h (regcache_raw_read_part): Declare.
3963 (regcache_raw_write_part): Declare.
3964 (regcache_cooked_read_part): Declare.
3965 (regcache_cooked_write_part): Declare.
3967 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3969 * remote.c (remote_open_1): Add async_p.
3970 (remote_async_open_1): Delete.
3971 (open_remote_target): Delete.
3972 (remote_open, extended_remote_open): Update calls to remote_open_1.
3973 (remote_async_open, extended_remote_async_open): Call
3974 remote_open_1 instead of remote_async_open_1.
3976 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3978 * blockframe.c: Fix a few coding standard violations.
3980 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3982 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3984 * config/i386/tm-i386sco5.h: ... here. File removed.
3985 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3987 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3988 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3989 (TM_FILE): Set to tm-i386.h.
3990 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3991 * config/i386/tm-i386v.h: Remove file.
3992 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3993 instead of "i386/tm-i386v.h".
3994 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3995 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3997 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3998 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4001 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4003 * config/i386/nm-i386v.h: Add protection against
4005 (i386_register_u_addr): Remove prototype.
4006 (register_u_addr): New prototype.
4007 (REGISTER_U_ADDR): Redefine accordingly.
4008 * i386v-nat.c: Improve several comments.
4009 (i386_register_u_addr): Change signature and rename to
4010 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4013 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4015 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4016 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4017 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4018 deprecated_extract_return_value.
4019 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4020 rename mips_o32o64_push_arguments.
4021 (mips_gdbarch_init): Update.
4022 (mips_extract_return_value): Delete.
4023 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4024 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4025 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4026 (mips_n32n64_extract_return_value): Clone
4027 mips_extract_return_value.
4028 (mips_store_return_value): Delete.
4029 (mips_o32_store_return_value): Clone mips_store_return_value.
4030 (mips_o64_store_return_value): Clone mips_store_return_value.
4031 (mips_eabi_store_return_value): Clone mips_store_return_value.
4032 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4034 2002-08-18 Aidan Skinner <aidan@velvet.net>
4036 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4037 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4039 2002-08-18 Aidan Skinner <aidan@velvet.net>
4041 * ada-lang.c: Run through gdb_indent.sh.
4042 * ada-lang.h: Run through gdb_indent.sh.
4043 * ada-tasks.c: Run through gdb_indent.sh.
4044 * ada-typeprint.c: Run through gdb_indent.sh.
4045 * ada-valprint.c: Run through gdb_indent.sh.
4047 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4049 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4052 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4054 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4056 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4057 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4059 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4060 write_register_gen instead of write_register_bytes.
4062 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4063 i[3456]-*-osf1mk* configurations have been made obsolete.
4064 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4065 i[3456]86-*-osf1mk* hosts obsolete.
4066 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4068 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4069 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4070 config/i386/i386m3.mt, config/i386/nm-m3.h,
4071 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4072 config/i386/i386mk.mh, config/i386/i386mk.mt,
4073 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4075 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4076 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4077 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4079 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4081 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4082 (hppa_value_returned_from_stack): Declare.
4083 (hppa_extract_return_value): Declare.
4084 * config/pa/hppa.mt: New file.
4085 * configure.tgt: Recognize hppa*-*-*.
4086 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4088 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4090 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4093 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4095 * top.c (gdb_rl_operate_and_get_next): Make sure
4096 operate-and-get-next functions correctly even when the history
4097 list is completely filled.
4099 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4101 * MAINTAINERS (Target Instruction Set Architectures): Rename
4102 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4103 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4104 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4105 already listed under Host/Native.
4107 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4108 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4111 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4113 * config/ia64/ia64.mt: New file.
4114 * config/alpha/alpha.mt: New file.
4115 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4116 ia64-linux-gnu. Mention that ia64-elf is broken.
4117 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4119 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4121 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4122 generic_func_frame_valid instead of func_frame_valid.
4124 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4126 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4127 procfs appears to be broken when debugging on multi-processor
4128 machines. So enable software single stepping in order to avoid
4129 using the procfs interface to do next/step operations, using
4130 internal breakpoints instead.
4132 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4133 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4134 make this pc address equal to the value it would have if the
4135 system stepping capability was used. Also set a new flag used
4136 to ensure that we don't readjust the PC one more time later.
4138 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4139 address by DECR_PC_AFTER_BREAK when software single step is
4140 in use for this architecture, as this has already been taken
4141 care of in handle_inferior_event().
4143 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4145 * infrun.c (handle_inferior_event): Minor reformatting, to make
4146 a rather long condition expression easier to read.
4148 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4150 * Makefile.in (gdbtk.o): Move to end of file.
4151 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4152 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4153 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4154 (gdbtk-wrapper.o, gdbres.o): Ditto.
4156 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4158 * Makefile.in (copying.o): Separate out compile rule.
4159 (hpux-thread.o, procfs.o, signals.o): Ditto.
4160 (v850ice.o, z8k-tdep.o): Ditto.
4161 (tui-file.o): Move to TUI section.
4162 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4163 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4165 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4167 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4168 skip_trampoline_code, for better namespace-proofing.
4170 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4172 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4174 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4176 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4178 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4179 signal, check whether we hit a breakpoint before checking for a
4180 single step breakpoint. Otherwise, GDB fails to notice that a
4181 breakpoint has been hit when stepping onto a breakpoint.
4183 2002-08-16 Keith Seitz <keiths@redhat.com>
4185 * gdb-events.sh (clear_gdb_event_hooks): New function.
4186 * gdb-events.c: Regenerate.
4187 * gdb-events.h: Regenerate.
4189 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4191 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4192 not_a_sw_breakpoint.
4193 * breakpoint.h (bpstat_stop_status): Add parameter names.
4195 2002-08-16 Grace Sainsbury <graces@redhat.com>
4197 * remote.c (remote_insert_hw_breakpoint)
4198 (remote_remove_hw_breakpoint): Fix calculation of length field
4201 2002-08-15 Michael Snyder <msnyder@redhat.com>
4203 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4204 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4205 (supply_fpregset): Ditto.
4207 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4208 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4209 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4210 (TARGET_READ_SP): Delete.
4211 (DO_REGISTERS_INFO): Delete.
4212 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4214 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4215 from macros to functions.
4217 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4218 (mips_register_convertible, mips_register_convert_to_virtual,
4219 mips_register_convert_to_raw): Make static.
4220 (mips_read_sp): New function.
4221 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4222 (mips_do_registers_info): Make static.
4223 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4224 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4225 (mips_register_convert_from_type, mips_register_convert_to_type):
4227 (mips_gdbarch_init): Set up function_start_offset,
4228 register_virtual_size, pc_in_sigtramp.
4230 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4232 * infcmd.c (vector_info): New function.
4233 (_initialize_infcmd): Add command "info vector".
4234 (print_vector_info): New function.
4236 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4237 * gdbarch.h, gdbarch.c: Regenerate.
4239 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4241 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4242 ``print_all''. Only print vector registers when ``print_all''.
4244 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4246 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4247 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4249 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4250 Add `args' parameter.
4251 * gdbarch.h, gdbarch.c: Regenerate.
4253 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4255 * infcmd.c (float_info): Call print_float_info.
4256 (print_float_info): New function. By default, print the
4257 floating-point registers.
4259 * arch-utils.h (default_print_float_info): Delete declaration.
4260 * arch-utils.c (default_print_float_info): Delete function.
4262 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4264 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4267 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4270 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4271 * configure.host: Make i[3456]86-*-aix host obsolete.
4272 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4273 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4274 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4275 config/i386/xm-i386aix.h: Make files obsolete.
4276 * i386aix-nat.c: Make file obsolete.
4277 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4278 (i386aix-nat.o): Make target obsolete.
4280 * config/i386/nm-gnu.h: Removed.
4281 * config/i386/nm-i386gnu.h: New file.
4282 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4283 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4285 * config/i386/tm-i386gnu.h: ... here. Removed.
4286 * config/i386/xm-i386gnu.h: Removed.
4287 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4288 (NAT_FILE): Set to nm-i386gnu.h.
4289 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4290 * i386-tdep.c: New file.
4291 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4292 (i386gnu-tdep.o): Specify dependencies.
4294 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4296 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4297 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4298 Adjust a few comments to reflect reality a bit closer.
4299 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4300 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4301 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4302 target_insert_watchpoint, target_remove_watchpoint):
4304 * config/i386/nm-i386sco5.h: ... here.
4305 (kernel_u_size): Add prototype. Improve a few comments and add
4306 protection against multiple inclusion.
4308 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4311 * uw-thread.c (SP_ARG0): Define if not already defined.
4312 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4314 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4316 * config/i386/tm-i386.h: Don't include "regcache.h".
4318 * i387-tdep.h (i387_print_float_info): New prototype.
4319 * i387-tdep.c (print_i387_value, print_i387_ext,
4320 print_i387_status_word, print_i387_control_word): Add `struct
4321 ui_file *' argument and use it for output.
4322 (i387_print_float_info): Renamed from i387_float_info. Add
4323 `struct gdbarch *' and `struct ui_file *' arguments and use the
4325 * i386-tdep.c: Include "i387-tdep.h".
4326 (i386_gdbarch_init): Set print_float_info.
4327 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4328 (FLOAT_INFO): Remove define.
4330 2002-08-13 Michael Snyder <msnyder@redhat.com>
4332 * mips-tdep.c (mips_push_arguments): Rename to
4333 mips_eabi_push_arguments, and tune for EABI.
4334 (MIPS_REGS_HAVE_HOME_P): Delete.
4335 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4336 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4337 Delete references to mips_regs_have_home_p.
4339 2002-08-14 Keith Seitz <keiths@redhat.com>
4341 * Makefile.in (install-gdbtk): Create insight plugin directory.
4342 Install plugins.tcl file.
4344 2002-08-14 Keith Seitz <keiths@redhat.com>
4346 * configure.in: Move SUBDIRS to near top of the file so that
4347 --enable options may add things to it.
4348 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4349 * configure: Regenerate.
4351 2002-08-13 Michael Snyder <msnyder@redhat.com>
4353 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4354 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4355 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4357 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4359 * vax-tdep.c (vax_get_saved_register): Delete function.
4360 (vax_gdbarch_init): Update.
4361 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4362 (ns32k_gdbarch_init): Update.
4363 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4364 (alpha_gdbarch_init): Update.
4366 2002-08-13 Andrew Cagney <cagney@redhat.com>
4368 * regcache.c (init_regcache_descr): Overallocate the
4369 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4370 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4372 (set_register_cached): Add range checking assertions. Use
4375 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4377 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4378 numbers for MMX registers.
4380 2002-08-13 Andrew Cagney <cagney@redhat.com>
4382 * i386-tdep.c (i386_gdbarch_init): Use
4383 generic_unwind_get_saved_register.
4385 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4387 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4388 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4390 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4391 Delete. Add comment regarding this now-deleted target method.
4393 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4395 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4396 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4397 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4398 real PC and the page number (if it's within the memory bank window).
4399 (m68hc11_pseudo_register_write): Likewise when saving.
4400 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4401 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4402 (m68hc11_register_raw_size): And use 32-bit for it.
4403 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4404 16K memory bank is used by the prog; also use the virtual pc.
4406 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4408 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4409 (m68hc11_gdbarch_init): Install it in gdbarch.
4410 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4411 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4412 (MSYMBOL_SIZE): New for documentation.
4413 (insn_return_kind): Enum to specify how a function returns.
4414 (frame_extra_info): Cleanup and record the return mode.
4415 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4416 register in address computation.
4417 (m68hc11_get_return_insn): New to obtain the return instruction used
4419 (m68hc11_frame_init_saved_regs): Take into account the return
4420 instruction used by the function for far and interrupt functions.
4421 (m68hc11_init_extra_frame_info): Take into account page register.
4422 (m68hc11_frame_args_address): Adjust according to the return mode.
4423 (show_regs): Print page register only when it's used.
4425 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4427 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4428 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4429 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4431 (m68hc11_register_raw_size): Likewise.
4433 2002-08-13 Andrew Cagney <cagney@redhat.com>
4435 * i386-tdep.c (i386_register_name): Handle mmx registers.
4436 (mmx_regnum_p): New function.
4437 (i386_mmx_names): New array.
4438 (mmx_num_regs): New variable.
4439 (i386_pseudo_register_read): New function.
4440 (i386_pseudo_register_write): New function.
4441 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4443 * regcache.c (regcache_raw_read_unsigned): New function.
4444 (regcache_raw_read_signed): New function.
4445 * regcache.h (regcache_raw_read_unsigned): Declare.
4446 (regcache_raw_read_signed): Declare.
4448 2002-08-13 Andrew Cagney <cagney@redhat.com>
4450 * regcache.c (regcache_raw_read_as_address): Delete function.
4451 (regcache_cooked_read_signed): New function.
4452 (regcache_cooked_read_unsigned): New function.
4453 * regcache.h (regcache_cooked_read_signed): Declare.
4454 (regcache_cooked_read_unsigned): Declare.
4455 (regcache_raw_read_as_address): Delete declaration.
4457 * blockframe.c (generic_read_register_dummy): Use
4458 regcache_cooked_read_unsigned.
4459 * i386-tdep.c (i386_extract_struct_value_address): Use
4460 regcache_cooked_read_unsigned.
4462 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4465 double sizes according to ELF ABI flags.
4466 (gdbarch_tdep): Record elf_flags.
4468 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4470 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4471 (m6812_prolog): They can appear in 68HC12 function prologue.
4472 (m68hc11_frame_chain): Cleanup.
4474 2002-08-12 Andrew Cagney <cagney@redhat.com>
4476 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4478 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4479 (i386_linux_register_raw_size): Delete function.
4480 (i386_linux_init_abi): Update.
4481 * i386-tdep.c (i386_register_raw_size): Delete function.
4482 (i386_register_byte): Delete function.
4483 (i386_gdbarch_init): Update.
4484 (i386_register_size): Delete array.
4485 (i386_register_offset): Delete array.
4487 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4488 (REGISTER_RAW_SIZE): Delete macro.
4489 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4490 (REGISTER_BYTE): Delete macro.
4492 2002-08-11 Aidan Skinner <aidan@velvet.net>
4494 * ada-lang.c (ada_lookup_partial_symbol)
4495 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4496 prototype names so that grep ^func works properly.
4498 * ada-lang.c (ada_array_element_type)
4499 (ada_lookup_partial_symbol): Fix typos in parameter list.
4501 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4502 Fix prototype names so that grep ^func works properly.
4504 2002-08-10 Andrew Cagney <cagney@redhat.com>
4505 Elena Zannoni <ezannoni@redhat.com>
4506 Martin M. Hunt <hunt@redhat.com>
4508 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4509 (build_builtin_type_vec128i): Set the vector bit.
4510 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4511 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4512 (build_builtin_type_vec64): New function.
4513 (build_builtin_type_vec64i): New function.
4514 (build_gdbtypes): Initialize builtin_type_vec64 and
4515 builtin_type_vec64i.
4517 2002-08-09 Andrew Cagney <cagney@redhat.com>
4519 * regcache.c (regcache_dump): Compare the register offset
4521 * arch-utils.c (generic_register_byte): New function.
4522 * arch-utils.h (generic_register_byte): Declare.
4523 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4524 * gdbarch.h, gdbarch.c: Regenerate.
4526 2002-08-09 Andrew Cagney <cagney@redhat.com>
4528 * regcache.c: Include "gdbcmd.h"
4529 (_initialize_regcache): Add commands "maintenance print
4530 registers", "maintenance print raw-registers" and "maintenance
4531 print cooked-registers".
4532 (enum regcache_dump_what): Define.
4533 (dump_endian_bytes): New function.
4534 (regcache_dump): New function.
4535 (regcache_print): New function.
4536 (maintenance_print_registers): New function.
4537 (maintenance_print_raw_registers): New function.
4538 (maintenance_print_cooked_registers): New function.
4539 * Makefile.in (regcache.o): Update dependencies.
4541 2002-08-09 Michael Snyder <msnyder@redhat.com>
4543 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4544 (mips_push_arguments): Correct some comments. Use paddr_nz
4545 for printing addresses in debug output. Replace static
4546 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4547 (mips_n32n64_push_arguments): New function, cloned from
4548 mips_push_arguments and tuned for the n32/n64 ABI.
4549 (mips_push_register): Buffer needs dynamic allocation.
4550 (mips_print_register): Ditto.
4551 (do_gp_register_row): Ditto.
4552 (mips_store_return_value): Ditto.
4553 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4555 2002-08-09 Don Howard <dhoward@redhat.com>
4557 * memattr.c (mem_info_command): Print special case of upper bound
4558 as max CORE_ADDR + 1.
4560 2002-08-08 Michael Snyder <msnyder@redhat.com>
4562 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4563 returns structs by ref if they're too big to fit in two registers.
4565 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4567 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4569 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4570 mips_find_saved_regs().
4571 (mips_pop_frame): Likewise.
4573 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4575 * blockframe.c (frame_saved_regs_register_unwind): Revise
4576 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4579 2002-08-09 Grace Sainsbury <graces@redhat.com>
4581 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4582 T-packets; the 'a' is not taken as a register number.
4583 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4584 (remote_stopped_data_address): New functions; add to target
4586 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4587 prototypes to match other implementations of this
4588 function. replace integer argument with pointer -- the length
4589 field in the Z-packet is the length of what is pointed to or 1 if
4590 pointer is null. Add to target vector.
4591 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4595 * remote.c (remote_wait): Add support to extract optional
4596 watchpoint information from T-packet. Ignore unrecognized
4597 optional info in T-packet.
4598 (remote_async_wait): Ditto.
4600 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4602 * cli/cli-dump.c: Change fopen modes to use binary open modes
4603 as defined in include/fopen-bin.h throughout.
4605 2002-08-08 Michael Snyder <msnyder@redhat.com>
4607 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4609 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4611 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4612 assertion failure by returning early after a warning.
4614 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4616 * mips-tdep.c (mips_find_saved_regs): Make static.
4617 (mips_frame_init_saved_regs): New function.
4618 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4619 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4620 (mips_find_saved_regs): Delete declaration.
4622 2002-08-08 Grace Sainsbury <graces@redhat.com>
4624 * remote.c (remote_wait, remote_async_wait): Change
4625 thread_num from int to ULONGEST.
4626 (unpack_varlen_hex): Change result parameter from
4627 int * to ULONGEST *.
4629 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4631 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4632 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4634 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4636 2002-08-08 Andrew Cagney <cagney@redhat.com>
4638 * gcore.c (override_derive_stack_segment): Delete variable.
4639 (preempt_derive_stack_segment): Delete function.
4640 (derive_stack_segment): Delete function.
4641 (default_derive_stack_segment): Renamed to derive_stack_segment.
4642 (override_derive_heap_segment): Delete variable.
4643 (preempt_derive_heap_segment): Delete function.
4644 (derive_heap_segment): Delete function.
4645 (default_derive_heap_segment): Rename to derive_heap_segment.
4647 2002-08-06 Michael Snyder <msnyder@redhat.com>
4649 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4650 * mips-tdep.c (mips_EABI_use_struct_convention,
4651 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4652 New functions. (mips_use_struct_convention): Delete.
4653 (mips_gdbarch_init): set use_gdbarch_convention.
4655 2002-08-06 Michael Snyder <msnyder@redhat.com>
4657 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4658 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4659 mips_o32_reg_struct_has_addr): New functions.
4660 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4662 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4664 * regcache.c (pseudo_register): Delete function.
4665 (fetch_register): Delete function.
4666 (store_register): Delete function.
4667 (regcache_raw_read, legacy_read_register_gen): Use
4668 target_fetch_registers instead of fetch_register.
4669 (legacy_write_register_gen, regcache_raw_write): Use
4670 target_store_register instead of store_register.
4671 (write_register_bytes): Ditto.
4673 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4674 (STORE_PSEUDO_REGISTER): Delete.
4675 * gdbarch.h, gdbarch.c: Regenerate.
4677 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4679 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4680 write dump file binary.
4682 2002-08-05 Michael Snyder <msnyder@redhat.com>
4684 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4685 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4686 (mips_gdbarch_init): Set N32 target to be mips64.
4688 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4690 * frame.c (find_saved_register): Break out of loop once saved
4691 register address is found. Don't mention sparc in loop comment
4694 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4696 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4697 mips_default_saved_regsize to 8.
4699 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4701 * gcore.c: Do not include <sys/procfs.h>.
4702 * Makefile.in (gcore.o): Update dependencies.
4704 2002-08-06 Andrew Cagney <cagney@redhat.com>
4706 * configure.tgt: Make arc-*-* obsolete.
4707 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4708 * MAINTAINERS: Make arc-elf obsolete.
4709 * arc-tdep.c: Make file obsolete.
4710 * config/arc/arc.mt: Ditto.
4711 * config/arc/tm-arc.h: Ditto.
4713 2002-08-05 Theodore A. Roth <troth@verinet.com>
4715 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4717 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4719 * mcore-tdep.c (mcore_gdbarch_init): Use
4720 generic_unwind_get_saved_register instead of
4721 generic_get_saved_register.
4722 * v850-tdep.c (v850_gdbarch_init): Ditto.
4723 * frv-tdep.c (frv_gdbarch_init): Ditto.
4724 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4725 * s390-tdep.c (s390_gdbarch_init): Ditto.
4726 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4727 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4728 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4730 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4732 * objfiles.h: Add missing #include "symfile.h"
4734 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4736 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4738 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4739 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4742 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4744 * NEWS: Cleanup and nitpick.
4746 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4748 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4750 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4752 * Makefile.in (gdbtk-bp.o): Update dependencies.
4753 (gdbtk-register.o): Ditto.
4754 (gdbtk-varobj.o): Ditto.
4756 2002-08-03 Andrew Cagney <cagney@redhat.com>
4758 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4759 m68hc11_fetch_pseudo_register.
4760 (m68hc11_pseudo_register_write): Replace
4761 m68hc11_store_pseudo_register.
4762 (m68hc11_gdbarch_init): Update.
4764 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4766 * gdbarch.sh: Include "gdb_string.h".
4767 * gdbarch.c: Regenerate.
4769 * regcache.c: Include "gdb_string.h".
4770 * ax-general.c: Ditto.
4772 * std-regs.c: Ditto.
4773 * fbsd-proc.c: Ditto.
4776 * Makefile.in (regcache.o): Update dependencies.
4777 (thread.o, gdbarch.o): Ditto.
4778 (ax-general.o, gdbarch.o): Ditto.
4779 (varobj.o, std-regs.o): Ditto.
4780 (fbsd-proc.o): Specify dependencies.
4782 2002-08-02 Andrew Cagney <cagney@redhat.com>
4784 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4786 (regcache_cooked_write): Ditto.
4788 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4790 * regcache.c (regcache_cooked_read): New function.
4791 (regcache_cooked_write): New function.
4792 (read_register_gen): Rewrite using regcache_cooked_read.
4793 (write_register_gen): Rewrite using regcache_cooked_write.
4795 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4798 2002-08-02 Andrew Cagney <cagney@redhat.com>
4800 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4801 Replace the architecture methods register_read and register_write.
4802 * gdbarch.h, gdbarch.c: Regenerate.
4803 * regcache.c (init_regcache_descr): Update.
4804 (read_register_gen): Update.
4805 (write_register_gen): Update.
4806 (supply_register): Update comment.
4808 * sh-tdep.c (sh_gdbarch_init): Update.
4809 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4810 `regcache' and `gdbarch' parameters. Make `buffer' a void
4811 pointer. Update code.
4812 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4813 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4814 void pointer. Update code.
4815 (sh64_register_write): Delete.
4816 (sh4_register_read): Delete.
4817 (sh64_register_read): Delete.
4818 (sh4_register_write): Delete.
4819 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4820 void pointer, `to' parameter a void pointer.
4821 (sh_sh64_register_convert_to_raw): Ditto.
4823 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4825 * mips-tdep.c (mips_register_virtual_type): Use architecture
4826 invariant return values.
4828 2002-08-01 Andrew Cagney <cagney@redhat.com>
4830 * linux-proc.c: Include "gdb_string.h".
4831 * Makefile.in (linux-proc.o): Update dependency list.
4833 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4835 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4838 2002-08-01 Grace Sainsbury <graces@redhat.com>
4840 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4841 to_insert_watchpoint, to_remove_watchpoint,
4842 to_stopped_by_watchpoint, to_stopped_data_address,
4843 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4844 target vecctor. Define their corresponding macros so they call
4847 * target.c: Add default and debug versions of for
4848 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4849 to_insert_watchpoint, to_remove_watchpoint,
4850 to_stopped_by_watchpoint, to_stopped_data_address,
4851 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4853 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4855 * mips-tdep.c (mips_register_virtual_type): New function.
4856 (mips_gdbarch_init): Register mips_register_virtual_type()
4857 with gdbarch machinery.
4858 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4859 this file instead of tm-bigmips.h.
4860 (MIPS_REGSIZE): Delete this macro.
4861 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4862 multiarch version in mips-tdep.c will be found.
4864 2002-08-01 Andrew Cagney <cagney@redhat.com>
4866 * NEWS: Menion that CHILL has been made obsolete.
4868 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4869 * stabsread.c (read_range_type): Ditto.
4870 * gdbtypes.h: Ditto.
4871 * language.c (binop_type_check): Ditto.
4872 (binop_result_type): Ditto.
4873 (integral_type): Ditto.
4874 (character_type): Ditto.
4875 (string_type): Ditto.
4876 (boolean_type): Ditto.
4877 (structured_type): Ditto.
4878 (lang_bool_type): Ditto.
4879 (binop_type_check): Ditto.
4880 * language.h (_LANG_chill): Ditto.
4881 * dwarfread.c (set_cu_language): Ditto.
4882 * dwarfread.c (CHILL_PRODUCER): Ditto.
4883 * dwarfread.c (handle_producer): Ditto.
4884 * expression.h (enum exp_opcode): Ditto.
4885 * eval.c: Ditto for comments.
4886 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4887 * expprint.c (print_subexp): Ditto.
4888 (print_subexp): Ditto.
4889 * valops.c (value_cast): Ditto.
4890 (search_struct_field): Ditto.
4891 * value.h (COERCE_VARYING_ARRAY): Ditto.
4892 * symfile.c (init_filename_language_table): Ditto.
4893 (add_psymbol_with_dem_name_to_list): Ditto.
4894 * valarith.c (value_binop): Ditto.
4896 * valops.c (value_slice): Ditto.
4897 * symtab.h (union language_specific): Ditto.
4898 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4899 (SYMBOL_DEMANGLED_NAME): Ditto.
4900 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4901 * defs.h (enum language): Ditto.
4902 * symtab.c (got_symtab): Ditto.
4903 * utils.c (fprintf_symbol_filtered): Ditto.
4905 * ch-typeprint.c: Make file obsolete.
4906 * ch-valprint.c: Make file obsolete.
4907 * ch-lang.h: Make file obsolete.
4908 * ch-exp.c: Make file obsolete.
4909 * ch-lang.c: Make file obsolete.
4911 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4913 (TARGET_FLAGS_TO_PASS): Ditto.
4914 (CHILLFLAGS): Obsolete.
4916 (CHILL_FOR_TARGET): Obsolete.
4917 (CHILL_LIB): Obsolete.
4918 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4920 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4921 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4923 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4926 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4928 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4929 This does not change anything at the moment, but will be helpful
4930 later when full Ada support is integrated.
4932 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4934 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4937 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4939 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4940 and save it in a local variable. Use variable in later test.
4942 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4944 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4945 test. (Thanks to Daniel Jacobowitz.)
4947 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4949 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4950 (mips_abi_strings): Add "n64".
4951 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4953 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4955 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4956 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4958 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4960 * utils.c (host_pointer_to_address, address_to_host_pointer):
4961 Use gdb_assert() instead of explicit call to internal_error().
4963 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4965 * Makefile.in (rs6000-nat.o): Update dependencies.
4967 From Nicholas Duffek:
4968 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4969 (aix-thread.o): New rule.
4970 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4971 * config/powerpc/aix432.mh: New file.
4973 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4975 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4976 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4977 (fetch_core_registers, ppc_linux_supply_gregset)
4978 (ppc_linux_supply_fpregset): New functions.
4979 (ppc_linux_regset_core_fns): New.
4980 (_initialize_ppc_linux_tdep): Call add_core_fns.
4981 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4982 and ppc_linux_supply_gregset.
4983 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4984 (supply_fpregset): Call ppc_linux_supply_fpregset.
4985 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4987 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4989 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4991 * symtab.c (lookup_symbol): Demangle before lowercasing.
4993 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4995 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4997 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4998 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4999 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5000 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5002 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5003 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5004 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5005 (avr-tdep.o, mon960-rom.o): Ditto.
5006 (aout_stabs_gnu_h): Define.
5007 (symtab_h): Remove $(gdb_obstack_h).
5009 2002-07-30 Jim Blandy <jimb@redhat.com>
5011 Patch from David Carlton <carlton@math.stanford.edu>:
5012 * gdbinit.in: Move the `dir' commands that add GDB's own source
5013 directory to the search path to the end, so that the `gdb' source
5014 directory will be searched first.
5016 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5018 * gdb_obstack.h: New file.
5019 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5020 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5021 * objfiles.h: Include "gdb_obstack.h".
5022 * Makefile.in (gdb_obstack_h): Define.
5023 (symtab_h): Add $(gdb_obstack_h).
5024 (objfiles_h): Add $(gdb_obstack_h).
5026 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5027 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5028 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5029 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5030 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5031 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5032 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5033 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5035 * Makefile.in (bcache.o): Update dependencies.
5036 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5037 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5038 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5039 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5040 (stabsread.o, symfile.o, symmisc.o): Ditto.
5041 (symtab.o, typeprint.o, macroexp.o): Ditto.
5042 (macrotab.o, mdebugread.o): Ditto.
5043 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5044 (coff_ecoff_h, aout_aout64_h): Define.
5045 (aout_stabs_gnu_h, libaout_h): Define.
5047 2002-07-29 Andrew Cagney <cagney@redhat.com>
5049 * regcache.c (struct regcache_descr): Rename nr_registers to
5050 nr_cooked_registers. Revise comments describing the structure
5052 (init_regcache_descr): Update.
5053 (init_legacy_regcache_descr): Update.
5054 (read_register_gen, write_register_gen): When a cooked register in
5055 the raw register range, directly access the value from the raw
5058 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5060 * z8k-tdep.c: Do not include "obstack.h".
5061 * h8300-tdep.c, h8500-tdep.c: Ditto.
5062 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5063 * valprint.c, v850-tdep.c: Ditto.
5064 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5065 * mn10200-tdep.c: Ditto.
5067 * Makefile.in (z8k-tdep.o): Update dependencies.
5068 (m68hc11-tdep.o, valprint.o): Ditto.
5069 (v850-tdep.o, d10v-tdep.o): Ditto.
5070 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5071 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5072 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5073 (sh_opc_h, gdb_sim_sh_h): Define.
5074 (elf_sh_h, elf_bfd_h): Define.
5075 (opcode_m68hc11_h): Define.
5076 (OPCODES_SRC, OPCODES_DIR): define.
5077 (OPCODES): Use $(OPCODES_DIR).
5078 (gdb_sim_d10v_h): Rename sim_d10v_h.
5079 (gdb_sim_arm_h): Rename sim_arm_h.
5081 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5083 * utils.c (host_pointer_to_address, address_to_host_pointer):
5084 Change internal_error() message to indicate function responsible
5087 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5089 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5090 calls to local_hex_string_custom().
5092 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5094 * irix5-nat.c: Move IRIX shared library support from here...
5095 * solib-irix.c: ...to here. Revised substantially to work with
5096 generic solib framework.
5098 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5099 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5100 * mips-irix-tdep.c: New file.
5102 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5103 (mips-irix-tdep.o, solib-irix.o): New rules.
5104 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5106 * config/mips/irix6.mt (TDEPFILES): Likewise.
5107 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5109 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5111 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5112 disabled (via ``#if 0'') includes.
5114 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5116 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5117 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5118 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5119 Add support for the fpscr register.
5120 * rs6000-nat.c (regmap, fetch_inferior_registers)
5121 (store_inferior_registers, fetch_core_registers): Likewise.
5123 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5125 * rs6000-nat.c (language.h): Include.
5126 (special_regs): Delete this array.
5127 (regmap): New function.
5128 (fetch_register, store_register): Use regmap() to map gdb
5129 register numbers to ptrace register numbers. Also, use
5130 outputs from regmap() to make decisions regarding type of
5131 ptrace() call to make. In particular, don't compare against
5132 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5133 (fetch_inferior_registers, store_inferior_registers): Where
5134 possible, obtain register numbers from tdep struct. Don't
5135 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5136 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5137 (LAST_UISA_SP_REGNUM): Delete.
5139 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5141 * rs6000-nat.c (ppc-tdep.h): Include.
5142 (fetch_registers, store_register, fetch_core_registers): Don't
5143 access registers[] directly. Instead, use supply_register() or
5144 regcache_collect() as appropriate.
5145 (find_toc_address): Format hex address with local_hex_string().
5147 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5149 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5152 2002-07-24 Tom Tromey <tromey@redhat.com>
5154 * jv-exp.y: Marked all strings with _().
5155 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5157 (MethodInvocation, CastExpression, parse_number, yyerror,
5158 java_type_from_name, push_expression_name, yylex): Typo fixes.
5160 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5162 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5163 (tee_file_flush, tee_file_write, tee_file_fputs)
5164 (tee_file_isatty): New.
5165 * ui-file.h (tee_file_new): Add prototype.
5167 2002-07-24 Aidan Skinner <aidan@velvet.net>
5169 * ada-lang.c: Change k&r style function definitions to prototyped
5171 * ada-typeprint.c: Change k&r style function definitions to prototyped
5173 * ada-valprint.c: Change k&r style function definitions to prototyped
5176 2002-07-24 Andrew Cagney <cagney@redhat.com>
5178 * README: Remove reference to remote-bug.
5179 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5181 (m88k-nat.o): Delete rule.
5182 (m88k-tdep.o): Delete rule.
5183 (remote-bug.o): Delete rule.
5184 * MAINTAINERS: Mark as obsolete.
5185 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5186 * m88k-tdep.c: Make file obsolete.
5187 * config/m88k/m88k.mh: Ditto.
5188 * config/m88k/delta88v4.mh: Ditto.
5189 * config/m88k/delta88v4.mt: Ditto.
5190 * config/m88k/delta88.mt: Ditto.
5191 * config/m88k/delta88.mh: Ditto.
5192 * remote-bug.c: Ditto.
5193 * config/m88k/tm-delta88.h: Ditto.
5194 * config/m88k/nm-delta88v4.h: Ditto.
5195 * config/m88k/xm-delta88.h: Ditto.
5196 * config/m88k/xm-dgux.h: Ditto.
5197 * config/m88k/tm-m88k.h: Ditto.
5198 * config/m88k/nm-m88k.h: Ditto.
5199 * config/m88k/tm-delta88v4.h: Ditto.
5200 * m88k-nat.c: Ditto.
5201 * cxux-nat.c: Ditto.
5202 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5203 and m88*-*-* obsolete.
5204 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5207 2002-07-24 Andrew Cagney <cagney@redhat.com>
5209 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5210 constant. Same for local pointer variables.
5211 (extract_signed_integer): Ditto.
5212 * defs.h (extract_unsigned_integer): Update.
5213 (extract_signed_integer): Update.
5215 2002-07-24 Andrew Cagney <cagney@redhat.com>
5217 * regcache.c (regcache_raw_write): Change buf parameter to a
5218 constant void pointer.
5219 (regcache_raw_read): Change buf parameter to a void pointer.
5220 (legacy_write_register_gen): Change myaddr parameter a constant
5222 (supply_register): Change val parameter to a const void pointer.
5223 * regcache.h (regcache_raw_write): Update declaration.
5224 (regcache_raw_read): Update declaration.
5225 (supply_register): Update declaration.
5227 2002-07-24 Tom Tromey <tromey@redhat.com>
5229 * defs.h (gdb_readline_wrapper): Declare.
5230 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5231 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5232 * top.c (gdb_readline_wrapper): New function.
5233 (command_line_input): Use it.
5235 2002-07-24 Andrew Cagney <cagney@redhat.com>
5237 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5238 regcache_read and regcache_write.
5239 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5240 * regcache.c: Update.
5241 * sh-tdep.c (sh64_push_arguments): Update comment.
5242 (sh_pseudo_register_read): Update.
5243 (sh_pseudo_register_write): Update.
5244 (sh4_register_read): Update.
5245 (sh4_register_write): Update.
5246 (sh64_pseudo_register_read): Update.
5247 (sh64_pseudo_register_write): Update.
5248 (sh64_register_read): Update.
5249 (sh64_register_write): Update.
5250 * i386-tdep.c (i386_extract_return_value): Update.
5251 (i386_extract_struct_value_address): Update.
5252 (i386_extract_return_value): Update.
5253 * blockframe.c (generic_read_register_dummy): Update.
5254 (generic_call_dummy_register_unwind): Update
5255 * infrun.c (write_inferior_status_register): Update.
5257 2002-07-23 Jim Blandy <jimb@redhat.com>
5259 * parser-defs.h (expression_context_pc): Make this extern.
5260 (Thanks to Michael Snyder.)
5262 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5264 GDB 5.2.1 released from 5.2 branch.
5265 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5266 * README: Update to mention 5.2.1.
5268 2002-07-23 Mark Salter <msalter@redhat.com>
5270 * remote.c (remote_read_bytes): Fix check for error.
5272 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5274 * aix-thread.c (language.h): Include.
5275 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5276 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5277 Print newlines at end of debug messages.
5278 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5279 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5281 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5283 * aix-thread.c (ppc-tdep.h): Include.
5284 (special_register_p): New function.
5285 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5286 (store_regs_user_thread): Use register number information from
5287 gdbarch_tdep struct instead of hardcoded offsets relative to
5288 FIRST_UISA_SP_REGNUM.
5289 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5290 special_register_p() instead of using FPLAST_REGNUM and
5291 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5292 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5293 will be MQ's register number.
5295 2002-07-22 Michael Snyder <msnyder@redhat.com>
5297 * aix-thread.c (ops): Rename to aix_thread_ops.
5298 (base_ops): Rename to base_target.
5299 (ops_attach): Rename to aix_thread_attach.
5300 (ops_detach): Rename to aix_thread_detach.
5301 (ops_resume): Rename to aix_thread_detach.
5302 (ops_wait): Rename to aix_thread_wait.
5303 (ops_kill): Rename to aix_thread_kill.
5304 (init_ops): Rename to init_aix_thread_ops.
5305 (ops_fetch_register): Rename to aix_thread_fetch_register.
5306 (ops_store_register): Rename to aix_thread_store_register.
5307 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5308 (ops_thread_alive): Rename to aix_thread_thread_alive.
5309 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5310 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5311 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5312 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5313 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5314 (store_regs_lib): Rename to store_regs_user_thread.
5315 (store_regs_kern): Rename to store_regs_kernel_thread.
5317 2002-07-22 Michael Snyder <msnyder@redhat.com>
5319 * aix-thread.c (ops_prepare_to_store): Eliminate.
5320 (init_ops): Don't initialize ops.prepare_to_store.
5321 (store_regs_kern): Pre-fetch register buffers from child,
5322 because some registers may not be in the cache. Copy
5323 regs from register cache only if they are cached.
5324 (store_regs_lib): Copy regs from register cache only
5326 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5327 fill_gprs64): Ditto.
5329 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5331 * aix-thread.c (gdb_assert.h): Include.
5332 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5333 register sizes (from register cache) match size of buffer holding
5335 (fill_sprs32): Change parameter types to match those in the ptrace()
5337 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5338 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5340 2002-07-22 Michael Snyder <msnyder@redhat.com>
5342 * aix-thread.c (supply_sprs64): Cosmetic change.
5343 (supply_sprs32): Cosmetic change.
5344 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5345 (fill_sprs64): Use regcache_collect instead of read_register.
5346 (store_regs_lib): Use regcache_collect instead of
5347 read_register. Use fill_sprs32 instead of fill_sprs64,
5348 if debugging a 32-bit architecture.
5349 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5350 out of the register cache, instead of passing a pointer into
5351 the register cache directly to ptrace. Use regcache_collect
5352 insteaad of read_register.
5353 (ops_prepare_to_store): Use target_read_registers instead
5354 of read_register_bytes.
5356 2002-07-20 Aidan Skinner <aidan@velvet.net>
5358 * MAINTAINERS: Add self under write after approval.
5360 2002-07-20 Aidan Skinner <aidan@velvet.net>
5362 * ada-tasks.c: Change k&r style function definitions to prototyped
5365 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5367 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5368 * x86-64-tdep.c: Include "objfiles.h".
5369 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5370 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5372 2002-07-17 Michal Ludvig <michal@suse.cz>
5374 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5375 (update_context): Initialise cfa variable.
5377 2002-07-17 Michael Snyder <msnyder@redhat.com>
5379 * aix-thread.c: Shorten some long lines.
5380 Bring comments into line with code spec.
5382 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5384 * infrun.c: Re-indent using gdb_indent.sh.
5386 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5388 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5389 Leave the indentation temporarily untouched, to minimize the diffs.
5391 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5393 * stabsread.c: Make os9k sections of the code obsolete,
5395 * stabsread.h: Make os9k sections of the code obsolete.
5397 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5399 * linux-low.c (regsets_store_inferior_registers): Add free()
5400 at the end of a loop to prevent memory leak.
5401 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5402 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5403 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5405 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5407 2002-07-17 Jim Blandy <jimb@redhat.com>
5409 * macrocmd.c (info_macro_command): Remove newline from error
5412 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5414 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5415 (sh_gdbarch_init): Use it for sh-dsp.
5417 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5419 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5420 64-bit DWARF2 format.
5422 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5424 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5425 <sys/proc.h> when not available.
5427 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5429 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5430 * stabsread.c: Make os9k sections of the code obsolete.
5431 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5432 * config/i386/i386os9k.mt: Make file obsolete.
5433 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5434 (COMMON_OBS): Remove os9kread.o
5435 (SFILES): Remove os9kread.c.
5436 (os9kread.o, remote-os9k.o): Make target obsolete.
5437 * remote-os9k.c: Make file obsolete.
5438 * os9kread.c: Make file obsolete.
5441 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5443 * NEWS: Mention that the FR30 has been made obsolete.
5444 * fr30-tdep.c: Make file obsolete.
5445 * config/fr30/tm-fr30.h: Ditto.
5446 * config/fr30/fr30.mt: Ditto.
5447 * configure.tgt: Make fr30-*-elf obsolete.
5448 * MAINTAINERS: Make fr30-elf obsolete.
5450 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5452 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5453 found is not inside a section.
5455 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5457 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5459 (pdc_realloc): Use xrealloc() instead of realloc().
5461 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5463 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5464 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5465 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5468 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5470 * aix-thread.c (ptrace_check): Eliminate goto.
5471 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5474 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5476 * aix-thread.c (gdbcmd.h): Include.
5477 (DEBUG, DBG, DBG2, dbg): Eliminate.
5478 (debug_aix_thread): New static global.
5479 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5480 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5481 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5482 invocations to DBG and DBG2 macros to test against
5483 ``debug_aix_thread'' and call fprintf_unfiltered().
5484 (_initialize_aix_thread): Add new command "set debug aix-thread".
5486 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5488 From Gerhard Tonn <TON@de.ibm.com>:
5489 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5490 instead of supply_register.
5492 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5494 * dwarf2cfi.c: Include "gdb_assert.h".
5495 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5497 (update_context): Do not use __func__. Add missing ``break''.
5498 (update_context): Do not use __func__.
5500 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5502 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5503 and its setting. Set gdbarch instruction printing functions
5504 directly. For non-rs6000 case use new function
5505 gdb_print_insn_powerpc.
5506 (gdb_print_insn_powerpc): New function.
5508 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5510 * NEWS: Mention that the d30v has been marked obsolete.
5511 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5512 * configure.tgt: Mark d30v-*-* as obsolete.
5513 * d30v-tdep.c: Mark file as obsolete.
5514 * config/d30v/d30v.mt: Ditto.
5515 * config/d30v/tm-d30v.h: Ditto.
5517 2002-07-13 Aidan Skinner <aidan@velvet.net>
5519 * ada-tasks.c (add_task_entry): replace calls to
5520 malloc() with xmalloc
5521 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5523 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5524 ada_finish_decode_line_1, all_sals_for_line
5525 ada_breakpoint_rewrite): replace calls to free() with xfree()
5527 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5529 From Nicholas Duffek (with minor changes by Martin Hunt,
5530 Louis Hamilton, and Kevin Buettner):
5531 * aix-thread.c: New file.
5533 2002-07-12 Petr Sorfa <petrs@caldera.com>
5535 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5536 complaint for invalid attribute class or form.
5537 (read_func_scope): DW_AT_frame_base
5538 better handling of DW_AT_block*.
5539 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5540 better handling of DW_AT_block*.
5541 (read_common_block): DW_AT_location
5542 better handling of DW_AT_block*.
5543 (read_partial_die): DW_AT_location better handling
5545 (new_symbol): DW_AT_external better handling of
5546 DW_AT_block*. Proper initialization of variable
5548 (attr_form_is_block): New function that returns true
5549 if the attribute's form is of DW_FORM_block*.
5551 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5553 * valops.c (find_method_list): Remove comment about
5554 removed STATIC_MEMFUNCP argument.
5555 (value_find_oload_method_list): Likewise.
5557 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5559 From Nicholas Duffek:
5560 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5561 target_new_objfile_hook.
5563 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5565 From Nicholas Duffek:
5566 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5569 2002-07-12 Andrew Cagney <cagney@redhat.com>
5571 * MAINTAINERS: Mention --enable-sim-build-warnings.
5572 (m68hc11-elf): Disable sim build warnings.
5573 (m32r-elf): Mark as broken obsolete candidate.
5574 (x86_64-linux-gnu): Mark as buildable with -Werror.
5575 (arm-elf): Change -w to ``,'' which enables warnings but not
5578 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5580 * bcache.h: Update copyright.
5581 (struct bstring, struct bcache): Move definition to "bcache.c".
5582 Replaced by opaque declaration.
5583 (bcache_xfree): Replace free_bcache.
5584 (bcache_xmalloc, bcache_memory_used): Declare.
5586 * bcache.c: Update copyright.
5587 (struct bstring, struct bcache): Moved to here from "bcache.h".
5589 (bcache_xmalloc, bcache_memory_used): New functions.
5590 (bcache_xfree): Replace function free_bcache.
5592 * Makefile.in (objfiles.o): Add $(bcache_h).
5593 (objfiles_h): Remove $(bcache_h).
5594 (symfile.o): Add $(bcache_h).
5596 * symmisc.c: Update copyright.
5597 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5598 (print_objfile_statistics): Use bcache_memory_used.
5600 * symfile.c: Include "bcache.h".
5601 (reread_symbols): Use bcache_xfree.
5602 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5603 (add_psymbol_to_list): Pass psymbol_cache by value.
5604 (add_psymbol_with_dem_name_to_list): Ditto.
5606 * objfiles.h: Update copyright.
5607 (struct bcache): Declare opaque. Do not include "bcache.h".
5608 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5610 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5612 * objfiles.c: Include "bcache.h". Update copyright.
5613 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5615 (free_objfile): Use bcache_xfree.
5617 2002-07-11 Grace Sainsbury <graces@redhat.com>
5619 * monitor.c (monitor_fetch_register): Make name a constant.
5620 (monitor_store_register): Same.
5622 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5624 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5625 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5626 (finish_block) For non-function blocks, hash the symbol table. For
5627 function blocks, mark the symbol table as unhashed.
5628 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5629 (msymbol_hash_iw): Likewise.
5630 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5632 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5633 (lookup_minimal_symbol): Likewise for both.
5634 * symtab.h (struct block): Add `hashtable' flag. Comment the
5636 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5637 (ALL_BLOCK_SYMBOLS): Update.
5638 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5639 (struct symbol): Add `hash_next' pointer.
5640 * symtab.c (lookup_block_symbol): Search using the hash table when
5642 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5643 (search_symbols, find_addr_symbol): Likewise.
5645 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5646 (read_dst_symtab): Likewise.
5647 * jv-lang.c (get_java_class_symtab): Likewise.
5648 * mdebugread.c: Include "gdb_assert.h".
5649 (shrink_block): Assert that the block being modified is not hashed.
5650 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5651 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5653 (dump_symtab): Recognize hashed blocks.
5654 * printcmd.c (print_frame_args): Assert that function blocks do not
5655 have hashed symbol tables.
5656 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5657 (fill_in_ada_prototype, debug_print_block): Likewise.
5658 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5660 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5662 * stack.c (print_frame): Use result of frame_address_in_block()
5663 instead of fi->pc when evaluating symbols.
5664 (backtrace_command_1): Ditto.
5666 2002-07-11 Andrew Cagney <cagney@redhat.com>
5668 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5671 * arm-tdep.c (arm_register_name): Make return type constant.
5673 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5675 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5677 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5678 * s390-tdep.c (s390_fp_regnum): Ditto.
5679 (s390_read_fp): Ditto.
5680 (s390_pop_frame): Ditto.
5681 (_initialize_s390_tdep): Ditto.
5682 * remote.c (get_remote_state): Ditto.
5683 * procfs.c (mappingflags): Ditto.
5684 * memattr.c (_initialize_mem): Ditto.
5685 * mcore-tdep.c (mcore_pop_frame): Ditto.
5686 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5687 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5688 * language.c (set_case_str): Ditto.
5689 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5690 * frv-tdep.c (new_variant): Ditto.
5691 (frv_stopped_data_address): Ditto.
5692 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5693 (context_alloc): Ditto.
5694 (frame_state_alloc): Ditto.
5695 (unwind_tmp_obstack_init): Ditto.
5696 (unwind_tmp_obstack_free): Ditto.
5697 (cfi_read_fp): Ditto.
5698 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5699 (cris_pop_frame): Ditto.
5700 * c-lang.c (scanning_macro_expansion): Ditto.
5701 (finished_macro_expansion): Ditto.
5702 (c_preprocess_and_parse): Ditto.
5703 * gdbarch.sh: Ditto.
5704 * gdbarch.h, gdbarch.c: Regenerate.
5705 * config/mn10200/tm-mn10200.h: Adjust indentation.
5706 * target.c: Adjust indentation.
5707 * symtab.h: Adjust indentation.
5708 * stabsread.h: Adjust indentation.
5709 * remote-es.c: Adjust indentation.
5710 * os9kread.c: Adjust indentation.
5712 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5714 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5715 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5717 2002-07-10 Grace Sainsbury <graces@redhat.com>
5719 * NEWS: Mention m68k, mcore multi-arching.
5720 * MAINTAINERS: Change status of m68k, mcore to reflect
5723 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5725 * valops.c (find_overload_match): Free oload_syms.
5727 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5729 Define HAVE_SYS_PROC_H if sys/proc.h exists
5730 * configure.in: Add check for sys/proc.h
5731 * config.in: Regenerate.
5732 * configure: Regenerate.
5734 2002-07-09 Grace Sainsbury <graces@redhat.com>
5736 * config/m68k/tm-m68k.h: Remove macros wrapped in
5737 #if !GDB_MULTI_ARCH.
5739 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5741 * config.in, configure: Regenerate.
5743 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5745 * dwarf2cfi.c: Include "gcore.h".
5746 (execute_stack_op): Fix implementation of the
5747 DW_OP_deref and DW_OP_deref_size operators by letting do their
5748 lookup in the target.
5750 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5752 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5753 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5756 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5758 Fix PR gdb/595, gdb/602
5759 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5760 Don't call value_cast, just read the vtable pointer; update comments
5763 2002-07-05 Grace Sainsbury <graces@redhat.com>
5765 * config/mcore/tm-mcore.h: Remove file.
5766 * config/mcore/mcore.mt: Remove definition of TM_FILE
5767 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5769 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5771 * i386bsd-tdep.c: Include "gdb_string.h".
5773 2002-07-04 Grace Sainsbury <graces@redhat.com>
5775 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5776 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5778 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5779 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5780 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5781 (RETVAL_REGNUM): Move macros from tm-mcore.h
5782 (mcore_reg_struct_has_addr): New function.
5783 (mcore_gdbarch_init): Added initializations for the macros removed
5786 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5788 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5789 traditonal string branding within the ELF header.
5791 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5793 * symtab.c (remove_params): New function.
5794 (make_symbol_overload_list): Use it instead of cplus_demangle.
5795 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5797 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5799 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5801 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5803 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5804 and tdep->sigtramp_end.
5805 * i386obsd-nat.c: New file.
5806 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5808 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5809 Don't call get_current_frame().
5811 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5813 * i386-nat.c (child_post_startup_inferior): New function
5814 calling i386_cleanup_dregs if
5815 I386_USE_GENERIC_WATCHPOINTS is defined.
5816 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5817 conditional to acknowledge that i386-nat.c has its
5818 own child_post_startup_inferior function.
5820 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5822 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5823 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5824 instead of MAX_REGISTER_RAW_SIZE.
5825 (i386_extract_return_value, i386_extract_struct_value_address):
5826 Convert to use regcache.
5827 (i386_gdbarch_init): Set max_register_raw_size and
5828 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5829 Set extract_return_value and extract_struct_value_address instead
5830 of their deprecated variants.
5832 Convert i386 target to generic dummy frames.
5833 * i386-tdep.c: Include "symfile.h".
5834 (i386_frameless_signal_p): Consider a function to be frameless if
5835 the pc points at the first instruction of the function.
5836 (i386_frame_chain): Handle (generic) call dummies.
5837 (i386_frame_saved_pc): Likewise.
5838 (i386_frame_init_saved_regs): Remove code dealing with call
5839 dummies on the stack.
5840 (i386_push_dummy_frame): Removed.
5841 (i386_call_dummy_words): Removed.
5842 (i386_fix_call_dummy): Removed.
5843 (i386_push_return_address): New function.
5844 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5845 parameter, and don't call get_current_frame.
5846 (i386_pop_frame): New function.
5847 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5848 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5849 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5850 call_dummy_length to 0, set call_dummy_words to NULL, set
5851 sizeof_call_dummy_words to 0, set fix_call_dummy to
5852 generic_fix_call_dummy, set pc_in_call_dummy to
5853 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5854 generic_push_dummy_frame, set push_return_address to
5855 i386_push_return_address and set frame_chain_valid to
5856 generic_file_frame_chain_valid.
5858 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5860 * gdbarch.sh (struct regcache): Add opaque declaration.
5861 (EXTRACT_RETURN_VALUE): New architecture method.
5862 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5863 * gdbarch.h, gdbarch.c: Regenerate.
5864 * arch-utils.c (legacy_extract_return_value): New function.
5865 * arch-utils.h (legacy_extract_return_value): Declare.
5866 * values.c (value_being_returned): Re-enable code handling
5867 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5868 deprecated_grub_regcache_for_registers call to block handling
5869 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5870 (EXTRACT_RETURN_VALUE): Do not define.
5872 2002-07-03 Grace Sainsbury <graces@redhat.com>
5874 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5875 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5876 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5877 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5878 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5879 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5880 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5881 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5882 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5883 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5884 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5885 argument so the function fits the prototype in the architecture
5887 (mcore_pop_frame): Remove argument so the function fits the
5888 prototype. Use get_current_frame instead of the argument.
5889 (mcore_push_arguments): Change type of struct_return so the
5890 function can be used in the architecture vector.
5891 (mcore_store_struct_return): Add.
5892 (mcore_frame_init_saved_regs): Add.
5893 (mcore_gdbarch_init): Add function calls to replace the macros
5894 removed from tm-mcore.h
5896 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5898 * infcmd.c (print_return_value): Remove compatibility code calling
5899 deprecated_grub_regcache_for_registers.
5901 * values.c: Include "regcache.h".
5902 (value_being_returned): Update. Use
5903 deprecated_grub_regcache_for_registers to extract the register
5905 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5906 ``struct regcache''.
5907 * Makefile.in (values.o): Add dependency on $(regcache_h).
5909 * inferior.h (run_stack_dummy): Change type of second parameter to
5910 a ``struct regcache''.
5911 * valops.c (hand_function_call): Change type of retbuf to ``struct
5912 regcache''. Allocate using regcache_xmalloc, clean using
5913 make_cleanup_regcache_xfree.
5914 * infcmd.c (run_stack_dummy): Update. Use
5915 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5917 * regcache.c (do_regcache_xfree): New function.
5918 (make_cleanup_regcache_xfree): New function.
5919 * regcache.h (make_cleanup_regcache_xfree): Declare.
5921 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5923 * event-top.c (command_line_handler): Don't read past
5924 beginning of buffer.
5926 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5928 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5930 (varobj_create): Store frame_id for root.
5931 (varobj_gen_name): Use xasprintf.
5932 (varobj_update): Save and restore frame using get_frame_id() and
5934 (create_child): Use xasprintf.
5935 (new_root_variable): Initialize frame_id.
5936 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5937 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5938 to prevent memory leak.
5940 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5942 * valops.c (hand_function_call): Move declaration of retbuf to
5943 start of function, allocate using malloc, add a cleanup but before
5944 the inf_status cleanup, cleanup the buffer. Rename local variable
5945 old_chain to inf_status_cleanup.
5947 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5949 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5951 * cli/cli-decode.c (cmd_func_p): New function.
5952 (cmd_func): New function.
5954 * command.h: Add cmd_func() and cmd_func_p().
5956 2002-07-03 Grace Sainsbury <graces@redhat.com>
5958 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5959 (REGISTER_SIZE): Remove.
5960 (MAX_REGISTER_RAW_SIZE): Remove.
5961 (REGISTER_VIRTUAL_TYPE): Remove.
5962 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5963 (REGISTER_NAME): Remove.
5964 (USE_GENERIC_DUMMY_FRAMES): Remove.
5965 (CALL_DUMMY): Remove.
5966 (CALL_DUMMY_START_OFFSET): Remove.
5967 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5968 (CALL_DUMMY_LOCATION): Remove.
5969 (FIX_CALL_DUMMY): Remove.
5970 (CALL_DUMMY_ADDRESS): Remove.
5971 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5972 (SAVE_DUMMY_FRAME_TOS): Remove.
5973 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5974 (mcore_register_virtual_type): New function.
5975 (mcore_register_byte): New function.
5976 (mcore_register_size): New function.
5977 (mcore_register_name): New function.
5978 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5979 macros removed from tm-mcore.h.
5980 (mcore_dump_tdep): Add.
5981 (_initialize_mcore_tdep): Add gdbarch_register call.
5983 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5985 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5986 frameless_look_for_prologue, such that we actually call this
5989 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5991 * frame.h (frame_address_in_block): New function.
5993 * blockframe.c (frame_address_in_block): New function extracted
5994 from get_frame_block().
5995 (get_frame_block): Use frame_address_in_block().
5996 (block_innermost_frame): Use frame_address_in_block() to match
5997 the frame pc address against the block boundaries rather than
5998 the frame pc directly. This prevents a failure when a frame pc
5999 is actually a return-address pointing immediately after the end
6002 2002-07-02 Grace Sainsbury <graces@redhat.com>
6004 * MAINTAINERS: Add self under write after approval.
6006 2002-07-02 Grace Sainsbury <graces@redhat.com>
6008 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6009 used in architecture vector. The default is
6010 m68k_local_breakpoint_from_pc.
6011 (m68k_local_breakpoint_from_pc): Add.
6012 (enum): Add register numbers from tm-m68k.h.
6013 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6015 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6016 GDB_MULTI_ARCH_PARTIAL.
6017 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6018 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6020 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6021 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6022 to enum in m68k-tdep.c
6024 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6026 * solib-osf.c (open_map): Compute the list of shared libraries
6027 loaded by the inferior, rather than the list of libraries loaded
6028 by GDB itself. Otherwise, GDB ends up reading the symbols from
6029 the wrong shared libraries...
6031 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6033 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6034 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6036 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6038 (FRAMELESS_SIGNAL): Remove function.
6039 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6040 i386_linux_saved_pc_after_call): Removed.
6041 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6042 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6043 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6045 * i386-tdep.c (i386_frameless_signal_p): New function.
6046 (i386_frame_chain): Deal with frameless signals.
6047 (i386_sigtramp_saved_sp): New function.
6048 (i386_frame_saved_pc): Deal with frameless signals.
6049 (i386_saved_pc_after_call): Make sure the correct value is
6050 returned just after entry into a sigtramp.
6051 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6052 i386fbsd4_sc_sp_offset): New variables.
6053 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6054 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6055 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6056 similiar to what we already did for sc_pc_offset.
6057 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6060 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6062 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6064 * config/i386/tm-x86-64linux.h: New.
6065 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6067 * config/i386/nm-x86-64.h: Rename to ...
6068 * config/i386/nm-x86-64linux.h: ... this one.
6069 * config/i386/x86-64linux.mh: Reflect the above change.
6071 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6073 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6074 with sigcontext_addr. Add sc_sp_offset.
6075 (i386bsd_sigtramp_saved_pc): Remove prototype.
6076 (i386bsd_sicontext_addr): Add prototype.
6077 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6078 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6079 (i386_svr4_sigtramp_saved_pc): Removed.
6080 (i386_svr4_sigcontext_addr): New function.
6081 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6082 Initialize tdep->sigcontext_addr instead. Initialize
6083 tdep->sc_pc_offset and tdep->sc_sp_offset.
6084 (i386_gdbarch_init): Likewise.
6085 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6087 (i386bsd_sigtramp_saved_pc): Remove function.
6088 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6089 Initialize tdep->sigcontext_addr instead. Initialize
6091 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6092 of tdep->sigtramp_saved_pc.
6093 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6094 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6097 * i386-tdep.c (i386_frameless_function_invocation,
6098 i386_frame_num_args, i386_frame_init_saved_regs,
6099 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6100 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6101 i386_extract_return_value, i386_store_return_value,
6102 i386_extract_struct_value_address, i386_register_virtual_type,
6103 i386_register_convertible, i386_register_convert_to_virtual,
6104 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6105 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6108 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6110 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6112 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6113 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6114 this macro. Include "value.h".
6116 2002-06-30 Aidan Skinner <aidan@velvet.net>
6118 * ada-exp.tab.c: remove as it's a generated file
6119 * ada-lex.c: remove as it's a generated file
6121 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6123 * config/i386/tm-i386.h (struct frame_info, struct
6124 frame_saved_regs, struct value, struct type): Remove forward
6127 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6128 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6129 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6130 (FILL_FPXREGSET): Define.
6132 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6134 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6135 i[3456]86-*-netbsd* case.
6136 * config/i386/tm-obsd.h: Removed.
6137 * config/i386/obsd.mt: Removed.
6138 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6140 (MH_CFLAGS): Add -DYYDEBUG=0.
6142 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6143 i386nbsd_sc_pc_offset on OpenBSD too.
6145 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6146 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6147 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6149 * i386bsd-tdep.c: Include "arch-utils.h".
6150 (i386bsd_aout_in_solib_call_trampoline): New function.
6151 (i386bsd_init_abi): Set in_solib_call_trampoline to
6152 i386bsd_aout_in_solib_call_trampoline.
6153 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6154 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6156 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6158 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6159 (struct obstack, struct bcache): Add opaque declarations.
6160 * Makefile.in (macrotab_h): Update
6162 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6164 * blockframe.c (generic_find_dummy_frame): Change return type to
6165 ``struct regcache''.
6166 (struct dummy_frame): Replace field ``registers'' with regcache, a
6167 struct regcache object.
6168 (generic_find_dummy_frame): Update.
6169 (generic_push_dummy_frame): Update. Use regcache_xfree,
6170 regcache_xmalloc and regcache_cpy.
6171 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6173 (deprecated_generic_find_dummy_frame): Update.
6174 (generic_read_register_dummy): Update. Use
6175 regcache_read_as_address.
6176 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6177 (generic_get_saved_register): Update. Use regcache_read.
6179 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6181 * Makefile.in (objfiles_h): Add $(bcache_h).
6182 * objfiles.h: Include "bcache.h".
6184 * Makefile.in (symtab_h): Remove $(bcache_h).
6185 * symtab.h: Do not include "bcache.h".
6187 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6189 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6190 generic_func_frame_chain_valid.
6192 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6194 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6195 * config/i386/tm-fbsd.h: Likewise.
6197 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6199 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6200 generic_unwind_get_saved_register.
6202 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6204 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6205 * regcache.c (supply_register): Add missing argument to
6206 register_buffer call.
6208 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6210 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6211 Solaris /bin/grep does not not like it. From Peter Schauer.
6213 2002-06-26 Tom Tromey <tromey@redhat.com>
6215 * command.h (add_setshow_cmd): Declare.
6216 (add_setshow_cmd_full): Declare.
6217 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6218 returns void. Use add_setshow_cmd_full.
6219 (add_setshow_cmd_full): New function.
6220 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6221 (add_setshow_boolean_cmd): Likewise.
6223 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6225 * config/vax/tm-vax.h: Protect from multiple inclusion.
6226 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6227 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6228 * config/vax/tm-vaxbsd.h: ...here. New file.
6229 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6231 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6233 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6234 (BELIEVE_PCC_PROMOTION): Remove.
6235 (AP_REGNUM): Move to...
6236 * config/vax/nm-vax.h: ...here.
6237 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6238 (vax_breakpoint_from_pc): New function.
6239 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6240 and gdbarch_believe_pcc_promotion.
6242 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6244 * Makefile.in (vax_tdep_h): Define.
6245 (vax-tdep.o): Use $(vax_tdep_h).
6246 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6247 (vax_dump_tdep): New function.
6248 (_initialize_vax_tdep): Register vax_dump_tdep.
6249 * vax-tdep.h: Include osabi.h.
6250 (struct gdbarch_tdep): New.
6252 2002-06-26 Andrew Cagney <cagney@redhat.com>
6254 * frame.h (deprecated_generic_find_dummy_frame): Rename
6255 generic_find_dummy_frame.
6256 * blockframe.c (generic_find_dummy_frame): Make static.
6257 (deprecated_generic_find_dummy_frame): New function.
6258 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6259 generic_find_dummy_frame with deprecated_find_dummy_frame.
6260 (sh64_nofp_frame_init_saved_regs): Ditto.
6261 (sh_fp_frame_init_saved_regs): Ditto.
6262 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6263 (s390_frame_chain): Ditto.
6264 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6266 2002-06-26 Grace Sainsbury <graces@redhat.com>
6268 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6269 gdbarch vector are at the top.
6271 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6272 (FRAME_ARGS_ADDRESS): Remove.
6273 (FRAME_LOCALS_ADDRESS): Remove.
6274 (FRAME_NUM_ARGS): Remove.
6275 (FRAME_ARGS_SKIP): Remove.
6276 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6277 (m68k_gdbarch_init): Add gdbarch initializations for macros
6278 undefined in tm-m68k.h
6280 2002-06-26 Grace Sainsbury <graces@redhat.com>
6282 * monitor.h: Add the function regname to monitor_ops
6283 structure. This way NUM_REGS does not have to be a constant.
6284 * monitor.c (monitor_fetch_register): Added support for regname
6285 function. The function is called if the array regnames is NULL.
6286 (monitor_store_register): Same.
6287 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6289 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6290 cpu32bug_cmds.regname to point to new function.
6291 * abug-rom.c (abug_regname): Same as above.
6292 (init_abug_cmds): Same.
6293 * dbug-rom.c (dbug_regname): Same as above.
6294 (init_dbug_cmds): Same.
6295 * remote-est.c (est_regname): Same.
6296 (init_est_cmds): Same.
6297 * rom68k-rom.c (rom68k_regname): Same.
6298 (init_rom68k_cmds): Same.
6300 2002-06-25 Tom Tromey <tromey@redhat.com>
6302 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6304 2002-06-25 Andrew Cagney <cagney@redhat.com>
6306 * infrun.c (stop_registers): Change variable's type to ``struct
6308 (xmalloc_inferior_status): Delete function.
6309 (free_inferior_status): Delete function.
6310 (normal_stop): Use regcache_cpy.
6311 (struct inferior_status): Change type of fields ``stop_registers''
6312 and ``registers'' to ``struct regcache''.
6313 (write_inferior_status_register): Use regcache_write.
6314 (save_inferior_status): Instead of calling
6315 xmalloc_inferior_status, allocate the inf_status buffer directly.
6316 Use regcache_dup_no_passthrough and regcache_dup to save the
6318 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6319 Replace the stop_registers regcache instead of overriding it. Use
6320 regcache_xfree. Instead of calling free_inferior_status, xfree
6321 the buffer directly.
6322 (discard_inferior_status): Use regcache_xfree. Instead of calling
6323 free_inferior_status, xfree the buffer directly.
6324 (build_infrun): Use regcache_xmalloc.
6325 (_initialize_infrun): Delete redundant call to build_infrun.
6327 * Makefile.in (infcmd.o): Add $(regcache_h).
6329 * infcmd.c: Include "regcache.h".
6330 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6331 obtain the address of `stop_registers' register buffer.
6332 (print_return_value): Ditto.
6334 * inferior.h (struct regcache): Add opaque declaration.
6335 (stop_registers): Change variable's declared type to ``struct
6338 2002-06-24 Tom Tromey <tromey@redhat.com>
6340 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6341 * target.c (initialize_targets): Fixed typo in
6342 trust-readonly-sections `show' documentation.
6344 * main.c: Marked all strings with _().
6346 2002-06-24 Don Howard <dhoward@redhat.com>
6348 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6349 that means max CORE_ADDR+1.
6350 (lookup_mem_region): Ditto.
6351 (mem_info_command): Ditto.
6353 2002-06-24 Grace Sainsbury <graces@redhat.com>
6355 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6356 (REGISTER_BYTES_OK): Remove.
6357 (REGISTER_BYTES): Remove.
6358 (STORE_STRUCT_RETURN): Remove.
6359 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6360 (STORE_RETURN_VALUE): Remove.
6361 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6362 (FRAME_CHAIN): Remove.
6363 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6364 (FRAME_SAVED_PC): Remove.
6365 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6366 (m68k_store_struct_return): Add.
6367 (m68k_deprecated_extract_return_value): Add.
6368 (m68k_deprecated_extract_struct_value_address): Add.
6369 (m68k_store_return_value): Add.
6370 (m68k_frame_chain): Add.
6371 (m68k_frameless_function_invocation): Add.
6372 (m68k_frame_saved_pc): Add.
6373 (m68k_gdbarch_init): added set_gdbarch calls for new
6374 functions and deleted macros.
6376 2002-06-23 Tom Tromey <tromey@redhat.com>
6378 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6379 (ALLDEPFILES): Likewise.
6380 (udiheaders): Removed.
6381 (udip2soc.o): Likewise.
6382 (udi2go32.o): Likewise.
6384 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6386 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6388 * infrun.c (_initialize_infrun): Delete unnecessary call to
6391 * regcache.h: Update comments describing the regcache_cpy family
6393 (regcache_save, regcache_restore): Delete declaration.
6394 (regcache_save_no_passthrough): Delete declaration.
6395 (regcache_restore_no_passthrough): Delete declaration.
6396 * regcache.c (regcache_save): Delete function.
6397 (regcache_save_no_passthrough): Delete function.
6398 (regcache_restore): Delete function.
6399 (regcache_restore_no_passthrough): Delete function.
6401 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6403 * config/m68k/tm-m68k.h: Fix typo.
6404 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6405 (m68k_frame_init_saved_regs): Declare.
6407 2002-06-21 Jim Blandy <jimb@redhat.com>
6409 Remove some vestiges of Harris 88k support.
6410 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6411 register numbering quirk.
6412 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6413 odd symbols occurring in Harris 88k ELF targets.
6415 2002-06-21 Tom Tromey <tromey@redhat.com>
6417 * gdb_locale.h: New file.
6418 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6419 (defs_h): Added gdb_locale.h.
6420 * configure, config.in: Rebuilt.
6421 * configure.in (PACKAGE): Define.
6422 * defs.h: Include gdb_locale.h.
6423 * main.c (captured_main): Call setlocale, bindtextdomain,
6426 2002-06-21 Dave Brolley <brolley@redhat.com>
6428 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6429 * config/frv/frv.mt: New file.
6430 * config/frv/tm-frv.h: New file.
6431 * configure.tgt: Support frv-*-*.
6432 * Makefile.in (frv-tdep.o): New target.
6433 * frv-tdep.c: New file.
6434 * NEWS: Mention frv.
6436 2002-06-21 Dave Brolley <brolley@redhat.com>
6438 * MAINTAINERS: Add self to "Write After Approval" list.
6440 2002-06-21 Grace Sainsbury <graces@redhat.com>
6442 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6443 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6444 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6445 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6446 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6448 * m68k-tdep.c: Include arch-utils.h
6449 (m68k_register_raw_size): Add.
6450 (m68k_register_virtual_size): Add.
6451 (m68k_register_virtual_type): Add.
6452 (m68k_register_name): Add.
6453 (m68k_stack_align): Add.
6454 (m68k_register_byte): Add.
6455 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6458 2002-06-21 Grace Sainsbury <graces@redhat.com>
6460 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6461 m68k_find_saved_regs.
6462 (m68k_pop_frame): Removed saved_regs structure, and replaced
6463 references to it with frame->saved_regs.
6464 (m68k_gdbarch_init): Added function calls to initialize the
6466 (m68k_fix_call_dummy): Add.
6467 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6468 (CALL_DUMMY): Remove.
6469 (CALL_DUMMY_LENGTH): Remove.
6470 (CALL_DUMMY_START_OFFSET): Remove.
6471 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6472 (FIX_CALL_DUMMY): Remove.
6473 (PUSH_DUMMY_FRAME): Remove.
6474 (POP_FRAME): Remove.
6476 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6478 * parse.c (parse_fprintf): New function used to avoid calls to
6479 fprintf in bison parser generated debug code.
6480 * parser-defs.h: Declaration of new parse_fprintf function.
6481 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6482 Set YYDEBUG to 1 by default.
6483 Set YYFPRINTF as parse_fprintf.
6485 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6487 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6489 (pointer_encoding, enum ptr_encoding): New.
6490 (execute_cfa_program): Take care about pointer encoding.
6491 (dwarf2_build_frame_info): Only call parse_frame_info for
6492 .debug_frame and .eh_frame.
6493 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6494 fixed augmentation handling, added relative addressing,
6495 ignore duplicate FDEs. Added comments.
6496 * dwarf2cfi.c: Reindented.
6498 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6500 * event-top.c (command_handler): Don't use space_at_cmd_start
6501 unless there is sbrk() on the host. Assign time and space data
6502 to union fields of the appropriate length.
6504 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6506 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6507 x86_64_register_name. Return type changed to 'const char *'.
6508 (x86_64_register_name2nr): Rename to x86_64_register_number.
6509 (x86_64_gdbarch_init): Update to reflect the change.
6510 * x86-64-tdep.h: Ditto.
6511 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6512 (supply_fpregset): Ditto.
6514 2002-06-19 Andrew Cagney <cagney@redhat.com>
6516 * regcache.h: Update copyright.
6517 (struct regcache, struct gdbarch): Add opaque declarations.
6518 (current_regcache): Declare global variable.
6519 (regcache_read, regcache_write): Add gdbarch parameter.
6520 (regcache_save, regcache_save_no_passthrough)
6521 (regcache_restore, regcache_restore_no_passthrough)
6522 (regcache_dup, regcache_dup_no_passthrough)
6523 (regcache_cpy, regcache_cpy_no_passthrough)
6524 (deprecated_grub_regcache_for_registers)
6525 (deprecated_grub_regcache_for_register_valid)
6526 (regcache_valid_p): Add function declarations.
6528 * regcache.c: Update copyright.
6529 (regcache_descr_handle): New global variable.
6530 (struct regcache_descr): Define.
6531 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6532 (regcache_descr, xfree_regcache_descr): New functions.
6533 (struct regcache): Define.
6534 (regcache_xmalloc, regcache_xfree): New functions.
6535 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6536 (regcache_dup, regcache_dup_no_passthrough): New functions.
6537 (regcache_valid_p, regcache_read_as_address): New functions.
6538 (deprecated_grub_regcache_for_registers): New function.
6539 (deprecated_grub_regcache_for_register_valid): New function.
6540 (current_regcache): New global variable.
6541 (register_buffer): Add regcache parameter. Update calls.
6542 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6543 (read_register_gen, write_register_gen): Update register_buffer
6544 call. Test for legacy_p instead of gdbarch_register_read_p or
6545 gdbarch_register_write_p.
6546 (regcache_collect): Update register_buffer call.
6547 (build_regcache): Rewrite. Use deprecated grub functions.
6548 (regcache_save, regcache_save_no_passthrough): New functions.
6549 (regcache_restore, regcache_restore_no_passthrough): New
6551 (_initialize_regcache): Create the regcache_data_handle. Swap
6552 current_regcache global variable.
6554 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6555 parameter to regcache_read and regcache_write calls.
6556 (sh4_register_read): Ditto.
6557 (sh64_pseudo_register_read): Ditto.
6558 (sh64_register_read): Ditto.
6559 (sh_pseudo_register_write): Ditto.
6560 (sh4_register_write): Ditto.
6561 (sh64_pseudo_register_write): Ditto.
6562 (sh64_register_write): Ditto.
6564 * defs.h (XCALLOC): Define.
6566 2002-06-19 Grace Sainsbury <graces@redhat.com>
6568 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6569 * m68k-tdep.c (m68k_gdbarch_init): Added.
6570 (m68k_dump_tdep): Added.
6572 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6574 * ada-lang.c (fill_in_ada_prototype): Update comment.
6576 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6578 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6580 (mips_abi_string, mips_abi_strings): New.
6581 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6582 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6583 tdep->mips_abi_string. Honor mips_abi_string. Default to
6584 O32 if no ABI is found.
6585 (mips_dump_tdep): Use mips_abi_strings.
6586 (mips_abi_update): New function.
6587 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6588 ``set mips abi'' and ``show mips abi''. Check the size of
6591 2002-06-19 Andrew Cagney <cagney@redhat.com>
6593 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6596 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6598 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6599 current frame using only the first stack size adjustment. All
6600 subsequent size adjustments are not considered to be part of
6601 the "static" part of the current frame.
6602 Compute the address of the saved registers relative to the
6603 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6604 in use in this frame.
6606 2002-06-18 Don Howard <dhoward@redhat.com>
6608 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6609 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6610 suggesting this solution.
6612 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6614 * config/romp/xm-rtbsd.h: Delete file.
6615 * config/romp/rtbsd.mh: Delete file.
6617 2002-06-18 Keith Seitz <keiths@redhat.com>
6619 * breakpoint.c (condition_command): Post breakpoint_modify
6620 when a condition is added to an existing breakpoint.
6621 (commands_command): Likewise for commands.
6622 (set_ignore_count): Likewise for ignore counts.
6623 If no tty, do not simply return, still need to send event
6625 (ignore_command): Only print a newline if the command came
6627 Don't call breakpoints_changed, since this is now properly
6628 handled by set_ignore_count.
6630 2002-06-18 Andrew Cagney <cagney@redhat.com>
6632 * MAINTAINERS: Note that cris-elf target can be compiled with
6634 * cris-tdep.c (cris_register_name): Make return type constant.
6635 (cris_breakpoint_from_pc): Ditto.
6637 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6639 * frame.h (struct frame_info): Change type of context to
6642 2002-06-17 Andrew Cagney <cagney@redhat.com>
6644 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6646 * gdbarch.h, gdbarch.c: Regenerate.
6647 * config/mips/tm-mips.h (mips_register_name): Update.
6648 * i386-tdep.h (i386_register_name): Update.
6649 * mips-tdep.c (mips_register_name): Update
6650 * alpha-tdep.c (alpha_register_name): Update.
6651 * arch-utils.c (legacy_register_name): Update.
6652 * arch-utils.h (legacy_register_name): Update.
6653 * avr-tdep.c (avr_register_name): Update.
6654 * ia64-tdep.c (ia64_register_name): Update.
6655 * i386-tdep.c (i386_register_name): Update.
6656 * sparc-tdep.c (sparc32_register_name): Update.
6657 (sparc64_register_name): Update.
6658 (sparclite_register_name): Update.
6659 (sparclet_register_name): Update.
6660 * sh-tdep.c (sh_generic_register_name): Update.
6661 (sh_sh_register_name): Update.
6662 (sh_sh3_register_name): Update.
6663 (sh_sh3e_register_name): Update.
6664 (sh_sh_dsp_register_name): Update.
6665 (sh_sh3_dsp_register_name): Update.
6666 (sh_sh4_register_name): Update.
6667 (sh_sh64_register_name): Update.
6668 * s390-tdep.c (s390_register_name): Update.
6669 * rs6000-tdep.c (rs6000_register_name): Update.
6670 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6671 (ns32k_register_name_32382): Update.
6672 * d10v-tdep.c (d10v_ts2_register_name): Update.
6673 (d10v_ts3_register_name): Update.
6674 * xstormy16-tdep.c (xstormy16_register_name): Update.
6675 * vax-tdep.c (vax_register_name): Update.
6676 * v850-tdep.c (v850_register_name): Update.
6677 * m68hc11-tdep.c (m68hc11_register_name): Update.
6678 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6679 (am33_register_name): Update.
6681 2002-06-17 Grace Sainsbury <graces@redhat.com>
6683 * m68k-tdep.c: Reindented.
6685 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6687 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6688 list of predefined types.
6690 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6692 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6693 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6694 REGISTER_CONVERT_TO_RAW): Remove defines.
6695 (i386_register_virtual_type, i386_register_convertible,
6696 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6698 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6699 macros mentioned above.
6701 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6702 (i386lynx_saved_pc_after_call): Remove prototype.
6703 * i386ly-tdep.c: Include "i386-tdep.h".
6704 (i386lynx_saved_pc_after_call): Make static. Use
6705 read_memory_nobpt instead of read_memory. Use
6706 read_memory_unsigned_integer instead of read_memory_integer.
6707 (i386lynx_init_abi): New function.
6708 (i386lynx_coff_osabi_sniffer): New function.
6709 (_initialize_i386bsd_tdep): New function.
6711 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6712 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6713 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6714 (i386_fix_call_dummy): Remove prototype.
6715 * i386-tdep.c (i386_call_dummy_words): New variable.
6716 (i386_gdbarch_init): Adjust for removal of the
6717 macros mentioned above.
6719 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6721 * command.h (add_setshow_auto_boolean_cmd): Replace
6722 add_set_auto_boolean_cmd.
6723 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6724 add_set_auto_boolean_cmd.
6725 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6726 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6727 mask-address'' command.
6728 (show_mask_address): Add cmd parameter.
6729 * remote.c (add_packet_config_cmd): Update. Change type of
6730 set_func and show_func to cmd_sfunc_ftype.
6731 (_initialize_remote): Update `set remote Z-packet'
6732 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6733 (show_remote_protocol_e_packet_cmd): Ditto.
6734 (show_remote_protocol_E_packet_cmd): Ditto.
6735 (show_remote_protocol_P_packet_cmd): Ditto.
6736 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6737 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6738 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6739 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6740 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6741 (show_remote_protocol_Z_packet_cmd): Ditto.
6742 (show_remote_protocol_binary_download_cmd): Ditto.
6743 (show_remote_cmd): Pass NULL to all of above.
6745 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6747 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6748 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6749 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6750 POP_FRAME): Remove defines.
6751 (i386_push_arguments, i386_store_struct_return,
6752 i386_extract_return_value, i386_store_return_value,
6753 i386_extract_struct_value_address, i386_push_dummy_frame,
6754 i386_pop_frame): Renove prototypes.
6755 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6756 macros mentioned above.
6758 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6760 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6761 add_set_boolean_cmd.
6762 (add_setshow_cmd): New function.
6763 * command.h (add_setshow_boolean_cmd): Replace
6764 add_set_boolean_cmd.
6765 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6766 and ``set rdiromatzero''.
6767 * maint.c (_initialize_maint_cmds): Update commented out code.
6768 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6769 * target.c (initialize_targets): Update `set
6770 trust-readonly-sections'.
6771 * remote.c (_initialize_remote): Update `set remotebreak'.
6773 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6775 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6776 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6777 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6778 fit into multi-arch framework.
6779 (i386_breakpoint_from_pc): New function.
6780 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6783 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6784 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6785 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6786 (i386_frameless_function_invocation, i386_frame_num_args,
6787 i386_frame_init_saved_regs): Remove prototypes.
6788 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6789 macros mentioned above.
6791 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6793 * cli/cli-decode.c (set_cmd_cfunc): Update.
6794 (set_cmd_sfunc): Update.
6795 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6796 (set_cmd_sfunc, set_cmd_cfunc): Update.
6797 * cli/cli-decode.h: Update.
6799 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6801 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6802 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6804 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6806 * defs.h (auto_boolean): Declare enum.
6807 * command.h (cmd_auto_boolean): Delete enum.
6808 * mips-tdep.c (mask_address_var): Update.
6809 (mips_mask_address_p): Update.
6810 (show_mask_address): Update.
6811 * remote.c (struct packet_config): Update.
6812 (update_packet_config): Update.
6813 (show_packet_config_cmd): Update.
6814 (packet_ok): Update.
6815 (add_packet_config_cmd): Update.
6816 (_initialize_remote):
6817 * command.h: Update.
6818 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6819 (do_setshow_command): Update.
6820 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6821 * cli/cli-decode.h: Update.
6823 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6825 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6826 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6827 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6828 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6829 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6830 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6832 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6833 list of DJGPP COFF targets.
6835 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6836 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6837 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6838 (FP0_REGNUM): Remove define.
6839 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6840 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6841 (i386_register_virtual_size): Remove protoype.
6842 * i386-tdep.c (i386_register_virtual_size): Removed.
6843 (i386_extract_return_value, i386_store_return_value): Use
6844 FP0_REGNUM instead of NUM_FREGS to determine whether the
6845 floating-point registers are available.
6846 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6847 Adjust for removal of macros mentioned above.
6849 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6851 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6853 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6855 (supply_gregset, fill_gregset): Remove use of register keyword and
6856 remove declaration for regmap. Use I386_NUM_GREGS instead of
6857 NUM_REGS and NUM_FREGS.
6858 (FPREGSET_FSAVE_OFFSET): Remove.
6859 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6860 NUM_FREGS to determine whether the floating-point registers are
6863 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6864 gnu_store_registers): Replace usage of NUM_GREGS with
6867 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6868 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6869 usage of NUM_GREGS with I386_NUM_GREGS.
6871 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6873 * i386bsd-nat.c: Include "i386-tdep.h".
6874 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6877 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6878 and associated comment. They no longer make any sense, since we
6879 don't use this file anymore on Linux.
6881 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6882 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6883 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6884 elements in these arrays.
6885 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6888 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6890 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6891 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6893 2002-06-14 Andrew Cagney <cagney@redhat.com>
6895 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6896 EXTRACT_RETURN_VALUE.
6897 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6898 EXTRACT_STRUCT_VALUE_ADDRESS.
6899 * gdbarch.h, gdbarch.c: Regenerate.
6901 * values.c (value_being_returned): Handle
6902 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6903 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6905 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6906 * arm-tdep.c (arm_gdbarch_init): Update.
6907 * avr-tdep.c (avr_gdbarch_init): Update.
6908 * cris-tdep.c (cris_gdbarch_init): Update.
6909 * d10v-tdep.c (d10v_gdbarch_init): Update.
6910 * ia64-tdep.c (ia64_gdbarch_init): Update.
6911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6912 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6913 * s390-tdep.c (s390_gdbarch_init): Update.
6914 * sh-tdep.c (sh_gdbarch_init): Update.
6915 * s390-tdep.c (s390_gdbarch_init): Update.
6916 * sparc-tdep.c (sparc_gdbarch_init): Update.
6917 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6918 * v850-tdep.c (v850_gdbarch_init): Update.
6919 * vax-tdep.c (vax_gdbarch_init): Update.
6920 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6923 * config/arc/tm-arc.h: Update.
6924 * config/d30v/tm-d30v.h: Update.
6925 * config/fr30/tm-fr30.h: Update.
6926 * config/h8300/tm-h8300.h: Update.
6927 * config/h8500/tm-h8500.h: Update.
6928 * config/i386/tm-i386.h: Update.
6929 * config/i386/tm-ptx.h: Update.
6930 * config/i386/tm-symmetry.h: Update.
6931 * config/i960/tm-i960.h: Update.
6932 * config/m32r/tm-m32r.h: Update.
6933 * config/m68k/tm-delta68.h: Update.
6934 * config/m68k/tm-linux.h: Update.
6935 * config/m68k/tm-m68k.h: Update.
6936 * config/m88k/tm-m88k.h: Update.
6937 * config/mcore/tm-mcore.h: Update.
6938 * config/mips/tm-mips.h: Update.
6939 * config/mn10200/tm-mn10200.h: Update.
6940 * config/pa/tm-hppa.h: Update.
6941 * config/pa/tm-hppa64.h: Update.
6942 * config/sparc/tm-sp64.h: Update.
6943 * config/sparc/tm-sparc.h: Update.
6944 * config/sparc/tm-sparclet.h: Update.
6945 * config/z8k/tm-z8k.h: Update.
6947 2002-06-14 Andrew Cagney <cagney@redhat.com>
6949 * Makefile.in (i386_linux_tdep_h): Define.
6950 (i386_tdep_h, i387_tdep_h): Define.
6951 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6952 $(i386_tdep_h) and $(i387_tdep_h).
6953 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6955 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6957 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6958 Already covered by the default.
6960 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6961 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6962 (i386_gdbarch_init): Initialize long_double_format and long_double
6965 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6966 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6968 * config/i386/i386sol2.mh: ... here.
6969 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6970 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6971 (SIGCONTEXT_PC_OFFSET): Remove define.
6972 (IN_SIGTRAMP): Remove define.
6973 * i386-sol2-tdep.c: New file.
6975 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6976 * config/i386/tm-i386nw.h: Removed.
6978 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6979 USE_STRUCT_CONVENTION): Remove defines.
6980 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6981 (get_longjmp_target): Remove prototype.
6982 (IN_SIGTRAMP): Remove define.
6983 (i386bsd_in_sigtramp): Remove prototype.
6984 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6985 function. Update comment accordingly
6986 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6987 (FRAME_SAVED_PC): Remove define.
6988 (i386bsd_frame_saved_pc): Remove prototype.
6989 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6990 GET_LONGJMP_TARGET): Remove defines.
6991 (get_longjmp_target): Remove prototype.
6992 (IN_SIGTRAMP): Remove define.
6993 (i386bsd_in_sigtramp): Remove prototype.
6994 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6995 function. Update comment accordingly
6996 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6997 (FRAME_SAVED_PC): Remove define.
6998 (i386bsd_frame_saved_pc): Remove prototype.
6999 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7001 (USE_STRUCT_CONVENTION): Remove prototype.
7002 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7004 (_initialize_i386bsd_nat): Revise logic to determine some
7005 constants at compile time when compiling a native GDB. Warn if
7006 things don't match up with what we expect.
7007 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7009 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7010 to use date stored in `struct gdbarch_tdep'.
7011 (i386bsd_sigcontext_offset): Remove varaible.
7012 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7013 stored in `struct gdbarch_tdep'.
7014 (i386bsd_frame_saved_pc): Make static.
7015 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7016 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7017 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7018 i386fbsd4_sc_pc_offset): New variables.
7019 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7020 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7022 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7024 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7025 Modify the value of i386fbsd_sigtramp_start and
7026 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7027 i386fbsd_sigtramp_end.
7028 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7031 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7032 define to i386-linux-tdep.h.
7033 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7034 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7036 (i386_linux_register_name, i386_linux_register_byte,
7037 i386_linux_register_raw_size): Remove prototypes.
7038 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7039 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7040 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7041 TARGET_WRITE_PC): Remove defines.
7042 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7043 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7044 i386_linux_write_pc): Remove prototypes.
7045 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7046 (get_longjmp_target): Remove prototype.
7047 * i386-linux-tdep.h: New file.
7048 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7049 * i386-linux-tdep.c: Include "i386-tdep.h" and
7050 "i386-linux-tdep.h".
7051 (i386_linux_register_name, i386_linux_register_byte,
7052 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7053 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7055 (i386_linux_init_abi): New function.
7056 (_initialize_i386_linux_tdep): New function.
7058 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7059 (i386_saved_pc_after_call): Remove prototype.
7060 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7061 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7062 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7063 (i386_register_name, i386_stab_reg_to_regnum,
7064 i386_dwarf_reg_to_regnum): Remove prototypes.
7065 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7066 SIZEOF_SSE_REGS): Remove defines.
7067 (REGISTER_BYTES): Remove define.
7068 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7069 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7070 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7071 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7072 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7073 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7074 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7075 (get_longjmp_target): Remove prototype.
7076 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7077 (sigtramp_saved_pc): Remove define.
7078 (i386v4_sigtramp_saved_pc): Remove prototype.
7079 * config/i386/tm-go32.h (FRAME_CHAIN,
7080 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7081 (i386go32_frame_saved_pc): Remove prototype.
7082 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7083 (get_longjmp_target): Remove prototype.
7084 * i386-tdep.h: Include "osabi.h".
7085 (enum i386_abi): Removed.
7086 (enum struct_return): New enum.
7087 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7088 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7089 sc_pc_offset members.
7090 (i386_gdbarch_register_os_abi): Remove prototype.
7091 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7092 I386_SSE_NUM_REGS): New defines.
7093 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7094 I386_SSE_SIZEOF_REGS): New defines.
7095 (i386_register_name, i386_register_byte, i386_register_raw_size):
7097 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7098 (i386bsd_sigtramp_saved_pc): New prototype.
7099 * i386-tdep.c: Don't include "elf-bfd.h".
7100 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7101 i386_frame_chain, i386_saved_pc_after_call): Make static.
7102 (i386_frame_saved_pc): Rewrite to call architecture dependent
7103 function to deal with signal handlers. Make static.
7104 (i386go32_frame_saved_pc): Removed.
7105 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7107 (i386_get_longjmp_target): New function.
7108 (default_struct_convention, pcc_struct_convention,
7109 reg_struct_convention, valid_conventions, struct_convention): New
7111 (i386_use_struct_convention): New function.
7112 (i386v4_sigtramp_saved_pc): Renamed to
7113 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7114 (i386_pc_in_sigtramp): New function.
7115 (i386_abi_names): Removed.
7116 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7117 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7119 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7120 i386_gdbarch_register_os_abi): Removed.
7121 (struct i386_abi_handler): Removed.
7122 (i386_abi_handler_list): Removed.
7123 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7125 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7126 i386_nw_init_abi): New functions.
7127 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7128 Use set_gdbarch_xxx() calls instead of relying on macros for a
7130 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7131 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7132 Register the various architecture variants defined in this file.
7134 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7136 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7137 (struct main_type): Remove arg_types member. Update comments for
7139 (TYPE_ARG_TYPES): Remove.
7140 (TYPE_FN_FIELD_ARGS): Update.
7141 (smash_to_method_type): Update prototype.
7143 * c-typeprint.c (cp_type_print_method_args): Take method type
7144 instead of argument list. Use new argument layout. Simplify.
7145 (c_type_print_args): Use new argument layout. Simplify.
7146 (c_type_print_base): Update call to cp_type_print_method_args.
7147 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7148 argument; use die->type instead. Update call to
7149 smash_to_method_type.
7150 (read_structure_scope): Update call to dwarf2_add_member_fn.
7151 * gdbtypes.c (allocate_stub_method): Update comment.
7152 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7153 Use new argument layout.
7154 (check_stub_method): Use new argument layout. Don't count
7155 void as an argument.
7156 (print_arg_types): Update comments. Use new argument layout.
7157 (recursive_dump_type): Don't print arg_types member.
7158 * hpread.c (hpread_read_struct_type): Use new argument layout.
7159 (fixup_class_method_type): Likewise.
7160 (hpread_type_lookup): Likewise.
7161 * stabsread.c (read_type): Update calls to read_args and
7162 smash_to_method_type.
7163 (read_args): Use new argument layout. Simplify.
7164 * valops.c (typecmp): Use new argument layout. Update parameters
7165 and comments. Simplify.
7166 (hand_function_call): Use new argument layout.
7167 (search_struct_method): Update call to typecmp.
7168 (find_overload_match): Use new argument layout.
7170 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7172 * NEWS: Mention multithreaded debug support for gdbserver.
7174 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7176 * MAINTAINERS: Mention NEWS.
7178 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7180 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7181 (struct mips_objfile_private, compare_pdr_entries): New.
7182 (non_heuristic_proc_desc): Read the ".pdr" section if it
7185 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7187 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7188 (arm_debug): New static variable.
7189 (_initialize_arm_tdep): Add ``set debug arm'' command.
7191 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7193 * Makefile.in (sim_arm_h): Define.
7194 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7195 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7196 (arm_register_sim_regno): New function, map an internal REGNUM
7197 onto a simulator register number.
7198 (arm_gdbarch_init): Set register_sim_regno.
7200 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7202 * MAINTAINERS: Add self.
7204 2002-06-11 Jim Blandy <jimb@redhat.com>
7206 * source.c (source_info): Mention whether the symtab has
7207 information about preprocessor macros.
7209 Call the command `info macro', not `show macro'.
7210 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7212 (_initialize_macrocmd): Register `info_macro_command' in
7213 `infolist', not `showlist'.
7215 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7217 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7218 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7219 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7220 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7221 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7223 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7224 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7225 (_initialize_mips_tdep): Remove dead code.
7226 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7227 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7228 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7229 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7230 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7231 MIPS_LAST_FP_ARG_REGNUM): Remove.
7233 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7235 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7236 (unwind_tmp_obstack_free, parse_frame_info)
7237 (update_context, cfi_read_fp, cfi_write_fp)
7238 (cfi_frame_chain, cfi_init_extra_frame_info)
7239 (cfi_virtual_frame_pointer): Use the above function.
7240 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7242 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7244 * v850-tdep.c (v850_type_is_scalar): New function.
7245 (v850_use_struct_convention): Match current gcc implementation
7246 as close as possible.
7247 (v850_push_arguments): Fix stack_offset handling. Don't write
7248 struct_addr into register. This is done by v850_store_struct_return.
7249 (v850_extract_return_value): Care for structs.
7250 (v850_store_return_value): Ditto.
7251 (v850_store_struct_return): Actually write address.
7253 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7255 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7256 without debug information too.
7258 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7260 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7261 Make multi-arch pure.
7262 * gdbarch.h, gdbarch.c: Re-generate.
7263 * arm-tdep.c (arm_print_float_info): Update.
7264 * arch-utils.h (default_print_float_info): Update.
7265 * arch-utils.c (default_print_float_info): Update.
7266 * infcmd.c (float_info): Update call.
7268 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7270 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7271 the front of the initialize list.
7273 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7275 * infrun.c (struct inferior_status): Replace fields
7276 selected_frame_address and selected_level with field
7278 (save_inferior_status): Update. Use get_frame_id.
7279 (struct restore_selected_frame_args): Delete.
7280 (restore_selected_frame): Update. Use frame_find_by_id.
7281 (restore_inferior_status): Update.
7283 * breakpoint.h (struct breakpoint): Change type of
7284 watchpoint_frame to frame_id.
7285 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7286 call to get_current_frame.
7287 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7289 (watchpoint_check): Use frame_find_by_id.
7291 * frame.h (record_selected_frame): Delete declaration.
7292 * stack.c (record_selected_frame): Delete function.
7294 * frame.h (struct frame_id): Define.
7295 (get_frame_id): Declare.
7296 (frame_find_by_id): Declare.
7297 * frame.c (frame_find_by_id): New function.
7298 (get_frame_id): New function.
7300 2002-06-10 Andrey Volkov <avolkov@transas.com>
7302 * ser-e7kpc.c: Fix duplicated define and call of
7303 _initialize_ser_e7000pc
7305 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7307 * signals/signals.c (target_signal_from_host): Fix #ifdef
7309 (do_target_signal_to_host): Likewise.
7311 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7313 * mips-tdep.c (mips_find_abi_section): New function.
7314 (mips_gdbarch_init): Call it.
7316 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7318 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7319 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7320 after Andrew's 2002-06-08 gdbarch change.
7322 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7324 * i386-linux-nat.c (suppy_gregset): Don't supply
7325 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7327 (fill_gregset): Don't fetch it under the same circumstances.
7329 2002-06-09 Andrew Cagney <cagney@redhat.com>
7331 * Makefile.in (callback_h): Define.
7332 (remote_sim_h): Update path to remote-sim.h.
7333 (remote-rdp.o): Add $(callback_h).
7334 (remote-sim.o): Use $(callback_h).
7335 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7336 * remote-rdp.c: Include "gdb/callback.h".
7338 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7340 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7341 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7343 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7345 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7346 * rdi-share/serpardr.c: Ditto.
7347 * rdi-share/unixcomm.c: Ditto.
7348 * rdi-share/serdrv.c: Ditto.
7349 * rdi-share/hostchan.h: Ditto.
7350 * rdi-share/hostchan.c: Ditto.
7351 * rdi-share/host.h: Ditto.
7352 * rdi-share/devsw.c: Ditto.
7354 * objfiles.h: Change type of obj_private to void pointer.
7355 * pa64solib.c: Update copyright. Don't include "assert.h", use
7356 strcmp instead of STREQ, use LONGEST, do not use PTR
7357 * somsolib.c: Ditto.
7359 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7360 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7361 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7363 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7365 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7366 (default_get_saved_register): Delete function.
7367 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7368 generic_unwind_get_saved_register.
7369 * gdbarch.h, gdbarch.c: Re-generate.
7371 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7373 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7374 generic_func_frame_chain_valid.
7375 * gdbarch.h, gdbarch.c: Re-generate.
7376 * blockframe.c (generic_func_frame_chain_valid): Only check
7377 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7378 passing FP to PC_IN_CALL_DUMMY.
7381 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7383 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7384 (register_gdbarch_data): Initialize init_p.
7385 (gdbarch_data): Initialize data pointer using the init function.
7386 (init_gdbarch_data): Delete function.
7387 (gdbarch_update_p): Update.
7388 (initialize_non_multiarch): Update.
7389 (struct gdbarch): Add field initialized_p.
7390 * gdbarch.h, gdbarch.c: Re-generate.
7392 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7394 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7395 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7396 better do the things actually here.
7397 * x86-64-tdep.c (x86_64_register_name2nr): New.
7398 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7399 (x86_64_gdbarch_init): Respect the above change.
7400 * x86-64-tdep.h (x86_64_register_name2nr)
7401 (x86_64_register_nr2name): Add prototypes.
7402 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7404 2002-06-06 Michael Snyder <msnyder@redhat.com>
7406 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7407 Delete extra braces and re-indent.
7408 (d10v_store_return_value): Char return values
7409 must be shifted over by one byte in R0.
7410 (d10v_extract_return_value): Delete extra braces, re-indent.
7412 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7414 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7415 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7416 (d10v_integer_to_address): Rewrite.
7417 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7418 the d10v specific functions which take care of converting to the
7421 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7423 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7424 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7426 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7428 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7430 * config/tm-linux.h: Ditto.
7431 * config/alpha/tm-alphalinux.h: Ditto.
7432 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7433 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7434 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7435 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7436 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7437 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7438 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7439 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7440 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7441 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7442 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7443 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7444 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7445 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7446 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7447 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7448 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7449 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7450 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7451 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7452 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7453 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7454 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7455 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7456 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7457 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7458 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7459 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7460 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7461 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7462 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7463 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7464 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7465 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7466 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7467 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7468 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7470 2002-05-04 Aidan Skinner <aidan@velvet.net>
7472 * ada-exp.tab.c: New file
7473 * ada-exp.y: New file
7474 * ada-lang.c: New file
7475 * ada-lang.h: New file
7476 * ada-lex.c: New file
7477 * ada-lex.l: New file
7478 * ada-tasks.c: New file
7479 * ada-typeprint.c: New file
7480 * ada-valprint.c: New file
7482 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7484 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7485 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7487 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7489 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7490 insetead of ppc-linux-tdep.o.
7491 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7492 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7494 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7496 2002-05-07 Christian Groessler <chris@groessler.org>
7497 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7498 bit register contents for little endian hosts.
7500 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7502 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7505 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7507 * gdbarch.h: Regenerate.
7509 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7511 * MAINTAINERS: Add everyone to write-after-approval list.
7513 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7515 * stack.c (frame_info): Use frame_register_unwind instead of
7516 saved_regs. Mention when the SP is on the stack or in a register.
7518 * frame.h (frame_register_unwind_ftype): Define. Document.
7519 (struct frame_info): Add field register_unwind and
7520 register_unwind_cache.
7521 (frame_register_unwind): Declare.
7522 (generic_unwind_get_saved_register): Declare.
7524 * frame.c (frame_register_unwind): New function.
7525 (generic_unwind_get_saved_register): New function.
7527 * blockframe.c (generic_call_dummy_register_unwind): New function.
7528 (frame_saved_regs_register_unwind): New function.
7529 (set_unwind_by_pc): New function.
7530 (create_new_frame): New function.
7531 (get_prev_frame): New function.
7533 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7535 * a29k-share/: Delete directory.
7536 * remote-vx29k.c: Delete file.
7538 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7540 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7541 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7543 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7545 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7546 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7549 (sparcnbsd-tdep.o): New dependency lists.
7550 * NEWS: Note new UltraSPARC NetBSD native configuration.
7551 * configure.host (sparc64-*-netbsd*): New host.
7552 * configure.tgt (sparc-*-netbsdelf*)
7553 (sparc-*-netbsd*): Set gdb_target to nbsd.
7554 (sparc64-*-netbsd*): New target.
7555 * sparc64nbsd-nat.c: New file.
7556 * sparcnbsd-nat.c: New file.
7557 * sparcnbsd-tdep.c: New file.
7558 * sparcnbsd-tdep.h: New file.
7559 * config/sparc/nbsd.mt: New file.
7560 * config/sparc/nbsd64.mh: New file.
7561 * config/sparc/nbsd64.mt: New file.
7562 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7563 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7565 * config/sparc/nbsdaout.mt: Remove.
7566 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7567 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7569 * config/sparc/nbsdelf.mt: Remove.
7570 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7571 sparc-nat.c compatiblity defines.
7572 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7573 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7574 * config/sparc/tm-nbsd64.h: New file.
7575 * config/sparc/tm-nbsdaout.h: Remove.
7576 * config/sparc/xm-nbsd.h: Remove.
7578 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7580 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7581 * sparc-tdep.c: Include osabi.h.
7582 (gdbarch_tdep): Add osabi member.
7583 (_initialize_sparc_tdep): Use gdbarch_register.
7584 (sparc_gdbarch_init): Use generic OS ABI framework.
7585 (sparc_dump_tdep): New function.
7587 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7589 * corefile.c (do_captured_read_memory_integer): Return non-zero
7591 (safe_read_memory_integer): Copy result of memory read when
7592 status is non-zero. Also, add comments.
7594 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7596 * Makefile.in (ppc_tdep_h): Define.
7599 (rs6000-tdep.o): Use $(ppc_tdep_h).
7602 (ppcnbsd-tdep.o): New dependency lists.
7603 * ppc-tdep.h: Use generic OS ABI framework.
7604 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7605 (ppc_linux_init_abi): New functions.
7606 (ppc_sysv_abi_broken_use_struct_convention)
7607 (ppc_sysv_abi_use_struct_convention)
7608 (ppc_sysv_abi_push_arguments): Move to...
7609 * ppc-sysv-tdep.c: ...here.
7610 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7611 * rs6000-tdep.c (process_note_abi_tag_sections)
7612 (get_elfosabi): Remove.
7613 (rs6000_gdbarch_init): Use generic OS ABI framework.
7614 (rs6000_dump_tdep): New function.
7615 (_initialize_rs6000_tdep): Use gdbarch_register.
7616 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7617 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7618 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7619 of ppc-linux-tdep.o.
7620 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7621 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7622 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7623 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7624 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7625 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7627 2002-05-29 Jim Blandy <jimb@redhat.com>
7629 * macroscope.c (default_macro_scope): Put `void' in empty argument
7632 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7634 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7635 * arch-utils.c: Include "sim-regno.h".
7636 * gdbarch.sh: Don't include "sim-regno.h".
7637 * gdbarch.h, gdbarch.c: Regenerate.
7638 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7640 * arch-utils.h (legacy_register_sim_regno): To here.
7641 * remote-sim.c (legacy_register_sim_regno): Move function from
7643 * arch-utils.c (legacy_register_sim_regno): To here.
7645 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7647 * sim-regno.h: New file.
7648 * Makefile.in (sim_regno_h): Define.
7649 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7650 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7651 (legacy_register_sim_regno): New function.
7652 (one2one_register_sim_regno): New function.
7653 (gdbsim_fetch_register): Rewrite.
7654 (gdbsim_store_register): Only store a register when
7655 REGISTER_SIM_REGNO is valid.
7656 * d10v-tdep.c: Include "sim-regno.h".
7657 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7658 (d10v_ts3_register_sim_regno): Ditto.
7659 * gdbarch.sh: Include "sim-regno.h".
7660 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7661 * gdbarch.h, gdbarch.c: Regenerate.
7662 * arch-utils.h (default_register_sim_regno): Delete declaration.
7663 * arch-utils.c (default_register_sim_regno): Delete function.
7665 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7667 * ppcnbsd-nat.c: Rewrite.
7668 * ppcnbsd-tdep.c: New file.
7669 * ppcnbsd-tdep.h: New file.
7670 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7671 solib.o, and solib-svr4.o.
7672 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7673 nbsd-tdep.o, and corelow.o.
7675 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7677 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7678 `tr' and `sed'. Mention that `broken' targets are not expected to
7681 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7683 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7684 Let PC point right after the prologue before looking up symbols.
7686 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7688 * i386-tdep.c (i386_register_virtual_type): Return
7689 builtin_type_vec128i for SSE registers.
7691 * gdbtypes.h (builtin_type_vec128i): Declare.
7693 * gdbtypes.c (build_builtin_type_vec128i): New function.
7694 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7695 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7696 (build_gdbtypes): Initialize new builtin vector types.
7697 (_initialize_gdbtypes): Register new vector types with gdbarch.
7699 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7701 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7702 since it has been multi-arch'd.
7703 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7704 Move Alpha and VAX multi-arch news entries to same section
7705 as other multi-arch news.
7707 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7709 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7710 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7711 static. Rename some register numbers to put them in ns32k-tdep
7713 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7714 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7716 (_initialize_ns32k_tdep): Use gdbarch_register.
7717 * ns32k-tdep.h: New file.
7718 * ns32knbsd-tdep.c: New file.
7719 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7720 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7721 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7722 REGISTER_BYTES, REGISTER_BYTE): Remove.
7723 * config/ns32k/tm-ns32k.h: New file.
7724 * config/ns32k/tm-umax.h: Remove.
7726 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7728 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7729 ns32k_store_struct_return, ns32k_extract_return_value,
7730 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7732 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7733 ns32k_saved_pc_after_call.
7734 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7735 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7736 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7737 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7738 ns32k_extract_struct_value_address.
7740 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7742 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7743 ns32k_fix_call_dummy): New.
7744 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7745 ns32k_call_dummy_words.
7746 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7747 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7748 CALL_DUMMY_NARGS): Remove.
7749 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7751 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7753 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7754 ns32k_frame_saved_pc, ns32k_frame_args_address,
7755 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7756 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7757 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7758 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7759 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7760 (BREAKPOINT): Remove..
7761 (FRAME_CHAIN): Define as ns32k_frame_chain.
7762 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7763 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7764 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7765 (FRAME_FIND_SAVED_REGS): Remove.
7766 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7767 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7768 (POP_FRAME): Define as ns32k_pop_frame.
7770 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7772 * ns32k-tdep.c (ns32k_register_byte_32082,
7773 ns32k_register_byte_32382, ns32k_register_raw_size,
7774 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7776 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7777 ns32k_register_byte_32382.
7778 * config/ns32k/tm-umax.h: Update copyright years.
7779 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7780 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7781 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7782 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7783 (ns32k_get_enter_addr): Fix prototype.
7785 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7787 * ns32k-tdep.c: Update copyright years.
7788 (ns32k_register_name_32082): New function.
7789 (ns32k_register_name_32382): Ditto.
7790 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7791 (REGISTER_NAME): Define as ns32k_register_name_32382.
7792 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7793 (REGISTER_NAME): Define as ns32k_register_name_32082.
7795 2002-05-24 Jim Blandy <jimb@redhat.com>
7797 * dwarf2read.c (free_line_header): Use xfree, not free.
7799 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7801 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7802 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7804 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7806 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7808 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7810 From Ross Alexander at NEC Europe:
7811 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7813 2002-05-23 Michael Snyder <msnyder@redhat.com>
7815 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7816 for input, rather than parse_and_eval_address.
7818 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7820 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7821 * Makefile.in (sim_d10v_h): Update definition.
7823 2002-05-24 Andrew Cagney <cagney@redhat.com>
7825 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7826 change `2002-05-22 Michael Snyder' below.
7827 (d10v_push_arguments): Ditto.
7828 (d10v_extract_return_value): Ditto.
7830 2002-05-23 Jim Blandy <jimb@redhat.com>
7832 * macrotab.c (check_for_redefinition): Don't complain if the new
7833 definition is the same as the previous one. Take more arguments
7834 to allow the comparison.
7835 (macro_define_object, macro_define_function): Pass more arguments
7836 to check_for_redefinition.
7838 2002-05-22 Michael Snyder <msnyder@redhat.com>
7840 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7841 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7842 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7843 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7844 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7845 Add a temp variable to save a call (and a memory read).
7846 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7847 if possible (so that PC_IN_CALL_DUMMY will work).
7849 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7851 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7853 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7855 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7857 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7858 (dwarf2_build_frame_info): Add offset to fde->initial_location
7859 so that frames of shared libraries are mapped correctly.
7860 (execute_stack_op): Change type of 'result' from ULONGEST to
7863 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7865 * config/alpha/tm-nbsd.h: Include solib.h.
7867 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7869 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7870 assumptions about the host's byte order.
7872 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7874 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7876 * alphanbsd-tdep.c: Include solib-svr4.h.
7877 * shnbsd-tdep.c: Ditto.
7879 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7881 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7882 nbsd-tdep.h to dependency list.
7883 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7884 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7885 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7886 nbsdaout.mh and nbsdelf.mh consistently.
7887 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7888 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7889 nbsdaout.mt and nbsdelf.mh consistently.
7890 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7891 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7892 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7893 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7894 a.out shared library stuff from here...
7895 * config/nm-nbsdaout.h: ...to here.
7896 * config/tm-nbsd.h: Remove.
7897 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7898 * config/arm/nbsd.mh: Remove.
7899 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7901 * config/arm/nbsdaout.mh: New file.
7902 * config/arm/nbsdelf.mh: New file.
7903 * config/arm/nm-nbsdaout.h: New file.
7904 * config/i386/nbsd.mh: Remove.
7905 * config/i386/nbsd.mt: Remove.
7906 * config/i386/nbsdaout.mh: New file.
7907 * config/i386/nbsdaout.mt: New file.
7908 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7909 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7910 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7911 i386_register_u_addr): Remove.
7912 * config/i386/nm-nbsdaout.h: New file.
7913 * config/i386/nm-nbsdelf.h: Remove.
7914 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7915 (USE_STRUCT_CONVENTION): Remove.
7916 * config/i386/tm-nbsdaout.h: New file.
7917 * config/i386/tm-nbsdelf.h: Remove.
7918 * config/m68k/nbsd.mh: Remove.
7919 * config/m68k/nbsd.mt: Remove.
7920 * config/m68k/nbsdaout.mh: New file.
7921 * config/m68k/nbsdaout.mt: New file.
7922 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7923 * config/m68k/nm-nbsdaout.h: New file.
7924 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7925 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7926 * config/ns32k/nbsd.mh: Remove.
7927 * config/ns32k/nbsd.mt: Remove.
7928 * config/ns32k/nbsdaout.mh: New file.
7929 * config/ns32k/nbsdaout.mt: New file.
7930 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7931 * config/ns32k/nm-nbsdaout.h: New file.
7932 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7933 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7934 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7935 (SVR4_SHARED_LIBS): Remove.
7936 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7937 * config/sparc/nbsd.mh: Remove.
7938 * config/sparc/nbsd.mt: Remove.
7939 * config/sparc/nbsdaout.mh: New file.
7940 * config/sparc/nbsdaout.mt: New file.
7941 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7942 * config/sparc/nbsdelf.mt: New file.
7943 * config/sparc/nm-nbsdaout.h: New file.
7944 * config/sparc/nm-nbsdelf.h: Remove.
7945 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7946 * config/sparc/tm-nbsdaout.h: New file.
7948 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7950 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7952 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7954 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7956 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7958 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7960 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7962 * NEWS: Note new MIPS NetBSD native configuration.
7963 * configure.host (mips*-*-netbsd*): New host.
7964 * configure.tgt (mips*-*-netbsd*): New target.
7965 * mipsnbsd-nat.c: New file.
7966 * mipsnbsd-tdep.c: New file.
7967 * mipsnbsd-tdep.h: New file.
7968 * config/mips/nbsd.mh: New file.
7969 * config/mips/nbsd.mt: New file.
7970 * config/mips/nm-nbsd.h: New file.
7971 * config/mips/tm-nbsd.h: New file.
7973 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7975 * Makefile.in (SFILES): Add osabi.c.
7976 (COMMON_OBS): Add osabi.o.
7977 (osabi.o): New dependency list.
7978 * osabi.c: New file.
7979 * osabi.h: New file.
7980 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7982 * Makefile.in (alpha_tdep_h): Define and use instead of
7984 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7985 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7987 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7988 * alpha-tdep.h: Include osabi.h.
7989 (alpha_abi): Remove.
7990 (gdbarch_tdep): Use generic OS ABI framework.
7991 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7992 gdbarch_register_osabi.
7993 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7994 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7995 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7997 * Makefile.in (sh_tdep_h): Add osabi.h.
7998 * sh-tdep.h (sh_osabi): Remove.
7999 (gdbarch_tdep): Use generic OS ABI framework.
8000 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8001 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8002 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8003 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8005 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8006 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8007 gdbarch_register_osabi.
8008 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8009 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8010 (get_elfosabi): Rename to...
8011 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8012 ABI framework support routines.
8013 (arm_gdbarch_init): Use generic OS ABI framework.
8014 (arm_dump_tdep): Likewise.
8015 (_initialize_arm_tdep): Likewise.
8016 * arm-tdep.h: Include osabi.h.
8018 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8020 (arm_gdbarch_register_os_abi): Remove prototype.
8021 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8022 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8024 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8025 * mips-tdep.c: Include osabi.h.
8026 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8029 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8031 * h8300-tdep.c: Fix formatting.
8033 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8035 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8036 printing vector registers.
8038 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8040 From Fernando Nasser:
8041 * remote.c (remote_async_open_1): Re-throw the exception when the
8043 (remote_cisco_open): Ditto.
8044 (remote_open_1): Ditto.
8046 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8048 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8049 (remote_start_remote): Add uiout parameter. Pass through to
8050 remote_start_remote_dummy.
8051 (remote_open_1): Use catch_exception instead of catch_errors.
8052 (remote_async_open_1): Ditto.
8053 (remote_cisco_open): Ditto.
8055 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8057 * remote.c (remote_start_remote): Replace PTR with void pointer.
8058 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8061 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8063 * gdb_indent.sh: Allow the script to be run in the sim directory.
8065 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8067 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8068 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8070 * corelow.c (core_open): Only call set_gdbarch_from_file if
8073 2002-05-17 Andrey Volkov <avolkov@transas.com>
8075 * h8300-tdep.c: Add support of EXR register
8076 * config/h8300/tm-h8300.h: Ditto.
8078 2002-05-17 Andrey Volkov <avolkov@transas.com>
8080 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8082 2002-05-17 Andrey Volkov <avolkov@transas.com>
8084 * h8300-tdep.c: Change literal regnums to REGNO.
8086 2002-05-17 Jim Blandy <jimb@redhat.com>
8088 * NEWS: Note addition of macro support.
8090 Expand preprocessor macros in C expressions.
8091 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8092 (scan_macro_expansion, scanning_macro_expansion,
8093 finished_macro_expansion): New function declarations.
8094 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8095 variable declarations.
8096 * parser-defs.h (expression_context_pc): New declaration.
8097 * parse.c (expression_context_pc): New variable.
8098 (parse_exp_1): Set expression_context_pc, as well as
8099 expression_context_block.
8100 * c-exp.y (yylex): If we're not already reading the result of a
8101 macro expansion, try to macro-expand the next token. When we're
8102 done scanning a macro expansion, switch back to the mainline text.
8103 Commas and `if's in a macro's expansion don't terminate the input.
8104 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8105 (macro_original_text, macro_expanded_text,
8106 expression_macro_lookup_func, expression_macro_lookup_baton): New
8108 (scan_macro_expansion, scanning_macro_expansion,
8109 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8110 c_preprocess_and_parse): New functions.
8111 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8112 c_preprocess_and_parse, instead of c_parse.
8113 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8114 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8116 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8118 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8119 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8120 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8122 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8124 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8126 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8128 * Makefile.in (sh_tdep_h): Define and use.
8129 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8130 register enum): Move to...
8131 * * sh-tdep.h: ...here.
8132 * sh-tdep.c: Include sh-tdep.h.
8133 * sh3-rom.c: Likewise.
8134 * shnbsd-tdep.c: Likewise.
8136 2002-05-16 Michael Snyder <msnyder@redhat.com>
8138 * arm-tdep.c: Spelling fix in comment.
8140 2002-05-16 Jim Blandy <jimb@redhat.com>
8142 Add commands for manually expanding macros and showing their
8144 * macrocmd.c, macroscope.c, macroscope.h: New files.
8145 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8146 (macroscope_h): New variable.
8147 (HFILES_NO_SRCDIR): Add macroscope.h.
8148 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8149 (macroscope.o, macrocmd.o): New rules.
8151 Teach the Dwarf 2 reader to read macro information.
8152 * dwarf2read.c: #include "macrotab.h".
8153 (dwarf_macinfo_buffer): New variable.
8154 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8156 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8157 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8158 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8159 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8160 dwarf2_macro_spaces_in_definition): New complaints.
8161 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8162 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8163 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8164 the partial symbol table.
8165 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8166 from what's recorded in the partial symbol table.
8167 (read_file_scope): If the compilation unit has a
8168 `DW_AT_macro_info' attribute, read its macro information.
8169 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8171 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8174 * ser-tcp.c: Don't include <netinet/udp.h>.
8176 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8178 * MAINTAINERS: Update my email address.
8180 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8182 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8183 include file of the same name.
8185 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8187 * configure.tgt: Mark v850 as multi-arched.
8188 * config/v850/tm-v850.h: Remove file.
8189 * config/v850/v850.mt: Eliminate TM_FILE.
8191 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8193 * v850-tdep.c: Full multi-arch.
8194 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8195 Define GDB_MULTI_ARCH to 2.
8197 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8199 * p-exp.y (current_type): New static variable.
8200 Carries the type of the expression at the position that is parsed.
8201 (push_current_type, pop_current_type): Two new functions. Used
8202 to store/restore current_type in expression on specific tokens.
8203 (search_field): New static variable. Set to one after parsing a point
8204 as at that point only a FIELDNAME token should be searched.
8205 (FIELDNAME): New token. After a point only a token belonging to
8206 current_type type definition is allowed.
8207 (all over token rules): reset and change current_type according
8209 (exp '[' rule): insert implicit array index field if
8210 exp is a pascal string type.
8212 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8214 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8215 frame info. Use frame_info's saved_regs instead of matching member
8216 in extra_frame_info throughout.
8217 (v850_frame_init_saved_regs): New function.
8218 (v850_init_extra_frame_info): Move most functionality into
8219 v850_frame_init_saved_regs().
8220 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8221 (v850_frame_find_saved_regs): Remove declaration.
8222 (FRAME_FIND_SAVED_REGS): Remove definition.
8223 (v850_frame_init_saved_regs): Add declaration.
8224 (FRAME_INIT_SAVED_REGS): Add definition.
8226 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8228 * v850-tdep.c: Begin multi-arch'ing v850.
8229 (v850_target_architecture_hook): Remove function.
8230 (v850_gdbarch_init): New function. Add code previously in
8231 v850_target_architecture_hook().
8232 (_initialize_v850_tdep): Don't set target_architecture_hook.
8233 Call register_gdbarch_init() instead.
8235 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8237 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8238 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8239 (fixup_class_method_type): Likewise.
8241 2002-05-15 Jim Blandy <jimb@redhat.com>
8243 Add macro structures to GDB's symbol tables. Nobody puts anything
8245 * symtab.h (struct symtab): New member: `macro_table'.
8246 * buildsym.h (pending_macros): New global variable.
8247 * buildsym.c: #include "macrotab.h".
8248 (buildsym_init): Initialize `pending_macros'.
8249 (end_symtab): If we found macro information while reading a CU's
8250 debugging info, do build a symtab structure for it. Make the
8251 symtab point to the macro information, and clear the
8252 `pending_macros' pointer which held it while we were reading the
8254 (really_free_pendings): Free any pending macro table.
8255 * objfiles.h (struct objfile): New member: `macro_cache'.
8256 * objfiles.c (allocate_objfile): Set allocate and free functions
8257 for the macro cache's objstack.
8258 (free_objfile): Empty the macro cache's obstack.
8259 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8260 set new allocate and free functions for it.
8261 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8262 free functions for the macro cache's objstack. (Why is this
8263 function building its own objfile?)
8264 * symmisc.c (print_objfile_statistics): Print statistics on the
8266 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8268 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8270 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8271 (REGISTER_U_ADDR): Delete definition.
8272 (arm_register_u_addr): Delete declaration.
8274 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8276 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8277 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8279 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8281 * regcache.c (register_valid): Revise comments refering to "Not
8282 available" and "unavailable".
8283 * frame.c (frame_register_read): Ditto.
8284 * findvar.c (value_of_register): Ditto.
8286 2002-05-15 Andrew Cagney <cagney@redhat.com>
8288 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8289 (remote-sim.o): Update dependencies.
8290 (d10v-tdep.o): Specify dependencies.
8291 (sim_d10v_h): Define.
8293 2002-05-14 Jim Blandy <jimb@redhat.com>
8295 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8296 * macrotab.c (macro_lookup_inclusion, find_definition,
8297 new_macro_table): Same.
8299 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8300 not `! strcmp ()'. This is a dubious improvement.
8301 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8303 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8304 although it's not necessary, to avoid a warning.
8306 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8308 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8309 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8310 TYPE_INSTANCE_FLAGS.
8311 (struct main_type): New.
8312 (struct type): Move most members to struct main_type. Change
8313 cv_type and as_type to new type_chain member. Add instance_flags.
8314 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8315 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8316 (finish_cv_type): Remove prototype.
8317 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8319 (alloc_type_instance): New function.
8320 (smash_type): New function.
8321 (make_pointer_type, make_reference_type, make_function_type)
8322 (smash_to_member_type, smash_to_method_type): Call smash_type.
8323 (make_qualified_type): New function.
8324 (make_type_with_address_space): Call make_qualified_type.
8325 (make_cv_type): Likewise.
8326 (finish_cv_type): Remove unnecessary function.
8327 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8328 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8329 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8330 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8331 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8332 * hpread.c (hpread_read_struct_type): Likewise.
8333 * stabsread.c (read_struct_type): Likewise.
8335 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8337 * configure.tgt: Add a catch all sh* target, for cases like
8338 sh[2,3,4]-elf and sh-hms.
8340 2002-05-14 Keith Seitz <keiths@redhat.com>
8342 * event-loop.c (create_file_handler): Don't do anything but
8343 update data when we are given a fd which we are already
8346 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8348 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8349 (update_context): Use __func__ in warnings.
8351 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8353 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8354 and tcp_close to net_open and net_close.
8355 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8356 using UDP if requested. Don't try to disable Nagle on UDP
8358 * remote.c (remote_serial_open): New function. Warn about UDP.
8359 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8361 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8363 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8365 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8367 * configure.tgt: Remove sh-hms target.
8368 * MAINTAINERS: Don't list sh-hms as a separate target.
8370 2002-05-13 Jim Blandy <jimb@redhat.com>
8372 Add first preprocessor macro-expansion files.
8373 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8374 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8375 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8376 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8377 (COMMON_OBS): Add macrotab.o, macroexp.o.
8378 (macroexp.o, macrotab.o): New rules.
8380 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8382 * config/m88k/tm-m88k.h: Update copyright.
8383 (m88k_target_write_pc): Declare
8384 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8385 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8386 (SHIFT_INST_REGS): Update definition.
8387 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8388 using old definition of TARGET_WRITE_PC.
8389 * regcache.c (generic_target_write_pc): Delete code handling
8391 * gdbarch.sh (NNPC_REGNUM): Delete.
8392 * gdbarch.h, gdbarch.c: Regenerate.
8394 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8396 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8399 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8401 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8402 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8403 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8405 * c-typeprint.c (cp_type_print_method_args): Likewise.
8406 (c_type_print_args): Likewise.
8407 * d10v-tdep.c (d10v_push_arguments): Likewise.
8408 (d10v_extract_return_value): Likewise.
8409 * expprint.c (print_subexp): Likewise.
8410 * gdbtypes.c (lookup_primitive_typename): Likewise.
8411 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8412 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8413 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8414 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8415 (TYPE_VECTOR): Likewise.
8416 * hpread.c (hpread_read_struct_type)
8417 (fix_static_member_physnames, fixup_class_method_type)
8418 (hpread_type_lookup): Likewise.
8419 * mdebugread.c (parse_symbol, parse_type): Likewise.
8420 * p-lang.c (is_pascal_string_type): Likewise.
8421 * valops.c (hand_function_call): Likewise.
8422 * x86-64-tdep.c (classify_argument): Likewise.
8424 * hpread.c (hpread_read_function_type)
8425 (hpread_read_doc_function_type): Call replace_type.
8426 * dstread.c (create_new_type): Delete.
8427 (decode_dst_structure, process_dst_function): Call alloc_type.
8428 Use type access macros.
8430 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8432 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8433 the're not supported by the current architecture.
8434 (i387_fill_fxsave): Likewise.
8436 2002-05-12 Fred Fish <fnf@redhat.com>
8438 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8439 sect_index_xxx members to index the first slot in section_offsets
8440 if all of the section_offsets are zero.
8442 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8444 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8445 checked in with last change.
8447 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8449 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8450 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8453 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8455 * Makefile.in: Update dependencies.
8457 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8459 * language.c (local_hex_string_custom): Simplify. Do not depend
8460 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8462 * memattr.c (mem_info_command): Replace calls to
8463 longest_local_hex_string and longest_local_hex_string_custom.
8464 * buildsym.c (make_blockvector): Ditto.
8465 * solib.c (info_sharedlibrary_command): Ditto.
8466 * tracepoint.c (tracepoints_info): Ditto.
8467 * symtab.c (print_msymbol_info): Ditto.
8469 * language.c (local_hex_string): Delete.
8470 (local_hex_string_custom): Delete.
8471 (longest_local_hex_string): Rename to local_hex_string.
8472 (longest_local_hex_string_custom): Rename to
8473 local_hex_string_custom.
8474 * language.h (local_hex_string): Change parameter type to LONGEST.
8475 (local_hex_string_custom): Ditto.
8476 (longest_local_hex_string): Delete declaration.
8477 (longest_local_hex_string_custom): Ditto.
8479 * solib.c: Update copyright.
8480 * memattr.c: Update copyright.
8482 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8484 * arch-utils.h (legacy_register_to_value): Declare.
8485 (legacy_value_to_register): Declare.
8486 (legacy_convert_register_p): Declare.
8487 * arch-utils.c (legacy_register_to_value): New function.
8488 (legacy_value_to_register): New function.
8489 (legacy_convert_register_p): New function.
8491 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8492 (VALUE_TO_REGISTER): Define.
8493 (CONVERT_REGISTER_P): Define.
8494 * gdbarch.h, gdbarch.c: Regenerate.
8496 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8498 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8501 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8502 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8504 * Makefile.in: Update dependencies for valops.c.
8505 * valops.c: Include "gdb_assert.h".
8506 (typecmp): Skip THIS parameter to methods.
8507 (find_method_list): Remove static_memfuncp argument,
8508 update callers. Check for stub methods.
8509 (find_value_oload_method_list): Don't set *static_memfuncp.
8510 (find_overload_match): Don't check for stub methods. Assert
8511 that methods are not stubbed. Handle static methods.
8512 (value_find_oload_method_list): Remove static_memfuncp argument.
8513 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8514 to the argument list for static stub methods.
8515 * value.h (value_find_oload_method_list): Update prototype.
8517 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8519 * arch-utils.h (generic_register_size): Declare.
8520 (generic_register_raw_size, generic_register_virtual_size): Delete
8522 * arch-utils.c (generic_register_raw_size): Delete.
8523 (generic_register_size): New function.
8524 (generic_register_virtual_size): Delete.
8526 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8527 default generic_register_size.
8528 * gdbarch.h, gdbarch.c: Re-generate.
8530 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8531 register_virtual_size.
8532 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8533 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8535 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8537 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8538 * gdbarch.h, gdbarch.c: Regenerate.
8539 * gnu-v3-abi.c: Update copyright.
8540 (vtable_address_point_offset): Update.
8541 (gnuv3_rtti_type): Update.
8542 (gnuv3_baseclass_offset): Update.
8543 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8544 (init_fetch_link_map_offsets): Update.
8545 * remote.c (get_remote_state): Update.
8547 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8549 * TODO: Remove value_headof/value_from_vtable_info comment.
8550 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8551 * values.c (value_headof, value_from_vtable_info): Delete.
8552 * value.h (value_from_vtable_info): Delete prototype.
8554 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8556 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8557 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8559 (gdb_assert_h): Define.
8560 (gdb_wait_h): Define.
8561 (gdb_regex_h): Define.
8563 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8565 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8566 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8568 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8570 * nbsd-tdep.c: Fix comment.
8572 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8574 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8575 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8576 (nbsd-tdep.o): New dependency list.
8577 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8579 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8580 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8581 * nbsd-tdep.c: New file.
8582 * nbsd-tdep.h: New file.
8583 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8585 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8586 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8587 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8588 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8590 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8592 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8593 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8594 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8595 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8596 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8597 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8599 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8601 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8602 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8603 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8604 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8605 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8606 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8607 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8609 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8611 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8612 fetch_elfcore_registers to...
8613 * i386nbsd-tdep.c: ...here.
8614 (i386nbsd_use_struct_convention): Rename to...
8615 (i386nbsd_aout_use_struct_convention): ...this.
8616 (i386nbsd_supply_reg): New function.
8617 (i386nbsd_fill_reg): New function.
8618 (fetch_core_registers): Use i386nbsd_supply_reg.
8619 (fetch_elfcore_registers): Likewise.
8620 (_initialize_i386nbsd_tdep): New function.
8621 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8622 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8623 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8624 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8625 (i386nbsd_aout_use_struct_convention): ...this.
8627 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8629 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8630 (store_inferior_registers): Use shnbsd_fill_reg.
8631 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8632 sh_nbsd_supply_register): Collapse into...
8633 (shnbsd_supply_reg): ...this.
8634 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8635 (shnbsd_fill_reg): ...this.
8636 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8637 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8638 (fetch_core_registers): Use shnbsd_supply_reg.
8639 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8640 (sh_nbsd_core_fns): Rename to...
8641 (shnbsd_core_fns): ...this.
8642 (sh_nbsd_elfcore_fns): Rename to...
8643 (shnbsd_elfcore_fns): ...this.
8644 (sh_nbsd_init_abi): Rename to...
8645 (shnbsd_init_abi): ...this.
8646 (_initialize_sh_nbsd_tdep): Rename to...
8647 (_initialize_shnbsd_tdep): ...this.
8648 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8649 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8650 sh_nbsd_fill_register): Remove prototypes.
8651 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8653 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8655 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8656 (i387-nat.o): Delete dependency list.
8657 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8658 (x86-64-linux-nat.o): Likewise.
8659 * i387-nat.c: Delete file, moving contents to...
8660 * i387-tdep.c: ...here.
8661 * i387-nat.h: Rename...
8662 * i387-tdep.h: ...to this.
8663 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8664 * i386-linux-nat.c: Likewise.
8665 * i386bsd-nat.c: Likewise.
8666 * i386gnu-nat.c: Likewise.
8667 * i386nbsd-nat.c: Likewise.
8668 * i386v4-nat.c: Likewise.
8669 * x86-64-linux-nat.c: Likewise.
8670 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8671 * config/i386/go32.mh (NATDEPFILES): Likewise.
8672 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8673 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8674 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8675 * config/i386/linux.mh (NATDEPFILES): Likewise.
8676 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8677 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8678 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8679 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8681 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8683 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8684 (alphanbsd-nat.o): Remove dependency list.
8685 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8686 * alphanbsd-nat.c: Delete. Contents moved to...
8687 * alphanbsd-tdep.c: ...here.
8688 (_initialize_alphanbsd_tdep): Register core functions.
8689 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8691 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8693 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8694 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8695 (alphanbsd-nat.o): Likewise.
8696 (alphabsd-tdep.o): New dependency list.
8697 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8698 (fill_gregset): Use alphabsd_fill_reg.
8699 (supply_fpregset): Use alphabsd_supply_fpreg.
8700 (fill_fpregset): Use alphabsd_fill_fpreg.
8701 (fetch_inferior_registers): Use struct reg and struct fpreg
8702 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8703 and alphabsd_supply_fpreg.
8704 (store_inferior_registers): Use struct reg and struct fpreg
8705 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8706 and alphabsd_fill_fpreg.
8707 * alphabsd-tdep.c: New file.
8708 * alphabsd-tdep.h: New file.
8709 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8710 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8711 alphabsd_supply_fpreg.
8712 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8713 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8715 2002-05-11 Eric Christopher <echristo@redhat.com>
8717 * mips-tdep.c (mips_double_register_type): Fix thinko.
8718 (mips_single_register_type): Ditto.
8719 * MAINTAINERS: Add self.
8721 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8723 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8724 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8725 right thing on architectures with different endianness and/or
8728 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8730 From Christian Limpach <chris@Pin.LU>
8731 * configure.in: Change sed expression which comments out
8732 NATDEPFILES to also comment out continuation lines.
8733 * configure: Regenerate.
8735 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8737 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8740 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8742 * sh-tdep.c: Include correct file.
8744 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8746 New support for sh64-elf (sh5) target.
8748 * configure.tgt: For sh64-elf target, default to sh-elf.
8750 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8751 (struct gdbarch_tdep): Add new fields for new registers and ABI
8754 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8755 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8756 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8757 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8758 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8759 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8760 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8761 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8762 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8763 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8764 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8765 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8766 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8767 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8768 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8769 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8770 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8771 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8772 sign_extend, sh64_nofp_frame_init_saved_regs,
8773 sh64_init_extra_frame_info, sh64_get_saved_register,
8774 sh64_extract_struct_value_address, sh64_pop_frame,
8775 sh64_push_arguments, sh64_extract_return_value,
8776 sh64_store_return_value, sh64_show_media_regs,
8777 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8778 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8779 sh_sh64_register_virtual_type,
8780 sh_sh64_register_convert_to_virtual,
8781 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8782 sh64_register_read, sh64_pseudo_register_write,
8783 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8784 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8785 sh64_do_pseudo_register, sh_compact_do_registers_info,
8786 sh64_do_registers_info, sh_gdbarch_init): New functions.
8788 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8790 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8792 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8794 * linespec.c (decode_line_1): Check for a double quote after
8795 a filename correctly.
8797 2002-05-10 Jim Blandy <jimb@redhat.com>
8799 Properly track the size of the current objfile's .debug_line section.
8800 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8801 (DWARF_LINE_SIZE): New macro.
8802 (dwarf2_build_psymtabs_hard): Record the line section's size in
8803 the partial symbol table.
8804 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8807 2002-05-10 Petr Sorfa <petrs@caldera.com>
8809 * ia64-tdep.c: Handle breakpoints on L instruction type
8810 in MLX instruction bundle by moving the breakpoint to
8811 the third slot (X instruction type) as L holds only data.
8813 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8815 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8816 (process_one_symbol): Complain about discarding local symbols
8817 due to a misplaced N_LBRAC entry.
8819 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8821 From Daniel Berlin <dan@cgsoftware.com>
8822 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8823 decrease the depth we are at, in the case of templates.
8825 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8827 * mips-tdep.c (mips_float_register_type): New function.
8828 (mips_double_register_type): New function.
8829 (mips_print_register): Use them.
8830 (do_fp_register_row): Likewise.
8832 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8834 * signals/signals.c (signals): Remove conditional compilation around
8835 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8836 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8838 2002-05-09 Michael Snyder <msnyder@redhat.com>
8840 * remote-rdp.c (remote_rdp_can_run): Remove.
8842 2002-05-09 Tom Tromey <tromey@redhat.com>
8844 * jv-valprint.c (java_val_print): Handle `char' as a special case
8847 2002-05-09 Michael Snyder <msnyder@redhat.com>
8849 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8850 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8851 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8852 str r(0123),[sp,#nn].
8853 (arm_skip_prologue): Ditto. Also make disassembly
8854 order-independent by placing it in a loop.
8856 2002-05-06 Michael Snyder <msnyder@redhat.com>
8858 * stabsread.c (read_type): Add recognition for new attribute:
8859 "@V;" means that an array type is actually a vector.
8860 This is analogous to the vector flag that's been added to dwarf2.
8862 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8864 * i386-tdep.h (i386_abi): New enum.
8865 (struct gdbarch_tdep): Replace os_ident member with abi.
8866 (i386_gdbarch_register_os_abi): New prototype.
8867 * i386-tdep.c (i386_abi_names): New array.
8868 (process_note_abi_tag_sections): Removed.
8869 (process_note_sections): New function.
8870 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8871 (struct i386_abi_handler): New struct.
8872 (i386_abi_handler_list): New variable.
8873 (i386_gdbarch_register_os_abi): New function.
8874 (i386_gdbarch_init): Adapt for the changes given above.
8876 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8878 * gregset.h: Say "GNU/Linux".
8880 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8882 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8883 (build_gdbtypes): Build builtin_type_v2_float.
8884 (_initialize_gdbtypes): Register new builtin type.
8886 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8888 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8889 (clear_gdbarch_swap): New function.
8890 (initialize_non_multiarch): Call.
8891 (gdbarch_update_p): Before calling init(), swap out and clear the
8892 existing architecture.
8893 * gdbarch.c: Regenerate.
8895 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8897 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8900 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8902 * sh-nbsd-nat.c: Rename to...
8903 * shnbsd-nat.c: ...this.
8904 * sh-nbsd-tdep.c: Rename to...
8905 * shnbsd-tdep.c: ...this.
8906 * sh-nbsd-tdep.h: Rename to...
8907 * shnbsd-tdep.h: ...this.
8908 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8909 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8911 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8913 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8914 concatenation for command help messages.
8916 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8918 * NEWS: Note new sh*-*-netbsdelf* configuration.
8919 * configure.host: Set gdb_host_cpu to sh for all sh*.
8920 (sh*-*-netbsdelf*): New host.
8921 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8922 (sh*-*-netbsdelf*): New target.
8923 * sh-nbsd-nat.c: New file.
8924 * sh-nbsd-tdep.c: New file.
8925 * sh-nbsd-tdep.h: New file.
8926 * config/sh/nbsd.mh: New file.
8927 * config/sh/nbsd.mt: New file.
8928 * config/sh/nm-nbsd.h: New file.
8929 * config/sh/tm-nbsd.h: New file.
8931 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8933 * sh-tdep.c (sh_osabi_names): Declare.
8934 (process_note_abi_tag_sections): New function.
8935 (get_elfosabi): Ditto.
8936 (sh_gdbarch_register_os_abi): Ditto.
8937 (sh_dump_tdep): Ditto.
8938 _initialize_sh_tdep): Use gdbarch_register to register
8939 sh_gdbarch_init and sh_dump_tdep.
8940 * config/sh/tm-sh.h (sh_osabi): Declare.
8941 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8943 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8945 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8946 (thumb_scan_prologue): Ditto.
8947 (arm_find_callers_reg): Ditto.
8948 (arm_frame_chain): Ditto.
8949 (arm_init_extra_frame_info): Ditto.
8950 (arm_frame_saved_pc): Ditto.
8951 (arm_pop_frame): Ditto.
8952 (arm_push_return_address): New function.
8953 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8954 call_dummy_location, call_dummy_breakpoint_offset_p,
8955 call_dummy_breakpoint_offset, call_dummy_p,
8956 call_dummy_stack_adjust_p, call_dummy_words,
8957 sizeof_call_dummy_words, call_dummy_start_offset,
8958 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8959 call_dummy_address, push_return_address and push_dummy_frame for
8960 generic dummy frames.
8962 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8964 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8965 size computation for alloca.
8966 (sh_fp_frame_init_saved_regs): Likewise.
8968 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8970 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8971 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8972 * arm-tdep.c (arm_store_return_value): Use them.
8973 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8974 * remote-rdp.c (remote_rdp_fetch_register): Use
8975 ARM_MAX_REGISTER_RAW_SIZE.
8976 (remote_rdp_store_register): Likewise.
8978 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8980 * dwarf2cfi.c: Code cleanup, removed unused variables,
8981 added default labels to switch {} statements.
8982 * x86-64-tdep.c: Ditto.
8983 * x86-64-linux-nat.c: Ditto.
8985 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8987 * solib.h: Protect against multiple inclusion.
8989 2002-05-06 Jim Blandy <jimb@redhat.com>
8991 Add first preprocessor macro-expansion files.
8992 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8993 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8994 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8995 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8996 (COMMON_OBS): Add macrotab.o, macroexp.o.
8997 (macroexp.o, macrotab.o): New rules.
8999 Separate the job of reading the line number info statement program
9000 header (...expialidocious) out into its own function.
9001 * dwarf2read.c (struct line_head, struct filenames, struct
9002 directories): Replace with...
9003 (struct line_header): New structure, containing the full
9004 contents of the statement program header, including the
9005 include directory and file name tables.
9006 (read_file_scope): If we have line number info, instead of just
9007 calling dwarf_decode_lines to do all the work, call
9008 dwarf_decode_line_header first to get a `struct line_header'
9009 containing the data in the statement program header, and then
9010 pass that to dwarf_decode_lines, which will pick up where that
9011 left off. Be sure to clean up the `struct line_header' object.
9012 (dwarf_decode_line_header, free_line_header, add_include_dir,
9013 add_file_name): New functions.
9014 (dwarf_decode_lines): Move all the code to read the statement
9015 program header into dwarf_decode_line_header. Take the line
9016 header it built as the first argument, instead of the offset to
9017 the compilation unit's line number info. Use the new `struct
9018 line_header' type instead of the old structures. No need to do
9019 cleanups here now, since we don't allocate anything.
9020 (dwarf2_statement_list_fits_in_line_number_section,
9021 dwarf2_line_header_too_long): New complaints.
9023 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9025 * gdbtypes.c (init_vector_type): New function.
9026 (build_builtin_type_vec128): Simplify the representation of SIMD
9028 (build_gdbtypes): Initialize new builtin vector types.
9029 (_initialize_gdbtypes): Register new vector types with gdbarch.
9030 (builtin_type_v4_float, builtin_type_v4_int32,
9031 builtin_type_v8_int16, builtin_type_v16_int8,
9032 builtin_type_v2_int32, builtin_type_v4_int16,
9033 builtin_type_v8_int8): New (renamed) SIMD types.
9035 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9037 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9038 (i387_fill_fxsave): Likewise.
9040 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9042 * alpha-tdep.c (alpha_extract_return_value): Don't use
9043 non-constant array size in prototype.
9045 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9047 From Brian Taylor <briant at model dot com>:
9048 * ui-out.c (ui_out_field_core_addr): Use the function
9049 longest_local_hex_string_custom'to format addresses > 32 bits
9052 * ui-out.c (ui_out_field_core_addr): Update comment.
9054 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9056 * stack.c (select_and_print_frame): Make static. Delete the
9058 (func_command): Update call.
9059 (select_frame_command): Delete code computing the frame level.
9060 * frame.h (select_and_print_frame): Delete declaration.
9062 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9064 * sparc-tdep.c (sparc_get_saved_register): Comment why
9065 get_prev_frame call is safe.
9067 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9069 * frame.h (select_frame): Delete level parameter.
9070 * stack.c (select_frame): Update. Use frame_relative_level to
9071 obtain the frame's level.
9072 (select_and_print_frame): Update call.
9073 (select_frame_command): Ditto.
9074 (up_silently_base): Ditto.
9075 (down_silently_base): Ditto.
9076 * ocd.c (ocd_start_remote): Ditto.
9077 * remote-rdp.c (remote_rdp_open): Ditto.
9078 * remote-mips.c (mips_initialize): Ditto.
9079 (common_open): Ditto.
9080 * remote-e7000.c (e7000_start_remote): Ditto.
9081 * m3-nat.c (select_thread): Ditto.
9082 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9083 (child_get_current_exception_event): Ditto.
9084 * varobj.c (varobj_create): Ditto.
9085 (varobj_update): Ditto.
9086 (c_value_of_root): Ditto.
9087 * tracepoint.c (finish_tfind_command): Ditto.
9088 * corelow.c (core_open): Ditto.
9089 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9090 * thread.c (info_threads_command): Ditto.
9091 (switch_to_thread): Ditto.
9092 * infrun.c (normal_stop): Ditto.
9093 (restore_selected_frame): Ditto.
9094 (restore_inferior_status): Ditto.
9095 * breakpoint.c (insert_breakpoints): Ditto.
9096 (watchpoint_check): Ditto.
9097 (bpstat_stop_status): Ditto.
9098 (do_enable_breakpoint): Ditto.
9099 * blockframe.c (flush_cached_frames): Ditto.
9100 (reinit_frame_cache): Ditto.
9102 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9104 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9107 2002-05-04 Jim Blandy <jimb@redhat.com>
9109 * gdbtypes.c (replace_type): Doc fix.
9111 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9113 * valprint.c (strcat_longest): Delete commented out function.
9116 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9118 * MAINTAINERS: Mark a29k as deleted.
9119 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9120 Move new configurations to the top.
9121 * configure.tgt: Remove a29k.
9122 * config/a29k/tm-vx29k.h: Delete.
9123 * config/a29k/vx29k.mt: Delete.
9124 * config/a29k/tm-a29k.h: Delete.
9125 * config/a29k/a29k-udi.mt: Delete.
9126 * config/a29k/a29k.mt: Delete.
9127 * a29k-tdep.c: Delete.
9128 * remote-udi.c: Delete.
9129 * remote-mm.c: Delete.
9130 * remote-eb.c: Delete.
9131 * remote-adapt.c: Delete.
9132 * Makefile.in: Remove obsolete code.
9133 * config/s390/s390x.mt: Ditto.
9134 * config/s390/s390.mt: Ditto.
9135 * config/sparc/sparclynx.mh: Ditto.
9136 * config/sparc/linux.mh: Ditto.
9137 * config/pa/hppaosf.mh: Ditto.
9138 * config/pa/hppabsd.mh: Ditto.
9139 * config/ns32k/nbsd.mt: Ditto.
9140 * config/mips/vr5000.mt: Ditto.
9141 * config/m68k/sun3os4.mh: Ditto.
9142 * config/m68k/nbsd.mt: Ditto.
9143 * config/m68k/m68klynx.mh: Ditto.
9144 * config/m32r/m32r.mt: Ditto.
9145 * config/i386/x86-64linux.mt: Ditto.
9146 * config/i386/nbsdelf.mt: Ditto.
9147 * config/i386/nbsd.mt: Ditto.
9148 * config/i386/i386lynx.mh: Ditto.
9150 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9152 * target.c (debug_print_register): New function. Handle oversize
9154 (debug_to_fetch_registers): Call.
9155 (debug_to_store_registers): Call.
9157 2002-05-03 Jim Blandy <jimb@redhat.com>
9159 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9160 (read_type): Doc fix.
9161 * gdbtypes.c (replace_type): Doc fix.
9163 * stabsread.c (multiply_defined_struct): New complaint.
9164 (read_struct_type): If the type we were passed isn't empty, or
9165 incomplete, don't read the new struct type into it; complain,
9166 and return the original type unchanged. Take a new `type_code'
9167 argument, which is the type code for the new type.
9168 (read_type): Rather than storing the type's type code here, pass
9169 it as an argument to read_struct_type, and let that take care of
9170 storing it. That way, we don't overwrite the original type code,
9171 so read_struct_type can use it to decide whether we're overwriting
9172 something we shouldn't.
9173 (complain_about_struct_wipeout): New function.
9175 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9177 * gdbarch.sh: Assert that gdbarch is non-NULL.
9178 * gdbarch.c: Regenerate.
9180 2002-05-03 Jason Merrill <jason@redhat.com>
9182 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9185 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9187 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9188 (x86_64_dwarf2gdb_regno_map_length),
9189 (x86_64_dwarf2_reg_to_regnum): Added.
9190 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9191 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9192 (_initialize_x86_64_tdep): Synced with the change above.
9193 (x86_64_skip_prologue): Reformulated message.
9195 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9197 * f-exp.y: Also use new prev_lexptr variable
9198 to improve error reporting. Based on Michael Snyder
9199 2002-04-24 dated patch to c-exp.y.
9200 * jv-exp.y: Likewise.
9201 * m2-exp.y: Likewise.
9203 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9205 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9206 we are dealing with vectors.
9208 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9210 * config/m68k/tm-nbsd.h: Obvious fix,
9211 correct machine name.
9213 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9215 * p-typeprint.c (pascal_type_print_base): Add support
9216 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9218 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9220 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9221 for fondamental pascal 'char' type.
9223 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9225 * p-lang.h (is_pascal_string_type): Declaration changed,
9226 new sixth argument of type char ** added.
9227 * p-lang.c (is_pascal_string_type): Implementation
9228 changed. Args length_pos, length_size, string_pos, char_size
9229 can now be NULL. New argument arrayname set to the field
9230 name of the char array. Return value set to char array
9231 field index plus one.
9232 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9233 is_pascal_string_type function.
9235 2002-05-02 Andrew Cagney <cagney@redhat.com>
9237 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9238 <cagney@redhat.com> change.
9239 * gdbarch.c: Regenerate.
9241 2002-05-02 Andrew Cagney <cagney@redhat.com>
9243 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9244 before probing for a new one. Detect errorenous gdbarch_init
9246 * gdbarch.c: Regenerate.
9248 2002-05-01 Andrew Cagney <cagney@redhat.com>
9250 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9251 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9252 * config/v850/tm-v850.h: Ditto. Update copyright.
9254 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9256 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9259 2002-04-30 Michael Snyder <msnyder@redhat.com>
9261 * arm-tdep.c: Whitespace clean-ups.
9262 (arm_skip_prologue): Fix thinko; two lines
9263 should have been removed as part of 4/24 change.
9265 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9267 * rs6000-tdep.c: Added comment describing how fpscr register
9268 numbers were chosen.
9270 2002-04-30 Michael Snyder <msnyder@redhat.com>
9272 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9274 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9276 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9277 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9278 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9280 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9282 From Louis Hamilton <hamilton@redhat.com>:
9283 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9284 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9285 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9286 not bfd-private xcoff data, to determine wordsize.
9287 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9289 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9291 GDB 5.2 released from 5.2 branch.
9293 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9295 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9296 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9297 (x86_64_register_info_table): Added comments with register numbers.
9299 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9301 * rs6000-tdep.c (rs6000_extract_return_value,
9302 rs6000_store_return_value): Handle returning vectors.
9303 (rs6000_gdbarch_init): Use
9304 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9305 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9307 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9309 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9310 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9312 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9314 * hpread.c (hpread_psymtab_to_symtab_1,
9315 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9316 with fprintf_unfiltered (gdb_stderr,...).
9318 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9320 * remote-array.c (printf_monitor, write_monitor,
9321 array_insert_breakpoint, array_remove_breakpoint ):
9322 Replace fprintf (stderr,...
9323 with fprintf_unfiltered (gdb_stderr,....
9324 * remote-es.c: Likewise.
9325 * remote-os9k.c: Likewise.
9326 * remote-st.c: Likewise.
9328 2002-04-28 Andreas Schwab <schwab@suse.de>
9330 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9331 linux-proc.o and gcore.o.
9333 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9335 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9336 code without frame pointers.
9338 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9340 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9343 2002-04-26 Ben Elliston <bje@redhat.com>
9345 * target.c (do_xfer_memory): Correct reference to the new option
9346 "trust-readonly-sections".
9348 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9350 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9351 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9352 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9354 (read_array_type): Record the fact that this array type is really a
9355 vector (i.e. are passed in by value).
9357 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9359 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9360 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9361 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9362 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9363 * alpha-linux-tdep.c: Include frame.h.
9364 (alpha_linux_sigcontext_addr): New function.
9365 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9366 alpha_linux_sigcontext_addr.
9367 * alpha-osf1-tdep.c: Include gdbcore.h.
9368 (alpha_osf1_sigcontext_addr): New function.
9369 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9370 alpha_osf1_sigcontext_addr.
9371 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9372 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9374 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9376 * stack.c (selected_frame_level):
9377 (select_frame): Do not set selected_frame_level.
9378 * frame.h (selected_frame_level): Delete declaration.
9380 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9382 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9383 convert_from_func_ptr-addr when AIX / PowerOpen.
9385 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9387 * valops.c (hand_function_call): Call
9388 generic_save_call_dummy_addr.
9389 * frame.h (generic_save_call_dummy_addr): Declare.
9390 * blockframe.c (struct dummy_frame): Add fields call_lo and
9392 (generic_find_dummy_frame): Check for PC in range call_lo to
9393 call_hi instead of entry_point_address.
9394 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9395 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9396 (generic_save_call_dummy_addr): New function.
9398 2002-04-24 David S. Miller <davem@redhat.com>
9400 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9401 sparc_skip_prologue.
9402 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9403 information to find prologue when possible.
9404 (sparc_prologue_frameless_p): Call examine_prologue directly.
9405 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9406 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9408 (SKIP_PROLOGUE): Likewise.
9410 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9412 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9413 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9414 indicate that the condition it was testing is always true.
9415 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9416 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9417 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9419 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9421 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9422 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9423 tdep->jb_pc and tdep->jb_elt_size.
9424 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9425 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9426 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9427 * alpha-nat.c (get_longjmp_target): Remove.
9428 (JB_ELEMENT_SIZE): Ditto.
9430 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9431 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9432 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9433 to alpha_get_longjmp_target.
9434 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9435 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9436 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9438 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9440 * README: Update to GDB 5.2.
9442 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9444 * gdbarch.sh (LC_ALL): Set to `c'.
9446 2002-04-25 Theodore A. Roth <troth@verinet.com>
9448 * avr-tdep.c: Ran through gdb_indent.sh.
9450 2002-04-25 Theodore A. Roth <troth@verinet.com>
9452 * MAINTAINERS: Add myself as AVR maintainer.
9453 * NEWS: Note new target avr.
9455 2002-04-25 Theodore A. Roth <troth@verinet.com>
9457 * Makefile.in: Add support for AVR target.
9458 * configure.tgt: Add support for AVR target.
9459 * avr-tdep.c: New file
9460 * config/avr/avr.mt: New file.
9462 2002-04-25 Theodore A. Roth <troth@verinet.com>
9464 * MAINTAINERS: Add myself to write-after-approval.
9466 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9468 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9469 with fprintf_unfiltered (gdb_stderr,....
9471 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9474 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9476 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9478 * p-exp.y: Also use new prev_lexptr variable
9479 to improve error reporting. Based on Michael Snyder
9480 2002-04-24 dated patch to c-exp.y.
9482 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9484 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9485 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9486 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9488 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9490 (FUNCTION_START_OFFSET): Remove.
9491 (BREAKPOINT): Ditto.
9493 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9495 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9498 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9500 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9501 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9502 alpha_linux_pc_in_sigtramp.
9503 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9504 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9505 alpha_osf1_pc_in_sigtramp.
9506 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9507 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9508 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9509 alphafbsd_pc_in_sigtramp.
9510 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9511 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9512 alphanbsd_pc_in_sigtramp.
9513 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9514 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9516 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9518 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9520 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9522 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9524 (alphanbsd-nat.o): New dependency list.
9525 (alphanbsd-tdep.o): Ditto.
9526 * NEWS: Note new native NetBSD/alpha configuration.
9527 * alphanbsd-nat.c: New file.
9528 * alphanbsd-tdep.c: Ditto.
9529 * configure.host (alpha*-*-netbsd*): New host.
9530 * configure.tgt (alpha*-*-netbsd*): New target.
9531 * config/alpha/nbsd.mh: New file.
9532 * config/alpha/nbsd.mt: Ditto.
9533 * config/alpha/nm-nbsd.h: Ditto.
9534 * config/alpha/tm-nbsd.h: Ditto.
9536 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9538 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9539 (alpha-osf1-tdep.o): New dependency list.
9540 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9541 and skip_sigtramp_frame members.
9542 * alpha-linux-tdep.c: Include gdbcore.h.
9543 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9544 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9545 * alpha-osf1-tdep.c: New file.
9546 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9548 (alpha_frame_past_sigtramp_frame): New function.
9549 (alpha_dynamic_sigtramp_offset): Ditto.
9550 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9551 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9552 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9553 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9554 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9555 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9556 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9557 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9558 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9559 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9560 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9561 to find_solib_trampoline_target.
9562 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9563 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9564 (SKIP_TRAMPOLINE_CODE): Remove.
9565 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9566 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9567 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9568 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9569 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9570 (PROC_SIGTRAMP_MAGIC): Ditto.
9571 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9572 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9573 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9574 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9575 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9577 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9579 * NEWS: Note that Alpha targets are now multi-arch.
9581 2002-04-24 Michael Snyder <msnyder@redhat.com>
9583 * parser-defs.h (prev_lexptr): New external variable.
9584 * parse.c (parse_exp_1): Set prev_lexptr to null before
9585 calling the language-specific parser.
9586 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9587 (yyerror): Use prev_lexptr in error reporting.
9589 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9591 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9592 * gregset.h: If FILL_FPXREGSET is defined, provide
9593 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9594 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9595 is defined, call fill_fpxregset.
9597 2002-04-24 Roland McGrath <roland@frob.com>
9599 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9600 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9601 (supply_gregset, supply_fpregset): New functions.
9603 * gnu-nat.c (gnu_find_memory_regions): New function.
9604 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9605 (gnu_xfer_memory): Add a cast.
9607 2002-04-24 Michael Snyder <msnyder@redhat.com>
9609 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9610 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9611 of argument regs ("str r(0123), [r11, #-nn"]).
9612 (arm_skip_prologue): Better handling for frameless functions.
9613 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9614 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9616 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9618 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9619 NUM_PSEUDO_REGS can be used.
9621 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9623 * arch-utils.h: Update copyright.
9625 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9626 * gdbarch.h, gdbarch.c: Re-generate.
9628 * inferior.h (IN_SIGTRAMP): Delete definition.
9629 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9630 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9632 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9633 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9634 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9635 (find_proc_framesize): Ditto.
9636 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9637 (alpha_init_extra_frame_info): Ditto.
9638 * infrun.c (handle_inferior_event): Ditto.
9639 (handle_inferior_event): Ditto.
9640 (check_sigtramp2): Ditto.
9641 * blockframe.c (create_new_frame): Ditto.
9642 (get_prev_frame): Ditto.
9643 * ppc-linux-tdep.c: Update comments.
9644 * i386-linux-tdep.c: Update comments.
9645 * breakpoint.c (bpstat_what): Update comment.
9647 2002-04-24 David S. Miller <davem@redhat.com>
9649 * i960-tdep.c (register_in_window_p): New function.
9650 (i960_find_saved_register): Use it instead of
9651 REGISTER_IN_WINDOW_P.
9652 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9654 * symtab.h (find_stab_function_addr): Kill extern.
9655 * minsyms.c (find_stab_function_addr): Remove from here...
9656 * dbxread.c: ... to here, and mark it static.
9658 2002-04-20 David S. Miller <davem@redhat.com>
9660 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9661 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9663 2002-04-21 David S. Miller <davem@redhat.com>
9665 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9666 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9667 (vx_write_register): Likewise.
9669 2002-04-23 J. Brobecker <brobecker@gnat.com>
9671 * source.c (is_regular_file): New function.
9672 (openp): Check wether file to open is a regular file
9673 to avoid opening directories.
9675 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9677 * findvar.c (extract_signed_integer): Cast printf argument
9678 to suppress format warning.
9679 (extract_unsigned_integer): Likewise.
9680 * infcmd.c (registers_info): Likewise.
9681 * top.c (get_prompt_1): Likewise.
9682 * valops.c (value_assign): Likewise.
9683 * valprint.c (print_decimal): Likewise.
9685 2002-04-22 H.J. Lu (hjl@gnu.org)
9687 * c-exp.y (typebase): Support
9689 [long|long long|short] [signed|unsigned] [int|]
9693 signed [long|long long|short] int
9695 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9697 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9699 * vax-tdep.h: New file.
9700 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9701 Make several routines static.
9702 (vax_get_saved_register): New function.
9703 (vax_gdbarch_init): New function.
9704 (_initialize_vax_tdep): Register vax_gdbarch_init.
9705 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9706 Remove macros now under the control of gdbarch.
9708 2002-04-22 Michael Snyder <msnyder@redhat.com>
9710 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9711 Some whitespace and coding standards tweaks.
9713 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9715 * vax-tdep.c: Include regcache.h.
9716 (vax_call_dummy_words): New.
9717 (sizeof_vax_call_dummy_words): New.
9718 (vax_fix_call_dummy): New function.
9719 (vax_saved_pc_after_call): Ditto.
9720 * config/vax/tm-vax.h: Don't include regcache.h.
9721 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9722 (CALL_DUMMY): Remove.
9723 (CALL_DUMMY_WORDS): Define.
9724 (SIZEOF_CALL_DUMMY_WORDS): Define.
9725 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9727 2002-04-18 Michael Snyder <msnyder@redhat.com>
9729 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9731 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9733 * vax-tdep.c (vax_frame_chain): New function.
9734 (vax_push_dummy_frame): Ditto.
9735 (vax_pop_frame): Ditto.
9736 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9737 (FRAMELESS_FUNCTION_INVOCATION): Use
9738 generic_frameless_function_invocation_not.
9739 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9740 (POP_FRAME): Use vax_pop_frame.
9742 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9744 * vax-tdep.c (vax_store_struct_return): New function.
9745 (vax_extract_return_value): Ditto.
9746 (vax_store_return_value): Ditto.
9747 (vax_extract_struct_value_address): Ditto.
9748 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9749 vax_store_struct_return.
9750 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9751 (STORE_RETURN_VALUE): Use vax_store_return_value.
9752 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9754 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9756 * vax-tdep.c (vax_frame_saved_pc): New function.
9757 (vax_frame_args_address_correct): Ditto.
9758 (vax_frame_args_address): Ditto.
9759 (vax_frame_locals_address): Ditto.
9760 (vax_frame_num_args): Move code to be in proximity to
9761 other frame-related functions.
9762 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9763 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9764 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9765 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9766 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9768 2002-04-22 H.J. Lu (hjl@gnu.org)
9770 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9773 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9775 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9776 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9777 (FRAME_INIT_SAVED_REGS): New macro.
9779 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9781 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9783 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9785 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9787 (fetch_osf_core_registers): Likewise.
9788 (supply_gregset): Likewise.
9790 2002-04-22 J. Brobecker <brobecker@gnat.com>
9792 * symfile.h (get_section_index): Define.
9793 * symfile.c (get_section_index): New function.
9794 * mdebugread.c (SC_IS_SBSS): New macro.
9795 (SC_IS_BSS): Return true for the scBss storage class only, as
9796 the scSBss storage class refers to the .sbss section.
9797 (parse_partial_symbols): Discard the symbols which associated
9798 section does not exist.
9799 Make sure to use the .sbss section index for symbols which
9800 storage class is scBss, rather than using the .bss section index.
9802 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9804 * vax-tdep.c: Update copyright years.
9805 (vax_register_name): New function.
9806 (vax_register_byte): Ditto.
9807 (vax_register_raw_size): Ditto.
9808 (vax_register_virtual_size): Ditto.
9809 (vax_register_virtual_type): Ditto.
9810 * config/vax/tm-vax.h: Update copyright years.
9811 (REGISTER_NAMES): Remove.
9812 (REGISTER_NAME): Define.
9813 (REGISTER_BYTE): Use vax_register_byte.
9814 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9815 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9816 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9818 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9820 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9822 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9824 2002-04-21 David S. Miller <davem@redhat.com>
9826 * arch-utils.c (generic_prologue_frameless_p): Kill
9827 SKIP_PROLOGUE_FRAMELESS_P code.
9828 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9830 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9831 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9832 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9834 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9835 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9836 (sparc_gdbarch_init): Pass it to
9837 set_gdbarch_prologue_frameless_p.
9839 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9841 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9842 (alphabsd-nat.o): New dependency list.
9844 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9846 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9848 (alpha-linux-tdep.o): New dependency list.
9849 (alphafbsd-tdep.o): Likewise.
9851 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9853 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9855 * alpha-tdep.c: ...from here.
9856 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9858 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9860 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9861 prototype from here...
9862 * alpha-tdep.h: ...to here.
9864 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9866 * frame.h (selected_frame_level): Document as deprecated.
9867 (frame_relative_level): Declare.
9868 * stack.c (frame_relative_level): New function.
9869 (selected_frame_level): Document as deprecated.
9870 (select_frame): Do not set the selected_frame_level.
9872 * stack.c (frame_info, record_selected_frame): Update.
9873 (frame_command, current_frame_command): Update.
9874 (up_silently_base, up_command, down_silently_base): Update.
9875 (down_command): Update.
9876 * inflow.c (kill_command): Update.
9877 * tracepoint.c (finish_tfind_command): Update.
9878 * corelow.c (core_open): Update.
9879 * thread.c (info_threads_command): Update.
9880 (do_captured_thread_select): Update.
9881 * infcmd.c (finish_command): Update.
9882 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9884 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9886 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9888 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9890 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9893 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9895 * alphafbsd-tdep.c: Update copyright years. Include
9897 (alphafbsd_use_struct_convention): Make static.
9898 (alphafbsd_init_abi): New function.
9899 (_initialize_alphafbsd_tdep): New function.
9900 * config/alpha/tm-fbsd.h: Update copyright years.
9901 (USE_STRUCT_CONVENTION): Remove.
9903 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9905 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9906 an Alpha ABI variant.
9907 (alpha_abi_handler_list): Declare.
9908 (alpha_gdbarch_register_os_abi): New function.
9909 (alpha_gdbarch_init): Give registered ABI variant handlers a
9910 chance to tweak the gdbarch once we have set up defaults.
9911 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9913 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9915 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9916 to standard_coerce_float_to_double.
9917 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9919 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9921 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9922 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9923 from gdbarch_tdep rather than a constant.
9924 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9925 the default text address for all Alpha Unix ABIs.
9926 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9927 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9929 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9931 * alpha-tdep.h: New file. Includes several Alpha target constants
9933 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9934 let gdbarch deal with.
9935 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9936 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9938 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9939 Alpha target register names.
9940 * alphabsd-nat.c: Likewise.
9941 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9942 Alpha target register names. Make serveral routines static.
9943 (alpha_get_saved_register): New function.
9944 (alpha_abi_names): New.
9945 (process_note_abi_tag_sections): New function.
9946 (get_elfosabi): New function.
9947 (alpha_gdbarch_init): New function.
9948 (alpha_dump_tdep): New function.
9949 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9951 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9953 * frame.c (find_saved_register): Delete #ifdef
9954 HAVE_REGISTER_WINDOWS code.
9955 * config/sparc/tm-sparc.h: Update comments.
9956 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9958 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9960 * i960-tdep.c (i960_find_saved_register): New function.
9961 (i960_get_saved_register): New function.
9962 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9963 (i960_get_saved_register): Declare.
9964 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9966 2002-04-20 David S. Miller <davem@redhat.com>
9968 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9970 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9972 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9973 instead of NUM_PSEUDO_REGS.
9975 2002-04-20 David S. Miller <davem@redhat.com>
9977 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9978 GDB_MULTI_ARCH_PARTIAL
9979 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9980 define, let tm-sp64.h do it.
9982 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9984 * frame.c (find_saved_register): Avoid a NULL pointer
9985 dereference and actually walk the frame list.
9987 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9989 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9990 sorted in most most-recent-used order. Document.
9991 * gdbarch.h, gdbarch.c: Regenerate.
9993 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9995 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9997 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9998 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9999 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10002 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10005 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10006 (build_builtin_type_vec128): Ditto.
10007 (append_composite_type_field): Fix calculation of type length in
10010 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10012 * config/djgpp/README: Update.
10014 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10017 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10019 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10020 (alpha_setup_arbitrary_frame): ...to this.
10021 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10022 for alpha_setup_arbitrary_frame.
10024 2002-04-18 Andrew Cagney <cagney@redhat.com>
10026 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10027 * gdbarch.h, gdbarch.c: Regenerate.
10029 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10030 * target.h (memory_breakpoint_from_pc): Update declaration.
10031 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10033 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10034 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10035 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10036 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10037 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10038 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10039 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10040 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10041 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10042 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10043 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10044 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10046 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10048 * monitor.c (monitor_insert_breakpoint): Ditto.
10049 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10051 * config/mcore/tm-mcore.h: Update copyright.
10052 * mem-break.c: Ditto.
10053 * xstormy16-tdep.c: Ditto.
10055 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10057 * p-exp.y: Add precedence rule for '^' token.
10058 This removes the shift/reduce conflicts.
10059 Remove the comment concerning these shift/reduce conflicts.
10061 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10063 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10064 (registers_powerpc_nofp): New register set for processors
10065 without floating point unit.
10067 2002-04-18 David S. Miller <davem@redhat.com>
10069 * MAINTAINERS: Add myself to write-after-approval.
10071 2002-04-17 Michael Snyder <msnyder@redhat.com>
10073 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10075 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10077 * rs6000-tdep.c (frame_initial_stack_address): Use
10078 frame_register_read to read the alloca_reg.
10080 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10082 * frame.c (find_saved_register): Find saved registers in the next
10086 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10088 * gdbarch.sh (LANG): Set to ``c''.
10090 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10092 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10094 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10096 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10099 * hpread.c (hpread_get_lntt): Add declaration.
10100 Also fix PR gdb/391.
10102 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10104 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10105 * aclocal.m4, configure: Re-generate.
10108 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10110 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10111 instead of tm_print_insn.
10113 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10115 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10117 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10119 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10120 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10121 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10123 2002-04-12 Don Howard <dhoward@redhat.com>
10125 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10126 max_user_call_depth.
10127 (init_cmd_lists): Initialize the new value;
10128 * cli/cli-script.c (execute_user_command): Limit the call depth of
10129 user defined commands. This avoids a core-dump when user commands
10130 are infinitly recursive.
10132 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10134 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10135 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10136 from tdep struct instead of DEFAULT_LR_SAVE.
10137 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10138 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10139 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10141 2002-04-12 Michael Snyder <msnyder@redhat.com>
10143 * Remote.c: Spelling fix.
10144 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10145 If no symbol found for "sbrk", try "_sbrk".
10146 (make_output_phdrs): Use bfd_section_name.
10147 (gcore_copy_callback): Use bfd_section_name.
10148 * eval.c: Indentation fix-ups.
10149 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10150 in case it gets applied to an address that is already
10151 in the instruction space.
10152 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10153 * symfile.c: Fix indentation, long lines.
10154 * source.c: White space fix-up.
10156 2002-04-12 Andrew Cagney <cagney@redhat.com>
10158 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10159 * frame.c (frame_register_read): New function. Return non-zero on
10161 (read_relative_register_raw_bytes_for_frame): Delete.
10162 (read_relative_register_raw_bytes): Delete.
10163 * frame.h (frame_register_read): Declare.
10164 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10165 * sh-tdep.c: Ditto.
10166 * infcmd.c (do_registers_info): Ditto.
10167 * hppa-tdep.c: Ditto.
10168 * rs6000-tdep.c: Ditto.
10169 * h8500-tdep.c: Ditto.
10170 * mips-tdep.c: Ditto.
10171 * h8300-tdep.c: Ditto.
10172 * z8k-tdep.c: Ditto.
10174 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10176 From Jimi X <jimix@watson.ibm.com>:
10177 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10180 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10182 From Jimi X <jimix@watson.ibm.com>:
10183 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10186 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10188 From Jimi X <jimix@watson.ibm.com>:
10189 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10190 register sets for these processor variants.
10192 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10194 * regformats/reg-ppc.dat: Support FPSCR.
10196 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10198 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10199 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10200 Add fpscr as an invalid/unfetchable register.
10201 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10202 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10203 (fill_fpregset): Add support for register fpscr.
10204 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10205 (fill_gregset): Account for the fact that register ``mq'' might
10207 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10208 (registers_power): Add fpscr to register set at slot 71.
10209 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10210 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10212 2002-04-11 Michael Snyder <msnyder@redhat.com>
10214 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10215 * configure: Regenerate.
10216 * config.in: Regenerate.
10217 * acconfig.h: Add define for _SYSCALL32.
10218 * core-sol2.c: Remove #define _SYSCALL32.
10219 * solib-legacy.c: Remove #define _SYSCALL32.
10221 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10223 * stack.c (select_frame): Cleanup internal error message, do not
10226 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10228 * stack.c (select_frame): Check that selected_frame and the
10229 specified level are as expected.
10230 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10232 * frame.h (struct frame_info): Add field `level'. Update
10234 Work-in-progress PR gdb/464.
10236 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10238 * maint.c (maint_print_section_info): Rename print_section_info.
10239 (print_bfd_section_info, print_objfile_section_info): Update.
10240 * inferior.h (struct gdbarch): Add opaque declaration.
10241 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10242 * gdbarch.h: Regenerate.
10244 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10246 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10247 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10248 (kernel_u_size): Added.
10249 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10250 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10252 2002-04-04 Jim Ingham <jingham@apple.com>
10254 * valarith.c (find_size_for_pointer_math): New function, either returns
10255 the size for a pointer's target, returns 1 for void *, or errors for
10257 (value_add, value_sub): use find_size_for_pointer_math.
10259 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10261 * linux-low.c (linux_look_up_symbols): New hook.
10262 (linux_target_ops): Add linux_look_up_symbols.
10263 * remote-utils.c (decode_address): New function.
10264 (look_up_one_symbol): New function.
10265 * server.c (handle_query): Call target look_up_symbols hook.
10266 * server.h (look_up_one_symbol): Add prototype.
10267 * target.h (struct target_ops): Add look_up_symbols hook.
10269 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10271 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10272 override FP_REGNUM with frame->fp. Update copyright.
10273 * parse.c (num_std_regs, std_regs): Delete.
10274 (target_map_name_to_register): Do not search std_regs. Update
10275 function description.
10276 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10277 declarations. Update copyright.
10280 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10282 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10283 after the last symbol in a block.
10285 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10287 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10288 is non zero as a found symbol.
10290 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10292 * findvar.c: Include "builtin-regs.h".
10293 (value_of_register): Call value_of_builtin_reg when applicable.
10294 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10295 (target_map_name_to_register): Call
10296 builtin_reg_map_name_to_regnum.
10297 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10298 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10299 (builtin_regs_h): Define.
10300 (builtin-regs.o): New target.
10301 (findvar.o): Add $(builtin_regs_h).
10302 * builtin-regs.c, builtin-regs.h: New files.
10303 * std-regs.c: New file.
10304 Partial fix for PR gdb/251.
10306 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10308 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10309 it's no longer required.
10311 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10313 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10315 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10317 From Jimi X <jimix@watson.ibm.com>:
10318 * rs6000-tdep.c (rs6000_software_single_step): Use
10319 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10320 and size. Use target_insert_breakpoint() and
10321 target_remove_breakpoint() to insert and remove breakpoints
10322 instead of explicit memory reads and writes.
10324 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10326 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10327 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10328 ELF_OBJECT_FORMAT ifdef.
10330 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10332 From Jimi X <jimix@watson.ibm.com>:
10333 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10335 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10337 From Jimi X <jimix@watson.ibm.com>:
10338 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10339 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10341 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10343 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10344 s/asprintf/xasprintf/.
10345 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10347 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10349 I believe Jeff Law denies responsability for this one:
10350 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10351 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10352 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10353 Work-around for PR gdb/366.
10355 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10357 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10358 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10359 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10361 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10363 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10364 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10367 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10369 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10372 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10374 * README (Reporting Bugs in GDB): Document the bug web page as the
10375 prefered way of submitting bugs.
10378 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10380 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10381 -1. Update comment.
10382 * gdbarch.h, gdbarch.c: Re-generate.
10384 2002-04-07 Andreas Schwab <schwab@suse.de>
10386 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10387 buffer to regcache_collect.
10389 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10391 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10392 * gdbarch.c, gdbarch.h: Re-generate.
10394 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10396 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10397 declaration. Fix -Werror.
10399 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10401 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10402 * gdbarch.c: Regenerate.
10404 2002-04-05 Michael Snyder <msnyder@redhat.com>
10406 * breakpoint.c (clear_command): Rewrite middle section to
10407 combine two loops with identical control conditions.
10408 Add a cleanup to eliminate a memory leak.
10409 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10411 2002-04-05 H.J. Lu (hjl@gnu.org)
10413 * solib-svr4.c (bkpt_names): Add "__start".
10415 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10417 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10418 as test for 64 bit target.
10420 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10422 * h8500-tdep.c (h8500_write_fp): Delete function.
10423 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10424 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10425 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10426 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10427 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10428 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10430 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10431 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10432 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10433 (d10v_write_fp): Delete function.
10434 * inferior.h (write_fp, generic_target_write_fp): Delete
10436 * regcache.c (generic_target_write_fp): Delete function.
10437 (write_fp): Delete function.
10438 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10439 * gdbarch.h, gdbarch.c: Regenerate.
10440 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10441 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10442 (sparc64_write_fp): Delete declaration.
10443 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10444 (h8500_write_fp): Delete declaration.
10446 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10448 * sparc-tdep.c (sparc64_write_fp): Delete.
10449 (sparc_push_dummy_frame): Replace write_fp call with code to store
10451 (sparc_gdbarch_init): Do not initialize write_fp.
10453 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10455 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10458 2002-03-29 Jim Blandy <jimb@redhat.com>
10460 * stack.c (get_selected_block): Add new argument `addr_in_block',
10461 used to return the exact code address we used to select the block,
10462 not just the block.
10463 * blockframe.c (get_frame_block, get_current_block): Same.
10464 * frame.h (get_frame_block, get_current_block,
10465 get_selected_block): Update declarations.
10466 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10467 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10469 2002-04-05 Michael Snyder <msnyder@redhat.com>
10471 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10474 2002-04-05 J. Brobecker <brobecker@gnat.com>
10476 * utils.c (xfullpath): New function.
10477 * defs.h (xfullpath): Add declaration.
10478 * source.c (openp): Use xfullpath in place of gdb_realpath to
10479 avoid resolving the basename part of filenames when the
10480 associated file is a symbolic link. This fixes a potential
10481 inconsistency between the filenames known to GDB and the
10482 filenames it prints in the annotations.
10483 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10484 to be able to match a filename with either the real filename, or
10485 the name of any symbolic link to this file.
10486 (lookup_partial_symtab): Ditto.
10488 2002-04-04 Michael Snyder <msnyder@redhat.com>
10490 * breakpoint.c: Add support for hardware breakpoints in overlays.
10491 (overlay_events_enabled): New state variable.
10492 (insert_breakpoints): Use overlay_events_enabled to decide
10493 whether to attempt to set a breakpoint at the overlay load addr.
10494 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10495 (remove_breakpoint): Use overlay_events_enabled to decide
10496 whether breakpoints need to be removed from overlay load addr.
10497 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10498 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10499 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10500 disable_overlay_breakpoints): Update overlay_events_enabled.
10502 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10504 * dwarf2read.c (struct function_range): New.
10505 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10506 (check_cu_functions): New.
10507 (read_file_scope): Initialize global function lists.
10508 Call dwarf_decode_line after processing children.
10509 (read_func_scope): Add to global function list.
10510 (dwarf_decode_lines): Call check_cu_functions everywhere
10511 record_line is called. Call record_line with a linenumber
10512 of 0 to mark sequence ends.
10514 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10516 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10517 change sync with glibc.
10519 2002-04-03 Jim Blandy <jimb@redhat.com>
10521 * configure.in: Call AC_C_INLINE.
10522 * configure: Regenerated.
10524 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10526 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10527 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10529 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10531 * NEWS: Mention gcore support on FreeBSD/i386.
10533 * fbsd-proc.c: New file.
10534 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10535 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10537 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10540 2002-03-29 Jim Blandy <jimb@redhat.com>
10542 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10543 unescaped newlines in string literals, but newer ones don't. So
10546 2002-03-26 Michael Snyder <msnyder@redhat.com>
10547 Andrew Cagney <cagney@redhat.com>
10549 * cli/cli-dump.c: New file. Dump memory to file,
10550 restore file to memory.
10551 * cli/cli-dump.h: New file.
10552 * Makefile.in: Add rules, dependencies for cli-dump.o.
10553 * NEWS: Mention new commands.
10555 2002-03-28 Michael Snyder <msnyder@redhat.com>
10557 * symfile.c (symbol_file_add): Move test for null symbols to later.
10559 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10561 From veksler at il.ibm.com:
10562 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10563 the xstrduped original path.
10566 2002-03-27 Michael Snyder <msnyder@redhat.com>
10568 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10569 * infcmd.c (_initialize_infcmd): Ditto.
10570 * language.c (_initialize_language): Ditto.
10571 * symfile.c (_initialize_symfile): Ditto.
10572 * top.c (_init_main): Ditto.
10573 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10575 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10577 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10578 vector registers handling.
10579 (skip_prologue): Handle new AltiVec instructions. Fill in new
10580 fields of frame data.
10581 (frame_get_saved_regs): Fill in information for AltiVec registers.
10583 2002-03-27 Jim Blandy <jimb@redhat.com>
10585 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10586 a function; leave this macro here to invoke that function.
10587 (symbol_init_mangled_name): Declaration for that function.
10588 * symtab.c (symbol_init_mangled_name): New function.
10590 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10592 * valarith.c: Replace strerror with safe_strerror.
10593 * tracepoint.c: Ditto.
10594 * lin-lwp.c: Ditto.
10595 * go32-nat.c: Ditto.
10597 * gnu-nat.c: Ditto.
10599 2002-03-27 Andreas Schwab <schwab@suse.de>
10601 * event-top.c (command_line_handler): Remove useless if.
10603 2002-03-27 Andreas Jaeger <aj@suse.de>
10605 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10608 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10610 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10611 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10612 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10613 (x86_64_linux_dr_get_status, supply_gregset),
10614 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10615 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10616 (x86_64_register_info_table): Add.
10617 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10618 (x86_64_register_raw_size, x86_64_register_virtual_type),
10619 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10620 general x86_64_register_info_table.
10621 (i386_gdbarch_init): gdbarch_register_bytes is now set
10622 dynamicaly during initialization.
10623 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10624 * gdbserver/linux-x86-64-low.c: Ditto.
10626 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10628 * gdbserver/server.c (main): Call target_signal_to_host_p
10629 and target_signal_to_host on signals received from the remote.
10630 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10631 target_signal_from_host on signals sent to the remote.
10632 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10633 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10635 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10637 * signals/signals.c: Include "server.h" in gdbserver build.
10638 (target_signal_from_name): Don't use STREQ.
10639 (_initialize_signals): Likewise. Don't include function in
10642 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10644 * signals.c: Moved to...
10645 * signals/signals.c: Here.
10646 * Makefile (signals.o): Update.
10648 2002-03-26 Jeff Law (law@redhat.com)
10650 * somread.c (som_symtab_read): Remove some commented out code and
10651 updated related comments. Do not set the minimal symbol table to
10652 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10653 in a dynamic executable.
10654 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10655 where we are unable to find the minimal symbol for the given
10658 2002-03-25 Jeff Law (law@redhat.com)
10660 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10662 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10664 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10666 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10668 * command.h: Update copyright.
10669 (struct cmd_list_element): Replace definition with opaque
10671 (enum cmd_types): Document that it will eventually be moved to
10673 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10674 (MALLOCED_REPLACEMENT): Delete macro.
10675 * Makefile.in (cli_decode_h): Add $(command_h).
10676 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10677 * top.c: Include "cli/cli-decode.h".
10678 * completer.c: Include "cli/cli-decode.h".
10679 * maint.c: Include "cli/cli-decode.h".
10680 * cli/cli-decode.h: Include "command.h".
10681 (enum command_class): Delete.
10682 (enum cmd_types): Comment out.
10683 (enum cmd_auto_boolean): Delete.
10684 (enum var_types): Delete.
10686 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10688 * cli/cli-decode.c: Include "gdb_assert.h".
10689 (add_set_or_show_cmd): New static function.
10690 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10691 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10692 all fields, such as func, from the set command.
10694 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10696 * MAINTAINERS (sh-elf): Change warning flag to -w.
10698 2002-03-23 Andrew Cagney <cagney@redhat.com>
10700 * defs.h (error): Add printf format attribute.
10701 * thread-db.c (thread_from_lwp): Fix error format string.
10702 * stack.c (parse_frame_specification): Ditto.
10703 * cli/cli-decode.c (undef_cmd_error): Ditto.
10704 * scm-lang.c (scm_lookup_name): Ditto.
10705 * tracepoint.c (trace_error): Ditto.
10706 * remote-utils.c (usage): Ditto.
10707 * remote.c (compare_sections_command): Ditto.
10710 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10712 * gdbtypes.c (append_composite_type_field): New function.
10713 (init_composite_type): New function.
10714 * gdbtypes.h (append_composite_type_field): Declare.
10715 (init_composite_type): Ditto.
10717 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10719 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10721 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10722 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10723 structure returning convention for SYSV ABI case, but not
10724 for GNU/Linux, FreeBSD, or NetBSD.
10726 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10728 * symtab.h (lookup_block_symbol): Add mangled_name argument
10731 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10732 with new mangled_name argument.
10733 * linespec.c (decode_line_1): Likewise.
10734 * valops (value_of_this): Likewise.
10735 * symtab.c (lookup_transparent_type): Likewise.
10736 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10737 (lookup_symbol): If we are given a mangled name, pass it down
10738 to lookup_symbol_aux.
10739 (lookup_block_symbol): If we are given a mangled name to check
10740 against, only return symbols which match it.
10742 2002-03-22 Christopher Faylor <cgf@redhat.com>
10744 * win32-nat.c (child_create_inferior): Check for proper shell to use
10745 here, in case the user changes it on the fly.
10746 (_initialize_inftarg): Remove shell path considerations.
10748 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10750 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10751 for gdbarch_max_register_raw_size and max_register_virtual_size.
10752 Adjust copyright year.
10754 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10756 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10757 in a function to cover the entire beginning of the function
10758 as well if it does not already.
10760 2002-03-21 Tom Rix <trix@redhat.com>
10762 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10763 (rs6000_ptrace64): Renamed from ptrace64.
10765 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10767 * gdbserver/remote-utils.c (remote_open): Don't call
10768 getprotobyname, we're all using TCP here so just use
10770 * gdbserver/gdbreplay.c (remote_open): Ditto.
10772 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10774 * regcache.c (_initialize_regcache): No need to call
10775 build_regcache() at this time; it gets called whenever
10776 the gdbarch changes.
10778 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10780 * sparc-nat.c: Include sys/param.h where possible.
10782 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10785 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10786 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10787 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10789 * stabsread.c (rs6000_builtin_type): Likewise.
10790 (read_sun_floating_type): Likewise.
10792 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10794 * stabsread.c (read_member_functions): Remove skip code for duplicate
10795 constructor/destructor methods. Use standard parsing for these
10796 methods and just do not chain them to the list of methods after
10799 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10801 * coffread.c: Remove redundant static declarations. Replace
10802 occurrences of `PTR' with `void *'.
10803 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10804 * top.h (quit_cover): Likewise.
10805 * defs.h (catch_errors): Likewise.
10807 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10809 * defs.h (XMALLOC): Define.
10810 * gdb-events.sh (XMALLOC): Delete macro.
10811 * gdb-events.c, gdb-events.h: Regenerate.
10812 * gdbarch.sh (XMALLOC): Delete macro.
10813 * gdbarch.c: Regenerate.
10814 * serial.c (XMALLOC): Delete macro.
10815 * ui-file.c (XMALLOC): Ditto.
10816 * ser-unix.h (XMALLOC): Ditto.
10817 * sh-tdep.c (XMALLOC): Ditto.
10818 * ui-out.c (XMALLOC): Ditto.
10819 * utils.c (XMALLOC): Ditto.
10820 * i386-tdep.c (XMALLOC): Ditto.
10821 * gdb-events.c (XMALLOC): Ditto.
10822 * d10v-tdep.c (XMALLOC): Ditto.
10823 * cli-out.c (XMALLOC): Ditto.
10825 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10826 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10827 * ui-file.c, ui-out.c: Ditto.
10829 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10831 * command.h (struct cmd_list_element): Add field context.
10832 (set_cmd_context, get_cmd_context): Declare.
10833 * cli/cli-decode.h: Ditto.
10834 * cli/cli-decode.c (get_cmd_context): New function.
10835 (set_cmd_context): New function.
10836 (add_cmd): Initialize context.
10837 Part of fixing PR gdb/145 and PR gdb/146.
10839 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10841 * cli/cli-decode.c (cmd_type): New function.
10842 * command.h (cmd_type): Declare.
10843 * infrun.c (set_schedlock_func): Call function cmd_type.
10844 * kod.c (kod_set_os): Call cmd_type.
10845 * cris-tdep.c (cris_version_update): Use function cmd_type.
10846 (cris_mode_update, cris_abi_update): Ditto.
10848 * command.h: (execute_cmd_post_hook): Declare.
10849 (execute_cmd_pre_hook): Declare.
10850 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10851 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10852 functions. Execute pre/post hook while ensuring that afterwords
10853 hook_in is cleared.
10854 * top.c (execute_command): Use execute_cmd_post_hook, and
10855 execute_cmd_pre_hook to execute pre/post commands.
10856 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10858 (hook_stop_stub): Call execute_cmd_pre_hook.
10860 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10862 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10863 set'' and this leads to a core dump. Move xstrdup of
10864 operating_system to after check that it is not NULL.
10866 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10868 * kod.c (kod_set_os): Remove unnecessary check that
10869 ``command->type'' is set_cmd.
10871 * valprint.c (set_input_radix): Use input_radix.
10872 (set_output_radix): Use output_radix.
10873 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10876 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10878 * value.h (struct value): Delete field ``substring_addr''. Change
10879 aligner fields to force_doublest_align, force_longest_align,
10880 force_core_addr_align and force_pointer_aligh.
10882 * value.h (struct value): Fix typo in above change.
10884 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10886 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10887 to fix internal_error from ``maintenance print architecture''.
10889 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10891 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10892 for gcc versions after gcc-2.8.1.
10894 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10896 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10897 for method resolution. Restore adjustment of ``this'' pointer after
10898 calling value_struct_elt, which was accidentally removed during the
10901 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10903 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10905 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10906 get_saved_register.
10907 * value.h (value_of_register): Update.
10909 2002-03-14 Richard Henderson <rth@redhat.com>
10911 * configure.in: Detect declaration for canonicalize_file_name.
10912 * utils.c (canonicalize_file_name): Declare, if needed.
10913 (gdb_realpath): Prefer realpath if available and usable.
10914 * config.in, configure: Rebuild.
10916 2002-03-14 Richard Henderson <rth@redhat.com>
10918 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10919 a constant array bound.
10921 * MAINTAINERS: Add myself to write-after-approval.
10923 2002-03-14 Michael Snyder <msnyder@redhat.com>
10925 * symfile.c (syms_from_objfile): Return immediately if no syms.
10926 (symbol_file_add): Return immediately if no syms.
10927 (find_sym_fns): Return immediately if no syms.
10929 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10931 * gdbserver/remote-util.c (remote_open): Print remote-side's
10932 IP address when remote debugging over the network.
10934 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10936 * config/sparc/fbsd.mh: Fix copyright.
10937 * config/sparc/fbsd.mt: Likewise.
10939 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10941 * MAINTAINERS: Fix typo in name of gdb warnings option.
10942 (x86-64): Fix formating so that this can be parsed by awk.
10944 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10946 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10947 * defs.h: Include "gdb/signals.h".
10948 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10950 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10952 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10953 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10956 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10957 Don Howard <dhoward@redhat.com>
10959 * mips-tdep.c (ST0_FR): Define.
10960 (mips2_fp_compat): New function, temporarily disabled.
10961 (mips_read_fp_register_single): New function.
10962 (mips_read_fp_register_double): New function.
10963 (mips_print_register): Use them.
10964 (do_fp_register_row): Likewise.
10966 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10968 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10971 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10973 * stabsread.c (read_member_functions): Fix is_stub test for
10974 static member functions, improve comment.
10976 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10978 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10979 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10980 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10981 commands that set boolean values.
10982 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10983 (arm_rdi_resume): Always initialize PC.
10984 (arm_rdi_open): Don't use rslt as a boolean.
10985 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10986 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10987 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10988 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10990 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10992 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10993 * configure: Rebuilt.
10995 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10997 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10998 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11000 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11002 * cli/cli-decode.c (set_cmd_completer): New function.
11003 * command.h (set_cmd_completer): Declare.
11004 * cli/cli-decode.h (set_cmd_completer): Ditto.
11006 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11007 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11008 * win32-nat.c (_initialize_inftarg): Ditto.
11009 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11010 * proc-api.c (_initialize_proc_api): Ditto.
11011 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11012 * source.c (_initialize_source): Ditto.
11013 * exec.c (_initialize_exec): Ditto.
11014 * solib.c (_initialize_solib): Ditto.
11015 * top.c (init_main): Ditto.
11016 * tracepoint.c (_initialize_tracepoint): Ditto.
11017 * symfile.c (_initialize_symfile): Ditto.
11018 * printcmd.c (_initialize_printcmd): Ditto.
11019 * infcmd.c (_initialize_infcmd): Ditto.
11020 * corefile.c (_initialize_core): Ditto.
11022 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11024 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11026 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11028 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11030 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11032 * NEWS: Update headings, 5.2 has branched.
11034 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11036 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11037 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11038 (register_addr, REGISTER_RAW_SIZE): Likewise.
11039 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11040 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11042 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11044 * MAINTAINERS (x86-64): Add myself.
11045 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11046 changed value_ptr -> struct value *
11048 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11050 * configure.host (sparc64-*-freebsd): Add.
11051 * configure.tgt: Likewise.
11052 * config/sparc/fbsd.mh: New file.
11053 * config/sparc/fbsd.mt: Likewise.
11054 * config/sparc/nm-fbsd.h: Likewise.
11055 * config/sparc/tm-fbsd.h: Likewise.
11057 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11059 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11060 regformats/reg-s390x.dat.
11062 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11064 * utils.c: Add FIXME explaining true/false problem.
11066 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11068 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11070 2002-02-28 Michael Chastain <mec@shout.net>
11072 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11074 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11076 * gdbserver/linux-s390-low.c: New file.
11077 * regformats/reg-s390.dat: New file.
11078 * regformats/reg-s390x.dat: New file.
11079 * gdbserver/configure.srv: Add S/390.
11080 * gdbserver/Makefile.in: Add S/390.
11081 * configure.tgt: Enable gdbserver for S/390.
11083 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11085 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11086 first line of the doc string for "info dos", except at the end of
11087 the sentence, since the short help stops at the first period.
11089 2002-02-28 Jason Merrill <jason@redhat.com>
11091 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11093 2002-02-27 Fred Fish <fnf@redhat.com>
11095 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11096 comment (dumy -> dummy).
11098 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11100 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11102 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11104 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11106 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11108 * gdbserver/acconfig.h: New file.
11109 * gdbserver/i387-fp.c: New file.
11110 * gdbserver/i387-fp.h: New file.
11111 * gdbserver/linux-x86-64.c: New file.
11112 * regformats/reg-x86-64.dat: New file.
11113 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11114 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11115 * gdbserver/configure.in: Add support for regsets.
11116 * gdbserver/config.in: Regenerate.
11117 * gdbserver/configure: Regenerate.
11118 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11119 * gdbserver/linux-low.h: New file.
11120 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11122 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11123 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11124 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11125 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11126 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11127 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11128 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11129 "i387-fp.h". Add PTRACE_GETREGS and friends.
11130 * gdbserver/regcache.c (supply_register): New function.
11131 (supply_register_by_name): New function.
11132 (collect_register): New function.
11133 (collect_register_by_name): New function.
11135 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11137 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11138 (config.status): Add configure.srv dependency.
11139 (server_h): Add config.h dependency.
11141 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11143 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11144 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11145 * gdbserver/configure.srv: Change i386-*-linux* to use
11148 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11150 * x86-64-tdep.c: Re-indent. Update copyright date.
11152 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11154 From Michal Ludvig <mludvig@suse.cz>:
11155 * x86-64-tdep.c (value.h): Delete.
11156 (gdb_assert.h): Include.
11157 (x86_64_register_convert_to_virtual,
11158 x86_64_register_convert_to_raw ): Add check which lets only
11159 floating-point values to be converted.
11160 (value_push): Delete.
11161 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11162 (i386_gdbarch_init): Number of register_bytes fixed.
11164 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11166 * MAINTAINERS: Add x86-64 target.
11168 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11170 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11171 * osfsolib.c (solib_map_sections): Ditto.
11172 * irix5-nat.c (solib_map_sections): Ditto.
11173 * corelow.c (gdb_check_format): Ditto.
11174 * symfile.c (symfile_bfd_open): Ditto.
11175 * solib.c (solib_map_sections): Ditto.
11178 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11180 * remote.c (_initialize_remote): By default, disable ``e'' and
11181 ``E'' step out-of-range packets.
11183 2002-02-26 Andreas Schwab <schwab@suse.de>
11185 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11186 m68k_linux_frame_saved_pc.
11187 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11189 (SIGCONTEXT_PC_OFFSET): Remove.
11190 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11191 m68k_linux_sigtramp_saved_pc): New functions.
11192 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11193 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11194 (UCONTEXT_PC_OFFSET): Define.
11195 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11196 non-RT and RT signal trampolines.
11198 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11200 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11201 (TARGET_NBPG, STACK_END_ADDR): Delete
11202 (VARIABLES_INSIDE_BLOCK): Delete.
11204 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11206 * utils.c (perror_with_name): Make string parameter constant.
11207 (print_sys_errmsg): Ditto.
11209 * defs.h (perror_with_name): Update.
11210 (print_sys_errmsg): Update.
11213 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11215 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11216 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11218 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11220 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11221 if it already matches the current architecture from the exec file.
11222 Include arch-utils.h for gdbarch_info_init prototype.
11223 * Makefile.in (rs6000-nat.o): Update dependencies.
11225 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11227 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11228 list of exported variables.
11230 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11232 * gdbserver/configure.srv: New file.
11233 * gdbserver/configure.in: Use configure.srv instead
11234 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11236 * gdbserver/configure: Regenerated.
11237 * gdbserver/terminal.h: New file.
11238 * gdbserver/Makefile.in: Update for configure changes. Remove
11239 more unneeded include paths.
11241 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11243 From wiz at danbala:
11244 * config/sparc/tm-sp64.h: Fix grammar and typos.
11247 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11249 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11250 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11251 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11252 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11253 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11254 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11255 * s390-tdep.c: Ditto.
11256 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11257 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11258 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11259 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11260 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11261 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11262 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11263 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11264 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11265 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11268 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11270 * lin-thread.c: Delete file.
11271 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11272 to gdb_proc_service.h.
11273 * configure: Re-generate.
11275 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11276 * serial.c (serial_open): Delete check for "ocd".
11279 * Makefile.in (linux-thread.o): Delete target.
11280 * linux-thread.c: Delete file.
11282 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11283 renamed SH files to be consistent.
11285 * symtab.c (sort_search_symbols): Use xfree.
11287 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11289 * arm-linux-tdep.c (arm_linux_init_abi): Register
11290 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11291 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11292 definition with undef, since we don't want the sysvr4 definition.
11293 (SKIP_TRAMPOLINE_CODE): Likewise.
11295 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11297 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11299 * configure.in: (AC_CHECK_FUNCS) Added test for
11300 canonicalize_file_name Regenerated.
11301 * config.in, configure: Regenerated.
11302 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11303 defined use canonicalize_file_name.
11305 2002-02-23 Michael Chastain <mec@shout.net>
11307 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11309 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11311 * README: Remove references to cygnus.com.
11312 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11313 dot com'' form. Remove references to cygnus.com and sourceware.
11315 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11317 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11318 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11319 1003.1-2001 no longer allows "head -1".
11320 * gdb/Makefile.in (version.c): Likewise.
11321 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11322 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11323 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11325 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11327 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11328 * command.h (cmd_cfunc_eq): Declare.
11329 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11331 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11332 ``struct cmd_list_element *''.
11333 * cli/cli-cmds.c (is_complete_command): Update. Use
11335 * top.c (execute_command): Pass the command to
11336 is_complete_command.
11337 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11339 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11341 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11342 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11343 architecture defines.
11344 * s390-tdep.c (s390_gdbarch_init): Likewise.
11346 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11348 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11349 (arm_linux_push_arguments): Likewise.
11350 (arm_linux_init_abi): Register them. Also register linux-specific
11352 (find_minsym_and_objfile): Use strcmp, not STREQ.
11353 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11354 (arm_linux_call_dummy_words): Delete declaration.
11355 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11356 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11358 (LOWEST_PC): Delete.
11360 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11362 * maint.c (print_section_info): Do not prepend `0x' to filepos
11363 output, it will be handled by local_hex_string_custom.
11365 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11367 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11368 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11369 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11371 2002-02-22 Jim Blandy <jimb@redhat.com>
11373 Indicate that the bcache functions don't change the strings
11375 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11376 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11378 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11380 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11382 2002-02-21 Christopher Faylor <cgf@redhat.com>
11384 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11385 find the complete path to a loaded DLL.
11387 2002-02-21 Fred Fish <fnf@redhat.com>
11389 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11390 that marks the end of the range of a function, enter a line number
11391 entry that has a line number of zero and a PC offset that matches
11392 the end of the function. This starts a range of PC's for which no
11393 line number information is known.
11394 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11395 PC's for which no line number info is found (line number is zero)
11396 then we didn't find any valid line information.
11397 * symtab.h: Document use of zero line number entry.
11399 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11401 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11402 (have_ptrace_getvrregs): Define for run time checks.
11403 (gdb_vrregset_t): New type for Altivec register handling.
11404 (fetch_register, store_register): Fetch/store altivec register
11406 (fetch_altivec_register, store_altivec_register): New functions.
11407 (supply_vrregset, fill_vrregset): New functions.
11408 (fetch_altivec_registers, store_altivec_registers): New functions.
11409 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11412 2002-02-21 Jiri Smid <smid@suse.cz>
11414 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11416 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11418 * Makefile.in (armnbsd-nat.o): Update dependencies.
11419 * armnbsd-nat.c (supply_gregset): New function. Common code to
11420 supply the integer register set.
11421 (supply_fparegset): New function. Similar for FPA registers.
11422 (fetch_regs, fetch_fp_regs): Use them.
11423 (fetch_core_registers): Likewise.
11424 (fetch_elfcore_registers): New function.
11425 (arm_netbsd_elfcore_fns): New core-file type specification.
11426 (_initialize_arm_netbsd_nat): Register it.
11428 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11430 * armnbsd-nat.c: Include gdbcore.h.
11431 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11432 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11433 'void' to declaration, to shut up ARI.
11434 (fetch_core_registers): Make static. Rewrite using supply_register.
11435 (arm_netbsd_core_fns): New core-file type specification.
11436 (_initialize_arm_netbsd_nat): New function.
11438 2002-02-21 Christopher Faylor <cgf@redhat.com>
11440 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11443 2002-02-20 Christopher Faylor <cgf@redhat.com>
11445 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11448 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11450 * jv-exp.y (parse_number): Change type of implicit longs
11451 to builtin_type_uint64.
11453 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11455 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11456 to be an integer instead of a `union wait'.
11458 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11460 * mips-linux-nat.c: Call the operating system GNU/Linux.
11461 * mips-linux-tdep.c: Likewise.
11462 * mips-tdep.c: Likewise.
11464 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11467 * jv-exp.y (parse_number): Handle 64-bit integers.
11469 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11471 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11472 AC_STDC_HEADERS to AC_HEADER_STDC.
11473 * gdbserver/configure: Regenerated.
11475 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11477 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11479 * sparc-tdep.c (get_longjmp_target): Likewise.
11481 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11483 * News: Add news about ARM and Multi-arch. Mention the new target
11486 2002-02-19 Jim Blandy <jimb@redhat.com>
11488 * stabsread.c (error_type_complaint): Improve error message.
11490 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11492 * gdbserver/README: Update documentation.
11493 * gdbserver/configure.in: Update configury to match documentation.
11494 * gdbserver/Makefile.in: Likewise.
11495 * gdbserver/configure: Regenerated.
11496 * gdbserver/aclocal.m4: New file, generated by aclocal.
11497 * gdbserver/config.in: New file, generated by autoheader.
11499 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11501 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11504 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11506 * arm-tdep.h (enum arm_float_model): New enum.
11507 (struct gdbarch_tdep): Add fp_model.
11508 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11509 up floating-point conversions until we know the floating-point model
11510 in use by the inferior. Don't complain about being unable to
11511 determine the ABI of the inferior when we don't have one.
11512 (arm_extract_return_value): Support different floating-point models.
11513 (arm_store_return_value): Likewise.
11514 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11516 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11518 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11520 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11521 of ``current_gdbarch''.
11523 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11525 * armnbsd-nat.c : ANSIfy all function declarations.
11526 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11527 (fetch_inferior_registers): Re-implement in terms of above.
11528 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11529 (store_inferior_registers): Re-implement in terms of above.
11531 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11533 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11535 * arm-linux-tdep.c: Likewise.
11536 * config/arm/tm-linux.h: Likewise.
11538 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11540 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11541 * config/arm/nbsd.mt (TM_FILE): Delete.
11542 * config/arm/tm-nbsd.h: Delete.
11544 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11546 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11547 Initialize CALL_DUMMY_LENGTH.
11549 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11551 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11553 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11554 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11555 defines one thing and that is incorrect for this port.
11556 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11558 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11560 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11562 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11564 * win32-nat.c (display_selector): New function. Displays information
11565 about the information returned by GetThreadSelectorEntry API function.
11566 (display_selectors): New function. Displays the infomation of
11567 the selector given as argument, or of CS, DS ans FS selectors
11568 if no argument is given.
11569 ( _initialize_inftarg): Add "w32" as info prefix command.
11570 Add "info w32 selector" as command calling display_selectors.
11572 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11574 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11575 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11578 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11580 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11582 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11584 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11585 (arm_fix_call_dummy): Call it.
11586 (arm_call_dummy_breakpoint_offset): Delete.
11587 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11588 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11590 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11592 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11593 Default to func_frame_chain_valid.
11594 * gdbarch.h, gdbarch.c: Re-generate.
11595 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11597 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11599 * ppc-linux-nat.c: Update copyright.
11600 (fetch_register, store_register): Add tid parameter, don't compute
11602 (fetch_ppc_registers, store_ppc_registers): Add tid
11603 parameter. Pass it along to callees.
11604 (fetch_inferior_registers, store_inferior_registers): Compute tid
11605 here, and pass it to calleed functions.
11606 (fill_gregset, supply_fpregset): Clean up formatting.
11608 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11610 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11611 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11613 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11615 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11616 * gdbarch.c gdbarch.h: Regenerate.
11617 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11619 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11620 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11621 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11623 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11624 * arm-tdep.c (arm_get_longjmp_target): New function.
11625 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11626 this to a positive value register arm_get_longjmp_target as the
11628 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11629 (arm_linux_init_abi): Set up longjmp description in tdep.
11630 * armnbsd-nat.c (get_longjmp_target): Delete.
11631 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11632 description in tdep.
11633 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11634 (get_longjmp_target): Delete declaration.
11635 (GET_LONGJMP_TARGET): Delete.
11636 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11637 (GET_LONGJMP_TARGET): Delete.
11639 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11641 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11642 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11643 of ``current_gdbarch''.
11645 2002-02-17 Tom Tromey <tromey@redhat.com>
11647 * cli/cli-cmds.c (compare_strings): New function.
11648 (complete_command): Only print each unique item once.
11649 * completer.h (complete_line): Declare.
11650 * completer.c (complete_line): New function.
11651 (line_completion_function): Use it.
11653 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11655 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11656 * gdbarch.h, gdbarch.c: Re-generate.
11658 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11660 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11662 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11664 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11665 * valops.c (value_arg_coerce): Don't take the address of a reference
11666 to convert an argument to a reference.
11668 2002-02-15 Christopher Faylor <cgf@redhat.com>
11670 * win32-nat.c (get_image_name): New function.
11671 (handle_load_dll): Use get_image_name function.
11672 (get_child_debug_event): Avoid registering debug events until possibly
11673 execed process is started.
11674 (child_create_inferior): Allow invocation via shell so that command
11675 line redirection, etc. works ok.
11676 (_initialize_inftarg): Add new command: "set shell" to control whether
11677 a shell is used to start a process.
11679 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11681 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11682 instead of find_register_by_number.
11683 (cannot_store_register): Likewise.
11685 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11687 * dwarf2read.c: Replace fprintf (stderr, ...) by
11688 fprintf_unfiltered (gdb_stderr, ...).
11690 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11692 * gdbserver/gdbserver.1: Document --attach.
11694 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11696 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11698 * arm-tdep.c (arm_default_arm_le_breakpoint)
11699 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11700 (arm_default_thumb_be_breakpoint): New. Initialize them from
11701 traditional breakpoint defines.
11702 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11703 (arm_gdbarch_init): Initialize new breakpoint variables.
11704 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11705 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11706 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11707 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11709 (arm_netbsd_init_abi_common): ... here; new function.
11710 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11711 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11712 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11713 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11715 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11717 * arm-tdep.h (enum arm_abi): New enum.
11718 (struct gdbarch_tdep): New structure.
11719 (LOWEST_PC): Provide a default.
11720 (arm_gdbarch_register_os_abi): Declare new function.
11721 * arm-tdep.c (arm_abi_names): New array.
11722 (process_note_abi_tag_sections): New function.
11723 (get_elfosabi): New function.
11724 (arm_gdbarch_register_os_abi): New function.
11725 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11726 support for that ABI has been built in, then call the appropriate
11727 configuration routine. Use gdbarch_num_regs() to get the number
11729 (arm_dump_tdep): New function.
11730 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11731 place-holder functions.
11732 (_initialize_arm_tdep): Register them.
11733 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11735 * armnbsd-tdep.c: New file.
11736 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11737 * config/arm/nbsd.mt (TDEPFILES): Add it.
11738 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11740 * armnbsd-nat.c: Include regcache.h.
11741 * Makefile.in (armnbsd-nat.o): Update dependency list.
11743 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11745 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11747 * gdbserver/Makefile.in: Fix typos in target rules.
11749 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11751 Fix part of PR gdb/267.
11752 * linespec.c (find_methods): Handle constructors specially for now.
11754 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11756 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11758 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11759 standard_coerce_float_to_double().
11761 2002-02-14 Christopher Faylor <cgf@redhat.com>
11763 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11766 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11768 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11769 find_variant_by_name, because it confuses the multiarch
11770 framework. Return NULL if there isn't an architecture with the
11771 user supplied name, instead of forcing a different one without
11772 recording the change with the multiarch machinery.
11773 (find_variant_by_name): Delete.
11775 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11777 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11778 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11780 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11782 * stack.c (print_frame_info_base): When calling
11783 print_frame_info_listing_hook, set current_source_symtab.
11785 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11787 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11788 and remove unused $(INCLUDE_DIR).
11789 Add regcache.c to OBS.
11790 Add generated register protocol files to clean target.
11791 Update dependencies for new objects, obsolete old target code.
11793 * gdbserver/linux-low.c: Remove all platform-specific code to
11794 new files. Remove various dead code. Update to use regcache
11796 * gdbserver/remote-utils.c (fromhex): Add return statement
11798 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11800 (input_interrupt): Add integer parameter to match prototype
11801 of a signal handler.
11802 (outreg): Use register_data ().
11803 (prepare_resume_reply): Use gdbserver_expedite_regs.
11804 * gdbserver/server.c (main): Dynamically allocate own_buf because
11805 PBUFSIZ is no longer constant. Use registers_to_string () and
11806 registers_from_string ().
11807 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11808 for error (), fatal (), and warning (). Update definition of
11809 PBUFSIZ to use regcache functionality. Add include guard.
11810 * gdbserver/utils.c (fatal): Add missing ``const''.
11811 (warning): New function.
11813 * regformats/regdat.sh: Include "regcache.h" in generated files.
11814 Provide init_registers () function.
11815 * regformats/regdef.h: Add prototype for set_register_cache ().
11818 * gdbserver/linux-arm-low.c: New file.
11819 * gdbserver/linux-i386-low.c: New file.
11820 * gdbserver/linux-ia64-low.c: New file.
11821 * gdbserver/linux-m68k-low.c: New file.
11822 * gdbserver/linux-mips-low.c: New file.
11823 * gdbserver/linux-ppc-low.c: New file.
11824 * gdbserver/linux-sh-low.c: New file.
11826 * gdbserver/regcache.c: New file.
11827 * gdbserver/regcache.h: New file.
11829 * gdbserver/low-linux.c: Removed obsolete file.
11831 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11833 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11834 * config/i386/linux.mt: Likewise.
11835 * config/ia64/linux.mt: Likewise.
11836 * config/m68k/linux.mh: Likewise.
11837 * config/powerpc/linux.mh: Likewise.
11838 * config/mips/linux.mt: Likewise.
11840 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11842 * config/i386/i386lynx.mh: Mark gdbserver variables
11843 as (currently) obsolete for this target.
11844 * config/i386/nbsd.mt: Likewise.
11845 * config/i386/nbsdelf.mt: Likewise.
11846 * config/m32r/m32r.mt: Likewise.
11847 * config/m68k/m68klynx.mh: Likewise.
11848 * config/m68k/nbsd.mt: Likewise.
11849 * config/m68k/sun3os4.mh: Likewise.
11850 * config/mips/vr5000.mt: Likewise.
11851 * config/ns32k/nbsd.mt: Likewise.
11852 * config/pa/hppabsd.mh: Likewise.
11853 * config/pa/hppaosf.mh: Likewise.
11854 * config/powerpc/nbsd.mt: Likewise.
11855 * config/rs6000/rs6000lynx.mh: Likewise.
11856 * config/s390/s390.mt: Likewise.
11857 * config/s390/s390x.mt: Likewise.
11858 * config/sparc/sparclynx.mh: Likewise.
11859 * config/sparc/sun4os4.mh: Likewise.
11860 * config/i386/x86-64linux.mt: Likewise.
11861 * config/sparc/linux.mh: Likewise.
11863 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11865 * configure.tgt: Configure gdbserver only for known working
11866 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11867 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11868 SUBDIRS if it is configured. Update comment for ${nativefile}.
11869 * configure: Regenerated.
11871 2002-02-13 Michael Snyder <msnyder@redhat.com>
11873 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11875 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11876 (default_gcore_mach): Just return 0, work around a problem in bfd.
11877 (default_gcore_target): OK to return NULL if exec_bfd is null.
11878 (make_mem_sec): Use a cast, avoid a warning.
11880 * procfs.c (find_memory_regions_callback): Use a cast instead of
11881 calling host_pointer_to_address (which complains if
11882 sizeof (host pointer) != sizeof (target pointer)).
11883 (procfs_make_note_section): Avoid overflow in psargs string.
11885 * procfs.c (procfs_make_note_section): Make the default
11886 implementation return an error.
11888 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11890 * procfs.c (procfs_make_note_section): Provide a default definition
11891 (for alpha-dec-osf4.0f). Fix typos.
11893 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11895 * linux-proc.c: Add include of regcache.h.
11896 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11898 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11900 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11901 * memattr.c (create_mem_region): Disallow useless empty region.
11902 Regions are half-open intervals, so allow [A..B) [B..C) as
11905 2002-02-13 Michael Chastain <mec@shout.net>
11907 * defs.h: Kill CONST_PTR.
11908 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11909 * c-lang.c (c_builtin_types): Likewise.
11910 * ch-lang.c (ch_builtin_types): Likewise.
11911 * f-lang.c (f_builtin_types): Likewise.
11912 * language.c (unknown_builtin_types): Likewise.
11913 * m2-lang.c (m2_builtin_types): Likewise.
11914 * p-lang.c (pascal_builtin_types): Likewise.
11915 * scm-lang.c (c_builtin_types): Likewise.
11917 2002-02-13 Keith Seitz <keiths@redhat.com>
11919 * arm-tdep.h (arm_get_next_pc): Add declaration.
11921 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11923 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11924 with other related struct-returning functions.
11925 (arm_extract_struct_value_address): New function.
11926 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11927 initialize float_format, double_format and long_double_format as
11928 appropriate to the endianness of the target.
11929 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11930 (arm_use_struct_convention): Delete declaration.
11931 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11933 2002-02-13 Keith Seitz <keiths@redhat.com>
11935 * defs.h (core_addr_to_string_nz): New function.
11937 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11939 Apply missing bits of 2002-01-15 patch.
11940 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11941 (fill_fpregset): Use i387_fill_fsave.
11943 2002-02-12 Keith Seitz <keiths@redhat.com>
11945 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11946 (core_addr_to_string_nz): New function.
11948 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11950 * arm-linux-nat.c: Really include arm-tdep.h.
11951 * config/arm/tm-linux.h (struct type, struct value): Declare.
11953 2002-02-11 Michael Snyder <msnyder@redhat.com>
11955 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11956 (gcore section): Ifdef for Solaris and Unixware only.
11957 (procfs_do_thread_registers): Unixware needs one lwpstatus
11958 per thread (not one prstatus or pstatus).
11959 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11960 not over all gdb threads. For unixware, call elfcore_write_pstatus
11961 once before iterating over threads.
11963 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11965 * arm-tdep.h: New file.
11966 * arm-tdep.c: Include arm-tdep.h.
11967 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11968 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11969 (arm_print_float_info, arm_register_type, convert_to_extended)
11970 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11971 (arm_extract_return_value, arm_register_name): Make static.
11972 (arm_software_single_step): Similarly. Fix types in declaration.
11973 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11974 (arm_store_return_value, arm_store_struct_return): New functions.
11975 (arm_gdbarch_init): Register the above functions. Also register
11976 call_dummy_start_offset, sizeof_call_dummy_words,
11977 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11978 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11979 max_register_virtual_size, register_size. Set up
11980 prologue_cache.saved_regs here, rather than ...
11981 (_initialize_arm_tdep): ... here.
11982 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11984 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11985 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11986 (arm_print_float_info, arm_register_type, convert_to_extended)
11987 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11988 (arm_extract_return_value, arm_register_name): Delete declarations.
11989 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11990 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11991 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11992 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11993 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11994 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11995 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11996 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11997 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11998 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11999 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12000 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12002 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12003 * remote-rdi.c remote-rdp.c: Likewise.
12004 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12005 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12006 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12009 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12010 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12011 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12012 from non-ARM_ prefixed definitions.
12013 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12015 * remote-rdi.c remote-rdp.c: Likewise.
12016 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12018 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12020 * arm-tdep.c (arm_frameless_function_invocation)
12021 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12022 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12023 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12024 (arm_pop_frame, arm_get_next_pc): Make static.
12025 (arm_gdbarch_init): Register above in gdbarch structure.
12026 (arm_read_fp): Renamed from arm_target_read_fp.
12027 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12028 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12029 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12030 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12031 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12032 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12033 (arm_pc_is_thumb_dummy): Delete declarations.
12034 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12035 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12036 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12037 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12039 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12041 * symtab.c (compare_search_syms): New function.
12042 (sort_search_symbols): New function.
12043 (search_symbols): Sort symbols after searching rather than
12046 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12048 * NEWS: Linux -> GNU/Linux.
12050 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12052 * gdbarch.sh: For for level one methods, disallow a definition
12053 when partially multi-arched. Add comments explaining rationale.
12054 * gdbarch.h: Re-generate.
12056 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12058 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12059 multi-arch partial.
12061 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12063 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12064 field. Use diff -u.
12065 * gdbarch.c: Re-generate.
12067 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12069 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12070 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12073 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12075 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12076 multi-arch partial.
12077 (PUSH_ARGUMENTS): Switch to using predefault.
12078 * gdbarch.c: Regenerate.
12080 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12082 * valops.c (PUSH_ARGUMENTS): Delete definition.
12083 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12084 partial. Default to default_push_arguments.
12085 * gdbarch.h, gdbarch.c: Regenerate.
12087 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12089 * defs.h (throw_exception): Rename return_to_top_level. Update
12091 * utils.c (error_stream, internal_verror, quit): Ditto.
12092 * top.c (throw_exception, catcher): Ditto.
12093 * sparclet-rom.c (sparclet_load): Ditto.
12094 * remote.c (interrupt_query, minitelnet): Ditto.
12095 * remote-sds.c (interrupt_query): Ditto.
12096 * remote-mips.c (mips_error, mips_kill): Ditto.
12097 * ocd.c (interrupt_query): Ditto.
12098 * monitor.c (monitor_interrupt_query): Ditto.
12099 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12100 * target.h: Update comment.
12102 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12104 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12106 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12107 default_double_format.
12108 * gdbarch.h, gdbarch.c: Re-generate.
12109 * findvar.c (floatformat_unknown): Delete variable definition.
12110 * doublest.h (floatformat_unknown): Delete variable declaration.
12112 2002-02-09 Jim Blandy <jimb@redhat.com>
12114 * stabsread.c (read_type): Add code to parse Sun's syntax for
12115 prototyped function types.
12117 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12119 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12120 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12122 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12124 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12125 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12126 now _initialize_xcoffsolib gets called again and overrides the
12127 commands from solib.c in a native configuration.
12129 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12131 * doublest.c (store_typed_floating): Don't try to return a value.
12134 2002-02-08 Jim Blandy <jimb@redhat.com>
12136 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12137 is prototyped and has no arguments, print its argument list as
12140 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12142 * MAINTAINERS (write-after-approval): Add myself.
12143 (paper-trail): I've escaped!
12145 2002-02-08 Christopher Faylor <cgf@redhat.com>
12147 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12149 (_initialize_check_for_gdb_ini): Ditto.
12151 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12153 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12154 xaprintf -> xasprintf.
12156 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12158 * win32-nat.c: Remove use of printf and sprintf functions.
12160 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12162 * arm-tdep.c (arm_frame_chain_valid): Make static.
12163 (arm_push_arguments): Likewise.
12164 (arm_gdbarch_init): New function.
12165 (_initialize_arm_tdep): Call it.
12166 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12167 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12168 (FRAME_CHAIN_VALID): Delete.
12169 (arm_frame_chain_valid): Delete declaration.
12170 (PUSH_ARGUMENTS): Delete.
12171 (arm_push_arguments): Delete declaration.
12172 (CALL_DUMMY_P): Delete.
12174 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12175 Corinna Vinschen <vinschen@redhat.com>
12177 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12178 on builtin float types.
12180 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12182 * utils.c: Include <curses.h> before "bfd.h".
12183 * tui/tui-hooks.c: Likewise.
12184 * tui/tui.c: Likewise.
12185 * tui/tuiCommand.c: Likewise.
12186 * tui/tuiData.c: Likewise.
12187 * tui/tuiDataWin.c: Likewise.
12188 * tui/tuiDisassem.c: Likewise.
12189 * tui/tuiGeneralWin.c: Likewise.
12190 * tui/tuiIO.c: Likewise.
12191 * tui/tuiLayout.c: Likewise.
12192 * tui/tuiRegs.c: Likewise.
12193 * tui/tuiSource.c: Likewise.
12194 * tui/tuiSourceWin.c: Likewise.
12195 * tui/tuiStack.c: Likewise.
12196 * tui/tuiWin.c: Likewise.
12198 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12200 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12201 to include space for pseudoregs as well. Update loops accordingly.
12202 (sh_fp_frame_init_saved_regs): Ditto.
12203 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12205 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12207 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12208 Add Richard Earnshaw to Arm maintainers.
12210 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12212 * defs.h (warning_begin): Delete declaration.
12214 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12217 2002-02-07 Michael Snyder <msnyder@redhat.com>
12219 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12220 Logic bug, remove misplaced else.
12222 2002-02-07 Klee Dienes <klee@apple.com>
12224 * fork-inferior.c (fork_inferior): Add '!' to the list of
12225 characters that need to be quoted when building a string for the
12226 shell. Quote '!' specifically with a backslash, since CSH chokes
12227 when trying to evaluate "str!str".
12229 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12231 * rdi-share/host.h: Only provide a typedef for bool if it is not
12234 2002-02-04 Michael Snyder <msnyder@redhat.com>
12236 * breakpoint.h (enum bptype): Add new overlay event bp type.
12237 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12239 * breakpoint.c (create_internal_breakpoint): New function.
12240 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12241 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12242 (create_thread_event_breakpoint): Ditto.
12243 (create_solib_event_breakpoint): Ditto.
12244 (create_overlay_event_breakpoint): New function.
12245 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12246 (update_breakpoints_after_exec): Delete and re-initialize
12247 overlay event breakpoints after an exec. Add FIXME comment
12248 about longjmp breakpoint.
12249 (print_it_typical): Ignore overlay event breakpoints.
12250 (print_one_breakpoint): Ditto.
12252 (bpstat_what): Do not stop for overlay event breakpoints.
12253 (delete_breakpoint): Don't delete overlay event breakpoints.
12254 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12255 (breakpoint_re_set): Re-create overlay event breakpoint.
12257 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12258 (overlay_manual_command): Disable overlay breakpoints.
12259 (overlay_off_command): Disable overlay breakpoints.
12261 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12263 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12264 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12265 to here from config/tm-arm.h.
12266 (coff_sym_is_thumb): Make static.
12267 (arm_elf_make_msymbol_special): New function.
12268 (arm_coff_make_msymbol_special): New function.
12269 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12270 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12271 (coff_sym_is_thumb): Delete declaration.
12272 (arm_elf_make_msymbol_special): Declare.
12273 (arm_coff_make_msymbol_special): Declare.
12274 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12275 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12277 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12279 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12281 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12283 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12284 * gdbarch.c gdbarch.h: Regenerate.
12285 * arch-utils.c (default_print_float_info): New function.
12286 * arch-utils.h (default_print_float_info): Prototype it.
12287 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12288 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12289 (PRINT_FLOAT_INFO): Document it.
12291 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12292 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12293 (PRINT_FLOAT_INFO): Define.
12295 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12297 * win32-nat.c (_initialize_check_for_gdb_ini):
12298 Add typecast to sprintf argument to suppress a warning.
12300 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12302 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12303 to allow easier handling of pass state.
12304 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12305 that gives exception name and address.
12306 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12307 and set last_sig value to ourstatus->value.sig. Some missing
12309 (child_continue): Correctly report continue_status.
12310 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12311 TARGET_SIGNAL_0 (new default value).
12312 (child_resume): consider sig argument passed to decide if
12313 the exception should be passed to debuggee or not.
12315 2002-02-05 Michael Snyder <msnyder@redhat.com>
12317 * regcache.c (fetch_register): Call target_fetch_register
12318 only if we don't call FETCH_PSEUDO_REGISTER.
12319 (store_register): Call target_store_register only if we
12320 don't call STORE_PSEUDO_REGISTER.
12322 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12324 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12325 ELF_MAKE_MSYMBOL_SPECIAL.
12326 * gdbarch.c, gdbarch.h: Regenerate.
12327 * arch-utils.c (default_make_msymbol_special): New function.
12328 * arch-utils.h (default_make_msymbol_special): Export.
12329 * elfread.c (elf_symtab_read): Compile use of
12330 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12332 * coffread.c (coff_symtab_read): Ditto, for
12333 COFF_MAKE_MSYMBOL_SPECIAL.
12335 2002-02-05 Jim Blandy <jimb@redhat.com>
12337 * solib-svr4.c (svr4_truncate_ptr): New function.
12338 (svr4_relocate_section_addresses): Do the address arithmetic with
12339 the appropriate truncation for target addresses, even when
12340 CORE_ADDR is larger than a target address.
12342 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12344 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12347 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12349 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12352 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12354 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12356 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12358 * gdbserver/linux-low.c: Remove unused include files.
12360 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12362 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12363 (read_inferior_memory): Use it.
12364 (write_inferior_memory): Likewise.
12366 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12368 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12369 grubbing through sys_errlist.
12371 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12373 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12375 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12376 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12378 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12380 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12381 (do_sfunc, set_cmd_sfunc): New functions.
12383 * command.h (struct cmd_list_element): Add field func.
12384 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12385 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12386 * cli/cli-decode.h: Ditto.
12388 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12389 (help_all, help_cmd_list): Ditto.
12390 (find_cmd, complete_on_cmdlist): Ditto.
12391 * top.c (execute_command): Ditto.
12393 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12396 * infcmd.c (notice_args_read): Fix function signature.
12398 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12399 * cli/cli-decode.c (add_set_cmd): Ditto.
12400 * utils.c (initialize_utils): Ditto.
12401 * maint.c (_initialize_maint_cmds): Ditto.
12402 * infrun.c (_initialize_infrun): Ditto.
12403 * demangle.c (_initialize_demangler): Ditto.
12404 * remote.c (add_packet_config_cmd): Ditto.
12405 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12406 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12407 * proc-api.c (_initialize_proc_api): Ditto.
12408 * kod.c (_initialize_kod): Ditto.
12409 * valprint.c (_initialize_valprint): Ditto.
12410 * top.c (init_main): Ditto.
12411 * infcmd.c (_initialize_infcmd): Ditto.
12412 * corefile.c (_initialize_core): Ditto.
12413 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12414 * arch-utils.c (initialize_current_architecture): Ditto.
12415 (_initialize_gdbarch_utils): Ditto.
12416 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12418 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12419 * wince.c (_initialize_inftarg): Ditto.
12420 * symfile.c (_initialize_symfile): Ditto.
12421 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12422 * language.c (_initialize_language): Ditto.
12423 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12425 2002-02-04 Michael Snyder <msnyder@redhat.com>
12427 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12429 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12431 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12432 Add rules for building the register data files.
12434 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12436 * regformats/regdat.sh: Add braces to the definition of
12437 expedite_regs_${arch}.
12439 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12441 * regformats/regdef.h (struct reg): Add comment describing the
12442 requirements for offset and size fields.
12444 2002-02-04 Andreas Schwab <schwab@suse.de>
12446 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12447 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12449 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12451 * gdbarch.sh (copyright): Update years in generated header.
12452 (SMASH_TEXT_ADDRESS): Add rule.
12453 * gdbarch.h, gdbarch.c: Re-generate.
12454 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12455 * dbxread.c: Likewise.
12456 * dwarfread.c: Likewise.
12457 * elfread.c: Likewise.
12458 * somread.c: Likewise.
12460 * arm-tdep.c (arm_smash_text_address): New function.
12461 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12463 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12465 Add support for hardware watchpoints on win32 native.
12466 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12467 CONTEXT_DEBUG_REGISTERS.
12468 (dr variable): New variable. Static array containing a local copy
12469 of debug registers.
12470 (debug_registers_changed): New variable. Reflects when debug registers
12471 are changed and need to be written to inferior.
12472 (debug_registers_used): New variable. Reflects when any debug register
12473 was set, used when new threads are created.
12474 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12476 (thread_rec): Set dr array if id is the thread of current_event .
12477 (child_continue, child_resume): Change the debug registers for all
12478 threads if debug_registers_changed.
12479 (child_add_thread): Change the debug registers if debug_registers_used.
12480 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12481 Link nm.h to new nm-cygwin.h file.
12482 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12483 of hardware registers.
12485 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12487 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12488 Restore behavour broken by 2002-01-20 Andrew Cagney
12489 <ac131313@redhat.com> IEEE_FLOAT removal.
12491 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12493 * c-valprint.c (c_val_print): Pass a proper valaddr to
12494 cp_print_class_method.
12495 * valops.c (search_struct_method): If there is only one method
12496 and args is NULL, return that method.
12498 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12500 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12501 accessing tag_name directly.
12503 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12505 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12506 of accessing tag_name directly.
12508 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12511 * gdbtypes.c (replace_type): New function.
12512 * gdbtypes.h (replace_type): Add prototype.
12513 * stabsread.c (read_type): Use replace_type.
12515 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12517 * Makefile.in (memattr.o): Add missing dependencies rule.
12519 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12521 * breakpoint.c (break_at_finish_command): Really export.
12522 (break_at_finish_at_depth_command): Ditto.
12523 (tbreak_at_finish_command): Ditto.
12524 * hppa-tdep.c: Include completer.h.
12525 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12526 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12528 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12530 * utils.c (do_write): New function.
12531 (error_stream): Rewrite combining the code from error_begin and
12533 (verror): Rewrite using error_stream.
12534 (error_begin): Delete function.
12536 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12538 * utils.c (error_begin): Make static.
12539 * defs.h (error_begin): Delete declaration.
12541 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12542 (decode_line_1): Use cplusplus_error instead of error_begin,
12543 cplusplus_hint and return_to_top_level.
12544 * coffread.c (coff_symfile_read): Use error instead of error_begin
12545 and return_to_top_level.
12546 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12548 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12550 * language.h (type_error, range_error): Make string parameter
12552 * language.c (warning_pre_print): Delete extern declaration.
12553 * dwarfread.c (warning_pre_print): Ditto.
12554 * language.c (type_error, range_error): Rewrite to use verror and
12555 vwarning instead of warning_begin.
12557 2002-02-01 Michael Snyder <msnyder@redhat.com>
12559 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12560 (set_ignore_count): Move misplaced comment back where it belongs.
12562 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12564 * command.h (NO_FUNCTION): Delete macro.
12565 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12566 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12567 * tracepoint.c (_initialize_tracepoint): Ditto.
12568 * cli/cli-decode.c (add_set_cmd): Ditto.
12569 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12571 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12573 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12574 Update ``this'' pointer when calling virtual functions.
12576 2002-02-01 Michael Snyder <msnyder@redhat.com>
12578 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12579 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12581 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12583 * regformats/reg-arm.dat: New file.
12584 * regformats/reg-i386.dat: New file.
12585 * regformats/reg-ia64.dat: New file.
12586 * regformats/reg-m68k.dat: New file.
12587 * regformats/reg-mips.dat: New file.
12588 * regformats/reg-ppc.dat: New file.
12589 * regformats/reg-sh.dat: New file.
12590 * regformats/regdef.h: New file.
12591 * regformats/regdat.sh: New file.
12593 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12595 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12596 (arm_frame_args_address, arm_frame_locals_address): New functions.
12597 (arm_frame_num_args): New function.
12598 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12599 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12600 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12602 2002-01-31 Michael Snyder <msnyder@redhat.com>
12604 * breakpoint.c (break_at_finish_command): Export.
12605 (break_at_finish_at_depth_command): Export.
12606 (tbreak_at_finish_command): Export.
12607 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12608 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12609 "txbreak" commands, which are HPPA specific.
12611 * printcmd.c (disassemble_command): Remove an ancient
12612 artifact of an old merge.
12614 * symfile.h (enum overlay_debugging_state):
12615 Define enum constant values for overlay mode.
12616 * symfile.c (overlay_debugging): Use enums instead of literals.
12617 (overlay_is_mapped, overlay_auto_command,
12618 overlay_manual_command): Ditto.
12620 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12621 breakpoint_here_p, breakpoint_inserted_here_p,
12622 breakpoint_thread_match, bpstat_stop_status,
12623 describe_other_breakpoints, check_duplicates, clear_command):
12624 Coding standard fixes.
12626 * target.c (target_xfer_memory): Add spaces, coding standard.
12627 (do_xfer_memory): Add missing line to trust-readonly
12628 code: check bfd SEC_READONLY flag for section.
12630 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12632 * PROBLEMS: Fix typo, 5.1->5.1.1.
12634 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12636 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12637 data symbols, since we search based on textlow and texthigh.
12638 (find_pc_sect_symtab): Likewise.
12640 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12642 * defs.h (vwarning): Declare.
12643 * utils.c (vwarning): New function.
12644 (warning): Call vwarning.
12645 (warning_begin): Delete function.
12647 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12648 the warning message.
12649 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12652 2002-01-30 Michael Snyder <msnyder@redhat.com>
12654 * NEWS: Mention "set trust-readonly-sections" command.
12655 Mention generate-core-file command.
12657 2002-01-15 Michael Snyder <msnyder@redhat.com>
12659 * target.c: New command, "set trust-readonly-sections on".
12660 (do_xfer_memory): Honor the suggestion to trust readonly sections
12661 by reading them from the object file instead of from the target.
12662 (initialize_targets): Register command "set trust-readonly-sections".
12664 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12666 * parse.c (target_map_name_to_register): Simplify, search regs and
12667 pseudo-regs using a single loop.
12669 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12671 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12673 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12675 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12676 * config/i386/i386v42mp.mh: Add i387-nat.o .
12677 * i386v4-nat.c: Include i387-nat.h.
12678 (supply_fpregset): Use i387_supply_fsave.
12679 (fill_fpregset): Use i387_fill_fsave.
12681 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12683 * arm-tdep.c (arm_call_dummy_words): Define.
12684 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12685 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12686 (CALL_DUMMY_WORDS): Define.
12687 (arm_call_dummy_words): Declare.
12688 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12689 (arm_linux_call_dummy_words): Declare.
12691 2002-01-30 Andreas Schwab <schwab@suse.de>
12693 * m68klinux-nat.c: Fix last change to use regcache_collect
12694 instead of referencing registers[] directly.
12696 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12698 * parse.c (target_map_name_to_register): Delete code wrapped in
12699 #ifdef REGISTER_NAME_ALIAS_HOOK.
12701 2002-01-28 Michael Snyder <msnyder@redhat.com>
12703 * regcache.c (legacy_read_register_gen): Need to be able to
12704 read pseudo-register as well as real register.
12705 (legacy_write_register_gen): Ditto.
12707 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12709 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12710 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12711 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12712 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12713 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12714 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12715 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12716 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12717 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12718 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12719 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12720 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12721 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12722 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12723 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12724 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12725 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12726 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12727 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12728 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12730 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12732 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12733 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12734 (initialize_current_architecture): Update target_byte_order using
12735 information from BFD.
12736 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12737 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12739 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12741 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12742 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12744 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12745 #ifdef INVALID_FLOAT.
12746 * infcmd.c (do_registers_info): Ditto.
12747 * values.c (unpack_double): Ditto. Add comment.
12749 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12750 already commented out.
12752 2002-01-26 Andreas Schwab <schwab@suse.de>
12754 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12755 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12756 registers and add support for PTRACE_GETREGS.
12758 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12760 GDB 5.1.1 released from 5.1 branch.
12761 * NEWS: Add 5.1.1 news.
12762 * README: Sync with 5.1 branch.
12764 2002-01-23 Fred Fish <fnf@redhat.com>
12766 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12767 stabstring on initial malloc. Reallocing will copy it for us,
12770 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12772 * Makefile.in (hpread_h): Delete.
12773 (HFILES_NO_SRCDIR): Remove hpread.h.
12774 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12775 (hpread.o): Update dependencies.
12776 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12778 * hp-psymtab-read.c: Remove file.
12779 * hp-symtab-read.c: Remove file.
12780 * hpread.h: Remove file.
12782 * hpread.c: Merge all contents of hp-psymtab-read.c,
12783 hp-symtab-read.c and hpread.h into this file, as it was prior to
12786 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12787 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12788 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12789 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12791 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12793 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12794 fill_gregset): Call gdbarch_tdep() just once, assign result to
12795 variable and use that, instead of calling the function several
12798 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12800 * configure.host: Accept sparcv9 as alias for sparc64.
12801 * configure.tgt: Likewise.
12803 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12805 * solib-aix5.c (build_so_list_from_mapfile)
12806 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12807 arguments is not reversed.
12808 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12809 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12811 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12813 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12814 modified version of obsolete sh_fetch_pseudo_register.
12815 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12816 (sh4_register_read): New function.
12817 (sh_pseudo_register_write): New function. Renamed and modified
12818 version of obsolete sh_store_pseudo_register.
12819 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12820 (sh4_register_write): New function.
12821 (sh_gdbarch_init): Remove setting of gdbarch function
12822 fetch_pseudo_register and store_pseudo_register. Remove setting of
12823 register_convert_to_raw, register_convert_to_virtual,
12824 register_convertible.
12825 (sh_sh4_register_convertible): Delete. No longer needed. All is
12826 taken care by architecture specific functions
12827 register_read/register_write.
12828 (sh_sh4_register_convert_to_virtual): Make static.
12829 (sh_sh4_register_convert_to_raw): Ditto.
12831 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12833 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12834 (floatformat_is_nan, floatformat_mantissa): Ditto.
12836 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12837 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12838 builtin_type_ieee_double_little,
12839 builtin_type_ieee_double_littlebyte_bigword,
12840 builtin_type_m68881_ext, builtin_type_i960_ext,
12841 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12842 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12843 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12844 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12846 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12848 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12849 parameter. Set frameless flag if it exists and depended of
12850 whether the scanned function is frameless or not.
12851 (xstormy16_skip_prologue): If function is frameless, return
12852 result of xstormy16_scan_prologue().
12853 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12856 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12858 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12859 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12860 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12861 sh_sh4_register_byte, sh_sh4_register_raw_size,
12862 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12863 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12864 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12865 sh_store_pseudo_register, sh_do_pseudo_register): Call
12866 gdbarch_tdep() just once, assign result to variable and use that,
12867 instead of calling the function several times.
12869 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12871 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12872 macros instead of LAST_FPU_CTRL_REGNUM.
12873 (store_register): Likewise.
12875 2002-01-21 Jim Blandy <jimb@redhat.com>
12877 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12878 is up-to-date before running the program, not just when a program
12881 2002-01-21 Fred Fish <fnf@redhat.com>
12883 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12884 when we have found all instructions we are looking for.
12886 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12888 * arm-tdep.c (arm_register_name): New function.
12889 (arm_registers_names): Make static.
12890 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12891 (arm_register_name): Declare.
12892 (REGISTER_NAME): Use it.
12894 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12895 Kevin Buettner <kevinb@redhat.com>
12897 Convert arm targets to new FRAME interface.
12898 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12899 (arm_frame_find_save_regs): Delete.
12900 (arm_frame_init_saved_regs): New.
12901 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12902 Allocate extra_info as required. Convert all uses of fsr.regs
12903 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12905 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12906 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12907 (check_prologue_cache, save_prologue_cache): Likewise.
12908 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12909 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12910 (FRAME_FIND_SAVED_REGS): Delete.
12911 (arm_frame_find_saved_regs): Delete prototype.
12912 (arm_frame_init_saved_regs): New prototype.
12913 (FRAME_INIT_SAVED_REGS): Define.
12915 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12917 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12919 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12921 From Jeff Law <law@redhat.com>:
12922 * infttrace.c: Include <sys/pstat.h>.
12923 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12924 exec file if the ttrace equivalent fails.
12926 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12928 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12929 (closeLogFile): Ditto.
12931 2002-01-20 Michael Chastain <mec@shout.net>
12933 * top.c (print_gdb_version): Bump copyright year to 2002.
12935 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12937 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12938 Zannoni and Eli Zaretskii.
12940 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12942 * buildsym.c: Update copyright years.
12943 * c-typeprint.c: Likewise.
12944 * dwarf2read.c: Likewise.
12945 * f-typeprint.c: Likewise.
12946 * gdbtypes.c: Likewise.
12947 * gdbtypes.h: Likewise.
12948 * hp-symtab-read.c: Likewise.
12949 * hpread.c: Likewise.
12950 * mdebugread.c: Likewise.
12951 * p-typeprint.c: Likewise.
12953 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12955 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12956 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12957 byte-order selectable.
12958 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12959 * arch-utils.c: Ditto.
12960 (set_endian): Ditto.
12961 (set_endian_from_file): Ditto.
12962 * gdbserver/low-sim.c (create_inferior): Ditto.
12963 * gdbarch.sh: Ditto.
12964 * gdbarch.h: Re-generate.
12965 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12966 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12967 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12968 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12969 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12970 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12971 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12972 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12974 * config/mips/tm-wince.h: Remove #undef of macro
12975 TARGET_BYTE_ORDER_SELECTABLE.
12976 * config/sh/tm-wince.h: Ditto.
12978 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12980 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12981 member function fields. Add accessor macro
12982 TYPE_FN_FIELD_ARTIFICIAL.
12983 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12984 * c-typeprint.c (c_type_print_base): Skip artificial member
12987 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12989 * f-typeprint.c: Delete unused function f_type_print_args.
12990 * p-typeprint.c: Delete unused function pascal_type_print_args.
12992 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12994 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12995 comment. Add ``artificial'' to ``union field_location''.
12997 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12999 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13000 * mdebugread.c (parse_symbol): Likewise.
13001 * stabsread.c (define_symbol): Likewise.
13002 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13003 initializing TYPE_FIELD_BITPOS to n (obsolete).
13004 (hpread_doc_function_type): Likewise.
13005 * hpread.c (hpread_function_type): Likewise.
13007 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13009 * configure.in (host_makefile_frag): Only require a host makefile
13010 fragment when a native build.
13011 * configure: Re-generate.
13013 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13015 * doublest.h (floatformat_from_type): Declare.
13016 * doublest.c (floatformat_from_type): New function.
13017 (convert_typed_floating): Use.
13019 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13020 call to function floatformat_from_type.
13022 * gdbarch.sh (IEEE_FLOAT): Delete.
13023 * gdbarch.h, gdbarch.c: Re-generate.
13024 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13025 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13026 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13027 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13028 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13029 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13030 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13031 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13032 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13033 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13034 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13035 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13037 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13038 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13039 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13040 * sh-tdep.c (sh_gdbarch_init): Ditto.
13041 * mips-tdep.c (mips_gdbarch_init): Ditto.
13042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13043 * cris-tdep.c (cris_gdbarch_init): Ditto.
13045 2002-01-20 Jiri Smid <smid@suse.cz>
13047 * configure.host, configure.tgt: Support x86-64.
13048 * NEWS: Note new target x86-64.
13050 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13051 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13052 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13053 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13054 x86-64-linux-nat.o): Fix dependencies.
13056 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13058 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13059 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13060 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13061 * config/sparc/xm-sun4os4.h: Delete file.
13062 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13064 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13066 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13067 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13068 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13069 * config/i386/i386lynx.mh (XM_FILE): Delete.
13070 * config/rs6000/xm-rs6000ly.h: Delete file.
13071 * config/sparc/xm-sparclynx.h: Delete file.
13072 * config/m68k/xm-m68klynx.h: Delete file.
13073 * config/i386/xm-i386lynx.h: Delete file.
13074 * config/xm-lynx.h: Delete file.
13075 * config/djgpp/fnchange.lst: Update.
13077 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13079 * alpha-tdep.c (alpha_register_byte): New function.
13080 (alpha_register_raw_size): Ditto.
13081 (alpha_register_virtual_size): Ditto.
13082 (alpha_skip_prologue_internal): Renamed from
13083 alpha_skip_prologue.
13084 (alpha_skip_prologue): New version that calls
13085 alpha_skip_prologue_internal.
13086 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13087 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13088 second argument from alpha_skip_prologue.
13089 (REGISTER_BYTE): Use alpha_register_byte.
13090 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13091 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13092 (FRAMELESS_FUNCTION_INVOCATION): Use
13093 generic_frameless_function_invocation_not.
13094 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13095 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13097 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13099 * config/mips/xm-news-mips.h: Delete file.
13100 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13102 * config/m88k/xm-m88k.h: Delete file.
13103 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13104 * config/m88k/xm-delta88v4.h: Ditto.
13105 * config/m88k/xm-delta88.h: Ditto.
13107 * config/alpha/xm-fbsd.h: Delete file.
13108 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13110 * config/sparc/xm-sparc.h: Delete file.
13111 * Makefile.in (xm-sun4os4.h): Delete dependency.
13112 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13113 * config/sparc/xm-sun4os4.h: Ditto.
13114 * config/sparc/xm-linux.h: Ditto.
13116 * config/i386/xm-windows.h: Delete file.
13118 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13120 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13121 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13123 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13125 * alpha-tdep.c (alpha_call_dummy_words): New.
13126 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13127 (CALL_DUMMY_P): Define.
13128 (CALL_DUMMY_WORDS): Define.
13129 (SIZEOF_CALL_DUMMY_WORDS): Define.
13131 2002-01-19 Per Bothner <per@bothner.com>
13133 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13134 isn't NULL, which can happen with some gcj-3.x-produced code.
13136 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13138 * alpha-tdep.c (alpha_register_virtual_type): New function.
13139 (alpha_init_frame_pc_first): Ditto.
13140 (alpha_fix_call_dummy): Ditto.
13141 (alpha_store_struct_return): Ditto.
13142 (alpha_extract_struct_value_address): Ditto.
13143 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13144 alpha_register_virtual_type.
13145 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13146 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13147 alpha_extract_struct_value_address.
13148 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13149 (INIT_FRAME_PC): Use init_frame_pc_noop.
13150 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13152 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13154 * i386gnu-nat.c: Include "i386-tdep.h".
13155 (fetch_fpregs): Simplify code dealing with uninitialized floating
13156 point states such that it doesn't require FP7_REGNUM.
13158 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13160 * alpha-tdep.c (frame_extra_info): New.
13161 (alpha_find_saved_regs): Make static. Use
13163 (alpha_frame_init_saved_regs): New function.
13164 (alpha_frame_saved_pc): Use frame->extra_info.
13165 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13166 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13167 (init_extra_frame_info): Rename to...
13168 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13169 (alpha_print_extra_frame_info): New function.
13170 (alpha_frame_locals_address): Ditto.
13171 (alpha_frame_args_address): Ditto.
13172 (alpha_pop_frame): Use frame->extra_info.
13173 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13174 alpha_frame_args_address.
13175 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13176 (alpha_find_saved_regs): Remove prototype.
13177 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13178 (EXTRA_FRAME_INFO): Remove.
13179 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13180 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13182 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13184 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13185 (alpha_cannot_fetch_register): Ditto.
13186 (alpha_cannot_store_register): Ditto.
13187 (alpha_register_convertible): Ditto.
13188 (alpha_use_struct_convention): Ditto.
13189 * config/alpha/tm-alpha.h: Update copyright years.
13190 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13191 (INNER_THAN): Use core_addr_lessthan.
13192 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13193 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13194 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13195 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13196 (FRAME_CHAIN): Remove unnecessary cast.
13198 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13200 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13203 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13205 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13206 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13207 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13208 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13209 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13210 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13211 * x86-64-linux-nat.c: Ditto.
13213 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13215 * alpha-tdep.c (alpha_register_name): New function.
13216 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13217 (REGISTER_NAME): Define.
13219 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13221 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13223 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13225 * alpha-tdep.c: Update copyright years.
13226 (alpha_next_pc): New function.
13227 (alpha_software_single_step): Ditto.
13228 * config/alpha/tm-alpha.h: Add prototype for
13229 alpha_software_single_step.
13231 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13233 * alphabsd-nat.c: Update copyright years.
13234 (fill_gregset): Use regcache_collect.
13235 (fill_fpregset): Likewise.
13236 (fetch_inferior_registers): Only fetch integer registers
13237 if requested to do so.
13238 (store_inferior_registers): Only store integer registers
13239 if requested to do so.
13241 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13243 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13244 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13245 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13246 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13247 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13248 * config/arm/linux.mh (XDEPFILES): Delete.
13249 * config/arm/nbsd.mh (XDEPFILES): Delete.
13250 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13251 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13252 * config/i386/i386m3.mh (XDEPFILES): Delete.
13253 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13254 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13255 * config/i386/fbsd.mh (XDEPFILES): Delete.
13256 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13257 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13258 * config/i386/i386v4.mh (XDEPFILES): Delete.
13259 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13260 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13261 * config/i386/i386aix.mh (XDEPFILES): Delete.
13262 * config/i386/go32.mh (XDEPFILES): Delete.
13263 * config/i386/cygwin.mh (XDEPFILES): Delete.
13264 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13265 * config/i386/i386mach.mh (XDEPFILES): Delete.
13266 * config/i386/i386v32.mh (XDEPFILES): Delete.
13267 * config/i386/linux.mh (XDEPFILES): Delete.
13268 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13269 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13270 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13271 * config/i386/i386sco.mh (XDEPFILES): Delete.
13272 * config/i386/i386v.mh (XDEPFILES): Delete.
13273 * config/i386/nbsd.mh (XDEPFILES): Delete.
13274 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13275 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13276 * config/i386/symmetry.mh (XDEPFILES): Delete.
13277 * config/i386/obsd.mh (XDEPFILES): Delete.
13278 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13279 * config/ia64/linux.mh (XDEPFILES): Delete.
13280 * config/ia64/aix.mh (XDEPFILES): Delete.
13281 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13282 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13283 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13284 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13285 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13286 * config/m68k/linux.mh (XDEPFILES): Delete.
13287 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13288 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13289 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13290 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13291 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13292 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13293 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13294 * config/m88k/delta88.mh (XDEPFILES): Delete.
13295 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13296 * config/m88k/m88k.mh (XDEPFILES): Delete.
13297 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13298 * config/mips/linux.mh (XDEPFILES): Delete.
13299 * config/mips/irix6.mh (XDEPFILES): Delete.
13300 * config/mips/irix5.mh (XDEPFILES): Delete.
13301 * config/mips/irix4.mh (XDEPFILES): Delete.
13302 * config/mips/irix3.mh (XDEPFILES): Delete.
13303 * config/mips/decstation.mh (XDEPFILES): Delete.
13304 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13305 (NATDEPFILES): Move core-aout.o to here.
13306 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13307 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13308 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13309 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13310 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13311 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13312 * config/pa/hpux11.mh (XDEPFILES): Delete.
13313 * config/powerpc/aix.mh (XDEPFILES): Delete.
13314 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13315 * config/powerpc/linux.mh (XDEPFILES): Delete.
13316 * config/romp/rtbsd.mh: Rename XDEPFILES.
13317 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13318 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13319 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13320 * config/s390/s390.mh (XDEPFILES): Delete.
13321 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13322 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13323 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13324 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13325 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13326 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13327 * config/sparc/linux.mh (XDEPFILES): Delete.
13328 * config/vax/vaxult.mh (XDEPFILES): Delete.
13329 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13330 * Makefile.in (DEPFILES): Remove XDEPFILES.
13332 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13334 * utils.c (internal_verror): Fix comments, default is yes not no.
13335 Update queries to match. Default to quit and dump core.
13337 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13339 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13341 * defs.h, event-top.c, gdbcmd.h: Ditto.
13342 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13343 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13344 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13345 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13346 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13347 * mi/mi-main.c:Ditto.
13349 * stack.c, symfile.c: Update copyright.
13351 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13353 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13354 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13355 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13356 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13358 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13360 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13361 * gdbserver/low-lynx.c (myattach): Likewise.
13362 * gdbserver/low-nbsd.c (myattach): Likewise.
13363 * gdbserver/low-sim.c (myattach): Likewise.
13364 * gdbserver/low-sparc.c (myattach): Likewise.
13365 * gdbserver/low-sun3.c (myattach): Likewise.
13367 * gdbserver/low-linux.c (myattach): New function.
13369 * gdbserver/server.c (attach_inferior): New function.
13370 (main): Handle "--attach".
13372 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13374 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13377 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13379 * c-typeprint.c (is_type_conversion_operator): Add additional
13380 check for non-conversion operators.
13382 2002-01-15 Michael Snyder <msnyder@redhat.com>
13384 * linux-proc.c: Add "info proc" command, a la procfs.c.
13385 (read_mapping): New function, abstract and re-use code.
13386 (linux_find_memory_regions): Use new func read_mapping.
13387 (linux_info_proc_cmd): New function, implement "info proc".
13388 (_initialize_linux_proc): Add new command "info proc".
13390 2002-01-15 Michael Snyder <msnyder@redhat.com>
13392 * symfile.c (generic_load): Use bfd_map_over_sections method
13393 instead of manipulating bfd structure members directly.
13394 (add_section_size_callback): New function, bfd sections callback
13395 used by generic_load.
13396 (load_sections_callback): New function, bfd sections callback
13397 used by generic_load.
13399 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13401 [Based on work by Jim Blandy]
13402 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13403 (builtin_type_vec128): Export.
13404 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13406 (builtin_type_vec128): New builtin type for 128 bit vector
13408 (build_gdbtypes): Initialize builtin_type_v16qi and
13409 builtin_type_v8hi. Create the vec128 register builtin type
13411 (build_builtin_type_vec128): New function.
13412 (_initialize_gdbtypes): Register builtin_type_v16qi and
13413 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13414 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13415 AltiVec register to new builtin type.
13417 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13419 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13422 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13424 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13425 CLEAN_UP_REGISTER_VALUE.
13426 * regcache.c (supply_register): Update only call.
13428 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13430 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13431 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13432 a29k-*-vxworks* targets as obsolete.
13434 2002-01-14 Michael Snyder <msnyder@redhat.com>
13436 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13437 until we can resolve portability issues.
13438 * gregset.h: Remove references to fpxregs.
13439 * gcore.c (gcore_command): Initialize note_sec to NULL.
13441 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13443 * signals.c (target_signal_to_name): Rewrite. Only use
13444 signals[].name when in bounds and non-NULL.
13446 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13448 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13449 * signals.c (target_signal_to_name): Verify that SIG is within the
13450 bounds of the signals array.
13452 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13454 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13456 2002-01-13 Keith Seitz <keiths@redhat.com>
13458 * stack.c (print_frame_info_base): Print the frame's pc
13459 only if when print_frame_info_listing_hook is not defined.
13461 2002-01-13 Keith Seitz <keiths@redhat.com>
13463 * varobj.c (varobj_set_value): Make sure that there were no
13464 errors evaluating the object before attempting to set its
13466 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13467 so this offset adjustment is no longer necessary.
13468 (create_child): Don't set the error flag if the child is
13469 a CPLUS_FAKE_CHILD.
13470 (value_of_child): If value_fetch_lazy fails, return NULL
13471 so that callers will be notified that an error occurred.
13472 (c_value_of_variable): Delay check of variable's validity
13473 until later. We actually want all structs and unions to have
13475 Do not return "???" for variables which could not be evaluated.
13476 This error condition must be returned to the caller so that it
13477 can get the error condition from gdb.
13478 (cplus_name_of_child): Adjust index for vptr before figuring
13479 out the name of the child.
13480 (cplus_value_of_child): If a child's (real) parent is not valid,
13481 don't even bother trying to give a value for it. Just return
13482 an error. Change all instances in this function.
13483 (cplus_type_of_child): If our parent is one of the "fake"
13484 parents, we need to get at the type of the real parent, and
13485 derive the child's true type using this information.
13487 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13489 From 2002-01-09 John Marshall <johnm@falch.net>:
13490 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13491 sources.redhat.com, and tweak some related URLs which had
13492 suffered from linkrot.
13494 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13497 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13498 structures passed in registers.
13500 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13502 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13503 white space which prevented compilation. Reported by DSK
13504 <dsk@student.unsw.edu.au>.
13506 2002-01-11 Michael Snyder <msnyder@redhat.com>
13508 * symfile.c (build_section_addr_info_from_section_tab):
13509 Use bfd access method instead of manipulating bfd directly.
13510 (syms_from_objfile): Ditto.
13511 (simple_overlay_update_1): Ditto.
13512 (simple_overlay_update): Ditto.
13513 (generic_load): Ditto.
13514 (overlay_unmapped_address): FIXME comment, bfd access methods.
13515 (sections_overlap): FIXME comment, bfd access methods.
13516 (pc_in_mapped_range): FIXME comment, bfd access methods.
13517 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13518 (section_is_mapped): FIXME comment, bfd access methods.
13519 (section_is_overlay): FIXME comment, bfd access methods.
13521 * symfile.c (generic_load): Whitespace and long line cleanups.
13522 Remove duplicate variable, change several local variables to
13523 more appropriate data types.
13524 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13526 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13528 From Peter Schauer:
13529 * language.c (longest_local_hex_string_custom): Use phex_nz to
13530 convert NUM to a hex string.
13532 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13534 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13536 Update Copyright year.
13538 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13540 * language.c (longest_raw_hex_string): Delete unused function.
13542 2002-01-11 Petr Sorfa <petrs@caldera.com>
13544 * MAINTAINERS (write-after-approval): Add myself.
13545 * dwarf2read.c (read_tag_string_type): Handling of
13547 (read_tag_string_type): FORTRAN fix to prevent propagation of
13549 (set_cu_language): Handling of DW_LANG_Fortran95
13551 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13553 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13554 GETPID(inferior_ptid).
13555 (store_inferior_registers): Likewise.
13557 2002-01-10 Jason Merrill <jason@redhat.com>
13559 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13562 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13564 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13565 and bfd/elf32-sh-nbsd.c.
13567 2002-01-10 Michael Snyder <msnyder@redhat.com>
13569 * NEWS: Mention --pid and corefile/proc-id behavior change.
13571 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13572 * gcore.c: Include cli/cli-decode.h instead of command.h.
13574 * main.c (captured_main): Add new command line option "--pid".
13575 If the second command line argument (following the symbol-file)
13576 begins with a digit, try to attach to it before trying to open
13578 (print_gdb_help): Document the "--pid" argument.
13580 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13582 * completer.c (command_completer): New function.
13584 * completer.h <command_completer>: Add prototype.
13586 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13587 completer for the "help" command.
13589 2002-01-09 Jason Merrill <jason@redhat.com>
13591 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13593 2002-01-09 Michael Snyder <msnyder@redhat.com>
13595 * i386-linux-nat.c (fill_fpxregset): Make global.
13596 (store_fpxregset): Ditto.
13598 * gregset.h (gdb_fpxregset_t): Define.
13599 (supply_fpxregset): Prototype.
13600 (fill_fpxregset): Prototype.
13602 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13604 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13606 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13607 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13608 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13610 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13612 * MAINTAINERS: Update target maintainer rules so that any
13613 Maintainer can approve a tested patch for a maintenance-only
13616 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13618 * MAINTAINERS (write-after-approval): Add myself.
13620 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13623 2002-01-08 Michael Snyder <msnyder@redhat.com>
13625 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13626 real name of the executable, rather than the /proc name.
13628 2002-01-03 Michael Snyder <msnyder@redhat.com>
13630 Implement a "generate-core-file" command in gdb, save target state.
13631 * gcore.c: New file. Implement new command 'generate-core-file'.
13632 Save a corefile image of the current state of the inferior.
13633 * linux-proc.c: Add linux-specific code for saving corefiles.
13634 * target.h (struct target_ops): Add new target vectors for saving
13635 corefiles; to_find_memory_regions and to_make_corefile_notes.
13636 (target_find_memory_regions): New macro.
13637 (target_make_corefile_notes): New macro.
13638 * target.c (update_current_target): Inherit new target methods.
13639 (dummy_find_memory_regions): New place-holder method.
13640 (dummy_make_corefile_notes): New place-holder method.
13641 (init_dummy_target): Initialize new dummy target vectors.
13642 * exec.c (exec_set_find_memory_regions): New function.
13643 Allow the exec_ops vector for memory regions to be taken over.
13644 (exec_make_note_section): New function, target vector method.
13645 * defs.h (exec_set_find_memory_regions): Export prototype.
13646 * procfs.c (proc_find_memory_regions): New function, corefile method.
13647 (procfs_make_note_section): New function, corefile method.
13648 (init_procfs_ops): Set new target vector pointers.
13649 (find_memory_regions_callback): New function.
13650 (procfs_do_thread_registers): New function.
13651 (procfs_corefile_thread_callback): New function.
13652 * sol-thread.c (sol_find_memory_regions): New function.
13653 (sol_make_note_section): New function.
13654 (init_sol_thread_ops): Initialize new target vectors.
13655 * inftarg.c (inftarg_set_find_memory_regions): New function.
13656 Allow to_find_memory_regions vector to be taken over.
13657 (inftarg_set_make_corefile_notes): New function.
13658 Allow to_make_corefile_notes vector to be taken over.
13659 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13660 interface layer if not target_has_execution (may be a corefile).
13661 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13662 * config/sparc/sun4sol2.mh: Ditto.
13663 * config/alpha/alpha-linux.mh: Ditto.
13664 * config/arm/linux.mh: Ditto.
13665 * config/i386/x86-64linux.mh: Ditto.
13666 * config/ia64/linux.mh: Ditto.
13667 * config/m68k/linux.mh: Ditto.
13668 * config/mips/linux.mh: Ditto.
13669 * config/powerpc/linux.mh: Ditto.
13670 * config/sparc/linux.mh: Ditto.
13672 2002-01-07 Michael Snyder <msnyder@redhat.com>
13674 * arm-linux-nat.c: Remove references to regcache.c internal data
13675 (registers[] and register_valid[]).
13677 2002-01-07 Michael Snyder <msnyder@redhat.com>
13679 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13680 so that attaching to a pid will automatically read the process's
13681 symbol file and shlibs.
13682 * Makefile.in: Add rule for linux-proc.o.
13683 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13684 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13685 * config/arm/linux.mh: Ditto.
13686 * config/i386/linux.mh: Ditto.
13687 * config/i386/x86-64linux.mh: Ditto.
13688 * config/ia64/linux.mh: Ditto.
13689 * config/m68k/linux.mh: Ditto.
13690 * config/mips/linux.mh: Ditto.
13691 * config/powerpc/linux.mh: Ditto.
13692 * config/sparc/linux.mh: Ditto.
13694 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13696 * win32-nat.c: Add i386-tdep.h dependency.
13698 2002-01-07 Michael Snyder <msnyder@redhat.com>
13700 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13701 instead of bfd_get_arch_size. Don't bail out just because
13702 there's no exec_bfd.
13704 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13705 * p-valprint.c (pascal_object_print_value): Ditto.
13706 * somread.c (som_symtab_read): Ditto.
13707 * symfile.c (simple_free_overlay_region_table): Ditto.
13708 * valops.c (value_assign): Ditto.
13710 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13711 use tilde_expand and strerror for opening save-tracepoints file.
13713 * thread-db.c (thread_db_new_objfile): Indendation fix.
13715 * infptrace.c (GDB_MAX_ALLOCA): New define.
13716 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13717 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13718 can be overridden with whatever value is appropriate to the host).
13719 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13720 alloca to allocate potentially large buffer.
13721 * rs6000-nat.c (child_xfer_memory): Ditto.
13722 * symm-nat.c (child_xfer_memory): Ditto.
13723 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13725 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13727 From Nick Clifton <nickc@redhat.com>
13728 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13730 2002-01-07 Michael Snyder <msnyder@redhat.com>
13732 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13733 Don't use exec_bfd if it's NULL.
13735 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13737 * valops.c (value_arg_coerce): Fix formatting.
13739 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13741 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13742 * gnu-nat.c: Ditto.
13744 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13746 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13747 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13748 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13749 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13750 z8k-coff have not been multi-arched. Update z8k-coff build
13753 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13755 * MAINTAINERS: Mark a29k target as obsolete.
13756 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13757 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13759 * NEWS: Note that a29k targets are obsolete.
13760 * a29k-tdep.c: Mark as obsolete.
13761 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13762 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13763 a29k-*-vxworks* targets as obsolete.
13764 * remote-adapt.c: Obsolete.
13765 * remote-eb.c: Obsolete.
13766 * remote-mm.c: Obsolete.
13767 * remote-udi.c: Obsolete.
13768 * config/a29k/a29k-udi.mt: Obsolete.
13769 * config/a29k/a29k.mt: Obsolete.
13770 * config/a29k/tm-a29k.h: Obsolete.
13771 * config/a29k/tm-vx29k.h: Obsolete.
13772 * config/a29k/vx29k.mt: Obsolete.
13774 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13776 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13777 with BFD_ENDIAN_BIG.
13779 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13781 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13782 * configure, config.in: Re-generate.
13783 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13784 * defs.h: Do not include <endian.h>.
13786 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13788 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13789 * config.in: Regenerate.
13790 * configure.in: Update copyright years.
13791 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13792 * configure: Regenerate.
13793 * i386bsd-nat.c: Update copyright years.
13794 (fill_gregset): Use regcache_collect.
13795 (fetch_inferior_registers): Only fetch integer registers
13796 if requested to do so. Add support for XMM registers
13797 using PT_GETXMMREGS.
13798 (store_inferior_registers): Only store integer registers
13799 if requested to do so. Add support for XMM registers
13800 using PT_SETXMMREGS.
13801 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13802 (store_inferior_registers): Remove.
13803 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13804 (fetch_elfcore_registers): New function.
13805 (i386nbsd_elfcore_fns): New.
13806 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13807 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13809 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13810 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13811 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13812 * config/i386/tm-nbsd.h: Update copyright years.
13813 (HAVE_SSE_REGS): Define.
13814 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13815 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13816 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13817 (SIGCONTEXT_PC_OFFSET): Remove.
13818 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13820 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13822 * configure.tgt: Remove powerpc-*-macos* target.
13823 * config/m68k/xm-mpw.h: Delete file.
13824 * config/xm-mpw.h: Delete file.
13825 * ser-mac.c: Delete file.
13826 * mpw-make.sed: Delete file.
13827 * mpw-config.in: Delete file.
13828 * mac-xdep.c: Delete file.
13829 * mac-gdb.r: Delete file.
13830 * mac-defs.h: Delete file.
13831 * mac-nat.c: Delete file.
13832 * config/powerpc/macos.mh: Delete file.
13833 * config/powerpc/macos.mt: Delete file.
13834 * config/powerpc/nm-macos.h: Delete file.
13835 * config/powerpc/tm-macos.h: Delete file.
13836 * source.c (openp, open_source_file): Remove obsolete code.
13837 * top.c (gdb_readline): Ditto.
13838 * utils.c (query): Ditto.
13839 * event-top.c (display_gdb_prompt): Ditto.
13840 * Makefile.in (ser-mac.o): Delete obsolete target.
13843 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13845 * defs.h (BIG_ENDIAN): Delete macro definition.
13846 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13847 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13848 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13849 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13850 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13851 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13852 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13853 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13854 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13855 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13856 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13857 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13858 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13859 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13860 * gdbarch.c: Re-generate.
13862 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13864 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13867 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13869 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13871 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13873 * value.h (value_ptr): Delete typedef.
13875 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13877 * i386nbsd-nat.c: Update copyright years.
13878 Include i386-tdep.h.
13880 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13882 * stabsread.c: Update copyright years.
13884 From Debashis Mahata <debashis.mahata@wipro.com>:
13885 (read_struct_fields): Deal with Sun C compiler erroneous stab
13886 output for structs and unions.
13889 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13891 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13894 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13896 * cp-abi.c: Fix whitespace.
13897 (baseclass_offset): New wrapper function.
13898 * cp-abi.h (baseclass_offset): Add prototype.
13899 (struct cp_abi_ops): Add baseclass_offset pointer.
13901 * valops.c (vb_match): Move to...
13902 * gnu-v2-abi.c (vb_match): here.
13903 * valops.c (baseclass_offset): Move to...
13904 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13906 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13908 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13909 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13910 * hpacc-abi.c (init_hpacc_ops): Likewise.
13912 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13914 * valops.c (find_overload_match): Accept obj as a
13915 reference parameter. Update it before returning.
13916 * value.h (find_overload_match): Update prototype.
13917 * eval.c (evaluate_subexp_standard): Pass object to
13918 find_overload_match by reference.
13920 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13922 * valarith.c: Replace value_ptr with struct value pointer. Remove
13923 register attribute from value declarations.
13926 * scm-lang.c (scm_lookup_name): Ditto.
13928 2002-01-03 Michael Snyder <msnyder@redhat.com>
13930 Abstract the functionality of iterating over mapped memory
13931 regions into a general purpose iterator function.
13932 * procfs.c (iterate_over_mappings): New function, general purpose
13933 iterator for memory sections.
13934 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13935 (solib_mappings_callback): New function, callback for above.
13936 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13937 (info_mappings_callback): New function, callback for above.
13939 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13941 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13943 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13944 * i386-tdep.c: Include "elf-bfd.h".
13945 (process_note_abi_tag_sections): New function.
13946 (i386_gdbarch_init): Add code to recognize various OS/ABI
13949 * maint.c (_initialize_maint_cmds): Add missing \ in
13952 For older changes see ChangeLog-2001
13958 version-control: never