1 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
3 * ia64-linux-nat.c: Include gdb_string.h.
5 * ia64-linux-nat.c: Ditto.
7 2002-12-05 Andrew Cagney <ac131313@redhat.com>
9 * gdbthread.h: Include "frame.h".
10 (struct thread_info): Replace step_frame_address with
12 * inferior.h: Include "frame.h".
13 (step_frame_id): Replace external variable step_frame_address.
14 * gdbthread.h (save_infrun_state): Replace step_frame_address
15 parameter with step_frame_id parameter.
16 (load_infrun_state): Ditto.
17 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
18 * infcmd.c (step_frame_id, step_1, step_once): Update.
19 * thread.c (load_infrun_state, save_infrun_state): Update.
20 * infrun.c (clear_proceed_status, save_inferior_status): Update.
21 (handle_inferior_event, step_over_function): Update.
22 (normal_stop, context_switch, restore_inferior_status): Update.
23 (struct inferior_status): Replace step_frame_address with
26 2002-12-05 David Carlton <carlton@math.stanford.edu>
28 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
29 DW_TAG_member as well as a declaration as being a C++ static data
31 (read_structure_scope): Combine tests for DW_TAG_member and
34 2002-12-05 David Carlton <carlton@math.stanford.edu>
36 * linespec.c (decode_compound): New function.
37 (decode_line_1): Move code into decode_compound.
39 2002-12-05 David Carlton <carlton@math.stanford.edu>
41 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
43 (lookup_symbol_aux): Do the 'field_of_this' check before checking
44 the static block. See PR gdb/804.
46 2002-12-05 David Carlton <carlton@math.stanford.edu>
48 * symtab.c (lookup_symbol_aux_block): New function.
49 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
51 2002-12-05 Andrew Cagney <ac131313@redhat.com>
53 * gdbarch.sh: Dump the predicate function and macro values.
54 (read): Print error on standard error.
55 * gdbarch.c: Regenerate.
57 2002-12-04 Kevin Buettner <kevinb@redhat.com>
59 * Makefile.in (mips_tdep_h): Define.
60 (mips-tdep.o): Add mips_tdep_h to dependency list.
61 * mips-tdep.h: New file.
62 * mips-tdep.c (mips-tdep.h): Include.
63 (enum mips_abi): Move to mips-tdep.h.
64 (mips_abi): New function.
66 2002-12-04 David Carlton <carlton@math.stanford.edu>
68 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
70 2002-12-04 David Carlton <carlton@math.stanford.edu>
72 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
74 (lookup_symbol_aux_minsyms): New function.
76 2002-12-04 J. Brobecker <brobecker@gnat.com>
78 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
80 2002-12-04 J. Brobecker <brobecker@gnat.com>
82 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
83 which is an obsolete macro name.
85 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
87 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
88 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
90 2002-12-03 H.J. Lu (hjl@gnu.org)
92 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
93 (create_breakpoints): Make sure the addr_string field is not
96 2002-12-03 Andrew Cagney <ac131313@redhat.com>
98 * sparc-nat.c (fetch_inferior_registers)
99 (store_inferior_registers): Add comment on problem of LWP vs
102 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
103 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
104 (lin_lwp_store_registers): Remove.
105 (init_lin_lwp_ops): Use fetch_inferior_registers
106 and store_inferior_registers directly.
107 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
108 (store_inferior_registers): Likewise.
111 2002-12-03 Andrew Cagney <ac131313@redhat.com>
113 * frame.h (get_frame_id): Convert to a function.
114 (null_frame_id, frame_id_p): Declare.
115 (frame_id_eq, frame_id_inner): Declare.
116 (frame_id_build): New function.
117 * frame.c (get_frame_id): Update. Use null_frame_id.
118 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
120 (null_frame_id, frame_id_p): Define.
121 (frame_id_eq, frame_id_inner): Define.
122 (frame_id_build): New function.
123 * varobj.c (varobj_create): Update.
124 (varobj_update): Update.
125 * valops.c (value_assign): Update.
126 (new_root_variable): Update.
127 * infrun.c (save_inferior_status): Update.
128 * breakpoint.c (watch_command_1): Update.
130 2002-12-03 J. Brobecker <brobecker@gnat.com>
132 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
135 2002-12-03 Andrew Cagney <cagney@redhat.com>
137 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
140 * PROBLEMS: Mention PR gdb/725.
142 2002-12-03 Andreas Schwab <schwab@suse.de>
144 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
146 2002-12-02 Adam Fedor <fedor@gnu.org>
147 Klee Dienes <kdienes@apple.com>
149 * objc-lang.c (objc_printstr): Add width arg to match
151 (compare_selectors): Add 'const' to arg types.
152 (compare_classes): Likewise.
153 (find_imps): Cast msym pointer to avoid compiler warning.
154 (print_object_command): Validate the address before
155 passing it to the print routine.
156 (find_objc_msgcall_submethod): Change function argument to
158 * objc-lang.h: Add 'extern' to all function declarations.
159 (value_nsstring): Add declaration.
161 2002-12-02 J. Brobecker <brobecker@gnat.com>
163 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
164 Fixes a build failure on HP/UX.
166 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
168 (hpread_has_name): Advance declaration to avoid a compilation warning.
169 (pst_syms_count): Add missing variable type. By change, the compiler
170 was defaulting to int, which seems a good choice. Fixes a compilation
172 (pst_syms_size): Likewise.
174 2002-12-02 J. Brobecker <brobecker@gnat.com>
176 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
177 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
178 later to set the proper gdbarch methods depending on the osabi.
179 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
181 2002-12-02 J. Brobecker <brobecker@gnat.com>
183 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
184 * osabi.c (gdb_osabi_name): Add strings images for the two new
186 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
188 2002-12-02 Andrew Cagney <ac131313@redhat.com>
190 * MAINTAINERS (Java): Global maintainers are responible for Java.
191 (Past Maintainers): Mention both Anthony Green and Per Bothner as
192 part Java maintainers.
194 2002-12-02 J. Brobecker <brobecker@gnat.com>
196 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
197 Fixes a compilation failure on AiX.
199 2002-12-02 J. Brobecker <brobecker@gnat.com>
201 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
202 why aix-thread.o is not listed.
204 2002-12-01 Andrew Cagney <ac131313@redhat.com>
206 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
207 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
208 * gdbarch.h, gdbarch.c: Re-generate.
209 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
210 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
211 * config/pa/tm-hppa.h, frame.h: Update.
212 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
213 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
214 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
215 * cris-tdep.c, alpha-tdep.c: Update.
216 * frame.c (set_unwind_by_pc, create_new_frame): Use either
217 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
218 (get_prev_frame): Ditto.
220 2002-11-30 Andrew Cagney <cagney@redhat.com>
222 * exec.c (xfer_memory): Replace boolean with int.
223 * p-exp.y: Use 0 instead of false.
224 * corelow.c (gdb_check_format): Change return type to int from
226 * utils.c: Don't include <curses.h> or <term.h> first.
228 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
230 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
231 (m68hc11_register_byte): Remove.
232 (m68hc11_gdbarch_init): Don't set the above.
234 2002-11-29 Andrew Cagney <cagney@redhat.com>
236 * remote-mips.c (mips_initialize): Force a selected frame rebuild
237 by calling get_selected_frame.
238 * ocd.c (ocd_start_remote): Use get_selected frame instead of
239 set_current_frame, create_new_frame, select_frame and
241 * remote-e7000.c (e7000_start_remote): Ditto.
242 * remote-mips.c (common_open): Ditto
243 * remote-rdp.c (remote_rdp_open): Ditto.
245 2002-11-29 Andreas Schwab <schwab@suse.de>
247 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
248 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
249 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
250 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
251 read_memory_unsigned_integer instead of read_memory_integer when
252 dealing with addresses and instruction opcodes.
253 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
254 (m68k_linux_frame_saved_pc): Likewise.
256 2002-11-29 Andrew Cagney <ac131313@redhat.com>
258 * stack.c (selected_frame, select_frame): Move from here ...
259 * frame.c (selected_frame, select_frame): ... to here. Include
261 * Makefile.in (frame.o): Update dependencies.
262 * frame.c (get_selected_frame): New function.
263 * frame.h (get_selected_frame): Declare.
264 (deprecated_selected_frame): Rename selected_frame.
265 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
266 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
267 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
268 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
269 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
270 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
271 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
272 * z8k-tdep.c, cli/cli-cmds.c: Update.
274 2002-11-29 Andrew Cagney <ac131313@redhat.com>
276 * frame.h (get_selected_block): Add comments.
278 2002-11-28 Andrew Cagney <ac131313@redhat.com>
280 * frame.c (pc_notcurrent): New function.
281 (find_frame_sal): New function.
282 * frame.h (find_frame_sal): Declare.
283 (struct symtab_and_line): Add opaque declaration.
284 * stack.c (print_frame_info_base): Use find_frame_sal instead of
287 * ada-lang.c (find_printable_frame): Ditto.
289 2002-11-28 J. Brobecker <brobecker@gnat.com>
291 * configure.in: Check that the pthdebug library is recent enough
292 before enabling thread support on native AiX.
293 * configure: Regenerate.
295 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
296 from the list of object files as it is now appended by configure
297 if thread support is enabled.
298 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
299 if thread support is enabled.
301 2002-11-28 Andrew Cagney <cagney@redhat.com>
303 * stack.c (get_selected_block): In-line get_current_block.
304 * frame.h (get_current_block): Delete declaration.
305 * blockframe.c (get_current_block): Delete function.
307 2002-11-28 Andrew Cagney <ac131313@redhat.com>
309 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
310 USE_GENERIC_DUMMY_FRAMES.
311 * gdbarch.h, gdbarch.c: Regenerate.
312 * valops.c, frame.c: Update.
313 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
314 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
315 * config/pa/tm-hppa.h, blockframe.c: Update.
316 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
317 * m68k-tdep.c, alpha-tdep.c: Ditto.
319 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
320 * mips-tdep.c: Ditto.
322 2002-11-27 Andrew Cagney <ac131313@redhat.com>
324 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
325 (USE_GENERIC_DUMMY_FRAMES): Default to true.
326 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
327 * gdbarch.c, gdbarch.h: Re-generate.
328 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
329 (CALL_DUMMY_LOCATION): Delete macro definition.
330 (PC_IN_CALL_DUMMY): Delete macro definitions.
332 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
333 default is already generic_pc_in_call_dummy.
334 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
335 * v850-tdep.c (v850_gdbarch_init): Ditto.
336 * sh-tdep.c (sh_gdbarch_init): Ditto.
337 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
338 * mips-tdep.c (mips_gdbarch_init): Ditto.
339 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
341 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
342 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
343 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
344 * avr-tdep.c (avr_gdbarch_init): Ditto.
346 * arm-tdep.c (arm_gdbarch_init): Do not set
347 use_generic_dummy_frames, default is already 1.
348 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
349 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
350 * v850-tdep.c (v850_gdbarch_init): Ditto.
351 * sh-tdep.c (sh_gdbarch_init): Ditto.
352 * s390-tdep.c (s390_gdbarch_init): Ditto.
353 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
354 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
355 * mips-tdep.c (mips_gdbarch_init): Ditto.
356 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
358 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
359 * i386-tdep.c (i386_gdbarch_init): Ditto.
360 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
361 * frv-tdep.c (frv_gdbarch_init): Ditto.
362 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
363 * cris-tdep.c (cris_gdbarch_init): Ditto.
364 * avr-tdep.c (avr_gdbarch_init): Ditto.
366 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
367 call_dummy_location, default is already AT_ENTRY_POINT.
368 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
369 * v850-tdep.c (v850_gdbarch_init): Ditto.
370 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
371 * sh-tdep.c (sh_gdbarch_init): Ditto.
372 * s390-tdep.c (s390_gdbarch_init): Ditto.
373 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
374 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
375 * mips-tdep.c (mips_gdbarch_init): Ditto.
376 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
378 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
379 * i386-tdep.c (i386_gdbarch_init): Ditto.
380 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
381 * frv-tdep.c (frv_gdbarch_init): Ditto.
382 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
383 * cris-tdep.c (cris_gdbarch_init): Ditto.
384 * avr-tdep.c (avr_gdbarch_init): Ditto.
385 * arm-tdep.c (arm_gdbarch_init): Ditto.
386 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
388 2002-11-28 Andrew Cagney <cagney@redhat.com>
390 * frame.h: Update comments on set_current_frame, create_new_frame,
391 flush_cached_frames, reinit_frame_cache, select_frame and
394 2002-11-27 Andrew Cagney <cagney@redhat.com>
396 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
397 deprecated pc_in_call_dummy function.
398 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
399 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
400 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
401 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
402 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
404 2002-11-26 Martin M. Hunt <hunt@redhat.com>
406 * Makefile.in: Remove Tix dependencies.
407 * acinclude.m4: Ditto.
409 * configure.in: Ditto.
410 * configure: Regenerated.
412 2002-11-26 Andrew Cagney <ac131313@redhat.com>
414 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
415 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
416 * gdbarch.c: Re-generate.
418 2002-11-26 Andrew Cagney <ac131313@redhat.com>
420 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
421 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
422 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
423 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
424 pc_in_call_dummy_at_entry_point.
425 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
426 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
427 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
428 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
429 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
430 pc_in_call_dummy_on_stack.
431 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
432 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
433 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
434 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
435 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
437 2002-11-26 Andrew Cagney <ac131313@redhat.com>
439 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
440 pc_in_call_dummy_before_text_end
441 (deprecated_pc_in_call_dummy_after_text_end): Rename
442 pc_in_call_dummy_after_text_end.
443 (deprecated_pc_in_call_dummy_on_stack): Rename
444 pc_in_call_dummy_on_stack.
445 (deprecated_pc_in_call_dummy_at_entry_point): Rename
446 pc_in_call_dummy_at_entry_point.
447 * m68k-tdep.c (m68k_gdbarch_init): Update.
448 * s390-tdep.c (s390_gdbarch_init): Update.
449 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
450 * vax-tdep.c (vax_gdbarch_init): Update.
451 * sparc-tdep.c (sparc_gdbarch_init): Update.
452 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
453 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
454 * i386-tdep.c (i386_gdbarch_init): Update.
455 * frv-tdep.c (frv_gdbarch_init): Update.
456 * cris-tdep.c (cris_gdbarch_init): Update.
457 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
458 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
459 (deprecated_pc_in_call_dummy_after_text_end)
460 (deprecated_pc_in_call_dummy_on_stack)
461 (deprecated_pc_in_call_dummy_at_entry_point): Update.
462 * alpha-tdep.c (alpha_gdbarch_init): Update.
464 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
466 * acconfig.h (HAVE_PREAD64): Add.
467 * configure.in: Check for pread64.
468 * config.in: Regenerated.
469 * configure: Regenerated.
470 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
471 * linux-proc.c (linux_proc_xfer_memory): New function.
472 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
474 2002-11-25 David Carlton <carlton@math.stanford.edu>
476 * dwarf2read.c (scan_partial_symbols): Descend into namespace
479 2002-11-25 Andrew Cagney <ac131313@redhat.com>
481 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
482 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
484 2002-11-25 Jim Blandy <jimb@redhat.com>
486 * symfile.c (init_objfile_sect_indices): New function.
487 (default_symfile_offsets): Move the section-index-initializing
488 stuff into init_objfile_sect_indices, and call that.
490 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
491 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
493 * symfile.c (syms_from_objfile): Adjust indentation.
495 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
496 || info_verbose isn't true.
498 2002-11-24 Andrew Cagney <ac131313@redhat.com>
500 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
501 default to get_frame_base.
502 * gdbarch.h, gdbarch.c: Regenerate.
503 * arch-utils.c (default_frame_address): Delete function.
504 * arch-utils.h (default_frame_address): Delete declaration
506 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
508 * varobj.c (find_frame_addr_in_frame_chain):
509 Use get_frame_base instead of FRAME_FP,
512 2002-11-19 Andrew Cagney <ac131313@redhat.com>
514 * frame.h (FRAME_FP): Delete macro.
515 (get_frame_base): New function declaration.
516 * frame.c (get_frame_base): New function.
517 (get_frame_id): Use ->frame.
518 (frame_find_by_id): Rewrite to use get_frame_id.
519 * blockframe.c: Use get_frame_base instead of FRAME_FP.
520 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
521 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
522 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
523 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
524 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
525 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
527 2002-11-24 Andrew Cagney <ac131313@redhat.com>
529 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
531 2002-11-24 Andrew Cagney <ac131313@redhat.com>
533 * frame.c (set_unwind_by_pc): Revert change below, use
535 (get_prev_frame): Ditto.
537 2002-11-24 Andrew Cagney <ac131313@redhat.com>
539 * dummy-frame.c (pc_in_dummy_frame): New function.
540 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
541 (find_dummy_frame): Update comment.
542 (generic_pop_current_frame): Use get_frame_type.
543 * dummy-frame.h (pc_in_dummy_frame): Declare.
544 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
545 (create_new_frame): Use pc_in_dummy_frame.
546 (get_prev_frame): Use pc_in_dummy_frame.
547 (frame_saved_regs_register_unwind): Use get_prev_frame.
548 (deprecated_generic_get_saved_register): Use get_prev_frame.
550 2002-11-23 Andrew Cagney <ac131313@redhat.com>
552 * blockframe.c (find_frame_addr_in_frame_chain): Move function
554 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
555 (varobj_create): Note that frame ID should be used.
556 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
558 2002-11-23 Andrew Cagney <ac131313@redhat.com>
560 * breakpoint.c: Include "gdb_assert.h".
561 (deprecated_frame_in_dummy): Assert that generic dummy frames are
563 * Makefile.in (breakpoint.o): Update dependencies.
564 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
565 deprecated_frame_in_dummy.
566 * stack.c (print_frame_info_base): Ditto.
568 (print_frame_info_base): Ditto. Delete dead code.
570 2002-11-23 Andreas Schwab <schwab@suse.de>
572 * Makefile.in (m68k_tdep_h): Define.
573 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
574 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
575 * m68k-tdep.c: Move register number enum ...
576 * m68k-tdep.h: ... to this new file and rename the constants from
577 E_* to M68K_*. All uses changed.
578 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
579 * abug-rom.c: Include "m68k-tdep.h". Use
580 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
581 * cpu32bug-rom.c: Likewise.
582 * dbug-rom.c: Likewise.
583 * m68k-tdep.c: Likewise.
584 * m68klinux-nat.c: Likewise.
585 * remote-est.c: Likewise.
586 * rom68k-rom.c: Likewise.
587 * config/m68k/tm-linux.h: Likewise.
589 2002-11-23 Andrew Cagney <ac131313@redhat.com>
591 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
592 dummy frame initialization code.
593 * mips-tdep.c (mips_gdbarch_init): Ditto.
595 2002-11-22 Christopher Faylor <cgf@redhat.com>
597 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
600 2002-11-22 Andrew Cagney <ac131313@redhat.com>
602 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
603 to default_frame_address.
604 * gdbarch.h, gdbarch.c: Re-generate.
606 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
607 or frame_locals_address to default_frame_address.
608 * m68k-tdep.c (m68k_gdbarch_init): Update.
609 * i386-tdep.c (i386_gdbarch_init): Update.
610 * frv-tdep.c (frv_gdbarch_init): Update.
611 * sh-tdep.c (sh_gdbarch_init): Update.
612 * v850-tdep.c (v850_gdbarch_init): Update.
613 * sparc-tdep.c (sparc_gdbarch_init): Update.
614 * mips-tdep.c (mips_gdbarch_init): Update.
615 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
616 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
617 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
619 * cris-tdep.c (cris_frame_args_address): Delete function.
620 (cris_frame_locals_address): Delete function.
621 (cris_gdbarch_init): Do not set frame_args_address or
622 frame_locals_address.
624 2002-11-22 Michael Snyder <msnyder@redhat.com>
626 * thread-db.c (thread_db_load): Tell the user what's going on
627 if dlopen fails on libthread_db.
629 2002-11-23 Andreas Schwab <schwab@suse.de>
631 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
632 invariant return values.
634 2002-11-22 Andreas Schwab <schwab@suse.de>
636 * valops.c (value_slice): Move declaration of `offset' to avoid
639 2002-11-22 Christopher Faylor <cgf@redhat.com>
641 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
642 (struct so_stuff): Add end_addr field.
643 (register_loaded_dll): Calculate and store end address of loaded dll.
644 (solib_address): New function.
645 (child_solib_loaded_library_pathname): Pass carefully constructed
646 section info to safe_symbol_file_add rather than ignoring it.
647 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
649 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
650 (child_create_inferior): Fix a compiler warning.
651 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
652 (solib_address): Declare new function.
654 2002-11-22 Andreas Schwab <schwab@suse.de>
656 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
659 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
661 * maint.c (_initialize_maint_cmds): Fix typo. From
662 Francesco Potorti` <pot@gnu.org>.
664 2002-11-21 Andrew Cagney <cagney@redhat.com>
666 * mips-tdep.c (mips_dump_tdep): Delete references to
667 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
668 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
669 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
670 * printcmd.c (build_address_symbolic): Delete calls to
671 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
672 (address_info): Ditto.
675 2002-11-19 Klee Dienes <kdienes@apple.com>
676 Adam Fedor <fedor@gnu.org>
678 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
679 the ability to explicitly specify the quote characters and word
680 break characters; if NULL is specified for either, use the old
681 behavior of using the characters used by the completer.
682 (skip_chars): New function. Convenience wrapper around
683 skip_quoted_chars to provide the original skip_chars behavior.
684 * completer.h (skip_quoted_chars): Add prototype.
686 2002-11-19 Andrew Cagney <ac131313@redhat.com>
688 Problems reported by Paul Eggert.
689 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
691 2002-11-19 Andreas Schwab <schwab@suse.de>
693 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
694 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
695 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
696 (m68k_linux_frame_saved_pc): Move to ...
697 * m68klinux-tdep.c: ... here. New file.
698 * Makefile.in (m68klinux-tdep.o): Add dependencies.
699 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
701 2002-11-19 Adam Fedor <fedor@gnu.org>
703 * objc-exp.y: Revert to old skip_quoted usage.
705 2002-11-19 Adam Fedor <fedor@gnu.org>
707 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
708 (objc_lang_h): Define.
709 (YYFILES): Add objc-exp.tab.c.
710 (local-maintainer-clean): Remove objc-exp.tab.c.
711 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
713 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
715 * p-exp.y (typecast rule): Add automatic dereference of
716 pascal classes if needed.
717 (THIS): Set current_type.
718 Automatically dereference pascal classes.
719 (typebase rule): Add ^typebase recognition.
721 2002-11-18 Adam Fedor <fedor@gnu.org>
723 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
724 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
725 (op_name): Handle OP_OBJC_SELF.
726 * Makefile.in (expprint.o): Add additional depends.
728 2002-11-18 Adam Fedor <fedor@gnu.org>
730 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
731 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
732 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
733 * objc-exp.y: Likewise.
735 2002-11-18 Adam Fedor <fedor@gnu.org>
737 * gdb/parser-defs.h: (struct objc_class_str): New structure
738 for parsing ObjC classes.
740 2002-11-18 Andrew Cagney <ac131313@redhat.com>
742 * stack.c (frame_relative_level): Copy function from here ...
743 * frame.c (frame_relative_level): ...to here.
745 2002-11-18 Andrew Cagney <ac131313@redhat.com>
747 * frame.h (enum frame_type): Define.
748 (get_frame_type): Declare.
749 (struct frame_info): Add field `type'. Delete field
750 signal_handler_caller.
751 (deprecated_set_frame_signal_handler_caller): Declare.
752 * frame.c (get_frame_type): New function.
753 (deprecated_set_frame_type): New function.
754 (create_new_frame): Set the frame's type.
755 (get_prev_frame): Similar.
756 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
757 * s390-tdep.c: Ditto.
758 * m68klinux-nat.c: Ditto.
759 * ns32k-tdep.c: Ditto.
760 * x86-64-linux-tdep.c: Ditto.
762 * rs6000-tdep.c: Ditto.
763 * ppc-linux-tdep.c: Ditto.
764 * i386-interix-tdep.c: Ditto.
765 * mips-tdep.c: Ditto.
766 * m68k-tdep.c: Ditto.
767 * hppa-tdep.c: Ditto.
768 * ia64-tdep.c: Ditto.
769 * cris-tdep.c: Ditto.
771 * alpha-tdep.c: Ditto.
772 * i386-tdep.c: Ditto.
775 * blockframe.c: Update.
776 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
777 deprecated_set_frame_type instead of signal_handler_caller.
778 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
779 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
780 * breakpoint.h: Delete FIXME suggesting get_frame_type.
782 2002-11-18 Klee Dienes <kdienes@apple.com>
784 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
786 2002-11-18 Klee Dienes <kdienes@apple.com>
788 * buildsym.c (pop_context): Add comment.
790 2002-11-18 Klee Dienes <kdienes@apple.com>
792 * buildsym.h (pop_context): Convert to function, defined in
794 * buildsym.c: Include gdb_assert.h.
795 (pop_context): Implement as C function. Add check for stack
797 * dbxread.c (process_one_symbol): Complain and stop processing
798 that symbol if we are already at the top of the context stack for
799 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
800 when processing N_RBRAC.
802 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
804 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
806 (struct target_waitstatus): Add opaque definition.
807 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
808 * exec.c (init_exec_ops): Likewise.
809 * fork-child.c (clone_and_follow_inferior): Remove.
810 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
811 * inferior.h (clone_and_follow_inferior): Remove prototype.
812 * infrun.c (follow_fork_mode_both): Remove.
813 (follow_fork_mode_kind_names): Remove commented out "both".
814 (follow_inferior_fork): Remove follow_fork_mode_both support.
815 * inftarg.c (child_clone_and_follow_inferior): Remove.
816 (child_post_follow_inferior_by_clone): Remove.
817 (init_child_ops): Don't set to_clone_and_follow_inferior
818 or to_post_follow_inferior_by_clone.
819 * target.c (default_clone_and_follow_inferior): Remove.
820 (cleanup_target): Don't set to_clone_and_follow_inferior
821 or to_post_follow_inferior_by_clone.
822 (find_default_clone_and_follow_inferior): Remove.
823 (init_dummy_target): Don't set to_clone_and_follow_inferior.
824 (debug_to_clone_and_follow_inferior): Remove.
825 (debug_to_post_follow_inferior_by_clone): Remove.
826 (setup_target_debug): Don't set to_clone_and_follow_inferior
827 or to_post_follow_inferior_by_clone.
828 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
829 and to_post_follow_inferior_by_clone.
830 (child_clone_and_follow_inferior): Remove prototype.
831 (child_post_follow_inferior_by_clone): Remove prototype.
832 (target_clone_and_follow_inferior): Remove macro.
833 (target_post_follow_inferior_by_clone): Remove macro.
834 (find_default_clone_and_follow_inferior): Remove prototype.
836 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
838 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
839 inferior_has_vforked, and inferior_has_execd instead of
840 target_has_forked, target_has_vforked, and target_has_execd.
841 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
842 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
843 (CHILD_WAIT): Define.
844 (child_wait): Add prototype.
845 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
847 (hpux_has_vforked): Likewise, from child_has_vforked.
848 (hpux_has_execd): Likewise, from child_has_execd.
849 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
850 (not_same_real_pid, child_wait): New, copied from inftarg.c.
851 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
852 and hpux_has_syscall_event instead of the target hooks.
853 * infrun.c (inferior_has_forked, inferior_has_vforked)
854 (inferior_has_execd): New functions.
855 * inftarg.c (not_same_real_pid): Remove.
856 (child_wait): Remove references to not_same_real_pid,
857 target_has_forked, target_has_vforked, target_has_execd,
858 and target_has_syscall_event.
859 (child_has_forked, child_has_vforked, child_has_execd)
860 (child_has_syscall_event): Remove.
861 (init_child_ops): Remove references to child_has_forked,
862 child_has_vforked, child_has_execd, and child_has_syscall_event.
863 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
864 (hpux_has_vforked): Likewise, from child_has_vforked.
865 (hpux_has_execd): Likewise, from child_has_execd.
866 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
867 * target.c (cleanup_target): Remove references to
868 to_has_forked, to_has_vforked, to_has_execd, and
869 to_has_syscall_event.
870 (update_current_target): Likewise.
871 (setup_target_debug): Likewise.
872 (debug_to_has_forked): Remove.
873 (debug_to_has_vforked): Remove.
874 (debug_to_has_execd): Remove.
875 (debug_to_has_syscall_event): Remove.
876 * target.h (struct target_ops): Remove to_has_forked.
877 to_has_vforked, to_has_execd, and to_has_syscall_event.
878 (child_has_forked, child_has_vforked, child_has_execd)
879 (child_has_syscall_event): Remove prototypes.
880 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
882 (target_has_forked, target_has_vforked, target_has_execd)
883 (target_has_syscall_event): Remove macros.
885 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
887 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
888 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
889 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
890 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
891 * target.c (cleanup_target): Remove reference to
892 to_can_follow_vfork_prior_to_exec.
893 (update_current_target): Likewise.
894 (debug_to_can_follow_vfork_prior_to_exec): Remove.
895 (setup_target_debug): Remove reference to
896 to_can_follow_vfork_prior_to_exec.
897 * target.h (struct target_ops): Remove
898 to_can_follow_vfork_prior_to_exec.
899 (child_can_follow_vfork_prior_to_exec): Remove prototype.
900 (target_can_follow_vfork_prior_to_exec): Remove definition.
901 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
903 * infrun.c (follow_vfork_when_exec): Remove.
904 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
905 (follow_exec): Likewise.
906 (handle_inferior_event): Likewise.
907 (keep_going): Likewise.
909 2002-11-15 Andrew Cagney <cagney@redhat.com>
911 * frame.c (generic_unwind_get_saved_register): Make static.
912 * frame.h (generic_unwind_get_saved_register): Delete declaration.
913 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
914 defaults to generic_unwind_get_saved_register.
915 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
916 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
917 * frv-tdep.c (frv_gdbarch_init): Ditto.
918 * i386-tdep.c (i386_gdbarch_init): Ditto.
919 * s390-tdep.c (s390_gdbarch_init): Ditto.
920 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
921 * v850-tdep.c (v850_gdbarch_init): Ditto.
922 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
923 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
924 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
926 2002-11-15 Andrew Cagney <cagney@redhat.com>
928 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
931 2002-11-15 Andrew Cagney <cagney@redhat.com>
933 * frame.h (sigtramp_saved_pc): Delete declaration.
934 * blockframe.c (sigtramp_saved_pc): Delete function.
935 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
936 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
937 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
938 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
940 2002-11-15 Andrew Cagney <ac131313@redhat.com>
942 * frame.c (frame_pc_unwind): New function.
943 (frame_saved_regs_pc_unwind): New function.
944 (frame_register_unwind): Pass unwind_cache instead of
945 register_unwind_cache.
946 (set_unwind_by_pc): Add unwind_pc parameter, set.
947 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
948 (get_prev_frame): Ditto.
949 * frame.h (frame_pc_unwind_ftype): Declare.
950 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
951 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
952 (frame_pc_unwind): Declare.
953 * dummy-frame.c (dummy_frame_pc_unwind): New function.
954 (struct dummy_frame): Add comment mentioning that values are for
956 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
957 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
958 (generic_file_frame_chain_valid): Ditto.
959 * stack.c (frame_info): Ditto.
961 2002-11-15 David Carlton <carlton@math.stanford.edu>
963 * linespec.c (locate_first_half): New function.
964 (decode_line_1): Move code into locate_first_half.
966 2002-11-15 Andrew Cagney <ac131313@redhat.com>
968 * complaints.h: Add comment explaining how to eliminate a
969 deprecated_complain call.
970 * complaints.h: Fix spelling errors.
972 2002-11-15 David Carlton <carlton@math.stanford.edu>
974 * printcmd.c: Remove #include "disasm.h".
976 2002-11-14 Andrew Cagney <ac131313@redhat.com>
978 * frame.h: Move the most relevant interface functions to the start
981 2002-11-14 Andrew Cagney <ac131313@redhat.com>
983 * regcache.h (deprecated_registers): Rename registers.
984 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
985 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
986 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
987 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
988 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
989 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
990 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
991 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
992 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
993 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
994 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
997 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
999 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1002 2002-11-13 Andrew Cagney <cagney@redhat.com>
1004 * regcache.h (deprecated_read_register_bytes): Rename
1005 read_register_bytes.
1006 (deprecated_write_register_bytes): Rename write_register_bytes.
1007 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1008 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1009 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1010 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1011 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1012 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1013 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1014 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1015 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1016 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1017 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1018 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1019 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1020 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1022 2002-11-13 Jim Blandy <jimb@redhat.com>
1024 * findvar.c (read_var_value): Doc fix.
1026 2002-11-13 Andrew Cagney <cagney@redhat.com>
1028 * regcache.c (struct regcache): Replace passthough_p with
1030 (regcache_xmalloc): Initialize readonly_p.
1031 (build_regcache): Initialize readonly_p.
1032 (regcache_save): New function.
1033 (regcache_restore): New function.
1034 (regcache_cpy): Re-implement using regcache_save and
1036 (regcache_raw_read): Update.
1037 (regcache_cooked_read): When a read-only cache, checked for cached
1038 pseudo register values.
1039 (regcache_raw_write): Assert that the cache is not read-only.
1040 Remove code handling a non-passthrough cache.
1041 * regcache.h (regcache_save): Declare.
1042 (regcache_restore): Declare.
1044 2002-11-13 Andrew Cagney <cagney@redhat.com>
1046 * regcache.c (struct regcache_descr): Add fields
1047 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1048 (init_legacy_regcache_descr): Compute the size of a cooked
1049 register cache and then assign that to sizeof_raw_registers. Set
1050 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1051 (init_legacy_regcache_descr): Ditto.
1053 2002-11-13 Andrew Cagney <cagney@redhat.com>
1055 * regcache.c (register_buffer): Move to near start of file, update
1057 (regcache_raw_read): Use.
1058 (regcache_raw_write): Use.
1059 (struct regcache): Rename raw_registers to registers and
1060 raw_register_valid_p to register_valid_p.
1061 (regcache_xmalloc): Update.
1062 (regcache_xfree): Update.
1063 (register_buffer): Update.
1064 (regcache_cpy): Update.
1065 (regcache_cpy_no_passthrough): Update.
1066 (regcache_valid_p): Update.
1067 (deprecated_grub_regcache_for_registers): Update.
1068 (deprecated_grub_regcache_for_register_valid): Update.
1069 (set_register_cached): Update.
1070 (regcache_raw_write): Update.
1072 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1074 * p-exp.y (name_not_typename): Use copy_name to
1075 set current_type variable for fields of THIS.
1077 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1079 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1080 * monitor.c (init_base_monitor_ops): Likewise.
1081 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1082 * remote-array.c (init_array_ops): Likewise.
1083 * remote-e7000.c (init_e7000_ops): Likewise.
1084 * remote-es.c (init_es1800_ops): Likewise.
1085 (init_es1800_child_ops): Likewise.
1086 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1087 * remote-sim.c (init_gdbsim_ops): Likewise.
1088 * remote-st.c (init_st2000_ops): Likewise.
1089 * sol-thread.c (init_sol_core_ops): Likewise.
1090 (init_sol_thread_ops): Likewise.
1091 * v850ice.c (init_850ice_ops): Likewise.
1092 * win32-nat.c (init_child_ops): Likewise.
1093 * wince.c (init_child_ops): Likewise.
1095 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1097 * utils.c (gdb_realpath): Make rp a constant pointer.
1099 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1101 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1102 a constant buffer; cannonicalize_file_name(); realpath() with a
1103 pathconf() defined buffer, xstrdup().
1105 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1107 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1108 to hang2.C; hang3.c to hang3.C.
1110 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1112 * findvar.c (read_var_value): Reenable TLS code.
1114 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1115 Jim Blandy <jimb@redhat.com>
1117 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1118 * target.c (update_current_target): Add
1119 to_get_thread_local_address.
1120 * target.h (to_get_thread_local_address): Export.
1121 (target_get_thread_local_address): Define.
1122 (target_get_thread_local_address_p): Define.
1123 * thread-db.c: Include solib-svr4.h.
1124 (td_thr_tls_get_addr_p): Define.
1125 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1126 (thread_db_get_thread_local_address): New function.
1127 (init_thread_db_ops): Initialize to_get_thread_local_address.
1128 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1129 * configure: Regenerate.
1130 * config.in: Regenerate.
1132 2002-11-11 David Carlton <carlton@math.stanford.edu>
1134 * linespec.c (set_flags): New function.
1135 (decode_line_1): Move code into set_flags.
1137 2002-11-11 David Carlton <carlton@math.stanford.edu>
1139 * linespec.c (decode_line_1): Move chunks of code to separate
1141 (initialize_defaults): New function.
1142 (decode_indirect): New function.
1144 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1146 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1147 instead of void_code_ptr.
1148 (sigtramp_saved_pc): Ditto.
1150 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1153 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1155 * gdbtypes.h (struct main_type): Move artificial flag out of
1156 loc. New member of ``struct field'' named static_kind. Reduce
1157 overloaded meaning of bitsize.
1158 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1159 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1160 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1162 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1164 (template_to_fixed_record_type, template_to_static_fixed_type)
1165 (to_record_with_fixed_variant_part): Likewise.
1166 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1167 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1168 * dwarfread.c (struct_type, enum_type): Likewise.
1169 * hpread.c (hpread_read_enum_type)
1170 (hpread_read_function_type, hpread_read_doc_function_type)
1171 (hpread_read_struct_type): Likewise.
1172 * mdebugread.c (parse_symbol): Likewise.
1174 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1176 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1177 * stack.c (print_frame_info_base): Update.
1178 (print_frame_info_base, frame_info): Update.
1179 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1180 (sparc_frame_saved_pc): Update.
1181 * ada-lang.c (find_printable_frame): Update.
1182 * breakpoint.c (deprecated_frame_in_dummy): Update.
1184 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1186 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1188 (regmap): Extend to cover all registers.
1189 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1190 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1192 (fetch_register, sore_register): Simplify.
1193 (old_fetch_inferior_registers, old_store_inferior_registers):
1195 (cannot_fetch_register, cannot_store_register): Change
1196 implementation to use regmap array to decide which registers
1197 cannot be fetched/stored. This removes $orig_eax from the
1198 registers that cannot be fetched/stored.
1199 (fetch_inferior_registers): Call fetch_register directly instead
1200 of calling old_fetch_inferior_registers.
1201 (store_inferior_registers): Call store_register directly instead
1202 of calling old_store_inferior_registers.
1203 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1204 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1205 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1207 2002-11-09 Klee Dienes <kdienes@apple.com>
1209 * i387-tdep.c (i387_supply_register): When called with NULL as a
1210 buffer, mark the register as not provided (to mirror the behavior
1211 of supply_register).
1212 (i387_supply_fxsave): Ditto.
1213 (i387_supply_fsave): Ditto (inherits the behavior from
1214 i387_supply_register).
1216 2002-11-09 Klee Dienes <kdienes@apple.com>
1218 * blockframe.c (sigtramp_saved_pc): Use
1219 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1220 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1221 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1223 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1225 * frame.c (get_prev_frame): Test prev_p to identify a previously
1226 unwound frame. Initialize prev_p.
1227 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1230 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1232 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1233 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1234 more comments. Zap dead code.
1236 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1238 * infcmd.c (print_vector_info, print_float_info): Move code that
1239 checks whether the target has any registers and whether there is a
1240 selected frame up, such that it is also used if a target provides
1241 multi-arch definitions of these functions.
1243 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1245 * Makefile.in (DESTDIR): Define.
1246 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1249 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1250 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1252 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1254 * i386-linux-tdep.c: Include "reggroups.h".
1255 (i386_linux_register_reggroup_p): New function.
1256 (i386_linux_init_abi): Set register_reggroup_p to
1257 i386_linux_register_reggroup_p.
1258 * i386-tdep.h (i386_register_reggroup_p): Declare.
1259 * i386-tdep.c: Include "reggroups.h".
1260 (i386_init_reggroups): New function.
1261 (i386_add_reggroups): New function.
1262 (i386_register_reggroup_p): New function.
1263 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1264 (_initialize_i386_tdep): Call i386_init_reggroups.
1265 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1268 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1270 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1271 request that's available in *BSD.
1273 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1275 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1278 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1280 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1281 * dummy-frame.c (find_dummy_frame): Rename
1282 generic_find_dummy_frame, make static. Return the dummy frame
1283 instead of the regcache.
1284 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1285 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1286 (dummy_frame_register_unwind): Rename
1287 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1288 * dummy-frame.h (dummy_frame_register_unwind): Rename
1289 generic_call_dummy_register_unwind.
1291 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1293 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1294 except the inclusion of "i386/tm-i386.h", to...
1295 * config/i386/nm-i386v42mp.h: ...here.
1296 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1298 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1300 * Makefile.in (frame.o): Update dependencies.
1301 * blockframe.c (current_frame, frame_obstack_alloc)
1302 (frame_saved_regs_zalloc, get_current_frame)
1303 (set_current_frame, create_new_frame)
1304 (set_unwind_by_pc, get_next_frame)
1305 (flush_cached_frames, reinit_frame_cache)
1306 (frame_saved_regs_register_unwind)
1307 (deprecated_generic_get_saved_register)
1308 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1309 (_initialize_blockframe): Move frame code from here...
1310 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1311 "annotate.h" and "dummy-frame.h".
1312 (_initialize_frame): New function.
1314 2002-11-08 Jim Blandy <jimb@redhat.com>
1316 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1317 when we finish a function a context.
1318 * buildsym.h (outermost_context_p): New macro.
1319 (Bug analyzed by David Edelsohn.)
1321 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1323 * blockframe.c: Include "dummy-frame.h".
1324 (struct dummy_frame, dummy_frame_stack)
1325 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1326 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1327 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1328 (generic_save_call_dummy_addr, generic_pop_current_frame)
1329 (generic_pop_dummy_frame, generic_fix_call_dummy)
1330 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1331 dummy frame code from here...
1332 * dummy-frame.c: ...to here. New file.
1333 * dummy-frame.h: New file.
1334 (generic_call_dummy_register_unwind): Declare.
1335 (generic_find_dummy_frame): Declare.
1336 * Makefile.in (SFILES): Add dummy-frame.c.
1337 (dummy-frame.o): Specify dependencies.
1338 (dummy_frame_h): Define.
1339 (COMMON_OBS): Add dummy-frame.o.
1340 (blockframe.o): Update dependencies.
1342 2002-11-08 Jim Blandy <jimb@redhat.com>
1344 * dwarf2read.c (read_func_scope): Restore local_symbols and
1345 param_symbols after we finish the function context. (Based on a
1346 patch from David Edelsohn.)
1348 2002-11-08 David Carlton <carlton@math.stanford.edu>
1350 * linespec.c (symbol_found): New function.
1351 (minsym_found): New function.
1352 (decode_line_1): Separate out some code into separate functions.
1354 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1356 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1357 the benefit of the interix target.
1358 * i386-tdep.h (i386_frameless_signal_p): Declare.
1360 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1362 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1363 declaration that snuck in from change below.
1365 2002-11-06 Andrew Cagney <cagney@redhat.com>
1367 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1369 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1370 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1371 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1372 (i386_mxcsr_regnum_p): new function. Use instead of
1374 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1375 (i386_sse_regnum_p): Declare.
1376 (i386_mxcsr_regnum_p): Declare.
1377 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1378 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1379 (IS_FP_REGNUM): Update definition.
1380 (IS_FPU_CTRL_REGNUM): Update definition..
1381 (IS_SSE_REGNUM): Update definition..
1382 * i386v-nat.c (register_u_addr): Update.
1383 * go32-nat.c (fetch_register): Update.
1384 (store_register): Update.
1386 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1388 Preparation work to convert the hppa targets to multiarch partial.
1390 * hppa-tdep.c: Add new functions replacing macro bodies from
1391 config/pa/tm-hppa.h. These function will be used to initialize
1392 the gdbarch structure. Import some comments from tm-hppa.h,
1393 and place them where appropriate, to avoid loosing them when
1394 we cleanup this file.
1395 (hppa_reg_struct_has_addr): New function.
1396 (hppa_inner_than): New function.
1397 (hppa_stack_align): New function.
1398 (hppa_pc_requires_run_before_use): New function.
1399 (hppa_instruction_nullified): New function.
1400 (hppa_register_byte): New function.
1401 (hppa_register_virtual_type): New function.
1402 (hppa_store_struct_return): New function.
1403 (hppa_cannot_store_register): New function.
1404 (hppa_frame_args_address): New function.
1405 (hppa_frame_locals_address): New function.
1406 (hppa_smash_text_address): New function.
1407 (hppa_coerce_float_to_double): New function. Requires the inclusion
1410 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1412 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1413 gdbarch-eligible macro to a call to the new associated function
1414 created in hppa-tdep.c.
1415 (INNER_THAN): Likewise.
1416 (STACK_ALIGN): Likewise.
1417 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1418 (INSTRUCTION_NULLIFIED): Likewise.
1419 (REGISTER_BYTE): Likewise.
1420 (REGISTER_VIRTUAL_TYPE): Likewise.
1421 (STORE_STRUCT_RETURN): Likewise.
1422 (CANNOT_STORE_REGISTER): Likewise.
1423 (FRAME_ARGS_ADDRESS): Likewise.
1424 (FRAME_LOCALS_ADDRESS): Likewise.
1425 (SMASH_TEXT_ADDRESS): Likewise.
1426 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1427 (ABOUT_TO_RETURN): Delete, as no longer used.
1429 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1431 * printcmd.c (disassemble_command): Remove obsolete function.
1432 (_initialize_printcmd): Do not create disassemble command here.
1433 * cli/cli-cmds.c (disassemble_command): New function. Implements
1434 disassemble command.
1435 (init_cli_cmds): Create disassemble command here instead.
1437 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1439 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1441 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1443 * regcache.h (regcache_cooked_read_using_offset_hack)
1444 (regcache_cooked_write_using_offset_hack): Delete declarations.
1445 (register_changed): Delete declaration.
1446 * regcache.c (regcache_cooked_read_using_offset_hack)
1447 (regcache_cooked_write_using_offset_hack): Delete functions.
1448 (cooked_xfer_using_offset_hack): Delete function.
1449 (register_changed): Delete function.
1451 2002-11-07 Jim Blandy <jimb@redhat.com>
1453 * macroscope.c: #include "complaints.h".
1454 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1455 but not in the macro table.
1456 * Makefile.in (macroscope.o): Record dependency.
1458 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1460 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1462 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1464 * regcache.c (deprecated_registers_fetched): Update.
1465 * regcache.h (deprecated_registers_fetched): Rename
1467 * remote-vxsparc.c (vx_read_register): Update.
1468 * remote-vxmips.c (vx_read_register): Update.
1469 * remote-vx68.c (vx_read_register): Update.
1470 * irix5-nat.c (fetch_core_registers): Update.
1471 * mipsm3-nat.c (fetch_inferior_registers): Update.
1472 * sun3-nat.c (fetch_inferior_registers): Update.
1473 * symm-nat.c (fetch_inferior_registers): Update.
1474 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1475 (fetch_core_registers): Update.
1476 (fetch_kcore_registers): Update.
1477 * mips-nat.c (fetch_inferior_registers): Update.
1478 * corelow.c (get_core_registers): Update.
1479 * a68v-nat.c (fetch_inferior_registers): Update.
1481 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1483 Put in place the framework necessary for multiarching the hppa targets.
1484 * hppa-tdep.c (hppa_gdbarch_init): New function.
1485 (hppa_dump_tdep): New function.
1486 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1487 tdep structure dumper.
1488 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1489 until the multi-arching conversion has partially been completed.
1491 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1493 * valops.c (value_assign): Merge lval_register case into
1494 lval_reg_frame_relative. Use frame_register and
1495 regcache_cooked_write instead of get_saved_register and
1496 write_register_bytes. After flushing the register cache, try to
1497 re-select the selected frame.
1499 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1501 * regcache.h (deprecated_register_valid): Rename register_valid.
1502 * regcache.c: Update.
1503 * ia64-aix-nat.c: Update.
1504 * i386gnu-nat.c: Update.
1505 * alpha-nat.c: Update.
1506 * sparc-nat.c: Update.
1507 * lynx-nat.c: Update.
1508 * remote-mips.c: Update.
1510 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1512 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1513 to end of file, to be more consistent with the pratice followed
1516 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1518 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1519 (print_float_info): Print registers in float_reggroup.
1520 (print_vector_info): Print registers in vector_reggroup.
1521 (default_print_registers_info): When all, print registers in
1522 all_reggroup. Otherwize, print registers in general_reggroup.
1523 (registers_info): Rewrite. Add support for register groups.
1526 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1528 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1530 (symtab_symbol_info): Remove eons old ifdeffed out code.
1531 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1534 2002-11-06 Theodore A. Roth <troth@openavr.org>
1536 * c-exp.y: Add missing semi-colons.
1537 * f-exp.y: Add missing semi-colons.
1538 * m2-exp.y: Add missing semi-colons.
1539 * p-exp.y: Add missing semi-colons.
1540 Add empty action to start rule to avoid a type clash error when
1541 building with bison >= 1.50.
1543 2002-11-06 Jim Blandy <jimb@redhat.com>
1545 * macrotab.h (struct macro_source_file): Doc fix.
1547 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1549 * varobj.c (child_exists, cplus_number_of_children): Change
1550 STREQ macro references to strcmp.
1551 (cplus_name_of_child): Change code to handle the fact that
1552 fields are not necessarily contiguous with regards to their
1553 access control. This is a fix for PR gdb/792.
1555 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1557 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1558 * gdbarch.h, gdbarch.c: Regnerate.
1559 * frame.h (frame_register): Declare.
1560 * frame.c (frame_register): New function.
1561 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1562 GET_SAVED_REGISTER, otherwize call
1563 generic_unwind_get_saved_register.
1564 (frame_register_read): Use frame_register instead of
1567 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1569 From Jim Ingham <jingham@apple.com>:
1570 * event-top.c (gdb_disable_readline): New function.
1571 (_initialize_event_loop): Move comment.
1573 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1575 * event-loop.c (start_event_loop): Add comment.
1578 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1580 * infcmd.c (default_print_registers_info): Do not call
1581 PRINT_REGISTER_HOOK.
1583 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1585 * sparc-tdep.c (sparc_print_register_hook): Make static.
1586 (sparc_print_registers_info): New function.
1587 (sparc_do_registers_info): New function.
1588 (sparclet_print_registers_info): New function.
1589 (sparclet_do_registers_info): New function.
1590 (do_sparc_print_registers_info): New function.
1591 (sparc_print_registers): New static function, clone of infcmd.c's
1592 default_print_registers_info.
1593 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1594 (sparclet_do_registers_info): Declare.
1595 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1596 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1598 (sparc_do_registers_info): Declare.
1599 (PRINT_REGISTER_HOOK): Delete macro.
1600 (sparc_print_register_hook): Delete declaration.
1602 2002-11-05 David Carlton <carlton@math.stanford.edu>
1604 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1606 (lookup_symbol_aux_local): New function.
1607 (lookup_symbol_aux_symtabs): New function.
1608 (lookup_symbol_aux_psymtabs): New function.
1610 2002-11-05 David Carlton <carlton@math.stanford.edu>
1612 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1613 previous values of 'objfile' and 'block'.
1615 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1617 * values.c (value_change_enclosing_type): Set
1618 enclosing_type field correctly also for the case where
1619 more memory needs to be allocated.
1621 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1623 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1626 * i387-tdep.c (i387_print_float_info): Replace calls to
1627 register_read and deprecated_read_register_gen with calls to
1628 frame_register_read, and make the necessary adjustments to the
1631 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1633 * gdbarch.sh (register_reggroup_p): Allow default value.
1634 * gdbarch.h, gdbarch.c: Regenerate.
1636 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1638 * regcache.h: Add coment indicating replacements for deprecated
1641 2002-11-02 Andrew Cagney <cagney@redhat.com>
1643 * reggroups.h, reggroups.c: New files.
1644 * regcache.c: Include "reggroups.h".
1645 (enum regcache_dump_what): Add `regcache_dump_groups'.
1646 (regcache_dump): Contract size of the "Type" column. When
1647 specified, dump the register's groups.
1648 (maintenance_print_register_groups): New function.
1649 (_initialize_regcache): Add command `maint print register-groups'.
1650 * Makefile.in (COMMON_OBS): Add reggroups.o
1651 (SFILES): Add reggroups.c.
1652 (reggroups_h): Define.
1653 (regcache.o, gdbarch.o): Update dependencies.
1654 (reggroups.o): Specify dependencies.
1655 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1656 Add opaque declaration for `struct reggroup' in generated .h file.
1657 Include "reggroups.h" in generated .c file.
1658 gdbarch.h, gdbarch.c: Re-generate.
1660 2002-11-02 Andrew Cagney <cagney@redhat.com>
1662 * regcache.h (deprecated_read_register_gen): Rename
1664 (deprecated_write_register_gen): Rename write_register_gen.
1665 * i387-tdep.c: Update.
1666 * x86-64-linux-nat.c: Update
1668 * thread-db.c: Update.
1669 * win32-nat.c: Update.
1670 * mips-tdep.c: Update.
1671 * d10v-tdep.c: Update.
1672 * cris-tdep.c: Update.
1673 * remote-sim.c: Update.
1674 * remote-rdi.c: Update.
1675 * remote-rdp.c: Update.
1678 * blockframe.c: Update.
1679 * x86-64-tdep.c: Update.
1680 * xstormy16-tdep.c: Update.
1681 * sh-tdep.c: Update.
1682 * s390-tdep.c: Update.
1683 * rs6000-tdep.c: Update.
1684 * sparc-tdep.c: Update.
1685 * i386-tdep.c: Update.
1686 * dwarf2cfi.c: Update.
1687 * regcache.c: Update.
1689 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1691 New interix-specific files:
1692 * config/i386/nm-interix.h: New file.
1693 * config/i386/interix.mh: New file.
1694 * config/i386/interix.mt: New file.
1695 * i386-interix-nat.c: New file.
1696 * i386-interix-tdep.c: New file.
1698 2002-11-01 Andrew Cagney <cagney@redhat.com>
1700 * frame.h (deprecated_generic_get_saved_register): Rename
1701 generic_get_saved_register.
1702 * blockframe.c (deprecated_generic_get_saved_register): Update.
1703 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1704 (xstormy16_frame_saved_register): Update.
1705 * sh-tdep.c (sh_gdbarch_init): Update.
1706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1707 * ia64-tdep.c (ia64_get_saved_register): Update.
1708 * cris-tdep.c (cris_gdbarch_init): Update.
1709 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1710 * arm-tdep.c (arm_gdbarch_init): Update.
1712 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1714 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1716 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1718 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1719 trampolines in sigaction.
1721 2002-10-31 Andrew Cagney <cagney@redhat.com>
1723 * h8300-tdep.c: Include "gdb_assert.h".
1724 (h8300_print_register): Add gdbarch, file and frame parameters.
1725 Use frame_read_unsigned_register to read the register's value.
1726 Use fprintf_filtered to display output.
1727 (h8300_print_registers_info): Replace h8300_do_registers_info.
1728 (h8300_gdbarch_init): Set print_registers_info.
1730 2002-10-31 Andrew Cagney <cagney@redhat.com>
1732 * frame.c (frame_read_unsigned_register): New function.
1733 (frame_read_signed_register): New function.
1734 * frame.h (frame_read_unsigned_register): Declare.
1735 (frame_read_signed_register): Declare.
1737 2002-10-31 Andrew Cagney <cagney@redhat.com>
1739 * h8500-tdep.c (h8500_print_registers_info): New static function,
1740 clone of infcmd.c's default_print_registers_info.
1741 (h8500_do_registers_info): New funtion.
1742 (h8500_print_register_hook): Rename print_register_hook, make
1745 * config/h8500/tm-h8500.h: Update copyright.
1746 (DEPRECATED_DO_REGISTERS_INFO): Define.
1747 (h8500_do_registers_info: Declare.
1748 (PRINT_REGISTER_HOOK): Delete macro.
1749 (print_register_hook): Delete function.
1751 2002-10-31 Andrew Cagney <cagney@redhat.com>
1753 * z8k-tdep.c (z8k_print_register_hook): Make static.
1754 (z8k_print_registers_info): New static function, clone of
1755 infcmd.c's default_print_registers_info.
1756 (z8k_do_registers_info): New function. Wrap
1757 z8k_print_registers_info.
1758 * config/z8k/tm-z8k.h: Update copyright.
1759 (PRINT_REGISTER_HOOK): Delete macro.
1760 (z8k_print_register_hook): Delete declaration.
1761 (DEPRECATED_DO_REGISTERS_INFO): Define.
1762 (z8k_do_registers_info): Declare.
1764 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1766 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1767 as this is already provided by value.h, and was actually causing
1768 a compilation error because of a conflict in parameter type
1769 declaration due to a missing const keyword.
1770 (low_text_segment_addres): Fix a compilation warning.
1772 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1774 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1775 registers without a name.
1776 (mips_linux_cannot_store_register): Don't store registers without
1779 2002-10-28 David Carlton <carlton@math.stanford.edu>
1781 * symtab.c (find_addr_symbol): Delete. (It was already commented
1783 * symtab.h: Delete prototype for find_addr_symbol.
1785 2002-10-26 Andrew Cagney <cagney@redhat.com>
1787 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1789 gdbarch.h, gdbarch.c: Re-generate.
1790 * infcmd.c (default_print_registers_info): Update reference.
1791 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1792 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1793 * sh-tdep.c (sh_gdbarch_init): Ditto.
1794 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1795 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1797 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1799 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1800 cfi_init_extra_frame_info.
1801 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1802 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1804 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1805 target where necessary. Add more comments and remove the ones
1806 that don't provide any useful information.
1808 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1809 deprecated_read_register_dummy with
1810 frame_unwind_unsigned_register.
1812 * i386-tdep.c (i386_extract_struct_value_address): Use
1813 regcache_raw_read_unsigned instead of
1814 regcache_cooked_read_unsigned since we know that the register
1815 we're reading isn't a pseudo register. Rename variable 'val' into
1816 the more descriptive 'addr'.
1818 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1819 (x86_64_push_return_address): Add comment.
1820 (x86_64_pop_frame): Make static.
1821 (examine_argument): Clarify comment.
1822 (x86_64_skip_prologue): Make prolog_expact variable static.
1824 * dwarf2cfi.c: Fix some formatting problems.
1825 (context_cpy, read_encoded_pointer): Clarify comments.
1827 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1828 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1829 i386 target back into x86_64_gdbarch_init. Add some comments and
1830 remove meaningless ones.
1832 2002-10-25 Andrew Cagney <cagney@redhat.com>
1834 * complaints.h (struct deprecated_complaint): Rename `struct
1836 * complaints.c (complain): Update.
1837 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1838 incorrect comment indicating that "symfile.h" was being included
1839 for the `struct complaint' definition.
1840 * remote-vx.c: Update.
1841 * objc-lang.c: Update.
1842 * xcoffread.c: Update.
1844 * mdebugread.c: Update.
1845 * stabsread.c: Update.
1846 * dwarf2read.c: Update.
1847 * dwarfread.c: Update.
1848 * elfread.c: Update.
1849 * coffread.c: Update.
1850 * stabsread.h: Update.
1851 * dbxread.c: Update.
1852 * buildsym.c: Update.
1853 * gdbtypes.c: Update.
1854 * macrotab.c: Update.
1856 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1858 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1859 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1860 (x86_64_init_abi): ...new function.
1862 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1863 * i386v-nat.c: Include "i386-tdep.h".
1865 2002-10-25 Andrew Cagney <cagney@redhat.com>
1867 * gdbtypes.c (address_space_name_to_int): Update.
1868 (address_space_int_to_name): Update.
1869 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1870 multi-arch predicate.
1871 (address_class_name_to_type_flags): Ditto.
1872 * gdbarch.h, gdbarch.c: Re-generate.
1874 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1876 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1878 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1880 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1882 * symtab.h (INIT_SAL): Delete macro.
1884 * symtab.c (init_sal): New function.
1886 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1887 to init_sal function call.
1888 (find_sal_from_funcs_and_line): Ditto.
1889 (all_sals_for_line): Ditto.
1890 * breakpoint.c (create_internal_breakpoint): Ditto.
1891 (create_fork_vfork_event_catchpoint): Ditto.
1892 (create_exec_event_catchpoint): Ditto.
1893 (parse_breakpoint_sals): Ditto.
1894 (watch_command_1): Ditto.
1895 (handle_gnu_4_16_catch_command): Ditto.
1896 (clear_command): Ditto.
1897 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1898 * infcmd.c (run_stack_dummy): Ditto.
1899 * infrun.c (process_event_stop_test): Ditto.
1900 (check_sigtramp2): Ditto.
1901 (step_over_function): Ditto.
1902 * linespec.c (decode_line_2): Ditto.
1903 (decode_line_1): Ditto.
1904 * source.c (line_info): Ditto.
1905 * symtab.c (find_pc_sect_line): Ditto.
1907 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1909 * dwarf2cfi.c (struct context)
1910 (struct context_reg): Moved to dwarf2cfi.h
1911 (context_alloc, frame_state_alloc, context_cpy):
1912 Made extern instead of static, removed prototypes.
1913 * dwarf2cfi.h (struct context)
1914 (struct context_reg): New, moved from dwarf2cfi.c
1915 (context_alloc, frame_state_alloc, context_cpy):
1917 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1918 Changed from static to extern.
1919 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1920 (LINUX_SIGCONTEXT_FP_OFFSET)
1921 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1922 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1923 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1924 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1925 set_gdbarch_*() calls now use x86-64 specific functions
1926 instead of DWARF2 CFI ones.
1927 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1928 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1929 (x86_64_init_extra_frame_info): New prototypes.
1931 2002-10-23 David Carlton <carlton@math.stanford.edu>
1933 * linespec.c: #include "parser-defs.h".
1934 Delete prototype for find_template_name_end.
1935 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1937 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1939 * NEWS: add recent mi fixes.
1940 * varobj.c (struct varobj): Add new "updated" flag.
1941 (new_variable): Default "updated" flag to 0.
1942 (varobj_set_value): Set "updated" flag to 1 if value
1944 (varobj_update): Check varobj "updated" flag before
1945 comparing old and refreshed values. Fix for
1948 2002-10-23 David Carlton <carlton@math.stanford.edu>
1950 * parse.c (parse_exp_1): Use BLOCK_START.
1951 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1953 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1955 2002-10-23 David Carlton <carlton@math.stanford.edu>
1957 * symtab.c: Delete cplusplus_hint.
1958 Delete prototype for find_template_name_end.
1960 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1962 * symtab.h: Update comment.
1964 2002-10-23 Michael Snyder <msnyder@redhat.com>
1966 * printcmd.c (address_info): Restore quotes in output.
1967 * valops.c (value_of_local): Restore quotes in error message.
1969 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1971 * symtab.c (symbol_demangled_name): New function.
1972 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1973 turning most of it into a function.
1974 (symbol_demangled_name): Export.
1976 2002-10-23 Michael Snyder <msnyder@redhat.com>
1978 * valops.c (value_of_local): Restore quotes in error message.
1980 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1982 * symtab.c (symbol_init_language_specific): New function.
1983 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1984 turning most of it into a function.
1985 (symbol_init_language_specific): Export.
1987 2002-10-23 David Carlton <carlton@math.stanford.edu>
1989 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1990 (dwarf_attr_name): Ditto.
1991 (dwarf_type_encoding_name): Ditto.
1992 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1993 (process_die): Handle DW_TAG_namespace,
1994 DW_TAG_imported_declaration, DW_TAG_imported_module.
1995 (read_namespace): New function.
1997 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1999 * configure.in: Define NEW_PROC_API on Interix too.
2000 * configure: Regenerate.
2002 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2004 * configure: Regenerate using the proper version of autoconf.
2006 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2008 * findvar.c (read_var_value): Temporarily disable TLS code, until
2009 complete TLS support is added.
2011 2002-10-21 Jim Blandy <jimb@redhat.com>
2012 Elena Zannoni <ezannoni@redhat.com>
2014 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2015 for thread local storage locations.
2016 (struct symbol): Add objfile field.
2017 (SYMBOL_OBJFILE): Define.
2018 * dwarf2read.c (is_thread_local): New static variable.
2019 (new_symbol): If variable is in thread local fill in address class
2020 and objfile appropriately.
2021 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2023 * printcmd.c (address_info): Print the information for thread
2024 local storage variable.
2025 * findvar.c (read_var_value): In case of thread local variable,
2026 defer to the target vector code to compute address.
2028 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2030 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2031 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2033 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2035 * symtab.h (address_class): Rename
2036 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2037 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2038 * printcmd.c (address_info): Ditto.
2039 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2041 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2043 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2044 DBREG_DRX macro to acces debug registers.
2046 * Makefile.in (i386obsd-tdep.o): New target.
2048 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2049 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2051 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2052 * config/i386/obsd.mt: New file.
2053 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2054 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2055 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2056 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2057 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2058 * i386obsd-tdep.c: New file.
2060 2002-10-19 Adam Fedor <fedor@gnu.org>
2062 * objc-exp.y (name_not_typename): Fix invalid comment.
2064 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2066 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2067 to allocate partial syms and macro byte caches.
2069 2002-10-18 David Carlton <carlton@math.stanford.edu>
2071 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2073 2002-10-18 Adam Fedor <fedor@gnu.org>
2075 * stabsread.c (find_name_end): New function.
2076 (define_symbol): Use it.
2078 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2080 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2081 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2082 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2083 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2085 2002-10-17 David Carlton <carlton@math.stanford.edu>
2087 * symfile.h: Add opaque declaration for struct obstack.
2088 Declare obsavestring to take a const char *.
2089 * symfile.c (obsavestring): Make first argument a const char *.
2091 2002-10-16 Adam Fedor <fedor@gnu.org>
2093 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2094 names when matching breakpoints in current file.
2096 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2098 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2099 (read_tag_pointer_type): Add address class support.
2100 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2101 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2103 * gdbarch.h, gdbarch.c: Regenerate.
2104 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2105 (make_type_with_address_space, recursive_type_dump): Add address
2107 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2108 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2109 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2111 2002-10-16 Klee Dienes <kdienes@apple.com>
2113 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2114 to get the last character of a char[] buffer, not
2115 name[sizeof(vptr_name)-1].
2117 2002-10-14 Adam Fedor <fedor@gnu.org>
2119 * symtab.h: New objc_specific struct.
2120 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2121 (SYMBOL_DEMANGLED_NAME): Likewise.
2123 2002-10-14 Adam Fedor <fedor@gnu.org>
2125 * symfile.c (init_filename_language_table): Add ObjC file extension.
2127 2002-10-14 Adam Fedor <fedor@gnu.org>
2129 * utils.c (puts_filtered_tabular): New function.
2130 (fprintf_symbol_filtered): Get ObjC demangled name.
2131 * defs.h (puts_filtered_tabular): Declared.
2133 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2135 * c-lang.h (c_type_print_varspec_prefix): Delete.
2136 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2137 ``need_post_space'' parameter. Adjust all callers.
2139 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2141 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2142 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2143 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2144 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2146 2002-10-13 Adam Fedor <fedor@gnu.org>
2148 * source.c (print_source_lines): Update comments.
2150 2002-10-13 Adam Fedor <fedor@gnu.org>
2152 * valops.c (value_of_local): New function.
2153 (value_of_this): Use it.
2154 * value.h (value_of_local): Declared.
2156 2002-10-13 Adam Fedor <fedor@gnu.org>
2158 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2159 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2161 2002-10-12 Adam Fedor <fedor@gnu.org>
2163 * language.c (binop_result_type): Add language_objc to case.
2164 (integral_type): Likewise.
2165 (character_type): Likewise.
2166 (string_type): Likewise.
2167 (boolean_type): Likewise.
2168 (structured_type): Likewise.
2169 (binop_type_check): Likewise.
2171 2002-10-11 Adam Fedor <fedor@gnu.org>
2173 * printcmd.c (address_info): Print 'self' for ObjC.
2175 2002-10-11 Adam Fedor <fedor@gnu.org>
2177 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2180 2002-10-11 Adam Fedor <fedor@gnu.org>
2182 * language.h (CAST_IS_CONVERSION): Add language_objc.
2184 2002-10-11 Adam Fedor <fedor@gnu.org>
2186 * defs.h (enum language): Add language_objc.
2188 2002-10-11 Klee Dienes <kdienes@apple.com>
2190 * corefile.c (read_memory_typed_address): New function.
2191 * gdbcore.h (read_memory_typed_address): Add prototype.
2192 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2193 to read a value destined for a CORE_ADDR, not read_memory_integer.
2194 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2195 (f77_get_dynamic_lowerbound): Ditto.
2197 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2199 * utils.c (string_to_core_addr): After turning string into
2200 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2201 which will do necessary sign-extension, etc.
2203 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2205 * c-exp.y (THIS): Delete token and grammar rule.
2206 (yylex): Don't return THIS.
2207 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2208 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2209 * demangle.c (cplus_markers): Update comment. Put '$'
2210 first. Remove CPLUS_MARKER.
2211 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2212 * jv-exp.y (THIS): Delete token and grammar rule.
2213 (yylex): Don't return THIS.
2214 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2215 * objc-exp.y (THIS): Delete token and grammar rule.
2216 (yylex): Don't return THIS.
2217 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2218 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2219 (read_member_functions): Likewise for opname.
2220 (read_tilde_fields): Use is_cplus_marker.
2222 * defs.h (CPLUS_MARKER): Don't define.
2223 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2224 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2225 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2226 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2227 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2229 * config/i386/tm-i386v4.h: Delete file.
2230 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2231 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2232 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2233 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2234 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2235 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2236 * config/i386/i386v4.mt (TM_FILE): Likewise.
2237 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2239 2002-10-10 Marko Mlinar <markom@opencores.org>
2241 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2242 accidentially not commited 2002-10-09
2243 * gdbarch.h, gdbarch.c: Re-generate.
2245 2002-10-09 Marko Mlinar <markom@opencores.org>
2247 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2248 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2249 * gdbarch.h, gdbarch.c: Re-generate.
2251 2002-10-08 Petr Sorfa <petrs@caldera.com>
2253 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2255 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2256 so we can work on more than one compilation unit at a time. This
2257 helps prepare GDB to handle inter-CU die references.
2258 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2259 the code to be defined before struct comp_unit_head.
2260 (comp_unit_head): Added new members - offset, cu_head,
2261 begin_die, next and dwarf2_abbrevs.
2262 (dwarf2_abbrevs): Removed single static var; now member of
2263 struct comp_unit_head.
2264 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2266 (psymtab_to_symtab_1): Changed to work with the new
2267 struct comp_unit_head.
2268 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2269 constructs the dwarf2_abbrevs[] inside the cu_header.
2270 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2271 dwarf2_abbrev table to clean up.
2272 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2273 handling of dwarf2_abbrevs inside the cu_header.
2274 (read_partial_die): Now supports the call to the new
2275 dwarf2_lookup_abbrev.
2276 (read_full_die): Now supports the call to the new
2277 dwarf2_lookup_abbrev.
2279 2002-10-06 Christopher Faylor <cgf@redhat.com>
2281 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2282 insure that shell variables, such as "transformed_name" are propagated
2283 to later shell statements in rule.
2285 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2287 * config/i386/nm-i386sco.h: Add protection against
2288 multiple-inclusion. Include "i386/nm-i386v.h".
2289 (REGISTER_U_ADDR): Remove define.
2290 (i386_register_u_addr): Remove prototype.
2292 2002-10-04 Michael Snyder <msnyder@redhat.com>
2294 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2295 before treating it as a single-step event.
2297 2002-10-03 Adam Fedor <fedor@gnu.org>
2299 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2300 (objc_demangle): Remove assignment in if statements, Replace
2302 (add_msglist): Likewise.
2303 (end_msglist): Likewise.
2304 (complare_selectors): Likewise.
2305 (selectors_info): Likewise.
2306 (compare_classes): Likewise.
2307 (classes_info): Likewise.
2308 (print_object_command): Likewise.
2309 (find_objc_msgcall_submethod): Replace PTR with void *.
2310 * objc-lang.h: Remove check for __STDC__.
2312 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2314 * ui-out.h (ui_out_field_fmt_int): New prototype.
2315 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2316 of field width and alignment.
2317 * stack.c (print_frame_info_base): When printing frame level, use
2318 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2321 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2323 * MAINTAINERS: Add self to Write After Approval list.
2325 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2327 * infcmd.c (interrupt_target_command_wrapper): Delete.
2328 (interrupt_target_command): Make non static.
2329 (nofp_registers_info): Make static.
2330 * stack.c (return_command_wrapper): Delete.
2331 (return_command): Make non static.
2333 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2335 * event-top.c (gdb_setup_readline): New function. Code moved from
2336 _initialize_event_loop().
2337 (_initialize_event_loop): Call gdb_setup_readline().
2339 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2341 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2342 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2343 * gdbarch.h, gdbarch.c: Re-generate.
2345 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2348 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2350 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2351 of fill_in_vptr_fieldno.
2353 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2355 * inferior.h (registers_info, stepi_command, nexti_command,
2356 continue_command, interrupt_target_command): Export from infcmd.c.
2357 * frame.h (args_info, selected_frame_level_changed_hook,
2358 return_command): Export from stack.c.
2359 * v850ice.c (stepi_command, nexti_command, continue_command): use
2360 prototypes from inferior.h.
2361 * tracepoint.c (registers_info, args_info, locals_info): Use
2362 prototypes from frame.h and inferior.h.
2363 * Makefile.in (mi-main.o): Add dependency on frame.h.
2365 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2367 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2368 value in register 3 adjusted by ppc_gp0_regnum.
2370 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2372 2002-10-02 Marko Mlinar <markom@opencores.org>
2374 * MAINTAINERS: Add myself to the Write After Approval list.
2376 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2378 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2379 of the section for the N64 ABI, fixed.
2381 * config/mips/tm-irix6.h: Include solib.h.
2383 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2385 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2388 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2390 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2391 and that "mi0" syntax has been removed.
2393 2002-09-30 David Carlton <carlton@math.stanford.edu>
2395 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2396 * ppc-sysv-tdep.c: #include "gdb_string.h".
2397 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2400 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2402 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2403 "vrsave"'s register number.
2405 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2407 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2408 use frame_unwind_signed_register to obtain the PC.
2409 (mips_frame_chain): Handle a generic dummy frame.
2410 (mips_init_extra_frame_info): When a generic dummy frame, don't
2411 re-compute the frame base.
2412 (mips_pop_frame): Handle generic dummy frames.
2413 (mips_gdbarch_init): When generic dummy frames, set
2414 use_generic_dummy_frames, push_dummy_frame to
2415 generic_push_dummy_frame, pc_in_call_dummy to
2416 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2417 generic_save_dummy_frame_tos.
2419 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2421 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2422 against TOP when TOP was explictly set.
2423 (generic_push_dummy_frame): Set TOP to zero.
2425 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2427 * event-loop.c (start_event_loop): Rename variable 'result' to
2428 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2430 2002-09-30 Keith Seitz <keiths@redhat.com>
2432 * gdb-events.sh (selected_thread_changed): New event.
2433 * gdb-events.c: Regenerated.
2434 * gdb-events.h: Regenerated.
2436 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2438 * MAINTAINERS: Add self to Write After Approval list.
2440 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2442 * disasm.c: New file.
2443 * disasm.h: New file.
2444 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2445 (compare_lines): Ditto.
2446 (dump_insns): Ditto.
2447 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2449 (do_assembly_only): Ditto.
2450 (do_disassembly): Renamed to gdb_disassembly and moved to
2451 disasm.c. Sdded uiout argument.
2452 * Makefile.in: Add new files. Reorder SFILES list. Update
2453 dependencies. Include libgdb.a later in the insight executable.
2455 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2457 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2458 bfd/elf64-alpha-fbsd.c.
2460 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2462 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2465 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2467 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2469 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2471 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2472 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2473 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2474 (S_msg_sig_post_reply): Ditto.
2476 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2478 * sh-tdep.c (sh_use_struct_convention): Use definition according
2480 (sh_push_arguments): Store in register with correct endianess.
2481 (sh_default_store_return_value): Ditto.
2482 (sh_gdbarch_init): Set sizeof long double to 8.
2484 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2486 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2487 Fix some whitespace problems.
2489 2002-09-27 David Carlton <carlton@math.stanford.edu>
2491 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2492 (mcore-tdep.o): Ditto.
2493 (ns32k-tdep.o): Ditto.
2494 (ns32knbsd-tdep.o): Ditto.
2496 (vax-tdep.o): Ditto.
2497 * cris-tdep.c: #include "gdb_string.h"
2498 * mcore-tdep.c: Ditto.
2499 * ns32k-tdep.c: Ditto.
2500 * ns32knbsd-tdep.c: Ditto.
2502 * vax-tdep.c: Ditto.
2504 2002-09-27 David Carlton <carlton@math.stanford.edu>
2506 * config/djgpp/fnchange.lst: Add entries for
2507 gdb/testsuite/gdb.c++/m-static files.
2509 2002-09-27 Jim Wilson <wilson@redhat.com>
2511 * MAINTAINERS: Add myself to the Write After Approval list.
2513 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2515 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2518 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2520 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2523 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2525 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2526 (rs6000_struct_return_address): Delete variable.
2527 (rs6000_store_struct_return): Update.
2528 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2529 deprecated_extract_struct_value_address.
2530 (rs6000_frame_align): New function.
2531 (rs6000_gdbarch_init): Set frame_align.
2533 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2535 From Grace Sainsbury <graces@redhat.com>:
2536 * Makefile.in (gdbtk-main.o): New target.
2537 (gdb.o): New target.
2539 (main.o): Update dependencies.
2540 (gdb$(EXEEXT)): Add gdb.o.
2541 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2542 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2543 (SUBDIR_GDBTK_CLEAN): Set.
2544 (install-gdbtk): Install the insight binary.
2545 (uninstall-gdbtk): New target.
2546 (all-gdbtk, clean-gdbtk): New rule.
2547 * top.c (use_windows): Default to zero.
2548 * main.c: Include "main.h".
2550 (struct captured_main_args): Delete.
2551 (gdb_main): New function.
2555 2002-09-25 Andrew Cagney <cagney@redhat.com>
2557 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2558 (frame_map_regnum_to_name): New function.
2559 (frame_map_name_to_regnum): New function.
2560 * frame.h (frame_map_name_to_regnum): Declare.
2561 (frame_map_regnum_to_name): Declare.
2562 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2563 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2564 * parse.c: Do not include "builtin-regs.h".
2565 (target_map_name_to_register): Delete function.
2566 (write_dollar_variable): Use frame_map_name_to_regnum.
2567 * parser-defs.h (target_map_name_to_register): Delete declaration.
2568 * expprint.c: Include "frame.h".
2569 (print_subexp): Use frame_map_regnum_to_name.
2570 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2571 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2573 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2575 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2576 wasn't saved, and the next innermost frame is a dummy, return the
2577 dummy frame's link register.
2579 2002-09-24 Jim Blandy <jimb@redhat.com>
2581 Fix from Paul Breed:
2582 * main.c (captured_main): Add a `break' after the case for 'b'.
2584 2002-09-24 Keith Seitz <keiths@redhat.com>
2586 * varobj.c (c_type_of_child): Use get_target_type instead
2587 of TYPE_TARGET_TYPE.
2589 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2591 * source.c (get_current_or_default_source_symtab_and_line): Remove
2593 (set_default_source_symtab_and_line): New function. Attempts to
2594 determine a source file to list lines from if one is not currently
2596 (get_current_source_symtab_and_line): Initialize sal.pc and
2598 (set_current_source_symtab_and_line): Mark argument as const.
2599 * source.h: Update declarations and comments.
2600 * linespec.c (decode_line_1): Replace call to removed routine above.
2601 * stack.c (print_frame_info_base): Ditto.
2602 * cli/cli-cmds.c (edit_command): Ditto.
2603 (list_command): Ditto.
2605 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2607 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2608 sal.pc and sal.end fields.
2609 (get_current_or_default_source_symtab_and_line): Ditto.
2610 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2611 so we do not cause a new source symtab to be searched for (reverting an
2612 unintentional change from the 2002-09-20 patch).
2613 * scm-lang.c (scm_unpac): Ditto.
2615 2002-09-21 Andrew Cagney <cagney@redhat.com>
2617 * complaints.c (symfile_explanations): Remove new-line from
2618 ``isolated_message''.
2619 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2620 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2622 2002-09-20 Nick Clifton <nickc@redhat.com>
2624 * NEWS: Announce that V850EA ISA is no longer supported.
2625 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2627 2002-09-20 David Carlton <carlton@math.stanford.edu>
2629 * Makefile.in (c-lang.o): Correct dependencies.
2630 (utils.o): Gather dependencies.
2632 * c-lang.c: #include "gdb_string.h"
2634 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2636 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2637 * cli/cli-cmds.c (list_command): New function. Implements the new
2639 (_init_cli_cmds): Add new command definition.
2640 * gdb.1: Document edit command.
2641 * doc/gdb.texinfo: Document edit command.
2643 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2645 * source.c: Make global variables current_source_symtab and
2646 current_source_line static.
2647 (list_command): Moved to cli/cli-cmds.c.
2648 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2649 (get_first_line_listed): New accessor function.
2650 (get_lines_to_list): New accessor function.
2651 (get_current_source_symtab_and_line): New function. Retrieves the
2652 position in the source code that we consider current.
2653 (get_current_or_default_source_symtab_and_line): New function.
2654 Like the above but attempts to determine a default position if one
2655 is not currently defined.
2656 (set_current_source_symtab_and_line): New function. Sets the source
2657 code position considered current and returns the previously set one.
2658 (clear_current_source_symtab_and_line): Reset stored information about
2659 a current source line.
2660 (_initialize_source): Remove registration for the "list" command and
2662 * source.h: Add declarations for the new functions above.
2663 * symtab.h: Remove declarations for the global variables mentioned
2665 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2666 obtain current source line.
2667 * linespec.c (decode_line_1): Ditto.
2668 * macroscope.c (default_macro_scope): Ditto.
2669 * scm-lang.c (scm_unpac): Ditto.
2670 * stack.c (print_frame_info_base): Ditto.
2671 * symfile.c (clear_symtab_users): Ditto.
2672 * symtab.c (decode_line_spec): Ditto.
2673 * cli/cli-cmds.c (list_command): Moved here from source.c.
2674 (ambiguous_line_spec): Moved here from source.c.
2675 (_init_cli_cmds): Add definition for "list" and its alias.
2676 * Makefile.in: Update dependencies.
2678 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2680 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2681 with what gcc thinks is correct.
2683 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2685 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2686 multiple register push instruction.
2688 2002-09-19 Jim Blandy <jimb@redhat.com>
2690 Add support for distinct host and target character sets.
2691 * charset.c, charset.h: New files.
2692 * c-exp.y: #include "charset.h".
2693 (yylex): Convert character and string literals to the target
2694 character set, before returning them as the semantic value of the
2696 * c-lang.c: #include "charset.h".
2697 (c_emit_char): Use charset-specific methods to recognize
2698 characters with backslash escape forms, to decide which characters
2699 to print literally and which to print using numeric escape
2700 sequences, and to convert target characters to host characters
2702 * utils.c: #include "charset.h".
2703 (no_control_char_error): New function.
2704 (parse_escape): Use charset-specific methods to recognize
2705 backslash escapes, parse `control character' notation, and convert
2706 characters from the host character set to the target character set.
2707 * configure.in: Set the default host character set.
2708 Check where to find iconv, and what its argument types might be.
2709 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2710 * Makefile.in (SFILES): List charset.c.
2711 (COMMON_OBS): List charset.o.
2712 (charset.o): New rule.
2713 (charset_h): New header dependency variable.
2714 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2715 (LIBICONV): New variable, set by configure.
2716 (CLIBS): Include $(LIBICONV) here.
2717 * aclocal.m4, config.in, configure: Regenerated.
2719 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2721 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2724 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2726 * gdb_mbuild.sh: New file.
2728 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2730 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2732 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2734 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2735 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2736 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2737 valops.c, value.h: Revert previous change.
2739 2002-09-18 Michael Snyder <msnyder@redhat.com>
2741 Preliminary support for Objective-C:
2742 * defs.h (language_objc): New enum value.
2743 (puts_filtered_tabular): Declaration only, exported from utils.c.
2744 (skip_quoted): Delete, declared in completer.h.
2745 * c-exp.y: Include completer.h.
2748 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2749 New operator enum values.
2750 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2751 * language.c (binop_result_type): Handle language_objc case.
2752 (integral_type, character_type, string_type, boolean_type,
2753 structured_type, binop_type_check): Ditto.
2754 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2755 (struct objc_specific): Add to general_symbol_info.
2756 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2757 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2758 * parser-defs.h (struct objc_class_str): New struct type.
2759 (start_msglist, end_msglist, add_msglist): Declaration only,
2760 exported from objc-lang.c.
2761 * value.h (value_of_local, value_nsstring,
2762 call_function_by_hand_expecting_type): Exported from valops.c.
2763 * valops.c (find_function_addr): Export.
2764 (call_function_by_hand_expecting_type): New function.
2765 (value_of_local): New function.
2766 * symfile.c (init_filename_language_table): Add ".m" extension
2768 * utils.c (puts_filtered_tabular): New function.
2769 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2770 (set/show demangle): Extend help-string to refer to ObjC.
2771 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2772 * stabsread.c (symbol_reference_defined): Objective-C symbols
2773 may contain colons: make allowances when scanning stabs strings
2775 (objc_find_colon): New function.
2776 * printcmd.c (address_info): If language == objc then print
2777 "self" instead of "this".
2778 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2779 OP_NSSTRING, and OP_SELF.
2780 (prefixify_subexp): Ditto.
2781 * source.c (print_source_lines): Mention objc in comment.
2782 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2785 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2787 * complaints.h: Update copyright.
2788 (struct complaints): Declare.
2789 (struct complaint): Make `message' constant.
2790 (internal_complaint): Declare.
2791 (complaint): Declare.
2792 (complaint_root): Delete declaration.
2793 (symfile_complaints): Delete declaration.
2794 (struct complaints): Add opaque declaration.
2795 (clear_complaints): Add a complaints parameter.
2796 * complaints.c: Update copyright.
2797 (enum complaint_series): Define.
2798 (complaint_root): Delete.
2799 (struct complaints): Define.
2800 (complaint_sentinel, symfile_complaint_book): New variables.
2801 (symfile_explanations, symfile_complaints): New variables.
2803 (get_complaints): New function.
2804 (vcomplaint): New function.
2805 (complaint): New function.
2806 (internal_complaint): New function.
2807 (complain): Call vcomplain with symfile_complaint.
2808 (clear_complaints): Rewrite.
2809 (_initialize_complaints): Use add_setshow_command.
2810 * Makefile.in (complaints.o): Update dependencies.
2811 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2812 to call to clear_complaints.
2813 (new_symfile_objfile, reread_symbols): Ditto.
2814 (oldsyms_complaint): Delete.
2815 (empty_symtab_complaint, unknown_option_complaint): Delete.
2816 (free_named_symtabs): Use complaint instead of complain.
2818 2002-09-18 Michael Snyder <msnyder@redhat.com>
2820 Contributed by Apple Computer, Inc. Merged with current sources
2821 by Adam Fedor <fedor@doc.com> [cagney].
2823 * objc-lang.c: First clean-up round: comments, indentation.
2824 * objc-lang.h: Ditto.
2825 * objc-lang.y: Ditto.
2827 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2829 * maint.c (maintenance_internal_error): Print the parameter as the
2831 (maintenance_internal_warning): New function.
2832 (_initialize_maint_cmds): Add command `maint internal-warning'.
2834 * defs.h (internal_warning, internal_vwarning): Declare.
2835 * utils.c (struct internal_problem): Define.
2836 (internal_vproblem): New function.
2837 (internal_warning): New function.
2838 (internal_vwarning): New function.
2839 (internal_warning_problem, internal_error_problem): New variables.
2840 (internal_verror): Just call internal_vproblem.
2842 2002-09-18 Michael Snyder <msnyder@redhat.com>
2844 * objc-lang.c: New file, support for Objective-C.
2845 Preliminary check-in, not yet integrated into gdb.
2846 * objc-lang.h: New file.
2847 * objc-exp.y: New file.
2849 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2851 * infrun.c (signal_stop_update): Convert definition to ISO C.
2852 (signal_print_update): Ditto.
2853 (signal_pass_update): Ditto.
2854 * inflow.c (terminal_save_ours): Ditto.
2856 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2859 * config/djgpp/fnchange.lst: Handle name clashes between
2860 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2863 * i386-linux-tdep.h: Fix tipo.
2865 2002-09-18 Adam Fedor <fedor@gnu.org>
2867 * MAINTAINERS: Add myself to the Write After Approval list.
2869 2002-09-18 Jim Blandy <jimb@redhat.com>
2871 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2872 texthigh and textlow to reader-specific structs caused
2873 objfile_relocate to miss them. This is fixable, but the work that
2874 the change was supposed to prepare GDB for never got done anyway.
2876 2002-09-18 David Carlton <carlton@math.stanford.edu>
2878 * MAINTAINERS: Alphabetize Write After Approval list.
2880 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2883 * values.c (value_static_field): Call read_var_value.
2885 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2887 * valops.c (hand_function_call): Align the initial stack pointer
2888 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2889 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2891 * mips-tdep.c (mips_frame_align): New function.
2892 (mips_gdbarch_init): Set frame_align.
2893 * gdbarch.sh (FRAME_ALIGN): New method.
2894 * gdbarch.h, gdbarch.c: Re-generate.
2896 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2898 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2901 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2903 * NEWS: Mention that MIPS $fp behavior changed.
2904 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2905 reference to FP_REGNUM.
2906 (mipsnbsd_cannot_store_register): Ditto.
2907 * mips-linux-nat.c: Update copyright.
2908 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2909 (mips_linux_cannot_store_register): Ditto.
2910 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2911 * config/mips/tm-mips.h: Update copyright.
2912 (FP_REGNUM): Delete macro.
2913 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2914 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2915 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2916 (mips_r3041_reg_names, mips_r3051_reg_names)
2917 (mips_r3081_reg_names): Replace "fp" with "".
2920 2002-09-17 Theodore A. Roth <troth@verinet.com>
2922 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2923 generic_read_register_dummy() (PR gdb/703).
2924 (avr_push_return_address): #if 0 out unused vars.
2925 (avr_gdbarch_init): Enable use of avr_push_return_address().
2927 2002-09-17 Michael Snyder <msnyder@redhat.com>
2929 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2930 RTE will take care of it.
2932 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2934 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2935 invalid, return SP_REGNUM.
2937 2002-09-17 Michael Snyder <msnyder@redhat.com>
2939 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2940 point registers without sign extension.
2942 2002-09-17 Andrew Cagney <cagney@redhat.com>
2944 * blockframe.c (deprecated_read_register_dummy): Rename
2945 generic_read_register_dummy.
2946 * frame.c (frame_unwind_signed_register): New function.
2947 (frame_unwind_unsigned_register): New function.
2948 * frame.h (frame_unwind_signed_register): Declare.
2949 (frame_unwind_unsigned_register): Declare.
2950 (deprecated_read_register_dummy): Rename
2951 generic_read_register_dummy.
2953 * h8300-tdep.c (h8300_frame_chain): Update.
2954 (h8300_frame_saved_pc): Update.
2955 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2956 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2957 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2958 (s390_frame_chain): Update.
2959 * v850-tdep.c (v850_find_callers_reg): Update.
2960 (v850_frame_saved_pc): Update.
2961 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2962 (m32r_find_callers_reg): Update.
2963 (m32r_frame_saved_pc): Update.
2964 * sh-tdep.c (sh_find_callers_reg): Update.
2965 (sh64_get_saved_pr): Update.
2966 (sh_init_extra_frame_info): Update.
2967 (sh_init_extra_frame_info): Update.
2968 (sh64_init_extra_frame_info): Update.
2969 (sh64_init_extra_frame_info): Update.
2970 * mcore-tdep.c (mcore_find_callers_reg): Update.
2971 (mcore_frame_saved_pc): Update.
2972 (mcore_init_extra_frame_info): Update.
2973 * i386-tdep.c (i386_frame_saved_pc): Update.
2974 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2975 (ia64_init_extra_frame_info): Update.
2976 (ia64_init_extra_frame_info): Update.
2977 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2978 * cris-tdep.c (cris_init_extra_frame_info): Update.
2979 * avr-tdep.c (avr_frame_chain): Update.
2980 (avr_init_extra_frame_info): Update.
2981 (avr_frame_saved_pc): Update.
2982 * arm-tdep.c (arm_find_callers_reg): Update.
2983 (arm_init_extra_frame_info): Update.
2984 (arm_frame_saved_pc): Update.
2986 2002-09-17 Tom Tromey <tromey@redhat.com>
2988 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2991 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2993 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2994 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2996 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2999 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3001 * osfsolib.c: Remove file, replaced by solib-osf.c.
3002 * Makefile.in: Remove compilation rules for osfsolib.c.
3004 2002-09-16 David Carlton <carlton@math.stanford.edu>
3006 * cp-valprint.c (cp_print_class_method): Correct args to
3007 check_stub_method_group.
3009 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3011 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3012 `set architecture'. Unify naming convention of functions.
3013 (h8300_skip_prologue): Improve prologue analysis.
3014 (h8300_push_arguments): Rewritten to more closely match GCC's
3015 bizarre argument-passing behavior, along with the comment describing
3017 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3018 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3019 sim, remote-e7000.c, remote-hms.c and remote.c
3021 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3023 * i386-tdep.c (gdb_print_insn_i386): Removed.
3024 (i386_print_insn): New function.
3025 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3026 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3029 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3031 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3034 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3036 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3037 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3038 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3040 2002-09-13 Christopher Faylor <cgf@redhat.com>
3042 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3044 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3046 * gdbtypes.c (check_stub_method): Make static.
3047 (check_stub_method_group): New function.
3048 * gdbtypes.h: Update prototypes.
3049 * cp-support.c: New file.
3050 * cp-support.h: New file.
3052 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3053 (update_method_name_from_physname): New function.
3054 (read_member_functions): Correct method names for operators
3055 and v3 constructors/destructors. Separate v2 constructors and
3057 * Makefile.in (stabsread.o): Update dependencies.
3058 (SFILES): Add cp-support.c.
3059 (COMMON_OBS): Add cp-support.o.
3060 (cp_support_h, cp-support.o): Add.
3062 * cp-valprint.c (cp_print_class_method): Call
3063 check_stub_method_group instead of check_stub_method. Remove
3065 * p-valprint.c (pascal_object_print_class_method): Likewise.
3066 * valops.c (search_struct_method): Likewise.
3067 (find_method_list, value_struct_elt_for_reference): Likewise.
3069 2002-09-13 Andrew Cagney <cagney@redhat.com>
3071 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3072 * gdbarch.h, gdbarch.c: Regenerate.
3074 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3076 * frame.c (find_saved_register): Delete function.
3077 * frame.h (find_saved_register): Delete declaration.
3080 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3082 * mips-tdep.c (read_next_frame_reg): Re-hack using
3083 frame_register_unwind.
3085 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3087 * mips-tdep.c (mips_get_saved_register): Re-hack using
3088 frame_register_unwind.
3090 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3092 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3093 vector. Will be useful for Interix.
3094 * gdbarch.h, gdbarch.c: Regenerate.
3096 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3097 name of the malloc function by NAME_OF_MALLOC.
3099 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3101 * value.h (find_function_in_inferior): Add const keyword to
3102 one of the parameters. Allows us to invoke this function with
3104 * valops.c (find_function_in_inferior): Likewise.
3106 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3108 * exec.c (xfer_memory): Fix compilation warning with old versions
3110 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3112 2002-09-12 David Carlton <carlton@math.stanford.edu>
3114 * symtab.h: Run through gdb_indent.h.
3115 Add 2002 to Copyright year list.
3117 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3119 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3121 * MAINTAINERS: Add myself to write after approval list.
3123 2002-09-11 J. Brobecker <brobecker@gnat.com>
3125 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3127 2002-09-11 J. Brobecker <brobecker@gnat.com>
3129 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3132 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3134 * procfs.c (do_detach): Clear current signal, not just fault.
3135 Corrects problem with breakpoint trap signal leaking to detached
3138 2002-09-10 Michael Snyder <msnyder@redhat.com>
3140 * buildsym.c (finish_block): Protect against null pointer.
3142 2002-09-10 Andrew Cagney <cagney@redhat.com>
3144 * infcmd.c (default_print_registers_info): Send all output to
3145 ``file'' instead of ``gdb_stdout''.
3147 2002-09-10 Michael Snyder <msnyder@redhat.com>
3149 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3150 LONGEST, and use signed register read (addresses are sign-
3153 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3155 * event-loop.c (gdb_do_one_event): Make public.
3156 * event-loop.h (gdb_do_one_event): Declare.
3158 2002-09-10 Jeff Law <law@redhat.com>
3160 * infttrace.c (child_resume): Simplify and rework to avoid
3163 2002-09-09 Fred Fish <fnf@intrinsity.com>
3165 * printcmd.c (print_scalar_formatted): "len" is the number of
3166 target bytes, NOT the number of target bits.
3168 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3170 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3171 * top.c (init_main): Set rl_terminal_name.
3173 2002-09-08 Aidan Skinner <aidan@velvet.net>
3175 * ada-lang.c (ada_array_bound, ada_type_match,
3176 _initialize_ada_language): Fix K&R definitions.
3177 * ada-tasks.c (get_current_task): Fix K&R definitions.
3178 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3180 2002-09-07 Christopher Faylor <cgf@redhat.com>
3182 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3185 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3187 * i386-tdep.c (i386_register_virtual_type,
3188 i386_register_convertible, i386_register_convert_to_virtual,
3189 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3190 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3191 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3192 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3193 Don't set push_arguments twice.
3195 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3196 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3197 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3198 sigtramp_end to NULL.
3199 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3201 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3203 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3206 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3207 * gdbarch.h, gdbarch.c: Re-generate.
3208 * blockframe.c (find_pc_sect_partial_function): Convert to use
3209 SIGTRAMP_START_P predicate.
3211 2002-09-05 Michael Snyder <msnyder@redhat.com>
3213 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3214 generic_dummy_frame method and old method. Also distinguish
3215 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3216 (arm_extract_return_value): Use new regcache method.
3218 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3219 adjustment that doesn't conform to the ABI.
3220 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3221 saved regcache, not from current regcache.
3223 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3225 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3228 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3230 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3231 if arm_apcs_32 is false.
3233 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3235 GDB 5.3 branch created.
3237 2002-09-03 Theodore A. Roth <troth@verinet.com>
3239 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3240 generic_unwind_get_saved_register.
3242 2002-09-03 David Carlton <carlton@math.stanford.edu>
3244 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3245 argument (PR gdb/653). Update call to smash_to_method_type.
3246 (read_structure_scope): Update call to dwarf2_add_member_fn.
3248 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3250 * x86-64-linux-tdep.c: Include gdb_string.h
3251 * x86-64-linux-nat.c: Ditto.
3253 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3255 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3256 when YYDEBUG is set to 1.
3257 * c-exp.y: Likewise.
3258 * f-exp.y: Likewise.
3259 * jv-exp.y: Likewise.
3260 * m2-exp.y: Likewise.
3261 * p-exp.y: Likewise.
3263 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3265 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3267 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3268 solib_svr4_fetch_link_map_offsets to
3269 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3270 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3271 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3272 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3273 solib-svr4.o, and solib-legacy.o.
3274 * config/i386/tm-nbsd.h: Include solib.h.
3276 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3278 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3279 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3280 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3281 comment noting that this needs its own target configuration.
3282 * config/i386/nbsd.mt: New file.
3283 * config/i386/nbsdaout.mt: Remove.
3284 * config/i386/nbsdelf.mt: Ditto.
3285 * config/i386/tm-nbsdaout.h: Ditto.
3287 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3289 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3290 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3291 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3293 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3294 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3295 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3297 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3299 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3300 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3301 * i386-tdep.h (i386bsd_init_abi): New prototype.
3302 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3303 function declaration.
3304 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3305 for NetBSD-a.out or NetBSD-ELF.
3306 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3307 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3308 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3309 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3311 (i386nbsd_pc_in_sigtramp): New function.
3312 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3313 i386nbsd_pc_in_sigtramp.
3314 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3315 and i386nbsdelf_init_abi OS ABI handlers.
3316 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3317 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3319 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3321 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3322 registers if the target really has them.
3324 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3326 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3329 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3331 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3333 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3334 (alphanbsd_skip_sigtramp_frame): New functions.
3335 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3336 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3337 to alphanbsd_sigcontext_addr.
3339 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3341 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3343 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3344 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3345 nbsd_pc_in_sigtramp.
3346 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3347 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3348 * nbsd-tdep.c: Include gdb_string.h.
3349 (nbsd_pc_in_sigtramp): New function.
3350 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3351 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3352 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3353 ppcnbsd_pc_in_sigtramp.
3354 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3355 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3356 shnbsd_pc_in_sigtramp.
3357 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3358 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3359 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3361 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3363 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3364 watchpoints to NULL.
3365 (insert_breakpoints): set val field of watchpoints if NULL.
3368 2002-08-29 Jim Blandy <jimb@redhat.com>
3370 * symtab.c (lookup_symbol_aux): In the cases where we find a
3371 minimal symbol of an appropriate name and use its address to
3372 select a symtab to read and search, use `name' (as passed to us)
3373 as the demangled name when searching the symtab's global and
3374 static blocks, not the minsym's name.
3376 2002-08-29 Keith Seitz <keiths@redhat.com>
3378 * stack.c (print_frame_info_base): Always set current_source_symtab
3379 and current_source_line.
3381 2002-08-29 Donn Terry <donnte@microsoft.com>
3383 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3385 2002-08-28 Keith Seitz <keiths@redhat.com>
3387 * stack.c (select_frame): Add FIXME concerning selected-frame
3389 (select_frame_command): Send selected-frame-level-changed
3390 event notification, but only if the level actually changed.
3391 (up_silently_base): Add selected-frame-level-changed event
3393 (down_silently_base): Likewise.
3395 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3397 * Makefile.in: Update dependencies for all gdb/*.c files.
3399 2002-08-27 Tom Tromey <tromey@redhat.com>
3401 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3402 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3403 Update dependencies.
3404 * i387-tdep.c: Include gdb_string.h.
3405 * osabi.c: Likewise.
3406 * i386-linux-nat.c: Likewise.
3407 * lin-lwp.c: Likewise.
3408 * ax-gdb.c: Likewise.
3409 * signals/signals.c: Likewise.
3410 * jv-valprint.c: Likewise.
3411 * p-lang.c: Likewise.
3412 * c-valprint.c: Likewise.
3413 * cp-abi.c: Likewise.
3415 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3417 * cli/cli-script.h (copy_command_lines): Export.
3418 * breakpoint.c: Include cli/cli-script.h.
3419 * Makefile.in (breakpoint.o): Update dependencies.
3421 2002-08-26 Michael Snyder <msnyder@redhat.com>
3423 * breakpoint.c (insert_breakpoints): Protect all references
3424 to 'process_warning'. Shorten long lines.
3426 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3428 * cli/cli-script.c (copy_command_lines): New function.
3429 * defs.h (copy_command_lines): Export.
3430 * testsuite/gdb.base/commands.exp: New tests for commands
3431 attached to a temporary breakpoint, and for commands that
3432 delete the breakpoint they are attached to.
3434 2002-08-26 Michael Snyder <msnyder@redhat.com>
3436 * breakpoint.c (bpstat_stop_status): Instead of copying the
3437 pointer to the breakpoint commands struct, make a new copy
3438 of the struct and point to that.
3439 (bpstat_clear): Free the commands struct.
3440 (bpstat_clear_actions): Free the commands struct.
3441 (bpstat_do_actions): Free the command actions. Also execute
3442 the local cleanups, instead of deleting them.
3443 (delete_breakpoint): Leave the commands field of the bpstat
3444 chain alone -- it will be freed later.
3446 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3448 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3449 deleted in 2002-08-20 commit. This function is still used by
3452 2002-08-26 Keith Seitz <keiths@redhat.com>
3454 * gdb-events.sh: Add selected-frame-level-changed event.
3455 * gdb-events.c: Regenerated.
3456 * gdb-events.h: Regenerated.
3458 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3461 * inflow.c (terminal_save_ours): New function to save terminal
3463 * inferior.h (terminal_save_ours): Declare.
3464 * target.c (debug_to_terminal_save_ours): New function.
3465 (cleanup_target): Defaults to_terminal_save_ours.
3466 (update_current_target): Inherit to_terminal_save_ours.
3467 (setup_target_debug): Set to_terminal_save_ours.
3468 * target.h (target_terminal_save_ours): New to save terminal settings.
3469 (target_ops): New member to_terminal_save_ours.
3470 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3471 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3472 * inftarg.c (init_child_ops): Likewise.
3473 * m3-nat.c (init_m3_ops): Likewise.
3474 * procfs.c (init_procfs_ops): Likewise.
3475 * wince.c (init_child_ops): Likewise.
3476 * win32-nat.c (init_child_ops): Likewise.
3477 * sol-thread.c (init_sol_thread_ops): Likewise.
3479 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3481 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3482 use regcache_* functions.
3483 (i386_gdbarch_init): Set store_return_value instead of
3484 deprecated_store_return_value.
3486 * regcache.c (regcache_raw_write_signed,
3487 regcache_raw_write_unsigned): New functions.
3488 * regcache.h (regcache_raw_write_signed,
3489 regcache_raw_write_unsigned): New prototypes.
3491 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3493 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3494 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3495 source file dependencies. Cleanup corresponding generator rules.
3497 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3499 * regcache.h (register_offset_hack): Declare.
3500 (regcache_cooked_read_using_offset_hack): Declare.
3501 (regcache_cooked_write_using_offset_hack): Declare.
3503 * regcache.c (register_offset_hack): New function.
3504 (regcache_cooked_read_using_offset_hack): New function.
3505 (regcache_cooked_write_using_offset_hack): New function.
3506 (regcache_dump): Check that the registers, according to their
3507 offset, are packed hard against each other.
3508 (cooked_xfer_using_offset_hack): New function.
3510 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3512 * regcache.c (struct regcache_descr): Add field register_type.
3513 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3515 (init_regcache_descr): Initialize register_type. Pass the descr
3516 to init_legacy_regcache_descr. Use register_type instead of
3517 REGISTER_VIRTUAL_TYPE.
3518 (register_type): New function.
3519 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3520 * regcache.h (register_type): Declare.
3522 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3524 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3525 instead of deprecated_store_return_value. Fix fallout from
3526 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3528 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3530 * regcache.c (max_register_size): New function.
3531 (init_legacy_regcache_descr): Ensure that max_register_size is
3532 large enough for REGISTER_VIRTUAL_SIZE.
3533 * regcache.h (max_register_size): Declare.
3535 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3537 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3539 (e500_extract_return_value): Change type of valbuf pointer to
3542 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3544 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3547 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3548 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3549 long long) to prevent compiler warning on 64-bit systems.
3551 2002-08-23 Andrew Cagney <cagney@redhat.com>
3553 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3554 (DEPRECATED_STORE_RETURN_VALUE): New method.
3555 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3556 * gdbarch.h, gdbarch.c: Re-generate.
3558 * values.c (set_return_value): Pass current_regcache to
3560 * arch-utils.h (legacy_store_return_value): Declare.
3561 * arch-utils.c (legacy_store_return_value): New function.
3562 (legacy_extract_return_value): Update parameters.
3564 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3566 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3567 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3568 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3569 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3570 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3571 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3572 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3573 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3574 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3575 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3577 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3578 * i386-tdep.c (i386_extract_return_value): Update.
3579 * arch-utils.c (legacy_extract_return_value): Update.
3580 * frv-tdep.c (frv_gdbarch_init): Update.
3581 * cris-tdep.c (cris_gdbarch_init): Update.
3582 * d10v-tdep.c (d10v_gdbarch_init): Update.
3583 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3584 * m68k-tdep.c (m68k_gdbarch_init): Update.
3585 * mcore-tdep.c (mcore_gdbarch_init): Update.
3586 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3587 * s390-tdep.c (s390_gdbarch_init): Update.
3588 * sparc-tdep.c (sparc_gdbarch_init): Update.
3589 * sh-tdep.c (sh_gdbarch_init): Update.
3590 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3591 * v850-tdep.c (v850_gdbarch_init): Update.
3592 * avr-tdep.c (avr_gdbarch_init): Update.
3593 * ia64-tdep.c (ia64_gdbarch_init): Update.
3594 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3595 * vax-tdep.c (vax_gdbarch_init): Update.
3596 * alpha-tdep.c (alpha_gdbarch_init): Update.
3597 * arm-tdep.c (arm_gdbarch_init): Update.
3598 * mips-tdep.c (mips_gdbarch_init): Update.
3599 * i386-tdep.c (i386_gdbarch_init): Update.
3601 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3603 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3604 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3606 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3608 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3611 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3613 * infrun.c (handle_inferior_event): Move a comment outside of a
3614 function call, in order to avoid indent reformatting this part
3615 of the code in an unreadable way.
3617 2002-08-23 Grace Sainsbury <graces@redhat.com>
3619 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3620 when breakpoints fail. Move general breakpoint error messages to
3622 * breakpoint.c (insert_breakpoints): Change warnings when
3623 breakpoints are nto inserted to specify the type. Remove call to
3624 memory_error when hardware breakpoints can't be inserted. Remove
3625 multiple calls to warning so all messages are sent to the user at
3627 (delete_breakpoints): Make insert error messsages more explicit.
3629 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3631 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3632 gdbserver/ChangeLog.
3634 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3636 * i386-tdep.c: Include "objfiles.h".
3637 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3638 skip_trampoline_code.
3639 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3640 (CPLUS_MARKER): Define to '.'.
3642 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3644 (linux_corefile_thread_callback): Increase args->num_notes.
3645 (linux_make_note_section): Initialize thread_args.num_notes, and
3646 use it to determine whether notes for any threads were created.
3648 2002-08-23 Donn Terry <donnte@microsoft.com>
3650 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3651 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3653 (write_with_trace): Conditionalize out the switch branch handling
3654 PCSHOLD if the corresponding macro is not defined. Likewise for
3655 PRSABORT and PRSTOP.
3656 This change will be needed by the Interix port.
3658 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3660 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3661 write_register wherever possible instead of manipulating the
3662 register bytes directly.
3663 Assign VALUE_CONTENTS to a variable and use that.
3664 The GPR numbers are now dependent on the architecture.
3666 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3668 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3670 (skip_prologue): Add support for BookE/e500 instructions.
3671 (e500_extract_return_value): New function.
3672 (frame_get_saved_regs): Add support for saving ev registers and
3674 (e500_store_return_value): New function.
3675 (rs6000_gdbarch_init): Move up default intializations of
3676 deprecated_extract_return_value and store_return_value. Overwrite
3677 init of store_return_value with e500 specific version.
3678 Set extract_return_value for e500.
3680 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3682 * blockframe.c (generic_call_dummy_register_unwind): Use
3683 regcache_cooked_read to catch cases in which the variable is
3684 stored in a pseudo register.
3686 2002-08-22 Andrew Cagney <cagney@redhat.com>
3688 * NEWS: Mention that the i960 has been made obsolete.
3689 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3691 (remote-nrom.o): Obsolete target.
3692 (remote-nindy.o, i960-tdep.o): Ditto.
3693 * remote-nrom.c: Make file obsolete.
3694 * remote-nindy.c, remote-vx960.c: Ditto.
3695 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3696 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3697 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3698 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3699 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3700 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3701 i960-*-vxworks* obsolete.
3702 * MAINTAINERS: Note that the i960 is obsolete.
3704 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3706 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3707 detach to allow reinitialization.
3709 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3711 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3714 2002-08-22 Jim Blandy <jimb@redhat.com>
3716 * coffread.c (coff_symfile_read): Don't try to read the line
3717 number table from disk if the image file doesn't have a symbol
3718 table; we'll never actually look at the info anyway, and Windows
3719 ships DLL's with bogus file offsets for the line number data.
3721 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3723 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3726 2002-08-21 Michael Snyder <msnyder@redhat.com>
3728 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3729 (MSYMBOL_SIZE): Replace macro with function.
3730 (DEFAULT_MIPS_TYPE): Delete unused macro.
3731 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3732 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3734 2002-08-21 Jim Blandy <jimb@redhat.com>
3736 * valops.c (value_cast): Simplify and correct logic for doing a
3737 static cast from a pointer to a base class to a pointer to a
3740 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3742 * infcmd.c (default_print_registers_info): Replace
3744 (registers_info): Use gdbarch_print_registers_info instead of
3746 * inferior.h (default_print_registers_info): Replace
3748 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3749 (DO_REGISTERS_INFO): Change to a predicate function.
3750 * gdbarch.h, gdbarch.c: Regenerate.
3752 2002-08-21 Keith Seitz <keiths@redhat.com>
3754 * gdb-events.sh: Add target-changed event.
3755 * gdb-events.c: Regenerated.
3756 * gdb-events.c: Regenerated.
3757 * valops.c (value_assign): Add target-changed event notification
3758 to inlval_register, lval_memory, and lval_reg_frame_relative.
3760 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3762 * NEWS: Add an entry regarding the improvement of the next/step
3763 operation on Alpha Tru64 multi-processor machines.
3765 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3767 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3769 * Makefile.in: Update all _h macro definitions.
3770 * Makefile.in (install-gdbtk): Move to install section.
3771 (rdi-share/libangsd.a): Move to end of file.
3773 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3775 * frame.c (frame_register_unwind): When a register, set addrp to
3776 the register's byte.
3778 2002-08-20 Michael Snyder <msnyder@redhat.com>
3780 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3781 used locally, so move them from the target machine header to here.
3782 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3783 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3785 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3787 2002-08-20 Andrew Cagney <cagney@redhat.com>
3789 * NEWS: Mention that the Apollo line was made obsolete.
3790 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3791 m68*-hp-hpux* obsolete.
3792 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3793 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3794 * buildsym.c (make_blockvector): Make static.
3795 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3796 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3797 (ALLDEPFILES): Remove dstread.c.
3798 (dstread.o): Obsolete make rule.
3799 * dstread.c: Makefile obsolete.
3801 * config/m68k/hp300hpux.mt: Ditto.
3802 * config/m68k/hp300hpux.mh: Ditto.
3803 * config/m68k/hp300bsd.mt: Ditto.
3804 * config/m68k/hp300bsd.mh: Ditto.
3805 * config/m68k/apollo68b.mt: Ditto.
3806 * config/m68k/apollo68v.mh: Ditto.
3807 * config/m68k/apollo68b.mh: Ditto.
3809 2002-08-20 Michael Snyder <msnyder@redhat.com>
3811 * mips-tdep.c (mips_in_return_stub): Make static.
3812 (mips_gdbarch_init): Set in_solib_return_trampoline.
3813 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3815 2002-08-20 Michael Snyder <msnyder@redhat.com>
3817 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3818 * gdbarch.c, gdbarch.h: Regenerate.
3819 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3821 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3823 2002-08-20 Michael Snyder <msnyder@redhat.com>
3825 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3826 (mips_gdbarch_init): Set skip_trampoline_code,
3827 in_solib_call_trampoline.
3828 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3829 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3831 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3833 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3835 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3836 vector type for ev registers.
3837 (e500_pseudo_register_read): New function.
3838 (e500_pseudo_register_write): New function.
3839 (e500_dwarf2_reg_to_regnum): New function.
3840 (PPC_UISA_NOFP_SPRS): New macro.
3841 (PPC_EV_REGS): New macro.
3842 (PPC_GPRS_PSEUDO_REGS): New macro.
3843 (registers_e500): New register set for e500.
3844 (variants): Add e500 variant.
3845 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3846 before setting architectural dependent variations. Initialize ev
3847 registers numbers. Add case for e500 architecture. Set the
3848 number of pseudo registers.
3850 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3852 * rs6000-tdep.c: Clean up comments.
3854 2002-08-20 Andrew Cagney <cagney@redhat.com>
3856 * h8300-tdep.c: Re-indent file.
3858 2002-08-20 Jim Blandy <jimb@redhat.com>
3860 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3863 2002-08-20 Keith Seitz <keiths@redhat.com>
3865 * breakpoints.c (watch_command_1): Use internal breakpoint
3866 when setting a watchpoint_scope breakpoint.
3868 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3870 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3871 (build_builtin_type_vec64i): Ditto.
3872 (build_builtin_type_vec128): Ditto.
3873 (build_builtin_type_vec128i): Ditto.
3875 2002-08-19 Michael Snyder <msnyder@redhat.com>
3877 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3878 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3879 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3880 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3881 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3882 CALL_DUMMY_ADDRESS): Delete.
3883 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3884 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3885 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3886 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3887 push_return_address.
3888 (mips_register_raw_size, mips_eabi_use_struct_convention,
3889 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3890 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3891 mips_init_extra_frame_info, mips_eabi_push_arguments,
3892 mips_n32n64_push_arguments, mips_push_return_address,
3893 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3894 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3896 2002-08-19 Michael Snyder <msnyder@redhat.com>
3898 * mips-tdep.c (mips_frame_num_args): New function.
3899 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3900 frame_saved_pc, frame_args_address, frame_locals_address,
3901 frame_num_args, and frame_args_skip.
3902 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3903 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3904 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3905 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3907 2002-08-20 Michael Snyder <msnyder@redhat.com>
3909 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3910 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3911 * mips-tdep.c (mips_store_struct_return): New function.
3912 (mips_extract_struct_value_address): New function.
3913 (mips_gdbarch_init): Set store_struct_return and
3914 extract_struct_value_address.
3916 2002-08-20 David Carlton <carlton@math.stanford.edu>
3918 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3919 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3920 (read_file_scope): Check that line_header is nonzero before
3921 decoding macro information.
3923 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3925 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3926 flag the general-purpose registers as floating-point on targets
3927 that don't support the floating-point registers.
3929 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3931 * rs6000-tdep.c (altivec_register_p): Delete.
3932 (rs6000_do_altivec_registers): Delete.
3933 (rs6000_altivec_registers_info): Delete.
3934 (rs6000_do_registers_info): Delete.
3935 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3936 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3938 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3940 * infcmd.c (do_registers_info): Print vector registers in hex
3942 (print_vector_info): Check that printing registers
3944 (print_float_info): Ditto.
3946 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3948 * mips-tdep.c (mips_gdbarch_init): Update.
3949 (mips_o32_extract_return_value): Rewrite.
3950 (mips_o32_store_return_value): Rewrite.
3951 (mips_o32_xfer_return_value): New function.
3952 (mips_xfer_register): Tweak debug print message. Allow for
3953 buf_offset when dumping the value transfered.
3955 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3957 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3958 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3959 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3960 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3961 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3963 2002-08-14 Michael Snyder <msnyder@redhat.com>
3965 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3967 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3969 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3971 (P): New macro to define a register as a pseudo register.
3972 (R, R4, R8, R16, FR32, R64, R0): Updated.
3973 (struct variant): Add new fields for number of pseudo registers
3974 and number of total registers.
3975 (tot_num_registers): New macro replacing....
3976 (num_registers): ...deleted macro.
3977 (num_registers): New function.
3978 (num_pseudo_registers): New function.
3979 (variants): Update all variants to intialize new fields correctly.
3980 Postpone initialization of number of pseudo regs and real regs.
3981 (init_variants): New function.
3982 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3985 2002-08-19 David Carlton <carlton@math.stanford.edu>
3987 * valops.c (search_struct_field): Change error message to treat
3988 return value of 0 from value_static_field as meaning that field is
3990 (value_struct_elt_for_reference): Ditto.
3991 * values.c (value_static_field): Treat an unresolved location the
3992 same as a nonexistent symbol. Fix PR gdb/635.
3993 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3994 enclosed. Fix PR gdb/574.
3995 * MAINTAINERS: Add self to Write After Approval list.
3997 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3999 * mips-tdep.c (mips_xfer_register): New function.
4000 (mips_n32n64_extract_return_value): Rewrite.
4001 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4002 instead of deprecated_extract_return_value.
4004 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4006 * rs6000-tdep.c (TDEP): Delete macro.
4007 (branch_dest): Replace use of TDEP macro with its body.
4008 (rs6000_pop_frame): Ditto.
4009 (rs6000_push_arguments): Ditto.
4010 (rs6000_skip_trampoline_code): Ditto.
4011 (rs6000_frame_saved_pc): Ditto.
4012 (rs6000_frame_chain): Ditto.
4013 (rs6000_register_name): Ditto.
4014 (rs6000_register_byte): Ditto.
4015 (rs6000_register_raw_size): Ditto.
4016 (rs6000_register_virtual_type): Ditto.
4017 (rs6000_register_convertible): Ditto.
4018 (rs6000_convert_from_func_ptr_addr): Ditto.
4020 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4022 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4024 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4025 MIPS_LINUX_JB_ELEMENT_SIZE.
4026 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4027 for MAX_REGISTER_RAW_SIZE arrays.
4028 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4029 MIPS_LINUX_JB_ELEMENT_SIZE.
4031 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4033 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4035 2002-08-19 Aidan Skinner <aidan@velvet.net>
4037 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4038 ada-valprint.c ada-tasks.c.
4039 (YYFILES): Add ada-exp.y.
4040 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4041 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4042 (ada-exp.tab.o): New target.
4044 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4046 * regcache.c (regcache_xfer_part): New function.
4047 (regcache_raw_read_part): New function.
4048 (regcache_raw_write_part): New function.
4049 (regcache_cooked_read_part): New function.
4050 (regcache_cooked_write_part): New function.
4051 * regcache.h (regcache_raw_read_part): Declare.
4052 (regcache_raw_write_part): Declare.
4053 (regcache_cooked_read_part): Declare.
4054 (regcache_cooked_write_part): Declare.
4056 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4058 * remote.c (remote_open_1): Add async_p.
4059 (remote_async_open_1): Delete.
4060 (open_remote_target): Delete.
4061 (remote_open, extended_remote_open): Update calls to remote_open_1.
4062 (remote_async_open, extended_remote_async_open): Call
4063 remote_open_1 instead of remote_async_open_1.
4065 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4067 * blockframe.c: Fix a few coding standard violations.
4069 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4071 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4073 * config/i386/tm-i386sco5.h: ... here. File removed.
4074 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4076 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4077 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4078 (TM_FILE): Set to tm-i386.h.
4079 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4080 * config/i386/tm-i386v.h: Remove file.
4081 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4082 instead of "i386/tm-i386v.h".
4083 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4084 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4086 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4087 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4090 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4092 * config/i386/nm-i386v.h: Add protection against
4094 (i386_register_u_addr): Remove prototype.
4095 (register_u_addr): New prototype.
4096 (REGISTER_U_ADDR): Redefine accordingly.
4097 * i386v-nat.c: Improve several comments.
4098 (i386_register_u_addr): Change signature and rename to
4099 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4102 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4104 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4105 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4106 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4107 deprecated_extract_return_value.
4108 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4109 rename mips_o32o64_push_arguments.
4110 (mips_gdbarch_init): Update.
4111 (mips_extract_return_value): Delete.
4112 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4113 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4114 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4115 (mips_n32n64_extract_return_value): Clone
4116 mips_extract_return_value.
4117 (mips_store_return_value): Delete.
4118 (mips_o32_store_return_value): Clone mips_store_return_value.
4119 (mips_o64_store_return_value): Clone mips_store_return_value.
4120 (mips_eabi_store_return_value): Clone mips_store_return_value.
4121 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4123 2002-08-18 Aidan Skinner <aidan@velvet.net>
4125 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4126 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4128 2002-08-18 Aidan Skinner <aidan@velvet.net>
4130 * ada-lang.c: Run through gdb_indent.sh.
4131 * ada-lang.h: Run through gdb_indent.sh.
4132 * ada-tasks.c: Run through gdb_indent.sh.
4133 * ada-typeprint.c: Run through gdb_indent.sh.
4134 * ada-valprint.c: Run through gdb_indent.sh.
4136 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4138 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4141 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4143 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4145 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4146 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4148 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4149 write_register_gen instead of write_register_bytes.
4151 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4152 i[3456]-*-osf1mk* configurations have been made obsolete.
4153 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4154 i[3456]86-*-osf1mk* hosts obsolete.
4155 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4157 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4158 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4159 config/i386/i386m3.mt, config/i386/nm-m3.h,
4160 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4161 config/i386/i386mk.mh, config/i386/i386mk.mt,
4162 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4164 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4165 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4166 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4168 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4170 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4171 (hppa_value_returned_from_stack): Declare.
4172 (hppa_extract_return_value): Declare.
4173 * config/pa/hppa.mt: New file.
4174 * configure.tgt: Recognize hppa*-*-*.
4175 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4177 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4179 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4182 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4184 * top.c (gdb_rl_operate_and_get_next): Make sure
4185 operate-and-get-next functions correctly even when the history
4186 list is completely filled.
4188 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4190 * MAINTAINERS (Target Instruction Set Architectures): Rename
4191 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4192 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4193 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4194 already listed under Host/Native.
4196 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4197 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4200 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4202 * config/ia64/ia64.mt: New file.
4203 * config/alpha/alpha.mt: New file.
4204 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4205 ia64-linux-gnu. Mention that ia64-elf is broken.
4206 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4208 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4210 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4211 generic_func_frame_valid instead of func_frame_valid.
4213 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4215 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4216 procfs appears to be broken when debugging on multi-processor
4217 machines. So enable software single stepping in order to avoid
4218 using the procfs interface to do next/step operations, using
4219 internal breakpoints instead.
4221 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4222 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4223 make this pc address equal to the value it would have if the
4224 system stepping capability was used. Also set a new flag used
4225 to ensure that we don't readjust the PC one more time later.
4227 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4228 address by DECR_PC_AFTER_BREAK when software single step is
4229 in use for this architecture, as this has already been taken
4230 care of in handle_inferior_event().
4232 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4234 * infrun.c (handle_inferior_event): Minor reformatting, to make
4235 a rather long condition expression easier to read.
4237 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4239 * Makefile.in (gdbtk.o): Move to end of file.
4240 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4241 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4242 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4243 (gdbtk-wrapper.o, gdbres.o): Ditto.
4245 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4247 * Makefile.in (copying.o): Separate out compile rule.
4248 (hpux-thread.o, procfs.o, signals.o): Ditto.
4249 (v850ice.o, z8k-tdep.o): Ditto.
4250 (tui-file.o): Move to TUI section.
4251 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4252 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4254 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4256 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4257 skip_trampoline_code, for better namespace-proofing.
4259 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4261 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4263 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4265 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4267 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4268 signal, check whether we hit a breakpoint before checking for a
4269 single step breakpoint. Otherwise, GDB fails to notice that a
4270 breakpoint has been hit when stepping onto a breakpoint.
4272 2002-08-16 Keith Seitz <keiths@redhat.com>
4274 * gdb-events.sh (clear_gdb_event_hooks): New function.
4275 * gdb-events.c: Regenerate.
4276 * gdb-events.h: Regenerate.
4278 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4280 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4281 not_a_sw_breakpoint.
4282 * breakpoint.h (bpstat_stop_status): Add parameter names.
4284 2002-08-16 Grace Sainsbury <graces@redhat.com>
4286 * remote.c (remote_insert_hw_breakpoint)
4287 (remote_remove_hw_breakpoint): Fix calculation of length field
4290 2002-08-15 Michael Snyder <msnyder@redhat.com>
4292 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4293 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4294 (supply_fpregset): Ditto.
4296 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4297 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4298 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4299 (TARGET_READ_SP): Delete.
4300 (DO_REGISTERS_INFO): Delete.
4301 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4303 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4304 from macros to functions.
4306 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4307 (mips_register_convertible, mips_register_convert_to_virtual,
4308 mips_register_convert_to_raw): Make static.
4309 (mips_read_sp): New function.
4310 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4311 (mips_do_registers_info): Make static.
4312 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4313 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4314 (mips_register_convert_from_type, mips_register_convert_to_type):
4316 (mips_gdbarch_init): Set up function_start_offset,
4317 register_virtual_size, pc_in_sigtramp.
4319 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4321 * infcmd.c (vector_info): New function.
4322 (_initialize_infcmd): Add command "info vector".
4323 (print_vector_info): New function.
4325 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4326 * gdbarch.h, gdbarch.c: Regenerate.
4328 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4330 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4331 ``print_all''. Only print vector registers when ``print_all''.
4333 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4335 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4336 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4338 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4339 Add `args' parameter.
4340 * gdbarch.h, gdbarch.c: Regenerate.
4342 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4344 * infcmd.c (float_info): Call print_float_info.
4345 (print_float_info): New function. By default, print the
4346 floating-point registers.
4348 * arch-utils.h (default_print_float_info): Delete declaration.
4349 * arch-utils.c (default_print_float_info): Delete function.
4351 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4353 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4356 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4359 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4360 * configure.host: Make i[3456]86-*-aix host obsolete.
4361 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4362 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4363 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4364 config/i386/xm-i386aix.h: Make files obsolete.
4365 * i386aix-nat.c: Make file obsolete.
4366 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4367 (i386aix-nat.o): Make target obsolete.
4369 * config/i386/nm-gnu.h: Removed.
4370 * config/i386/nm-i386gnu.h: New file.
4371 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4372 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4374 * config/i386/tm-i386gnu.h: ... here. Removed.
4375 * config/i386/xm-i386gnu.h: Removed.
4376 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4377 (NAT_FILE): Set to nm-i386gnu.h.
4378 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4379 * i386-tdep.c: New file.
4380 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4381 (i386gnu-tdep.o): Specify dependencies.
4383 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4385 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4386 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4387 Adjust a few comments to reflect reality a bit closer.
4388 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4389 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4390 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4391 target_insert_watchpoint, target_remove_watchpoint):
4393 * config/i386/nm-i386sco5.h: ... here.
4394 (kernel_u_size): Add prototype. Improve a few comments and add
4395 protection against multiple inclusion.
4397 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4400 * uw-thread.c (SP_ARG0): Define if not already defined.
4401 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4403 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4405 * config/i386/tm-i386.h: Don't include "regcache.h".
4407 * i387-tdep.h (i387_print_float_info): New prototype.
4408 * i387-tdep.c (print_i387_value, print_i387_ext,
4409 print_i387_status_word, print_i387_control_word): Add `struct
4410 ui_file *' argument and use it for output.
4411 (i387_print_float_info): Renamed from i387_float_info. Add
4412 `struct gdbarch *' and `struct ui_file *' arguments and use the
4414 * i386-tdep.c: Include "i387-tdep.h".
4415 (i386_gdbarch_init): Set print_float_info.
4416 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4417 (FLOAT_INFO): Remove define.
4419 2002-08-13 Michael Snyder <msnyder@redhat.com>
4421 * mips-tdep.c (mips_push_arguments): Rename to
4422 mips_eabi_push_arguments, and tune for EABI.
4423 (MIPS_REGS_HAVE_HOME_P): Delete.
4424 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4425 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4426 Delete references to mips_regs_have_home_p.
4428 2002-08-14 Keith Seitz <keiths@redhat.com>
4430 * Makefile.in (install-gdbtk): Create insight plugin directory.
4431 Install plugins.tcl file.
4433 2002-08-14 Keith Seitz <keiths@redhat.com>
4435 * configure.in: Move SUBDIRS to near top of the file so that
4436 --enable options may add things to it.
4437 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4438 * configure: Regenerate.
4440 2002-08-13 Michael Snyder <msnyder@redhat.com>
4442 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4443 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4444 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4446 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4448 * vax-tdep.c (vax_get_saved_register): Delete function.
4449 (vax_gdbarch_init): Update.
4450 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4451 (ns32k_gdbarch_init): Update.
4452 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4453 (alpha_gdbarch_init): Update.
4455 2002-08-13 Andrew Cagney <cagney@redhat.com>
4457 * regcache.c (init_regcache_descr): Overallocate the
4458 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4459 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4461 (set_register_cached): Add range checking assertions. Use
4464 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4466 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4467 numbers for MMX registers.
4469 2002-08-13 Andrew Cagney <cagney@redhat.com>
4471 * i386-tdep.c (i386_gdbarch_init): Use
4472 generic_unwind_get_saved_register.
4474 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4476 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4477 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4479 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4480 Delete. Add comment regarding this now-deleted target method.
4482 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4484 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4485 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4486 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4487 real PC and the page number (if it's within the memory bank window).
4488 (m68hc11_pseudo_register_write): Likewise when saving.
4489 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4490 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4491 (m68hc11_register_raw_size): And use 32-bit for it.
4492 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4493 16K memory bank is used by the prog; also use the virtual pc.
4495 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4497 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4498 (m68hc11_gdbarch_init): Install it in gdbarch.
4499 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4500 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4501 (MSYMBOL_SIZE): New for documentation.
4502 (insn_return_kind): Enum to specify how a function returns.
4503 (frame_extra_info): Cleanup and record the return mode.
4504 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4505 register in address computation.
4506 (m68hc11_get_return_insn): New to obtain the return instruction used
4508 (m68hc11_frame_init_saved_regs): Take into account the return
4509 instruction used by the function for far and interrupt functions.
4510 (m68hc11_init_extra_frame_info): Take into account page register.
4511 (m68hc11_frame_args_address): Adjust according to the return mode.
4512 (show_regs): Print page register only when it's used.
4514 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4516 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4517 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4518 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4520 (m68hc11_register_raw_size): Likewise.
4522 2002-08-13 Andrew Cagney <cagney@redhat.com>
4524 * i386-tdep.c (i386_register_name): Handle mmx registers.
4525 (mmx_regnum_p): New function.
4526 (i386_mmx_names): New array.
4527 (mmx_num_regs): New variable.
4528 (i386_pseudo_register_read): New function.
4529 (i386_pseudo_register_write): New function.
4530 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4532 * regcache.c (regcache_raw_read_unsigned): New function.
4533 (regcache_raw_read_signed): New function.
4534 * regcache.h (regcache_raw_read_unsigned): Declare.
4535 (regcache_raw_read_signed): Declare.
4537 2002-08-13 Andrew Cagney <cagney@redhat.com>
4539 * regcache.c (regcache_raw_read_as_address): Delete function.
4540 (regcache_cooked_read_signed): New function.
4541 (regcache_cooked_read_unsigned): New function.
4542 * regcache.h (regcache_cooked_read_signed): Declare.
4543 (regcache_cooked_read_unsigned): Declare.
4544 (regcache_raw_read_as_address): Delete declaration.
4546 * blockframe.c (generic_read_register_dummy): Use
4547 regcache_cooked_read_unsigned.
4548 * i386-tdep.c (i386_extract_struct_value_address): Use
4549 regcache_cooked_read_unsigned.
4551 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4554 double sizes according to ELF ABI flags.
4555 (gdbarch_tdep): Record elf_flags.
4557 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4559 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4560 (m6812_prolog): They can appear in 68HC12 function prologue.
4561 (m68hc11_frame_chain): Cleanup.
4563 2002-08-12 Andrew Cagney <cagney@redhat.com>
4565 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4567 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4568 (i386_linux_register_raw_size): Delete function.
4569 (i386_linux_init_abi): Update.
4570 * i386-tdep.c (i386_register_raw_size): Delete function.
4571 (i386_register_byte): Delete function.
4572 (i386_gdbarch_init): Update.
4573 (i386_register_size): Delete array.
4574 (i386_register_offset): Delete array.
4576 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4577 (REGISTER_RAW_SIZE): Delete macro.
4578 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4579 (REGISTER_BYTE): Delete macro.
4581 2002-08-11 Aidan Skinner <aidan@velvet.net>
4583 * ada-lang.c (ada_lookup_partial_symbol)
4584 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4585 prototype names so that grep ^func works properly.
4587 * ada-lang.c (ada_array_element_type)
4588 (ada_lookup_partial_symbol): Fix typos in parameter list.
4590 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4591 Fix prototype names so that grep ^func works properly.
4593 2002-08-10 Andrew Cagney <cagney@redhat.com>
4594 Elena Zannoni <ezannoni@redhat.com>
4595 Martin M. Hunt <hunt@redhat.com>
4597 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4598 (build_builtin_type_vec128i): Set the vector bit.
4599 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4600 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4601 (build_builtin_type_vec64): New function.
4602 (build_builtin_type_vec64i): New function.
4603 (build_gdbtypes): Initialize builtin_type_vec64 and
4604 builtin_type_vec64i.
4606 2002-08-09 Andrew Cagney <cagney@redhat.com>
4608 * regcache.c (regcache_dump): Compare the register offset
4610 * arch-utils.c (generic_register_byte): New function.
4611 * arch-utils.h (generic_register_byte): Declare.
4612 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4613 * gdbarch.h, gdbarch.c: Regenerate.
4615 2002-08-09 Andrew Cagney <cagney@redhat.com>
4617 * regcache.c: Include "gdbcmd.h"
4618 (_initialize_regcache): Add commands "maintenance print
4619 registers", "maintenance print raw-registers" and "maintenance
4620 print cooked-registers".
4621 (enum regcache_dump_what): Define.
4622 (dump_endian_bytes): New function.
4623 (regcache_dump): New function.
4624 (regcache_print): New function.
4625 (maintenance_print_registers): New function.
4626 (maintenance_print_raw_registers): New function.
4627 (maintenance_print_cooked_registers): New function.
4628 * Makefile.in (regcache.o): Update dependencies.
4630 2002-08-09 Michael Snyder <msnyder@redhat.com>
4632 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4633 (mips_push_arguments): Correct some comments. Use paddr_nz
4634 for printing addresses in debug output. Replace static
4635 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4636 (mips_n32n64_push_arguments): New function, cloned from
4637 mips_push_arguments and tuned for the n32/n64 ABI.
4638 (mips_push_register): Buffer needs dynamic allocation.
4639 (mips_print_register): Ditto.
4640 (do_gp_register_row): Ditto.
4641 (mips_store_return_value): Ditto.
4642 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4644 2002-08-09 Don Howard <dhoward@redhat.com>
4646 * memattr.c (mem_info_command): Print special case of upper bound
4647 as max CORE_ADDR + 1.
4649 2002-08-08 Michael Snyder <msnyder@redhat.com>
4651 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4652 returns structs by ref if they're too big to fit in two registers.
4654 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4656 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4658 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4659 mips_find_saved_regs().
4660 (mips_pop_frame): Likewise.
4662 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4664 * blockframe.c (frame_saved_regs_register_unwind): Revise
4665 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4668 2002-08-09 Grace Sainsbury <graces@redhat.com>
4670 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4671 T-packets; the 'a' is not taken as a register number.
4672 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4673 (remote_stopped_data_address): New functions; add to target
4675 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4676 prototypes to match other implementations of this
4677 function. replace integer argument with pointer -- the length
4678 field in the Z-packet is the length of what is pointed to or 1 if
4679 pointer is null. Add to target vector.
4680 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4684 * remote.c (remote_wait): Add support to extract optional
4685 watchpoint information from T-packet. Ignore unrecognized
4686 optional info in T-packet.
4687 (remote_async_wait): Ditto.
4689 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4691 * cli/cli-dump.c: Change fopen modes to use binary open modes
4692 as defined in include/fopen-bin.h throughout.
4694 2002-08-08 Michael Snyder <msnyder@redhat.com>
4696 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4698 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4700 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4701 assertion failure by returning early after a warning.
4703 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4705 * mips-tdep.c (mips_find_saved_regs): Make static.
4706 (mips_frame_init_saved_regs): New function.
4707 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4708 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4709 (mips_find_saved_regs): Delete declaration.
4711 2002-08-08 Grace Sainsbury <graces@redhat.com>
4713 * remote.c (remote_wait, remote_async_wait): Change
4714 thread_num from int to ULONGEST.
4715 (unpack_varlen_hex): Change result parameter from
4716 int * to ULONGEST *.
4718 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4720 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4721 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4723 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4725 2002-08-08 Andrew Cagney <cagney@redhat.com>
4727 * gcore.c (override_derive_stack_segment): Delete variable.
4728 (preempt_derive_stack_segment): Delete function.
4729 (derive_stack_segment): Delete function.
4730 (default_derive_stack_segment): Renamed to derive_stack_segment.
4731 (override_derive_heap_segment): Delete variable.
4732 (preempt_derive_heap_segment): Delete function.
4733 (derive_heap_segment): Delete function.
4734 (default_derive_heap_segment): Rename to derive_heap_segment.
4736 2002-08-06 Michael Snyder <msnyder@redhat.com>
4738 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4739 * mips-tdep.c (mips_EABI_use_struct_convention,
4740 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4741 New functions. (mips_use_struct_convention): Delete.
4742 (mips_gdbarch_init): set use_gdbarch_convention.
4744 2002-08-06 Michael Snyder <msnyder@redhat.com>
4746 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4747 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4748 mips_o32_reg_struct_has_addr): New functions.
4749 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4751 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4753 * regcache.c (pseudo_register): Delete function.
4754 (fetch_register): Delete function.
4755 (store_register): Delete function.
4756 (regcache_raw_read, legacy_read_register_gen): Use
4757 target_fetch_registers instead of fetch_register.
4758 (legacy_write_register_gen, regcache_raw_write): Use
4759 target_store_register instead of store_register.
4760 (write_register_bytes): Ditto.
4762 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4763 (STORE_PSEUDO_REGISTER): Delete.
4764 * gdbarch.h, gdbarch.c: Regenerate.
4766 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4768 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4769 write dump file binary.
4771 2002-08-05 Michael Snyder <msnyder@redhat.com>
4773 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4774 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4775 (mips_gdbarch_init): Set N32 target to be mips64.
4777 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4779 * frame.c (find_saved_register): Break out of loop once saved
4780 register address is found. Don't mention sparc in loop comment
4783 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4785 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4786 mips_default_saved_regsize to 8.
4788 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4790 * gcore.c: Do not include <sys/procfs.h>.
4791 * Makefile.in (gcore.o): Update dependencies.
4793 2002-08-06 Andrew Cagney <cagney@redhat.com>
4795 * configure.tgt: Make arc-*-* obsolete.
4796 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4797 * MAINTAINERS: Make arc-elf obsolete.
4798 * arc-tdep.c: Make file obsolete.
4799 * config/arc/arc.mt: Ditto.
4800 * config/arc/tm-arc.h: Ditto.
4802 2002-08-05 Theodore A. Roth <troth@verinet.com>
4804 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4806 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4808 * mcore-tdep.c (mcore_gdbarch_init): Use
4809 generic_unwind_get_saved_register instead of
4810 generic_get_saved_register.
4811 * v850-tdep.c (v850_gdbarch_init): Ditto.
4812 * frv-tdep.c (frv_gdbarch_init): Ditto.
4813 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4814 * s390-tdep.c (s390_gdbarch_init): Ditto.
4815 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4816 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4817 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4819 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4821 * objfiles.h: Add missing #include "symfile.h"
4823 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4825 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4827 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4828 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4831 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4833 * NEWS: Cleanup and nitpick.
4835 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4837 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4839 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4841 * Makefile.in (gdbtk-bp.o): Update dependencies.
4842 (gdbtk-register.o): Ditto.
4843 (gdbtk-varobj.o): Ditto.
4845 2002-08-03 Andrew Cagney <cagney@redhat.com>
4847 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4848 m68hc11_fetch_pseudo_register.
4849 (m68hc11_pseudo_register_write): Replace
4850 m68hc11_store_pseudo_register.
4851 (m68hc11_gdbarch_init): Update.
4853 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4855 * gdbarch.sh: Include "gdb_string.h".
4856 * gdbarch.c: Regenerate.
4858 * regcache.c: Include "gdb_string.h".
4859 * ax-general.c: Ditto.
4861 * std-regs.c: Ditto.
4862 * fbsd-proc.c: Ditto.
4865 * Makefile.in (regcache.o): Update dependencies.
4866 (thread.o, gdbarch.o): Ditto.
4867 (ax-general.o, gdbarch.o): Ditto.
4868 (varobj.o, std-regs.o): Ditto.
4869 (fbsd-proc.o): Specify dependencies.
4871 2002-08-02 Andrew Cagney <cagney@redhat.com>
4873 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4875 (regcache_cooked_write): Ditto.
4877 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4879 * regcache.c (regcache_cooked_read): New function.
4880 (regcache_cooked_write): New function.
4881 (read_register_gen): Rewrite using regcache_cooked_read.
4882 (write_register_gen): Rewrite using regcache_cooked_write.
4884 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4887 2002-08-02 Andrew Cagney <cagney@redhat.com>
4889 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4890 Replace the architecture methods register_read and register_write.
4891 * gdbarch.h, gdbarch.c: Regenerate.
4892 * regcache.c (init_regcache_descr): Update.
4893 (read_register_gen): Update.
4894 (write_register_gen): Update.
4895 (supply_register): Update comment.
4897 * sh-tdep.c (sh_gdbarch_init): Update.
4898 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4899 `regcache' and `gdbarch' parameters. Make `buffer' a void
4900 pointer. Update code.
4901 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4902 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4903 void pointer. Update code.
4904 (sh64_register_write): Delete.
4905 (sh4_register_read): Delete.
4906 (sh64_register_read): Delete.
4907 (sh4_register_write): Delete.
4908 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4909 void pointer, `to' parameter a void pointer.
4910 (sh_sh64_register_convert_to_raw): Ditto.
4912 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4914 * mips-tdep.c (mips_register_virtual_type): Use architecture
4915 invariant return values.
4917 2002-08-01 Andrew Cagney <cagney@redhat.com>
4919 * linux-proc.c: Include "gdb_string.h".
4920 * Makefile.in (linux-proc.o): Update dependency list.
4922 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4924 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4927 2002-08-01 Grace Sainsbury <graces@redhat.com>
4929 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4930 to_insert_watchpoint, to_remove_watchpoint,
4931 to_stopped_by_watchpoint, to_stopped_data_address,
4932 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4933 target vecctor. Define their corresponding macros so they call
4936 * target.c: Add default and debug versions of for
4937 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4938 to_insert_watchpoint, to_remove_watchpoint,
4939 to_stopped_by_watchpoint, to_stopped_data_address,
4940 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4942 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4944 * mips-tdep.c (mips_register_virtual_type): New function.
4945 (mips_gdbarch_init): Register mips_register_virtual_type()
4946 with gdbarch machinery.
4947 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4948 this file instead of tm-bigmips.h.
4949 (MIPS_REGSIZE): Delete this macro.
4950 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4951 multiarch version in mips-tdep.c will be found.
4953 2002-08-01 Andrew Cagney <cagney@redhat.com>
4955 * NEWS: Menion that CHILL has been made obsolete.
4957 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4958 * stabsread.c (read_range_type): Ditto.
4959 * gdbtypes.h: Ditto.
4960 * language.c (binop_type_check): Ditto.
4961 (binop_result_type): Ditto.
4962 (integral_type): Ditto.
4963 (character_type): Ditto.
4964 (string_type): Ditto.
4965 (boolean_type): Ditto.
4966 (structured_type): Ditto.
4967 (lang_bool_type): Ditto.
4968 (binop_type_check): Ditto.
4969 * language.h (_LANG_chill): Ditto.
4970 * dwarfread.c (set_cu_language): Ditto.
4971 * dwarfread.c (CHILL_PRODUCER): Ditto.
4972 * dwarfread.c (handle_producer): Ditto.
4973 * expression.h (enum exp_opcode): Ditto.
4974 * eval.c: Ditto for comments.
4975 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4976 * expprint.c (print_subexp): Ditto.
4977 (print_subexp): Ditto.
4978 * valops.c (value_cast): Ditto.
4979 (search_struct_field): Ditto.
4980 * value.h (COERCE_VARYING_ARRAY): Ditto.
4981 * symfile.c (init_filename_language_table): Ditto.
4982 (add_psymbol_with_dem_name_to_list): Ditto.
4983 * valarith.c (value_binop): Ditto.
4985 * valops.c (value_slice): Ditto.
4986 * symtab.h (union language_specific): Ditto.
4987 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4988 (SYMBOL_DEMANGLED_NAME): Ditto.
4989 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4990 * defs.h (enum language): Ditto.
4991 * symtab.c (got_symtab): Ditto.
4992 * utils.c (fprintf_symbol_filtered): Ditto.
4994 * ch-typeprint.c: Make file obsolete.
4995 * ch-valprint.c: Make file obsolete.
4996 * ch-lang.h: Make file obsolete.
4997 * ch-exp.c: Make file obsolete.
4998 * ch-lang.c: Make file obsolete.
5000 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5002 (TARGET_FLAGS_TO_PASS): Ditto.
5003 (CHILLFLAGS): Obsolete.
5005 (CHILL_FOR_TARGET): Obsolete.
5006 (CHILL_LIB): Obsolete.
5007 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5009 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5010 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5012 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5015 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5017 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5018 This does not change anything at the moment, but will be helpful
5019 later when full Ada support is integrated.
5021 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5023 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5026 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5028 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5029 and save it in a local variable. Use variable in later test.
5031 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5033 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5034 test. (Thanks to Daniel Jacobowitz.)
5036 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5038 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5039 (mips_abi_strings): Add "n64".
5040 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5042 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5044 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5045 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5047 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5049 * utils.c (host_pointer_to_address, address_to_host_pointer):
5050 Use gdb_assert() instead of explicit call to internal_error().
5052 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5054 * Makefile.in (rs6000-nat.o): Update dependencies.
5056 From Nicholas Duffek:
5057 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5058 (aix-thread.o): New rule.
5059 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5060 * config/powerpc/aix432.mh: New file.
5062 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5064 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5065 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5066 (fetch_core_registers, ppc_linux_supply_gregset)
5067 (ppc_linux_supply_fpregset): New functions.
5068 (ppc_linux_regset_core_fns): New.
5069 (_initialize_ppc_linux_tdep): Call add_core_fns.
5070 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5071 and ppc_linux_supply_gregset.
5072 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5073 (supply_fpregset): Call ppc_linux_supply_fpregset.
5074 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5076 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5078 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5080 * symtab.c (lookup_symbol): Demangle before lowercasing.
5082 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5084 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5086 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5087 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5088 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5089 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5091 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5092 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5093 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5094 (avr-tdep.o, mon960-rom.o): Ditto.
5095 (aout_stabs_gnu_h): Define.
5096 (symtab_h): Remove $(gdb_obstack_h).
5098 2002-07-30 Jim Blandy <jimb@redhat.com>
5100 Patch from David Carlton <carlton@math.stanford.edu>:
5101 * gdbinit.in: Move the `dir' commands that add GDB's own source
5102 directory to the search path to the end, so that the `gdb' source
5103 directory will be searched first.
5105 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5107 * gdb_obstack.h: New file.
5108 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5109 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5110 * objfiles.h: Include "gdb_obstack.h".
5111 * Makefile.in (gdb_obstack_h): Define.
5112 (symtab_h): Add $(gdb_obstack_h).
5113 (objfiles_h): Add $(gdb_obstack_h).
5115 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5116 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5117 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5118 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5119 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5120 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5121 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5122 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5124 * Makefile.in (bcache.o): Update dependencies.
5125 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5126 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5127 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5128 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5129 (stabsread.o, symfile.o, symmisc.o): Ditto.
5130 (symtab.o, typeprint.o, macroexp.o): Ditto.
5131 (macrotab.o, mdebugread.o): Ditto.
5132 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5133 (coff_ecoff_h, aout_aout64_h): Define.
5134 (aout_stabs_gnu_h, libaout_h): Define.
5136 2002-07-29 Andrew Cagney <cagney@redhat.com>
5138 * regcache.c (struct regcache_descr): Rename nr_registers to
5139 nr_cooked_registers. Revise comments describing the structure
5141 (init_regcache_descr): Update.
5142 (init_legacy_regcache_descr): Update.
5143 (read_register_gen, write_register_gen): When a cooked register in
5144 the raw register range, directly access the value from the raw
5147 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5149 * z8k-tdep.c: Do not include "obstack.h".
5150 * h8300-tdep.c, h8500-tdep.c: Ditto.
5151 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5152 * valprint.c, v850-tdep.c: Ditto.
5153 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5154 * mn10200-tdep.c: Ditto.
5156 * Makefile.in (z8k-tdep.o): Update dependencies.
5157 (m68hc11-tdep.o, valprint.o): Ditto.
5158 (v850-tdep.o, d10v-tdep.o): Ditto.
5159 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5160 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5161 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5162 (sh_opc_h, gdb_sim_sh_h): Define.
5163 (elf_sh_h, elf_bfd_h): Define.
5164 (opcode_m68hc11_h): Define.
5165 (OPCODES_SRC, OPCODES_DIR): define.
5166 (OPCODES): Use $(OPCODES_DIR).
5167 (gdb_sim_d10v_h): Rename sim_d10v_h.
5168 (gdb_sim_arm_h): Rename sim_arm_h.
5170 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5172 * utils.c (host_pointer_to_address, address_to_host_pointer):
5173 Change internal_error() message to indicate function responsible
5176 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5178 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5179 calls to local_hex_string_custom().
5181 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5183 * irix5-nat.c: Move IRIX shared library support from here...
5184 * solib-irix.c: ...to here. Revised substantially to work with
5185 generic solib framework.
5187 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5188 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5189 * mips-irix-tdep.c: New file.
5191 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5192 (mips-irix-tdep.o, solib-irix.o): New rules.
5193 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5195 * config/mips/irix6.mt (TDEPFILES): Likewise.
5196 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5198 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5200 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5201 disabled (via ``#if 0'') includes.
5203 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5205 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5206 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5207 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5208 Add support for the fpscr register.
5209 * rs6000-nat.c (regmap, fetch_inferior_registers)
5210 (store_inferior_registers, fetch_core_registers): Likewise.
5212 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5214 * rs6000-nat.c (language.h): Include.
5215 (special_regs): Delete this array.
5216 (regmap): New function.
5217 (fetch_register, store_register): Use regmap() to map gdb
5218 register numbers to ptrace register numbers. Also, use
5219 outputs from regmap() to make decisions regarding type of
5220 ptrace() call to make. In particular, don't compare against
5221 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5222 (fetch_inferior_registers, store_inferior_registers): Where
5223 possible, obtain register numbers from tdep struct. Don't
5224 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5225 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5226 (LAST_UISA_SP_REGNUM): Delete.
5228 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5230 * rs6000-nat.c (ppc-tdep.h): Include.
5231 (fetch_registers, store_register, fetch_core_registers): Don't
5232 access registers[] directly. Instead, use supply_register() or
5233 regcache_collect() as appropriate.
5234 (find_toc_address): Format hex address with local_hex_string().
5236 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5238 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5241 2002-07-24 Tom Tromey <tromey@redhat.com>
5243 * jv-exp.y: Marked all strings with _().
5244 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5246 (MethodInvocation, CastExpression, parse_number, yyerror,
5247 java_type_from_name, push_expression_name, yylex): Typo fixes.
5249 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5251 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5252 (tee_file_flush, tee_file_write, tee_file_fputs)
5253 (tee_file_isatty): New.
5254 * ui-file.h (tee_file_new): Add prototype.
5256 2002-07-24 Aidan Skinner <aidan@velvet.net>
5258 * ada-lang.c: Change k&r style function definitions to prototyped
5260 * ada-typeprint.c: Change k&r style function definitions to prototyped
5262 * ada-valprint.c: Change k&r style function definitions to prototyped
5265 2002-07-24 Andrew Cagney <cagney@redhat.com>
5267 * README: Remove reference to remote-bug.
5268 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5270 (m88k-nat.o): Delete rule.
5271 (m88k-tdep.o): Delete rule.
5272 (remote-bug.o): Delete rule.
5273 * MAINTAINERS: Mark as obsolete.
5274 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5275 * m88k-tdep.c: Make file obsolete.
5276 * config/m88k/m88k.mh: Ditto.
5277 * config/m88k/delta88v4.mh: Ditto.
5278 * config/m88k/delta88v4.mt: Ditto.
5279 * config/m88k/delta88.mt: Ditto.
5280 * config/m88k/delta88.mh: Ditto.
5281 * remote-bug.c: Ditto.
5282 * config/m88k/tm-delta88.h: Ditto.
5283 * config/m88k/nm-delta88v4.h: Ditto.
5284 * config/m88k/xm-delta88.h: Ditto.
5285 * config/m88k/xm-dgux.h: Ditto.
5286 * config/m88k/tm-m88k.h: Ditto.
5287 * config/m88k/nm-m88k.h: Ditto.
5288 * config/m88k/tm-delta88v4.h: Ditto.
5289 * m88k-nat.c: Ditto.
5290 * cxux-nat.c: Ditto.
5291 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5292 and m88*-*-* obsolete.
5293 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5296 2002-07-24 Andrew Cagney <cagney@redhat.com>
5298 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5299 constant. Same for local pointer variables.
5300 (extract_signed_integer): Ditto.
5301 * defs.h (extract_unsigned_integer): Update.
5302 (extract_signed_integer): Update.
5304 2002-07-24 Andrew Cagney <cagney@redhat.com>
5306 * regcache.c (regcache_raw_write): Change buf parameter to a
5307 constant void pointer.
5308 (regcache_raw_read): Change buf parameter to a void pointer.
5309 (legacy_write_register_gen): Change myaddr parameter a constant
5311 (supply_register): Change val parameter to a const void pointer.
5312 * regcache.h (regcache_raw_write): Update declaration.
5313 (regcache_raw_read): Update declaration.
5314 (supply_register): Update declaration.
5316 2002-07-24 Tom Tromey <tromey@redhat.com>
5318 * defs.h (gdb_readline_wrapper): Declare.
5319 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5320 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5321 * top.c (gdb_readline_wrapper): New function.
5322 (command_line_input): Use it.
5324 2002-07-24 Andrew Cagney <cagney@redhat.com>
5326 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5327 regcache_read and regcache_write.
5328 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5329 * regcache.c: Update.
5330 * sh-tdep.c (sh64_push_arguments): Update comment.
5331 (sh_pseudo_register_read): Update.
5332 (sh_pseudo_register_write): Update.
5333 (sh4_register_read): Update.
5334 (sh4_register_write): Update.
5335 (sh64_pseudo_register_read): Update.
5336 (sh64_pseudo_register_write): Update.
5337 (sh64_register_read): Update.
5338 (sh64_register_write): Update.
5339 * i386-tdep.c (i386_extract_return_value): Update.
5340 (i386_extract_struct_value_address): Update.
5341 (i386_extract_return_value): Update.
5342 * blockframe.c (generic_read_register_dummy): Update.
5343 (generic_call_dummy_register_unwind): Update
5344 * infrun.c (write_inferior_status_register): Update.
5346 2002-07-23 Jim Blandy <jimb@redhat.com>
5348 * parser-defs.h (expression_context_pc): Make this extern.
5349 (Thanks to Michael Snyder.)
5351 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5353 GDB 5.2.1 released from 5.2 branch.
5354 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5355 * README: Update to mention 5.2.1.
5357 2002-07-23 Mark Salter <msalter@redhat.com>
5359 * remote.c (remote_read_bytes): Fix check for error.
5361 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5363 * aix-thread.c (language.h): Include.
5364 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5365 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5366 Print newlines at end of debug messages.
5367 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5368 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5370 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5372 * aix-thread.c (ppc-tdep.h): Include.
5373 (special_register_p): New function.
5374 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5375 (store_regs_user_thread): Use register number information from
5376 gdbarch_tdep struct instead of hardcoded offsets relative to
5377 FIRST_UISA_SP_REGNUM.
5378 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5379 special_register_p() instead of using FPLAST_REGNUM and
5380 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5381 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5382 will be MQ's register number.
5384 2002-07-22 Michael Snyder <msnyder@redhat.com>
5386 * aix-thread.c (ops): Rename to aix_thread_ops.
5387 (base_ops): Rename to base_target.
5388 (ops_attach): Rename to aix_thread_attach.
5389 (ops_detach): Rename to aix_thread_detach.
5390 (ops_resume): Rename to aix_thread_detach.
5391 (ops_wait): Rename to aix_thread_wait.
5392 (ops_kill): Rename to aix_thread_kill.
5393 (init_ops): Rename to init_aix_thread_ops.
5394 (ops_fetch_register): Rename to aix_thread_fetch_register.
5395 (ops_store_register): Rename to aix_thread_store_register.
5396 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5397 (ops_thread_alive): Rename to aix_thread_thread_alive.
5398 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5399 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5400 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5401 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5402 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5403 (store_regs_lib): Rename to store_regs_user_thread.
5404 (store_regs_kern): Rename to store_regs_kernel_thread.
5406 2002-07-22 Michael Snyder <msnyder@redhat.com>
5408 * aix-thread.c (ops_prepare_to_store): Eliminate.
5409 (init_ops): Don't initialize ops.prepare_to_store.
5410 (store_regs_kern): Pre-fetch register buffers from child,
5411 because some registers may not be in the cache. Copy
5412 regs from register cache only if they are cached.
5413 (store_regs_lib): Copy regs from register cache only
5415 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5416 fill_gprs64): Ditto.
5418 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5420 * aix-thread.c (gdb_assert.h): Include.
5421 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5422 register sizes (from register cache) match size of buffer holding
5424 (fill_sprs32): Change parameter types to match those in the ptrace()
5426 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5427 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5429 2002-07-22 Michael Snyder <msnyder@redhat.com>
5431 * aix-thread.c (supply_sprs64): Cosmetic change.
5432 (supply_sprs32): Cosmetic change.
5433 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5434 (fill_sprs64): Use regcache_collect instead of read_register.
5435 (store_regs_lib): Use regcache_collect instead of
5436 read_register. Use fill_sprs32 instead of fill_sprs64,
5437 if debugging a 32-bit architecture.
5438 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5439 out of the register cache, instead of passing a pointer into
5440 the register cache directly to ptrace. Use regcache_collect
5441 insteaad of read_register.
5442 (ops_prepare_to_store): Use target_read_registers instead
5443 of read_register_bytes.
5445 2002-07-20 Aidan Skinner <aidan@velvet.net>
5447 * MAINTAINERS: Add self under write after approval.
5449 2002-07-20 Aidan Skinner <aidan@velvet.net>
5451 * ada-tasks.c: Change k&r style function definitions to prototyped
5454 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5456 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5457 * x86-64-tdep.c: Include "objfiles.h".
5458 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5459 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5461 2002-07-17 Michal Ludvig <michal@suse.cz>
5463 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5464 (update_context): Initialise cfa variable.
5466 2002-07-17 Michael Snyder <msnyder@redhat.com>
5468 * aix-thread.c: Shorten some long lines.
5469 Bring comments into line with code spec.
5471 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5473 * infrun.c: Re-indent using gdb_indent.sh.
5475 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5477 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5478 Leave the indentation temporarily untouched, to minimize the diffs.
5480 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5482 * stabsread.c: Make os9k sections of the code obsolete,
5484 * stabsread.h: Make os9k sections of the code obsolete.
5486 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5488 * linux-low.c (regsets_store_inferior_registers): Add free()
5489 at the end of a loop to prevent memory leak.
5490 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5491 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5492 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5494 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5496 2002-07-17 Jim Blandy <jimb@redhat.com>
5498 * macrocmd.c (info_macro_command): Remove newline from error
5501 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5503 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5504 (sh_gdbarch_init): Use it for sh-dsp.
5506 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5508 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5509 64-bit DWARF2 format.
5511 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5513 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5514 <sys/proc.h> when not available.
5516 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5518 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5519 * stabsread.c: Make os9k sections of the code obsolete.
5520 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5521 * config/i386/i386os9k.mt: Make file obsolete.
5522 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5523 (COMMON_OBS): Remove os9kread.o
5524 (SFILES): Remove os9kread.c.
5525 (os9kread.o, remote-os9k.o): Make target obsolete.
5526 * remote-os9k.c: Make file obsolete.
5527 * os9kread.c: Make file obsolete.
5530 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5532 * NEWS: Mention that the FR30 has been made obsolete.
5533 * fr30-tdep.c: Make file obsolete.
5534 * config/fr30/tm-fr30.h: Ditto.
5535 * config/fr30/fr30.mt: Ditto.
5536 * configure.tgt: Make fr30-*-elf obsolete.
5537 * MAINTAINERS: Make fr30-elf obsolete.
5539 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5541 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5542 found is not inside a section.
5544 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5546 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5548 (pdc_realloc): Use xrealloc() instead of realloc().
5550 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5552 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5553 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5554 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5557 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5559 * aix-thread.c (ptrace_check): Eliminate goto.
5560 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5563 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5565 * aix-thread.c (gdbcmd.h): Include.
5566 (DEBUG, DBG, DBG2, dbg): Eliminate.
5567 (debug_aix_thread): New static global.
5568 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5569 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5570 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5571 invocations to DBG and DBG2 macros to test against
5572 ``debug_aix_thread'' and call fprintf_unfiltered().
5573 (_initialize_aix_thread): Add new command "set debug aix-thread".
5575 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5577 From Gerhard Tonn <TON@de.ibm.com>:
5578 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5579 instead of supply_register.
5581 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5583 * dwarf2cfi.c: Include "gdb_assert.h".
5584 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5586 (update_context): Do not use __func__. Add missing ``break''.
5587 (update_context): Do not use __func__.
5589 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5591 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5592 and its setting. Set gdbarch instruction printing functions
5593 directly. For non-rs6000 case use new function
5594 gdb_print_insn_powerpc.
5595 (gdb_print_insn_powerpc): New function.
5597 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5599 * NEWS: Mention that the d30v has been marked obsolete.
5600 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5601 * configure.tgt: Mark d30v-*-* as obsolete.
5602 * d30v-tdep.c: Mark file as obsolete.
5603 * config/d30v/d30v.mt: Ditto.
5604 * config/d30v/tm-d30v.h: Ditto.
5606 2002-07-13 Aidan Skinner <aidan@velvet.net>
5608 * ada-tasks.c (add_task_entry): replace calls to
5609 malloc() with xmalloc
5610 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5612 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5613 ada_finish_decode_line_1, all_sals_for_line
5614 ada_breakpoint_rewrite): replace calls to free() with xfree()
5616 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5618 From Nicholas Duffek (with minor changes by Martin Hunt,
5619 Louis Hamilton, and Kevin Buettner):
5620 * aix-thread.c: New file.
5622 2002-07-12 Petr Sorfa <petrs@caldera.com>
5624 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5625 complaint for invalid attribute class or form.
5626 (read_func_scope): DW_AT_frame_base
5627 better handling of DW_AT_block*.
5628 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5629 better handling of DW_AT_block*.
5630 (read_common_block): DW_AT_location
5631 better handling of DW_AT_block*.
5632 (read_partial_die): DW_AT_location better handling
5634 (new_symbol): DW_AT_external better handling of
5635 DW_AT_block*. Proper initialization of variable
5637 (attr_form_is_block): New function that returns true
5638 if the attribute's form is of DW_FORM_block*.
5640 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5642 * valops.c (find_method_list): Remove comment about
5643 removed STATIC_MEMFUNCP argument.
5644 (value_find_oload_method_list): Likewise.
5646 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5648 From Nicholas Duffek:
5649 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5650 target_new_objfile_hook.
5652 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5654 From Nicholas Duffek:
5655 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5658 2002-07-12 Andrew Cagney <cagney@redhat.com>
5660 * MAINTAINERS: Mention --enable-sim-build-warnings.
5661 (m68hc11-elf): Disable sim build warnings.
5662 (m32r-elf): Mark as broken obsolete candidate.
5663 (x86_64-linux-gnu): Mark as buildable with -Werror.
5664 (arm-elf): Change -w to ``,'' which enables warnings but not
5667 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5669 * bcache.h: Update copyright.
5670 (struct bstring, struct bcache): Move definition to "bcache.c".
5671 Replaced by opaque declaration.
5672 (bcache_xfree): Replace free_bcache.
5673 (bcache_xmalloc, bcache_memory_used): Declare.
5675 * bcache.c: Update copyright.
5676 (struct bstring, struct bcache): Moved to here from "bcache.h".
5678 (bcache_xmalloc, bcache_memory_used): New functions.
5679 (bcache_xfree): Replace function free_bcache.
5681 * Makefile.in (objfiles.o): Add $(bcache_h).
5682 (objfiles_h): Remove $(bcache_h).
5683 (symfile.o): Add $(bcache_h).
5685 * symmisc.c: Update copyright.
5686 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5687 (print_objfile_statistics): Use bcache_memory_used.
5689 * symfile.c: Include "bcache.h".
5690 (reread_symbols): Use bcache_xfree.
5691 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5692 (add_psymbol_to_list): Pass psymbol_cache by value.
5693 (add_psymbol_with_dem_name_to_list): Ditto.
5695 * objfiles.h: Update copyright.
5696 (struct bcache): Declare opaque. Do not include "bcache.h".
5697 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5699 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5701 * objfiles.c: Include "bcache.h". Update copyright.
5702 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5704 (free_objfile): Use bcache_xfree.
5706 2002-07-11 Grace Sainsbury <graces@redhat.com>
5708 * monitor.c (monitor_fetch_register): Make name a constant.
5709 (monitor_store_register): Same.
5711 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5713 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5714 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5715 (finish_block) For non-function blocks, hash the symbol table. For
5716 function blocks, mark the symbol table as unhashed.
5717 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5718 (msymbol_hash_iw): Likewise.
5719 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5721 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5722 (lookup_minimal_symbol): Likewise for both.
5723 * symtab.h (struct block): Add `hashtable' flag. Comment the
5725 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5726 (ALL_BLOCK_SYMBOLS): Update.
5727 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5728 (struct symbol): Add `hash_next' pointer.
5729 * symtab.c (lookup_block_symbol): Search using the hash table when
5731 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5732 (search_symbols, find_addr_symbol): Likewise.
5734 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5735 (read_dst_symtab): Likewise.
5736 * jv-lang.c (get_java_class_symtab): Likewise.
5737 * mdebugread.c: Include "gdb_assert.h".
5738 (shrink_block): Assert that the block being modified is not hashed.
5739 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5740 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5742 (dump_symtab): Recognize hashed blocks.
5743 * printcmd.c (print_frame_args): Assert that function blocks do not
5744 have hashed symbol tables.
5745 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5746 (fill_in_ada_prototype, debug_print_block): Likewise.
5747 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5749 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5751 * stack.c (print_frame): Use result of frame_address_in_block()
5752 instead of fi->pc when evaluating symbols.
5753 (backtrace_command_1): Ditto.
5755 2002-07-11 Andrew Cagney <cagney@redhat.com>
5757 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5760 * arm-tdep.c (arm_register_name): Make return type constant.
5762 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5764 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5766 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5767 * s390-tdep.c (s390_fp_regnum): Ditto.
5768 (s390_read_fp): Ditto.
5769 (s390_pop_frame): Ditto.
5770 (_initialize_s390_tdep): Ditto.
5771 * remote.c (get_remote_state): Ditto.
5772 * procfs.c (mappingflags): Ditto.
5773 * memattr.c (_initialize_mem): Ditto.
5774 * mcore-tdep.c (mcore_pop_frame): Ditto.
5775 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5776 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5777 * language.c (set_case_str): Ditto.
5778 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5779 * frv-tdep.c (new_variant): Ditto.
5780 (frv_stopped_data_address): Ditto.
5781 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5782 (context_alloc): Ditto.
5783 (frame_state_alloc): Ditto.
5784 (unwind_tmp_obstack_init): Ditto.
5785 (unwind_tmp_obstack_free): Ditto.
5786 (cfi_read_fp): Ditto.
5787 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5788 (cris_pop_frame): Ditto.
5789 * c-lang.c (scanning_macro_expansion): Ditto.
5790 (finished_macro_expansion): Ditto.
5791 (c_preprocess_and_parse): Ditto.
5792 * gdbarch.sh: Ditto.
5793 * gdbarch.h, gdbarch.c: Regenerate.
5794 * config/mn10200/tm-mn10200.h: Adjust indentation.
5795 * target.c: Adjust indentation.
5796 * symtab.h: Adjust indentation.
5797 * stabsread.h: Adjust indentation.
5798 * remote-es.c: Adjust indentation.
5799 * os9kread.c: Adjust indentation.
5801 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5803 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5804 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5806 2002-07-10 Grace Sainsbury <graces@redhat.com>
5808 * NEWS: Mention m68k, mcore multi-arching.
5809 * MAINTAINERS: Change status of m68k, mcore to reflect
5812 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5814 * valops.c (find_overload_match): Free oload_syms.
5816 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5818 Define HAVE_SYS_PROC_H if sys/proc.h exists
5819 * configure.in: Add check for sys/proc.h
5820 * config.in: Regenerate.
5821 * configure: Regenerate.
5823 2002-07-09 Grace Sainsbury <graces@redhat.com>
5825 * config/m68k/tm-m68k.h: Remove macros wrapped in
5826 #if !GDB_MULTI_ARCH.
5828 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5830 * config.in, configure: Regenerate.
5832 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5834 * dwarf2cfi.c: Include "gcore.h".
5835 (execute_stack_op): Fix implementation of the
5836 DW_OP_deref and DW_OP_deref_size operators by letting do their
5837 lookup in the target.
5839 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5841 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5842 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5845 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5847 Fix PR gdb/595, gdb/602
5848 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5849 Don't call value_cast, just read the vtable pointer; update comments
5852 2002-07-05 Grace Sainsbury <graces@redhat.com>
5854 * config/mcore/tm-mcore.h: Remove file.
5855 * config/mcore/mcore.mt: Remove definition of TM_FILE
5856 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5858 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5860 * i386bsd-tdep.c: Include "gdb_string.h".
5862 2002-07-04 Grace Sainsbury <graces@redhat.com>
5864 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5865 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5867 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5868 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5869 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5870 (RETVAL_REGNUM): Move macros from tm-mcore.h
5871 (mcore_reg_struct_has_addr): New function.
5872 (mcore_gdbarch_init): Added initializations for the macros removed
5875 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5877 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5878 traditonal string branding within the ELF header.
5880 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5882 * symtab.c (remove_params): New function.
5883 (make_symbol_overload_list): Use it instead of cplus_demangle.
5884 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5886 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5888 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5890 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5892 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5893 and tdep->sigtramp_end.
5894 * i386obsd-nat.c: New file.
5895 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5897 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5898 Don't call get_current_frame().
5900 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5902 * i386-nat.c (child_post_startup_inferior): New function
5903 calling i386_cleanup_dregs if
5904 I386_USE_GENERIC_WATCHPOINTS is defined.
5905 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5906 conditional to acknowledge that i386-nat.c has its
5907 own child_post_startup_inferior function.
5909 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5911 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5912 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5913 instead of MAX_REGISTER_RAW_SIZE.
5914 (i386_extract_return_value, i386_extract_struct_value_address):
5915 Convert to use regcache.
5916 (i386_gdbarch_init): Set max_register_raw_size and
5917 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5918 Set extract_return_value and extract_struct_value_address instead
5919 of their deprecated variants.
5921 Convert i386 target to generic dummy frames.
5922 * i386-tdep.c: Include "symfile.h".
5923 (i386_frameless_signal_p): Consider a function to be frameless if
5924 the pc points at the first instruction of the function.
5925 (i386_frame_chain): Handle (generic) call dummies.
5926 (i386_frame_saved_pc): Likewise.
5927 (i386_frame_init_saved_regs): Remove code dealing with call
5928 dummies on the stack.
5929 (i386_push_dummy_frame): Removed.
5930 (i386_call_dummy_words): Removed.
5931 (i386_fix_call_dummy): Removed.
5932 (i386_push_return_address): New function.
5933 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5934 parameter, and don't call get_current_frame.
5935 (i386_pop_frame): New function.
5936 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5937 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5938 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5939 call_dummy_length to 0, set call_dummy_words to NULL, set
5940 sizeof_call_dummy_words to 0, set fix_call_dummy to
5941 generic_fix_call_dummy, set pc_in_call_dummy to
5942 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5943 generic_push_dummy_frame, set push_return_address to
5944 i386_push_return_address and set frame_chain_valid to
5945 generic_file_frame_chain_valid.
5947 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5949 * gdbarch.sh (struct regcache): Add opaque declaration.
5950 (EXTRACT_RETURN_VALUE): New architecture method.
5951 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5952 * gdbarch.h, gdbarch.c: Regenerate.
5953 * arch-utils.c (legacy_extract_return_value): New function.
5954 * arch-utils.h (legacy_extract_return_value): Declare.
5955 * values.c (value_being_returned): Re-enable code handling
5956 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5957 deprecated_grub_regcache_for_registers call to block handling
5958 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5959 (EXTRACT_RETURN_VALUE): Do not define.
5961 2002-07-03 Grace Sainsbury <graces@redhat.com>
5963 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5964 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5965 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5966 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5967 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5968 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5969 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5970 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5971 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5972 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5973 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5974 argument so the function fits the prototype in the architecture
5976 (mcore_pop_frame): Remove argument so the function fits the
5977 prototype. Use get_current_frame instead of the argument.
5978 (mcore_push_arguments): Change type of struct_return so the
5979 function can be used in the architecture vector.
5980 (mcore_store_struct_return): Add.
5981 (mcore_frame_init_saved_regs): Add.
5982 (mcore_gdbarch_init): Add function calls to replace the macros
5983 removed from tm-mcore.h
5985 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5987 * infcmd.c (print_return_value): Remove compatibility code calling
5988 deprecated_grub_regcache_for_registers.
5990 * values.c: Include "regcache.h".
5991 (value_being_returned): Update. Use
5992 deprecated_grub_regcache_for_registers to extract the register
5994 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5995 ``struct regcache''.
5996 * Makefile.in (values.o): Add dependency on $(regcache_h).
5998 * inferior.h (run_stack_dummy): Change type of second parameter to
5999 a ``struct regcache''.
6000 * valops.c (hand_function_call): Change type of retbuf to ``struct
6001 regcache''. Allocate using regcache_xmalloc, clean using
6002 make_cleanup_regcache_xfree.
6003 * infcmd.c (run_stack_dummy): Update. Use
6004 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6006 * regcache.c (do_regcache_xfree): New function.
6007 (make_cleanup_regcache_xfree): New function.
6008 * regcache.h (make_cleanup_regcache_xfree): Declare.
6010 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6012 * event-top.c (command_line_handler): Don't read past
6013 beginning of buffer.
6015 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6017 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6019 (varobj_create): Store frame_id for root.
6020 (varobj_gen_name): Use xasprintf.
6021 (varobj_update): Save and restore frame using get_frame_id() and
6023 (create_child): Use xasprintf.
6024 (new_root_variable): Initialize frame_id.
6025 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6026 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6027 to prevent memory leak.
6029 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6031 * valops.c (hand_function_call): Move declaration of retbuf to
6032 start of function, allocate using malloc, add a cleanup but before
6033 the inf_status cleanup, cleanup the buffer. Rename local variable
6034 old_chain to inf_status_cleanup.
6036 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6038 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6040 * cli/cli-decode.c (cmd_func_p): New function.
6041 (cmd_func): New function.
6043 * command.h: Add cmd_func() and cmd_func_p().
6045 2002-07-03 Grace Sainsbury <graces@redhat.com>
6047 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6048 (REGISTER_SIZE): Remove.
6049 (MAX_REGISTER_RAW_SIZE): Remove.
6050 (REGISTER_VIRTUAL_TYPE): Remove.
6051 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6052 (REGISTER_NAME): Remove.
6053 (USE_GENERIC_DUMMY_FRAMES): Remove.
6054 (CALL_DUMMY): Remove.
6055 (CALL_DUMMY_START_OFFSET): Remove.
6056 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6057 (CALL_DUMMY_LOCATION): Remove.
6058 (FIX_CALL_DUMMY): Remove.
6059 (CALL_DUMMY_ADDRESS): Remove.
6060 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6061 (SAVE_DUMMY_FRAME_TOS): Remove.
6062 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6063 (mcore_register_virtual_type): New function.
6064 (mcore_register_byte): New function.
6065 (mcore_register_size): New function.
6066 (mcore_register_name): New function.
6067 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6068 macros removed from tm-mcore.h.
6069 (mcore_dump_tdep): Add.
6070 (_initialize_mcore_tdep): Add gdbarch_register call.
6072 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6074 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6075 frameless_look_for_prologue, such that we actually call this
6078 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6080 * frame.h (frame_address_in_block): New function.
6082 * blockframe.c (frame_address_in_block): New function extracted
6083 from get_frame_block().
6084 (get_frame_block): Use frame_address_in_block().
6085 (block_innermost_frame): Use frame_address_in_block() to match
6086 the frame pc address against the block boundaries rather than
6087 the frame pc directly. This prevents a failure when a frame pc
6088 is actually a return-address pointing immediately after the end
6091 2002-07-02 Grace Sainsbury <graces@redhat.com>
6093 * MAINTAINERS: Add self under write after approval.
6095 2002-07-02 Grace Sainsbury <graces@redhat.com>
6097 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6098 used in architecture vector. The default is
6099 m68k_local_breakpoint_from_pc.
6100 (m68k_local_breakpoint_from_pc): Add.
6101 (enum): Add register numbers from tm-m68k.h.
6102 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6104 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6105 GDB_MULTI_ARCH_PARTIAL.
6106 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6107 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6109 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6110 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6111 to enum in m68k-tdep.c
6113 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6115 * solib-osf.c (open_map): Compute the list of shared libraries
6116 loaded by the inferior, rather than the list of libraries loaded
6117 by GDB itself. Otherwise, GDB ends up reading the symbols from
6118 the wrong shared libraries...
6120 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6122 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6123 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6125 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6127 (FRAMELESS_SIGNAL): Remove function.
6128 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6129 i386_linux_saved_pc_after_call): Removed.
6130 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6131 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6132 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6134 * i386-tdep.c (i386_frameless_signal_p): New function.
6135 (i386_frame_chain): Deal with frameless signals.
6136 (i386_sigtramp_saved_sp): New function.
6137 (i386_frame_saved_pc): Deal with frameless signals.
6138 (i386_saved_pc_after_call): Make sure the correct value is
6139 returned just after entry into a sigtramp.
6140 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6141 i386fbsd4_sc_sp_offset): New variables.
6142 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6143 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6144 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6145 similiar to what we already did for sc_pc_offset.
6146 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6149 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6151 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6153 * config/i386/tm-x86-64linux.h: New.
6154 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6156 * config/i386/nm-x86-64.h: Rename to ...
6157 * config/i386/nm-x86-64linux.h: ... this one.
6158 * config/i386/x86-64linux.mh: Reflect the above change.
6160 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6162 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6163 with sigcontext_addr. Add sc_sp_offset.
6164 (i386bsd_sigtramp_saved_pc): Remove prototype.
6165 (i386bsd_sicontext_addr): Add prototype.
6166 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6167 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6168 (i386_svr4_sigtramp_saved_pc): Removed.
6169 (i386_svr4_sigcontext_addr): New function.
6170 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6171 Initialize tdep->sigcontext_addr instead. Initialize
6172 tdep->sc_pc_offset and tdep->sc_sp_offset.
6173 (i386_gdbarch_init): Likewise.
6174 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6176 (i386bsd_sigtramp_saved_pc): Remove function.
6177 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6178 Initialize tdep->sigcontext_addr instead. Initialize
6180 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6181 of tdep->sigtramp_saved_pc.
6182 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6183 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6186 * i386-tdep.c (i386_frameless_function_invocation,
6187 i386_frame_num_args, i386_frame_init_saved_regs,
6188 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6189 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6190 i386_extract_return_value, i386_store_return_value,
6191 i386_extract_struct_value_address, i386_register_virtual_type,
6192 i386_register_convertible, i386_register_convert_to_virtual,
6193 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6194 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6197 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6199 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6201 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6202 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6203 this macro. Include "value.h".
6205 2002-06-30 Aidan Skinner <aidan@velvet.net>
6207 * ada-exp.tab.c: remove as it's a generated file
6208 * ada-lex.c: remove as it's a generated file
6210 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6212 * config/i386/tm-i386.h (struct frame_info, struct
6213 frame_saved_regs, struct value, struct type): Remove forward
6216 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6217 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6218 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6219 (FILL_FPXREGSET): Define.
6221 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6223 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6224 i[3456]86-*-netbsd* case.
6225 * config/i386/tm-obsd.h: Removed.
6226 * config/i386/obsd.mt: Removed.
6227 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6229 (MH_CFLAGS): Add -DYYDEBUG=0.
6231 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6232 i386nbsd_sc_pc_offset on OpenBSD too.
6234 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6235 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6236 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6238 * i386bsd-tdep.c: Include "arch-utils.h".
6239 (i386bsd_aout_in_solib_call_trampoline): New function.
6240 (i386bsd_init_abi): Set in_solib_call_trampoline to
6241 i386bsd_aout_in_solib_call_trampoline.
6242 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6243 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6245 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6247 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6248 (struct obstack, struct bcache): Add opaque declarations.
6249 * Makefile.in (macrotab_h): Update
6251 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6253 * blockframe.c (generic_find_dummy_frame): Change return type to
6254 ``struct regcache''.
6255 (struct dummy_frame): Replace field ``registers'' with regcache, a
6256 struct regcache object.
6257 (generic_find_dummy_frame): Update.
6258 (generic_push_dummy_frame): Update. Use regcache_xfree,
6259 regcache_xmalloc and regcache_cpy.
6260 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6262 (deprecated_generic_find_dummy_frame): Update.
6263 (generic_read_register_dummy): Update. Use
6264 regcache_read_as_address.
6265 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6266 (generic_get_saved_register): Update. Use regcache_read.
6268 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6270 * Makefile.in (objfiles_h): Add $(bcache_h).
6271 * objfiles.h: Include "bcache.h".
6273 * Makefile.in (symtab_h): Remove $(bcache_h).
6274 * symtab.h: Do not include "bcache.h".
6276 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6278 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6279 generic_func_frame_chain_valid.
6281 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6283 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6284 * config/i386/tm-fbsd.h: Likewise.
6286 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6288 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6289 generic_unwind_get_saved_register.
6291 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6293 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6294 * regcache.c (supply_register): Add missing argument to
6295 register_buffer call.
6297 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6299 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6300 Solaris /bin/grep does not not like it. From Peter Schauer.
6302 2002-06-26 Tom Tromey <tromey@redhat.com>
6304 * command.h (add_setshow_cmd): Declare.
6305 (add_setshow_cmd_full): Declare.
6306 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6307 returns void. Use add_setshow_cmd_full.
6308 (add_setshow_cmd_full): New function.
6309 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6310 (add_setshow_boolean_cmd): Likewise.
6312 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6314 * config/vax/tm-vax.h: Protect from multiple inclusion.
6315 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6316 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6317 * config/vax/tm-vaxbsd.h: ...here. New file.
6318 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6320 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6322 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6323 (BELIEVE_PCC_PROMOTION): Remove.
6324 (AP_REGNUM): Move to...
6325 * config/vax/nm-vax.h: ...here.
6326 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6327 (vax_breakpoint_from_pc): New function.
6328 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6329 and gdbarch_believe_pcc_promotion.
6331 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6333 * Makefile.in (vax_tdep_h): Define.
6334 (vax-tdep.o): Use $(vax_tdep_h).
6335 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6336 (vax_dump_tdep): New function.
6337 (_initialize_vax_tdep): Register vax_dump_tdep.
6338 * vax-tdep.h: Include osabi.h.
6339 (struct gdbarch_tdep): New.
6341 2002-06-26 Andrew Cagney <cagney@redhat.com>
6343 * frame.h (deprecated_generic_find_dummy_frame): Rename
6344 generic_find_dummy_frame.
6345 * blockframe.c (generic_find_dummy_frame): Make static.
6346 (deprecated_generic_find_dummy_frame): New function.
6347 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6348 generic_find_dummy_frame with deprecated_find_dummy_frame.
6349 (sh64_nofp_frame_init_saved_regs): Ditto.
6350 (sh_fp_frame_init_saved_regs): Ditto.
6351 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6352 (s390_frame_chain): Ditto.
6353 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6355 2002-06-26 Grace Sainsbury <graces@redhat.com>
6357 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6358 gdbarch vector are at the top.
6360 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6361 (FRAME_ARGS_ADDRESS): Remove.
6362 (FRAME_LOCALS_ADDRESS): Remove.
6363 (FRAME_NUM_ARGS): Remove.
6364 (FRAME_ARGS_SKIP): Remove.
6365 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6366 (m68k_gdbarch_init): Add gdbarch initializations for macros
6367 undefined in tm-m68k.h
6369 2002-06-26 Grace Sainsbury <graces@redhat.com>
6371 * monitor.h: Add the function regname to monitor_ops
6372 structure. This way NUM_REGS does not have to be a constant.
6373 * monitor.c (monitor_fetch_register): Added support for regname
6374 function. The function is called if the array regnames is NULL.
6375 (monitor_store_register): Same.
6376 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6378 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6379 cpu32bug_cmds.regname to point to new function.
6380 * abug-rom.c (abug_regname): Same as above.
6381 (init_abug_cmds): Same.
6382 * dbug-rom.c (dbug_regname): Same as above.
6383 (init_dbug_cmds): Same.
6384 * remote-est.c (est_regname): Same.
6385 (init_est_cmds): Same.
6386 * rom68k-rom.c (rom68k_regname): Same.
6387 (init_rom68k_cmds): Same.
6389 2002-06-25 Tom Tromey <tromey@redhat.com>
6391 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6393 2002-06-25 Andrew Cagney <cagney@redhat.com>
6395 * infrun.c (stop_registers): Change variable's type to ``struct
6397 (xmalloc_inferior_status): Delete function.
6398 (free_inferior_status): Delete function.
6399 (normal_stop): Use regcache_cpy.
6400 (struct inferior_status): Change type of fields ``stop_registers''
6401 and ``registers'' to ``struct regcache''.
6402 (write_inferior_status_register): Use regcache_write.
6403 (save_inferior_status): Instead of calling
6404 xmalloc_inferior_status, allocate the inf_status buffer directly.
6405 Use regcache_dup_no_passthrough and regcache_dup to save the
6407 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6408 Replace the stop_registers regcache instead of overriding it. Use
6409 regcache_xfree. Instead of calling free_inferior_status, xfree
6410 the buffer directly.
6411 (discard_inferior_status): Use regcache_xfree. Instead of calling
6412 free_inferior_status, xfree the buffer directly.
6413 (build_infrun): Use regcache_xmalloc.
6414 (_initialize_infrun): Delete redundant call to build_infrun.
6416 * Makefile.in (infcmd.o): Add $(regcache_h).
6418 * infcmd.c: Include "regcache.h".
6419 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6420 obtain the address of `stop_registers' register buffer.
6421 (print_return_value): Ditto.
6423 * inferior.h (struct regcache): Add opaque declaration.
6424 (stop_registers): Change variable's declared type to ``struct
6427 2002-06-24 Tom Tromey <tromey@redhat.com>
6429 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6430 * target.c (initialize_targets): Fixed typo in
6431 trust-readonly-sections `show' documentation.
6433 * main.c: Marked all strings with _().
6435 2002-06-24 Don Howard <dhoward@redhat.com>
6437 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6438 that means max CORE_ADDR+1.
6439 (lookup_mem_region): Ditto.
6440 (mem_info_command): Ditto.
6442 2002-06-24 Grace Sainsbury <graces@redhat.com>
6444 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6445 (REGISTER_BYTES_OK): Remove.
6446 (REGISTER_BYTES): Remove.
6447 (STORE_STRUCT_RETURN): Remove.
6448 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6449 (STORE_RETURN_VALUE): Remove.
6450 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6451 (FRAME_CHAIN): Remove.
6452 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6453 (FRAME_SAVED_PC): Remove.
6454 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6455 (m68k_store_struct_return): Add.
6456 (m68k_deprecated_extract_return_value): Add.
6457 (m68k_deprecated_extract_struct_value_address): Add.
6458 (m68k_store_return_value): Add.
6459 (m68k_frame_chain): Add.
6460 (m68k_frameless_function_invocation): Add.
6461 (m68k_frame_saved_pc): Add.
6462 (m68k_gdbarch_init): added set_gdbarch calls for new
6463 functions and deleted macros.
6465 2002-06-23 Tom Tromey <tromey@redhat.com>
6467 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6468 (ALLDEPFILES): Likewise.
6469 (udiheaders): Removed.
6470 (udip2soc.o): Likewise.
6471 (udi2go32.o): Likewise.
6473 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6475 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6477 * infrun.c (_initialize_infrun): Delete unnecessary call to
6480 * regcache.h: Update comments describing the regcache_cpy family
6482 (regcache_save, regcache_restore): Delete declaration.
6483 (regcache_save_no_passthrough): Delete declaration.
6484 (regcache_restore_no_passthrough): Delete declaration.
6485 * regcache.c (regcache_save): Delete function.
6486 (regcache_save_no_passthrough): Delete function.
6487 (regcache_restore): Delete function.
6488 (regcache_restore_no_passthrough): Delete function.
6490 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6492 * config/m68k/tm-m68k.h: Fix typo.
6493 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6494 (m68k_frame_init_saved_regs): Declare.
6496 2002-06-21 Jim Blandy <jimb@redhat.com>
6498 Remove some vestiges of Harris 88k support.
6499 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6500 register numbering quirk.
6501 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6502 odd symbols occurring in Harris 88k ELF targets.
6504 2002-06-21 Tom Tromey <tromey@redhat.com>
6506 * gdb_locale.h: New file.
6507 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6508 (defs_h): Added gdb_locale.h.
6509 * configure, config.in: Rebuilt.
6510 * configure.in (PACKAGE): Define.
6511 * defs.h: Include gdb_locale.h.
6512 * main.c (captured_main): Call setlocale, bindtextdomain,
6515 2002-06-21 Dave Brolley <brolley@redhat.com>
6517 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6518 * config/frv/frv.mt: New file.
6519 * config/frv/tm-frv.h: New file.
6520 * configure.tgt: Support frv-*-*.
6521 * Makefile.in (frv-tdep.o): New target.
6522 * frv-tdep.c: New file.
6523 * NEWS: Mention frv.
6525 2002-06-21 Dave Brolley <brolley@redhat.com>
6527 * MAINTAINERS: Add self to "Write After Approval" list.
6529 2002-06-21 Grace Sainsbury <graces@redhat.com>
6531 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6532 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6533 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6534 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6535 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6537 * m68k-tdep.c: Include arch-utils.h
6538 (m68k_register_raw_size): Add.
6539 (m68k_register_virtual_size): Add.
6540 (m68k_register_virtual_type): Add.
6541 (m68k_register_name): Add.
6542 (m68k_stack_align): Add.
6543 (m68k_register_byte): Add.
6544 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6547 2002-06-21 Grace Sainsbury <graces@redhat.com>
6549 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6550 m68k_find_saved_regs.
6551 (m68k_pop_frame): Removed saved_regs structure, and replaced
6552 references to it with frame->saved_regs.
6553 (m68k_gdbarch_init): Added function calls to initialize the
6555 (m68k_fix_call_dummy): Add.
6556 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6557 (CALL_DUMMY): Remove.
6558 (CALL_DUMMY_LENGTH): Remove.
6559 (CALL_DUMMY_START_OFFSET): Remove.
6560 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6561 (FIX_CALL_DUMMY): Remove.
6562 (PUSH_DUMMY_FRAME): Remove.
6563 (POP_FRAME): Remove.
6565 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6567 * parse.c (parse_fprintf): New function used to avoid calls to
6568 fprintf in bison parser generated debug code.
6569 * parser-defs.h: Declaration of new parse_fprintf function.
6570 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6571 Set YYDEBUG to 1 by default.
6572 Set YYFPRINTF as parse_fprintf.
6574 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6576 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6578 (pointer_encoding, enum ptr_encoding): New.
6579 (execute_cfa_program): Take care about pointer encoding.
6580 (dwarf2_build_frame_info): Only call parse_frame_info for
6581 .debug_frame and .eh_frame.
6582 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6583 fixed augmentation handling, added relative addressing,
6584 ignore duplicate FDEs. Added comments.
6585 * dwarf2cfi.c: Reindented.
6587 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6589 * event-top.c (command_handler): Don't use space_at_cmd_start
6590 unless there is sbrk() on the host. Assign time and space data
6591 to union fields of the appropriate length.
6593 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6595 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6596 x86_64_register_name. Return type changed to 'const char *'.
6597 (x86_64_register_name2nr): Rename to x86_64_register_number.
6598 (x86_64_gdbarch_init): Update to reflect the change.
6599 * x86-64-tdep.h: Ditto.
6600 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6601 (supply_fpregset): Ditto.
6603 2002-06-19 Andrew Cagney <cagney@redhat.com>
6605 * regcache.h: Update copyright.
6606 (struct regcache, struct gdbarch): Add opaque declarations.
6607 (current_regcache): Declare global variable.
6608 (regcache_read, regcache_write): Add gdbarch parameter.
6609 (regcache_save, regcache_save_no_passthrough)
6610 (regcache_restore, regcache_restore_no_passthrough)
6611 (regcache_dup, regcache_dup_no_passthrough)
6612 (regcache_cpy, regcache_cpy_no_passthrough)
6613 (deprecated_grub_regcache_for_registers)
6614 (deprecated_grub_regcache_for_register_valid)
6615 (regcache_valid_p): Add function declarations.
6617 * regcache.c: Update copyright.
6618 (regcache_descr_handle): New global variable.
6619 (struct regcache_descr): Define.
6620 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6621 (regcache_descr, xfree_regcache_descr): New functions.
6622 (struct regcache): Define.
6623 (regcache_xmalloc, regcache_xfree): New functions.
6624 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6625 (regcache_dup, regcache_dup_no_passthrough): New functions.
6626 (regcache_valid_p, regcache_read_as_address): New functions.
6627 (deprecated_grub_regcache_for_registers): New function.
6628 (deprecated_grub_regcache_for_register_valid): New function.
6629 (current_regcache): New global variable.
6630 (register_buffer): Add regcache parameter. Update calls.
6631 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6632 (read_register_gen, write_register_gen): Update register_buffer
6633 call. Test for legacy_p instead of gdbarch_register_read_p or
6634 gdbarch_register_write_p.
6635 (regcache_collect): Update register_buffer call.
6636 (build_regcache): Rewrite. Use deprecated grub functions.
6637 (regcache_save, regcache_save_no_passthrough): New functions.
6638 (regcache_restore, regcache_restore_no_passthrough): New
6640 (_initialize_regcache): Create the regcache_data_handle. Swap
6641 current_regcache global variable.
6643 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6644 parameter to regcache_read and regcache_write calls.
6645 (sh4_register_read): Ditto.
6646 (sh64_pseudo_register_read): Ditto.
6647 (sh64_register_read): Ditto.
6648 (sh_pseudo_register_write): Ditto.
6649 (sh4_register_write): Ditto.
6650 (sh64_pseudo_register_write): Ditto.
6651 (sh64_register_write): Ditto.
6653 * defs.h (XCALLOC): Define.
6655 2002-06-19 Grace Sainsbury <graces@redhat.com>
6657 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6658 * m68k-tdep.c (m68k_gdbarch_init): Added.
6659 (m68k_dump_tdep): Added.
6661 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6663 * ada-lang.c (fill_in_ada_prototype): Update comment.
6665 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6667 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6669 (mips_abi_string, mips_abi_strings): New.
6670 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6671 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6672 tdep->mips_abi_string. Honor mips_abi_string. Default to
6673 O32 if no ABI is found.
6674 (mips_dump_tdep): Use mips_abi_strings.
6675 (mips_abi_update): New function.
6676 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6677 ``set mips abi'' and ``show mips abi''. Check the size of
6680 2002-06-19 Andrew Cagney <cagney@redhat.com>
6682 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6685 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6687 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6688 current frame using only the first stack size adjustment. All
6689 subsequent size adjustments are not considered to be part of
6690 the "static" part of the current frame.
6691 Compute the address of the saved registers relative to the
6692 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6693 in use in this frame.
6695 2002-06-18 Don Howard <dhoward@redhat.com>
6697 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6698 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6699 suggesting this solution.
6701 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6703 * config/romp/xm-rtbsd.h: Delete file.
6704 * config/romp/rtbsd.mh: Delete file.
6706 2002-06-18 Keith Seitz <keiths@redhat.com>
6708 * breakpoint.c (condition_command): Post breakpoint_modify
6709 when a condition is added to an existing breakpoint.
6710 (commands_command): Likewise for commands.
6711 (set_ignore_count): Likewise for ignore counts.
6712 If no tty, do not simply return, still need to send event
6714 (ignore_command): Only print a newline if the command came
6716 Don't call breakpoints_changed, since this is now properly
6717 handled by set_ignore_count.
6719 2002-06-18 Andrew Cagney <cagney@redhat.com>
6721 * MAINTAINERS: Note that cris-elf target can be compiled with
6723 * cris-tdep.c (cris_register_name): Make return type constant.
6724 (cris_breakpoint_from_pc): Ditto.
6726 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6728 * frame.h (struct frame_info): Change type of context to
6731 2002-06-17 Andrew Cagney <cagney@redhat.com>
6733 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6735 * gdbarch.h, gdbarch.c: Regenerate.
6736 * config/mips/tm-mips.h (mips_register_name): Update.
6737 * i386-tdep.h (i386_register_name): Update.
6738 * mips-tdep.c (mips_register_name): Update
6739 * alpha-tdep.c (alpha_register_name): Update.
6740 * arch-utils.c (legacy_register_name): Update.
6741 * arch-utils.h (legacy_register_name): Update.
6742 * avr-tdep.c (avr_register_name): Update.
6743 * ia64-tdep.c (ia64_register_name): Update.
6744 * i386-tdep.c (i386_register_name): Update.
6745 * sparc-tdep.c (sparc32_register_name): Update.
6746 (sparc64_register_name): Update.
6747 (sparclite_register_name): Update.
6748 (sparclet_register_name): Update.
6749 * sh-tdep.c (sh_generic_register_name): Update.
6750 (sh_sh_register_name): Update.
6751 (sh_sh3_register_name): Update.
6752 (sh_sh3e_register_name): Update.
6753 (sh_sh_dsp_register_name): Update.
6754 (sh_sh3_dsp_register_name): Update.
6755 (sh_sh4_register_name): Update.
6756 (sh_sh64_register_name): Update.
6757 * s390-tdep.c (s390_register_name): Update.
6758 * rs6000-tdep.c (rs6000_register_name): Update.
6759 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6760 (ns32k_register_name_32382): Update.
6761 * d10v-tdep.c (d10v_ts2_register_name): Update.
6762 (d10v_ts3_register_name): Update.
6763 * xstormy16-tdep.c (xstormy16_register_name): Update.
6764 * vax-tdep.c (vax_register_name): Update.
6765 * v850-tdep.c (v850_register_name): Update.
6766 * m68hc11-tdep.c (m68hc11_register_name): Update.
6767 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6768 (am33_register_name): Update.
6770 2002-06-17 Grace Sainsbury <graces@redhat.com>
6772 * m68k-tdep.c: Reindented.
6774 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6776 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6777 list of predefined types.
6779 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6781 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6782 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6783 REGISTER_CONVERT_TO_RAW): Remove defines.
6784 (i386_register_virtual_type, i386_register_convertible,
6785 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6787 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6788 macros mentioned above.
6790 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6791 (i386lynx_saved_pc_after_call): Remove prototype.
6792 * i386ly-tdep.c: Include "i386-tdep.h".
6793 (i386lynx_saved_pc_after_call): Make static. Use
6794 read_memory_nobpt instead of read_memory. Use
6795 read_memory_unsigned_integer instead of read_memory_integer.
6796 (i386lynx_init_abi): New function.
6797 (i386lynx_coff_osabi_sniffer): New function.
6798 (_initialize_i386bsd_tdep): New function.
6800 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6801 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6802 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6803 (i386_fix_call_dummy): Remove prototype.
6804 * i386-tdep.c (i386_call_dummy_words): New variable.
6805 (i386_gdbarch_init): Adjust for removal of the
6806 macros mentioned above.
6808 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6810 * command.h (add_setshow_auto_boolean_cmd): Replace
6811 add_set_auto_boolean_cmd.
6812 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6813 add_set_auto_boolean_cmd.
6814 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6815 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6816 mask-address'' command.
6817 (show_mask_address): Add cmd parameter.
6818 * remote.c (add_packet_config_cmd): Update. Change type of
6819 set_func and show_func to cmd_sfunc_ftype.
6820 (_initialize_remote): Update `set remote Z-packet'
6821 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6822 (show_remote_protocol_e_packet_cmd): Ditto.
6823 (show_remote_protocol_E_packet_cmd): Ditto.
6824 (show_remote_protocol_P_packet_cmd): Ditto.
6825 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6826 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6827 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6828 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6829 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6830 (show_remote_protocol_Z_packet_cmd): Ditto.
6831 (show_remote_protocol_binary_download_cmd): Ditto.
6832 (show_remote_cmd): Pass NULL to all of above.
6834 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6836 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6837 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6838 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6839 POP_FRAME): Remove defines.
6840 (i386_push_arguments, i386_store_struct_return,
6841 i386_extract_return_value, i386_store_return_value,
6842 i386_extract_struct_value_address, i386_push_dummy_frame,
6843 i386_pop_frame): Renove prototypes.
6844 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6845 macros mentioned above.
6847 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6849 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6850 add_set_boolean_cmd.
6851 (add_setshow_cmd): New function.
6852 * command.h (add_setshow_boolean_cmd): Replace
6853 add_set_boolean_cmd.
6854 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6855 and ``set rdiromatzero''.
6856 * maint.c (_initialize_maint_cmds): Update commented out code.
6857 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6858 * target.c (initialize_targets): Update `set
6859 trust-readonly-sections'.
6860 * remote.c (_initialize_remote): Update `set remotebreak'.
6862 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6864 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6865 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6866 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6867 fit into multi-arch framework.
6868 (i386_breakpoint_from_pc): New function.
6869 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6872 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6873 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6874 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6875 (i386_frameless_function_invocation, i386_frame_num_args,
6876 i386_frame_init_saved_regs): Remove prototypes.
6877 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6878 macros mentioned above.
6880 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6882 * cli/cli-decode.c (set_cmd_cfunc): Update.
6883 (set_cmd_sfunc): Update.
6884 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6885 (set_cmd_sfunc, set_cmd_cfunc): Update.
6886 * cli/cli-decode.h: Update.
6888 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6890 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6891 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6893 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6895 * defs.h (auto_boolean): Declare enum.
6896 * command.h (cmd_auto_boolean): Delete enum.
6897 * mips-tdep.c (mask_address_var): Update.
6898 (mips_mask_address_p): Update.
6899 (show_mask_address): Update.
6900 * remote.c (struct packet_config): Update.
6901 (update_packet_config): Update.
6902 (show_packet_config_cmd): Update.
6903 (packet_ok): Update.
6904 (add_packet_config_cmd): Update.
6905 (_initialize_remote):
6906 * command.h: Update.
6907 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6908 (do_setshow_command): Update.
6909 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6910 * cli/cli-decode.h: Update.
6912 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6914 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6915 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6916 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6917 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6918 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6919 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6921 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6922 list of DJGPP COFF targets.
6924 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6925 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6926 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6927 (FP0_REGNUM): Remove define.
6928 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6929 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6930 (i386_register_virtual_size): Remove protoype.
6931 * i386-tdep.c (i386_register_virtual_size): Removed.
6932 (i386_extract_return_value, i386_store_return_value): Use
6933 FP0_REGNUM instead of NUM_FREGS to determine whether the
6934 floating-point registers are available.
6935 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6936 Adjust for removal of macros mentioned above.
6938 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6940 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6942 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6944 (supply_gregset, fill_gregset): Remove use of register keyword and
6945 remove declaration for regmap. Use I386_NUM_GREGS instead of
6946 NUM_REGS and NUM_FREGS.
6947 (FPREGSET_FSAVE_OFFSET): Remove.
6948 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6949 NUM_FREGS to determine whether the floating-point registers are
6952 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6953 gnu_store_registers): Replace usage of NUM_GREGS with
6956 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6957 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6958 usage of NUM_GREGS with I386_NUM_GREGS.
6960 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6962 * i386bsd-nat.c: Include "i386-tdep.h".
6963 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6966 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6967 and associated comment. They no longer make any sense, since we
6968 don't use this file anymore on Linux.
6970 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6971 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6972 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6973 elements in these arrays.
6974 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6977 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6979 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6980 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6982 2002-06-14 Andrew Cagney <cagney@redhat.com>
6984 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6985 EXTRACT_RETURN_VALUE.
6986 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6987 EXTRACT_STRUCT_VALUE_ADDRESS.
6988 * gdbarch.h, gdbarch.c: Regenerate.
6990 * values.c (value_being_returned): Handle
6991 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6992 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6994 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6995 * arm-tdep.c (arm_gdbarch_init): Update.
6996 * avr-tdep.c (avr_gdbarch_init): Update.
6997 * cris-tdep.c (cris_gdbarch_init): Update.
6998 * d10v-tdep.c (d10v_gdbarch_init): Update.
6999 * ia64-tdep.c (ia64_gdbarch_init): Update.
7000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7001 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7002 * s390-tdep.c (s390_gdbarch_init): Update.
7003 * sh-tdep.c (sh_gdbarch_init): Update.
7004 * s390-tdep.c (s390_gdbarch_init): Update.
7005 * sparc-tdep.c (sparc_gdbarch_init): Update.
7006 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7007 * v850-tdep.c (v850_gdbarch_init): Update.
7008 * vax-tdep.c (vax_gdbarch_init): Update.
7009 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7012 * config/arc/tm-arc.h: Update.
7013 * config/d30v/tm-d30v.h: Update.
7014 * config/fr30/tm-fr30.h: Update.
7015 * config/h8300/tm-h8300.h: Update.
7016 * config/h8500/tm-h8500.h: Update.
7017 * config/i386/tm-i386.h: Update.
7018 * config/i386/tm-ptx.h: Update.
7019 * config/i386/tm-symmetry.h: Update.
7020 * config/i960/tm-i960.h: Update.
7021 * config/m32r/tm-m32r.h: Update.
7022 * config/m68k/tm-delta68.h: Update.
7023 * config/m68k/tm-linux.h: Update.
7024 * config/m68k/tm-m68k.h: Update.
7025 * config/m88k/tm-m88k.h: Update.
7026 * config/mcore/tm-mcore.h: Update.
7027 * config/mips/tm-mips.h: Update.
7028 * config/mn10200/tm-mn10200.h: Update.
7029 * config/pa/tm-hppa.h: Update.
7030 * config/pa/tm-hppa64.h: Update.
7031 * config/sparc/tm-sp64.h: Update.
7032 * config/sparc/tm-sparc.h: Update.
7033 * config/sparc/tm-sparclet.h: Update.
7034 * config/z8k/tm-z8k.h: Update.
7036 2002-06-14 Andrew Cagney <cagney@redhat.com>
7038 * Makefile.in (i386_linux_tdep_h): Define.
7039 (i386_tdep_h, i387_tdep_h): Define.
7040 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7041 $(i386_tdep_h) and $(i387_tdep_h).
7042 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7044 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7046 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7047 Already covered by the default.
7049 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7050 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7051 (i386_gdbarch_init): Initialize long_double_format and long_double
7054 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7055 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7057 * config/i386/i386sol2.mh: ... here.
7058 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7059 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7060 (SIGCONTEXT_PC_OFFSET): Remove define.
7061 (IN_SIGTRAMP): Remove define.
7062 * i386-sol2-tdep.c: New file.
7064 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7065 * config/i386/tm-i386nw.h: Removed.
7067 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7068 USE_STRUCT_CONVENTION): Remove defines.
7069 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7070 (get_longjmp_target): Remove prototype.
7071 (IN_SIGTRAMP): Remove define.
7072 (i386bsd_in_sigtramp): Remove prototype.
7073 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7074 function. Update comment accordingly
7075 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7076 (FRAME_SAVED_PC): Remove define.
7077 (i386bsd_frame_saved_pc): Remove prototype.
7078 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7079 GET_LONGJMP_TARGET): Remove defines.
7080 (get_longjmp_target): Remove prototype.
7081 (IN_SIGTRAMP): Remove define.
7082 (i386bsd_in_sigtramp): Remove prototype.
7083 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7084 function. Update comment accordingly
7085 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7086 (FRAME_SAVED_PC): Remove define.
7087 (i386bsd_frame_saved_pc): Remove prototype.
7088 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7090 (USE_STRUCT_CONVENTION): Remove prototype.
7091 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7093 (_initialize_i386bsd_nat): Revise logic to determine some
7094 constants at compile time when compiling a native GDB. Warn if
7095 things don't match up with what we expect.
7096 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7098 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7099 to use date stored in `struct gdbarch_tdep'.
7100 (i386bsd_sigcontext_offset): Remove varaible.
7101 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7102 stored in `struct gdbarch_tdep'.
7103 (i386bsd_frame_saved_pc): Make static.
7104 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7105 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7106 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7107 i386fbsd4_sc_pc_offset): New variables.
7108 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7109 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7111 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7113 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7114 Modify the value of i386fbsd_sigtramp_start and
7115 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7116 i386fbsd_sigtramp_end.
7117 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7120 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7121 define to i386-linux-tdep.h.
7122 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7123 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7125 (i386_linux_register_name, i386_linux_register_byte,
7126 i386_linux_register_raw_size): Remove prototypes.
7127 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7128 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7129 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7130 TARGET_WRITE_PC): Remove defines.
7131 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7132 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7133 i386_linux_write_pc): Remove prototypes.
7134 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7135 (get_longjmp_target): Remove prototype.
7136 * i386-linux-tdep.h: New file.
7137 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7138 * i386-linux-tdep.c: Include "i386-tdep.h" and
7139 "i386-linux-tdep.h".
7140 (i386_linux_register_name, i386_linux_register_byte,
7141 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7142 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7144 (i386_linux_init_abi): New function.
7145 (_initialize_i386_linux_tdep): New function.
7147 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7148 (i386_saved_pc_after_call): Remove prototype.
7149 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7150 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7151 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7152 (i386_register_name, i386_stab_reg_to_regnum,
7153 i386_dwarf_reg_to_regnum): Remove prototypes.
7154 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7155 SIZEOF_SSE_REGS): Remove defines.
7156 (REGISTER_BYTES): Remove define.
7157 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7158 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7159 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7160 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7161 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7162 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7163 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7164 (get_longjmp_target): Remove prototype.
7165 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7166 (sigtramp_saved_pc): Remove define.
7167 (i386v4_sigtramp_saved_pc): Remove prototype.
7168 * config/i386/tm-go32.h (FRAME_CHAIN,
7169 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7170 (i386go32_frame_saved_pc): Remove prototype.
7171 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7172 (get_longjmp_target): Remove prototype.
7173 * i386-tdep.h: Include "osabi.h".
7174 (enum i386_abi): Removed.
7175 (enum struct_return): New enum.
7176 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7177 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7178 sc_pc_offset members.
7179 (i386_gdbarch_register_os_abi): Remove prototype.
7180 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7181 I386_SSE_NUM_REGS): New defines.
7182 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7183 I386_SSE_SIZEOF_REGS): New defines.
7184 (i386_register_name, i386_register_byte, i386_register_raw_size):
7186 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7187 (i386bsd_sigtramp_saved_pc): New prototype.
7188 * i386-tdep.c: Don't include "elf-bfd.h".
7189 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7190 i386_frame_chain, i386_saved_pc_after_call): Make static.
7191 (i386_frame_saved_pc): Rewrite to call architecture dependent
7192 function to deal with signal handlers. Make static.
7193 (i386go32_frame_saved_pc): Removed.
7194 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7196 (i386_get_longjmp_target): New function.
7197 (default_struct_convention, pcc_struct_convention,
7198 reg_struct_convention, valid_conventions, struct_convention): New
7200 (i386_use_struct_convention): New function.
7201 (i386v4_sigtramp_saved_pc): Renamed to
7202 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7203 (i386_pc_in_sigtramp): New function.
7204 (i386_abi_names): Removed.
7205 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7206 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7208 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7209 i386_gdbarch_register_os_abi): Removed.
7210 (struct i386_abi_handler): Removed.
7211 (i386_abi_handler_list): Removed.
7212 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7214 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7215 i386_nw_init_abi): New functions.
7216 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7217 Use set_gdbarch_xxx() calls instead of relying on macros for a
7219 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7220 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7221 Register the various architecture variants defined in this file.
7223 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7225 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7226 (struct main_type): Remove arg_types member. Update comments for
7228 (TYPE_ARG_TYPES): Remove.
7229 (TYPE_FN_FIELD_ARGS): Update.
7230 (smash_to_method_type): Update prototype.
7232 * c-typeprint.c (cp_type_print_method_args): Take method type
7233 instead of argument list. Use new argument layout. Simplify.
7234 (c_type_print_args): Use new argument layout. Simplify.
7235 (c_type_print_base): Update call to cp_type_print_method_args.
7236 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7237 argument; use die->type instead. Update call to
7238 smash_to_method_type.
7239 (read_structure_scope): Update call to dwarf2_add_member_fn.
7240 * gdbtypes.c (allocate_stub_method): Update comment.
7241 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7242 Use new argument layout.
7243 (check_stub_method): Use new argument layout. Don't count
7244 void as an argument.
7245 (print_arg_types): Update comments. Use new argument layout.
7246 (recursive_dump_type): Don't print arg_types member.
7247 * hpread.c (hpread_read_struct_type): Use new argument layout.
7248 (fixup_class_method_type): Likewise.
7249 (hpread_type_lookup): Likewise.
7250 * stabsread.c (read_type): Update calls to read_args and
7251 smash_to_method_type.
7252 (read_args): Use new argument layout. Simplify.
7253 * valops.c (typecmp): Use new argument layout. Update parameters
7254 and comments. Simplify.
7255 (hand_function_call): Use new argument layout.
7256 (search_struct_method): Update call to typecmp.
7257 (find_overload_match): Use new argument layout.
7259 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7261 * NEWS: Mention multithreaded debug support for gdbserver.
7263 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7265 * MAINTAINERS: Mention NEWS.
7267 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7269 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7270 (struct mips_objfile_private, compare_pdr_entries): New.
7271 (non_heuristic_proc_desc): Read the ".pdr" section if it
7274 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7276 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7277 (arm_debug): New static variable.
7278 (_initialize_arm_tdep): Add ``set debug arm'' command.
7280 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7282 * Makefile.in (sim_arm_h): Define.
7283 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7284 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7285 (arm_register_sim_regno): New function, map an internal REGNUM
7286 onto a simulator register number.
7287 (arm_gdbarch_init): Set register_sim_regno.
7289 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7291 * MAINTAINERS: Add self.
7293 2002-06-11 Jim Blandy <jimb@redhat.com>
7295 * source.c (source_info): Mention whether the symtab has
7296 information about preprocessor macros.
7298 Call the command `info macro', not `show macro'.
7299 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7301 (_initialize_macrocmd): Register `info_macro_command' in
7302 `infolist', not `showlist'.
7304 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7306 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7307 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7308 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7309 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7310 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7312 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7313 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7314 (_initialize_mips_tdep): Remove dead code.
7315 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7316 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7317 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7318 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7319 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7320 MIPS_LAST_FP_ARG_REGNUM): Remove.
7322 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7324 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7325 (unwind_tmp_obstack_free, parse_frame_info)
7326 (update_context, cfi_read_fp, cfi_write_fp)
7327 (cfi_frame_chain, cfi_init_extra_frame_info)
7328 (cfi_virtual_frame_pointer): Use the above function.
7329 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7331 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7333 * v850-tdep.c (v850_type_is_scalar): New function.
7334 (v850_use_struct_convention): Match current gcc implementation
7335 as close as possible.
7336 (v850_push_arguments): Fix stack_offset handling. Don't write
7337 struct_addr into register. This is done by v850_store_struct_return.
7338 (v850_extract_return_value): Care for structs.
7339 (v850_store_return_value): Ditto.
7340 (v850_store_struct_return): Actually write address.
7342 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7344 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7345 without debug information too.
7347 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7349 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7350 Make multi-arch pure.
7351 * gdbarch.h, gdbarch.c: Re-generate.
7352 * arm-tdep.c (arm_print_float_info): Update.
7353 * arch-utils.h (default_print_float_info): Update.
7354 * arch-utils.c (default_print_float_info): Update.
7355 * infcmd.c (float_info): Update call.
7357 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7359 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7360 the front of the initialize list.
7362 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7364 * infrun.c (struct inferior_status): Replace fields
7365 selected_frame_address and selected_level with field
7367 (save_inferior_status): Update. Use get_frame_id.
7368 (struct restore_selected_frame_args): Delete.
7369 (restore_selected_frame): Update. Use frame_find_by_id.
7370 (restore_inferior_status): Update.
7372 * breakpoint.h (struct breakpoint): Change type of
7373 watchpoint_frame to frame_id.
7374 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7375 call to get_current_frame.
7376 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7378 (watchpoint_check): Use frame_find_by_id.
7380 * frame.h (record_selected_frame): Delete declaration.
7381 * stack.c (record_selected_frame): Delete function.
7383 * frame.h (struct frame_id): Define.
7384 (get_frame_id): Declare.
7385 (frame_find_by_id): Declare.
7386 * frame.c (frame_find_by_id): New function.
7387 (get_frame_id): New function.
7389 2002-06-10 Andrey Volkov <avolkov@transas.com>
7391 * ser-e7kpc.c: Fix duplicated define and call of
7392 _initialize_ser_e7000pc
7394 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7396 * signals/signals.c (target_signal_from_host): Fix #ifdef
7398 (do_target_signal_to_host): Likewise.
7400 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7402 * mips-tdep.c (mips_find_abi_section): New function.
7403 (mips_gdbarch_init): Call it.
7405 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7407 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7408 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7409 after Andrew's 2002-06-08 gdbarch change.
7411 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7413 * i386-linux-nat.c (suppy_gregset): Don't supply
7414 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7416 (fill_gregset): Don't fetch it under the same circumstances.
7418 2002-06-09 Andrew Cagney <cagney@redhat.com>
7420 * Makefile.in (callback_h): Define.
7421 (remote_sim_h): Update path to remote-sim.h.
7422 (remote-rdp.o): Add $(callback_h).
7423 (remote-sim.o): Use $(callback_h).
7424 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7425 * remote-rdp.c: Include "gdb/callback.h".
7427 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7429 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7430 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7432 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7434 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7435 * rdi-share/serpardr.c: Ditto.
7436 * rdi-share/unixcomm.c: Ditto.
7437 * rdi-share/serdrv.c: Ditto.
7438 * rdi-share/hostchan.h: Ditto.
7439 * rdi-share/hostchan.c: Ditto.
7440 * rdi-share/host.h: Ditto.
7441 * rdi-share/devsw.c: Ditto.
7443 * objfiles.h: Change type of obj_private to void pointer.
7444 * pa64solib.c: Update copyright. Don't include "assert.h", use
7445 strcmp instead of STREQ, use LONGEST, do not use PTR
7446 * somsolib.c: Ditto.
7448 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7449 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7450 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7452 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7454 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7455 (default_get_saved_register): Delete function.
7456 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7457 generic_unwind_get_saved_register.
7458 * gdbarch.h, gdbarch.c: Re-generate.
7460 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7462 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7463 generic_func_frame_chain_valid.
7464 * gdbarch.h, gdbarch.c: Re-generate.
7465 * blockframe.c (generic_func_frame_chain_valid): Only check
7466 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7467 passing FP to PC_IN_CALL_DUMMY.
7470 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7472 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7473 (register_gdbarch_data): Initialize init_p.
7474 (gdbarch_data): Initialize data pointer using the init function.
7475 (init_gdbarch_data): Delete function.
7476 (gdbarch_update_p): Update.
7477 (initialize_non_multiarch): Update.
7478 (struct gdbarch): Add field initialized_p.
7479 * gdbarch.h, gdbarch.c: Re-generate.
7481 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7483 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7484 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7485 better do the things actually here.
7486 * x86-64-tdep.c (x86_64_register_name2nr): New.
7487 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7488 (x86_64_gdbarch_init): Respect the above change.
7489 * x86-64-tdep.h (x86_64_register_name2nr)
7490 (x86_64_register_nr2name): Add prototypes.
7491 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7493 2002-06-06 Michael Snyder <msnyder@redhat.com>
7495 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7496 Delete extra braces and re-indent.
7497 (d10v_store_return_value): Char return values
7498 must be shifted over by one byte in R0.
7499 (d10v_extract_return_value): Delete extra braces, re-indent.
7501 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7503 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7504 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7505 (d10v_integer_to_address): Rewrite.
7506 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7507 the d10v specific functions which take care of converting to the
7510 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7512 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7513 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7515 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7517 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7519 * config/tm-linux.h: Ditto.
7520 * config/alpha/tm-alphalinux.h: Ditto.
7521 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7522 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7523 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7524 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7525 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7526 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7527 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7528 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7529 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7530 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7531 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7532 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7533 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7534 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7535 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7536 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7537 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7538 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7539 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7540 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7541 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7542 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7543 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7544 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7545 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7546 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7547 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7548 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7549 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7550 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7551 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7552 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7553 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7554 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7555 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7556 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7557 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7559 2002-05-04 Aidan Skinner <aidan@velvet.net>
7561 * ada-exp.tab.c: New file
7562 * ada-exp.y: New file
7563 * ada-lang.c: New file
7564 * ada-lang.h: New file
7565 * ada-lex.c: New file
7566 * ada-lex.l: New file
7567 * ada-tasks.c: New file
7568 * ada-typeprint.c: New file
7569 * ada-valprint.c: New file
7571 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7573 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7574 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7576 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7578 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7579 insetead of ppc-linux-tdep.o.
7580 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7581 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7583 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7585 2002-05-07 Christian Groessler <chris@groessler.org>
7586 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7587 bit register contents for little endian hosts.
7589 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7591 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7594 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7596 * gdbarch.h: Regenerate.
7598 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7600 * MAINTAINERS: Add everyone to write-after-approval list.
7602 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7604 * stack.c (frame_info): Use frame_register_unwind instead of
7605 saved_regs. Mention when the SP is on the stack or in a register.
7607 * frame.h (frame_register_unwind_ftype): Define. Document.
7608 (struct frame_info): Add field register_unwind and
7609 register_unwind_cache.
7610 (frame_register_unwind): Declare.
7611 (generic_unwind_get_saved_register): Declare.
7613 * frame.c (frame_register_unwind): New function.
7614 (generic_unwind_get_saved_register): New function.
7616 * blockframe.c (generic_call_dummy_register_unwind): New function.
7617 (frame_saved_regs_register_unwind): New function.
7618 (set_unwind_by_pc): New function.
7619 (create_new_frame): New function.
7620 (get_prev_frame): New function.
7622 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7624 * a29k-share/: Delete directory.
7625 * remote-vx29k.c: Delete file.
7627 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7629 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7630 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7632 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7634 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7635 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7638 (sparcnbsd-tdep.o): New dependency lists.
7639 * NEWS: Note new UltraSPARC NetBSD native configuration.
7640 * configure.host (sparc64-*-netbsd*): New host.
7641 * configure.tgt (sparc-*-netbsdelf*)
7642 (sparc-*-netbsd*): Set gdb_target to nbsd.
7643 (sparc64-*-netbsd*): New target.
7644 * sparc64nbsd-nat.c: New file.
7645 * sparcnbsd-nat.c: New file.
7646 * sparcnbsd-tdep.c: New file.
7647 * sparcnbsd-tdep.h: New file.
7648 * config/sparc/nbsd.mt: New file.
7649 * config/sparc/nbsd64.mh: New file.
7650 * config/sparc/nbsd64.mt: New file.
7651 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7652 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7654 * config/sparc/nbsdaout.mt: Remove.
7655 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7656 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7658 * config/sparc/nbsdelf.mt: Remove.
7659 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7660 sparc-nat.c compatiblity defines.
7661 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7662 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7663 * config/sparc/tm-nbsd64.h: New file.
7664 * config/sparc/tm-nbsdaout.h: Remove.
7665 * config/sparc/xm-nbsd.h: Remove.
7667 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7669 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7670 * sparc-tdep.c: Include osabi.h.
7671 (gdbarch_tdep): Add osabi member.
7672 (_initialize_sparc_tdep): Use gdbarch_register.
7673 (sparc_gdbarch_init): Use generic OS ABI framework.
7674 (sparc_dump_tdep): New function.
7676 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7678 * corefile.c (do_captured_read_memory_integer): Return non-zero
7680 (safe_read_memory_integer): Copy result of memory read when
7681 status is non-zero. Also, add comments.
7683 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7685 * Makefile.in (ppc_tdep_h): Define.
7688 (rs6000-tdep.o): Use $(ppc_tdep_h).
7691 (ppcnbsd-tdep.o): New dependency lists.
7692 * ppc-tdep.h: Use generic OS ABI framework.
7693 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7694 (ppc_linux_init_abi): New functions.
7695 (ppc_sysv_abi_broken_use_struct_convention)
7696 (ppc_sysv_abi_use_struct_convention)
7697 (ppc_sysv_abi_push_arguments): Move to...
7698 * ppc-sysv-tdep.c: ...here.
7699 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7700 * rs6000-tdep.c (process_note_abi_tag_sections)
7701 (get_elfosabi): Remove.
7702 (rs6000_gdbarch_init): Use generic OS ABI framework.
7703 (rs6000_dump_tdep): New function.
7704 (_initialize_rs6000_tdep): Use gdbarch_register.
7705 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7706 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7707 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7708 of ppc-linux-tdep.o.
7709 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7710 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7711 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7712 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7713 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7714 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7716 2002-05-29 Jim Blandy <jimb@redhat.com>
7718 * macroscope.c (default_macro_scope): Put `void' in empty argument
7721 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7723 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7724 * arch-utils.c: Include "sim-regno.h".
7725 * gdbarch.sh: Don't include "sim-regno.h".
7726 * gdbarch.h, gdbarch.c: Regenerate.
7727 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7729 * arch-utils.h (legacy_register_sim_regno): To here.
7730 * remote-sim.c (legacy_register_sim_regno): Move function from
7732 * arch-utils.c (legacy_register_sim_regno): To here.
7734 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7736 * sim-regno.h: New file.
7737 * Makefile.in (sim_regno_h): Define.
7738 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7739 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7740 (legacy_register_sim_regno): New function.
7741 (one2one_register_sim_regno): New function.
7742 (gdbsim_fetch_register): Rewrite.
7743 (gdbsim_store_register): Only store a register when
7744 REGISTER_SIM_REGNO is valid.
7745 * d10v-tdep.c: Include "sim-regno.h".
7746 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7747 (d10v_ts3_register_sim_regno): Ditto.
7748 * gdbarch.sh: Include "sim-regno.h".
7749 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7750 * gdbarch.h, gdbarch.c: Regenerate.
7751 * arch-utils.h (default_register_sim_regno): Delete declaration.
7752 * arch-utils.c (default_register_sim_regno): Delete function.
7754 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7756 * ppcnbsd-nat.c: Rewrite.
7757 * ppcnbsd-tdep.c: New file.
7758 * ppcnbsd-tdep.h: New file.
7759 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7760 solib.o, and solib-svr4.o.
7761 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7762 nbsd-tdep.o, and corelow.o.
7764 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7766 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7767 `tr' and `sed'. Mention that `broken' targets are not expected to
7770 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7772 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7773 Let PC point right after the prologue before looking up symbols.
7775 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7777 * i386-tdep.c (i386_register_virtual_type): Return
7778 builtin_type_vec128i for SSE registers.
7780 * gdbtypes.h (builtin_type_vec128i): Declare.
7782 * gdbtypes.c (build_builtin_type_vec128i): New function.
7783 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7784 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7785 (build_gdbtypes): Initialize new builtin vector types.
7786 (_initialize_gdbtypes): Register new vector types with gdbarch.
7788 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7790 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7791 since it has been multi-arch'd.
7792 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7793 Move Alpha and VAX multi-arch news entries to same section
7794 as other multi-arch news.
7796 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7798 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7799 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7800 static. Rename some register numbers to put them in ns32k-tdep
7802 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7803 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7805 (_initialize_ns32k_tdep): Use gdbarch_register.
7806 * ns32k-tdep.h: New file.
7807 * ns32knbsd-tdep.c: New file.
7808 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7809 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7810 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7811 REGISTER_BYTES, REGISTER_BYTE): Remove.
7812 * config/ns32k/tm-ns32k.h: New file.
7813 * config/ns32k/tm-umax.h: Remove.
7815 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7817 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7818 ns32k_store_struct_return, ns32k_extract_return_value,
7819 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7821 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7822 ns32k_saved_pc_after_call.
7823 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7824 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7825 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7826 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7827 ns32k_extract_struct_value_address.
7829 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7831 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7832 ns32k_fix_call_dummy): New.
7833 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7834 ns32k_call_dummy_words.
7835 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7836 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7837 CALL_DUMMY_NARGS): Remove.
7838 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7840 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7842 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7843 ns32k_frame_saved_pc, ns32k_frame_args_address,
7844 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7845 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7846 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7847 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7848 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7849 (BREAKPOINT): Remove..
7850 (FRAME_CHAIN): Define as ns32k_frame_chain.
7851 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7852 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7853 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7854 (FRAME_FIND_SAVED_REGS): Remove.
7855 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7856 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7857 (POP_FRAME): Define as ns32k_pop_frame.
7859 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7861 * ns32k-tdep.c (ns32k_register_byte_32082,
7862 ns32k_register_byte_32382, ns32k_register_raw_size,
7863 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7865 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7866 ns32k_register_byte_32382.
7867 * config/ns32k/tm-umax.h: Update copyright years.
7868 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7869 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7870 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7871 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7872 (ns32k_get_enter_addr): Fix prototype.
7874 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7876 * ns32k-tdep.c: Update copyright years.
7877 (ns32k_register_name_32082): New function.
7878 (ns32k_register_name_32382): Ditto.
7879 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7880 (REGISTER_NAME): Define as ns32k_register_name_32382.
7881 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7882 (REGISTER_NAME): Define as ns32k_register_name_32082.
7884 2002-05-24 Jim Blandy <jimb@redhat.com>
7886 * dwarf2read.c (free_line_header): Use xfree, not free.
7888 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7890 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7891 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7893 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7895 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7897 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7899 From Ross Alexander at NEC Europe:
7900 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7902 2002-05-23 Michael Snyder <msnyder@redhat.com>
7904 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7905 for input, rather than parse_and_eval_address.
7907 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7909 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7910 * Makefile.in (sim_d10v_h): Update definition.
7912 2002-05-24 Andrew Cagney <cagney@redhat.com>
7914 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7915 change `2002-05-22 Michael Snyder' below.
7916 (d10v_push_arguments): Ditto.
7917 (d10v_extract_return_value): Ditto.
7919 2002-05-23 Jim Blandy <jimb@redhat.com>
7921 * macrotab.c (check_for_redefinition): Don't complain if the new
7922 definition is the same as the previous one. Take more arguments
7923 to allow the comparison.
7924 (macro_define_object, macro_define_function): Pass more arguments
7925 to check_for_redefinition.
7927 2002-05-22 Michael Snyder <msnyder@redhat.com>
7929 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7930 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7931 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7932 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7933 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7934 Add a temp variable to save a call (and a memory read).
7935 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7936 if possible (so that PC_IN_CALL_DUMMY will work).
7938 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7940 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7942 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7944 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7946 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7947 (dwarf2_build_frame_info): Add offset to fde->initial_location
7948 so that frames of shared libraries are mapped correctly.
7949 (execute_stack_op): Change type of 'result' from ULONGEST to
7952 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7954 * config/alpha/tm-nbsd.h: Include solib.h.
7956 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7958 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7959 assumptions about the host's byte order.
7961 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7963 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7965 * alphanbsd-tdep.c: Include solib-svr4.h.
7966 * shnbsd-tdep.c: Ditto.
7968 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7970 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7971 nbsd-tdep.h to dependency list.
7972 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7973 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7974 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7975 nbsdaout.mh and nbsdelf.mh consistently.
7976 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7977 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7978 nbsdaout.mt and nbsdelf.mh consistently.
7979 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7980 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7981 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7982 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7983 a.out shared library stuff from here...
7984 * config/nm-nbsdaout.h: ...to here.
7985 * config/tm-nbsd.h: Remove.
7986 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7987 * config/arm/nbsd.mh: Remove.
7988 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7990 * config/arm/nbsdaout.mh: New file.
7991 * config/arm/nbsdelf.mh: New file.
7992 * config/arm/nm-nbsdaout.h: New file.
7993 * config/i386/nbsd.mh: Remove.
7994 * config/i386/nbsd.mt: Remove.
7995 * config/i386/nbsdaout.mh: New file.
7996 * config/i386/nbsdaout.mt: New file.
7997 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7998 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7999 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8000 i386_register_u_addr): Remove.
8001 * config/i386/nm-nbsdaout.h: New file.
8002 * config/i386/nm-nbsdelf.h: Remove.
8003 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8004 (USE_STRUCT_CONVENTION): Remove.
8005 * config/i386/tm-nbsdaout.h: New file.
8006 * config/i386/tm-nbsdelf.h: Remove.
8007 * config/m68k/nbsd.mh: Remove.
8008 * config/m68k/nbsd.mt: Remove.
8009 * config/m68k/nbsdaout.mh: New file.
8010 * config/m68k/nbsdaout.mt: New file.
8011 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8012 * config/m68k/nm-nbsdaout.h: New file.
8013 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8014 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8015 * config/ns32k/nbsd.mh: Remove.
8016 * config/ns32k/nbsd.mt: Remove.
8017 * config/ns32k/nbsdaout.mh: New file.
8018 * config/ns32k/nbsdaout.mt: New file.
8019 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8020 * config/ns32k/nm-nbsdaout.h: New file.
8021 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8022 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8023 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8024 (SVR4_SHARED_LIBS): Remove.
8025 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8026 * config/sparc/nbsd.mh: Remove.
8027 * config/sparc/nbsd.mt: Remove.
8028 * config/sparc/nbsdaout.mh: New file.
8029 * config/sparc/nbsdaout.mt: New file.
8030 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8031 * config/sparc/nbsdelf.mt: New file.
8032 * config/sparc/nm-nbsdaout.h: New file.
8033 * config/sparc/nm-nbsdelf.h: Remove.
8034 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8035 * config/sparc/tm-nbsdaout.h: New file.
8037 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8039 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8041 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8043 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8045 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8047 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8049 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8051 * NEWS: Note new MIPS NetBSD native configuration.
8052 * configure.host (mips*-*-netbsd*): New host.
8053 * configure.tgt (mips*-*-netbsd*): New target.
8054 * mipsnbsd-nat.c: New file.
8055 * mipsnbsd-tdep.c: New file.
8056 * mipsnbsd-tdep.h: New file.
8057 * config/mips/nbsd.mh: New file.
8058 * config/mips/nbsd.mt: New file.
8059 * config/mips/nm-nbsd.h: New file.
8060 * config/mips/tm-nbsd.h: New file.
8062 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8064 * Makefile.in (SFILES): Add osabi.c.
8065 (COMMON_OBS): Add osabi.o.
8066 (osabi.o): New dependency list.
8067 * osabi.c: New file.
8068 * osabi.h: New file.
8069 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8071 * Makefile.in (alpha_tdep_h): Define and use instead of
8073 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8074 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8076 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8077 * alpha-tdep.h: Include osabi.h.
8078 (alpha_abi): Remove.
8079 (gdbarch_tdep): Use generic OS ABI framework.
8080 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8081 gdbarch_register_osabi.
8082 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8083 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8084 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8086 * Makefile.in (sh_tdep_h): Add osabi.h.
8087 * sh-tdep.h (sh_osabi): Remove.
8088 (gdbarch_tdep): Use generic OS ABI framework.
8089 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8090 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8091 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8092 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8094 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8095 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8096 gdbarch_register_osabi.
8097 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8098 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8099 (get_elfosabi): Rename to...
8100 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8101 ABI framework support routines.
8102 (arm_gdbarch_init): Use generic OS ABI framework.
8103 (arm_dump_tdep): Likewise.
8104 (_initialize_arm_tdep): Likewise.
8105 * arm-tdep.h: Include osabi.h.
8107 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8109 (arm_gdbarch_register_os_abi): Remove prototype.
8110 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8111 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8113 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8114 * mips-tdep.c: Include osabi.h.
8115 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8118 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8120 * h8300-tdep.c: Fix formatting.
8122 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8124 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8125 printing vector registers.
8127 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8129 From Fernando Nasser:
8130 * remote.c (remote_async_open_1): Re-throw the exception when the
8132 (remote_cisco_open): Ditto.
8133 (remote_open_1): Ditto.
8135 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8137 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8138 (remote_start_remote): Add uiout parameter. Pass through to
8139 remote_start_remote_dummy.
8140 (remote_open_1): Use catch_exception instead of catch_errors.
8141 (remote_async_open_1): Ditto.
8142 (remote_cisco_open): Ditto.
8144 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8146 * remote.c (remote_start_remote): Replace PTR with void pointer.
8147 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8150 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8152 * gdb_indent.sh: Allow the script to be run in the sim directory.
8154 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8156 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8157 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8159 * corelow.c (core_open): Only call set_gdbarch_from_file if
8162 2002-05-17 Andrey Volkov <avolkov@transas.com>
8164 * h8300-tdep.c: Add support of EXR register
8165 * config/h8300/tm-h8300.h: Ditto.
8167 2002-05-17 Andrey Volkov <avolkov@transas.com>
8169 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8171 2002-05-17 Andrey Volkov <avolkov@transas.com>
8173 * h8300-tdep.c: Change literal regnums to REGNO.
8175 2002-05-17 Jim Blandy <jimb@redhat.com>
8177 * NEWS: Note addition of macro support.
8179 Expand preprocessor macros in C expressions.
8180 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8181 (scan_macro_expansion, scanning_macro_expansion,
8182 finished_macro_expansion): New function declarations.
8183 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8184 variable declarations.
8185 * parser-defs.h (expression_context_pc): New declaration.
8186 * parse.c (expression_context_pc): New variable.
8187 (parse_exp_1): Set expression_context_pc, as well as
8188 expression_context_block.
8189 * c-exp.y (yylex): If we're not already reading the result of a
8190 macro expansion, try to macro-expand the next token. When we're
8191 done scanning a macro expansion, switch back to the mainline text.
8192 Commas and `if's in a macro's expansion don't terminate the input.
8193 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8194 (macro_original_text, macro_expanded_text,
8195 expression_macro_lookup_func, expression_macro_lookup_baton): New
8197 (scan_macro_expansion, scanning_macro_expansion,
8198 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8199 c_preprocess_and_parse): New functions.
8200 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8201 c_preprocess_and_parse, instead of c_parse.
8202 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8203 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8205 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8207 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8208 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8209 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8211 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8213 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8215 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8217 * Makefile.in (sh_tdep_h): Define and use.
8218 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8219 register enum): Move to...
8220 * * sh-tdep.h: ...here.
8221 * sh-tdep.c: Include sh-tdep.h.
8222 * sh3-rom.c: Likewise.
8223 * shnbsd-tdep.c: Likewise.
8225 2002-05-16 Michael Snyder <msnyder@redhat.com>
8227 * arm-tdep.c: Spelling fix in comment.
8229 2002-05-16 Jim Blandy <jimb@redhat.com>
8231 Add commands for manually expanding macros and showing their
8233 * macrocmd.c, macroscope.c, macroscope.h: New files.
8234 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8235 (macroscope_h): New variable.
8236 (HFILES_NO_SRCDIR): Add macroscope.h.
8237 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8238 (macroscope.o, macrocmd.o): New rules.
8240 Teach the Dwarf 2 reader to read macro information.
8241 * dwarf2read.c: #include "macrotab.h".
8242 (dwarf_macinfo_buffer): New variable.
8243 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8245 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8246 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8247 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8248 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8249 dwarf2_macro_spaces_in_definition): New complaints.
8250 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8251 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8252 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8253 the partial symbol table.
8254 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8255 from what's recorded in the partial symbol table.
8256 (read_file_scope): If the compilation unit has a
8257 `DW_AT_macro_info' attribute, read its macro information.
8258 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8260 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8263 * ser-tcp.c: Don't include <netinet/udp.h>.
8265 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8267 * MAINTAINERS: Update my email address.
8269 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8271 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8272 include file of the same name.
8274 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8276 * configure.tgt: Mark v850 as multi-arched.
8277 * config/v850/tm-v850.h: Remove file.
8278 * config/v850/v850.mt: Eliminate TM_FILE.
8280 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8282 * v850-tdep.c: Full multi-arch.
8283 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8284 Define GDB_MULTI_ARCH to 2.
8286 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8288 * p-exp.y (current_type): New static variable.
8289 Carries the type of the expression at the position that is parsed.
8290 (push_current_type, pop_current_type): Two new functions. Used
8291 to store/restore current_type in expression on specific tokens.
8292 (search_field): New static variable. Set to one after parsing a point
8293 as at that point only a FIELDNAME token should be searched.
8294 (FIELDNAME): New token. After a point only a token belonging to
8295 current_type type definition is allowed.
8296 (all over token rules): reset and change current_type according
8298 (exp '[' rule): insert implicit array index field if
8299 exp is a pascal string type.
8301 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8303 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8304 frame info. Use frame_info's saved_regs instead of matching member
8305 in extra_frame_info throughout.
8306 (v850_frame_init_saved_regs): New function.
8307 (v850_init_extra_frame_info): Move most functionality into
8308 v850_frame_init_saved_regs().
8309 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8310 (v850_frame_find_saved_regs): Remove declaration.
8311 (FRAME_FIND_SAVED_REGS): Remove definition.
8312 (v850_frame_init_saved_regs): Add declaration.
8313 (FRAME_INIT_SAVED_REGS): Add definition.
8315 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8317 * v850-tdep.c: Begin multi-arch'ing v850.
8318 (v850_target_architecture_hook): Remove function.
8319 (v850_gdbarch_init): New function. Add code previously in
8320 v850_target_architecture_hook().
8321 (_initialize_v850_tdep): Don't set target_architecture_hook.
8322 Call register_gdbarch_init() instead.
8324 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8326 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8327 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8328 (fixup_class_method_type): Likewise.
8330 2002-05-15 Jim Blandy <jimb@redhat.com>
8332 Add macro structures to GDB's symbol tables. Nobody puts anything
8334 * symtab.h (struct symtab): New member: `macro_table'.
8335 * buildsym.h (pending_macros): New global variable.
8336 * buildsym.c: #include "macrotab.h".
8337 (buildsym_init): Initialize `pending_macros'.
8338 (end_symtab): If we found macro information while reading a CU's
8339 debugging info, do build a symtab structure for it. Make the
8340 symtab point to the macro information, and clear the
8341 `pending_macros' pointer which held it while we were reading the
8343 (really_free_pendings): Free any pending macro table.
8344 * objfiles.h (struct objfile): New member: `macro_cache'.
8345 * objfiles.c (allocate_objfile): Set allocate and free functions
8346 for the macro cache's objstack.
8347 (free_objfile): Empty the macro cache's obstack.
8348 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8349 set new allocate and free functions for it.
8350 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8351 free functions for the macro cache's objstack. (Why is this
8352 function building its own objfile?)
8353 * symmisc.c (print_objfile_statistics): Print statistics on the
8355 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8357 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8359 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8360 (REGISTER_U_ADDR): Delete definition.
8361 (arm_register_u_addr): Delete declaration.
8363 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8365 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8366 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8368 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8370 * regcache.c (register_valid): Revise comments refering to "Not
8371 available" and "unavailable".
8372 * frame.c (frame_register_read): Ditto.
8373 * findvar.c (value_of_register): Ditto.
8375 2002-05-15 Andrew Cagney <cagney@redhat.com>
8377 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8378 (remote-sim.o): Update dependencies.
8379 (d10v-tdep.o): Specify dependencies.
8380 (sim_d10v_h): Define.
8382 2002-05-14 Jim Blandy <jimb@redhat.com>
8384 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8385 * macrotab.c (macro_lookup_inclusion, find_definition,
8386 new_macro_table): Same.
8388 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8389 not `! strcmp ()'. This is a dubious improvement.
8390 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8392 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8393 although it's not necessary, to avoid a warning.
8395 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8397 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8398 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8399 TYPE_INSTANCE_FLAGS.
8400 (struct main_type): New.
8401 (struct type): Move most members to struct main_type. Change
8402 cv_type and as_type to new type_chain member. Add instance_flags.
8403 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8404 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8405 (finish_cv_type): Remove prototype.
8406 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8408 (alloc_type_instance): New function.
8409 (smash_type): New function.
8410 (make_pointer_type, make_reference_type, make_function_type)
8411 (smash_to_member_type, smash_to_method_type): Call smash_type.
8412 (make_qualified_type): New function.
8413 (make_type_with_address_space): Call make_qualified_type.
8414 (make_cv_type): Likewise.
8415 (finish_cv_type): Remove unnecessary function.
8416 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8417 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8418 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8419 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8420 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8421 * hpread.c (hpread_read_struct_type): Likewise.
8422 * stabsread.c (read_struct_type): Likewise.
8424 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8426 * configure.tgt: Add a catch all sh* target, for cases like
8427 sh[2,3,4]-elf and sh-hms.
8429 2002-05-14 Keith Seitz <keiths@redhat.com>
8431 * event-loop.c (create_file_handler): Don't do anything but
8432 update data when we are given a fd which we are already
8435 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8437 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8438 (update_context): Use __func__ in warnings.
8440 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8442 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8443 and tcp_close to net_open and net_close.
8444 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8445 using UDP if requested. Don't try to disable Nagle on UDP
8447 * remote.c (remote_serial_open): New function. Warn about UDP.
8448 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8450 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8452 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8454 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8456 * configure.tgt: Remove sh-hms target.
8457 * MAINTAINERS: Don't list sh-hms as a separate target.
8459 2002-05-13 Jim Blandy <jimb@redhat.com>
8461 Add first preprocessor macro-expansion files.
8462 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8463 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8464 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8465 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8466 (COMMON_OBS): Add macrotab.o, macroexp.o.
8467 (macroexp.o, macrotab.o): New rules.
8469 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8471 * config/m88k/tm-m88k.h: Update copyright.
8472 (m88k_target_write_pc): Declare
8473 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8474 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8475 (SHIFT_INST_REGS): Update definition.
8476 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8477 using old definition of TARGET_WRITE_PC.
8478 * regcache.c (generic_target_write_pc): Delete code handling
8480 * gdbarch.sh (NNPC_REGNUM): Delete.
8481 * gdbarch.h, gdbarch.c: Regenerate.
8483 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8485 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8488 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8490 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8491 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8492 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8494 * c-typeprint.c (cp_type_print_method_args): Likewise.
8495 (c_type_print_args): Likewise.
8496 * d10v-tdep.c (d10v_push_arguments): Likewise.
8497 (d10v_extract_return_value): Likewise.
8498 * expprint.c (print_subexp): Likewise.
8499 * gdbtypes.c (lookup_primitive_typename): Likewise.
8500 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8501 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8502 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8503 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8504 (TYPE_VECTOR): Likewise.
8505 * hpread.c (hpread_read_struct_type)
8506 (fix_static_member_physnames, fixup_class_method_type)
8507 (hpread_type_lookup): Likewise.
8508 * mdebugread.c (parse_symbol, parse_type): Likewise.
8509 * p-lang.c (is_pascal_string_type): Likewise.
8510 * valops.c (hand_function_call): Likewise.
8511 * x86-64-tdep.c (classify_argument): Likewise.
8513 * hpread.c (hpread_read_function_type)
8514 (hpread_read_doc_function_type): Call replace_type.
8515 * dstread.c (create_new_type): Delete.
8516 (decode_dst_structure, process_dst_function): Call alloc_type.
8517 Use type access macros.
8519 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8521 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8522 the're not supported by the current architecture.
8523 (i387_fill_fxsave): Likewise.
8525 2002-05-12 Fred Fish <fnf@redhat.com>
8527 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8528 sect_index_xxx members to index the first slot in section_offsets
8529 if all of the section_offsets are zero.
8531 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8533 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8534 checked in with last change.
8536 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8538 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8539 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8542 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8544 * Makefile.in: Update dependencies.
8546 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8548 * language.c (local_hex_string_custom): Simplify. Do not depend
8549 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8551 * memattr.c (mem_info_command): Replace calls to
8552 longest_local_hex_string and longest_local_hex_string_custom.
8553 * buildsym.c (make_blockvector): Ditto.
8554 * solib.c (info_sharedlibrary_command): Ditto.
8555 * tracepoint.c (tracepoints_info): Ditto.
8556 * symtab.c (print_msymbol_info): Ditto.
8558 * language.c (local_hex_string): Delete.
8559 (local_hex_string_custom): Delete.
8560 (longest_local_hex_string): Rename to local_hex_string.
8561 (longest_local_hex_string_custom): Rename to
8562 local_hex_string_custom.
8563 * language.h (local_hex_string): Change parameter type to LONGEST.
8564 (local_hex_string_custom): Ditto.
8565 (longest_local_hex_string): Delete declaration.
8566 (longest_local_hex_string_custom): Ditto.
8568 * solib.c: Update copyright.
8569 * memattr.c: Update copyright.
8571 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8573 * arch-utils.h (legacy_register_to_value): Declare.
8574 (legacy_value_to_register): Declare.
8575 (legacy_convert_register_p): Declare.
8576 * arch-utils.c (legacy_register_to_value): New function.
8577 (legacy_value_to_register): New function.
8578 (legacy_convert_register_p): New function.
8580 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8581 (VALUE_TO_REGISTER): Define.
8582 (CONVERT_REGISTER_P): Define.
8583 * gdbarch.h, gdbarch.c: Regenerate.
8585 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8587 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8590 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8591 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8593 * Makefile.in: Update dependencies for valops.c.
8594 * valops.c: Include "gdb_assert.h".
8595 (typecmp): Skip THIS parameter to methods.
8596 (find_method_list): Remove static_memfuncp argument,
8597 update callers. Check for stub methods.
8598 (find_value_oload_method_list): Don't set *static_memfuncp.
8599 (find_overload_match): Don't check for stub methods. Assert
8600 that methods are not stubbed. Handle static methods.
8601 (value_find_oload_method_list): Remove static_memfuncp argument.
8602 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8603 to the argument list for static stub methods.
8604 * value.h (value_find_oload_method_list): Update prototype.
8606 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8608 * arch-utils.h (generic_register_size): Declare.
8609 (generic_register_raw_size, generic_register_virtual_size): Delete
8611 * arch-utils.c (generic_register_raw_size): Delete.
8612 (generic_register_size): New function.
8613 (generic_register_virtual_size): Delete.
8615 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8616 default generic_register_size.
8617 * gdbarch.h, gdbarch.c: Re-generate.
8619 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8620 register_virtual_size.
8621 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8622 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8624 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8626 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8627 * gdbarch.h, gdbarch.c: Regenerate.
8628 * gnu-v3-abi.c: Update copyright.
8629 (vtable_address_point_offset): Update.
8630 (gnuv3_rtti_type): Update.
8631 (gnuv3_baseclass_offset): Update.
8632 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8633 (init_fetch_link_map_offsets): Update.
8634 * remote.c (get_remote_state): Update.
8636 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8638 * TODO: Remove value_headof/value_from_vtable_info comment.
8639 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8640 * values.c (value_headof, value_from_vtable_info): Delete.
8641 * value.h (value_from_vtable_info): Delete prototype.
8643 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8645 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8646 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8648 (gdb_assert_h): Define.
8649 (gdb_wait_h): Define.
8650 (gdb_regex_h): Define.
8652 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8654 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8655 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8657 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8659 * nbsd-tdep.c: Fix comment.
8661 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8663 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8664 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8665 (nbsd-tdep.o): New dependency list.
8666 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8668 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8669 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8670 * nbsd-tdep.c: New file.
8671 * nbsd-tdep.h: New file.
8672 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8674 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8675 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8676 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8677 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8679 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8681 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8682 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8683 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8684 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8685 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8686 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8688 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8690 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8691 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8692 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8693 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8694 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8695 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8696 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8698 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8700 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8701 fetch_elfcore_registers to...
8702 * i386nbsd-tdep.c: ...here.
8703 (i386nbsd_use_struct_convention): Rename to...
8704 (i386nbsd_aout_use_struct_convention): ...this.
8705 (i386nbsd_supply_reg): New function.
8706 (i386nbsd_fill_reg): New function.
8707 (fetch_core_registers): Use i386nbsd_supply_reg.
8708 (fetch_elfcore_registers): Likewise.
8709 (_initialize_i386nbsd_tdep): New function.
8710 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8711 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8712 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8713 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8714 (i386nbsd_aout_use_struct_convention): ...this.
8716 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8718 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8719 (store_inferior_registers): Use shnbsd_fill_reg.
8720 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8721 sh_nbsd_supply_register): Collapse into...
8722 (shnbsd_supply_reg): ...this.
8723 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8724 (shnbsd_fill_reg): ...this.
8725 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8726 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8727 (fetch_core_registers): Use shnbsd_supply_reg.
8728 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8729 (sh_nbsd_core_fns): Rename to...
8730 (shnbsd_core_fns): ...this.
8731 (sh_nbsd_elfcore_fns): Rename to...
8732 (shnbsd_elfcore_fns): ...this.
8733 (sh_nbsd_init_abi): Rename to...
8734 (shnbsd_init_abi): ...this.
8735 (_initialize_sh_nbsd_tdep): Rename to...
8736 (_initialize_shnbsd_tdep): ...this.
8737 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8738 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8739 sh_nbsd_fill_register): Remove prototypes.
8740 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8742 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8744 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8745 (i387-nat.o): Delete dependency list.
8746 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8747 (x86-64-linux-nat.o): Likewise.
8748 * i387-nat.c: Delete file, moving contents to...
8749 * i387-tdep.c: ...here.
8750 * i387-nat.h: Rename...
8751 * i387-tdep.h: ...to this.
8752 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8753 * i386-linux-nat.c: Likewise.
8754 * i386bsd-nat.c: Likewise.
8755 * i386gnu-nat.c: Likewise.
8756 * i386nbsd-nat.c: Likewise.
8757 * i386v4-nat.c: Likewise.
8758 * x86-64-linux-nat.c: Likewise.
8759 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8760 * config/i386/go32.mh (NATDEPFILES): Likewise.
8761 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8762 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8763 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8764 * config/i386/linux.mh (NATDEPFILES): Likewise.
8765 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8766 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8767 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8768 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8770 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8772 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8773 (alphanbsd-nat.o): Remove dependency list.
8774 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8775 * alphanbsd-nat.c: Delete. Contents moved to...
8776 * alphanbsd-tdep.c: ...here.
8777 (_initialize_alphanbsd_tdep): Register core functions.
8778 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8780 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8782 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8783 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8784 (alphanbsd-nat.o): Likewise.
8785 (alphabsd-tdep.o): New dependency list.
8786 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8787 (fill_gregset): Use alphabsd_fill_reg.
8788 (supply_fpregset): Use alphabsd_supply_fpreg.
8789 (fill_fpregset): Use alphabsd_fill_fpreg.
8790 (fetch_inferior_registers): Use struct reg and struct fpreg
8791 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8792 and alphabsd_supply_fpreg.
8793 (store_inferior_registers): Use struct reg and struct fpreg
8794 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8795 and alphabsd_fill_fpreg.
8796 * alphabsd-tdep.c: New file.
8797 * alphabsd-tdep.h: New file.
8798 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8799 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8800 alphabsd_supply_fpreg.
8801 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8802 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8804 2002-05-11 Eric Christopher <echristo@redhat.com>
8806 * mips-tdep.c (mips_double_register_type): Fix thinko.
8807 (mips_single_register_type): Ditto.
8808 * MAINTAINERS: Add self.
8810 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8812 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8813 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8814 right thing on architectures with different endianness and/or
8817 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8819 From Christian Limpach <chris@Pin.LU>
8820 * configure.in: Change sed expression which comments out
8821 NATDEPFILES to also comment out continuation lines.
8822 * configure: Regenerate.
8824 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8826 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8829 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8831 * sh-tdep.c: Include correct file.
8833 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8835 New support for sh64-elf (sh5) target.
8837 * configure.tgt: For sh64-elf target, default to sh-elf.
8839 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8840 (struct gdbarch_tdep): Add new fields for new registers and ABI
8843 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8844 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8845 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8846 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8847 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8848 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8849 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8850 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8851 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8852 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8853 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8854 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8855 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8856 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8857 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8858 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8859 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8860 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8861 sign_extend, sh64_nofp_frame_init_saved_regs,
8862 sh64_init_extra_frame_info, sh64_get_saved_register,
8863 sh64_extract_struct_value_address, sh64_pop_frame,
8864 sh64_push_arguments, sh64_extract_return_value,
8865 sh64_store_return_value, sh64_show_media_regs,
8866 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8867 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8868 sh_sh64_register_virtual_type,
8869 sh_sh64_register_convert_to_virtual,
8870 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8871 sh64_register_read, sh64_pseudo_register_write,
8872 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8873 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8874 sh64_do_pseudo_register, sh_compact_do_registers_info,
8875 sh64_do_registers_info, sh_gdbarch_init): New functions.
8877 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8879 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8881 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8883 * linespec.c (decode_line_1): Check for a double quote after
8884 a filename correctly.
8886 2002-05-10 Jim Blandy <jimb@redhat.com>
8888 Properly track the size of the current objfile's .debug_line section.
8889 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8890 (DWARF_LINE_SIZE): New macro.
8891 (dwarf2_build_psymtabs_hard): Record the line section's size in
8892 the partial symbol table.
8893 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8896 2002-05-10 Petr Sorfa <petrs@caldera.com>
8898 * ia64-tdep.c: Handle breakpoints on L instruction type
8899 in MLX instruction bundle by moving the breakpoint to
8900 the third slot (X instruction type) as L holds only data.
8902 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8904 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8905 (process_one_symbol): Complain about discarding local symbols
8906 due to a misplaced N_LBRAC entry.
8908 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8910 From Daniel Berlin <dan@cgsoftware.com>
8911 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8912 decrease the depth we are at, in the case of templates.
8914 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8916 * mips-tdep.c (mips_float_register_type): New function.
8917 (mips_double_register_type): New function.
8918 (mips_print_register): Use them.
8919 (do_fp_register_row): Likewise.
8921 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8923 * signals/signals.c (signals): Remove conditional compilation around
8924 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8925 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8927 2002-05-09 Michael Snyder <msnyder@redhat.com>
8929 * remote-rdp.c (remote_rdp_can_run): Remove.
8931 2002-05-09 Tom Tromey <tromey@redhat.com>
8933 * jv-valprint.c (java_val_print): Handle `char' as a special case
8936 2002-05-09 Michael Snyder <msnyder@redhat.com>
8938 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8939 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8940 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8941 str r(0123),[sp,#nn].
8942 (arm_skip_prologue): Ditto. Also make disassembly
8943 order-independent by placing it in a loop.
8945 2002-05-06 Michael Snyder <msnyder@redhat.com>
8947 * stabsread.c (read_type): Add recognition for new attribute:
8948 "@V;" means that an array type is actually a vector.
8949 This is analogous to the vector flag that's been added to dwarf2.
8951 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8953 * i386-tdep.h (i386_abi): New enum.
8954 (struct gdbarch_tdep): Replace os_ident member with abi.
8955 (i386_gdbarch_register_os_abi): New prototype.
8956 * i386-tdep.c (i386_abi_names): New array.
8957 (process_note_abi_tag_sections): Removed.
8958 (process_note_sections): New function.
8959 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8960 (struct i386_abi_handler): New struct.
8961 (i386_abi_handler_list): New variable.
8962 (i386_gdbarch_register_os_abi): New function.
8963 (i386_gdbarch_init): Adapt for the changes given above.
8965 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8967 * gregset.h: Say "GNU/Linux".
8969 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8971 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8972 (build_gdbtypes): Build builtin_type_v2_float.
8973 (_initialize_gdbtypes): Register new builtin type.
8975 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8977 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8978 (clear_gdbarch_swap): New function.
8979 (initialize_non_multiarch): Call.
8980 (gdbarch_update_p): Before calling init(), swap out and clear the
8981 existing architecture.
8982 * gdbarch.c: Regenerate.
8984 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8986 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8989 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8991 * sh-nbsd-nat.c: Rename to...
8992 * shnbsd-nat.c: ...this.
8993 * sh-nbsd-tdep.c: Rename to...
8994 * shnbsd-tdep.c: ...this.
8995 * sh-nbsd-tdep.h: Rename to...
8996 * shnbsd-tdep.h: ...this.
8997 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8998 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9000 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9002 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9003 concatenation for command help messages.
9005 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9007 * NEWS: Note new sh*-*-netbsdelf* configuration.
9008 * configure.host: Set gdb_host_cpu to sh for all sh*.
9009 (sh*-*-netbsdelf*): New host.
9010 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9011 (sh*-*-netbsdelf*): New target.
9012 * sh-nbsd-nat.c: New file.
9013 * sh-nbsd-tdep.c: New file.
9014 * sh-nbsd-tdep.h: New file.
9015 * config/sh/nbsd.mh: New file.
9016 * config/sh/nbsd.mt: New file.
9017 * config/sh/nm-nbsd.h: New file.
9018 * config/sh/tm-nbsd.h: New file.
9020 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9022 * sh-tdep.c (sh_osabi_names): Declare.
9023 (process_note_abi_tag_sections): New function.
9024 (get_elfosabi): Ditto.
9025 (sh_gdbarch_register_os_abi): Ditto.
9026 (sh_dump_tdep): Ditto.
9027 _initialize_sh_tdep): Use gdbarch_register to register
9028 sh_gdbarch_init and sh_dump_tdep.
9029 * config/sh/tm-sh.h (sh_osabi): Declare.
9030 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9032 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9034 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9035 (thumb_scan_prologue): Ditto.
9036 (arm_find_callers_reg): Ditto.
9037 (arm_frame_chain): Ditto.
9038 (arm_init_extra_frame_info): Ditto.
9039 (arm_frame_saved_pc): Ditto.
9040 (arm_pop_frame): Ditto.
9041 (arm_push_return_address): New function.
9042 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9043 call_dummy_location, call_dummy_breakpoint_offset_p,
9044 call_dummy_breakpoint_offset, call_dummy_p,
9045 call_dummy_stack_adjust_p, call_dummy_words,
9046 sizeof_call_dummy_words, call_dummy_start_offset,
9047 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9048 call_dummy_address, push_return_address and push_dummy_frame for
9049 generic dummy frames.
9051 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9053 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9054 size computation for alloca.
9055 (sh_fp_frame_init_saved_regs): Likewise.
9057 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9059 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9060 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9061 * arm-tdep.c (arm_store_return_value): Use them.
9062 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9063 * remote-rdp.c (remote_rdp_fetch_register): Use
9064 ARM_MAX_REGISTER_RAW_SIZE.
9065 (remote_rdp_store_register): Likewise.
9067 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9069 * dwarf2cfi.c: Code cleanup, removed unused variables,
9070 added default labels to switch {} statements.
9071 * x86-64-tdep.c: Ditto.
9072 * x86-64-linux-nat.c: Ditto.
9074 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9076 * solib.h: Protect against multiple inclusion.
9078 2002-05-06 Jim Blandy <jimb@redhat.com>
9080 Add first preprocessor macro-expansion files.
9081 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9082 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9083 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9084 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9085 (COMMON_OBS): Add macrotab.o, macroexp.o.
9086 (macroexp.o, macrotab.o): New rules.
9088 Separate the job of reading the line number info statement program
9089 header (...expialidocious) out into its own function.
9090 * dwarf2read.c (struct line_head, struct filenames, struct
9091 directories): Replace with...
9092 (struct line_header): New structure, containing the full
9093 contents of the statement program header, including the
9094 include directory and file name tables.
9095 (read_file_scope): If we have line number info, instead of just
9096 calling dwarf_decode_lines to do all the work, call
9097 dwarf_decode_line_header first to get a `struct line_header'
9098 containing the data in the statement program header, and then
9099 pass that to dwarf_decode_lines, which will pick up where that
9100 left off. Be sure to clean up the `struct line_header' object.
9101 (dwarf_decode_line_header, free_line_header, add_include_dir,
9102 add_file_name): New functions.
9103 (dwarf_decode_lines): Move all the code to read the statement
9104 program header into dwarf_decode_line_header. Take the line
9105 header it built as the first argument, instead of the offset to
9106 the compilation unit's line number info. Use the new `struct
9107 line_header' type instead of the old structures. No need to do
9108 cleanups here now, since we don't allocate anything.
9109 (dwarf2_statement_list_fits_in_line_number_section,
9110 dwarf2_line_header_too_long): New complaints.
9112 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9114 * gdbtypes.c (init_vector_type): New function.
9115 (build_builtin_type_vec128): Simplify the representation of SIMD
9117 (build_gdbtypes): Initialize new builtin vector types.
9118 (_initialize_gdbtypes): Register new vector types with gdbarch.
9119 (builtin_type_v4_float, builtin_type_v4_int32,
9120 builtin_type_v8_int16, builtin_type_v16_int8,
9121 builtin_type_v2_int32, builtin_type_v4_int16,
9122 builtin_type_v8_int8): New (renamed) SIMD types.
9124 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9126 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9127 (i387_fill_fxsave): Likewise.
9129 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9131 * alpha-tdep.c (alpha_extract_return_value): Don't use
9132 non-constant array size in prototype.
9134 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9136 From Brian Taylor <briant at model dot com>:
9137 * ui-out.c (ui_out_field_core_addr): Use the function
9138 longest_local_hex_string_custom'to format addresses > 32 bits
9141 * ui-out.c (ui_out_field_core_addr): Update comment.
9143 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9145 * stack.c (select_and_print_frame): Make static. Delete the
9147 (func_command): Update call.
9148 (select_frame_command): Delete code computing the frame level.
9149 * frame.h (select_and_print_frame): Delete declaration.
9151 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9153 * sparc-tdep.c (sparc_get_saved_register): Comment why
9154 get_prev_frame call is safe.
9156 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9158 * frame.h (select_frame): Delete level parameter.
9159 * stack.c (select_frame): Update. Use frame_relative_level to
9160 obtain the frame's level.
9161 (select_and_print_frame): Update call.
9162 (select_frame_command): Ditto.
9163 (up_silently_base): Ditto.
9164 (down_silently_base): Ditto.
9165 * ocd.c (ocd_start_remote): Ditto.
9166 * remote-rdp.c (remote_rdp_open): Ditto.
9167 * remote-mips.c (mips_initialize): Ditto.
9168 (common_open): Ditto.
9169 * remote-e7000.c (e7000_start_remote): Ditto.
9170 * m3-nat.c (select_thread): Ditto.
9171 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9172 (child_get_current_exception_event): Ditto.
9173 * varobj.c (varobj_create): Ditto.
9174 (varobj_update): Ditto.
9175 (c_value_of_root): Ditto.
9176 * tracepoint.c (finish_tfind_command): Ditto.
9177 * corelow.c (core_open): Ditto.
9178 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9179 * thread.c (info_threads_command): Ditto.
9180 (switch_to_thread): Ditto.
9181 * infrun.c (normal_stop): Ditto.
9182 (restore_selected_frame): Ditto.
9183 (restore_inferior_status): Ditto.
9184 * breakpoint.c (insert_breakpoints): Ditto.
9185 (watchpoint_check): Ditto.
9186 (bpstat_stop_status): Ditto.
9187 (do_enable_breakpoint): Ditto.
9188 * blockframe.c (flush_cached_frames): Ditto.
9189 (reinit_frame_cache): Ditto.
9191 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9193 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9196 2002-05-04 Jim Blandy <jimb@redhat.com>
9198 * gdbtypes.c (replace_type): Doc fix.
9200 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9202 * valprint.c (strcat_longest): Delete commented out function.
9205 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9207 * MAINTAINERS: Mark a29k as deleted.
9208 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9209 Move new configurations to the top.
9210 * configure.tgt: Remove a29k.
9211 * config/a29k/tm-vx29k.h: Delete.
9212 * config/a29k/vx29k.mt: Delete.
9213 * config/a29k/tm-a29k.h: Delete.
9214 * config/a29k/a29k-udi.mt: Delete.
9215 * config/a29k/a29k.mt: Delete.
9216 * a29k-tdep.c: Delete.
9217 * remote-udi.c: Delete.
9218 * remote-mm.c: Delete.
9219 * remote-eb.c: Delete.
9220 * remote-adapt.c: Delete.
9221 * Makefile.in: Remove obsolete code.
9222 * config/s390/s390x.mt: Ditto.
9223 * config/s390/s390.mt: Ditto.
9224 * config/sparc/sparclynx.mh: Ditto.
9225 * config/sparc/linux.mh: Ditto.
9226 * config/pa/hppaosf.mh: Ditto.
9227 * config/pa/hppabsd.mh: Ditto.
9228 * config/ns32k/nbsd.mt: Ditto.
9229 * config/mips/vr5000.mt: Ditto.
9230 * config/m68k/sun3os4.mh: Ditto.
9231 * config/m68k/nbsd.mt: Ditto.
9232 * config/m68k/m68klynx.mh: Ditto.
9233 * config/m32r/m32r.mt: Ditto.
9234 * config/i386/x86-64linux.mt: Ditto.
9235 * config/i386/nbsdelf.mt: Ditto.
9236 * config/i386/nbsd.mt: Ditto.
9237 * config/i386/i386lynx.mh: Ditto.
9239 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9241 * target.c (debug_print_register): New function. Handle oversize
9243 (debug_to_fetch_registers): Call.
9244 (debug_to_store_registers): Call.
9246 2002-05-03 Jim Blandy <jimb@redhat.com>
9248 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9249 (read_type): Doc fix.
9250 * gdbtypes.c (replace_type): Doc fix.
9252 * stabsread.c (multiply_defined_struct): New complaint.
9253 (read_struct_type): If the type we were passed isn't empty, or
9254 incomplete, don't read the new struct type into it; complain,
9255 and return the original type unchanged. Take a new `type_code'
9256 argument, which is the type code for the new type.
9257 (read_type): Rather than storing the type's type code here, pass
9258 it as an argument to read_struct_type, and let that take care of
9259 storing it. That way, we don't overwrite the original type code,
9260 so read_struct_type can use it to decide whether we're overwriting
9261 something we shouldn't.
9262 (complain_about_struct_wipeout): New function.
9264 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9266 * gdbarch.sh: Assert that gdbarch is non-NULL.
9267 * gdbarch.c: Regenerate.
9269 2002-05-03 Jason Merrill <jason@redhat.com>
9271 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9274 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9276 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9277 (x86_64_dwarf2gdb_regno_map_length),
9278 (x86_64_dwarf2_reg_to_regnum): Added.
9279 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9280 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9281 (_initialize_x86_64_tdep): Synced with the change above.
9282 (x86_64_skip_prologue): Reformulated message.
9284 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9286 * f-exp.y: Also use new prev_lexptr variable
9287 to improve error reporting. Based on Michael Snyder
9288 2002-04-24 dated patch to c-exp.y.
9289 * jv-exp.y: Likewise.
9290 * m2-exp.y: Likewise.
9292 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9294 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9295 we are dealing with vectors.
9297 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9299 * config/m68k/tm-nbsd.h: Obvious fix,
9300 correct machine name.
9302 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9304 * p-typeprint.c (pascal_type_print_base): Add support
9305 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9307 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9309 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9310 for fondamental pascal 'char' type.
9312 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9314 * p-lang.h (is_pascal_string_type): Declaration changed,
9315 new sixth argument of type char ** added.
9316 * p-lang.c (is_pascal_string_type): Implementation
9317 changed. Args length_pos, length_size, string_pos, char_size
9318 can now be NULL. New argument arrayname set to the field
9319 name of the char array. Return value set to char array
9320 field index plus one.
9321 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9322 is_pascal_string_type function.
9324 2002-05-02 Andrew Cagney <cagney@redhat.com>
9326 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9327 <cagney@redhat.com> change.
9328 * gdbarch.c: Regenerate.
9330 2002-05-02 Andrew Cagney <cagney@redhat.com>
9332 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9333 before probing for a new one. Detect errorenous gdbarch_init
9335 * gdbarch.c: Regenerate.
9337 2002-05-01 Andrew Cagney <cagney@redhat.com>
9339 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9340 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9341 * config/v850/tm-v850.h: Ditto. Update copyright.
9343 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9345 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9348 2002-04-30 Michael Snyder <msnyder@redhat.com>
9350 * arm-tdep.c: Whitespace clean-ups.
9351 (arm_skip_prologue): Fix thinko; two lines
9352 should have been removed as part of 4/24 change.
9354 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9356 * rs6000-tdep.c: Added comment describing how fpscr register
9357 numbers were chosen.
9359 2002-04-30 Michael Snyder <msnyder@redhat.com>
9361 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9363 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9365 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9366 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9367 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9369 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9371 From Louis Hamilton <hamilton@redhat.com>:
9372 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9373 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9374 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9375 not bfd-private xcoff data, to determine wordsize.
9376 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9378 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9380 GDB 5.2 released from 5.2 branch.
9382 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9384 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9385 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9386 (x86_64_register_info_table): Added comments with register numbers.
9388 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9390 * rs6000-tdep.c (rs6000_extract_return_value,
9391 rs6000_store_return_value): Handle returning vectors.
9392 (rs6000_gdbarch_init): Use
9393 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9394 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9396 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9398 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9399 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9401 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9403 * hpread.c (hpread_psymtab_to_symtab_1,
9404 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9405 with fprintf_unfiltered (gdb_stderr,...).
9407 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9409 * remote-array.c (printf_monitor, write_monitor,
9410 array_insert_breakpoint, array_remove_breakpoint ):
9411 Replace fprintf (stderr,...
9412 with fprintf_unfiltered (gdb_stderr,....
9413 * remote-es.c: Likewise.
9414 * remote-os9k.c: Likewise.
9415 * remote-st.c: Likewise.
9417 2002-04-28 Andreas Schwab <schwab@suse.de>
9419 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9420 linux-proc.o and gcore.o.
9422 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9424 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9425 code without frame pointers.
9427 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9429 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9432 2002-04-26 Ben Elliston <bje@redhat.com>
9434 * target.c (do_xfer_memory): Correct reference to the new option
9435 "trust-readonly-sections".
9437 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9439 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9440 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9441 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9443 (read_array_type): Record the fact that this array type is really a
9444 vector (i.e. are passed in by value).
9446 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9448 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9449 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9450 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9451 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9452 * alpha-linux-tdep.c: Include frame.h.
9453 (alpha_linux_sigcontext_addr): New function.
9454 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9455 alpha_linux_sigcontext_addr.
9456 * alpha-osf1-tdep.c: Include gdbcore.h.
9457 (alpha_osf1_sigcontext_addr): New function.
9458 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9459 alpha_osf1_sigcontext_addr.
9460 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9461 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9463 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9465 * stack.c (selected_frame_level):
9466 (select_frame): Do not set selected_frame_level.
9467 * frame.h (selected_frame_level): Delete declaration.
9469 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9471 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9472 convert_from_func_ptr-addr when AIX / PowerOpen.
9474 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9476 * valops.c (hand_function_call): Call
9477 generic_save_call_dummy_addr.
9478 * frame.h (generic_save_call_dummy_addr): Declare.
9479 * blockframe.c (struct dummy_frame): Add fields call_lo and
9481 (generic_find_dummy_frame): Check for PC in range call_lo to
9482 call_hi instead of entry_point_address.
9483 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9484 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9485 (generic_save_call_dummy_addr): New function.
9487 2002-04-24 David S. Miller <davem@redhat.com>
9489 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9490 sparc_skip_prologue.
9491 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9492 information to find prologue when possible.
9493 (sparc_prologue_frameless_p): Call examine_prologue directly.
9494 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9495 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9497 (SKIP_PROLOGUE): Likewise.
9499 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9501 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9502 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9503 indicate that the condition it was testing is always true.
9504 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9505 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9506 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9508 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9510 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9511 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9512 tdep->jb_pc and tdep->jb_elt_size.
9513 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9514 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9515 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9516 * alpha-nat.c (get_longjmp_target): Remove.
9517 (JB_ELEMENT_SIZE): Ditto.
9519 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9520 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9521 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9522 to alpha_get_longjmp_target.
9523 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9524 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9525 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9527 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9529 * README: Update to GDB 5.2.
9531 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9533 * gdbarch.sh (LC_ALL): Set to `c'.
9535 2002-04-25 Theodore A. Roth <troth@verinet.com>
9537 * avr-tdep.c: Ran through gdb_indent.sh.
9539 2002-04-25 Theodore A. Roth <troth@verinet.com>
9541 * MAINTAINERS: Add myself as AVR maintainer.
9542 * NEWS: Note new target avr.
9544 2002-04-25 Theodore A. Roth <troth@verinet.com>
9546 * Makefile.in: Add support for AVR target.
9547 * configure.tgt: Add support for AVR target.
9548 * avr-tdep.c: New file
9549 * config/avr/avr.mt: New file.
9551 2002-04-25 Theodore A. Roth <troth@verinet.com>
9553 * MAINTAINERS: Add myself to write-after-approval.
9555 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9557 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9558 with fprintf_unfiltered (gdb_stderr,....
9560 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9563 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9565 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9567 * p-exp.y: Also use new prev_lexptr variable
9568 to improve error reporting. Based on Michael Snyder
9569 2002-04-24 dated patch to c-exp.y.
9571 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9573 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9574 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9575 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9577 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9579 (FUNCTION_START_OFFSET): Remove.
9580 (BREAKPOINT): Ditto.
9582 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9584 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9587 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9589 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9590 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9591 alpha_linux_pc_in_sigtramp.
9592 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9593 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9594 alpha_osf1_pc_in_sigtramp.
9595 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9596 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9597 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9598 alphafbsd_pc_in_sigtramp.
9599 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9600 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9601 alphanbsd_pc_in_sigtramp.
9602 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9603 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9605 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9607 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9609 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9611 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9613 (alphanbsd-nat.o): New dependency list.
9614 (alphanbsd-tdep.o): Ditto.
9615 * NEWS: Note new native NetBSD/alpha configuration.
9616 * alphanbsd-nat.c: New file.
9617 * alphanbsd-tdep.c: Ditto.
9618 * configure.host (alpha*-*-netbsd*): New host.
9619 * configure.tgt (alpha*-*-netbsd*): New target.
9620 * config/alpha/nbsd.mh: New file.
9621 * config/alpha/nbsd.mt: Ditto.
9622 * config/alpha/nm-nbsd.h: Ditto.
9623 * config/alpha/tm-nbsd.h: Ditto.
9625 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9627 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9628 (alpha-osf1-tdep.o): New dependency list.
9629 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9630 and skip_sigtramp_frame members.
9631 * alpha-linux-tdep.c: Include gdbcore.h.
9632 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9633 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9634 * alpha-osf1-tdep.c: New file.
9635 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9637 (alpha_frame_past_sigtramp_frame): New function.
9638 (alpha_dynamic_sigtramp_offset): Ditto.
9639 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9640 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9641 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9642 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9643 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9644 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9645 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9646 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9647 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9648 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9649 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9650 to find_solib_trampoline_target.
9651 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9652 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9653 (SKIP_TRAMPOLINE_CODE): Remove.
9654 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9655 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9656 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9657 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9658 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9659 (PROC_SIGTRAMP_MAGIC): Ditto.
9660 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9661 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9662 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9663 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9664 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9666 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9668 * NEWS: Note that Alpha targets are now multi-arch.
9670 2002-04-24 Michael Snyder <msnyder@redhat.com>
9672 * parser-defs.h (prev_lexptr): New external variable.
9673 * parse.c (parse_exp_1): Set prev_lexptr to null before
9674 calling the language-specific parser.
9675 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9676 (yyerror): Use prev_lexptr in error reporting.
9678 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9680 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9681 * gregset.h: If FILL_FPXREGSET is defined, provide
9682 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9683 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9684 is defined, call fill_fpxregset.
9686 2002-04-24 Roland McGrath <roland@frob.com>
9688 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9689 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9690 (supply_gregset, supply_fpregset): New functions.
9692 * gnu-nat.c (gnu_find_memory_regions): New function.
9693 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9694 (gnu_xfer_memory): Add a cast.
9696 2002-04-24 Michael Snyder <msnyder@redhat.com>
9698 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9699 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9700 of argument regs ("str r(0123), [r11, #-nn"]).
9701 (arm_skip_prologue): Better handling for frameless functions.
9702 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9703 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9705 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9707 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9708 NUM_PSEUDO_REGS can be used.
9710 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9712 * arch-utils.h: Update copyright.
9714 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9715 * gdbarch.h, gdbarch.c: Re-generate.
9717 * inferior.h (IN_SIGTRAMP): Delete definition.
9718 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9719 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9721 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9722 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9723 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9724 (find_proc_framesize): Ditto.
9725 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9726 (alpha_init_extra_frame_info): Ditto.
9727 * infrun.c (handle_inferior_event): Ditto.
9728 (handle_inferior_event): Ditto.
9729 (check_sigtramp2): Ditto.
9730 * blockframe.c (create_new_frame): Ditto.
9731 (get_prev_frame): Ditto.
9732 * ppc-linux-tdep.c: Update comments.
9733 * i386-linux-tdep.c: Update comments.
9734 * breakpoint.c (bpstat_what): Update comment.
9736 2002-04-24 David S. Miller <davem@redhat.com>
9738 * i960-tdep.c (register_in_window_p): New function.
9739 (i960_find_saved_register): Use it instead of
9740 REGISTER_IN_WINDOW_P.
9741 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9743 * symtab.h (find_stab_function_addr): Kill extern.
9744 * minsyms.c (find_stab_function_addr): Remove from here...
9745 * dbxread.c: ... to here, and mark it static.
9747 2002-04-20 David S. Miller <davem@redhat.com>
9749 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9750 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9752 2002-04-21 David S. Miller <davem@redhat.com>
9754 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9755 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9756 (vx_write_register): Likewise.
9758 2002-04-23 J. Brobecker <brobecker@gnat.com>
9760 * source.c (is_regular_file): New function.
9761 (openp): Check wether file to open is a regular file
9762 to avoid opening directories.
9764 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9766 * findvar.c (extract_signed_integer): Cast printf argument
9767 to suppress format warning.
9768 (extract_unsigned_integer): Likewise.
9769 * infcmd.c (registers_info): Likewise.
9770 * top.c (get_prompt_1): Likewise.
9771 * valops.c (value_assign): Likewise.
9772 * valprint.c (print_decimal): Likewise.
9774 2002-04-22 H.J. Lu (hjl@gnu.org)
9776 * c-exp.y (typebase): Support
9778 [long|long long|short] [signed|unsigned] [int|]
9782 signed [long|long long|short] int
9784 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9786 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9788 * vax-tdep.h: New file.
9789 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9790 Make several routines static.
9791 (vax_get_saved_register): New function.
9792 (vax_gdbarch_init): New function.
9793 (_initialize_vax_tdep): Register vax_gdbarch_init.
9794 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9795 Remove macros now under the control of gdbarch.
9797 2002-04-22 Michael Snyder <msnyder@redhat.com>
9799 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9800 Some whitespace and coding standards tweaks.
9802 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9804 * vax-tdep.c: Include regcache.h.
9805 (vax_call_dummy_words): New.
9806 (sizeof_vax_call_dummy_words): New.
9807 (vax_fix_call_dummy): New function.
9808 (vax_saved_pc_after_call): Ditto.
9809 * config/vax/tm-vax.h: Don't include regcache.h.
9810 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9811 (CALL_DUMMY): Remove.
9812 (CALL_DUMMY_WORDS): Define.
9813 (SIZEOF_CALL_DUMMY_WORDS): Define.
9814 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9816 2002-04-18 Michael Snyder <msnyder@redhat.com>
9818 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9820 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9822 * vax-tdep.c (vax_frame_chain): New function.
9823 (vax_push_dummy_frame): Ditto.
9824 (vax_pop_frame): Ditto.
9825 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9826 (FRAMELESS_FUNCTION_INVOCATION): Use
9827 generic_frameless_function_invocation_not.
9828 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9829 (POP_FRAME): Use vax_pop_frame.
9831 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9833 * vax-tdep.c (vax_store_struct_return): New function.
9834 (vax_extract_return_value): Ditto.
9835 (vax_store_return_value): Ditto.
9836 (vax_extract_struct_value_address): Ditto.
9837 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9838 vax_store_struct_return.
9839 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9840 (STORE_RETURN_VALUE): Use vax_store_return_value.
9841 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9843 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9845 * vax-tdep.c (vax_frame_saved_pc): New function.
9846 (vax_frame_args_address_correct): Ditto.
9847 (vax_frame_args_address): Ditto.
9848 (vax_frame_locals_address): Ditto.
9849 (vax_frame_num_args): Move code to be in proximity to
9850 other frame-related functions.
9851 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9852 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9853 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9854 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9855 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9857 2002-04-22 H.J. Lu (hjl@gnu.org)
9859 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9862 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9864 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9865 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9866 (FRAME_INIT_SAVED_REGS): New macro.
9868 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9870 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9872 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9874 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9876 (fetch_osf_core_registers): Likewise.
9877 (supply_gregset): Likewise.
9879 2002-04-22 J. Brobecker <brobecker@gnat.com>
9881 * symfile.h (get_section_index): Define.
9882 * symfile.c (get_section_index): New function.
9883 * mdebugread.c (SC_IS_SBSS): New macro.
9884 (SC_IS_BSS): Return true for the scBss storage class only, as
9885 the scSBss storage class refers to the .sbss section.
9886 (parse_partial_symbols): Discard the symbols which associated
9887 section does not exist.
9888 Make sure to use the .sbss section index for symbols which
9889 storage class is scBss, rather than using the .bss section index.
9891 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9893 * vax-tdep.c: Update copyright years.
9894 (vax_register_name): New function.
9895 (vax_register_byte): Ditto.
9896 (vax_register_raw_size): Ditto.
9897 (vax_register_virtual_size): Ditto.
9898 (vax_register_virtual_type): Ditto.
9899 * config/vax/tm-vax.h: Update copyright years.
9900 (REGISTER_NAMES): Remove.
9901 (REGISTER_NAME): Define.
9902 (REGISTER_BYTE): Use vax_register_byte.
9903 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9904 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9905 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9907 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9909 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9911 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9913 2002-04-21 David S. Miller <davem@redhat.com>
9915 * arch-utils.c (generic_prologue_frameless_p): Kill
9916 SKIP_PROLOGUE_FRAMELESS_P code.
9917 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9919 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9920 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9921 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9923 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9924 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9925 (sparc_gdbarch_init): Pass it to
9926 set_gdbarch_prologue_frameless_p.
9928 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9930 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9931 (alphabsd-nat.o): New dependency list.
9933 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9935 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9937 (alpha-linux-tdep.o): New dependency list.
9938 (alphafbsd-tdep.o): Likewise.
9940 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9942 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9944 * alpha-tdep.c: ...from here.
9945 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9947 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9949 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9950 prototype from here...
9951 * alpha-tdep.h: ...to here.
9953 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9955 * frame.h (selected_frame_level): Document as deprecated.
9956 (frame_relative_level): Declare.
9957 * stack.c (frame_relative_level): New function.
9958 (selected_frame_level): Document as deprecated.
9959 (select_frame): Do not set the selected_frame_level.
9961 * stack.c (frame_info, record_selected_frame): Update.
9962 (frame_command, current_frame_command): Update.
9963 (up_silently_base, up_command, down_silently_base): Update.
9964 (down_command): Update.
9965 * inflow.c (kill_command): Update.
9966 * tracepoint.c (finish_tfind_command): Update.
9967 * corelow.c (core_open): Update.
9968 * thread.c (info_threads_command): Update.
9969 (do_captured_thread_select): Update.
9970 * infcmd.c (finish_command): Update.
9971 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9973 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9975 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9977 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9979 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9982 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9984 * alphafbsd-tdep.c: Update copyright years. Include
9986 (alphafbsd_use_struct_convention): Make static.
9987 (alphafbsd_init_abi): New function.
9988 (_initialize_alphafbsd_tdep): New function.
9989 * config/alpha/tm-fbsd.h: Update copyright years.
9990 (USE_STRUCT_CONVENTION): Remove.
9992 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9994 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9995 an Alpha ABI variant.
9996 (alpha_abi_handler_list): Declare.
9997 (alpha_gdbarch_register_os_abi): New function.
9998 (alpha_gdbarch_init): Give registered ABI variant handlers a
9999 chance to tweak the gdbarch once we have set up defaults.
10000 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10002 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10004 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10005 to standard_coerce_float_to_double.
10006 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10008 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10010 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10011 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10012 from gdbarch_tdep rather than a constant.
10013 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10014 the default text address for all Alpha Unix ABIs.
10015 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10016 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10018 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10020 * alpha-tdep.h: New file. Includes several Alpha target constants
10022 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10023 let gdbarch deal with.
10024 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10025 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10026 to dependency list.
10027 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10028 Alpha target register names.
10029 * alphabsd-nat.c: Likewise.
10030 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10031 Alpha target register names. Make serveral routines static.
10032 (alpha_get_saved_register): New function.
10033 (alpha_abi_names): New.
10034 (process_note_abi_tag_sections): New function.
10035 (get_elfosabi): New function.
10036 (alpha_gdbarch_init): New function.
10037 (alpha_dump_tdep): New function.
10038 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10040 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10042 * frame.c (find_saved_register): Delete #ifdef
10043 HAVE_REGISTER_WINDOWS code.
10044 * config/sparc/tm-sparc.h: Update comments.
10045 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10047 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10049 * i960-tdep.c (i960_find_saved_register): New function.
10050 (i960_get_saved_register): New function.
10051 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10052 (i960_get_saved_register): Declare.
10053 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10055 2002-04-20 David S. Miller <davem@redhat.com>
10057 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10059 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10061 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10062 instead of NUM_PSEUDO_REGS.
10064 2002-04-20 David S. Miller <davem@redhat.com>
10066 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10067 GDB_MULTI_ARCH_PARTIAL
10068 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10069 define, let tm-sp64.h do it.
10071 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10073 * frame.c (find_saved_register): Avoid a NULL pointer
10074 dereference and actually walk the frame list.
10076 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10078 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10079 sorted in most most-recent-used order. Document.
10080 * gdbarch.h, gdbarch.c: Regenerate.
10082 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10084 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10086 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10087 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10088 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10091 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10094 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10095 (build_builtin_type_vec128): Ditto.
10096 (append_composite_type_field): Fix calculation of type length in
10099 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10101 * config/djgpp/README: Update.
10103 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10106 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10108 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10109 (alpha_setup_arbitrary_frame): ...to this.
10110 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10111 for alpha_setup_arbitrary_frame.
10113 2002-04-18 Andrew Cagney <cagney@redhat.com>
10115 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10116 * gdbarch.h, gdbarch.c: Regenerate.
10118 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10119 * target.h (memory_breakpoint_from_pc): Update declaration.
10120 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10122 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10123 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10124 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10125 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10126 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10127 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10128 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10129 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10130 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10131 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10132 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10133 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10135 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10137 * monitor.c (monitor_insert_breakpoint): Ditto.
10138 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10140 * config/mcore/tm-mcore.h: Update copyright.
10141 * mem-break.c: Ditto.
10142 * xstormy16-tdep.c: Ditto.
10144 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10146 * p-exp.y: Add precedence rule for '^' token.
10147 This removes the shift/reduce conflicts.
10148 Remove the comment concerning these shift/reduce conflicts.
10150 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10152 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10153 (registers_powerpc_nofp): New register set for processors
10154 without floating point unit.
10156 2002-04-18 David S. Miller <davem@redhat.com>
10158 * MAINTAINERS: Add myself to write-after-approval.
10160 2002-04-17 Michael Snyder <msnyder@redhat.com>
10162 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10164 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10166 * rs6000-tdep.c (frame_initial_stack_address): Use
10167 frame_register_read to read the alloca_reg.
10169 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10171 * frame.c (find_saved_register): Find saved registers in the next
10175 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10177 * gdbarch.sh (LANG): Set to ``c''.
10179 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10181 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10183 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10185 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10188 * hpread.c (hpread_get_lntt): Add declaration.
10189 Also fix PR gdb/391.
10191 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10193 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10194 * aclocal.m4, configure: Re-generate.
10197 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10199 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10200 instead of tm_print_insn.
10202 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10204 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10206 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10208 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10209 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10210 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10212 2002-04-12 Don Howard <dhoward@redhat.com>
10214 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10215 max_user_call_depth.
10216 (init_cmd_lists): Initialize the new value;
10217 * cli/cli-script.c (execute_user_command): Limit the call depth of
10218 user defined commands. This avoids a core-dump when user commands
10219 are infinitly recursive.
10221 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10223 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10224 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10225 from tdep struct instead of DEFAULT_LR_SAVE.
10226 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10227 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10228 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10230 2002-04-12 Michael Snyder <msnyder@redhat.com>
10232 * Remote.c: Spelling fix.
10233 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10234 If no symbol found for "sbrk", try "_sbrk".
10235 (make_output_phdrs): Use bfd_section_name.
10236 (gcore_copy_callback): Use bfd_section_name.
10237 * eval.c: Indentation fix-ups.
10238 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10239 in case it gets applied to an address that is already
10240 in the instruction space.
10241 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10242 * symfile.c: Fix indentation, long lines.
10243 * source.c: White space fix-up.
10245 2002-04-12 Andrew Cagney <cagney@redhat.com>
10247 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10248 * frame.c (frame_register_read): New function. Return non-zero on
10250 (read_relative_register_raw_bytes_for_frame): Delete.
10251 (read_relative_register_raw_bytes): Delete.
10252 * frame.h (frame_register_read): Declare.
10253 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10254 * sh-tdep.c: Ditto.
10255 * infcmd.c (do_registers_info): Ditto.
10256 * hppa-tdep.c: Ditto.
10257 * rs6000-tdep.c: Ditto.
10258 * h8500-tdep.c: Ditto.
10259 * mips-tdep.c: Ditto.
10260 * h8300-tdep.c: Ditto.
10261 * z8k-tdep.c: Ditto.
10263 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10265 From Jimi X <jimix@watson.ibm.com>:
10266 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10269 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10271 From Jimi X <jimix@watson.ibm.com>:
10272 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10275 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10277 From Jimi X <jimix@watson.ibm.com>:
10278 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10279 register sets for these processor variants.
10281 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10283 * regformats/reg-ppc.dat: Support FPSCR.
10285 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10287 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10288 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10289 Add fpscr as an invalid/unfetchable register.
10290 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10291 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10292 (fill_fpregset): Add support for register fpscr.
10293 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10294 (fill_gregset): Account for the fact that register ``mq'' might
10296 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10297 (registers_power): Add fpscr to register set at slot 71.
10298 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10299 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10301 2002-04-11 Michael Snyder <msnyder@redhat.com>
10303 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10304 * configure: Regenerate.
10305 * config.in: Regenerate.
10306 * acconfig.h: Add define for _SYSCALL32.
10307 * core-sol2.c: Remove #define _SYSCALL32.
10308 * solib-legacy.c: Remove #define _SYSCALL32.
10310 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10312 * stack.c (select_frame): Cleanup internal error message, do not
10315 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10317 * stack.c (select_frame): Check that selected_frame and the
10318 specified level are as expected.
10319 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10321 * frame.h (struct frame_info): Add field `level'. Update
10323 Work-in-progress PR gdb/464.
10325 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10327 * maint.c (maint_print_section_info): Rename print_section_info.
10328 (print_bfd_section_info, print_objfile_section_info): Update.
10329 * inferior.h (struct gdbarch): Add opaque declaration.
10330 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10331 * gdbarch.h: Regenerate.
10333 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10335 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10336 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10337 (kernel_u_size): Added.
10338 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10339 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10341 2002-04-04 Jim Ingham <jingham@apple.com>
10343 * valarith.c (find_size_for_pointer_math): New function, either returns
10344 the size for a pointer's target, returns 1 for void *, or errors for
10346 (value_add, value_sub): use find_size_for_pointer_math.
10348 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10350 * linux-low.c (linux_look_up_symbols): New hook.
10351 (linux_target_ops): Add linux_look_up_symbols.
10352 * remote-utils.c (decode_address): New function.
10353 (look_up_one_symbol): New function.
10354 * server.c (handle_query): Call target look_up_symbols hook.
10355 * server.h (look_up_one_symbol): Add prototype.
10356 * target.h (struct target_ops): Add look_up_symbols hook.
10358 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10360 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10361 override FP_REGNUM with frame->fp. Update copyright.
10362 * parse.c (num_std_regs, std_regs): Delete.
10363 (target_map_name_to_register): Do not search std_regs. Update
10364 function description.
10365 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10366 declarations. Update copyright.
10369 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10371 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10372 after the last symbol in a block.
10374 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10376 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10377 is non zero as a found symbol.
10379 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10381 * findvar.c: Include "builtin-regs.h".
10382 (value_of_register): Call value_of_builtin_reg when applicable.
10383 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10384 (target_map_name_to_register): Call
10385 builtin_reg_map_name_to_regnum.
10386 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10387 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10388 (builtin_regs_h): Define.
10389 (builtin-regs.o): New target.
10390 (findvar.o): Add $(builtin_regs_h).
10391 * builtin-regs.c, builtin-regs.h: New files.
10392 * std-regs.c: New file.
10393 Partial fix for PR gdb/251.
10395 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10397 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10398 it's no longer required.
10400 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10402 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10404 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10406 From Jimi X <jimix@watson.ibm.com>:
10407 * rs6000-tdep.c (rs6000_software_single_step): Use
10408 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10409 and size. Use target_insert_breakpoint() and
10410 target_remove_breakpoint() to insert and remove breakpoints
10411 instead of explicit memory reads and writes.
10413 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10415 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10416 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10417 ELF_OBJECT_FORMAT ifdef.
10419 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10421 From Jimi X <jimix@watson.ibm.com>:
10422 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10424 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10426 From Jimi X <jimix@watson.ibm.com>:
10427 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10428 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10430 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10432 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10433 s/asprintf/xasprintf/.
10434 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10436 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10438 I believe Jeff Law denies responsability for this one:
10439 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10440 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10441 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10442 Work-around for PR gdb/366.
10444 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10446 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10447 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10448 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10450 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10452 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10453 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10456 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10458 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10461 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10463 * README (Reporting Bugs in GDB): Document the bug web page as the
10464 prefered way of submitting bugs.
10467 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10469 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10470 -1. Update comment.
10471 * gdbarch.h, gdbarch.c: Re-generate.
10473 2002-04-07 Andreas Schwab <schwab@suse.de>
10475 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10476 buffer to regcache_collect.
10478 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10480 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10481 * gdbarch.c, gdbarch.h: Re-generate.
10483 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10485 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10486 declaration. Fix -Werror.
10488 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10490 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10491 * gdbarch.c: Regenerate.
10493 2002-04-05 Michael Snyder <msnyder@redhat.com>
10495 * breakpoint.c (clear_command): Rewrite middle section to
10496 combine two loops with identical control conditions.
10497 Add a cleanup to eliminate a memory leak.
10498 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10500 2002-04-05 H.J. Lu (hjl@gnu.org)
10502 * solib-svr4.c (bkpt_names): Add "__start".
10504 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10506 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10507 as test for 64 bit target.
10509 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10511 * h8500-tdep.c (h8500_write_fp): Delete function.
10512 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10513 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10514 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10516 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10517 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10519 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10520 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10521 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10522 (d10v_write_fp): Delete function.
10523 * inferior.h (write_fp, generic_target_write_fp): Delete
10525 * regcache.c (generic_target_write_fp): Delete function.
10526 (write_fp): Delete function.
10527 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10528 * gdbarch.h, gdbarch.c: Regenerate.
10529 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10530 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10531 (sparc64_write_fp): Delete declaration.
10532 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10533 (h8500_write_fp): Delete declaration.
10535 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10537 * sparc-tdep.c (sparc64_write_fp): Delete.
10538 (sparc_push_dummy_frame): Replace write_fp call with code to store
10540 (sparc_gdbarch_init): Do not initialize write_fp.
10542 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10544 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10547 2002-03-29 Jim Blandy <jimb@redhat.com>
10549 * stack.c (get_selected_block): Add new argument `addr_in_block',
10550 used to return the exact code address we used to select the block,
10551 not just the block.
10552 * blockframe.c (get_frame_block, get_current_block): Same.
10553 * frame.h (get_frame_block, get_current_block,
10554 get_selected_block): Update declarations.
10555 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10556 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10558 2002-04-05 Michael Snyder <msnyder@redhat.com>
10560 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10563 2002-04-05 J. Brobecker <brobecker@gnat.com>
10565 * utils.c (xfullpath): New function.
10566 * defs.h (xfullpath): Add declaration.
10567 * source.c (openp): Use xfullpath in place of gdb_realpath to
10568 avoid resolving the basename part of filenames when the
10569 associated file is a symbolic link. This fixes a potential
10570 inconsistency between the filenames known to GDB and the
10571 filenames it prints in the annotations.
10572 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10573 to be able to match a filename with either the real filename, or
10574 the name of any symbolic link to this file.
10575 (lookup_partial_symtab): Ditto.
10577 2002-04-04 Michael Snyder <msnyder@redhat.com>
10579 * breakpoint.c: Add support for hardware breakpoints in overlays.
10580 (overlay_events_enabled): New state variable.
10581 (insert_breakpoints): Use overlay_events_enabled to decide
10582 whether to attempt to set a breakpoint at the overlay load addr.
10583 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10584 (remove_breakpoint): Use overlay_events_enabled to decide
10585 whether breakpoints need to be removed from overlay load addr.
10586 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10587 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10588 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10589 disable_overlay_breakpoints): Update overlay_events_enabled.
10591 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10593 * dwarf2read.c (struct function_range): New.
10594 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10595 (check_cu_functions): New.
10596 (read_file_scope): Initialize global function lists.
10597 Call dwarf_decode_line after processing children.
10598 (read_func_scope): Add to global function list.
10599 (dwarf_decode_lines): Call check_cu_functions everywhere
10600 record_line is called. Call record_line with a linenumber
10601 of 0 to mark sequence ends.
10603 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10605 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10606 change sync with glibc.
10608 2002-04-03 Jim Blandy <jimb@redhat.com>
10610 * configure.in: Call AC_C_INLINE.
10611 * configure: Regenerated.
10613 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10615 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10616 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10618 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10620 * NEWS: Mention gcore support on FreeBSD/i386.
10622 * fbsd-proc.c: New file.
10623 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10624 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10626 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10629 2002-03-29 Jim Blandy <jimb@redhat.com>
10631 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10632 unescaped newlines in string literals, but newer ones don't. So
10635 2002-03-26 Michael Snyder <msnyder@redhat.com>
10636 Andrew Cagney <cagney@redhat.com>
10638 * cli/cli-dump.c: New file. Dump memory to file,
10639 restore file to memory.
10640 * cli/cli-dump.h: New file.
10641 * Makefile.in: Add rules, dependencies for cli-dump.o.
10642 * NEWS: Mention new commands.
10644 2002-03-28 Michael Snyder <msnyder@redhat.com>
10646 * symfile.c (symbol_file_add): Move test for null symbols to later.
10648 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10650 From veksler at il.ibm.com:
10651 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10652 the xstrduped original path.
10655 2002-03-27 Michael Snyder <msnyder@redhat.com>
10657 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10658 * infcmd.c (_initialize_infcmd): Ditto.
10659 * language.c (_initialize_language): Ditto.
10660 * symfile.c (_initialize_symfile): Ditto.
10661 * top.c (_init_main): Ditto.
10662 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10664 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10666 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10667 vector registers handling.
10668 (skip_prologue): Handle new AltiVec instructions. Fill in new
10669 fields of frame data.
10670 (frame_get_saved_regs): Fill in information for AltiVec registers.
10672 2002-03-27 Jim Blandy <jimb@redhat.com>
10674 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10675 a function; leave this macro here to invoke that function.
10676 (symbol_init_mangled_name): Declaration for that function.
10677 * symtab.c (symbol_init_mangled_name): New function.
10679 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10681 * valarith.c: Replace strerror with safe_strerror.
10682 * tracepoint.c: Ditto.
10683 * lin-lwp.c: Ditto.
10684 * go32-nat.c: Ditto.
10686 * gnu-nat.c: Ditto.
10688 2002-03-27 Andreas Schwab <schwab@suse.de>
10690 * event-top.c (command_line_handler): Remove useless if.
10692 2002-03-27 Andreas Jaeger <aj@suse.de>
10694 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10697 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10699 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10700 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10701 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10702 (x86_64_linux_dr_get_status, supply_gregset),
10703 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10704 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10705 (x86_64_register_info_table): Add.
10706 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10707 (x86_64_register_raw_size, x86_64_register_virtual_type),
10708 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10709 general x86_64_register_info_table.
10710 (i386_gdbarch_init): gdbarch_register_bytes is now set
10711 dynamicaly during initialization.
10712 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10713 * gdbserver/linux-x86-64-low.c: Ditto.
10715 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10717 * gdbserver/server.c (main): Call target_signal_to_host_p
10718 and target_signal_to_host on signals received from the remote.
10719 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10720 target_signal_from_host on signals sent to the remote.
10721 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10722 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10724 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10726 * signals/signals.c: Include "server.h" in gdbserver build.
10727 (target_signal_from_name): Don't use STREQ.
10728 (_initialize_signals): Likewise. Don't include function in
10731 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10733 * signals.c: Moved to...
10734 * signals/signals.c: Here.
10735 * Makefile (signals.o): Update.
10737 2002-03-26 Jeff Law (law@redhat.com)
10739 * somread.c (som_symtab_read): Remove some commented out code and
10740 updated related comments. Do not set the minimal symbol table to
10741 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10742 in a dynamic executable.
10743 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10744 where we are unable to find the minimal symbol for the given
10747 2002-03-25 Jeff Law (law@redhat.com)
10749 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10751 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10753 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10755 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10757 * command.h: Update copyright.
10758 (struct cmd_list_element): Replace definition with opaque
10760 (enum cmd_types): Document that it will eventually be moved to
10762 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10763 (MALLOCED_REPLACEMENT): Delete macro.
10764 * Makefile.in (cli_decode_h): Add $(command_h).
10765 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10766 * top.c: Include "cli/cli-decode.h".
10767 * completer.c: Include "cli/cli-decode.h".
10768 * maint.c: Include "cli/cli-decode.h".
10769 * cli/cli-decode.h: Include "command.h".
10770 (enum command_class): Delete.
10771 (enum cmd_types): Comment out.
10772 (enum cmd_auto_boolean): Delete.
10773 (enum var_types): Delete.
10775 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10777 * cli/cli-decode.c: Include "gdb_assert.h".
10778 (add_set_or_show_cmd): New static function.
10779 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10780 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10781 all fields, such as func, from the set command.
10783 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10785 * MAINTAINERS (sh-elf): Change warning flag to -w.
10787 2002-03-23 Andrew Cagney <cagney@redhat.com>
10789 * defs.h (error): Add printf format attribute.
10790 * thread-db.c (thread_from_lwp): Fix error format string.
10791 * stack.c (parse_frame_specification): Ditto.
10792 * cli/cli-decode.c (undef_cmd_error): Ditto.
10793 * scm-lang.c (scm_lookup_name): Ditto.
10794 * tracepoint.c (trace_error): Ditto.
10795 * remote-utils.c (usage): Ditto.
10796 * remote.c (compare_sections_command): Ditto.
10799 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10801 * gdbtypes.c (append_composite_type_field): New function.
10802 (init_composite_type): New function.
10803 * gdbtypes.h (append_composite_type_field): Declare.
10804 (init_composite_type): Ditto.
10806 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10808 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10810 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10811 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10812 structure returning convention for SYSV ABI case, but not
10813 for GNU/Linux, FreeBSD, or NetBSD.
10815 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10817 * symtab.h (lookup_block_symbol): Add mangled_name argument
10820 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10821 with new mangled_name argument.
10822 * linespec.c (decode_line_1): Likewise.
10823 * valops (value_of_this): Likewise.
10824 * symtab.c (lookup_transparent_type): Likewise.
10825 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10826 (lookup_symbol): If we are given a mangled name, pass it down
10827 to lookup_symbol_aux.
10828 (lookup_block_symbol): If we are given a mangled name to check
10829 against, only return symbols which match it.
10831 2002-03-22 Christopher Faylor <cgf@redhat.com>
10833 * win32-nat.c (child_create_inferior): Check for proper shell to use
10834 here, in case the user changes it on the fly.
10835 (_initialize_inftarg): Remove shell path considerations.
10837 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10839 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10840 for gdbarch_max_register_raw_size and max_register_virtual_size.
10841 Adjust copyright year.
10843 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10845 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10846 in a function to cover the entire beginning of the function
10847 as well if it does not already.
10849 2002-03-21 Tom Rix <trix@redhat.com>
10851 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10852 (rs6000_ptrace64): Renamed from ptrace64.
10854 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10856 * gdbserver/remote-utils.c (remote_open): Don't call
10857 getprotobyname, we're all using TCP here so just use
10859 * gdbserver/gdbreplay.c (remote_open): Ditto.
10861 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10863 * regcache.c (_initialize_regcache): No need to call
10864 build_regcache() at this time; it gets called whenever
10865 the gdbarch changes.
10867 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10869 * sparc-nat.c: Include sys/param.h where possible.
10871 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10874 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10875 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10876 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10878 * stabsread.c (rs6000_builtin_type): Likewise.
10879 (read_sun_floating_type): Likewise.
10881 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10883 * stabsread.c (read_member_functions): Remove skip code for duplicate
10884 constructor/destructor methods. Use standard parsing for these
10885 methods and just do not chain them to the list of methods after
10888 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10890 * coffread.c: Remove redundant static declarations. Replace
10891 occurrences of `PTR' with `void *'.
10892 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10893 * top.h (quit_cover): Likewise.
10894 * defs.h (catch_errors): Likewise.
10896 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10898 * defs.h (XMALLOC): Define.
10899 * gdb-events.sh (XMALLOC): Delete macro.
10900 * gdb-events.c, gdb-events.h: Regenerate.
10901 * gdbarch.sh (XMALLOC): Delete macro.
10902 * gdbarch.c: Regenerate.
10903 * serial.c (XMALLOC): Delete macro.
10904 * ui-file.c (XMALLOC): Ditto.
10905 * ser-unix.h (XMALLOC): Ditto.
10906 * sh-tdep.c (XMALLOC): Ditto.
10907 * ui-out.c (XMALLOC): Ditto.
10908 * utils.c (XMALLOC): Ditto.
10909 * i386-tdep.c (XMALLOC): Ditto.
10910 * gdb-events.c (XMALLOC): Ditto.
10911 * d10v-tdep.c (XMALLOC): Ditto.
10912 * cli-out.c (XMALLOC): Ditto.
10914 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10915 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10916 * ui-file.c, ui-out.c: Ditto.
10918 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10920 * command.h (struct cmd_list_element): Add field context.
10921 (set_cmd_context, get_cmd_context): Declare.
10922 * cli/cli-decode.h: Ditto.
10923 * cli/cli-decode.c (get_cmd_context): New function.
10924 (set_cmd_context): New function.
10925 (add_cmd): Initialize context.
10926 Part of fixing PR gdb/145 and PR gdb/146.
10928 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10930 * cli/cli-decode.c (cmd_type): New function.
10931 * command.h (cmd_type): Declare.
10932 * infrun.c (set_schedlock_func): Call function cmd_type.
10933 * kod.c (kod_set_os): Call cmd_type.
10934 * cris-tdep.c (cris_version_update): Use function cmd_type.
10935 (cris_mode_update, cris_abi_update): Ditto.
10937 * command.h: (execute_cmd_post_hook): Declare.
10938 (execute_cmd_pre_hook): Declare.
10939 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10940 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10941 functions. Execute pre/post hook while ensuring that afterwords
10942 hook_in is cleared.
10943 * top.c (execute_command): Use execute_cmd_post_hook, and
10944 execute_cmd_pre_hook to execute pre/post commands.
10945 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10947 (hook_stop_stub): Call execute_cmd_pre_hook.
10949 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10951 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10952 set'' and this leads to a core dump. Move xstrdup of
10953 operating_system to after check that it is not NULL.
10955 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10957 * kod.c (kod_set_os): Remove unnecessary check that
10958 ``command->type'' is set_cmd.
10960 * valprint.c (set_input_radix): Use input_radix.
10961 (set_output_radix): Use output_radix.
10962 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10965 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10967 * value.h (struct value): Delete field ``substring_addr''. Change
10968 aligner fields to force_doublest_align, force_longest_align,
10969 force_core_addr_align and force_pointer_aligh.
10971 * value.h (struct value): Fix typo in above change.
10973 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10975 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10976 to fix internal_error from ``maintenance print architecture''.
10978 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10980 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10981 for gcc versions after gcc-2.8.1.
10983 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10985 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10986 for method resolution. Restore adjustment of ``this'' pointer after
10987 calling value_struct_elt, which was accidentally removed during the
10990 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10992 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10994 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10995 get_saved_register.
10996 * value.h (value_of_register): Update.
10998 2002-03-14 Richard Henderson <rth@redhat.com>
11000 * configure.in: Detect declaration for canonicalize_file_name.
11001 * utils.c (canonicalize_file_name): Declare, if needed.
11002 (gdb_realpath): Prefer realpath if available and usable.
11003 * config.in, configure: Rebuild.
11005 2002-03-14 Richard Henderson <rth@redhat.com>
11007 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11008 a constant array bound.
11010 * MAINTAINERS: Add myself to write-after-approval.
11012 2002-03-14 Michael Snyder <msnyder@redhat.com>
11014 * symfile.c (syms_from_objfile): Return immediately if no syms.
11015 (symbol_file_add): Return immediately if no syms.
11016 (find_sym_fns): Return immediately if no syms.
11018 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11020 * gdbserver/remote-util.c (remote_open): Print remote-side's
11021 IP address when remote debugging over the network.
11023 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11025 * config/sparc/fbsd.mh: Fix copyright.
11026 * config/sparc/fbsd.mt: Likewise.
11028 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11030 * MAINTAINERS: Fix typo in name of gdb warnings option.
11031 (x86-64): Fix formating so that this can be parsed by awk.
11033 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11035 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11036 * defs.h: Include "gdb/signals.h".
11037 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11039 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11041 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11042 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11045 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11046 Don Howard <dhoward@redhat.com>
11048 * mips-tdep.c (ST0_FR): Define.
11049 (mips2_fp_compat): New function, temporarily disabled.
11050 (mips_read_fp_register_single): New function.
11051 (mips_read_fp_register_double): New function.
11052 (mips_print_register): Use them.
11053 (do_fp_register_row): Likewise.
11055 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11057 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11060 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11062 * stabsread.c (read_member_functions): Fix is_stub test for
11063 static member functions, improve comment.
11065 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11067 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11068 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11069 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11070 commands that set boolean values.
11071 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11072 (arm_rdi_resume): Always initialize PC.
11073 (arm_rdi_open): Don't use rslt as a boolean.
11074 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11075 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11076 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11077 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11079 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11081 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11082 * configure: Rebuilt.
11084 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11086 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11087 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11089 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11091 * cli/cli-decode.c (set_cmd_completer): New function.
11092 * command.h (set_cmd_completer): Declare.
11093 * cli/cli-decode.h (set_cmd_completer): Ditto.
11095 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11096 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11097 * win32-nat.c (_initialize_inftarg): Ditto.
11098 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11099 * proc-api.c (_initialize_proc_api): Ditto.
11100 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11101 * source.c (_initialize_source): Ditto.
11102 * exec.c (_initialize_exec): Ditto.
11103 * solib.c (_initialize_solib): Ditto.
11104 * top.c (init_main): Ditto.
11105 * tracepoint.c (_initialize_tracepoint): Ditto.
11106 * symfile.c (_initialize_symfile): Ditto.
11107 * printcmd.c (_initialize_printcmd): Ditto.
11108 * infcmd.c (_initialize_infcmd): Ditto.
11109 * corefile.c (_initialize_core): Ditto.
11111 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11113 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11115 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11117 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11119 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11121 * NEWS: Update headings, 5.2 has branched.
11123 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11125 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11126 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11127 (register_addr, REGISTER_RAW_SIZE): Likewise.
11128 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11129 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11131 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11133 * MAINTAINERS (x86-64): Add myself.
11134 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11135 changed value_ptr -> struct value *
11137 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11139 * configure.host (sparc64-*-freebsd): Add.
11140 * configure.tgt: Likewise.
11141 * config/sparc/fbsd.mh: New file.
11142 * config/sparc/fbsd.mt: Likewise.
11143 * config/sparc/nm-fbsd.h: Likewise.
11144 * config/sparc/tm-fbsd.h: Likewise.
11146 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11148 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11149 regformats/reg-s390x.dat.
11151 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11153 * utils.c: Add FIXME explaining true/false problem.
11155 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11157 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11159 2002-02-28 Michael Chastain <mec@shout.net>
11161 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11163 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11165 * gdbserver/linux-s390-low.c: New file.
11166 * regformats/reg-s390.dat: New file.
11167 * regformats/reg-s390x.dat: New file.
11168 * gdbserver/configure.srv: Add S/390.
11169 * gdbserver/Makefile.in: Add S/390.
11170 * configure.tgt: Enable gdbserver for S/390.
11172 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11174 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11175 first line of the doc string for "info dos", except at the end of
11176 the sentence, since the short help stops at the first period.
11178 2002-02-28 Jason Merrill <jason@redhat.com>
11180 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11182 2002-02-27 Fred Fish <fnf@redhat.com>
11184 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11185 comment (dumy -> dummy).
11187 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11189 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11191 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11193 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11195 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11197 * gdbserver/acconfig.h: New file.
11198 * gdbserver/i387-fp.c: New file.
11199 * gdbserver/i387-fp.h: New file.
11200 * gdbserver/linux-x86-64.c: New file.
11201 * regformats/reg-x86-64.dat: New file.
11202 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11203 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11204 * gdbserver/configure.in: Add support for regsets.
11205 * gdbserver/config.in: Regenerate.
11206 * gdbserver/configure: Regenerate.
11207 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11208 * gdbserver/linux-low.h: New file.
11209 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11211 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11212 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11213 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11214 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11215 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11216 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11217 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11218 "i387-fp.h". Add PTRACE_GETREGS and friends.
11219 * gdbserver/regcache.c (supply_register): New function.
11220 (supply_register_by_name): New function.
11221 (collect_register): New function.
11222 (collect_register_by_name): New function.
11224 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11226 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11227 (config.status): Add configure.srv dependency.
11228 (server_h): Add config.h dependency.
11230 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11232 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11233 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11234 * gdbserver/configure.srv: Change i386-*-linux* to use
11237 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11239 * x86-64-tdep.c: Re-indent. Update copyright date.
11241 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11243 From Michal Ludvig <mludvig@suse.cz>:
11244 * x86-64-tdep.c (value.h): Delete.
11245 (gdb_assert.h): Include.
11246 (x86_64_register_convert_to_virtual,
11247 x86_64_register_convert_to_raw ): Add check which lets only
11248 floating-point values to be converted.
11249 (value_push): Delete.
11250 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11251 (i386_gdbarch_init): Number of register_bytes fixed.
11253 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11255 * MAINTAINERS: Add x86-64 target.
11257 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11259 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11260 * osfsolib.c (solib_map_sections): Ditto.
11261 * irix5-nat.c (solib_map_sections): Ditto.
11262 * corelow.c (gdb_check_format): Ditto.
11263 * symfile.c (symfile_bfd_open): Ditto.
11264 * solib.c (solib_map_sections): Ditto.
11267 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11269 * remote.c (_initialize_remote): By default, disable ``e'' and
11270 ``E'' step out-of-range packets.
11272 2002-02-26 Andreas Schwab <schwab@suse.de>
11274 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11275 m68k_linux_frame_saved_pc.
11276 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11278 (SIGCONTEXT_PC_OFFSET): Remove.
11279 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11280 m68k_linux_sigtramp_saved_pc): New functions.
11281 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11282 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11283 (UCONTEXT_PC_OFFSET): Define.
11284 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11285 non-RT and RT signal trampolines.
11287 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11289 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11290 (TARGET_NBPG, STACK_END_ADDR): Delete
11291 (VARIABLES_INSIDE_BLOCK): Delete.
11293 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11295 * utils.c (perror_with_name): Make string parameter constant.
11296 (print_sys_errmsg): Ditto.
11298 * defs.h (perror_with_name): Update.
11299 (print_sys_errmsg): Update.
11302 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11304 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11305 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11307 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11309 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11310 if it already matches the current architecture from the exec file.
11311 Include arch-utils.h for gdbarch_info_init prototype.
11312 * Makefile.in (rs6000-nat.o): Update dependencies.
11314 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11316 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11317 list of exported variables.
11319 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11321 * gdbserver/configure.srv: New file.
11322 * gdbserver/configure.in: Use configure.srv instead
11323 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11325 * gdbserver/configure: Regenerated.
11326 * gdbserver/terminal.h: New file.
11327 * gdbserver/Makefile.in: Update for configure changes. Remove
11328 more unneeded include paths.
11330 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11332 From wiz at danbala:
11333 * config/sparc/tm-sp64.h: Fix grammar and typos.
11336 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11338 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11339 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11340 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11341 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11342 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11343 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11344 * s390-tdep.c: Ditto.
11345 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11346 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11347 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11348 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11349 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11350 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11351 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11352 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11353 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11354 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11357 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11359 * lin-thread.c: Delete file.
11360 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11361 to gdb_proc_service.h.
11362 * configure: Re-generate.
11364 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11365 * serial.c (serial_open): Delete check for "ocd".
11368 * Makefile.in (linux-thread.o): Delete target.
11369 * linux-thread.c: Delete file.
11371 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11372 renamed SH files to be consistent.
11374 * symtab.c (sort_search_symbols): Use xfree.
11376 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11378 * arm-linux-tdep.c (arm_linux_init_abi): Register
11379 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11380 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11381 definition with undef, since we don't want the sysvr4 definition.
11382 (SKIP_TRAMPOLINE_CODE): Likewise.
11384 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11386 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11388 * configure.in: (AC_CHECK_FUNCS) Added test for
11389 canonicalize_file_name Regenerated.
11390 * config.in, configure: Regenerated.
11391 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11392 defined use canonicalize_file_name.
11394 2002-02-23 Michael Chastain <mec@shout.net>
11396 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11398 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11400 * README: Remove references to cygnus.com.
11401 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11402 dot com'' form. Remove references to cygnus.com and sourceware.
11404 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11406 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11407 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11408 1003.1-2001 no longer allows "head -1".
11409 * gdb/Makefile.in (version.c): Likewise.
11410 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11411 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11412 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11414 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11416 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11417 * command.h (cmd_cfunc_eq): Declare.
11418 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11420 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11421 ``struct cmd_list_element *''.
11422 * cli/cli-cmds.c (is_complete_command): Update. Use
11424 * top.c (execute_command): Pass the command to
11425 is_complete_command.
11426 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11428 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11430 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11431 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11432 architecture defines.
11433 * s390-tdep.c (s390_gdbarch_init): Likewise.
11435 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11437 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11438 (arm_linux_push_arguments): Likewise.
11439 (arm_linux_init_abi): Register them. Also register linux-specific
11441 (find_minsym_and_objfile): Use strcmp, not STREQ.
11442 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11443 (arm_linux_call_dummy_words): Delete declaration.
11444 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11445 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11447 (LOWEST_PC): Delete.
11449 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11451 * maint.c (print_section_info): Do not prepend `0x' to filepos
11452 output, it will be handled by local_hex_string_custom.
11454 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11456 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11457 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11458 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11460 2002-02-22 Jim Blandy <jimb@redhat.com>
11462 Indicate that the bcache functions don't change the strings
11464 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11465 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11467 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11469 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11471 2002-02-21 Christopher Faylor <cgf@redhat.com>
11473 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11474 find the complete path to a loaded DLL.
11476 2002-02-21 Fred Fish <fnf@redhat.com>
11478 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11479 that marks the end of the range of a function, enter a line number
11480 entry that has a line number of zero and a PC offset that matches
11481 the end of the function. This starts a range of PC's for which no
11482 line number information is known.
11483 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11484 PC's for which no line number info is found (line number is zero)
11485 then we didn't find any valid line information.
11486 * symtab.h: Document use of zero line number entry.
11488 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11490 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11491 (have_ptrace_getvrregs): Define for run time checks.
11492 (gdb_vrregset_t): New type for Altivec register handling.
11493 (fetch_register, store_register): Fetch/store altivec register
11495 (fetch_altivec_register, store_altivec_register): New functions.
11496 (supply_vrregset, fill_vrregset): New functions.
11497 (fetch_altivec_registers, store_altivec_registers): New functions.
11498 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11501 2002-02-21 Jiri Smid <smid@suse.cz>
11503 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11505 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11507 * Makefile.in (armnbsd-nat.o): Update dependencies.
11508 * armnbsd-nat.c (supply_gregset): New function. Common code to
11509 supply the integer register set.
11510 (supply_fparegset): New function. Similar for FPA registers.
11511 (fetch_regs, fetch_fp_regs): Use them.
11512 (fetch_core_registers): Likewise.
11513 (fetch_elfcore_registers): New function.
11514 (arm_netbsd_elfcore_fns): New core-file type specification.
11515 (_initialize_arm_netbsd_nat): Register it.
11517 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11519 * armnbsd-nat.c: Include gdbcore.h.
11520 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11521 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11522 'void' to declaration, to shut up ARI.
11523 (fetch_core_registers): Make static. Rewrite using supply_register.
11524 (arm_netbsd_core_fns): New core-file type specification.
11525 (_initialize_arm_netbsd_nat): New function.
11527 2002-02-21 Christopher Faylor <cgf@redhat.com>
11529 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11532 2002-02-20 Christopher Faylor <cgf@redhat.com>
11534 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11537 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11539 * jv-exp.y (parse_number): Change type of implicit longs
11540 to builtin_type_uint64.
11542 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11544 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11545 to be an integer instead of a `union wait'.
11547 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11549 * mips-linux-nat.c: Call the operating system GNU/Linux.
11550 * mips-linux-tdep.c: Likewise.
11551 * mips-tdep.c: Likewise.
11553 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11556 * jv-exp.y (parse_number): Handle 64-bit integers.
11558 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11560 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11561 AC_STDC_HEADERS to AC_HEADER_STDC.
11562 * gdbserver/configure: Regenerated.
11564 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11566 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11568 * sparc-tdep.c (get_longjmp_target): Likewise.
11570 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11572 * News: Add news about ARM and Multi-arch. Mention the new target
11575 2002-02-19 Jim Blandy <jimb@redhat.com>
11577 * stabsread.c (error_type_complaint): Improve error message.
11579 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11581 * gdbserver/README: Update documentation.
11582 * gdbserver/configure.in: Update configury to match documentation.
11583 * gdbserver/Makefile.in: Likewise.
11584 * gdbserver/configure: Regenerated.
11585 * gdbserver/aclocal.m4: New file, generated by aclocal.
11586 * gdbserver/config.in: New file, generated by autoheader.
11588 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11590 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11593 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11595 * arm-tdep.h (enum arm_float_model): New enum.
11596 (struct gdbarch_tdep): Add fp_model.
11597 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11598 up floating-point conversions until we know the floating-point model
11599 in use by the inferior. Don't complain about being unable to
11600 determine the ABI of the inferior when we don't have one.
11601 (arm_extract_return_value): Support different floating-point models.
11602 (arm_store_return_value): Likewise.
11603 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11605 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11607 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11609 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11610 of ``current_gdbarch''.
11612 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11614 * armnbsd-nat.c : ANSIfy all function declarations.
11615 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11616 (fetch_inferior_registers): Re-implement in terms of above.
11617 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11618 (store_inferior_registers): Re-implement in terms of above.
11620 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11622 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11624 * arm-linux-tdep.c: Likewise.
11625 * config/arm/tm-linux.h: Likewise.
11627 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11629 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11630 * config/arm/nbsd.mt (TM_FILE): Delete.
11631 * config/arm/tm-nbsd.h: Delete.
11633 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11635 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11636 Initialize CALL_DUMMY_LENGTH.
11638 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11640 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11642 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11643 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11644 defines one thing and that is incorrect for this port.
11645 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11647 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11649 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11651 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11653 * win32-nat.c (display_selector): New function. Displays information
11654 about the information returned by GetThreadSelectorEntry API function.
11655 (display_selectors): New function. Displays the infomation of
11656 the selector given as argument, or of CS, DS ans FS selectors
11657 if no argument is given.
11658 ( _initialize_inftarg): Add "w32" as info prefix command.
11659 Add "info w32 selector" as command calling display_selectors.
11661 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11663 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11664 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11667 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11669 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11671 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11673 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11674 (arm_fix_call_dummy): Call it.
11675 (arm_call_dummy_breakpoint_offset): Delete.
11676 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11677 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11679 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11681 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11682 Default to func_frame_chain_valid.
11683 * gdbarch.h, gdbarch.c: Re-generate.
11684 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11686 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11688 * ppc-linux-nat.c: Update copyright.
11689 (fetch_register, store_register): Add tid parameter, don't compute
11691 (fetch_ppc_registers, store_ppc_registers): Add tid
11692 parameter. Pass it along to callees.
11693 (fetch_inferior_registers, store_inferior_registers): Compute tid
11694 here, and pass it to calleed functions.
11695 (fill_gregset, supply_fpregset): Clean up formatting.
11697 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11699 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11700 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11702 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11704 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11705 * gdbarch.c gdbarch.h: Regenerate.
11706 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11708 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11709 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11710 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11712 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11713 * arm-tdep.c (arm_get_longjmp_target): New function.
11714 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11715 this to a positive value register arm_get_longjmp_target as the
11717 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11718 (arm_linux_init_abi): Set up longjmp description in tdep.
11719 * armnbsd-nat.c (get_longjmp_target): Delete.
11720 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11721 description in tdep.
11722 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11723 (get_longjmp_target): Delete declaration.
11724 (GET_LONGJMP_TARGET): Delete.
11725 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11726 (GET_LONGJMP_TARGET): Delete.
11728 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11730 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11731 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11732 of ``current_gdbarch''.
11734 2002-02-17 Tom Tromey <tromey@redhat.com>
11736 * cli/cli-cmds.c (compare_strings): New function.
11737 (complete_command): Only print each unique item once.
11738 * completer.h (complete_line): Declare.
11739 * completer.c (complete_line): New function.
11740 (line_completion_function): Use it.
11742 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11744 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11745 * gdbarch.h, gdbarch.c: Re-generate.
11747 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11749 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11751 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11753 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11754 * valops.c (value_arg_coerce): Don't take the address of a reference
11755 to convert an argument to a reference.
11757 2002-02-15 Christopher Faylor <cgf@redhat.com>
11759 * win32-nat.c (get_image_name): New function.
11760 (handle_load_dll): Use get_image_name function.
11761 (get_child_debug_event): Avoid registering debug events until possibly
11762 execed process is started.
11763 (child_create_inferior): Allow invocation via shell so that command
11764 line redirection, etc. works ok.
11765 (_initialize_inftarg): Add new command: "set shell" to control whether
11766 a shell is used to start a process.
11768 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11770 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11771 instead of find_register_by_number.
11772 (cannot_store_register): Likewise.
11774 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11776 * dwarf2read.c: Replace fprintf (stderr, ...) by
11777 fprintf_unfiltered (gdb_stderr, ...).
11779 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11781 * gdbserver/gdbserver.1: Document --attach.
11783 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11785 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11787 * arm-tdep.c (arm_default_arm_le_breakpoint)
11788 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11789 (arm_default_thumb_be_breakpoint): New. Initialize them from
11790 traditional breakpoint defines.
11791 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11792 (arm_gdbarch_init): Initialize new breakpoint variables.
11793 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11794 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11795 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11796 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11798 (arm_netbsd_init_abi_common): ... here; new function.
11799 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11800 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11801 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11802 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11804 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11806 * arm-tdep.h (enum arm_abi): New enum.
11807 (struct gdbarch_tdep): New structure.
11808 (LOWEST_PC): Provide a default.
11809 (arm_gdbarch_register_os_abi): Declare new function.
11810 * arm-tdep.c (arm_abi_names): New array.
11811 (process_note_abi_tag_sections): New function.
11812 (get_elfosabi): New function.
11813 (arm_gdbarch_register_os_abi): New function.
11814 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11815 support for that ABI has been built in, then call the appropriate
11816 configuration routine. Use gdbarch_num_regs() to get the number
11818 (arm_dump_tdep): New function.
11819 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11820 place-holder functions.
11821 (_initialize_arm_tdep): Register them.
11822 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11824 * armnbsd-tdep.c: New file.
11825 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11826 * config/arm/nbsd.mt (TDEPFILES): Add it.
11827 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11829 * armnbsd-nat.c: Include regcache.h.
11830 * Makefile.in (armnbsd-nat.o): Update dependency list.
11832 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11834 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11836 * gdbserver/Makefile.in: Fix typos in target rules.
11838 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11840 Fix part of PR gdb/267.
11841 * linespec.c (find_methods): Handle constructors specially for now.
11843 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11845 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11847 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11848 standard_coerce_float_to_double().
11850 2002-02-14 Christopher Faylor <cgf@redhat.com>
11852 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11855 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11857 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11858 find_variant_by_name, because it confuses the multiarch
11859 framework. Return NULL if there isn't an architecture with the
11860 user supplied name, instead of forcing a different one without
11861 recording the change with the multiarch machinery.
11862 (find_variant_by_name): Delete.
11864 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11866 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11867 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11869 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11871 * stack.c (print_frame_info_base): When calling
11872 print_frame_info_listing_hook, set current_source_symtab.
11874 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11876 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11877 and remove unused $(INCLUDE_DIR).
11878 Add regcache.c to OBS.
11879 Add generated register protocol files to clean target.
11880 Update dependencies for new objects, obsolete old target code.
11882 * gdbserver/linux-low.c: Remove all platform-specific code to
11883 new files. Remove various dead code. Update to use regcache
11885 * gdbserver/remote-utils.c (fromhex): Add return statement
11887 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11889 (input_interrupt): Add integer parameter to match prototype
11890 of a signal handler.
11891 (outreg): Use register_data ().
11892 (prepare_resume_reply): Use gdbserver_expedite_regs.
11893 * gdbserver/server.c (main): Dynamically allocate own_buf because
11894 PBUFSIZ is no longer constant. Use registers_to_string () and
11895 registers_from_string ().
11896 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11897 for error (), fatal (), and warning (). Update definition of
11898 PBUFSIZ to use regcache functionality. Add include guard.
11899 * gdbserver/utils.c (fatal): Add missing ``const''.
11900 (warning): New function.
11902 * regformats/regdat.sh: Include "regcache.h" in generated files.
11903 Provide init_registers () function.
11904 * regformats/regdef.h: Add prototype for set_register_cache ().
11907 * gdbserver/linux-arm-low.c: New file.
11908 * gdbserver/linux-i386-low.c: New file.
11909 * gdbserver/linux-ia64-low.c: New file.
11910 * gdbserver/linux-m68k-low.c: New file.
11911 * gdbserver/linux-mips-low.c: New file.
11912 * gdbserver/linux-ppc-low.c: New file.
11913 * gdbserver/linux-sh-low.c: New file.
11915 * gdbserver/regcache.c: New file.
11916 * gdbserver/regcache.h: New file.
11918 * gdbserver/low-linux.c: Removed obsolete file.
11920 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11922 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11923 * config/i386/linux.mt: Likewise.
11924 * config/ia64/linux.mt: Likewise.
11925 * config/m68k/linux.mh: Likewise.
11926 * config/powerpc/linux.mh: Likewise.
11927 * config/mips/linux.mt: Likewise.
11929 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11931 * config/i386/i386lynx.mh: Mark gdbserver variables
11932 as (currently) obsolete for this target.
11933 * config/i386/nbsd.mt: Likewise.
11934 * config/i386/nbsdelf.mt: Likewise.
11935 * config/m32r/m32r.mt: Likewise.
11936 * config/m68k/m68klynx.mh: Likewise.
11937 * config/m68k/nbsd.mt: Likewise.
11938 * config/m68k/sun3os4.mh: Likewise.
11939 * config/mips/vr5000.mt: Likewise.
11940 * config/ns32k/nbsd.mt: Likewise.
11941 * config/pa/hppabsd.mh: Likewise.
11942 * config/pa/hppaosf.mh: Likewise.
11943 * config/powerpc/nbsd.mt: Likewise.
11944 * config/rs6000/rs6000lynx.mh: Likewise.
11945 * config/s390/s390.mt: Likewise.
11946 * config/s390/s390x.mt: Likewise.
11947 * config/sparc/sparclynx.mh: Likewise.
11948 * config/sparc/sun4os4.mh: Likewise.
11949 * config/i386/x86-64linux.mt: Likewise.
11950 * config/sparc/linux.mh: Likewise.
11952 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11954 * configure.tgt: Configure gdbserver only for known working
11955 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11956 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11957 SUBDIRS if it is configured. Update comment for ${nativefile}.
11958 * configure: Regenerated.
11960 2002-02-13 Michael Snyder <msnyder@redhat.com>
11962 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11964 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11965 (default_gcore_mach): Just return 0, work around a problem in bfd.
11966 (default_gcore_target): OK to return NULL if exec_bfd is null.
11967 (make_mem_sec): Use a cast, avoid a warning.
11969 * procfs.c (find_memory_regions_callback): Use a cast instead of
11970 calling host_pointer_to_address (which complains if
11971 sizeof (host pointer) != sizeof (target pointer)).
11972 (procfs_make_note_section): Avoid overflow in psargs string.
11974 * procfs.c (procfs_make_note_section): Make the default
11975 implementation return an error.
11977 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11979 * procfs.c (procfs_make_note_section): Provide a default definition
11980 (for alpha-dec-osf4.0f). Fix typos.
11982 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11984 * linux-proc.c: Add include of regcache.h.
11985 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11987 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11989 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11990 * memattr.c (create_mem_region): Disallow useless empty region.
11991 Regions are half-open intervals, so allow [A..B) [B..C) as
11994 2002-02-13 Michael Chastain <mec@shout.net>
11996 * defs.h: Kill CONST_PTR.
11997 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11998 * c-lang.c (c_builtin_types): Likewise.
11999 * ch-lang.c (ch_builtin_types): Likewise.
12000 * f-lang.c (f_builtin_types): Likewise.
12001 * language.c (unknown_builtin_types): Likewise.
12002 * m2-lang.c (m2_builtin_types): Likewise.
12003 * p-lang.c (pascal_builtin_types): Likewise.
12004 * scm-lang.c (c_builtin_types): Likewise.
12006 2002-02-13 Keith Seitz <keiths@redhat.com>
12008 * arm-tdep.h (arm_get_next_pc): Add declaration.
12010 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12012 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12013 with other related struct-returning functions.
12014 (arm_extract_struct_value_address): New function.
12015 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12016 initialize float_format, double_format and long_double_format as
12017 appropriate to the endianness of the target.
12018 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12019 (arm_use_struct_convention): Delete declaration.
12020 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12022 2002-02-13 Keith Seitz <keiths@redhat.com>
12024 * defs.h (core_addr_to_string_nz): New function.
12026 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12028 Apply missing bits of 2002-01-15 patch.
12029 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12030 (fill_fpregset): Use i387_fill_fsave.
12032 2002-02-12 Keith Seitz <keiths@redhat.com>
12034 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12035 (core_addr_to_string_nz): New function.
12037 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12039 * arm-linux-nat.c: Really include arm-tdep.h.
12040 * config/arm/tm-linux.h (struct type, struct value): Declare.
12042 2002-02-11 Michael Snyder <msnyder@redhat.com>
12044 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12045 (gcore section): Ifdef for Solaris and Unixware only.
12046 (procfs_do_thread_registers): Unixware needs one lwpstatus
12047 per thread (not one prstatus or pstatus).
12048 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12049 not over all gdb threads. For unixware, call elfcore_write_pstatus
12050 once before iterating over threads.
12052 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12054 * arm-tdep.h: New file.
12055 * arm-tdep.c: Include arm-tdep.h.
12056 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12057 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12058 (arm_print_float_info, arm_register_type, convert_to_extended)
12059 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12060 (arm_extract_return_value, arm_register_name): Make static.
12061 (arm_software_single_step): Similarly. Fix types in declaration.
12062 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12063 (arm_store_return_value, arm_store_struct_return): New functions.
12064 (arm_gdbarch_init): Register the above functions. Also register
12065 call_dummy_start_offset, sizeof_call_dummy_words,
12066 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12067 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12068 max_register_virtual_size, register_size. Set up
12069 prologue_cache.saved_regs here, rather than ...
12070 (_initialize_arm_tdep): ... here.
12071 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12073 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12074 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12075 (arm_print_float_info, arm_register_type, convert_to_extended)
12076 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12077 (arm_extract_return_value, arm_register_name): Delete declarations.
12078 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12079 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12080 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12081 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12082 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12083 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12084 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12085 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12086 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12087 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12088 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12089 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12091 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12092 * remote-rdi.c remote-rdp.c: Likewise.
12093 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12094 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12095 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12098 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12099 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12100 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12101 from non-ARM_ prefixed definitions.
12102 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12104 * remote-rdi.c remote-rdp.c: Likewise.
12105 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12107 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12109 * arm-tdep.c (arm_frameless_function_invocation)
12110 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12111 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12112 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12113 (arm_pop_frame, arm_get_next_pc): Make static.
12114 (arm_gdbarch_init): Register above in gdbarch structure.
12115 (arm_read_fp): Renamed from arm_target_read_fp.
12116 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12117 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12118 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12119 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12120 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12121 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12122 (arm_pc_is_thumb_dummy): Delete declarations.
12123 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12124 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12125 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12126 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12128 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12130 * symtab.c (compare_search_syms): New function.
12131 (sort_search_symbols): New function.
12132 (search_symbols): Sort symbols after searching rather than
12135 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12137 * NEWS: Linux -> GNU/Linux.
12139 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12141 * gdbarch.sh: For for level one methods, disallow a definition
12142 when partially multi-arched. Add comments explaining rationale.
12143 * gdbarch.h: Re-generate.
12145 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12147 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12148 multi-arch partial.
12150 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12152 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12153 field. Use diff -u.
12154 * gdbarch.c: Re-generate.
12156 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12158 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12159 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12162 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12164 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12165 multi-arch partial.
12166 (PUSH_ARGUMENTS): Switch to using predefault.
12167 * gdbarch.c: Regenerate.
12169 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12171 * valops.c (PUSH_ARGUMENTS): Delete definition.
12172 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12173 partial. Default to default_push_arguments.
12174 * gdbarch.h, gdbarch.c: Regenerate.
12176 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12178 * defs.h (throw_exception): Rename return_to_top_level. Update
12180 * utils.c (error_stream, internal_verror, quit): Ditto.
12181 * top.c (throw_exception, catcher): Ditto.
12182 * sparclet-rom.c (sparclet_load): Ditto.
12183 * remote.c (interrupt_query, minitelnet): Ditto.
12184 * remote-sds.c (interrupt_query): Ditto.
12185 * remote-mips.c (mips_error, mips_kill): Ditto.
12186 * ocd.c (interrupt_query): Ditto.
12187 * monitor.c (monitor_interrupt_query): Ditto.
12188 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12189 * target.h: Update comment.
12191 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12193 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12195 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12196 default_double_format.
12197 * gdbarch.h, gdbarch.c: Re-generate.
12198 * findvar.c (floatformat_unknown): Delete variable definition.
12199 * doublest.h (floatformat_unknown): Delete variable declaration.
12201 2002-02-09 Jim Blandy <jimb@redhat.com>
12203 * stabsread.c (read_type): Add code to parse Sun's syntax for
12204 prototyped function types.
12206 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12208 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12209 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12211 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12213 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12214 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12215 now _initialize_xcoffsolib gets called again and overrides the
12216 commands from solib.c in a native configuration.
12218 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12220 * doublest.c (store_typed_floating): Don't try to return a value.
12223 2002-02-08 Jim Blandy <jimb@redhat.com>
12225 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12226 is prototyped and has no arguments, print its argument list as
12229 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12231 * MAINTAINERS (write-after-approval): Add myself.
12232 (paper-trail): I've escaped!
12234 2002-02-08 Christopher Faylor <cgf@redhat.com>
12236 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12238 (_initialize_check_for_gdb_ini): Ditto.
12240 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12242 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12243 xaprintf -> xasprintf.
12245 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12247 * win32-nat.c: Remove use of printf and sprintf functions.
12249 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12251 * arm-tdep.c (arm_frame_chain_valid): Make static.
12252 (arm_push_arguments): Likewise.
12253 (arm_gdbarch_init): New function.
12254 (_initialize_arm_tdep): Call it.
12255 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12256 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12257 (FRAME_CHAIN_VALID): Delete.
12258 (arm_frame_chain_valid): Delete declaration.
12259 (PUSH_ARGUMENTS): Delete.
12260 (arm_push_arguments): Delete declaration.
12261 (CALL_DUMMY_P): Delete.
12263 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12264 Corinna Vinschen <vinschen@redhat.com>
12266 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12267 on builtin float types.
12269 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12271 * utils.c: Include <curses.h> before "bfd.h".
12272 * tui/tui-hooks.c: Likewise.
12273 * tui/tui.c: Likewise.
12274 * tui/tuiCommand.c: Likewise.
12275 * tui/tuiData.c: Likewise.
12276 * tui/tuiDataWin.c: Likewise.
12277 * tui/tuiDisassem.c: Likewise.
12278 * tui/tuiGeneralWin.c: Likewise.
12279 * tui/tuiIO.c: Likewise.
12280 * tui/tuiLayout.c: Likewise.
12281 * tui/tuiRegs.c: Likewise.
12282 * tui/tuiSource.c: Likewise.
12283 * tui/tuiSourceWin.c: Likewise.
12284 * tui/tuiStack.c: Likewise.
12285 * tui/tuiWin.c: Likewise.
12287 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12289 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12290 to include space for pseudoregs as well. Update loops accordingly.
12291 (sh_fp_frame_init_saved_regs): Ditto.
12292 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12294 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12296 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12297 Add Richard Earnshaw to Arm maintainers.
12299 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12301 * defs.h (warning_begin): Delete declaration.
12303 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12306 2002-02-07 Michael Snyder <msnyder@redhat.com>
12308 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12309 Logic bug, remove misplaced else.
12311 2002-02-07 Klee Dienes <klee@apple.com>
12313 * fork-inferior.c (fork_inferior): Add '!' to the list of
12314 characters that need to be quoted when building a string for the
12315 shell. Quote '!' specifically with a backslash, since CSH chokes
12316 when trying to evaluate "str!str".
12318 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12320 * rdi-share/host.h: Only provide a typedef for bool if it is not
12323 2002-02-04 Michael Snyder <msnyder@redhat.com>
12325 * breakpoint.h (enum bptype): Add new overlay event bp type.
12326 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12328 * breakpoint.c (create_internal_breakpoint): New function.
12329 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12330 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12331 (create_thread_event_breakpoint): Ditto.
12332 (create_solib_event_breakpoint): Ditto.
12333 (create_overlay_event_breakpoint): New function.
12334 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12335 (update_breakpoints_after_exec): Delete and re-initialize
12336 overlay event breakpoints after an exec. Add FIXME comment
12337 about longjmp breakpoint.
12338 (print_it_typical): Ignore overlay event breakpoints.
12339 (print_one_breakpoint): Ditto.
12341 (bpstat_what): Do not stop for overlay event breakpoints.
12342 (delete_breakpoint): Don't delete overlay event breakpoints.
12343 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12344 (breakpoint_re_set): Re-create overlay event breakpoint.
12346 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12347 (overlay_manual_command): Disable overlay breakpoints.
12348 (overlay_off_command): Disable overlay breakpoints.
12350 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12352 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12353 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12354 to here from config/tm-arm.h.
12355 (coff_sym_is_thumb): Make static.
12356 (arm_elf_make_msymbol_special): New function.
12357 (arm_coff_make_msymbol_special): New function.
12358 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12359 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12360 (coff_sym_is_thumb): Delete declaration.
12361 (arm_elf_make_msymbol_special): Declare.
12362 (arm_coff_make_msymbol_special): Declare.
12363 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12364 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12366 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12368 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12370 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12372 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12373 * gdbarch.c gdbarch.h: Regenerate.
12374 * arch-utils.c (default_print_float_info): New function.
12375 * arch-utils.h (default_print_float_info): Prototype it.
12376 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12377 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12378 (PRINT_FLOAT_INFO): Document it.
12380 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12381 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12382 (PRINT_FLOAT_INFO): Define.
12384 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12386 * win32-nat.c (_initialize_check_for_gdb_ini):
12387 Add typecast to sprintf argument to suppress a warning.
12389 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12391 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12392 to allow easier handling of pass state.
12393 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12394 that gives exception name and address.
12395 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12396 and set last_sig value to ourstatus->value.sig. Some missing
12398 (child_continue): Correctly report continue_status.
12399 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12400 TARGET_SIGNAL_0 (new default value).
12401 (child_resume): consider sig argument passed to decide if
12402 the exception should be passed to debuggee or not.
12404 2002-02-05 Michael Snyder <msnyder@redhat.com>
12406 * regcache.c (fetch_register): Call target_fetch_register
12407 only if we don't call FETCH_PSEUDO_REGISTER.
12408 (store_register): Call target_store_register only if we
12409 don't call STORE_PSEUDO_REGISTER.
12411 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12413 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12414 ELF_MAKE_MSYMBOL_SPECIAL.
12415 * gdbarch.c, gdbarch.h: Regenerate.
12416 * arch-utils.c (default_make_msymbol_special): New function.
12417 * arch-utils.h (default_make_msymbol_special): Export.
12418 * elfread.c (elf_symtab_read): Compile use of
12419 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12421 * coffread.c (coff_symtab_read): Ditto, for
12422 COFF_MAKE_MSYMBOL_SPECIAL.
12424 2002-02-05 Jim Blandy <jimb@redhat.com>
12426 * solib-svr4.c (svr4_truncate_ptr): New function.
12427 (svr4_relocate_section_addresses): Do the address arithmetic with
12428 the appropriate truncation for target addresses, even when
12429 CORE_ADDR is larger than a target address.
12431 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12433 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12436 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12438 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12441 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12443 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12445 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12447 * gdbserver/linux-low.c: Remove unused include files.
12449 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12451 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12452 (read_inferior_memory): Use it.
12453 (write_inferior_memory): Likewise.
12455 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12457 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12458 grubbing through sys_errlist.
12460 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12462 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12464 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12465 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12467 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12469 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12470 (do_sfunc, set_cmd_sfunc): New functions.
12472 * command.h (struct cmd_list_element): Add field func.
12473 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12474 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12475 * cli/cli-decode.h: Ditto.
12477 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12478 (help_all, help_cmd_list): Ditto.
12479 (find_cmd, complete_on_cmdlist): Ditto.
12480 * top.c (execute_command): Ditto.
12482 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12485 * infcmd.c (notice_args_read): Fix function signature.
12487 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12488 * cli/cli-decode.c (add_set_cmd): Ditto.
12489 * utils.c (initialize_utils): Ditto.
12490 * maint.c (_initialize_maint_cmds): Ditto.
12491 * infrun.c (_initialize_infrun): Ditto.
12492 * demangle.c (_initialize_demangler): Ditto.
12493 * remote.c (add_packet_config_cmd): Ditto.
12494 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12495 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12496 * proc-api.c (_initialize_proc_api): Ditto.
12497 * kod.c (_initialize_kod): Ditto.
12498 * valprint.c (_initialize_valprint): Ditto.
12499 * top.c (init_main): Ditto.
12500 * infcmd.c (_initialize_infcmd): Ditto.
12501 * corefile.c (_initialize_core): Ditto.
12502 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12503 * arch-utils.c (initialize_current_architecture): Ditto.
12504 (_initialize_gdbarch_utils): Ditto.
12505 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12507 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12508 * wince.c (_initialize_inftarg): Ditto.
12509 * symfile.c (_initialize_symfile): Ditto.
12510 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12511 * language.c (_initialize_language): Ditto.
12512 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12514 2002-02-04 Michael Snyder <msnyder@redhat.com>
12516 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12518 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12520 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12521 Add rules for building the register data files.
12523 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12525 * regformats/regdat.sh: Add braces to the definition of
12526 expedite_regs_${arch}.
12528 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12530 * regformats/regdef.h (struct reg): Add comment describing the
12531 requirements for offset and size fields.
12533 2002-02-04 Andreas Schwab <schwab@suse.de>
12535 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12536 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12538 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12540 * gdbarch.sh (copyright): Update years in generated header.
12541 (SMASH_TEXT_ADDRESS): Add rule.
12542 * gdbarch.h, gdbarch.c: Re-generate.
12543 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12544 * dbxread.c: Likewise.
12545 * dwarfread.c: Likewise.
12546 * elfread.c: Likewise.
12547 * somread.c: Likewise.
12549 * arm-tdep.c (arm_smash_text_address): New function.
12550 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12552 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12554 Add support for hardware watchpoints on win32 native.
12555 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12556 CONTEXT_DEBUG_REGISTERS.
12557 (dr variable): New variable. Static array containing a local copy
12558 of debug registers.
12559 (debug_registers_changed): New variable. Reflects when debug registers
12560 are changed and need to be written to inferior.
12561 (debug_registers_used): New variable. Reflects when any debug register
12562 was set, used when new threads are created.
12563 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12565 (thread_rec): Set dr array if id is the thread of current_event .
12566 (child_continue, child_resume): Change the debug registers for all
12567 threads if debug_registers_changed.
12568 (child_add_thread): Change the debug registers if debug_registers_used.
12569 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12570 Link nm.h to new nm-cygwin.h file.
12571 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12572 of hardware registers.
12574 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12576 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12577 Restore behavour broken by 2002-01-20 Andrew Cagney
12578 <ac131313@redhat.com> IEEE_FLOAT removal.
12580 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12582 * c-valprint.c (c_val_print): Pass a proper valaddr to
12583 cp_print_class_method.
12584 * valops.c (search_struct_method): If there is only one method
12585 and args is NULL, return that method.
12587 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12589 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12590 accessing tag_name directly.
12592 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12594 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12595 of accessing tag_name directly.
12597 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12600 * gdbtypes.c (replace_type): New function.
12601 * gdbtypes.h (replace_type): Add prototype.
12602 * stabsread.c (read_type): Use replace_type.
12604 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12606 * Makefile.in (memattr.o): Add missing dependencies rule.
12608 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12610 * breakpoint.c (break_at_finish_command): Really export.
12611 (break_at_finish_at_depth_command): Ditto.
12612 (tbreak_at_finish_command): Ditto.
12613 * hppa-tdep.c: Include completer.h.
12614 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12615 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12617 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12619 * utils.c (do_write): New function.
12620 (error_stream): Rewrite combining the code from error_begin and
12622 (verror): Rewrite using error_stream.
12623 (error_begin): Delete function.
12625 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12627 * utils.c (error_begin): Make static.
12628 * defs.h (error_begin): Delete declaration.
12630 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12631 (decode_line_1): Use cplusplus_error instead of error_begin,
12632 cplusplus_hint and return_to_top_level.
12633 * coffread.c (coff_symfile_read): Use error instead of error_begin
12634 and return_to_top_level.
12635 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12637 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12639 * language.h (type_error, range_error): Make string parameter
12641 * language.c (warning_pre_print): Delete extern declaration.
12642 * dwarfread.c (warning_pre_print): Ditto.
12643 * language.c (type_error, range_error): Rewrite to use verror and
12644 vwarning instead of warning_begin.
12646 2002-02-01 Michael Snyder <msnyder@redhat.com>
12648 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12649 (set_ignore_count): Move misplaced comment back where it belongs.
12651 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12653 * command.h (NO_FUNCTION): Delete macro.
12654 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12655 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12656 * tracepoint.c (_initialize_tracepoint): Ditto.
12657 * cli/cli-decode.c (add_set_cmd): Ditto.
12658 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12660 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12662 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12663 Update ``this'' pointer when calling virtual functions.
12665 2002-02-01 Michael Snyder <msnyder@redhat.com>
12667 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12668 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12670 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12672 * regformats/reg-arm.dat: New file.
12673 * regformats/reg-i386.dat: New file.
12674 * regformats/reg-ia64.dat: New file.
12675 * regformats/reg-m68k.dat: New file.
12676 * regformats/reg-mips.dat: New file.
12677 * regformats/reg-ppc.dat: New file.
12678 * regformats/reg-sh.dat: New file.
12679 * regformats/regdef.h: New file.
12680 * regformats/regdat.sh: New file.
12682 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12684 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12685 (arm_frame_args_address, arm_frame_locals_address): New functions.
12686 (arm_frame_num_args): New function.
12687 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12688 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12689 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12691 2002-01-31 Michael Snyder <msnyder@redhat.com>
12693 * breakpoint.c (break_at_finish_command): Export.
12694 (break_at_finish_at_depth_command): Export.
12695 (tbreak_at_finish_command): Export.
12696 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12697 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12698 "txbreak" commands, which are HPPA specific.
12700 * printcmd.c (disassemble_command): Remove an ancient
12701 artifact of an old merge.
12703 * symfile.h (enum overlay_debugging_state):
12704 Define enum constant values for overlay mode.
12705 * symfile.c (overlay_debugging): Use enums instead of literals.
12706 (overlay_is_mapped, overlay_auto_command,
12707 overlay_manual_command): Ditto.
12709 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12710 breakpoint_here_p, breakpoint_inserted_here_p,
12711 breakpoint_thread_match, bpstat_stop_status,
12712 describe_other_breakpoints, check_duplicates, clear_command):
12713 Coding standard fixes.
12715 * target.c (target_xfer_memory): Add spaces, coding standard.
12716 (do_xfer_memory): Add missing line to trust-readonly
12717 code: check bfd SEC_READONLY flag for section.
12719 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12721 * PROBLEMS: Fix typo, 5.1->5.1.1.
12723 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12725 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12726 data symbols, since we search based on textlow and texthigh.
12727 (find_pc_sect_symtab): Likewise.
12729 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12731 * defs.h (vwarning): Declare.
12732 * utils.c (vwarning): New function.
12733 (warning): Call vwarning.
12734 (warning_begin): Delete function.
12736 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12737 the warning message.
12738 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12741 2002-01-30 Michael Snyder <msnyder@redhat.com>
12743 * NEWS: Mention "set trust-readonly-sections" command.
12744 Mention generate-core-file command.
12746 2002-01-15 Michael Snyder <msnyder@redhat.com>
12748 * target.c: New command, "set trust-readonly-sections on".
12749 (do_xfer_memory): Honor the suggestion to trust readonly sections
12750 by reading them from the object file instead of from the target.
12751 (initialize_targets): Register command "set trust-readonly-sections".
12753 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12755 * parse.c (target_map_name_to_register): Simplify, search regs and
12756 pseudo-regs using a single loop.
12758 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12760 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12762 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12764 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12765 * config/i386/i386v42mp.mh: Add i387-nat.o .
12766 * i386v4-nat.c: Include i387-nat.h.
12767 (supply_fpregset): Use i387_supply_fsave.
12768 (fill_fpregset): Use i387_fill_fsave.
12770 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12772 * arm-tdep.c (arm_call_dummy_words): Define.
12773 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12774 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12775 (CALL_DUMMY_WORDS): Define.
12776 (arm_call_dummy_words): Declare.
12777 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12778 (arm_linux_call_dummy_words): Declare.
12780 2002-01-30 Andreas Schwab <schwab@suse.de>
12782 * m68klinux-nat.c: Fix last change to use regcache_collect
12783 instead of referencing registers[] directly.
12785 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12787 * parse.c (target_map_name_to_register): Delete code wrapped in
12788 #ifdef REGISTER_NAME_ALIAS_HOOK.
12790 2002-01-28 Michael Snyder <msnyder@redhat.com>
12792 * regcache.c (legacy_read_register_gen): Need to be able to
12793 read pseudo-register as well as real register.
12794 (legacy_write_register_gen): Ditto.
12796 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12798 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12799 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12800 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12801 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12802 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12803 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12804 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12805 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12806 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12807 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12808 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12809 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12810 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12811 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12812 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12813 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12814 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12815 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12816 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12817 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12819 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12821 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12822 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12823 (initialize_current_architecture): Update target_byte_order using
12824 information from BFD.
12825 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12826 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12828 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12830 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12831 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12833 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12834 #ifdef INVALID_FLOAT.
12835 * infcmd.c (do_registers_info): Ditto.
12836 * values.c (unpack_double): Ditto. Add comment.
12838 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12839 already commented out.
12841 2002-01-26 Andreas Schwab <schwab@suse.de>
12843 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12844 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12845 registers and add support for PTRACE_GETREGS.
12847 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12849 GDB 5.1.1 released from 5.1 branch.
12850 * NEWS: Add 5.1.1 news.
12851 * README: Sync with 5.1 branch.
12853 2002-01-23 Fred Fish <fnf@redhat.com>
12855 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12856 stabstring on initial malloc. Reallocing will copy it for us,
12859 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12861 * Makefile.in (hpread_h): Delete.
12862 (HFILES_NO_SRCDIR): Remove hpread.h.
12863 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12864 (hpread.o): Update dependencies.
12865 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12867 * hp-psymtab-read.c: Remove file.
12868 * hp-symtab-read.c: Remove file.
12869 * hpread.h: Remove file.
12871 * hpread.c: Merge all contents of hp-psymtab-read.c,
12872 hp-symtab-read.c and hpread.h into this file, as it was prior to
12875 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12876 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12877 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12878 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12880 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12882 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12883 fill_gregset): Call gdbarch_tdep() just once, assign result to
12884 variable and use that, instead of calling the function several
12887 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12889 * configure.host: Accept sparcv9 as alias for sparc64.
12890 * configure.tgt: Likewise.
12892 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12894 * solib-aix5.c (build_so_list_from_mapfile)
12895 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12896 arguments is not reversed.
12897 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12898 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12900 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12902 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12903 modified version of obsolete sh_fetch_pseudo_register.
12904 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12905 (sh4_register_read): New function.
12906 (sh_pseudo_register_write): New function. Renamed and modified
12907 version of obsolete sh_store_pseudo_register.
12908 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12909 (sh4_register_write): New function.
12910 (sh_gdbarch_init): Remove setting of gdbarch function
12911 fetch_pseudo_register and store_pseudo_register. Remove setting of
12912 register_convert_to_raw, register_convert_to_virtual,
12913 register_convertible.
12914 (sh_sh4_register_convertible): Delete. No longer needed. All is
12915 taken care by architecture specific functions
12916 register_read/register_write.
12917 (sh_sh4_register_convert_to_virtual): Make static.
12918 (sh_sh4_register_convert_to_raw): Ditto.
12920 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12922 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12923 (floatformat_is_nan, floatformat_mantissa): Ditto.
12925 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12926 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12927 builtin_type_ieee_double_little,
12928 builtin_type_ieee_double_littlebyte_bigword,
12929 builtin_type_m68881_ext, builtin_type_i960_ext,
12930 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12931 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12932 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12933 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12935 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12937 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12938 parameter. Set frameless flag if it exists and depended of
12939 whether the scanned function is frameless or not.
12940 (xstormy16_skip_prologue): If function is frameless, return
12941 result of xstormy16_scan_prologue().
12942 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12945 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12947 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12948 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12949 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12950 sh_sh4_register_byte, sh_sh4_register_raw_size,
12951 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12952 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12953 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12954 sh_store_pseudo_register, sh_do_pseudo_register): Call
12955 gdbarch_tdep() just once, assign result to variable and use that,
12956 instead of calling the function several times.
12958 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12960 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12961 macros instead of LAST_FPU_CTRL_REGNUM.
12962 (store_register): Likewise.
12964 2002-01-21 Jim Blandy <jimb@redhat.com>
12966 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12967 is up-to-date before running the program, not just when a program
12970 2002-01-21 Fred Fish <fnf@redhat.com>
12972 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12973 when we have found all instructions we are looking for.
12975 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12977 * arm-tdep.c (arm_register_name): New function.
12978 (arm_registers_names): Make static.
12979 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12980 (arm_register_name): Declare.
12981 (REGISTER_NAME): Use it.
12983 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12984 Kevin Buettner <kevinb@redhat.com>
12986 Convert arm targets to new FRAME interface.
12987 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12988 (arm_frame_find_save_regs): Delete.
12989 (arm_frame_init_saved_regs): New.
12990 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12991 Allocate extra_info as required. Convert all uses of fsr.regs
12992 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12994 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12995 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12996 (check_prologue_cache, save_prologue_cache): Likewise.
12997 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12998 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12999 (FRAME_FIND_SAVED_REGS): Delete.
13000 (arm_frame_find_saved_regs): Delete prototype.
13001 (arm_frame_init_saved_regs): New prototype.
13002 (FRAME_INIT_SAVED_REGS): Define.
13004 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13006 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13008 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13010 From Jeff Law <law@redhat.com>:
13011 * infttrace.c: Include <sys/pstat.h>.
13012 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13013 exec file if the ttrace equivalent fails.
13015 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13017 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13018 (closeLogFile): Ditto.
13020 2002-01-20 Michael Chastain <mec@shout.net>
13022 * top.c (print_gdb_version): Bump copyright year to 2002.
13024 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13026 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13027 Zannoni and Eli Zaretskii.
13029 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13031 * buildsym.c: Update copyright years.
13032 * c-typeprint.c: Likewise.
13033 * dwarf2read.c: Likewise.
13034 * f-typeprint.c: Likewise.
13035 * gdbtypes.c: Likewise.
13036 * gdbtypes.h: Likewise.
13037 * hp-symtab-read.c: Likewise.
13038 * hpread.c: Likewise.
13039 * mdebugread.c: Likewise.
13040 * p-typeprint.c: Likewise.
13042 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13044 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13045 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13046 byte-order selectable.
13047 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13048 * arch-utils.c: Ditto.
13049 (set_endian): Ditto.
13050 (set_endian_from_file): Ditto.
13051 * gdbserver/low-sim.c (create_inferior): Ditto.
13052 * gdbarch.sh: Ditto.
13053 * gdbarch.h: Re-generate.
13054 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13055 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13056 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13057 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13058 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13059 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13060 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13061 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13063 * config/mips/tm-wince.h: Remove #undef of macro
13064 TARGET_BYTE_ORDER_SELECTABLE.
13065 * config/sh/tm-wince.h: Ditto.
13067 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13069 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13070 member function fields. Add accessor macro
13071 TYPE_FN_FIELD_ARTIFICIAL.
13072 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13073 * c-typeprint.c (c_type_print_base): Skip artificial member
13076 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13078 * f-typeprint.c: Delete unused function f_type_print_args.
13079 * p-typeprint.c: Delete unused function pascal_type_print_args.
13081 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13083 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13084 comment. Add ``artificial'' to ``union field_location''.
13086 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13088 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13089 * mdebugread.c (parse_symbol): Likewise.
13090 * stabsread.c (define_symbol): Likewise.
13091 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13092 initializing TYPE_FIELD_BITPOS to n (obsolete).
13093 (hpread_doc_function_type): Likewise.
13094 * hpread.c (hpread_function_type): Likewise.
13096 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13098 * configure.in (host_makefile_frag): Only require a host makefile
13099 fragment when a native build.
13100 * configure: Re-generate.
13102 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13104 * doublest.h (floatformat_from_type): Declare.
13105 * doublest.c (floatformat_from_type): New function.
13106 (convert_typed_floating): Use.
13108 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13109 call to function floatformat_from_type.
13111 * gdbarch.sh (IEEE_FLOAT): Delete.
13112 * gdbarch.h, gdbarch.c: Re-generate.
13113 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13114 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13115 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13116 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13117 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13118 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13119 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13120 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13121 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13122 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13123 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13124 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13126 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13127 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13128 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13129 * sh-tdep.c (sh_gdbarch_init): Ditto.
13130 * mips-tdep.c (mips_gdbarch_init): Ditto.
13131 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13132 * cris-tdep.c (cris_gdbarch_init): Ditto.
13134 2002-01-20 Jiri Smid <smid@suse.cz>
13136 * configure.host, configure.tgt: Support x86-64.
13137 * NEWS: Note new target x86-64.
13139 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13140 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13141 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13142 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13143 x86-64-linux-nat.o): Fix dependencies.
13145 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13147 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13148 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13149 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13150 * config/sparc/xm-sun4os4.h: Delete file.
13151 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13153 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13155 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13156 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13157 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13158 * config/i386/i386lynx.mh (XM_FILE): Delete.
13159 * config/rs6000/xm-rs6000ly.h: Delete file.
13160 * config/sparc/xm-sparclynx.h: Delete file.
13161 * config/m68k/xm-m68klynx.h: Delete file.
13162 * config/i386/xm-i386lynx.h: Delete file.
13163 * config/xm-lynx.h: Delete file.
13164 * config/djgpp/fnchange.lst: Update.
13166 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13168 * alpha-tdep.c (alpha_register_byte): New function.
13169 (alpha_register_raw_size): Ditto.
13170 (alpha_register_virtual_size): Ditto.
13171 (alpha_skip_prologue_internal): Renamed from
13172 alpha_skip_prologue.
13173 (alpha_skip_prologue): New version that calls
13174 alpha_skip_prologue_internal.
13175 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13176 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13177 second argument from alpha_skip_prologue.
13178 (REGISTER_BYTE): Use alpha_register_byte.
13179 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13180 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13181 (FRAMELESS_FUNCTION_INVOCATION): Use
13182 generic_frameless_function_invocation_not.
13183 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13184 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13186 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13188 * config/mips/xm-news-mips.h: Delete file.
13189 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13191 * config/m88k/xm-m88k.h: Delete file.
13192 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13193 * config/m88k/xm-delta88v4.h: Ditto.
13194 * config/m88k/xm-delta88.h: Ditto.
13196 * config/alpha/xm-fbsd.h: Delete file.
13197 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13199 * config/sparc/xm-sparc.h: Delete file.
13200 * Makefile.in (xm-sun4os4.h): Delete dependency.
13201 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13202 * config/sparc/xm-sun4os4.h: Ditto.
13203 * config/sparc/xm-linux.h: Ditto.
13205 * config/i386/xm-windows.h: Delete file.
13207 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13209 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13210 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13212 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13214 * alpha-tdep.c (alpha_call_dummy_words): New.
13215 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13216 (CALL_DUMMY_P): Define.
13217 (CALL_DUMMY_WORDS): Define.
13218 (SIZEOF_CALL_DUMMY_WORDS): Define.
13220 2002-01-19 Per Bothner <per@bothner.com>
13222 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13223 isn't NULL, which can happen with some gcj-3.x-produced code.
13225 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13227 * alpha-tdep.c (alpha_register_virtual_type): New function.
13228 (alpha_init_frame_pc_first): Ditto.
13229 (alpha_fix_call_dummy): Ditto.
13230 (alpha_store_struct_return): Ditto.
13231 (alpha_extract_struct_value_address): Ditto.
13232 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13233 alpha_register_virtual_type.
13234 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13235 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13236 alpha_extract_struct_value_address.
13237 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13238 (INIT_FRAME_PC): Use init_frame_pc_noop.
13239 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13241 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13243 * i386gnu-nat.c: Include "i386-tdep.h".
13244 (fetch_fpregs): Simplify code dealing with uninitialized floating
13245 point states such that it doesn't require FP7_REGNUM.
13247 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13249 * alpha-tdep.c (frame_extra_info): New.
13250 (alpha_find_saved_regs): Make static. Use
13252 (alpha_frame_init_saved_regs): New function.
13253 (alpha_frame_saved_pc): Use frame->extra_info.
13254 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13255 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13256 (init_extra_frame_info): Rename to...
13257 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13258 (alpha_print_extra_frame_info): New function.
13259 (alpha_frame_locals_address): Ditto.
13260 (alpha_frame_args_address): Ditto.
13261 (alpha_pop_frame): Use frame->extra_info.
13262 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13263 alpha_frame_args_address.
13264 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13265 (alpha_find_saved_regs): Remove prototype.
13266 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13267 (EXTRA_FRAME_INFO): Remove.
13268 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13269 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13271 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13273 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13274 (alpha_cannot_fetch_register): Ditto.
13275 (alpha_cannot_store_register): Ditto.
13276 (alpha_register_convertible): Ditto.
13277 (alpha_use_struct_convention): Ditto.
13278 * config/alpha/tm-alpha.h: Update copyright years.
13279 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13280 (INNER_THAN): Use core_addr_lessthan.
13281 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13282 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13283 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13284 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13285 (FRAME_CHAIN): Remove unnecessary cast.
13287 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13289 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13292 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13294 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13295 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13296 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13297 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13298 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13299 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13300 * x86-64-linux-nat.c: Ditto.
13302 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13304 * alpha-tdep.c (alpha_register_name): New function.
13305 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13306 (REGISTER_NAME): Define.
13308 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13310 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13312 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13314 * alpha-tdep.c: Update copyright years.
13315 (alpha_next_pc): New function.
13316 (alpha_software_single_step): Ditto.
13317 * config/alpha/tm-alpha.h: Add prototype for
13318 alpha_software_single_step.
13320 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13322 * alphabsd-nat.c: Update copyright years.
13323 (fill_gregset): Use regcache_collect.
13324 (fill_fpregset): Likewise.
13325 (fetch_inferior_registers): Only fetch integer registers
13326 if requested to do so.
13327 (store_inferior_registers): Only store integer registers
13328 if requested to do so.
13330 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13332 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13333 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13334 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13335 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13336 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13337 * config/arm/linux.mh (XDEPFILES): Delete.
13338 * config/arm/nbsd.mh (XDEPFILES): Delete.
13339 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13340 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13341 * config/i386/i386m3.mh (XDEPFILES): Delete.
13342 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13343 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13344 * config/i386/fbsd.mh (XDEPFILES): Delete.
13345 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13346 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13347 * config/i386/i386v4.mh (XDEPFILES): Delete.
13348 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13349 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13350 * config/i386/i386aix.mh (XDEPFILES): Delete.
13351 * config/i386/go32.mh (XDEPFILES): Delete.
13352 * config/i386/cygwin.mh (XDEPFILES): Delete.
13353 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13354 * config/i386/i386mach.mh (XDEPFILES): Delete.
13355 * config/i386/i386v32.mh (XDEPFILES): Delete.
13356 * config/i386/linux.mh (XDEPFILES): Delete.
13357 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13358 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13359 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13360 * config/i386/i386sco.mh (XDEPFILES): Delete.
13361 * config/i386/i386v.mh (XDEPFILES): Delete.
13362 * config/i386/nbsd.mh (XDEPFILES): Delete.
13363 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13364 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13365 * config/i386/symmetry.mh (XDEPFILES): Delete.
13366 * config/i386/obsd.mh (XDEPFILES): Delete.
13367 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13368 * config/ia64/linux.mh (XDEPFILES): Delete.
13369 * config/ia64/aix.mh (XDEPFILES): Delete.
13370 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13371 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13372 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13373 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13374 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13375 * config/m68k/linux.mh (XDEPFILES): Delete.
13376 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13377 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13378 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13379 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13380 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13381 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13382 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13383 * config/m88k/delta88.mh (XDEPFILES): Delete.
13384 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13385 * config/m88k/m88k.mh (XDEPFILES): Delete.
13386 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13387 * config/mips/linux.mh (XDEPFILES): Delete.
13388 * config/mips/irix6.mh (XDEPFILES): Delete.
13389 * config/mips/irix5.mh (XDEPFILES): Delete.
13390 * config/mips/irix4.mh (XDEPFILES): Delete.
13391 * config/mips/irix3.mh (XDEPFILES): Delete.
13392 * config/mips/decstation.mh (XDEPFILES): Delete.
13393 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13394 (NATDEPFILES): Move core-aout.o to here.
13395 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13396 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13397 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13398 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13399 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13400 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13401 * config/pa/hpux11.mh (XDEPFILES): Delete.
13402 * config/powerpc/aix.mh (XDEPFILES): Delete.
13403 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13404 * config/powerpc/linux.mh (XDEPFILES): Delete.
13405 * config/romp/rtbsd.mh: Rename XDEPFILES.
13406 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13407 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13408 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13409 * config/s390/s390.mh (XDEPFILES): Delete.
13410 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13411 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13412 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13413 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13414 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13415 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13416 * config/sparc/linux.mh (XDEPFILES): Delete.
13417 * config/vax/vaxult.mh (XDEPFILES): Delete.
13418 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13419 * Makefile.in (DEPFILES): Remove XDEPFILES.
13421 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13423 * utils.c (internal_verror): Fix comments, default is yes not no.
13424 Update queries to match. Default to quit and dump core.
13426 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13428 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13430 * defs.h, event-top.c, gdbcmd.h: Ditto.
13431 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13432 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13433 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13434 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13435 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13436 * mi/mi-main.c:Ditto.
13438 * stack.c, symfile.c: Update copyright.
13440 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13442 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13443 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13444 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13445 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13447 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13449 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13450 * gdbserver/low-lynx.c (myattach): Likewise.
13451 * gdbserver/low-nbsd.c (myattach): Likewise.
13452 * gdbserver/low-sim.c (myattach): Likewise.
13453 * gdbserver/low-sparc.c (myattach): Likewise.
13454 * gdbserver/low-sun3.c (myattach): Likewise.
13456 * gdbserver/low-linux.c (myattach): New function.
13458 * gdbserver/server.c (attach_inferior): New function.
13459 (main): Handle "--attach".
13461 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13463 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13466 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13468 * c-typeprint.c (is_type_conversion_operator): Add additional
13469 check for non-conversion operators.
13471 2002-01-15 Michael Snyder <msnyder@redhat.com>
13473 * linux-proc.c: Add "info proc" command, a la procfs.c.
13474 (read_mapping): New function, abstract and re-use code.
13475 (linux_find_memory_regions): Use new func read_mapping.
13476 (linux_info_proc_cmd): New function, implement "info proc".
13477 (_initialize_linux_proc): Add new command "info proc".
13479 2002-01-15 Michael Snyder <msnyder@redhat.com>
13481 * symfile.c (generic_load): Use bfd_map_over_sections method
13482 instead of manipulating bfd structure members directly.
13483 (add_section_size_callback): New function, bfd sections callback
13484 used by generic_load.
13485 (load_sections_callback): New function, bfd sections callback
13486 used by generic_load.
13488 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13490 [Based on work by Jim Blandy]
13491 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13492 (builtin_type_vec128): Export.
13493 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13495 (builtin_type_vec128): New builtin type for 128 bit vector
13497 (build_gdbtypes): Initialize builtin_type_v16qi and
13498 builtin_type_v8hi. Create the vec128 register builtin type
13500 (build_builtin_type_vec128): New function.
13501 (_initialize_gdbtypes): Register builtin_type_v16qi and
13502 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13503 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13504 AltiVec register to new builtin type.
13506 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13508 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13511 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13513 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13514 CLEAN_UP_REGISTER_VALUE.
13515 * regcache.c (supply_register): Update only call.
13517 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13519 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13520 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13521 a29k-*-vxworks* targets as obsolete.
13523 2002-01-14 Michael Snyder <msnyder@redhat.com>
13525 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13526 until we can resolve portability issues.
13527 * gregset.h: Remove references to fpxregs.
13528 * gcore.c (gcore_command): Initialize note_sec to NULL.
13530 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13532 * signals.c (target_signal_to_name): Rewrite. Only use
13533 signals[].name when in bounds and non-NULL.
13535 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13537 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13538 * signals.c (target_signal_to_name): Verify that SIG is within the
13539 bounds of the signals array.
13541 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13543 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13545 2002-01-13 Keith Seitz <keiths@redhat.com>
13547 * stack.c (print_frame_info_base): Print the frame's pc
13548 only if when print_frame_info_listing_hook is not defined.
13550 2002-01-13 Keith Seitz <keiths@redhat.com>
13552 * varobj.c (varobj_set_value): Make sure that there were no
13553 errors evaluating the object before attempting to set its
13555 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13556 so this offset adjustment is no longer necessary.
13557 (create_child): Don't set the error flag if the child is
13558 a CPLUS_FAKE_CHILD.
13559 (value_of_child): If value_fetch_lazy fails, return NULL
13560 so that callers will be notified that an error occurred.
13561 (c_value_of_variable): Delay check of variable's validity
13562 until later. We actually want all structs and unions to have
13564 Do not return "???" for variables which could not be evaluated.
13565 This error condition must be returned to the caller so that it
13566 can get the error condition from gdb.
13567 (cplus_name_of_child): Adjust index for vptr before figuring
13568 out the name of the child.
13569 (cplus_value_of_child): If a child's (real) parent is not valid,
13570 don't even bother trying to give a value for it. Just return
13571 an error. Change all instances in this function.
13572 (cplus_type_of_child): If our parent is one of the "fake"
13573 parents, we need to get at the type of the real parent, and
13574 derive the child's true type using this information.
13576 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13578 From 2002-01-09 John Marshall <johnm@falch.net>:
13579 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13580 sources.redhat.com, and tweak some related URLs which had
13581 suffered from linkrot.
13583 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13586 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13587 structures passed in registers.
13589 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13591 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13592 white space which prevented compilation. Reported by DSK
13593 <dsk@student.unsw.edu.au>.
13595 2002-01-11 Michael Snyder <msnyder@redhat.com>
13597 * symfile.c (build_section_addr_info_from_section_tab):
13598 Use bfd access method instead of manipulating bfd directly.
13599 (syms_from_objfile): Ditto.
13600 (simple_overlay_update_1): Ditto.
13601 (simple_overlay_update): Ditto.
13602 (generic_load): Ditto.
13603 (overlay_unmapped_address): FIXME comment, bfd access methods.
13604 (sections_overlap): FIXME comment, bfd access methods.
13605 (pc_in_mapped_range): FIXME comment, bfd access methods.
13606 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13607 (section_is_mapped): FIXME comment, bfd access methods.
13608 (section_is_overlay): FIXME comment, bfd access methods.
13610 * symfile.c (generic_load): Whitespace and long line cleanups.
13611 Remove duplicate variable, change several local variables to
13612 more appropriate data types.
13613 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13615 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13617 From Peter Schauer:
13618 * language.c (longest_local_hex_string_custom): Use phex_nz to
13619 convert NUM to a hex string.
13621 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13623 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13625 Update Copyright year.
13627 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13629 * language.c (longest_raw_hex_string): Delete unused function.
13631 2002-01-11 Petr Sorfa <petrs@caldera.com>
13633 * MAINTAINERS (write-after-approval): Add myself.
13634 * dwarf2read.c (read_tag_string_type): Handling of
13636 (read_tag_string_type): FORTRAN fix to prevent propagation of
13638 (set_cu_language): Handling of DW_LANG_Fortran95
13640 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13642 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13643 GETPID(inferior_ptid).
13644 (store_inferior_registers): Likewise.
13646 2002-01-10 Jason Merrill <jason@redhat.com>
13648 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13651 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13653 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13654 and bfd/elf32-sh-nbsd.c.
13656 2002-01-10 Michael Snyder <msnyder@redhat.com>
13658 * NEWS: Mention --pid and corefile/proc-id behavior change.
13660 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13661 * gcore.c: Include cli/cli-decode.h instead of command.h.
13663 * main.c (captured_main): Add new command line option "--pid".
13664 If the second command line argument (following the symbol-file)
13665 begins with a digit, try to attach to it before trying to open
13667 (print_gdb_help): Document the "--pid" argument.
13669 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13671 * completer.c (command_completer): New function.
13673 * completer.h <command_completer>: Add prototype.
13675 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13676 completer for the "help" command.
13678 2002-01-09 Jason Merrill <jason@redhat.com>
13680 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13682 2002-01-09 Michael Snyder <msnyder@redhat.com>
13684 * i386-linux-nat.c (fill_fpxregset): Make global.
13685 (store_fpxregset): Ditto.
13687 * gregset.h (gdb_fpxregset_t): Define.
13688 (supply_fpxregset): Prototype.
13689 (fill_fpxregset): Prototype.
13691 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13693 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13695 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13696 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13697 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13699 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13701 * MAINTAINERS: Update target maintainer rules so that any
13702 Maintainer can approve a tested patch for a maintenance-only
13705 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13707 * MAINTAINERS (write-after-approval): Add myself.
13709 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13712 2002-01-08 Michael Snyder <msnyder@redhat.com>
13714 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13715 real name of the executable, rather than the /proc name.
13717 2002-01-03 Michael Snyder <msnyder@redhat.com>
13719 Implement a "generate-core-file" command in gdb, save target state.
13720 * gcore.c: New file. Implement new command 'generate-core-file'.
13721 Save a corefile image of the current state of the inferior.
13722 * linux-proc.c: Add linux-specific code for saving corefiles.
13723 * target.h (struct target_ops): Add new target vectors for saving
13724 corefiles; to_find_memory_regions and to_make_corefile_notes.
13725 (target_find_memory_regions): New macro.
13726 (target_make_corefile_notes): New macro.
13727 * target.c (update_current_target): Inherit new target methods.
13728 (dummy_find_memory_regions): New place-holder method.
13729 (dummy_make_corefile_notes): New place-holder method.
13730 (init_dummy_target): Initialize new dummy target vectors.
13731 * exec.c (exec_set_find_memory_regions): New function.
13732 Allow the exec_ops vector for memory regions to be taken over.
13733 (exec_make_note_section): New function, target vector method.
13734 * defs.h (exec_set_find_memory_regions): Export prototype.
13735 * procfs.c (proc_find_memory_regions): New function, corefile method.
13736 (procfs_make_note_section): New function, corefile method.
13737 (init_procfs_ops): Set new target vector pointers.
13738 (find_memory_regions_callback): New function.
13739 (procfs_do_thread_registers): New function.
13740 (procfs_corefile_thread_callback): New function.
13741 * sol-thread.c (sol_find_memory_regions): New function.
13742 (sol_make_note_section): New function.
13743 (init_sol_thread_ops): Initialize new target vectors.
13744 * inftarg.c (inftarg_set_find_memory_regions): New function.
13745 Allow to_find_memory_regions vector to be taken over.
13746 (inftarg_set_make_corefile_notes): New function.
13747 Allow to_make_corefile_notes vector to be taken over.
13748 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13749 interface layer if not target_has_execution (may be a corefile).
13750 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13751 * config/sparc/sun4sol2.mh: Ditto.
13752 * config/alpha/alpha-linux.mh: Ditto.
13753 * config/arm/linux.mh: Ditto.
13754 * config/i386/x86-64linux.mh: Ditto.
13755 * config/ia64/linux.mh: Ditto.
13756 * config/m68k/linux.mh: Ditto.
13757 * config/mips/linux.mh: Ditto.
13758 * config/powerpc/linux.mh: Ditto.
13759 * config/sparc/linux.mh: Ditto.
13761 2002-01-07 Michael Snyder <msnyder@redhat.com>
13763 * arm-linux-nat.c: Remove references to regcache.c internal data
13764 (registers[] and register_valid[]).
13766 2002-01-07 Michael Snyder <msnyder@redhat.com>
13768 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13769 so that attaching to a pid will automatically read the process's
13770 symbol file and shlibs.
13771 * Makefile.in: Add rule for linux-proc.o.
13772 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13773 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13774 * config/arm/linux.mh: Ditto.
13775 * config/i386/linux.mh: Ditto.
13776 * config/i386/x86-64linux.mh: Ditto.
13777 * config/ia64/linux.mh: Ditto.
13778 * config/m68k/linux.mh: Ditto.
13779 * config/mips/linux.mh: Ditto.
13780 * config/powerpc/linux.mh: Ditto.
13781 * config/sparc/linux.mh: Ditto.
13783 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13785 * win32-nat.c: Add i386-tdep.h dependency.
13787 2002-01-07 Michael Snyder <msnyder@redhat.com>
13789 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13790 instead of bfd_get_arch_size. Don't bail out just because
13791 there's no exec_bfd.
13793 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13794 * p-valprint.c (pascal_object_print_value): Ditto.
13795 * somread.c (som_symtab_read): Ditto.
13796 * symfile.c (simple_free_overlay_region_table): Ditto.
13797 * valops.c (value_assign): Ditto.
13799 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13800 use tilde_expand and strerror for opening save-tracepoints file.
13802 * thread-db.c (thread_db_new_objfile): Indendation fix.
13804 * infptrace.c (GDB_MAX_ALLOCA): New define.
13805 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13806 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13807 can be overridden with whatever value is appropriate to the host).
13808 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13809 alloca to allocate potentially large buffer.
13810 * rs6000-nat.c (child_xfer_memory): Ditto.
13811 * symm-nat.c (child_xfer_memory): Ditto.
13812 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13814 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13816 From Nick Clifton <nickc@redhat.com>
13817 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13819 2002-01-07 Michael Snyder <msnyder@redhat.com>
13821 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13822 Don't use exec_bfd if it's NULL.
13824 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13826 * valops.c (value_arg_coerce): Fix formatting.
13828 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13830 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13831 * gnu-nat.c: Ditto.
13833 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13835 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13836 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13837 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13838 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13839 z8k-coff have not been multi-arched. Update z8k-coff build
13842 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13844 * MAINTAINERS: Mark a29k target as obsolete.
13845 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13846 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13848 * NEWS: Note that a29k targets are obsolete.
13849 * a29k-tdep.c: Mark as obsolete.
13850 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13851 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13852 a29k-*-vxworks* targets as obsolete.
13853 * remote-adapt.c: Obsolete.
13854 * remote-eb.c: Obsolete.
13855 * remote-mm.c: Obsolete.
13856 * remote-udi.c: Obsolete.
13857 * config/a29k/a29k-udi.mt: Obsolete.
13858 * config/a29k/a29k.mt: Obsolete.
13859 * config/a29k/tm-a29k.h: Obsolete.
13860 * config/a29k/tm-vx29k.h: Obsolete.
13861 * config/a29k/vx29k.mt: Obsolete.
13863 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13865 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13866 with BFD_ENDIAN_BIG.
13868 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13870 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13871 * configure, config.in: Re-generate.
13872 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13873 * defs.h: Do not include <endian.h>.
13875 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13877 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13878 * config.in: Regenerate.
13879 * configure.in: Update copyright years.
13880 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13881 * configure: Regenerate.
13882 * i386bsd-nat.c: Update copyright years.
13883 (fill_gregset): Use regcache_collect.
13884 (fetch_inferior_registers): Only fetch integer registers
13885 if requested to do so. Add support for XMM registers
13886 using PT_GETXMMREGS.
13887 (store_inferior_registers): Only store integer registers
13888 if requested to do so. Add support for XMM registers
13889 using PT_SETXMMREGS.
13890 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13891 (store_inferior_registers): Remove.
13892 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13893 (fetch_elfcore_registers): New function.
13894 (i386nbsd_elfcore_fns): New.
13895 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13896 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13898 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13899 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13900 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13901 * config/i386/tm-nbsd.h: Update copyright years.
13902 (HAVE_SSE_REGS): Define.
13903 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13904 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13905 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13906 (SIGCONTEXT_PC_OFFSET): Remove.
13907 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13909 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13911 * configure.tgt: Remove powerpc-*-macos* target.
13912 * config/m68k/xm-mpw.h: Delete file.
13913 * config/xm-mpw.h: Delete file.
13914 * ser-mac.c: Delete file.
13915 * mpw-make.sed: Delete file.
13916 * mpw-config.in: Delete file.
13917 * mac-xdep.c: Delete file.
13918 * mac-gdb.r: Delete file.
13919 * mac-defs.h: Delete file.
13920 * mac-nat.c: Delete file.
13921 * config/powerpc/macos.mh: Delete file.
13922 * config/powerpc/macos.mt: Delete file.
13923 * config/powerpc/nm-macos.h: Delete file.
13924 * config/powerpc/tm-macos.h: Delete file.
13925 * source.c (openp, open_source_file): Remove obsolete code.
13926 * top.c (gdb_readline): Ditto.
13927 * utils.c (query): Ditto.
13928 * event-top.c (display_gdb_prompt): Ditto.
13929 * Makefile.in (ser-mac.o): Delete obsolete target.
13932 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13934 * defs.h (BIG_ENDIAN): Delete macro definition.
13935 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13936 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13937 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13938 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13939 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13940 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13941 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13942 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13943 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13944 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13945 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13946 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13947 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13948 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13949 * gdbarch.c: Re-generate.
13951 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13953 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13956 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13958 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13960 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13962 * value.h (value_ptr): Delete typedef.
13964 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13966 * i386nbsd-nat.c: Update copyright years.
13967 Include i386-tdep.h.
13969 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13971 * stabsread.c: Update copyright years.
13973 From Debashis Mahata <debashis.mahata@wipro.com>:
13974 (read_struct_fields): Deal with Sun C compiler erroneous stab
13975 output for structs and unions.
13978 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13980 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13983 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13985 * cp-abi.c: Fix whitespace.
13986 (baseclass_offset): New wrapper function.
13987 * cp-abi.h (baseclass_offset): Add prototype.
13988 (struct cp_abi_ops): Add baseclass_offset pointer.
13990 * valops.c (vb_match): Move to...
13991 * gnu-v2-abi.c (vb_match): here.
13992 * valops.c (baseclass_offset): Move to...
13993 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13995 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13997 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13998 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13999 * hpacc-abi.c (init_hpacc_ops): Likewise.
14001 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14003 * valops.c (find_overload_match): Accept obj as a
14004 reference parameter. Update it before returning.
14005 * value.h (find_overload_match): Update prototype.
14006 * eval.c (evaluate_subexp_standard): Pass object to
14007 find_overload_match by reference.
14009 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14011 * valarith.c: Replace value_ptr with struct value pointer. Remove
14012 register attribute from value declarations.
14015 * scm-lang.c (scm_lookup_name): Ditto.
14017 2002-01-03 Michael Snyder <msnyder@redhat.com>
14019 Abstract the functionality of iterating over mapped memory
14020 regions into a general purpose iterator function.
14021 * procfs.c (iterate_over_mappings): New function, general purpose
14022 iterator for memory sections.
14023 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14024 (solib_mappings_callback): New function, callback for above.
14025 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14026 (info_mappings_callback): New function, callback for above.
14028 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14030 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14032 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14033 * i386-tdep.c: Include "elf-bfd.h".
14034 (process_note_abi_tag_sections): New function.
14035 (i386_gdbarch_init): Add code to recognize various OS/ABI
14038 * maint.c (_initialize_maint_cmds): Add missing \ in
14041 For older changes see ChangeLog-2001
14047 version-control: never