* win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for SSE
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-13 Christopher Faylor <cgf@redhat.com>
2
3 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
4 SSE registers since gdb will not operate correctly without this.
5 Restore include file ordering munged in previous change.
6 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
7
8 2003-09-13 Mark Kettenis <kettenis@gnu.org>
9
10 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
11 REG_STRUCT_HAS_ADDR.
12 * gdbarch.c, gdbarch.h: Updated.
13 * infcall.c (call_function_by_hand): Update.
14 * stabsread.c (define_symbol): Updated.
15
16 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
17
18 2003-09-12 Christopher Faylor <cgf@redhat.com>
19
20 * win32-nat.c: Reorganize so that defines used by target headers are
21 actually defined by the system headers.
22 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
23 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
24
25 2003-09-12 Jim Blandy <jimb@redhat.com>
26
27 * dbxread.c (read_dbx_symtab): Don't report an internal error if
28 the file has no .data, .bss, or .rodata sections. Instead wait
29 until we see a variable alleged to live in one of those sections.
30
31 * dbxread.c (read_dbx_symtab): If we have no .data section and no
32 .bss section, presume that any variables we find live in the
33 .rodata section.
34
35 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
36 offsets for global and static variables.
37
38 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
39 symbol types are, by definition, in the .data section, so it is
40 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
41 If there is no .data section, there should be no N_DATA or N_DATA
42 | N_EXT symbols.
43
44 2003-09-12 Mark Kettenis <kettenis@gnu.org>
45
46 * amd64fbsd-tdep.c: Fix sigtramp recognition.
47 (amd64fbsd_sigcontext_addr): Rewrite.
48 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
49 with correct values.
50 (amd64fbsd_sc_reg_offset): Initialize with correct values.
51 (amd64fbsd_init_abi): Fix typo.
52
53 2003-09-12 Andrew Cagney <cagney@redhat.com>
54
55 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
56 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
57
58 2003-09-12 Andrew Cagney <cagney@redhat.com>
59
60 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
61 "entry_file_highpc". Update comments.
62 * defs.h (deprecated_inside_entry_file): Rename
63 "inside_entry_file".
64 * blockframe.c (deprecated_inside_entry_file): Rename
65 "inside_entry_file".
66 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
67 * vax-tdep.c (vax_frame_chain): Update.
68 * sh64-tdep.c (sh64_frame_chain): Update.
69 * sh-tdep.c (sh_frame_chain): Update.
70 * rs6000-tdep.c (rs6000_frame_chain): Update.
71 * ns32k-tdep.c (ns32k_frame_chain): Update.
72 * mips-tdep.c (mips_frame_chain): Update.
73 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
74 * m32r-tdep.c (m32r_frame_this_id): Update.
75 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
76 * frv-tdep.c (frv_frame_this_id): Update.
77 * d10v-tdep.c (d10v_frame_this_id): Update.
78 * cris-tdep.c (cris_frame_chain): Update.
79 * blockframe.c (legacy_frame_chain_valid): Update.
80 * avr-tdep.c (avr_frame_this_id): Update.
81 * arm-tdep.c (arm_prologue_this_id): Update.
82 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
83 * objfiles.c (objfile_relocate): Update.
84 * mipsread.c (mipscoff_symfile_read): Update.
85 (mipscoff_symfile_read): Update.
86 * mdebugread.c (parse_partial_symbols): Update.
87 * dwarfread.c (read_file_scope): Update.
88 * dwarf2read.c (read_file_scope): Update.
89 * dbxread.c (read_dbx_symtab): Update.
90 (read_dbx_symtab): Update.
91 * coffread.c (complete_symtab): Update.
92
93 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
94
95 * top.c (quit_target): New static helper function.
96 (quit_force): Moved code to quit_target(). Call quit_target()
97 via catch_errors() to catch errors during quit.
98
99 2003-09-11 David Carlton <carlton@kealia.com>
100
101 * buildsym.c (finish_block): Use allocate_block to allocate the
102 block.
103 * mdebugread.c (new_block): Add FIXME.
104
105 2003-09-11 David Carlton <carlton@kealia.com>
106
107 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
108 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
109 (recursive_dump_type): Ditto.
110 * printcmd.c (print_formatted): Ditto.
111 * typeprint.c (print_type_scalar): Ditto.
112 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
113 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
114 * cp-support.h: Declare cp_check_possible_namespace_symbols,
115 maint_cplus_cmd_list.
116 * cp-support.c: Make maint_cplus_cmd_list extern.
117 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
118 command.h.
119 (lookup_symbol_file): Look in possible namespace blocks when
120 appropriate.
121 (initialize_namespace_symtab): New.
122 (get_possible_namespace_block, free_namespace_block)
123 (check_possible_namespace_symbols)
124 (check_possible_namespace_symbols_loop)
125 (check_one_possible_namespace_symbol)
126 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
127 (_initialize_cp_namespace): Ditto.
128 * block.h: Declare allocate_block.
129 * block.c (allocate_block): New.
130 * jv-lang.c (get_java_class_symtab): Allocate blocks via
131 allocate_block.
132 * symfile.h: Update declaration of add_psymbol_to_list.
133 * symfile.c (add_psymbol_to_list): Return the partial symbol in
134 question.
135 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
136 scan_partial_symbols_call.
137 (scan_partial_symbols): Add NAMESPACE argument; update calls to
138 helper functions.
139 (add_partial_symbol): If necessary, scan mangled names for names
140 of namespaces.
141 (add_partial_namespace): Add NAMESPACE argument; generate partial
142 symbols associated to namespaces.
143 (add_partial_enumeration): Add NAMESPACE argument.
144 (new_symbol): Allow namespace syms.
145 (read_namespace): Generate namespace syms.
146 * objfiles.h: Add opaque declaration of struct symtab.
147 (struct objfile): Add cp_namespace_symtab member.
148 * objfiles.c (allocate_objfile): Set
149 objfile->cp_namespace_symtab.
150 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
151 dictionary_h, command_h.
152
153 2003-09-11 Andrew Cagney <cagney@redhat.com>
154
155 * rs6000-tdep.c (rs6000_push_dummy_call): Use
156 regcache_raw_write_signed to set SP_REGNUM, move the operation to
157 near the function's end.
158 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
159 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
160 regcache_raw_write_signed to set SP_REGNUM.
161
162 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
163
164 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
165 orig_addrs is set up properly.
166
167 2003-09-11 Andrew Cagney <cagney@redhat.com>
168
169 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
170 * gdbarch.h, gdbarch.c: Re-generate.
171 * infcall.c (call_function_by_hand): Update.
172 * hppa-tdep.c (hppa_push_arguments): Update.
173 * ada-lang.c (place_on_stack): Update.
174 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
175 * sparc-tdep.c (sparc_gdbarch_init): Update.
176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
177 * hppa-tdep.c (hppa_gdbarch_init): Update.
178 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
179 stack_align.
180
181 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
182
183 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
184 register do need a frame.
185
186 2003-09-11 Andrew Cagney <cagney@redhat.com>
187
188 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
189 buildable since GDB 5.0.
190 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
191 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
192 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
193 * irix4-nat.c: Delete file.
194 * config/mips/irix4.mh: Delete file.
195 * config/mips/irix3.mh: Delete file.
196 * config/mips/irix3.mt: Delete file.
197 * config/mips/tm-irix3.h: Delete file.
198 * config/mips/nm-irix3.h: Delete file.
199 * config/mips/xm-irix3.h: Delete file.
200 * config/mips/nm-irix4.h: Delete file.
201 * config/mips/xm-irix4.h: Delete file.
202 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
203
204 2003-09-10 J. Brobecker <brobecker@gnat.com>
205
206 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
207 * Makefile.in (hppa-tdep.o): Update dependencies.
208
209 2003-09-10 James E Wilson <wilson@specifixinc.com>
210
211 * MAINTAINERS: Change my e-mail address. Move to paper trail
212 section.
213
214 2003-09-10 Kevin Buettner <kevinb@redhat.com>
215
216 * MAINTAINERS (frv): New ISA entry.
217
218 2003-09-10 Kevin Buettner <kevinb@redhat.com>
219
220 * frv-tdep.c (dis-asm.h): Include.
221 * Makefile.in (frv-tdep.o): Update dependencies.
222
223 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
224
225 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
226 Fix typo for high range of floating registers.
227
228 2003-09-09 David Carlton <carlton@kealia.com>
229
230 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
231 highpc initialization here out of scan_partial_symbols.
232 (scan_partial_symbols): Restructure into a recursive version,
233 calling add_partial_namespace and add_partial_enumeration when
234 appropriate.
235 (add_partial_namespace): New.
236 (add_partial_enumeration, locate_pdi_sibling): Ditto.
237
238 2003-09-09 Andrew Cagney <cagney@redhat.com>
239
240 * rs6000-tdep.c (ppc_push_return_address): Delete function.
241 (rs6000_push_dummy_call): Set LR to BP_ADDR.
242 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
243 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
244
245 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
246 (rs6000_push_dummy_call): Set the "TOC" register.
247
248 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
249 methods "max_register_raw_size", "max_register_virtual_size" or
250 "register_virtual_size".
251
252 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
253
254 * MAINTAINERS: Update my e-mail address.
255
256 2003-09-09 Andrew Cagney <cagney@redhat.com>
257
258 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
259 (rs6000_push_dummy_call): Store the struct return address.
260 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
261
262 2003-09-09 Andrew Cagney <cagney@redhat.com>
263
264 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
265 "ppc_sysv_abi_push_arguments".
266 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
267 "ppc_sysv_abi_push_arguments".
268 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
269 instead of "push_arguments".
270 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
271
272 2003-09-09 Andrew Cagney <cagney@redhat.com>
273
274 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
275 instead of CALL_DUMMY_ADDRESS.
276
277 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
278
279 * p-lang.c: Eliminate "register".
280 * c-lang.c: Ditto.
281 * expprint.c: Ditto.
282 * f-lang.c: Ditto.
283 * jv-lang.c: Ditto.
284 * language.c: Ditto.
285 * m2-lang.c: Ditto.
286 * parse.c: Ditto.
287 * scm-lang.c: Ditto.
288 * objc-lang.c: Ditto.
289
290 2003-09-09 Nick Clifton <nickc@redhat.com>
291
292 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
293
294 2003-09-04 Andrew Cagney <cagney@redhat.com>
295
296 * avr-tdep.c: Include "dis-asm.h".
297 * cris-tdep.c: Include "dis-asm.h".
298 (cris_delayed_get_disassembler): Use "struct disassemble_info"
299 instead of corresponding typedef.
300 * h8300-tdep.c: Include "dis-asm.h".
301 * ia64-tdep.c: Include "dis-asm.h".
302 * i386-tdep.c: Include "dis-asm.h".
303 (i386_print_insn): Use "struct disassemble_info" instead of
304 corresponding typedef.
305 * m68k-tdep.c: Include "dis-asm.h".
306 * mcore-tdep.c: Include "dis-asm.h".
307 * mips-tdep.c: Include "dis-asm.h".
308 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
309 instead of corresponding typedef.
310 * ns32k-tdep.c: Include "dis-asm.h".
311 * s390-tdep.c: Include "dis-asm.h".
312 * sparc-tdep.c: Include "dis-asm.h".
313 * vax-tdep.c: Include "dis-asm.h".
314 * v850-tdep.c: Include "dis-asm.h".
315 * mn10300-tdep.c: Include "dis-asm.h".
316 * rs6000-tdep.c: Include "dis-asm.h".
317 * xstormy16-tdep.c: Include "dis-asm.h".
318 (_initialize_xstormy16_tdep): Delete "extern" declaration of
319 print_insn_xstormy16.
320 * Makefile.in (v850-tdep.o): Update dependencies.
321 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
322 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
323 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
324 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
325 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
326 (gdbarch_h): Remove $(dis_asm_h).
327 * disasm.c: Include "dis-asm.h".
328 (dis_asm_read_memory): Use "struct disassemble_info" instead of
329 corresponding typedef.
330 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
331 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
332 * gdbarch.sh: Do not include "dis-asm.h".
333 (struct disassemble_info): Declare opaque.
334 (TARGET_PRINT_INSN): Update declaration.
335 * gdbarch.h, gdbarch.c: Re-generate.
336
337 2003-09-08 Andrew Cagney <cagney@redhat.com>
338
339 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
340 CALL_DUMMY_ADDRESS, change to a predicate.
341 * gdbarch.h, gdbarch.c: Re-generate.
342 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
343 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
344 * infcall.c (call_function_by_hand): Ditto.
345 * sparc-tdep.c (sparc_push_return_address): Ditto.
346 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
347 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
348 CALL_DUMMY_ADDRESS with entry_point_address.
349 * v850-tdep.c (v850_push_return_address): Ditto.
350 * s390-tdep.c (s390_push_return_address): Ditto.
351 * rs6000-tdep.c (ppc_push_return_address): Ditto.
352 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
353 * mcore-tdep.c (mcore_push_return_address): Ditto.
354 * cris-tdep.c (cris_push_return_address): Ditto.
355 * arm-tdep.c (arm_push_return_address): Ditto.
356
357 2003-09-08 Andrew Cagney <cagney@redhat.com>
358
359 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
360 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
361 and REG_UNMODIFIED to REG_SAME_VALUE.
362 (execute_cfa_program): Update.
363 (dwarf2_frame_cache): Update. Initialize table to
364 REG_UNSPECIFIED, complain if CFI fails to specify a register's
365 location.
366 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
367
368 2003-09-08 Andrew Cagney <cagney@redhat.com>
369
370 * gnu-nat.c: Remove "inline" function attribute.
371 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
372
373 2003-09-08 Kevin Buettner <kevinb@redhat.com>
374
375 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
376 target.
377
378 2003-09-08 Kevin Buettner <kevinb@redhat.com>
379
380 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
381 (frame_extra_info): Rename this struct to frv_unwind_cache.
382 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
383 Add fields ``prev_sp'' and ``base''.
384 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
385 (frv_saved_pc_after_call, frv_init_extra_frame_info)
386 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
387 Delete.
388 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
389 Revise all callers. Fill in the unwind cache argument and make
390 other adjustments to account for new frame mechanisms.
391 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
392 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
393 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
394 (frv_frame_unwind, frv_frame_base): New structs.
395 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
396 additional arguments expected by this method and adjust function
397 body accordingly.
398 (frv_gdbarch_init): Remove calls to the following functions:
399 set_gdbarch_deprecated_init_frame_pc(),
400 set_gdbarch_deprecated_saved_pc_after_call(),
401 set_gdbarch_deprecated_frame_chain(),
402 set_gdbarch_deprecated_frame_saved_pc(),
403 set_gdbarch_deprecated_frame_init_saved_regs(),
404 set_gdbarch_deprecated_push_arguments(),
405 set_gdbarch_deprecated_push_return_address(),
406 set_gdbarch_deprecated_pop_frame(),
407 set_gdbarch_deprecated_call_dummy_words(),
408 set_gdbarch_deprecated_sizeof_call_dummy_words(),
409 set_gdbarch_deprecated_init_extra_frame_info(),
410 set_gdbarch_deprecated_dummy_write_sp(), and
411 set_gdbarch_deprecated_pc_in_call_dummy().
412 Add calls to the following functions:
413 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
414 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
415 frame_base_set_default().
416 * Makefile.in (frv-tdep.o): Update dependencies.
417
418 2003-09-09 Mark Kettenis <kettenis@gnu.org>
419
420 * dwarf2-frame.c (read_encoded_value): Add support for
421 DW_EH_PE_aligned encoding.
422
423 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
424
425 * infrun.c (normal_stop): Don't print a message if the inferior
426 has exited.
427
428 2003-09-08 Jim Blandy <jimb@redhat.com>
429
430 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
431 * dbxread.c: #include "gdb_assert.h".
432 (read_dbx_symtab): If the objfile has no .data section, use the
433 section index for the .bss section instead.
434
435 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
436
437 * frame.c (deprecated_safe_get_selected_frame): New function.
438 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
439 * findvar.c (read_var_value): Call it.
440
441 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
442
443 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
444 (sh64-tdep.o): Add dependencies.
445 * configure.tgt: Add FIXME to sh-*-linux*.
446 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
447 (sh_gdbarch_init): Always set correct sh_show_regs function
448 pointer. Call sh64_gdbarch_init() if machine type is sh5.
449 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
450 * sh64-tdep.c: New file, containing all sh64 related code from
451 sh-tdep.c.
452 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
453 * config/sh/linux.mt (TDEPFILES): Ditto.
454 * config/sh/nbsd.mt (TDEPFILES): Ditto.
455 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
456 * config/sh/wince.mt (TDEPFILES): Ditto.
457
458 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
459
460 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
461 (stop_wait_callback): Handle !lp->signalled also.
462 (lin_lwp_has_pending, flush_callback): New functions.
463 (lin_lwp_wait): Call flush_callback.
464 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
465 (linux_proc_pending_signals): New function.
466 * linux-nat.h (linux_proc_pending_signals): Add prototype.
467
468 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
469
470 From Nick Kelsey <nickk@ubicom.com>:
471 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
472 when the stop PC is at the beginning of a function also.
473
474 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
475
476 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
477 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
478
479 2003-09-06 Mark Kettenis <kettenis@gnu.org>
480
481 * sol-thread.c: Include "gdb_string.h".
482
483 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
484
485 * gcore.c: Reorder include files in alphabetical order. Include
486 "gdb_assert.h". Various coding style fixes.
487 (derive_stack_segment, derive_heap_segment): Replace check for
488 non-null BOTTOM and TOP with gdb_assert.
489 (derive_heap_segment): Replace check for successful creation of
490 ZERO with gdb_assert.
491 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
492
493 2003-09-04 Andrew Cagney <cagney@redhat.com>
494
495 * thread-db.c (verbose_dlsym): New function.
496 (thread_db_load): Use verbose_dlsym
497 (thread_db_new_objfile): Print that libthread_db was loaded, and
498 that thread debugging was enabled.
499
500 2003-09-04 Andrew Cagney <cagney@redhat.com>
501
502 * configure.tgt: Add "mips64*-*-*" target. Delete
503 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
504 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
505 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
506 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
507 mips*-sony-*, and mips64*-*-elf* targets.
508 * config/mips/embedl.mt: Delete file.
509 * config/mips/embedl64.mt: Delete file.
510 * config/mips/mips.mt: Delete file.
511 * config/mips/mips64.mt: Delete file.
512 * config/mips/tm-embed.h: Delete file.
513 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
514 * config/mips/embed64.mt: Delete out-of-date comment.
515
516 2003-09-04 Andrew Cagney <cagney@redhat.com>
517
518 * hppa-tdep.c (hppa_gdbarch_init): Set
519 "have_nonsteppable_watchpoint".
520 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
521 * mips-tdep.c (mips_dump_tdep): Do not print
522 HAVE_NONSTEPPABLE_WATCHPOINT.
523 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
524 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
525 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
526 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
527
528 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
529
530 * breakpoint.c (watchpoint_check): Remove accidentally checked in
531 unused code. Add comment.
532
533 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
534
535 * breakpoint.c (watchpoint_check): Check for pc being in an
536 epilogue if watchpoint frame couldn't be found.
537
538 2003-09-04 Andrew Cagney <cagney@redhat.com>
539
540 * Makefile.in: Re-generate all dependencies.
541
542 2003-09-03 Andrew Cagney <cagney@redhat.com>
543
544 * arch-utils.h (legacy_print_insn): Delete declaration.
545 * arch-utils.c (legacy_print_insn): Delete function.
546 * disasm.c (deprecated_tm_print_insn_info): Delete.
547 (_initialize_disasm): Delete function, contained code initializing
548 deprecated_tm_print_insn_info.
549 * gdbarch.sh (deprecated_tm_print_insn): Delete.
550 (deprecated_tm_print_insn_info): Delete.
551 (TARGET_PRINT_INSN): Do not provide a default.
552 * gdbarch.h, gdbarch.c: Re-generate.
553
554 2003-09-03 Andrew Cagney <cagney@redhat.com>
555
556 * disasm.c (fprintf_disasm): New function.
557 (gdb_disassemble_info): Call "init_disassemble_info", instead of
558 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
559 reverts 2003-08-14 change.
560 (_initialize_disasm): Call "init_disassemble_info", instead of
561 INIT_DISASSEMBLE_INFO_NO_ARCH.
562
563 2003-09-03 Michael Snyder <msnyder@redhat.com>
564
565 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
566
567 2003-09-03 Andrew Cagney <cagney@redhat.com>
568
569 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
570 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
571 * symfile.c (syms_from_objfile): Update.
572 (reread_symbols): `Update
573 * exec.c (exec_file_attach): Update.
574 (exec_file_attach): Update.
575 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
576 2003-08-29 change.
577 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
578
579 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
580
581 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
582 trad-frame.h.
583 (arm_get_cache): Delete macro.
584 (struct arm_prologue_cache): Update comments. Make saved_regs into
585 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
586 to prev_sp.
587 (thumb_scan_prologue): Update for cache changes. Don't call
588 DEPRECATED_PC_IN_CALL_DUMMY.
589 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
590 argument and use it in desperation search for our prologue. Do not
591 search past the specified PC.
592 (arm_make_prologue_cache): Simplify.
593
594 (arm_prologue_this_id, arm_prologue_prev_register)
595 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
596 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
597 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
598 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
599 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
600
601 (arm_frame_chain_valid, arm_find_callers_reg)
602 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
603 (arm_pop_frame): Delete obsolete methods.
604 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
605
606 (arm_gdbarch_init): Update for new frame methods. Register prologue
607 and sigtramp unwinders. Set the default frame base method.
608
609 * Makefile.in (arm-tdep.o): Update dependencies.
610 * varobj.c (find_frame_addr_in_frame_chain): Call
611 get_frame_base_address.
612 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
613
614 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
615
616 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
617 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
618 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
619 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
620 Take NEXT_FRAME and CACHE arguments. Call
621 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
622 Set unwound_pc in CACHE instead of modifying the frame argument.
623 Don't bother checking the frame type when looking for sigtramp
624 frames.
625 (arm_make_prologue_cache, arm_frame_chain)
626 (arm_init_extra_frame_info): New functions.
627
628 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
629
630 * arm-tdep.c (arm_get_cache): Define.
631 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
632 unwound_sp, unwound_pc, and saved_regs.
633 (thumb_scan_prologue): Take a cache instead of the frame.
634 (arm_scan_prologue): Likewise.
635 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
636 instead of a temporary frame.
637 (arm_init_extra_frame_info): Allocate and use a cache.
638 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
639
640 2003-09-03 Andrew Cagney <cagney@redhat.com>
641
642 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
643 * config/mips/wince.mt (TM_CLIBS): Ditto.
644 * config/sh/wince.mt (TM_CLIBS): Ditto.
645 * config/pa/hppa64.mt (TM_CLIBS): Delete.
646 * config/sparc/sp64.mt (CC): Delete.
647
648 2003-09-03 Andrew Cagney <cagney@redhat.com>
649
650 * defs.h: Do not include "arch-utils.h".
651 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
652 GDB_MULTI_ARCH_PURE.
653 * configure.in (GDB_MULTI_ARCH): Do not define.
654 * configure, config.in: Regenerate.
655 * configure.tgt: Do not set variable "gdb_multi_arch".
656 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
657 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
658 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
659 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
660 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
661 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
662 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
663 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
664 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
665 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
666 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
667 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
668 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
669 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
670 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
671 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
672 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
673 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
674
675 2003-08-30 Michael Chastain <mec@shout.net>
676
677 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
678 * config/m68k/nm-hp300hpux.h: Delete.
679 * config/m68k/tm-hp300hpux.h: Delete.
680 * config/m68k/xm-hp300hpux.h: Delete.
681 * config/m68k/xm-hp300bsd.h: Delete.
682 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
683 tm-hp300hpux.h, xm-hp300hpux.h.
684 * somsolib.c: Remove comment about hp300 shared libraries.
685
686 2003-08-31 Mark Kettenis <kettenis@gnu.org>
687
688 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
689 Only define PTRACE_GET_THREAD_AREA is not already defined.
690 Various style fixes in code and comments and some additional
691 spelling fixes in comments. Move after functions dealing with
692 debug registers.
693 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
694 Fix coding-style.
695
696 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
697 frame_unwind_register_unsigned instead of
698 frame_unwind_unsigned_register.
699
700 2003-08-30 Mark Kettenis <kettenis@gnu.org>
701
702 * configure.in: Search for gethostbyname in libnsl.
703 * configure: Regenerated.
704
705 2003-08-29 Mark Kettenis <kettenis@gnu.org>
706
707 * configure.in: Remove redundant AC_MSG_RESULT in check for
708 uintptr_t in stdint.h.
709 * configure: Regenerated.
710
711 * amd64-nat.h (struct regcache): Add opaque declaration.
712
713 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
714 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
715 Change "register array" to "register cache" in comments.
716 (x86_64_linux_gregset64_reg_offset): New variable.
717 (GETREGS_SUPPLIES): Remove macro.
718 (supply_gregset): Call amd64_supply_native_gregset instead of
719 x86_64_linux_supply_gregset.
720 (fill_gregset): Rename `regno' to `regnum'. Call
721 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
722 (store_regs): Rename `regno' to `regnum'.
723 (store_fpregs): Rename `regno' to `regnum'.
724 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
725 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
726 Reorganize function a bit.
727 (store_inferior_registers): Rename `regno' to `regnum'. Use
728 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
729 Reorganize function a bit.
730 (_initialize_x86_64_linux_nat): New function.
731 * config/i386/x86-64linux.mh.
732
733 2003-08-29 Andrew Cagney <cagney@redhat.com>
734
735 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
736 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
737 (target_remove_watchpoint): Delete macro.
738 (target_insert_watchpoint): Delete macro.
739 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
740 (remote_mips_stopped_by_watchpoint): Delete declaration.
741 (remote_mips_remove_watchpoint): Delete declaration.
742 (remote_mips_set_watchpoint): Delete declaration.
743 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
744 * remote-mips.c (_initialize_remote_mips): Set
745 "to_insert_watchpoint", "to_stopped_by_watchpoint",
746 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
747 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
748 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
749 (mips_stopped_by_watchpoint): Rename
750 remote_mips_stopped_by_watchpoint.
751 (mips_can_hardware_watchpoint): Rename
752 remote_mips_can_use_hardware_watchpoint, update function
753 signature.
754
755 2003-08-29 Mark Kettenis <kettenis@gnu.org>
756
757 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
758 USER_DS. We haven't given them a register number yet.
759
760 * amd64-nat.h: New file.
761 * amd64-nat.c: New file.
762 * amd64fbsd-nat.c: Include "amd64-nat.h".
763 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
764 (amd64fbsd32_r_reg_offset): New variable.
765 (supply_gregset): Simply call amd64_supply_native_gregset.
766 (fill_gregset): Rename `regno' to `regnum'. Simply call
767 amd64_collect_native_gregset.
768 (fill_fpregset): Rename `regno' to `regnum'.
769 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
770 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
771 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
772 `fpregset_t'. Call amd64_supply_native_gregset instead of
773 supply_gregset. Call x86_64_supply_fxsave instead of
774 supply_fpregset.
775 (store_inferior_registers): Rename `regno' to `regnum'. Replace
776 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
777 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
778 `fpregset_t'. Call amd64_collect_native_gregset instead of
779 fill_gregset. Call x86_64_collect_fxsave instead of
780 fill_fpregset.
781 (_initialize_am64fbsd_nat): Initialize
782 amd64_native_gregset32_reg_offset and
783 amd64_native_gregset64_reg_offset.
784 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
785
786 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
787 null pointer. Fix typo in comment.
788
789 * regcache.c (supply_register): Reimplement to call
790 regcache_raw_supply.
791 (regcache_collect): Reimplement by calling regcache_raw_collect.
792
793 2003-08-28 Mark Kettenis <kettenis@gnu.org>
794
795 * regcache.c (register_buffer): Consitify first argument.
796 (regcache_raw_supply, regcache_raw_collect): New
797 functions.
798
799 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
800
801 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
802 by Nathan J. Williams.
803
804 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
805
806 * lin-lwp.c (wait_lwp): New function, copied from
807 stop_wait_callback. Clean up.
808 (stop_wait_callback): Use wait_lwp.
809
810 2003-08-28 Andrew Cagney <cagney@redhat.com>
811
812 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
813 flavour and disassembler options.
814 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
815 (mips_gdbarch_init): Set "print_insn". Delete initialization of
816 deprecated_tm_print_insn_info.
817
818 2003-08-27 Andrew Cagney <cagney@redhat.com>
819
820 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
821 Use target_read_memory.
822 (s390_get_frame_info): Update. Do not reference
823 deprecated_tm_print_insn_info.
824 (s390_check_function_end, s390_is_sigreturn): Ditto.
825
826 2003-08-27 Andrew Cagney <cagney@redhat.com>
827
828 * Makefile.in (cris-tdep.o): Update dependencies.
829 * cris-tdep.c: Include "gdb_assert.h".
830 (cris_gdbarch_init): Set print_insn.
831 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
832 (cris_delayed_get_disassembler): Simplify, directly call the
833 disassembler returned by cris_get_disassembler.
834 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
835 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
836 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
837 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
838 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
839 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
840 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
841 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
842 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
843 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
844 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
845 (gdb_print_insn_sparc): Delete function.
846 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
847 deprecated_tm_print_insn_info.
848 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
849 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
850 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
852 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
853 * s390-tdep.c (gdb_print_insn_s390): Delete function.
854 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
855 (s390_gdbarch_init): Set print_insn.
856
857 2003-08-27 Andrew Cagney <cagney@redhat.com>
858
859 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
860 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
861 * infcall.c (call_function_by_hand): Convert the entry point
862 address into a code address.
863
864 2003-08-27 Andrew Cagney <cagney@redhat.com>
865
866 * dsrec.c: Include "gdb_string.h".
867 * Makefile.in (dsrec.o): Update dependencies.
868
869 2003-08-27 Michael Chastain <mec@shout.net>
870
871 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
872
873 2003-08-27 Andrew Cagney <cagney@redhat.com>
874
875 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
876 (alpha_osf1_init_abi): Do not set call_dummy_address.
877
878 2003-08-27 David Carlton <carlton@kealia.com>
879
880 From Randolph Chung <tausq@debian.org>:
881 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
882 compiles with -Wformat-nonliteral -Werror.
883
884 2003-08-26 Jim Blandy <jimb@redhat.com>
885
886 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
887 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
888 bfd_lookup_symbol, since we only want symbols in code sections.
889 (look_for_base): Pass zero as the SECT_FLAGS argument to
890 bfd_lookup_symbol, since we're not concerned about which section
891 the symbol is in.
892
893 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
894
895 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
896 we are frameless or the return address register is already known.
897
898 2003-08-26 Andrew Cagney <cagney@redhat.com>
899
900 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
901 in size. Add comments.
902
903 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
904
905 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
906 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
907
908 2003-08-26 Jason Merrill <jason@redhat.com>
909
910 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
911 case out of #ifdef MIPS block.
912
913 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
914
915 PR java/1322
916 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
917 available before calling SECT_OFF_TEXT.
918 * PROBLEMS: Remove description of java/1322.
919
920 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
921
922 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
923 bof, and nat0-nat127 as pseudo-registers.
924 (ia64_frame_cache): New struct used to cache frame info.
925 (ia64_register_reggroup_p): New routine used to override default
926 register grouping so registers without names are still saved and
927 restored.
928 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
929 pseudo values.
930 (ia64_pseudo_register_read): New routine to read pseudo-registers.
931 (ia64_pseudo_register_write): New routine to write pseudo-registers.
932 (ia64_alloc_frame_cache): New routine to create a new
933 ia64_frame_cache.
934 (examine_prologue): Change prototype to add next_frame pointer.
935 Assume frameless until otherwise proven. Verify that the cfm for
936 current frame matches the cfm that should occur for the prologues
937 alloc insn and if equal, mark as not frameless. At end of routine,
938 if not frameless, calculate registers for the previous frame and store
939 in the cache, if a cache is provided.
940 (ia64_skip_prologue): Use new prototype when calling examine_prologue
941 and pass 0 for next_frame.
942 (ia64_store_return_value): Change to use convert_typed_floating()
943 instead of calling ia64_convert_to_raw().
944 (ia64_extract_return_value): Change to use convert_typed_floating()
945 instead of calling ia64_convert_to_virtual().
946 (ia64_frame_cache): New routine to support new frame model.
947 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
948 (ia64_frame_sniffer): Ditto.
949 (ia64_sigtramp_frame_init_saved_regs): Ditto.
950 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
951 (ia64_sigtramp_frame_prev_register): Ditto.
952 (ia64_sigtramp_frame_sniffer): Ditto.
953 (ia64_frame_base_address): Ditto.
954 (ia64_extract_struct_value_address): Change to issue error message.
955 (ia64_frame_align): New routine to align sp.
956 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
957 (ia64_push_arguments): Removed. Logic moved to
958 ia64_push_dummy_call().
959 (ia64_push_return_address): Ditto.
960 (ia64_unwind_dummy_id): New function.
961 (ia64_unwind_pc): Ditto.
962 (ia64_convert_register_p): Ditto.
963 (ia64_register_to_value): Ditto.
964 (ia64_value_to_register): Ditto.
965 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
966 (ia64_register_byte, ia64_register_raw_size): Ditto.
967 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
968 (ia64_saved_pc_after_call): Ditto.
969 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
970 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
971 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
972 (ia64_register_convert_to_raw): Ditto.
973 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
974 (ia64_init_extra_frame_info): Ditto.
975 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
976 (ia64_gdbarch_init): Remove registering of deprecated functions that
977 are no longer used. Add registration of new gdbarch functions.
978 Remove registering deprecated_write_sp. Replace
979 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
980 Delete set_gdbarch_deprecated_register_convertible(),
981 set_gdbarch_deprecated_register_convert_to_virtual(), and
982 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
983 set_gdbarch_deprecated_register_size(),
984 set_gdbarch_deprecated_register_bytes(),
985 set_gdbarch_pcregnum(),
986 set_gdbarch_deprecated_register_byte(),
987 set_gdbarch_deprecated_register_raw_size(),
988 set_gdbarch_deprecated_max_register_raw_size(),
989 set_gdbarch_deprecated_register_virtual_size(),
990 and set_gdbarch_deprecated_max_register_virtual_size() calls.
991 Replace set_gdbarch_deprecated_extract_return_value() with
992 set_gdbarch_extract_return_value(). Remove calls to:
993 set_gdbarch_deprecated_saved_pc_after_call();
994 set_gdbarch_deprecated_frame_chain(),
995 set_gdbarch_deprecated_frame_saved_pc(),
996 set_gdbarch_deprecated_frame_init_saved_regs(),
997 set_gdbarch_deprecated_get_saved_register(),
998 set_gdbarch_deprecated_call_dummy_words(),
999 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1000 set_gdbarch_deprecated_init_extra_frame_info(),
1001 set_gdbarch_deprecated_frame_args_address(),
1002 set_gdbarch_deprecated_frame_locals_address(),
1003 and set_gdbarch_deprecated_dummy_write_sp().
1004 Add set_gdbarch_convert_register_p(),
1005 set_gdbarch_register_to_value(),
1006 set_gdbarch_value_to_register(),
1007 set_gdbarch_push_dummy_call(),
1008 set_gdbarch_frame_align(),
1009 set_gdbarch_unwind_dummy_id(),
1010 set_gdbarch_unwind_pc(),
1011 frame_unwind_append_sniffer(),
1012 frame_unwind_append_sniffer(),
1013 and frame_base_set_default().
1014
1015 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1016
1017 * configure.tgt: Document need for special "mipsisa64" handling.
1018 (mipsisa64*-*-linux64): Handle as target linux64.
1019 (mipsisa64*-*-*): Handle as target embed64.
1020
1021 2003-08-18 Michael Chastain <mec@shout.net>
1022
1023 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1024 objfile bug.
1025
1026 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1027
1028 * i387-tdep.h: Update copyright date.
1029 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1030
1031 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1032 CFLAGS games to reflect reality.
1033
1034 2003-08-24 Andrew Cagney <cagney@redhat.com>
1035
1036 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1037 GDB_MULTI_ARCH is always non-zero.
1038 * osabi.c (_initialize_gdb_osabi): Ditto.
1039 (gdbarch_init_osabi): Ditto.
1040 * sparc-tdep.c: Ditto for #if code.
1041
1042 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1043
1044 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1045 Update comments.
1046 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1047 comments.
1048 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1049 x86_64_supply_fxsave.
1050 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1051 x86_64_supply_fxsave.
1052 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1053 x86_64_supply_fxsave.
1054
1055 2003-08-23 Andreas Jaeger <aj@suse.de>
1056
1057 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1058 i387_supply_fxsave.
1059
1060 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1061
1062 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1063 i387_supply_register.
1064 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1065 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1066 i387_supply_fsave.
1067 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1068 i387_supply_fxsave.
1069 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1070 i387_supply_fsave.
1071 * i386bsd-nat.c (supply_fpregset): Adjust call to
1072 i387_supply_fsave.
1073 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1074 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1075 supply_fpregset.
1076 (store_inferior_registers): Remove extraneous whitespace. Call
1077 i387_fill_fsave instead of fill_fpregset.
1078 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1079 (supply_fpregset): Likewise.
1080 * i386v4-nat.c (supply_fpregset): Adjust call to
1081 i387_supply_fsave.
1082 * i386-interix-nat.c (supply_fpregset): Adjust call to
1083 i387_supply_fsave.
1084 * i386-linux-nat.c (supply_fpregset): Adjust call to
1085 i387_supply_fsave.
1086 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1087 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1088 i387supply_fsave and i387_supply_fxsave.
1089 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1090 Incorporate code from `i387_supply_register.
1091 (i387_supply_register): Remove.
1092 (i387_supply_fxsave): Add `regnum' argument.
1093 Update comments.
1094 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1095 prototype.
1096 (i387_supply_register): remove prototype.
1097 Update comments.
1098
1099 2003-08-22 Michael Chastain <mec@shout.net>
1100
1101 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1102 Add lines for files in gdb/testsuite/gdb.cp/* that are
1103 still not 8.3 unique.
1104
1105 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1106
1107 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1108 TYPE_VPTR_FIELDNO is valid.
1109
1110 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1111
1112 * utils.c (set_width_command): Remove prototypes.
1113 (set_screen_size): New prototype.
1114 (init_page_info): Simplify by fetching the screen size from
1115 Readline. Call set_screen_size.
1116 (set_screen_size): New function.
1117 (set_width): Add missing whitespace in comment.
1118 (set_width_command): Call set_screen_size.
1119 (set_height_command): New function.
1120 (initialize_utils): Fix formatting. Make "set height" command
1121 call set_height_command. Remove redundant code that turns off
1122 pagination if output isn't a terminal. Remove redundant call to
1123 set_width_command.
1124
1125 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1126
1127 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1128 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1129 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1130 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1131 `case' keyword.
1132 (sparc64_register_info): Give the reister with number
1133 SPARC64_STATE_REGNUM a name.
1134 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1135 %asi and %ccr.
1136 (sparc64_push_dummy_call): Take BIAS into account when checking
1137 stcak alignment.
1138 (sparc_software_single_step): Remove assertions that check whether
1139 NPC and NNPC were zero.
1140 (sparc_supply_rwindow): Make public. Merge functionality with
1141 sparc64_supply_rwindow.
1142 (sparc_fill_rwindow): Make public. Merge functionality with
1143 sparc64_fill_rwindow.
1144 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1145 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1146 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1147 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1148 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1149
1150 * reggroups.c: Add whitespace after declarations of local
1151 variables in functions.
1152
1153 2003-08-21 Michael Chastain <mec@shout.net>
1154
1155 * gdbtypes.h: Change array bound type from an int to enum.
1156
1157 2003-08-21 Andrew Cagney <cagney@redhat.com>
1158
1159 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1160 * config/sparc/tm-sparc.h: Ditto.
1161 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1162 unconditionally.
1163 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1164
1165 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1166
1167 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1168 (register_objfile_data, set_objfile_data, objfile_data): New
1169 prototypes.
1170 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1171 prototypes.
1172 (allocate_objfile): Call objfile_alloc_data.
1173 (free_objfile): Call objfile_free_data.
1174 (struct objfile_data): New.
1175 (struct objfile_data_registration): New.
1176 (struct objfile_data_registry): New.
1177 (objfile_data_registry): New variable.
1178 (register_objfile_data): New function.
1179 (objfile_alloc_data, objfile_free_data): New functions.
1180 (set_objfile_data, objfile_data): New functions.
1181 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1182 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1183 (_initialize_dwarf2_frame): New function and prototype.
1184
1185 2003-08-21 Andrew Cagney <cagney@redhat.com>
1186
1187 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1188 a specific architecture.
1189 * arch-utils.h (set_architecture_from_arch_mach): Delete
1190 declaration.
1191 (target_architecture_hook): Delete declaration.
1192 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1193 (default_float_format): Assume GDB_MULTI_ARCH.
1194 (default_double_format): Assume GDB_MULTI_ARCH.
1195 (set_endian_from_file): Delete function.
1196 (arch_ok): Delete function.
1197 (set_arch): Delete function.
1198 (set_architecture_from_arch_mach): Delete function.
1199 (set_architecture_from_file): Delete function.
1200 (set_architecture): Assume GDB_MULTI_ARCH.
1201 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1202
1203 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1204
1205 Rewrite FreeBSD/sparc64 native configuration.
1206 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1207 * sparc64fbsd-nat.c: New file.
1208 * sparc64fbsd-tdep.c: New file.
1209 * sparc64-tdep.c sparc64-tdep.h: New files.
1210 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1211 sparc64fbsd-tdep.o): New dependencies.
1212 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1213 and sparc64fbsd-tdep.c.
1214 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1215 * config/sparc/fbsd.mh: Remove copyright notice.
1216 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1217 sparcbsd-nat.o.
1218 * config/sparc/fbsd.mt: Remove copyright notice.
1219 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1220 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1221 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1222 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1223 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1224 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1225 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1226 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1227 "sparc/tm-sp64.h".
1228 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1229 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1230
1231 2003-08-21 Michael Chastain <mec@shout.net>
1232
1233 * symtab.h: Add doco on the space critical structures and
1234 some measurements of space usage.
1235
1236 2003-08-21 Michael Snyder <msnyder@redhat.com>
1237
1238 * tracepoint.c (trace_dump_command): Trace break address
1239 is subject to DECR_PC_AFTER_BREAK.
1240 (set_traceframe_context): Make "trace_line" an int.
1241 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1242
1243 2003-08-20 Michael Snyder <msnyder@redhat.com>
1244
1245 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1246 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1247 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1248 argument passing.
1249 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1250 functions, replace sh_push_dummy_call.
1251 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1252
1253 2003-08-20 Michael Chastain <mec@shout.net>
1254
1255 * gdbtypes.h (struct main_type): Rearrange to save space.
1256
1257 2003-08-20 Michael Snyder <msnyder@redhat.com>
1258
1259 * trad-frame.c: Comment typo fix.
1260
1261 2003-08-20 Michael Snyder <msnyder@redhat.com>
1262 Kevin Buettner <kevinb@redhat.com>
1263
1264 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1265 (frv_frame_init_saved_regs): Add declaration.
1266 (frame_extra_info): Add new field ``saved_regs''.
1267 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1268 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1269 Update frame related code.
1270 (frv_extract_struct_value_address): Adjust formatting.
1271 * Makefile.in (frv-tdep.o): Update dependencies.
1272 * config/frv/tm-frv.h (target_insert_watchpoint)
1273 (target_remove_watchpoint, target_insert_hw_breakpoint)
1274 (target_remove_hw_breakpoint): Delete these macros.
1275 (remote_insert_watchpoint, remote_remove_watchpoint)
1276 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1277 these declarations.
1278
1279 2003-08-20 Michael Chastain <mec@shout.net>
1280
1281 * defs.h (ENUM_BITFIELD): New macro.
1282 * symtab.h (ENUM_BITFIELD): Use it.
1283 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1284
1285 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1286
1287 * MAINTAINERS (write after approval): Add myself.
1288
1289 2003-08-18 Andrew Cagney <cagney@redhat.com>
1290
1291 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1292 * gdbarch.h, gdbarch.c: Re-generate.
1293 * infcall.c (call_function_by_hand): Adjust the SP by
1294 frame_red_zone_size before allocating any stack space.
1295 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1296 * x86-64-tdep.c (x86_64_frame_align): New function.
1297 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1298
1299 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1300 Remove code adjusting SP so that it skips over the Red Zone.
1301
1302 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1303
1304 * NEWS (New native configurations): Mention FreeBSD/amd64.
1305
1306 2003-08-18 Andrew Cagney <cagney@redhat.com>
1307
1308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1309 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1310 "m68k_frame_p".
1311 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1312
1313 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1314
1315 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1316
1317 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1318
1319 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1320 Define.
1321 * i386-linux-nat.c: Include "linux-nat.h".
1322 (child_post_startup_inferior): New function.
1323
1324 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1325
1326 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1327 at the start of a frameless function. This probably fixes PR
1328 backtrace/1338.
1329
1330 2003-08-17 Michael Chastain <mec@shout.net>
1331
1332 * symfile.c (find_sym_fns): Remove special case for apollo target.
1333
1334 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1335
1336 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1337 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1338 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1339 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1340 (linux_supports_tracevforkdone): New function.
1341 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1342 TRACEVFORKDONE.
1343 (child_follow_fork): Handle vfork.
1344 (linux_handle_extended_wait): Likewise. Also handle exec.
1345 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1346 * NEWS: Mention fork tracing.
1347
1348 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1349
1350 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1351
1352 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1353
1354 * Makefile.in (i386-linux-nat.o): Update dependencies.
1355 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1356 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1357 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1358 * i386-linux-nat.c: Include "linux-nat.h".
1359 (child_post_startup_inferior): New function.
1360 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1361 * infptrace.c (kill_inferior): Wrap in #ifdef.
1362 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1363 attaching to each LWP.
1364 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1365 (init_lin_lwp_ops): Fill in some more operations.
1366 * linux-nat.h (linux_enable_event_reporting)
1367 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1368 prototypes.
1369 * linux-nat.c (linux_enable_event_reporting): New function.
1370 (child_post_attach, linux_child_post_startup_inferior)
1371 (child_post_startup_inferior, child_follow_fork)
1372 (linux_handle_extended_wait, kill_inferior): New functions.
1373
1374 2003-08-16 Andrew Cagney <cagney@redhat.com>
1375
1376 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1377 * gdbarch.h, gdbarch.c: Re-generate.
1378
1379 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1380
1381 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1382
1383 2003-08-16 Andrew Cagney <cagney@redhat.com>
1384
1385 * NEWS: Mention that "set prompt-escape-char" was deleted.
1386 * top.c (get_prompt_1): Delete function.
1387 (gdb_prompt_escape):
1388 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1389 prompt-escape-char" command.
1390 (MAX_PROMPT_SIZE): Delete macro.
1391 (get_prompt): Simplify, do not call get_prompt_1.
1392
1393 2003-08-16 Andrew Cagney <cagney@redhat.com>
1394
1395 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1396 -Werror. -Wformat-nonliteral problems.
1397
1398 2003-08-15 J. Brobecker <brobecker@gnat.com>
1399
1400 Further multiarching work mostly for hppa64-*-hpux11:
1401 * hppa-tdep.h: New file.
1402 * hppa-tdep.c: #include hppa-tdep.c.
1403 (hppa32_num_regs): Renamed from hppa_num_regs.
1404 (hppa64_num_regs): New constant.
1405 (hppa64_call_dummy_breakpoint_offset): New constant.
1406 (hppa32_call_dummy_length): New constant.
1407 (hppa64_call_dummy_length): New constant.
1408 (hppa32_stack_align): Make name 32bit explicit.
1409 (hppa32_register_virtual_type): Likewise.
1410 (hppa32_extract_return_value): Likewise.
1411 (hppa32_use_struct_convention): Likewise.
1412 (hppa32_store_return_value): Likewise.
1413 (hppa64_register_virtual_type): New function.
1414 (hppa64_extract_return_value): New function.
1415 (hppa64_use_struct_convention): New function.
1416 (hppa64_store_return_value): New function.
1417 (hppa_frame_locals_address): Remove declaration, function does
1418 not exist anymore.
1419 (hppa_register_byte): Add support for PA64 ABI.
1420 (hppa_gdbarch_init): Add support for PA64 ABI.
1421 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1422 Make name 32bit explicit.
1423 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1424 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1425 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1426 (hppa64_hpux_frame_base_before_sigtramp): New function.
1427 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1428 * config/pa/tm-hppa64.h: Remove macros that are no longer
1429 necessary now that the gdbarch vector is properly setup.
1430 Transform some macros into function calls. Some minor cleanup.
1431 * config/pa/tm-hppah.h: Update function calls in macros
1432 following the function renaming in hppa-hpux-tdep.c.
1433 * Makefile.in (hppa_tdep_h): New variable.
1434 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1435
1436 2003-08-14 Michael Snyder <msnyder@redhat.com>
1437
1438 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1439
1440 2003-08-13 J. Brobecker <brobecker@gnat.com>
1441
1442 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1443 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1444 routine.
1445
1446 2003-08-13 Michael Snyder <msnyder@redhat.com>
1447
1448 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1449 (frv_saved_pc_after_call): Use deprecated ftype.
1450 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1451 (frv_remote_translate_xfer_address): Remove.
1452 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1453
1454 2003-08-13 J. Brobecker <brobecker@gnat.com>
1455
1456 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1457 initialization after the common gdbarch initialization, not before.
1458
1459 2003-08-13 J. Brobecker <brobecker@gnat.com>
1460
1461 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1462 (ADDR_BITS_REMOVE): Remove, redundant.
1463
1464 2003-08-13 J. Brobecker <brobecker@gnat.com>
1465
1466 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1467 gdbarch method to clear the 2 low bits of text addresses.
1468
1469 2003-08-12 Andrew Cagney <cagney@redhat.com>
1470
1471 * Makefile.in (dsrec.o): Update dependencies.
1472 * dsrec.c: Include "gdb_assert.h".
1473 (make_srec): Use snprintf instead of sprintf, use a literal format
1474 string.
1475
1476 2003-08-12 Andrew Cagney <cagney@redhat.com>
1477
1478 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1479 FRAME_OBSTACK_ZALLOC.
1480
1481 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1482
1483 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1484 SSE registers.
1485
1486 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1487
1488 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1489 amd64fbsd_sc_reg_offset): Add extern declarations.
1490 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1491 declarations.
1492
1493 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1494
1495 * MAINTAINERS (write after approval): Update my mail address.
1496
1497 2003-08-10 Andrew Cagney <cagney@redhat.com>
1498
1499 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1500
1501 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1502
1503 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1504 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1505 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1506 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1507 i386bsd_sc_reg_offset): Add extern declarations.
1508 * i386obsd-nat.c: Include "i386-tdep.h"
1509 (_initialize_i386obsd_nat): Remove extern declarations.
1510 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1511 declarations.
1512 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1513 declarations.
1514
1515 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1516 instead of frame_read_register.
1517 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1518 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1519 SP_REGNUM.
1520 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1521 instead of frame_unwind_unsigned_register. Use
1522 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1523 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1524 instead of read_register. Use builtin_type_void_data_ptr instead
1525 of builtin_type_void_func_ptr when extracting the address of the
1526 jmp_buf.
1527 (i386_extract_return_value, i386_store_return_value,
1528 i386_pseudo_register_read, i386_pseudo_register_write): Use
1529 register_size instead REGISTER_RAW_SIZE.
1530
1531 2003-08-10 Andrew Cagney <cagney@redhat.com>
1532
1533 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1534 sprintf. Make "name" constant.
1535
1536 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1537
1538 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1539 instead of frame_read_register.
1540 (i387_print_float_info): Use get_frame_register and
1541 get_frame_register_unsigned instead of frame_register_read.
1542
1543 * i386fbsd-nat.c: Include "i386-tdep.h".
1544 (child_resume): Make `eflags' an ULONGEST. Use
1545 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1546 instead of register_read and register_write.
1547
1548 * i386bsd-nat.c (fetch_inferior_registers,
1549 store_inferior_registers): Don't use && at the end of a line.
1550 (_initialize_i386bsd_nat): Fix typo.
1551
1552 * frame.c (_initialize_frame): Add missing backslash.
1553
1554 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1555 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1556 and supply_register instead of manipulating the register buffer
1557 directly.
1558
1559 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1560 * config/i386/nm-i386sol2.h
1561 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1562
1563 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1564 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1565 instructions that GCC likes to mingle into the prologue. Fixes
1566 gdb/1253 and gdb/1255.
1567
1568 2003-08-09 Andrew Cagney <cagney@redhat.com>
1569
1570 Fix GDB PR cli/926.
1571 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1572 * command.h (add_setshow_uinteger_cmd): Declare.
1573 * frame.c (set_backtrace_cmd): New function.
1574 (show_backtrace_cmd): New function.
1575 * frame.c (_initialize_frame): Replace "set/show
1576 backtrace-below-main" with "set/show backtrace past-main". Add
1577 command "set/show backtrace limit".
1578 (backtrace_past_main): Rename "backtrace_below_main".
1579 (backtrace_limit): New variable.
1580 (get_prev_frame): Update. Check the backtrace_limit.
1581
1582 2003-08-09 Andrew Cagney <cagney@redhat.com>
1583
1584 * defs.h (xstrprintf): Declare.
1585 * utils.c (xstrprintf): New function.
1586 * breakpoint.c (insert_breakpoints): Replace sprintf and
1587 non-literal format strings, with xstrprintf and cleanups.
1588 (delete_breakpoint,breakpoint_re_set): Ditto.
1589 (commands_command, insert_breakpoints): Ditto.
1590 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1591 (break_at_finish_command_1): Ditto.
1592
1593 2003-08-09 Andrew Cagney <cagney@redhat.com>
1594
1595 * MAINTAINERS (language support): List Adam Fedor as Objective C
1596 maintainer.
1597
1598 2003-08-08 J. Brobecker <brobecker@gnat.com>
1599
1600 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1601 are now multiarched.
1602
1603 2003-08-08 J. Brobecker <brobecker@gnat.com>
1604
1605 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1606 longer necessary now that hppa64 is partially multiarch'ed.
1607
1608 2003-08-08 Andrew Cagney <cagney@redhat.com>
1609
1610 * interps.c (interp_set): Check for a NULL "old_interp".
1611
1612 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1613
1614 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1615 (install-only): Support DESTDIR.
1616 (uninstall): Likewise.
1617 (install-gdbtk): Likewise.
1618
1619 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1620
1621 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1622 contains something meaningful at all times.
1623
1624 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1625
1626 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1627
1628 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1629
1630 * MAINTAINERS (write after approval): Added self.
1631
1632 2003-08-07 Andrew Cagney <cagney@redhat.com>
1633
1634 * inferior.h (AT_SYMBOL): Define.
1635 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1636 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1637 * mips-tdep.c (mips_call_dummy_address): Delete function.
1638 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1639 set call_dummy_address.
1640
1641 2003-08-07 Andrew Cagney <cagney@redhat.com>
1642
1643 * language.c (op_error): Delete function.
1644 (binop_type_check): Delete function.
1645 * language.h (type_op_error, range_op_error): Delete macros.
1646 (op_error): Delete declaration.
1647
1648 2003-08-07 Andrew Cagney <cagney@redhat.com>
1649
1650 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1651
1652 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1653
1654 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1655 (x86_64_push_arguments): Skip the red zone.
1656
1657 2003-08-05 Andrew Cagney <cagney@redhat.com>
1658
1659 * reggroups.c (reggroup_next): Check for the final entry.
1660
1661 2003-08-04 Andrew Cagney <cagney@redhat.com>
1662
1663 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1664 * cli/cli-script.c (define_command): Call query directly, instead
1665 of passing it a buffer.
1666 * ocd.c (ocd_error): Pass error a constant format string.
1667 * remote-mips.c (mips_error): Use fputs_filtered.
1668
1669 * solib-svr4.c (_initialize_svr4_solib): Update
1670 register_gdbarch_data call.
1671 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1672
1673 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1674 (register_gdbarch_data): Delete "free" parameter. Update
1675 comments.
1676 * gdbarch.h, gdbarch.c: Re-generate.
1677 * reggroups.c (_initialize_reggroup): Update.
1678 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1679 * frame-base.c (_initialize_frame_base): Update.
1680 * frame-unwind.c (_initialize_frame_unwind): Update.
1681 * user-regs.c (_initialize_user_regs): Update.
1682 * remote.c (_initialize_remote): Update.
1683 * regcache.c (_initialize_regcache): Update.
1684
1685 * regcache.c (xfree_regcache_descr): Delete function.
1686 (_initialize_regcache): Update call to register_gdbarch_data.
1687 (init_regcache_descr, init_legacy_regcache_descr): Use
1688 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1689
1690 * remote.c (free_remote_state): Delete function.
1691 (_initialize_remote): Update register_gdbarch_data.
1692 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1693 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1694
1695 2003-08-04 Andrew Cagney <cagney@redhat.com>
1696
1697 * reggroups.c (struct reggroup_el): Define.
1698 (struct reggroups): Delete field "nr_group". Replace array
1699 "group" with a "first" to "last" linked list.
1700 (reggroups_init): Update. Allocate using gdbarch's obstack.
1701 (reggroups_free): Delete function.
1702 (add_group): Update. Add "el" parameter.
1703 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1704 (default_groups): Update.
1705 (reggroup_next): Replace reggroups.
1706 (reggroups_dump): Update.
1707 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1708 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1709 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1710
1711 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1712
1713 * Makefile.in (tui-interp.o): Update dependencies.
1714
1715 2003-08-04 David Carlton <carlton@kealia.com>
1716
1717 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1718 to internal_error call.
1719 * source.c (forward_search_command): Add "%s" format argument.
1720 (reverse_search_command): Ditto.
1721 * top.c (quit_confirm): Ditto.
1722 * cli/cli-setshow.c (do_setshow_command): Ditto.
1723 * cp-valprint.c (cp_print_class_method): Replace
1724 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1725 (cp_print_class_member): Ditto.
1726 * event-top.c (command_line_handler): Ditto.
1727 * linux-proc.c (linux_info_proc_cmd): Ditto.
1728 * p-typeprint.c (pascal_type_print_base): Ditto.
1729 * p-valprint.c (pascal_object_print_class_method): Ditto.
1730 (pascal_object_print_class_member): Ditto.
1731 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1732 * remote.c (remote_cisco_section_offsets): Ditto.
1733 * top.c (command_line_input): Ditto.
1734 * utils.c (vwarning,error_stream,quit): Ditto.
1735 * valprint.c (print_floating,print_binary_chars)
1736 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1737
1738 2003-08-04 Andrew Cagney <cagney@redhat.com>
1739
1740 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1741
1742 2003-08-02 Andrew Cagney <cagney@redhat.com>
1743
1744 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1745 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1746 amd64fbsd-nat.c.
1747
1748 2003-08-02 Andrew Cagney <cagney@redhat.com>
1749
1750 * Makefile.in: Update all dependencies and definitions.
1751
1752 2003-08-02 Adam Fedor <fedor@gnu.org>
1753
1754 * linespec.c (is_objc_method_format): New function
1755 (decode_line_1, locate_first_half): Use it.
1756 Fixes PR objc/1298
1757
1758 2003-08-01 Andrew Cagney <cagney@redhat.com>
1759
1760 * NEWS: Mention that m32r is multi-arch.
1761 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1762 * configure.tgt: Recognize m32r-*-*.
1763 * config/m32r/tm-m32r.h: Delete file.
1764 * config/m32r/m32r.mt: New file.
1765 * m32r-rom.c (m32r_upload_command): Use hostent only when
1766 gethostname succeeds, in order to avoid a compilation
1767 warning.
1768 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1769 compiler warning.
1770
1771 2003-08-01 Michael Snyder <msnyder@redhat.com>
1772
1773 * sh-tdep.c (sh_frame_align): New gdbarch method.
1774 (sh_gdbarch_init): Set up frame_align method.
1775
1776 2003-07-31 Michael Snyder <msnyder@redhat.com>
1777
1778 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1779 which is already covered by the new frames infrastructure.
1780
1781 2003-07-31 Andrew Cagney <cagney@redhat.com>
1782
1783 * user-regs.c (struct user_reg): Add "next" link.
1784 (struct user_regs): Replace "user" with "first" and "last" links.
1785 (append_user_reg): Add pre-allocated "reg" parameter.
1786 (builtin_user_regs): Provide initial value for "last".
1787 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1788 (user_regs_init): Allocate memory from the gdbarch obstack.
1789 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1790 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1791 linked list.
1792 (usernum_to_user_reg): New function.
1793 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1794 (value_of_user_reg): Use usernum_to_user_reg.
1795 (user_regs_free): Delete function.
1796 (_initialize_user_regs): Update register_gdbarch_data call.
1797
1798 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1799
1800 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1801
1802 2003-07-30 Michael Snyder <msnyder@redhat.com>
1803
1804 * value.h (value_being_returned): Add a struct_addr argument.
1805 * infcall.c (call_function_by_hand): Pass struct_addr to
1806 value_being_returned.
1807 * infcmd.c (print_return_value): Pass zero as struct_addr.
1808 * values.c (value_being_returned): If struct_addr is passed,
1809 use it instead of trying to recover it from the inferior.
1810
1811 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1812
1813 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1814 the prologue analyzer won't need to attempt to extract the pc
1815 value from the woefully incomplete dummy frame.
1816 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1817 possible. Disable code which modifies the frame.
1818
1819 2003-07-28 Andrew Cagney <cagney@redhat.com>
1820
1821 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1822 to level 2.
1823 (annotate_breakpoints_table, annotate_record): Ditto.
1824 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1825 (annotate_field_name_end, annotate_field_value): Ditto.
1826 (annotate_field_end, annotate_frame_source_begin): Ditto.
1827 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1828 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1829 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1830 (annotate_frame_address_end, annotate_frame_address): Ditto.
1831 (annotate_frame_args, annotate_frame_end): Ditto.
1832 (annotate_frame_where, annotate_arg_begin): Ditto.
1833 (annotate_arg_name_end, annotate_arg_value): Ditto.
1834 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1835 (annotate_function_call, annotate_signal_name): Ditto.
1836 (annotate_signal_string, annotate_signal_name_end): Ditto.
1837 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1838 (annotate_value_begin, annotate_value_history_value): Ditto.
1839 (annotate_value_history_end, annotate_value_end): Ditto.
1840 (annotate_display_begin, annotate_display_number_end): Ditto.
1841 (annotate_display_format, annotate_display_expression): Ditto.
1842 (annotate_display_expression_end, annotate_display_value): Ditto.
1843 (annotate_display_end, annotate_array_section_begin): Ditto.
1844 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1845 (annotate_elt, annotate_array_section_end): Ditto.
1846
1847 2003-07-28 Andrew Cagney <cagney@redhat.com>
1848
1849 * regcache.c (struct regcache_descr): Update comments on
1850 nr_raw_registers.
1851 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1852 sizeof_raw_register_valid_p.
1853 (init_regcache_descr): Set nr_raw_registers and
1854 sizeof_raw_register_valid_p before calling
1855 init_legacy_regcache_descr.
1856
1857 2003-07-28 Andrew Cagney <cagney@redhat.com>
1858
1859 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1860 MOD NUM_REGS.
1861
1862 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1863
1864 * thread.c (info_threads_command): Use get_selected_frame ().
1865 Check that there is at least one non-sentinel frame.
1866
1867 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1868
1869 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1870 (m68hc11_pop_frame): Remove.
1871 (m68hc11_frame_saved_pc): Remove.
1872 (m68hc11_frame_chain): Remove.
1873 (m68hc11_frame_init_saved_regs): Remove.
1874 (m68hc11_init_extra_frame_info): Remove.
1875 (m68hc11_store_struct_return): Remove.
1876 (m68hc11_saved_pc_after_call): Remove.
1877
1878 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1879
1880 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1881 frame unwind information.
1882 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1883 and adapted for frame unwinding.
1884 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1885 (m68hc11_unwind_pc): New function.
1886 (m68hc11_frame_unwind_cache): New function to analyze frames.
1887 (m68hc11_frame_this_id): New function to create new frame struct.
1888 (m68hc11_frame_prev_register): New function to unwind a register from
1889 the frame.
1890 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1891 (m68hc11_frame_p): New function for the above.
1892 (m68hc11_frame_base_address): New function to return fp of frame.
1893 (m68hc11_frame_args_address): Update for frame.
1894 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1895 (m68hc11_unwind_sp): New function.
1896 (m68hc11_unwind_dummy_id): New function.
1897 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1898 calls.
1899
1900 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1901
1902 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1903 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1904 when we are beyond the current pc.
1905
1906 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1907
1908 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1909 from m68hc11_push_arguments.
1910 (m68hc11_push_arguments): Remove.
1911 (m68hc11_push_return_address): Remove.
1912 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1913 handlers; remove deprecated_extra_stack_alignment_needed.
1914
1915 2003-07-27 Andrew Cagney <cagney@redhat.com>
1916
1917 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1918 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1919 REAL_PC and not the pointer.
1920 * hppa-hpux-tdep.c: Include frame.h
1921
1922 2003-07-27 Andrew Cagney <cagney@redhat.com>
1923
1924 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1925 GDB_MULTI_ACH_PARTIAL.
1926
1927 2003-07-27 Andrew Cagney <cagney@redhat.com>
1928
1929 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1930 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1931 operator at start and not end of line.
1932 (decode_prologue): Ditto.
1933 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1934 frame_unwind_register_unsigned instead of
1935 frame_unwind_unsigned_register.
1936 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1937 read_register.
1938 (m32r_push_dummy_call): Use register_size instead of
1939 REGISTER_RAW_SIZE.
1940 (m32r_frame_sniffer): Replace m32r_frame_p.
1941 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1942 * m32r-rom.c (report_transfer_performance): Delete extern
1943 declaration.
1944 (m32r_load, m32r_upload_command): Use print_transfer_performance
1945 instead of report_transfer_performance.
1946 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1947 / add_show_from_set.
1948
1949 2003-07-26 Andrew Cagney <cagney@redhat.com>
1950
1951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1952 store_return_value and extract_struct_value_address.
1953
1954 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1955
1956 PR c++/1267
1957 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1958 NULL, default to the section containing PC.
1959
1960 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1961
1962 * NEWS: Mention "regs" deprecated for m68hc11 too.
1963
1964 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1965 (m68hc11_print_register): New function to print out one register.
1966 (m68hc11_print_registers_info): New function to print registers.
1967 (show_regs): Deprecate and use the above.
1968 (m68hc11_gdbarch_init): Install the print_registers_info.
1969
1970 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1971
1972 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1973 that we have a SIGTRAP before returning non-zero.
1974
1975 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1976 Elena Zannoni <ezannoni@redhat.com>
1977
1978 * linespec.c (decode_line_2): Avoid crash if
1979 find_function_start_sal() returns empty record.
1980
1981 2003-07-23 Andreas Schwab <schwab@suse.de>
1982
1983 * ia64-tdep.c (ia64_print_insn): New function.
1984 (ia64_gdbarch_init): Set print_insn to it.
1985 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1986 deprecated_tm_print_insn_info.
1987
1988 2003-07-22 Michael Snyder <msnyder@redhat.com>
1989
1990 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1991 handle 8-bit returns (long long).
1992 (h8300h_extract_return_value): Ditto.
1993 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1994
1995 2003-07-22 Andrew Cagney <cagney@redhat.com>
1996
1997 * gdbarch.c Include "gdb_obstack.h".
1998 (struct gdbarch): Add an "obstack".
1999 (alloc_gdbarch_data): Allocate the gdbarch data using
2000 GDBARCH_OBSTACK_CALLOC.
2001 (free_gdbarch_data): Delete function.
2002 (gdbarch_obstack_zalloc): New function.
2003 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2004 Assert that the architecture is not initialized.
2005 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2006 vector from the obstack.
2007 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2008 architecture obstack.
2009 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2010 (set_gdbarch_data): Assert that the data is not initialized.
2011 (struct gdbarch_data): Delete member "free".
2012 (register_gdbarch_data): Do not initialize "free".
2013 * gdbarch.h, gdbarch.c: Re-generate.
2014
2015 2003-07-22 Andrew Cagney <cagney@redhat.com>
2016
2017 * configure.in (build_warnings): Add -Wformat-nonliteral.
2018 * configure: Re-generate.
2019
2020 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2021
2022 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2023
2024 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2025
2026 * findvar.c (read_var_value): Remove case for thread local storage
2027 variables. It is now entirely handled by the dwarf2 location
2028 expression code.
2029 * printcmd.c (address_info): Ditto.
2030 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2031 enumeration value.
2032 (struct symbol): Remove objfile field, which was used by
2033 LOC_THREAD_LOCAL_STATIC only.
2034 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2035 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2036 usage of objfile pointer.
2037 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2038 thread local variables.
2039 Add include of objfiles.h.
2040 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2041 storage variables.
2042 * Makefile.in (dwarf2loc.o): Update dependencies.
2043
2044 2003-07-22 Andrew Cagney <cagney@redhat.com>
2045
2046 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2047 get_frame_base.
2048 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2049 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2050 (struct value): Add opaque declaration.
2051 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2052
2053 2003-07-21 Andrew Cagney <cagney@redhat.com>
2054
2055 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2056 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2057
2058 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2059
2060 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2061 regcache_cooked_read_unsigned instead of read_register.
2062 (m68hc11_saved_pc_after_call): Likewise.
2063 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2064 instead of write_register.
2065 (m68hc11_register_type): New function.
2066 (m68hc11_register_virtual_type): Remove.
2067 (m68hc11_store_return_value): Convert to use the regcache.
2068 (m68hc11_extract_struct_value_address): Likewise.
2069 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2070 m68hc11_register_type; undeprecate store_return_value and
2071 extract_struct_value_address.
2072
2073 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2074
2075 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2076 and translate to use regcache.
2077 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2078
2079 2003-07-18 Andrew Cagney <cagney@redhat.com>
2080
2081 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2082 * gdbarch.h, gdbarch.c: Re-generate.
2083 * i386-tdep.c (i386_gdbarch_init): Do not set
2084 DWARF2_BUILD_FRAME_INFO.
2085 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2086 unconditionally.
2087 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2088 DWARF2_BUILD_FRAME_INFO.
2089
2090 2003-07-18 Andrew Cagney <cagney@redhat.com>
2091
2092 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2093 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2094
2095 2003-07-18 Andrew Cagney <cagney@redhat.com>
2096
2097 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2098 frame_unwind_address_in_block, instead of frame_pc_unwind.
2099 (dwarf2_frame_cache): Ditto.
2100
2101 2003-07-18 Andrew Cagney <cagney@redhat.com>
2102
2103 * user-regs.h (struct gdbarch): Declare opaque.
2104 * ui-out.h (struct ui_file): Declare opaque.
2105 * dwarf2-frame.h (struct frame_info): Declare opaque.
2106
2107 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2108
2109 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2110 #include "...".
2111 (procfs_meminfo): Change strerror to safe_strerror.
2112 (procfs_can_run): Remove K&R badness.
2113
2114 2003-07-17 Michael Snyder <msnyder@redhat.com>
2115
2116 * remote-sim.c: Comment typo fix.
2117
2118 2003-07-17 Andrew Cagney <cagney@redhat.com>
2119
2120 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2121 configure.
2122 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2123 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2124 GDB_MULTI_ARCH_PARTIAL.
2125
2126 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2127
2128 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2129 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2130 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2131
2132 2003-07-16 Theodore A. Roth <troth@openavr.org>
2133
2134 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2135 found.
2136 (avr_frame_unwind_cache): Don't unwind FP for main.
2137 Update a comment.
2138 Save the computed prev_sp.
2139 (avr_saved_regs_unwinder): Remove function.
2140 (avr_frame_prev_register): Use PC unwind logic from
2141 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2142
2143 2003-07-16 Andrew Cagney <cagney@redhat.com>
2144
2145 * frame-base.h (frame_base_p_ftype): Delete definition.
2146 (frame_base_append_predicate): Delete declaration.
2147 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2148 (frame_unwind_append_predicate): Delete declaration.
2149 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2150 (append_predicate): Delete parameter "p".
2151 (frame_unwind_append_predicate): Delete function.
2152 (frame_unwind_append_sniffer): Update call to append_predicate.
2153 (frame_unwind_free): Delete function.
2154 (_initialize_frame_unwind): Pass NULL as "free" to
2155 register_gdbarch_data.
2156 (frame_unwind_init): Append the dummy_frame_sniffer.
2157 (frame_unwind_find_by_frame): Simplify.
2158 * frame-base.c (struct frame_base_table): Delete field "p".
2159 (append_predicate): Delete parameter "p".
2160 (frame_base_append_predicate): Delete function.
2161 (frame_base_append_sniffer): Update call to append_predicate.
2162 (frame_base_free): Delete function.
2163 (frame_base_find_by_frame): Simplify.
2164 (_initialize_frame_base): Pass NULL as "free" to
2165 register_gdbarch_data.
2166 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2167 (x86_64_sigtramp_frame_sniffer): Replace
2168 "x86_64_sigtramp_frame_p".
2169 (x86_64_init_abi): Set the frame unwind sniffers.
2170 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2171 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2172 (m68k_gdbarch_init): Set the frame unwind sniffers.
2173 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2174 "i386_sigtramp_frame_p".
2175 (i386_frame_sniffer): Replace "i386_frame_p".
2176 (i386_gdbarch_init): Set the frame unwind sniffers.
2177 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2178 (avr_gdbarch_init): Set the frame unwind sniffers.
2179 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2180 "alpha_sigtramp_frame_p"
2181 (alpha_heuristic_frame_sniffer): Replace
2182 "alpha_heuristic_frame_p".
2183 (alpha_gdbarch_init): Set the frame unwind sniffers.
2184 (alpha_dwarf2_init_abi): Ditto.
2185 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2186 "alpha_debug_frame_p".
2187 (alpha_mdebug_frame_base_sniffer): Replace
2188 "alpha_mdebug_frame_base_p".
2189 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2190 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2191 (d10v_gdbarch_init): Set the frame unwind sniffer.
2192 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2193 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2194 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2195 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2196 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2197 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2198
2199 2003-07-16 Michael Snyder <msnyder@redhat.com>
2200
2201 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2202 should go thru sh_dsp_register_sim_regno, else the dsp regs
2203 will not get the right values.
2204
2205 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2206
2207 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2208 deprecated_store_floating by call to store_typed_floating.
2209 (sh_sh4_register_convert_to_raw): Substitute call to
2210 deprecated_extract_floating by call to extract_typed_floating.
2211
2212 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2213
2214 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2215
2216 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2217
2218 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2219 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2220 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2221 as possible.
2222 (do_pseudo_register): Remove.
2223 (sh_push_dummy_code): New function.
2224 (sh64_store_struct_return): Rename from sh_store_struct_return.
2225 Only called for sh64 now.
2226 (sh_extract_struct_value_address): Regcache'ify.
2227 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2228 and accomodate new tasks.
2229 (sh64_push_return_address): Rename from sh_push_return_address.
2230 Only called for sh64 now.
2231 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2232 Regcache'ify.
2233 (sh3e_sh4_extract_return_value): Regcache'ify.
2234 (sh_default_store_return_value): Ditto.
2235 (sh3e_sh4_store_return_value): Ditto.
2236 (sh_default_register_byte): Remove.
2237 (sh_sh4_register_byte): Remove.
2238 (sh_default_register_raw_size): Remove.
2239 (sh_sh4_register_raw_size): Remove.
2240 (sh_register_virtual_size): Remove.
2241 (sh_sh3e_register_virtual_type): Remove.
2242 (sh_sh3e_register_type): New function.
2243 (sh_sh4_register_virtual_type): Remove.
2244 (sh_sh4_register_type): New function.
2245 (sh_default_register_virtual_type): Remove.
2246 (sh_default_register_type): New function.
2247 (do_fv_register_info): Add parameters to accomodate call from
2248 sh_print_registers_info.
2249 (do_dr_register_info): Ditto.
2250 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2251 Add parameters to accomodate call from sh_print_registers_info.
2252 (sh_do_fp_register): Ditto.
2253 (sh64_do_pseudo_register): Call do_dr_register_info,
2254 do_fv_register_info and sh_do_fp_register with default parameters.
2255 (sh_do_register): Add parameters to accomodate call from
2256 sh_print_registers_info.
2257 (sh_print_register): Ditto.
2258 (sh_print_registers_info): Rename from sh_do_registers_info.
2259 Add parameters to be used as gdbarch_print_registers_info
2260 implementation. Accomodate removed do_pseudo_register function
2261 pointer.
2262 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2263 function pointer. Call sh_print_register with default parameters.
2264 (sh64_do_registers_info): Call sh_print_registers_info instead of
2265 sh_do_registers_info.
2266 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2267 detection of deprecated vs. non-deprecated functionality.
2268 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2269 function pointer assignments by direct function calls.
2270
2271 2003-07-15 Andrew Cagney <cagney@redhat.com>
2272
2273 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2274 (frame_register_unwind, create_new_frame): Ditto.
2275 (legacy_get_prev_frame, get_frame_type): Ditto.
2276 (get_frame_base_address): Use frame_base_find_by_frame.
2277 (get_frame_locals_address): Use frame_base_find_by_frame.
2278 (get_frame_args_address): Use frame_base_find_by_frame.
2279 * frame-base.h (frame_base_sniffer_ftype): Declare.
2280 (frame_base_append_sniffer): Declare.
2281 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2282 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2283 (frame_base_append_sniffer): New function.
2284 (frame_base_append_predicate): Add a NULL sniffer.
2285 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2286 (struct frame_base_table): Add "sniffer".
2287 (frame_base_free): Free the "sniffer" table.
2288 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2289 (frame_unwind_append_sniffer): Declare.
2290 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2291 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2292 (struct frame_unwind_table): Add "sniffer", delete "middle".
2293 (append_predicate): Add "sniffer" parameter, append the sniffer.
2294 (frame_unwind_init): Update append_predicate call.
2295 (frame_unwind_append_sniffer): New function.
2296 (frame_unwind_append_predicate): Update append_predicate call.
2297 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2298
2299 2003-07-15 Andrew Cagney <cagney@redhat.com>
2300
2301 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2302 before code inhibiting repeated unwind attempts. Add to
2303 commentary on that test's problems.
2304 * blockframe.c (inside_main_func): Look for "main" in the minimal
2305 symbol table.
2306 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2307 identical.
2308
2309 2003-07-15 Andrew Cagney <cagney@redhat.com>
2310
2311 * complaints.c (struct explanation): Define.
2312 (struct complaints): Change type of "explanation" to "struct
2313 explanation".
2314 (symfile_explanations): Convert to a "struct explanation" table.
2315 (vcomplaint): Update.
2316
2317 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2318
2319 * x86-64-linux-nat.c (regmap): Removed.
2320 (supply_gregset, fill_gregset): Call
2321 x86_64_linux_(fill,supply)_gregset functions.
2322 * x86-64-linux-tdep.c (USER_*): New defines.
2323 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2324 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2325 New functions.
2326 (fetch_core_registers): Ditto.
2327 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2328 * x86-64-linux-tdep.h: New file.
2329 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2330 and core-regset.o.
2331 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2332
2333 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2334
2335 * x86-64-tdep.c (x86_64_store_return_value): Use
2336 regcache_cooked_write_part instead of regcache_cooked_write.
2337
2338 * configure.host: Add x86_64-*-freebsd*.
2339 * configure.tgt: Add x86_64-*-freebsd*.
2340 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2341 * amd64fbsd-nat.c: New file.
2342 * amd64fbsd-tdep.c: New file.
2343 * config/i386/nm-fbsd64.h: New file.
2344 * config/i386/fbsd64.mh: New file.
2345 * config/i386/fbsd64.mt: New file.
2346
2347 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2348
2349 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2350 `sc_regs_offset' and `sc_fpregs_offset'.
2351 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2352 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2353 (alpha_sigtramp_register_address): Rewrite to use new members of
2354 `struct gdbarch_tdep'.
2355 (alpha_gdbarch_init): Initialize new members of struct
2356 gdbarch_tdep'.
2357 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2358 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2359 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2360 (alphafbsd_pc_in_sigtramp): Implement.
2361 (alphafbsd_sigtramp_offset): New function.
2362 (alphafbsd_sigcontext_addr): New function.
2363 (alphafbsd_init_abi): Initialize signal trampoline related members
2364 of `struct gdbarch_tdep'.
2365 (_initialize_alphafbsd_tdep): Add prototype.
2366
2367 2003-07-11 Theodore A. Roth <troth@openavr.org>
2368
2369 * Makefile.in (install-only): Quote sed expression when generating
2370 transformed_name.
2371
2372 2003-07-11 Richard Henderson <rth@redhat.com>
2373
2374 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2375 * dwarf2-frame.c: Include complaints.h.
2376 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2377 variable initialization; return NULL on error.
2378 (decode_frame_entry): New.
2379
2380 2003-07-11 Andrew Cagney <cagney@redhat.com>
2381
2382 * frame.h (frame_address_in_block): Delete declaration.
2383 * blockframe.c (frame_address_in_block): Delete function.
2384 (get_frame_block): Use get_frame_address_in_block.
2385 (block_innermost_frame): Ditto.
2386 * stack.c (print_frame, backtrace_command_1): Ditto.
2387
2388 * frame.h (get_frame_address_in_block): Declare.
2389 (frame_unwind_address_in_block): Declare.
2390 * frame.c (frame_unwind_address_in_block): New function.
2391 (get_frame_address_in_block): New function.
2392
2393 2003-07-10 Andrew Cagney <cagney@redhat.com>
2394
2395 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2396 pre-default. Note: re-generate has no effect.
2397
2398 2003-07-10 Andrew Cagney <cagney@redhat.com>
2399
2400 * gdbarch.sh: When a variable, but not a function, compare against
2401 0. Fix problem in previous patch.
2402 * gdbarch.c: Re-generate.
2403
2404 2003-07-10 Andrew Cagney <cagney@redhat.com>
2405
2406 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2407 functions against NULL, not 0.
2408 * gdbarch.c: Re-generate.
2409
2410 2003-07-10 Fred Fish <fnf@ninemoons.com>
2411
2412 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2413 null string instead of a null pointer.
2414 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2415
2416 2003-07-09 Michael Snyder <msnyder@redhat.com>
2417
2418 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2419
2420 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2421
2422 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2423 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2424 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2425 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2426 * x86-64-tdep.c: ... from here.
2427
2428 2003-07-09 Andreas Schwab <schwab@suse.de>
2429
2430 * m68k-tdep.h (enum struct_return): Define.
2431 (struct gdbarch_tdep): Add struct_return.
2432 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2433 bytes are padded to the right, not to the left. Pass struct value
2434 address in register %a1, not on stack.
2435 (m68k_use_struct_convention): New function.
2436 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2437 struct_return in tdep to pcc_struct_return.
2438 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2439 reg_struct_return.
2440
2441 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2442
2443 * somread.c (som_symfile_offsets): Fix compilation error.
2444
2445 2003-07-09 Andrew Cagney <cagney@redhat.com>
2446
2447 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2448 Add comments about the checks.
2449
2450 2003-07-08 Andrew Cagney <cagney@redhat.com>
2451
2452 * Makefile.in: Make dependency section headers consistent.
2453 (config_h): Move to $BUILD headers section.
2454 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2455 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2456 (ada-exp.tab.c): Move to YACC/LEX section.
2457 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2458 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2459
2460 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2461
2462 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2463 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2464 of strerror with safe_strerror, use ISO C function definitions,
2465 and replace instances of sprintf with snprintf.
2466
2467 2003-07-07 Andrew Cagney <cagney@redhat.com>
2468
2469 * frame.c (get_prev_frame): Enable check for identical frames.
2470 Update comments. Update error messages.
2471
2472 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2473
2474 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2475
2476 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2477
2478 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2479 sort_symtab_syms, no longer necessary.
2480
2481 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2482
2483 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2484
2485 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2486
2487 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2488 (mips_register_byte): Likewise.
2489
2490 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2491
2492 * Makefile.in (sparc_tdep_h): New.
2493 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2494 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2495 * sparc-linux-nat.c: Include "sparc-tdep.h".
2496 * sparc-nat.c: Likewise.
2497 * sparc-tdep.c: Likewise.
2498 * sparc64nbsd-nat.c: Likewise.
2499 * sparcnbsd-nat.c: Likewise.
2500 * sparcnbsd-tdep.c: Likewise.
2501 * sparc-tdep.h: New file.
2502 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2503 and sparc_npc_regnum.
2504
2505 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2506
2507 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2508 (mips_linux_cannot_store_register): List supported instead of
2509 unsupported registers.
2510
2511 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2512
2513 * disasm.c (dump_insns): Separate instructions from addresses.
2514
2515 2003-07-07 Andreas Schwab <schwab@suse.de>
2516
2517 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2518 dependencies.
2519 * m68k-tdep.c (NUM_FREGS): Delete.
2520 (SIG_PC_FP_OFFSET): Delete.
2521 (TARGET_M68K): Delete.
2522 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2523 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2524 P_MOVEL_SP, P_MOVEML_SP): Define.
2525 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2526 P_TRAP): Delete.
2527 (m68k_register_raw_size): Delete.
2528 (m68k_register_virtual_size): Delete.
2529 (m68k_register_type): Renamed from m68k_register_virtual_type and
2530 add gdbarch argument.
2531 (m68k_store_struct_return): Delete.
2532 (m68k_deprecated_extract_return_value): Delete.
2533 (m68k_deprecated_extract_struct_value_address): Delete.
2534 (m68k_frame_chain): Delete.
2535 (m68k_frame_saved_pc): Delete.
2536 (m68k_fix_call_dummy): Delete.
2537 (m68k_push_dummy_frame): Delete.
2538 (m68k_pop_frame): Delete.
2539 (m68k_extract_return_value): New function.
2540 (m68k_store_return_value): Rewrite using regcache.
2541 (m68k_extract_struct_value_address): Rewrite using regcache.
2542 (m68k_push_dummy_call): New function.
2543 (struct m68k_frame_cache): Define.
2544 (m68k_alloc_frame_cache): New function.
2545 (m68k_analyze_frame_setup): New function.
2546 (m68k_analyze_register_saves): New function.
2547 (m68k_analyze_prologue): New function.
2548 (m68k_skip_prologue): Rewrite using above functions.
2549 (m68k_unwind_pc): New function.
2550 (m68k_frame_cache): New function.
2551 (m68k_frame_this_id): New function.
2552 (m68k_frame_prev_register): New function.
2553 (m68k_frame_unwind): New variable.
2554 (m68k_frame_p): New function.
2555 (m68k_sigtramp_frame_cache): New function.
2556 (m68k_sigtramp_frame_this_id): New function.
2557 (m68k_sigtramp_frame_prev_register): New function.
2558 (m68k_sigtramp_frame_unwind): New variable.
2559 (m68k_sigtramp_frame_p): New function.
2560 (m68k_frame_base_address): New function.
2561 (m68k_frame_base): New function.
2562 (m68k_unwind_dummy_id): New function.
2563 (fill_gregset): Use regcache_collect.
2564 (fill_fpregset): Likewise.
2565 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2566 defined.
2567 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2568 deprecated_init_frame_pc, deprecated_store_struct_return,
2569 deprecated_extract_return_value, deprecated_store_return_value,
2570 deprecated_frame_chain, deprecated_frame_saved_pc,
2571 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2572 deprecated_register_virtual_size,
2573 deprecated_max_register_raw_size,
2574 deprecated_max_register_virtual_size,
2575 deprecated_register_virtual_type, deprecated_register_size,
2576 deprecated_register_byte, deprecated_register_bytes,
2577 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2578 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2579 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2580 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2581 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2582 deprecated_push_dummy_frame, deprecated_pop_frame,
2583 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2584 only if SYSCALL_TRAP is defined. Set extract_return_value,
2585 store_return_value, extract_struct_value_address, register_type,
2586 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2587 predicates.
2588 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2589 M68K_MAX_REGISTER_SIZE): Define.
2590 (struct m68k_sigtramp_info): Define.
2591 (struct gdbarch_tdep): Add get_sigtramp_info.
2592 * m68klinux-nat.c (fetch_register): Use register_size instead of
2593 REGISTER_RAW_SIZE. Don't put assignment in if.
2594 (store_register): Likewise.
2595 (fetch_inferior_registers): Likewise.
2596 (store_inferior_registers): Likewise.
2597 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2598 (m68k_linux_frame_saved_pc): Delete.
2599 (m68k_linux_sigcontext_reg_offset,
2600 m68k_linux_ucontext_reg_offset): Define.
2601 (m68k_linux_get_sigtramp_info): New function.
2602 (m68k_linux_extract_return_value): Rewrite using regcache.
2603 (m68k_linux_store_return_value): Likewise.
2604 (m68k_linux_extract_struct_value_address): Likewise.
2605 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2606 Don't set deprecated_frame_saved_pc,
2607 deprecated_extract_return_value, deprecated_store_return_value,
2608 deprecated_extract_struct_value_address. Set
2609 extract_return_value, store_return_value,
2610 extract_struct_value_address.
2611
2612 2003-07-07 Andrew Cagney <cagney@redhat.com>
2613
2614 * expprint.c: Include "user-regs.h" instead of "frame.h".
2615 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2616 frame_map_regnum_to_name.
2617 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2618 (frame_map_name_to_regnum): Simplify, call
2619 user_reg_map_name_to_regnum.
2620 (frame_map_regnum_to_name): Simplify, call
2621 user_reg_map_regnum_to_name.
2622 (frame_register_unwind): Update.
2623 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2624 (_initialize_frame_reg): Call user_reg_add_builtin.
2625 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2626 (value_of_register): Use value_of_user_reg.
2627 * eval.c (evaluate_subexp_standard): Update.
2628 * parse.c (write_dollar_variable): Update.
2629 * d10v-tdep.c (d10v_print_registers_info): Update.
2630 * infcmd.c (registers_info): Update.
2631 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2632 (builtin_regs_h): Delete macro.
2633 (user_regs_h): Define.
2634 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2635 (builtin-regs.o): Delete target.
2636 (user-regs.o): Specify dependencies.
2637 (expprint.o): Update dependencies.
2638 (findvar.o): Update dependencies.
2639 (frame.o): Update dependencies.
2640 (std-regs.o): Update dependencies.
2641
2642 2003-07-06 Christopher Faylor <cgf@redhat.com>
2643
2644 * win32-nat.c (solib_symbols_add): Use one variable for all section
2645 address stuff. Pass variable rather than address of variable to
2646 safe_symbol_file_add.
2647
2648 2003-07-06 Andreas Schwab <schwab@suse.de>
2649
2650 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2651
2652 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2653
2654 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2655
2656 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2657
2658 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2659
2660 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2661
2662 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2663 * config/i386/nto.mh: New file.
2664 * config/i386/nm-nto.h: New file.
2665 * configure.host: Add i[3456]86-*-nto*.
2666
2667 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2668
2669 * remote-vx.c (vx_add_symbols): Fix compilation error.
2670
2671 2003-07-03 Andrew Cagney <cagney@redhat.com>
2672
2673 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2674 * gdbarch.h, gdbarch.c: Re-generate.
2675 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2676 (legacy_register_name): Declare.
2677 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2678 (REGISTER_NAME): Define.
2679 * sparc-tdep.c (legacy_register_name): New function.
2680 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2681 (REGISTER_NAME): Define.
2682 (hppa64_register_name): Declare.
2683 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2684 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2685 (hppa64_register_name): New function.
2686 (hppa_register_name): New function.
2687 * arch-utils.c (legacy_register_name): Delete.
2688 * arch-utils.h (legacy_register_name): Delete.
2689
2690 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2691
2692 * cli/cli-interp.c (cli_interpreter_resume): Update the
2693 cli_uiout's stream to gdb_stdout.
2694
2695 2003-07-03 Andrew Cagney <cagney@redhat.com>
2696
2697 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2698 predicate.
2699 * gdbarch.h, gdbarch.c: Re-generate.
2700 * regcache.c (init_regcache_descr): Use legacy code when either
2701 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2702
2703 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2704
2705 * NEWS: Move "set logging" entry into GDB 6.0 section.
2706
2707 2003-07-02 Jim Blandy <jimb@redhat.com>
2708
2709 * s390-tdep.c (struct frame_extra_info): new member:
2710 'stack_bought_valid'.
2711 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2712 initialize fextra_info->stack_bought.
2713 (s390_frameless_function_invocation): Don't trust the value of
2714 fextra_info_ptr->stack_bought unless
2715 fextra_info->stack_bought_valid is set.
2716
2717 New S390 prologue analyzer.
2718 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2719 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2720 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2721 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2722 compute_x_addr, s390_on_stack, s390_store,
2723 s390_get_signal_frame_info): New functions.
2724 (S390_NUM_SPILL_SLOTS): New macro.
2725 (s390_get_frame_info): Rewritten.
2726 (is_arg_reg): Deleted.
2727
2728 Break out the decoding of S/390 instructions into separate
2729 functions, to make it more legible, and easier to check
2730 against the spec.
2731 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2732 is_rx, is_rxe): New functions.
2733 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2734 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2735 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2736 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2737 enums for opcode values. (Is this an improvement?)
2738
2739 2003-07-02 Andrew Cagney <cagney@redhat.com>
2740
2741 * i386-tdep.c: Revert change committed as part of trad-frame code
2742 below.
2743
2744 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2745
2746 * breakpoint.c (insert_catchpoint): Make static.
2747
2748 2003-07-02 Andreas Schwab <schwab@suse.de>
2749
2750 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2751 former ia64_push_arguments and ia64_push_return_address, and use
2752 regcache functions instead of read/write_register.
2753 (ia64_gdbarch_init): Set push_dummy_call instead of
2754 deprecated_push_arguments and deprecated_push_return_address.
2755
2756 2003-07-01 Andreas Jaeger <aj@suse.de>
2757
2758 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2759 before the call.
2760 Set %rax only to number of SSE registers used.
2761
2762 2003-07-01 Andrew Cagney <cagney@redhat.com>
2763
2764 * trad-frame.h: Update comments, a -1 .addr is reserved.
2765 (trad_frame_value_p, trad_frame_addr_p): Declare.
2766 (trad_frame_reg_p): Declare.
2767 (trad_frame_set_value): Rename trad_frame_register_value.
2768 (trad_frame_set_unknown): Declare.
2769 * trad-frame.c (trad_frame_realreg_p): New function.
2770 (trad_frame_addr_p, trad_frame_value_p): New function.
2771 (trad_frame_set_unknown): New function.
2772 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2773 (trad_frame_prev_register): Use trad_frame_realreg_p,
2774 trad_frame_addr_p and trad_frame_value_p.
2775 (trad_frame_set_value): Rename trad_frame_register_value.
2776 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2777 and trad_frame_set_value.
2778
2779 2003-06-30 Jim Blandy <jimb@redhat.com>
2780
2781 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2782 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2783 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2784 for 16 registers, and then 32 more bytes.
2785 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2786 New macros.
2787 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2788 Move up in the file, since it's now used by is_simple_arg.
2789 (is_simple_arg): Don't assume registers are four bytes long.
2790 Exclude all double arguments. Extended floats are not simple
2791 args.
2792 (is_power_of_two): New function.
2793 (pass_by_copy_ref): Call is_power_of_two, and check that the
2794 length fits in a register, rather than listing all the acceptable
2795 sizes. Extended floats are not passed by reference.
2796 (s390_push_arguments): Don't assume registers are four bytes long.
2797 Reserve an argument register to point to the buffer for structures
2798 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2799 S390_STACK_FRAME_OVERHEAD.
2800
2801 2003-06-30 Andreas Schwab <schwab@suse.de>
2802
2803 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2804 format error message.
2805
2806 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2807
2808 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2809
2810 2003-06-30 David Carlton <carlton@kealia.com>
2811
2812 Band-aid for PR c++/1245.
2813 * Makefile.in (cp-support.o): Depend on complaints_h.
2814 * cp-support.c: Include complaints.h. Add declaration for
2815 find_last_component.
2816 (cp_find_first_component): Separate code into
2817 cp_find_first_component_aux.
2818 (cp_find_first_component_aux): Call demangled_name_complaint.
2819 (demangled_name_complaint): New.
2820
2821 2003-06-30 Andrew Cagney <cagney@redhat.com>
2822
2823 * remote.c (remote_write_bytes): Explicitly compute and then use
2824 the payload size. Update comments to reflect. Fixes problem of
2825 GDB not sending small packets as found by Fred Fish.
2826
2827 2003-06-30 Andrew Cagney <cagney@redhat.com>
2828
2829 * remote.c (remote_async_wait): Fix -Wformat problem.
2830
2831 2003-06-29 Andrew Cagney <cagney@redhat.com>
2832
2833 * remote.c (remote_wait): Call error, and not warning, when the
2834 packet is corrupt.
2835 (remote_async_wait): Ditto.
2836
2837 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2838
2839 * sparc-tdep.c (sparc_y_regnum): Make external again.
2840
2841 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2842
2843 * cli/cli-logging.c (pop_output_files): Add void to function
2844 definition.
2845
2846 2003-06-29 Andrew Cagney <cagney@redhat.com>
2847
2848 * frame.c (frame_register_unwind): Use unsigned char when dumping
2849 the buffer contents.
2850
2851 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2852
2853 * cli/cli-logging.c: New file.
2854 * cli-out.c (struct ui_out_data): Add original_stream.
2855 (cli_redirect): New function.
2856 (cli_ui_out_impl): Add cli_redirect.
2857 (cli_out_new): Initialize original_stream.
2858 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2859 (uo_redirect, ui_out_redirect): New.
2860 * ui-out.h (struct ui_out_impl): Add redirect member.
2861 (redirect_ftype): New.
2862 (ui_out_redirect): Add prototype.
2863 * Makefile.in: Add rules for cli-logging.c.
2864 * NEWS: Mention "set logging".
2865
2866 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2867
2868 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2869
2870 2003-06-27 Andrew Cagney <cagney@redhat.com>
2871
2872 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2873 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2874 * avr-tdep.c (avr_call_dummy_address): Delete function.
2875 (avr_gdbarch_init): Do not set call_dummy_address.
2876
2877 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2878
2879 * symfile.c (syms_from_objfile): Move variables to inner block.
2880 Move the checks for the non-mainline case a bit earlier to avoid
2881 doing some useless computations.
2882
2883 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2884
2885 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2886
2887 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2888
2889 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2890 sections.
2891
2892 2003-06-26 Michael Chastain <mec@shout.net>
2893
2894 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2895 gdb/testsuite/gdb.c++/pr-1210.exp.
2896
2897 2003-06-26 Andrew Cagney <cagney@redhat.com>
2898
2899 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2900 altivec_expression.h and altivec_registers.h.
2901
2902 2003-06-26 Andrew Cagney <cagney@redhat.com>
2903
2904 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2905 info->mach when MIPS16. Patch suggested by Fred Fish.
2906
2907 2003-06-26 Andrew Cagney <cagney@redhat.com>
2908
2909 * utils.c (internal_vproblem): Print the problem to a reason
2910 buffer and then pass to query. Make the msg variable more local.
2911
2912 2003-06-26 Andrew Cagney <cagney@redhat.com>
2913
2914 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2915 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2916 * gdbarch.h, gdbarch.c: Re-generate.
2917 * frame-base.c (default_frame_args_address): Update. Use
2918 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2919 not available.
2920 (default_frame_locals_address): Ditto for
2921 DEPRECATED_FRAME_LOCALS_ADDRESS.
2922 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2923 (vax_frame_num_args): Update.
2924 (vax_gdbarch_init): Update.
2925 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2926 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2927 * mcore-tdep.c (mcore_gdbarch_init): Update.
2928 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2929 * ia64-tdep.c (ia64_gdbarch_init): Update.
2930 * symtab.h (address_class): Update comments.
2931 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2932 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2933 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2934 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2935 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2936 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2937 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2938 * alpha-mdebug-tdep.c: Update.
2939 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2940
2941 2003-06-26 Andreas Jaeger <aj@suse.de>
2942
2943 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2944 of SSE registers so that varargs functions work. Rework handling
2945 of passing arguments on the stack.
2946 (x86_64_store_return_value): Return double and float values in SSE
2947 register.
2948
2949 2003-06-24 Michael Chastain <mec@shout.net>
2950
2951 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2952 the "constructor breakpoints ignored" bug.
2953
2954 2003-06-25 David Carlton <carlton@kealia.com>
2955
2956 * MAINTAINERS: Update e-mail address.
2957
2958 2003-06-24 Jim Blandy <jimb@redhat.com>
2959
2960 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2961
2962 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2963 function.
2964 (ppc_linux_init_abi): Register it as the
2965 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2966
2967 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2968 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2969 method.
2970
2971 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2972 (ppc64_standard_linkage_target): Use it.
2973
2974 2003-06-23 Andrew Cagney <cagney@redhat.com>
2975
2976 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2977 for 0 "int0" and 4 "int32" sized registers.
2978 * gdbtypes.c (builtin_type_int0): Define.
2979 (build_gdbtypes): Initialize builtin_type_int0.
2980 * gdbtypes.h (builtin_type_int0): Declare.
2981
2982 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2983
2984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2985 as characters are unsigned.
2986
2987 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2988
2989 PR gdb/1179
2990 * dwarfread.c (struct_type): Skip static fields without crashing.
2991
2992 2003-06-22 Andrew Cagney <cagney@redhat.com>
2993
2994 GDB 6.0 branch created.
2995 * README: Update.
2996 * PROBLEMS: Update. Empty.
2997 * NEWS: Update.
2998
2999 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3000
3001 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3002 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3003
3004 2003-06-22 Andrew Cagney <cagney@redhat.com>
3005
3006 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3007 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3008 Velikov.
3009
3010 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3011
3012 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3013 compilers.
3014
3015 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3016
3017 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3018 argument of val_print.
3019 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3020 to the address argument of baseclass_offset or target_read_memory.
3021 Do add it to the argument of cp_print_value_fields.
3022
3023 2003-06-21 Andrew Cagney <cagney@redhat.com>
3024
3025 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3026 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3027 instead of 0..NUM_REGS.
3028 (mips_register_reggroup_p): New function.
3029 (mips_pseudo_register_write): New function.
3030 (mips_pseudo_register_read): New function.
3031 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3032 based on the register's type.
3033 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3034 cooked.
3035 (mips_get_saved_register): Simplify. Assert that REGNO is a
3036 pseudo / cooked.
3037 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3038 (mips_register_type): Replace mips_register_virtual_type. Map
3039 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3040 when available.
3041 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3042 that the register is cooked / virtual.
3043 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3044 Only get the extra info when needed.
3045 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3046 (mips32_heuristic_proc_desc): Fetch the cooked register.
3047 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3048 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3049 (mips_print_register): Use gdbarch_register_type, instead of
3050 REGISTER_VIRTUAL_TYPE.
3051 (print_gp_register_row): Use gdbarch_register_type, instead of
3052 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3053 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3054 Print the pseudo / cooked registers.
3055 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3056 Print the pseudo / cooked registers.
3057 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3058 REG_NUM is pseudo / cooked.
3059 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3060 (mips_n32n64_xfer_return_value): Ditto.
3061 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3062 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3063 (mips_register_sim_regno): New function.
3064 (mips_gdbarch_init): Set deprecated_register_byte,
3065 register_group_p, pseudo_register_write, pseudo_register_read,
3066 register_sim_regno, and num_pseudo_regs. Set register_type,
3067 instead of register_virtual_type.
3068 * Makefile.in (mips-tdep.o): Update dependencies.
3069 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3070 REGISTER_VIRTUAL_TYPE.
3071 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3072 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3073 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3074 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3075 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3076
3077 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3078
3079 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3080 * cli/cli-cmds.c: Include "gdb_vfork.h".
3081 (shell_escape): Use vfork.
3082
3083 2003-06-21 Andrew Cagney <cagney@redhat.com>
3084
3085 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3086 32 bit floating-point register saves.
3087
3088 * frame.h (deprecated_unwind_get_saved_register): Delete.
3089 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3090 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3091 and deprecated_get_next_frame_hack instead of
3092 deprecated_unwind_get_saved_register.
3093
3094 * mips-tdep.c (mips_dump_tdep): Do not print
3095 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3096
3097 * frame.c (get_frame_register): New function.
3098 (frame_unwind_register_signed): New function.
3099 (get_frame_register_signed): New function.
3100 (frame_unwind_register_unsigned): New function.
3101 (get_frame_register_unsigned): New function.
3102 * frame.h: Add comments on naming schema.
3103 (get_frame_register, frame_unwind_register_signed): Declare.
3104 (get_frame_register_signed, get_frame_register_signed): Declare.
3105 (frame_unwind_register_unsigned): Declare.
3106 (get_frame_register_unsigned): Declare.
3107
3108 2003-06-20 Theodore A. Roth <troth@openavr.org>
3109
3110 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3111
3112 2003-06-20 Theodore A. Roth <troth@openavr.org>
3113
3114 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3115 (avr_read_sp): Ditto.
3116
3117 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3118
3119 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3120 * config/arm/nm-linux.h: Likewise.
3121 * config/arm/tm-linux.h: Likewise.
3122 * config/ia64/nm-linux.h: Likewise.
3123 * config/ia64/tm-ia64.h: Likewise.
3124 * config/s390/tm-linux.h: Likewise.
3125 * config/s390/tm-s390.h: Likewise.
3126 * s390-nat.c: Likewise.
3127 * s390-tdep.c: Likewise.
3128
3129 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3130 * config/ia64/linux.mt: Likewise.
3131 * config/m68k/linux.mh: Likewise.
3132 * config/mips/linux.mt: Likewise.
3133 * config/powerpc/linux.mh: Likewise.
3134 * config/sh/linux.mt: Likewise.
3135
3136 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3137
3138 * solib.c (solib_open): Change tests for whether to search
3139 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3140 comments.
3141
3142 2003-06-19 Theodore A. Roth <troth@openavr.org>
3143
3144 * avr-tdep.c (avr_frame_address): Delete function.
3145 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3146 set_gdbarch_frame_args_address.
3147
3148 2003-06-19 Andrew Cagney <cagney@redhat.com>
3149
3150 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3151 (REGISTER_CONVERT_FROM_TYPE): Delete.
3152 (mips_register_convert_to_type): Delete declaration.
3153 (mips_register_convert_from_type): Delete declaration.
3154 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3155 kernel/.
3156
3157 2003-06-19 Michael Snyder <msnyder@redhat.com>
3158
3159 * linux-nat.h: New file.
3160 * linux-nat.c: Include linux-nat.h.
3161 * lin-lwp.c: Include linux-nat.h.
3162 Move struct lwp_info def to linux-nat.h.
3163 * linux-proc.c: Include linux-nat.h.
3164 (linux_make_note_section): Iterate over lwps instead of threads.
3165 (linux_do_thread_registers): Use lwp instead of merged pid.
3166 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3167 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3168 Add dependency on linux_nat_h.
3169
3170 2003-06-19 Theodore A. Roth <troth@openavr.org>
3171
3172 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3173
3174 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3175
3176 * varobj.c (get_type, get_target_type): Use check_typedef.
3177
3178 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3179
3180 * breakpoint.c (insert_catchpoint): Call internal_error.
3181
3182 2003-06-19 Theodore A. Roth <troth@openavr.org>
3183
3184 * avr-tdep.c (avr_push_dummy_code): Delete function.
3185 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3186
3187 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3188
3189 * arch-utils.c (default_prepare_to_proceed): Remove.
3190 (generic_prepare_to_proceed): Remove.
3191 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3192 (generic_prepare_to_proceed): Remove prototype.
3193 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3194 * gdbarch.c: Regenerate.
3195 * gdbarch.h: Regenerate.
3196 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3197 * hppah-nat.c (hppa_switched_threads): Remove.
3198 * infrun.c (prepare_to_proceed): New static function, copied from
3199 generic_prepare_to_proceed. Remove select_it argument.
3200 (proceed): Call prepare_to_proceed.
3201 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3202 variables.
3203 (ptrace_wait): Don't set the removed variables.
3204 (hppa_switched_threads): Remove.
3205 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3206 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3207 (lin_lwp_prepare_to_proceed): Remove prototype.
3208 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3209 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3210
3211 2003-06-18 Theodore A. Roth <troth@openavr.org>
3212
3213 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3214 trad-frame.h.
3215 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3216 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3217 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3218 (AVR_PROLOGUE_*): Enumerate prologue types.
3219 (struct frame_extra_info): Remove.
3220 (struct avr_unwind_cache): Define.
3221 (avr_write_sp): Delete function.
3222 (avr_read_fp): Ditto.
3223 (avr_init_extra_frame_info): Ditto.
3224 (avr_pop_frame): Ditto.
3225 (avr_frame_saved_pc): Ditto.
3226 (avr_saved_pc_after_call): Ditto.
3227 (avr_push_return_address): Ditto.
3228 (avr_frame_chain): Ditto.
3229 (avr_store_struct_return): Ditto.
3230 (avr_push_arguments): Ditto.
3231 (avr_scan_prologue): Update comments. Changed to set up the info for
3232 cache unwinding. Now returns end of prologue PC.
3233 (avr_skip_prologue): Better handling of functions lacking a prologue
3234 by using avr_scan_prologue.
3235 (avr_scan_arg_moves): New function.
3236 (avr_saved_regs_unwinder): Ditto.
3237 (avr_frame_unwind_cache): Ditto.
3238 (avr_unwind_pc): Ditto.
3239 (avr_frame_this_id): Ditto.
3240 (avr_frame_prev_register): Ditto.
3241 (avr_frame_p): Ditto.
3242 (avr_frame_base_address ): Ditto.
3243 (avr_unwind_dummy_id): Ditto.
3244 (avr_push_dummy_code): Ditto.
3245 (push_stack_item): Ditto.
3246 (pop_stack_item): Ditto.
3247 (avr_push_dummy_call): Ditto.
3248 (struct stack_item): Define.
3249 (avr_frame_unwind): Declare structure.
3250 (avr_frame_base): Ditto.
3251 (avr_gdbarch_init): Remove calls to
3252 set_gdbarch_deprecated_init_frame_pc,
3253 set_gdbarch_deprecated_target_read_fp,
3254 set_gdbarch_deprecated_dummy_write_sp,
3255 set_gdbarch_deprecated_fp_regnum,
3256 set_gdbarch_deprecated_push_arguments,
3257 set_gdbarch_deprecated_push_return_address,
3258 set_gdbarch_deprecated_pop_frame,
3259 set_gdbarch_deprecated_store_struct_return,
3260 set_gdbarch_deprecated_frame_init_saved_regs,
3261 set_gdbarch_deprecated_init_extra_frame_info,
3262 set_gdbarch_deprecated_frame_chain,
3263 set_gdbarch_deprecated_frame_saved_pc,
3264 set_gdbarch_deprecated_saved_pc_after_call.
3265 Add calls to set_gdbarch_push_dummy_call,
3266 set_gdbarch_push_dummy_code,
3267 frame_unwind_append_predicate,
3268 frame_base_set_default,
3269 set_gdbarch_unwind_dummy_id,
3270 set_gdbarch_unwind_pc.
3271 Wrap a long line.
3272
3273 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3274
3275 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3276 registers for H8/300S.
3277 (h8300_print_registers_info): Ditto.
3278 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3279
3280 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3281
3282 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3283 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3284 (lin_lwp_wait): Likewise. Update comments.
3285 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3286 (pull_pid_from_list, linux_record_stopped_pid): New.
3287
3288 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3289
3290 * ada-lang.c (scan_discrim_bound): Name first argument.
3291 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3292 declared by ALL_BLOCK_SYMBOLS.
3293
3294 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3295
3296 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3297 ("regcache.h"): Include it.
3298 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3299
3300 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3301
3302 * NEWS: Mention gdbserver detach change and "disconnect" command.
3303 * infcmd.c (disconnect_command): New function.
3304 (_initialize_infcmd): Add ``disconnect'' command.
3305 * remote.c (remote_async_detach): Delete.
3306 (remote_detach): Merge remote_async_detach.
3307 (remote_disconnect): New.
3308 (init_remote_ops): Set to_disconnect.
3309 (init_remote_cisco_ops): Likewise.
3310 (init_remote_async_ops): Likewise. Use remote_detach.
3311 * target.c (cleanup_target): Default to_disconnect.
3312 (update_current_target): Inherit to_disconnect.
3313 (target_disconnect, debug_to_disconnect): New functions.
3314 (setup_target_debug): Set to_disconnect.
3315 * target.h (struct target_ops): Add to_disconnect.
3316 (target_disconnect): Add prototype.
3317
3318 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3319
3320 * breakpoint.c (insert_catchpoint): New function.
3321 (insert_breakpoints): Use catch_exceptions to call
3322 insert_catchpoint. Disable catchpoints if they fail to insert.
3323
3324 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3325
3326 * symfile.c (reread_symbols): Clear sym_private.
3327
3328 2003-06-17 Andrew Cagney <cagney@redhat.com>
3329
3330 * trad-frame.h (struct frame_info): Add opaque declaration.
3331 * remote-fileio.h (struct cmd_list_element): Add opaque
3332 declaration.
3333 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3334 comments.
3335
3336 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3337
3338 * remote.c (remote_prepare_to_store): Replace call to
3339 deprecated_read_register_bytes with multiple regcache_raw_read
3340 calls.
3341
3342 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3343
3344 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3345 (nto_find_and_open_solib): Likewise.
3346 (nto_init_solib_absolute_prefix): Likewise.
3347 (_initialize_nto_tdep): Fix indentation.
3348
3349 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3350
3351 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3352
3353 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3354
3355 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3356
3357 2003-06-17 Jim Blandy <jimb@redhat.com>
3358
3359 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3360
3361 2003-06-16 Theodore A. Roth <troth@openavr.org>
3362
3363 * avr-tdep.c (avr_extract_return_value): New function.
3364 (avr_gdbarch_init): Set extract_return_value method.
3365
3366 2003-06-16 Andrew Cagney <cagney@redhat.com>
3367
3368 * frame.h (deprecated_get_next_frame_hack): Declare.
3369 * frame.c (legacy_saved_regs_prev_register): Only require
3370 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3371 there are always saved regs.
3372 (deprecated_generic_get_saved_register): Do not require
3373 DEPRECATED_FRAME_INIT_SAVED_REGS.
3374 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3375 use frame ID unwind instead.
3376 (deprecated_get_next_frame_hack): New function.
3377
3378 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3379
3380 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3381 (h8300_push_dummy_call): ...this function. Some minor optimization.
3382 (h8300_push_return_address): Remove.
3383 (h8300_gdbarch_init): Remove calls to
3384 set_gdbarch_deprecated_dummy_write_sp,
3385 set_gdbarch_deprecated_push_arguments and
3386 set_gdbarch_deprecated_push_return_address.
3387 Add call to set_gdbarch_push_dummy_call.
3388
3389 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3390
3391 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3392 (E_PSEUDO_EXR_REGNUM): Ditto.
3393 (h8300_is_argument_spill): Check for instructions moving argument
3394 registers into safe registers.
3395 (h8300_skip_prologue): Check for stm instruction to push registers
3396 used for register variables onto stack.
3397 (gdb_print_insn_h8300): Remove.
3398 (h8300_examine_prologue): Add a comment.
3399 (h8300_register_name): Take pseudo registers into account.
3400 (h8300s_register_name): Ditto.
3401 (h8300sx_register_name): Ditto.
3402 (h8300_print_register): Ditto.
3403 (h8300_print_registers_info): Define "nice" printing order.
3404 (h8300_saved_pc_after_call): Take pseudo registers into account.
3405 (h8300_register_type): Ditto. Return type used for remote connection
3406 when requesting real CCR or EXR register, return actual type when
3407 requesting pseudo CCR or EXR.
3408 (h8300_pseudo_register_read): New function.
3409 (h8300_pseudo_register_write): Ditto.
3410 (h8300_dbg_reg_to_regnum): Ditto.
3411 (h8300s_dbg_reg_to_regnum): Ditto.
3412 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3413 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3414 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3415 set_gdbarch_print_insn architecture dependent.
3416 Call set_gdbarch_pseudo_register_read and
3417 set_gdbarch_pseudo_register_write.
3418 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3419
3420 2003-06-16 Andrew Cagney <cagney@redhat.com>
3421
3422 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3423 * gdbarch.h, gdbarch.c: Re-generate.
3424 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3425 * s390-tdep.c (s390_gdbarch_init): Update.
3426 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3427 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3428 * mips-tdep.c (mips_gdbarch_init): Update.
3429 * mcore-tdep.c (mcore_gdbarch_init): Update.
3430 * cris-tdep.c (cris_gdbarch_init): Update.
3431 * infcall.c (call_function_by_hand): Update.
3432 * ia64-tdep.c (ia64_push_arguments): Update comment.
3433 * frame.c (legacy_get_prev_frame): Do not assume
3434 SAVE_DUMMY_FRAME_TOS_P.
3435 * dummy-frame.c (find_dummy_frame): Update comment.
3436
3437 2003-06-16 Andrew Cagney <cagney@redhat.com>
3438
3439 * regcache.c (do_cooked_read): Do not use register_valid_p.
3440
3441 2003-06-15 Theodore A. Roth <troth@openavr.org>
3442
3443 * avr-tdep.c (avr_register_type): Remove a blank line.
3444 (avr_scan_prologue): Correct some comments.
3445
3446 2003-06-15 Theodore A. Roth <troth@openavr.org>
3447
3448 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3449 prologue types.
3450 Properly scan prologues generated by gcc with the -mcall-prologues
3451 option.
3452 Add code to scan -mcall-prologues for mega devices.
3453
3454 2003-06-15 Theodore A. Roth <troth@openavr.org>
3455
3456 * avr-tdep.c (avr_register_byte): Delete function.
3457 (avr_register_raw_size): Delete function.
3458 (avr_register_virtual_size): Delete function.
3459 (avr_register_virtual_type): Delete function.
3460 (avr_register_type): New function.
3461 (avr_address_to_pointer): Remove unused code.
3462 (avr_read_fp): Need to read FP as two separate bytes due to change to
3463 avr_register_type() usage.
3464 (avr_gdbarch_init): Don't set deprecated_register_size.
3465 Don't set deprecated_register_bytes.
3466 Don't set deprecated_register_byte.
3467 Don't set deprecated_register_raw_size.
3468 Don't set deprecated_max_register_raw_size.
3469 Don't set deprecated_register_virtual_size.
3470 Don't set deprecated_max_register_virtual_size.
3471 Don't set deprecated_register_virtual_type.
3472 Set register_type method.
3473
3474 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3475
3476 * Makefile.in (linux-nat.o): Add rule.
3477 * linux-nat.c: New file.
3478 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3479 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3480 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3481 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3482 * config/arm/linux.mh (NATDEPFILES): Likewise.
3483 * config/i386/linux.mh (NATDEPFILES): Likewise.
3484 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3485 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3486 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3487 * config/mips/linux.mh (NATDEPFILES): Likewise.
3488 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3489 * config/s390/s390.mh (NATDEPFILES): Likewise.
3490 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3491
3492 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3493
3494 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3495 replace out-of-date comment.
3496
3497 2003-06-15 Andrew Cagney <cagney@redhat.com>
3498
3499 * rdi-share/host.h (Fail): Change to a varargs function.
3500 * remote-rdi.c (Fail): Update.
3501
3502 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3503
3504 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3505 (i386_convert_register_p, i386_register_to_value,
3506 i386_register_from_value): Handle types longer than 8 bytes.
3507
3508 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3509
3510 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3511 Move floating-point code to new function in i387-tdep.c.
3512 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3513 New functions containing code moved here from i386-tdep.c.
3514 * i387-tdep.h: Add opaque declaration for `struct type'.
3515 (i387_register_to_value, i387_value_to_register): New prototypes.
3516 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3517 (x86_64_init_abi): Set convert_register_p, register_to_value and
3518 value_to_register here.
3519
3520 2003-06-14 Andrew Cagney <cagney@redhat.com>
3521
3522 * mips-tdep.c (mips_register_to_value): Make static.
3523 (mips_value_to_register): Make static.
3524 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3525 * ia64-tdep.c (ia64_register_raw_size): Make static.
3526 (ia64_register_virtual_size): Make static.
3527 (ia64_register_byte): Make static.
3528 * i387-tdep.c: Include "i387-tdep.h".
3529 (print_387_control_word): Delete function.
3530 (print_387_status_word): Delete function.
3531 (print_387_status_bits): Delete function.
3532 (print_387_control_bits): Delete function.
3533 * Makefile.in (i387-tdep.o): Update dependencies.
3534 * rdi-share/host.h (Fail): Declare.
3535 * remote-rdi.c (Fail): Update to match declaration.
3536
3537 2003-06-14 Andrew Cagney <cagney@redhat.com>
3538
3539 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3540 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3541 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3542 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3543 * README: Delete reference to remote-array.
3544 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3545 (remote-array.o): Delete target.
3546 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3547 * remote-array.c: Delete file.
3548
3549 2003-06-14 Andrew Cagney <cagney@redhat.com>
3550 Mark Kettenis <kettenis@gnu.org>
3551
3552 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3553 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3554 parameter with "frame".
3555 * gdbarch.h, gdbarch.c: Re-generate.
3556 * frame.h (put_frame_register): Declare.
3557 * frame.c (put_frame_register): New function.
3558 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3559 (legacy_register_to_value): Rewrite, use "frame" to get the
3560 register value.
3561 (legacy_value_to_register): Rewrite, use "frame" to find the
3562 register's location before storing.
3563 * arch-utils.h (legacy_convert_register_p): Update.
3564 (legacy_register_to_value, legacy_value_to_register): Update.
3565 * findvar.c (value_from_register): Rewrite, eliminate use of
3566 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3567 "frame" to REGISTER_TO_VALUE.
3568 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3569 lval_reg_frame_relative + lval_register branch of the switch. Do
3570 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3571 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3572 I386_EDI_REGNUM): New defines.
3573 (i386_next_regnum, i386_convert_register_p,
3574 i386_register_to_value, i386_value_to_register): New functions.
3575 (i386_register_convertible, i386_register_convert_to_virtual,
3576 i386_convert_to_raw): Remove functions.
3577 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3578 value_to_register instead of register_convertible,
3579 register_convert_to_virtual and register_convert_to_raw.
3580 * mips-tdep.c (mips_convert_register_p): New function.
3581 (mips_value_to_register): Replace mips_register_convert_from_type.
3582 (mips_register_to_value): Replace mips_register_convert_to_type.
3583 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3584 register_to_value.
3585 * alpha-tdep.c (alpha_convert_register_p): Update.
3586 (alpha_value_to_register): Update, store the register.
3587 (alpha_register_to_value): Update, fetch the register.
3588
3589 2003-06-14 Theodore A. Roth <troth@openavr.org>
3590
3591 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3592 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3593 Don't set deprecated_call_dummy_words.
3594 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3595 Don't set remote_translate_xfer_address.
3596 (avr_io_reg_read_command): Remove commented out debug printf.
3597 Wrap a long line.
3598
3599 2003-06-14 Theodore A. Roth <troth@openavr.org>
3600
3601 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3602 causes gdb to seg fault.
3603
3604 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3605
3606 * sparc-nat.c (fetch_inferior_registers): Correct
3607 a reference to "registers".
3608
3609 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3610
3611 * Makefile.in (exc_request_U_h): Define
3612 (exc_request_S_h): Likewise.
3613 (msg_reply_S_h): Likewise.
3614 (msg_U_h): Likewise.
3615 (notify_S_h): Likewise.
3616 (process_reply_S_h): Likewise.
3617 (gnu-nat.o): Depend on gdb_obstack_h
3618 * gnu-nat.c: Include "gdb_obstack.h".
3619
3620 2003-06-13 Andrew Cagney <cagney@redhat.com>
3621
3622 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3623 * gdbarch.h, gdbarch.c: Re-generate.
3624
3625 2003-06-13 Andrew Cagney <cagney@redhat.com>
3626
3627 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3628 when deprecated REGISTER macros can be deleted.
3629 * gdbarch.h, gdbarch.c: Re-generate.
3630
3631 2003-06-13 Jim Blandy <jimb@redhat.com>
3632
3633 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3634 Linux entry point symbols for _dl_debug_state, too.
3635
3636 2003-06-13 Andrew Cagney <cagney@redhat.com>
3637
3638 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3639 available, do not use the FP register, and always save the TOS.
3640 * dummy-frame.c (dummy_frame_this_id): Do not assert
3641 SAVE_DUMMY_FRAME_TOS.
3642 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3643 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3644 (i386_push_dummy_call): Add 8 to the returned SP.
3645 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3646 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3647 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3648 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3649 (x86_64_push_dummy_call): Return "sp + 16".
3650 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3651 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3652 save_dummy_frame_tos.
3653
3654 2003-06-13 Jim Blandy <jimb@redhat.com>
3655
3656 * frv-tdep.c (frv_use_struct_convention): Delete static
3657 declaration for function deleted in my change of 2003-06-12.
3658
3659 2003-06-13 Theodore A. Roth <troth@openavr.org>
3660
3661 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3662 (avr_pointer_to_address): Shift code addrs left 1 bit.
3663 (avr_convert_from_func_ptr_addr): Delete function since operation is
3664 better handled by avr_address_to_pointer and avr_pointer_to_address.
3665 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3666
3667 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3668
3669 From Kelley Cook <kelleycook@wideopenwest.com>:
3670 * configure.host: Accept i[34567]86 variants.
3671 * configure.tgt: Likewise.
3672 * nlm/configure.in: Likewise.
3673 * nlm/configure: Regenerated.
3674
3675 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3676
3677 * arm-tdep.c (solib-svr4.h): Dont' include it.
3678 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3679 * arm-linux-tdep.c: ... here. Make static.
3680 (arm_linux_init_abi): Register it.
3681 (solib-svr4.h): Include it.
3682 * Makefile.in: Update dependencies.
3683 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3684 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3685
3686 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3687
3688 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3689 indicate registers used for return values.
3690 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3691 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3692 members.
3693 (h8300_init_extra_frame_info): Ditto.
3694 (h8300_frame_locals_address): Removed.
3695 (h8300_frame_args_address): Removed.
3696 (h8300_extract_return_value): Use new regcache structure. Only care
3697 for 16 bit CPUs.
3698 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3699 (h8300_store_return_value): Use new regcache structure. Only care
3700 for 16 bit CPUs.
3701 (h8300h_store_return_value): Same function for 32 bit CPUs.
3702 (h8300_store_struct_return): Removed.
3703 (h8300_extract_struct_value_address): Use new regcache structure.
3704 (h8300h_extract_struct_value_address): Removed.
3705 (h8300_push_dummy_code): New function.
3706 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3707 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3708 set_gdbarch_store_return_value architecture dependent.
3709 Call set_gdbarch_push_dummy_code and
3710 set_gdbarch_extract_struct_value_address.
3711 Remove calls to set_gdbarch_frame_args_address,
3712 set_gdbarch_frame_locals_address,
3713 set_gdbarch_deprecated_store_struct_return,
3714 set_gdbarch_deprecated_extract_return_value,
3715 set_gdbarch_deprecated_extract_struct_value_address,
3716 set_gdbarch_deprecated_call_dummy_words and
3717 set_gdbarch_deprecated_sizeof_call_dummy_words.
3718
3719 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3720
3721 * h8300-tdep.c (h8300_register_byte): Remove.
3722 (h8300h_register_byte): Remove.
3723 (h8300_register_virtual_type): Remove. Substitute by...
3724 (h8300_register_type): New function.
3725 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3726 (h8300h_extract_struct_value_address): Ditto.
3727 (h8300_gdbarch_init): Drop calls to
3728 set_gdbarch_deprecated_register_byte and
3729 set_gdbarch_deprecated_register_virtual_type.
3730 Add call to set_gdbarch_register_type.
3731
3732 2003-06-13 Andrew Cagney <cagney@redhat.com>
3733
3734 * gdbarch.sh: Update comments on registers.
3735 (deprecated_register_byte): Rename register_byte.
3736 (deprecated_register_raw_size): Rename register_raw_size.
3737 (deprecated_register_virtual_size): Rename register_virtual_size.
3738 (deprecated_register_virtual_type): Rename register_virtual_type.
3739 * gdbarch.h, gdbarch.c: Re-generate.
3740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3741 * vax-tdep.c (vax_gdbarch_init): Update.
3742 * v850-tdep.c (v850_gdbarch_init): Update.
3743 * sparc-tdep.c (sparc_gdbarch_init): Update.
3744 * sh-tdep.c (sh_gdbarch_init): Update.
3745 * s390-tdep.c (s390_gdbarch_init): Update.
3746 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3747 * ns32k-tdep.c: Update.
3748 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3749 * mips-tdep.c (mips_gdbarch_init): Update.
3750 * mcore-tdep.c (mcore_gdbarch_init): Update.
3751 * m68k-tdep.c (m68k_gdbarch_init): Update.
3752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3753 * ia64-tdep.c (ia64_gdbarch_init): Update.
3754 * hppa-tdep.c (hppa_gdbarch_init): Update.
3755 * h8300-tdep.c (h8300_gdbarch_init): Update.
3756 * frv-tdep.c (frv_gdbarch_init): Update.
3757 * cris-tdep.c (cris_gdbarch_init): Update.
3758 * avr-tdep.c (avr_gdbarch_init): Update.
3759 * alpha-tdep.c (alpha_gdbarch_init): Update.
3760 * arm-tdep.c (arm_gdbarch_init): Update.
3761
3762 2003-06-13 Andrew Cagney <cagney@redhat.com>
3763
3764 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3765 mips_o32_use_struct_convention with always_use_struct_convention.
3766
3767 2003-06-12 David Carlton <carlton@kealia.com>
3768
3769 * cp-namespace.c (cp_set_block_scope): Comment out
3770 processing_has_namespace_info branch.
3771
3772 2003-06-12 Jim Blandy <jimb@redhat.com>
3773
3774 Recognize and skip 64-bit PowerPC Linux linkage functions.
3775 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3776 insn_pattern, insns_match_pattern, d_field, ds_field): New
3777 functions, macros, and types for working with PPC instructions.
3778 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3779 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3780 ppc64_skip_trampoline_code): New functions, variables, and macros
3781 for recognizing and skipping linkage functions.
3782 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3783 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3784
3785 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3786 register offsets for both the 32- and 64-bit interfaces.
3787
3788 Actually finish the job started by my change of 2003-05-29.
3789 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3790 other #definition of this.
3791 (ppc_linux_skip_trampoline_code): Remove declaration.
3792 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3793 static.
3794 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3795 method for GDBARCH.
3796
3797 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3798 'long' on ppc64-*-linux*.
3799
3800 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3801 isn't #defined, assume the register doesn't exist: act as if
3802 tdep->ppc_mq_regnum were -1.
3803
3804 * configure.host, configure.tgt: Add entries for
3805 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3806 powerpc/linux.mt.
3807 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3808 New files.
3809
3810 * arch-utils.c (always_use_struct_convention): New function.
3811 * arch-utils.h (always_use_struct_convention): New prototype.
3812 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3813 (alpha_gdbarch_init): Register always_use_struct_convention,
3814 instead of alpha_use_struct_convention.
3815 * cris-tdep.c (cris_use_struct_convention): Delete.
3816 (cris_gdbarch_init): Register always_use_struct_convention,
3817 instead of cris_use_struct_convention.
3818 * frv-tdep.c (frv_use_struct_convention): Delete.
3819 (frv_gdbarch_init): Register always_use_struct_convention,
3820 instead of frv_use_struct_convention.
3821 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3822 (h8300_gdbarch_init): Register always_use_struct_convention,
3823 instead of h8300_use_struct_convention.
3824 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3825 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3826 instead of mips_o32_use_struct_convention.
3827
3828 2003-06-12 Andrew Cagney <cagney@redhat.com>
3829
3830 * wince.c: Include "mips-tdep.h".
3831 * mips-tdep.h (mips_next_pc): Declare.
3832 * mcore-tdep.c: Make more local functions static.
3833 * Makefile.in (wince.o): Update dependencies.
3834
3835 2003-06-12 David Carlton <carlton@kealia.com>
3836
3837 * symtab.c (lookup_symbol_aux_minsyms): Replace
3838 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3839 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3840 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3841 SYMBOL_NATURAL_NAME.
3842
3843 2003-06-12 Andreas Schwab <schwab@suse.de>
3844
3845 * Makefile.in (tuiDisassem.o): Update dependencies.
3846
3847 2003-06-12 David Carlton <carlton@bactrian.org>
3848
3849 * symtab.h: Delete declaration of make_symbol_overload_list.
3850 Add declaration of lookup_partial_symbol.
3851 * symtab.c (remove_params): Move to cp-support.c.
3852 (overload_list_add_symbol, make_symbol_overload_list)
3853 (sym_return_val_size, sym_return_val_index): Ditto.
3854 (lookup_partial_symbol): Make extern.
3855 * cp-support.h: Add declaration of make_symbol_overload_list.
3856 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3857 symtab.h, and block.h.
3858 (remove_params): Move here from symtab.c.
3859 (overload_list_add_symbol, make_symbol_overload_list)
3860 (sym_return_val_size, sym_return_val_index): Ditto.
3861 * valops.c: Include cp-support.h.
3862 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3863 frame_h, and block_h.
3864 (valops.o): Depend on cp_support_h.
3865
3866 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3867
3868 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3869 substitute by NUM_REGS throughout.
3870 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3871 (h8300s_register_name): New function for H8S registers.
3872 (h8300sx_register_name): Ditto for H8SX registers.
3873 (h8300_print_register): Revise register printing, avoid depending
3874 on 32 bit long.
3875 (h8300_register_byte): Only care for H8/300 registers.
3876 (h8300h_register_byte): New function for any other architecture.
3877 (h8300_register_raw_size): Remove.
3878 (h8300_register_virtual_type): Revise to return actually useful
3879 type.
3880 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3881 (h8300h_extract_struct_value_address): New function for any other
3882 architecture.
3883 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3884 set_gdbarch_register_name, set_gdbarch_register_byte,
3885 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3886 Remove calls to set_gdbarch_deprecated_register_size,
3887 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3888 set_gdbarch_deprecated_max_register_raw_size,
3889 set_gdbarch_register_virtual_size and
3890 set_gdbarch_deprecated_max_register_virtual_size entirely.
3891 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3892 set_gdbarch_long_double_bit.
3893
3894 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3895
3896 * doublest.c (convert_doublest_to_floatformat): When dealing
3897 with the implied integer bit, only alter mant_bits if we are
3898 processing a full 32 bits of mantissa.
3899
3900 2003-06-11 David Carlton <carlton@bactrian.org>
3901
3902 * dictionary.h: New.
3903 * dictionary.c: New.
3904 * block.h: Add opaque declaration for struct dictionary.
3905 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3906 'sym' members.
3907 (BLOCK_DICT): New macro.
3908 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3909 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3910 BLOCK_SHOULD_SORT.
3911 (ALL_BLOCK_SYMBOLS): Update definition.
3912 * Makefile.in (SFILES): Add dictionary.c.
3913 (dictionary_h): New.
3914 (COMMON_OBS): Add dictionary.o.
3915 (dictionary.o): New.
3916 (ada-lang.o): Depend on dictionary_h.
3917 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3918 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3919 (mi-cmd-stack.o): Ditto.
3920 (gdbtk-cmds.o): Update dependencies.
3921 (gdbtk-stack.o): Ditto.
3922 * ada-lang.c: Include dictionary.h.
3923 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3924 (fill_in_ada_prototype, debug_print_block): Ditto.
3925 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3926 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3927 'is_sorted'.
3928 * mdebugread.c: Include dictionary.h.
3929 (struct parse_stack): Delete 'maxsyms' member.
3930 (parse_symbol): Update calls to new_block. Delete calls to
3931 shrink_block. Use dictionary methods.
3932 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3933 Update calls to new_symtab. Don't maintain maxsyms data.
3934 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3935 (add_symbol): Just call dict_add_symbol.
3936 (new_symtab): Delete 'maxsyms' argument.
3937 (new_symtab): Update calls to new_block.
3938 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3939 (shrink_block): Delete function.
3940 (fixup_sigtramp): Update call to new_block. Add symbol via
3941 dict_add_symbol.
3942 * jv-lang.c: Include dictionary.h.
3943 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3944 appropriately. Set class_symtab->free_func. Make sure the
3945 blockvector is big enough to hold two blocks.
3946 (add_class_symtab_symbol): Use dictionary methods.
3947 (free_class_block): New function.
3948 (type_from_class): Replace explicit iteration by
3949 ALL_BLOCK_SYMBOLS.
3950 * symtab.h (struct symtab): Replace 'free_ptr' method by
3951 'free_func'.
3952 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3953 sort_symtab_syms.
3954 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3955 sort_symtab_syms.
3956 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3957 Include dictionary.h.
3958 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3959 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3960 sort_symtab_syms.
3961 * objfiles.c: Include dictionary.h.
3962 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3963 * buildsym.c: Include dictionary.h.
3964 (finish_block): Use dictionary methods.
3965 (end_symtab): Set free_func to NULL, not free_ptr.
3966 * tracepoint.c: Include dictionary.h.
3967 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3968 (scope_info): Ditto.
3969 * stack.c: Include dictionary.h.
3970 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3971 (print_block_frame_labels, print_frame_arg_vars)
3972 (print_frame_args): Ditto.
3973 * symmisc.c (free_symtab_block): Use dictionary methods.
3974 (dump_symtab): Ditto.
3975 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3976 Include dictionary.h.
3977 * symfile.h: Delete declarations of sort_block_syms,
3978 sort_symtab_syms.
3979 * symfile.c (sort_block_syms): Delete.
3980 (sort_symtab_syms): Delete.
3981 * symtab.c: Include dictionary.h.
3982 (lookup_block_symbol): Use dictionary iterators.
3983 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3984 (search_symbols, make_symbol_completion_list): Ditto.
3985 (make_symbol_overload_list): Ditto.
3986 * valops.c (value_of_local): Use dict_empty.
3987 Include dictionary.h.
3988
3989 2003-06-11 J. Brobecker <brobecker@gnat.com>
3990
3991 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3992
3993 2003-06-11 David Carlton <carlton@bactrian.org>
3994
3995 * block.h (BLOCK_SHOULD_SORT): Delete.
3996 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3997 blocks.
3998 * ada-lang.c (ada_add_block_symbols): Ditto.
3999 * symfile.c (sort_block_syms): Delete.
4000 (sort_symtab_syms): Ditto.
4001 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4002 declarations.
4003 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4004 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4005 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4006 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4007 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4008 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4009 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4010
4011 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4012
4013 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4014 bits to 128.
4015
4016 2003-06-11 Andrew Cagney <cagney@redhat.com>
4017
4018 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4019 REGISTER_CONVERTIBLE.
4020 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4021 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4022 * gdbarch.h, gdbarch.c: Re-generate.
4023 * arch-utils.h (deprecated_register_convertible_not): Rename
4024 generic_register_convertible_not.
4025 * arch-utils.c (deprecated_register_convertible_not): Rename
4026 generic_register_convertible.
4027 (legacy_convert_register_p, legacy_register_to_value): Update.
4028 * sh-tdep.c (sh64_push_arguments): Update.
4029 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4030 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4031 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4032 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4033 * arch-utils.c (legacy_value_to_register): Update.
4034 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4035 (rs6000_register_convert_to_raw): Make parameter "from" const.
4036 * mips-tdep.c (mips_gdbarch_init): Update.
4037 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4038 * infcmd.c (default_print_registers_info): Update.
4039 * ia64-tdep.c (ia64_gdbarch_init): Update.
4040 (ia64_register_convert_to_raw): Make parameter "from" const.
4041 * i386-tdep.c (i386_gdbarch_init): Update.
4042 (i386_register_convert_to_raw): Update.
4043
4044 2003-06-11 Andrew Cagney <cagney@redhat.com>
4045
4046 * remote-fileio.c: Include "remote-fileio.h".
4047 * Makefile.in (remote-fileio.o): Update dependencies.
4048 (remote_fileio_h): Fix typo.
4049
4050 2003-06-11 Andrew Cagney <cagney@redhat.com>
4051
4052 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4053 (xstormy16_save_dummy_frame_tos): Make static.
4054 (_initialize_xstormy16_tdep): Add declaration.
4055 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4056 * v850-tdep.c: Make local functions static.
4057 (_initialize_v850_tdep): Add declaration.
4058 * sparc-tdep.c: Make local functions static.
4059 (_initialize_sparc_tdep): Add declaration.
4060 * sh-tdep.c: Make local functions static.
4061 (_initialize_sh_tdep): Add declaration.
4062 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4063 * s390-tdep.c: Make local functions static.
4064 (_initialize_s390_tdep): Add declaration.
4065 * dbxread.c (find_stab_function_addr): Make static.
4066 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4067 * ocd.c (_initialize_remote_ocd): Add declaration.
4068 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4069 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4070 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4071 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4072 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4073 * remote-array.c (_initialize_array): Add declaration.
4074 (_initialize_remote_monitors): Add declaration.
4075 * remote-mips.c: Make local functions static.
4076 (_initialize_remote_mips): Add declaration.
4077 * mcore-tdep.c: Make all local functions static.
4078 (_initialize_mcore_tdep): Add declaration.
4079 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4080 * abug-rom.c (_initialize_abug_rom): Add declaration.
4081 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4082 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4083 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4084 * remote-est.c (_initialize_est): Add declaration.
4085 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4086 (m68hc11_call_dummy_address): Make static.
4087 * ia64-tdep.c: Make local functions static.
4088 (_initialize_ia64_tdep): Add declaration.
4089 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4090 * monitor.c (monitor_wait_filter): Make static.
4091 (_initialize_remote_monitors): Add declaration.
4092 * remote-hms.c (_initialize_remote_hms): Add declaration.
4093 * remote-e7000.c (fetch_regs_from_dump): Make static.
4094 (expect_n): Make static.
4095 (_initialize_remote_e7000): Add declaration.
4096 * ser-e7kpc.c: Always include "defs.h".
4097 (_initialize_ser_e7000pc): Add declaration.
4098 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4099 * cris-tdep.c: Make all but one function static.
4100 (_initialize_cris_tdep): Add declaration.
4101 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4102 * solib.c (update_solib_list): Make static.
4103 (_initialize_solib): Add declaration.
4104 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4105 (_initialize_avr_tdep): Add declaration.
4106 * remote-rdi.c (voiddummy): Make static.
4107 (_initialize_remote_rdi): Add declaration.
4108 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4109 * remote-rdp.c (send_rdp): Make static.
4110 (_initialize_remote_rdp): Add declaration.
4111 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4112
4113 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4114
4115 * remote-fileio.c: Make ari happy.
4116
4117 2003-06-10 J. Brobecker <brobecker@gnat.com>
4118
4119 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4120 fetching the trailing bytes of the buffer we are about to write.
4121
4122 2003-06-10 Andrew Cagney <cagney@redhat.com>
4123
4124 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4125 * Makefile.in (remote-fileio.o): Update dependencies.
4126 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4127 include <setjmp.h>, or <sys/types.h> conditional on USG.
4128 (remote_fio_jmp_buf): Delete global variable.
4129
4130 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4131 Martin M. Hunt <hunt@redhat.com>
4132
4133 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4134 (SFILES): Add remote-fileio.c.
4135 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4136 dependencies for building remote.o.
4137 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4138 * remote-fileio.h: New header file defining remote File-I/O interface.
4139 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4140 static storage class.
4141 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4142 'F' packet.
4143 (_initialize_remote): Call initialize_remote_fileio().
4144 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4145 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4146 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4147 (captured_main): Initialize new ui_files.
4148 * ui-file.c: Add read and fgets input functions.
4149 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4150 (null_file_read): New function.
4151 (ui_file_read): New function.
4152 (set_ui_file_read): New function.
4153 (stdio_file_read): New function.
4154 * ui-file.h: New type ui_file_read_ftype.
4155 (set_ui_file_read): Declare.
4156 (ui_file_read): Declare.
4157
4158 2003-06-09 Andrew Cagney <cagney@redhat.com>
4159
4160 * frame.h (deprecated_unwind_get_saved_register): Rename
4161 generic_unwind_get_saved_register, update comments.
4162 * mips-tdep.c (mips_get_saved_register): Update.
4163 * frame.c (deprecated_unwind_get_saved_register): Update.
4164
4165 2003-06-09 Andrew Cagney <cagney@redhat.com>
4166
4167 * vax-tdep.c (vax_frame_locals_address): Delete function.
4168 (vax_gdbarch_init): Do not set frame_locals_address.
4169 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4170 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4171 * s390-tdep.c (s390_frame_args_address): Delete function.
4172 (s390_gdbarch_init): Do not set frame_args_address or
4173 frame_locals_address.
4174 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4175 (ns32k_gdbarch_init): Do not set frame_locals_address.
4176 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4177 (hppa_frame_locals_address): Delete function.
4178 (hppa_gdbarch_init): Do not set frame_args_address, or
4179 frame_locals_address.
4180 * arm-tdep.c (arm_frame_args_address): Delete.
4181 (arm_frame_locals_address): Delete.
4182 (arm_gdbarch_init): Do not set frame_args_address, or
4183 frame_locals_address.
4184
4185 2003-06-09 Andrew Cagney <cagney@redhat.com>
4186
4187 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4188 * gdbarch.h, gdbarch.c: Re-generate.
4189 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4190 * arch-utils.c (frame_num_args_unknown): Delete function.
4191 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4192 (frame_info): Use FRAME_NUM_ARGS_P.
4193 * arm-tdep.c (arm_frame_num_args): Delete function.
4194 (arm_gdbarch_init): Do not set frame_num_args.
4195 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4196 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4197 (hppa_gdbarch_init): Do not set frame_num_args.
4198 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4200 frame_num_args to default frame_num_args_unknown.
4201 * v850-tdep.c (v850_gdbarch_init): Ditto.
4202 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4203 * sh-tdep.c (sh_gdbarch_init): Ditto.
4204 * s390-tdep.c (s390_gdbarch_init): Ditto.
4205 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4206 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4207 * mips-tdep.c (mips_gdbarch_init): Ditto.
4208 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4209 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4211 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4212 * i386-tdep.c (i386_gdbarch_init): Ditto.
4213 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4214 * frv-tdep.c (frv_gdbarch_init): Ditto.
4215 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4216 * cris-tdep.c (cris_gdbarch_init): Ditto.
4217 * avr-tdep.c (avr_gdbarch_init): Ditto.
4218 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4219
4220 2003-06-09 Andrew Cagney <cagney@redhat.com>
4221
4222 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4223 (print_frame_args): Moved to "stack.c".
4224 * stack.c: Include "gdb_assert.h".
4225 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4226 (print_frame_args): Moved from "printcmd.c".
4227 * frame.h (print_frame_args): Delete declaration.
4228 * Makefile.in (stack.o): Update dependencies.
4229
4230 2003-06-08 Andrew Cagney <cagney@redhat.com>
4231
4232 * frame.c (get_prev_frame): Remove reference to
4233 frame_args_address_correct in comments.
4234 * frame-base.c (default_frame_args_address): Delete code
4235 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4236 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4237 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4238 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4239 (vax_frame_args_address_correct): Delete declaration.
4240
4241 2003-06-08 Andrew Cagney <cagney@redhat.com>
4242
4243 * gdbarch.sh (UNWIND_SP): Add.
4244 * gdbarch.h, gdbarch.c: Re-generate.
4245 * frame.c (frame_sp_unwind): New function.
4246 (get_frame_sp): New function.
4247 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4248 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4249 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4250 value.
4251 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4252 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4253
4254 2003-06-08 Andrew Cagney <cagney@redhat.com>
4255
4256 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4257 REMOTE_BREAKPOINT.
4258 * remote.c: Update.
4259 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4260 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4261 * config/m68k/tm-sun3.h: Update.
4262 * config/m68k/tm-m68klynx.h: Update.
4263 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4264
4265 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4266 trad_frame". Update comments.
4267 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4268 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4269 (trad_frame_register_value, trad_frame_prev_register): Update.
4270
4271 2003-06-08 Andrew Cagney <cagney@redhat.com>
4272
4273 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4274 from GCC's acinclude.m4.
4275 * configure.in: Check for getopt's delcaration.
4276 * aclocal.m4, config.in, configure: Re-generate.
4277 * main.c (error_init): Delete declaration.
4278 * defs.h (error_init): Declare.
4279 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4280 (rs6000_convert_from_func_ptr_addr): Make static.
4281 (_initialize_rs6000_tdep): Add declaration.
4282 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4283 (show_commands, set_verbose, show_history): Delete declaration.
4284 * top.h (set_verbose): Add declaration.
4285 (show_history, set_history, show_commands): Add declaration.
4286 (do_restore_instream_cleanup): Add declaration.
4287 * objc-lang.c (specialcmp): Make static.
4288 (print_object_command): Make static.
4289 (find_objc_msgsend): Make static.
4290 (find_objc_msgcall_submethod_helper): Make static.
4291 (find_objc_msgcall_submethod): Make static.
4292 (_initialize_objc_language): Add declaration.
4293 (find_implementation_from_class): Make static.
4294 (find_implementation): Make static.
4295 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4296 * objc-lang.h (lookup_struct_typedef): Add declaration.
4297 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4298 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4299 (do_restore_user_call_depth): Make static.
4300 (do_restore_instream_cleanup): Delete declaration.
4301 (dont_repeat): Delete declaration.
4302 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4303 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4304 * reggroups.c (_initialize_reggroup): Add declaration.
4305 * cp-support.c (_initialize_cp_support): Add declaration.
4306 * cp-abi.c (_initialize_cp_abi): Add declaration.
4307 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4308 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4309 (_initialize_gnu_v3_abi): Add declaration.
4310 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4311 (_initialize_gnu_v2_abi): Add declaration.
4312 * frame-base.c (_initialize_frame_base): Add declaration.
4313 * doublest.c (floatformat_from_length): Make static.
4314 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4315 * frame.c (create_sentinel_frame): Make static.
4316 (_initialize_frame): Add declaration.
4317 * top.c (do_catch_errors): Make static.
4318 (gdb_rl_operate_and_get_next_completion): Make static.
4319 * typeprint.c: Include "typeprint.h".
4320 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4321 (sentinel_frame_this_id): Make static.
4322 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4323 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4324 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4325 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4326 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4327 * maint.c (maintenance_print_architecture): Make static.
4328 * signals/signals.c (_initialize_signals): Add declaration.
4329 * std-regs.c (_initialize_frame_reg): Add declaration.
4330 * jv-exp.y (push_variable): ISO C definition.
4331 (push_qualified_expression_name): Ditto.
4332 * memattr.c (_initialize_mem): Add declaration.
4333 * remote.c (remote_check_watch_resources): Make static.
4334 (remote_stopped_by_watchpoint): Make static.
4335 (remote_stopped_data_address): Make static.
4336 * d10v-tdep.c (nr_dmap_regs): Make static.
4337 (a0_regnum): Make static.
4338 (d10v_frame_unwind_cache): Make static.
4339 (d10v_frame_p): Make static.
4340 * osabi.c (show_osabi): Make static.
4341 (_initialize_gdb_osabi): Add extern declaration.
4342 * gdbtypes.c (make_qualified_type): Make static.
4343 (safe_parse_type): Make static.
4344 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4345 * macrotab.c (macro_bcache_free): Make static.
4346 * interps.c (interp_set_quiet): Make static.
4347 (interpreter_exec_cmd): Make static.
4348 * stack.h (select_frame_command): New file.
4349 * stack.c: Include "stack.h".
4350 (select_frame_command_wrapper): Delete function.
4351 (select_frame_command): Make global.
4352 * infcall.c: Include "infcall.h".
4353 * linespec.c: Include "linespec.h".
4354 * symfile.c (sections_overlap): Make static.
4355 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4356 * charset.c (_initialize_charset): Add missing prototype.
4357 * regcache.c (init_legacy_regcache_descr): Make static.
4358 (do_regcache_xfree): Make static.
4359 (regcache_xfer_part): Make static.
4360 (_initialize_regcache): Add missing prototype.
4361 * breakpoint.c (parse_breakpoint_sals): Make static.
4362 (breakpoint_sals_to_pc): Make static.
4363 * interps.h (clear_interpreter_hooks): ISO C declaration.
4364 * Makefile.in (stack_h): Define.
4365 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4366 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4367
4368 2003-06-08 Andrew Cagney <cagney@redhat.com>
4369
4370 * Makefile.in (d10v-tdep.o): Update dependencies.
4371 (SFILES): Add trad-frame.c.
4372 (trad_frame_h): Define.
4373 (COMMON_OBS): Add trad-frame.o.
4374 (trad-frame.o): Specify dependencies.
4375 * d10v-tdep.c: Include "trad-frame.h".
4376 (saved_regs_unwinder): Delete function.
4377 (d10v_frame_prev_register): Use trad_frame_prev_register.
4378 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4379 trad_frame", delete "regs" and "prev_sp".
4380 (prologue_find_regs): Use trad-frame.
4381 * trad-frame.h, trad-frame.c: New files.
4382
4383 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4384
4385 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4386
4387 2003-06-07 Adam Fedor <fedor@gnu.org>
4388
4389 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4390 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4391 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4392 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4393 resolve_msgsend_super, resolve_msgsend_super_stret):
4394 Use it.
4395
4396 2003-06-07 Andrew Cagney <cagney@redhat.com>
4397
4398 * symfile.h: Re-indent, clean up comments.
4399
4400 2003-06-07 Andrew Cagney <cagney@redhat.com>
4401
4402 * inferior.h (deprecated_write_sp): Replace
4403 generic_target_write_sp.
4404 * regcache.c (deprecated_write_sp): Replace
4405 generic_target_write_sp.
4406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4407 * vax-tdep.c (vax_gdbarch_init): Update.
4408 * v850-tdep.c (v850_gdbarch_init): Update.
4409 * sparc-tdep.c (sparc_gdbarch_init): Update.
4410 * sh-tdep.c (sh_gdbarch_init): Update.
4411 * s390-tdep.c (s390_gdbarch_init): Update.
4412 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4413 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4414 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4415 * mcore-tdep.c (mcore_gdbarch_init): Update.
4416 * m68k-tdep.c (m68k_gdbarch_init): Update.
4417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4418 * ia64-tdep.c (ia64_gdbarch_init): Update.
4419 * h8300-tdep.c (h8300_gdbarch_init): Update.
4420 * frv-tdep.c (frv_gdbarch_init): Update.
4421 * cris-tdep.c (cris_gdbarch_init): Update.
4422 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4423
4424 2003-06-07 Andrew Cagney <cagney@redhat.com>
4425
4426 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4427 Assert that PC_REGNUM is valid.
4428 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4429
4430 2003-06-07 Andrew Cagney <cagney@redhat.com>
4431
4432 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4433 * gdbarch.h, gdbarch.c: Regenerate.
4434 * mn10300-tdep.c: Include "gdb_assert.h".
4435 (mn10300_read_fp): New function.
4436 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4437 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4438 * ia64-tdep.c: Include "gdb_assert.h".
4439 (ia64_read_fp): New function.
4440 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4441 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4442 * regcache.c (generic_target_read_sp): Delete function.
4443 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4444 * inferior.h (generic_target_read_sp): Delete declaration.
4445 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4446 generic_target_read_sp.
4447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4448 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4449 * sh-tdep.c (sh_gdbarch_init): Ditto.
4450 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4451 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4452
4453 2003-06-07 Andrew Cagney <cagney@redhat.com>
4454
4455 * gdbarch.sh: Comment each field of startup_gdbarch.
4456 * gdbarch.h, gdbarch.c: Re-generate.
4457
4458 2003-06-07 Andrew Cagney <cagney@redhat.com>
4459
4460 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4461 * gdbarch.h, gdbarch.c: Re-generate.
4462 * regcache.c: Update comments on read_pc et.al.
4463 (generic_target_read_pc): Delete function.
4464 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4465 * inferior.h (generic_target_read_pc): Delete declaration.
4466 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4467 generic_target_read_pc.
4468 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4469 * sh-tdep.c (sh_gdbarch_init): Ditto.
4470 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4471 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4472
4473 2003-06-07 Andrew Cagney <cagney@redhat.com>
4474
4475 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4476 "index" with "special_local_sect". Use strcmp instead of STREQ.
4477 Append period to coments.
4478
4479 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4480
4481 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4482 (elfstab_offset_sections): Likewise.
4483 * gdb-stabs.h (stab_section_info): Likewise.
4484 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4485 * objfiles.c (objfile_relocate): Likewise.
4486 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4487 * remote.c (get_offsets): Likewise.
4488 (remote_cisco_objfile_relocate): Likewise.
4489 * somread.c (som_symfile_offsets): Likewise.
4490 * symfile.c (alloc_section_addr_info): New function.
4491 (build_section_addr_info_from_section_tab): Use it.
4492 (free_section_addr_info): Adjust.
4493 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4494 (syms_from_objfile): Allocate local_addr dynamically.
4495 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4496 dynamically.
4497 (add_symbol_file_command): Allocate sect_opts dynamically.
4498 (reread_symbols): Avoid use of SECT_OFF_MAX.
4499 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4500 (alloc_section_addr_info): Declare it.
4501 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4502 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4503 dynamically.
4504 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4505
4506 2003-06-06 Andrew Cagney <cagney@redhat.com>
4507
4508 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4509 (d10v_frame_unwind_cache): Do not set "return_pc".
4510
4511 2003-06-06 Michael Snyder <msnyder@redhat.com>
4512
4513 * h8300-tdep.c: Make tidy (long lines).
4514
4515 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4516
4517 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4518 to regcache_collect().
4519
4520 2003-06-05 J. Brobecker <brobecker@gnat.com>
4521
4522 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4523 pc_in_sigtramp multiarch method.
4524 (hppa_hpux_som_init_abi): Use it.
4525 (hppa_hpux_elf_init_abi): Likewise.
4526 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4527 macro has been multiarched.
4528 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4529 macro here, as hppa64 isn't multiarched yet.
4530
4531 2003-06-05 Andrew Cagney <cagney@redhat.com>
4532
4533 * Makefile.in (value_h): Add $(frame_h).
4534 * value.h: Include "frame.h".
4535 (struct value): Replace "frame_addr" with "frame_id".
4536 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4537 * values.c (allocate_value): Use VALUE_FRAME_ID.
4538 (value_copy): Use VALUE_FRAME_ID.
4539 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4540 * valops.c (value_assign): Update. Use frame_find_by_id.
4541
4542 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4543
4544 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4545 in each pass.
4546
4547 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4548
4549 * thread-db.c (check_event): For create/death event breakpoints,
4550 loop through all messages to ensure that we read the message
4551 corresponding to the breakpoint we are at.
4552
4553 2003-06-04 Michael Snyder <msnyder@redhat.com>
4554
4555 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4556
4557 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4558
4559 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4560 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4561 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4562 when handling .eh_frame sections.
4563
4564 2003-06-04 J. Brobecker <brobecker@gnat.com>
4565
4566 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4567 prepare_to_proceed procedure instead of the hppa-specific one.
4568 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4569
4570 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4571
4572 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4573 * config.in: Regenerated.
4574 * configure.in: Add test for syscall function and check for
4575 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4576 * configure: Regenerated.
4577 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4578 <sys/syscall.h>.
4579 (kill_lwp): New function that uses tkill syscall or
4580 uses kill, depending on whether threading model is nptl or not.
4581 All callers of kill() changed to use kill_lwp().
4582 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4583 see if all threads have already exited in the nptl model.
4584 (stop_and_resume_callback): New callback function used by the
4585 lin_lwp_wait thread exit handling code.
4586 (stop_wait_callback): Check for threads already having exited and
4587 delete such threads fromt the lwp list when discovered.
4588 (stop_callback): Don't assert retcode of kill call.
4589
4590 Roland McGrath <roland@redhat.com>
4591 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4592 nptl libthread_db.
4593
4594 2003-06-03 Richard Henderson <rth@redhat.com>
4595
4596 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4597 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4598 (alpha_sigtramp_frame_prev_register): Likewise.
4599 (alpha_heuristic_frame_prev_register): Likewise.
4600 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4601
4602 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4603 alpha-specific register id names.
4604 (alpha_mdebug_frame_unwind_cache): Likewise.
4605 (alpha_mdebug_frame_prev_register): Likewise.
4606
4607 2003-06-03 Richard Henderson <rth@redhat.com>
4608
4609 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4610 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4611 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4612 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4613 unwind routines.
4614 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4615 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4616 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4617
4618 * alpha-linux-tdep.c: Remove unnecessary includes.
4619 * Makefile.in (alpha-linux-tdep.o): Update.
4620
4621 2003-06-03 Richard Henderson <rth@redhat.com>
4622
4623 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4624 (alphabsd_fill_fpreg): Likewise.
4625
4626 2003-06-03 J. Brobecker <brobecker@gnat.com>
4627
4628 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4629 references to struct frame_info fields by calls to the equivalent
4630 accessors. Necessary now that frame_info is opaque.
4631
4632 2003-06-03 J. Brobecker <brobecker@gnat.com>
4633
4634 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4635 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4636 structure, field no longer exists.
4637
4638 2003-06-03 J. Brobecker <brobecker@gnat.com>
4639
4640 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4641 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4642
4643 2003-06-03 J. Brobecker <brobecker@gnat.com>
4644
4645 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4646 references to struct frame_info fields by calls to the equivalent
4647 accessors. Necessary now that frame_info is opaque.
4648
4649 2003-06-03 J. Brobecker <brobecker@gnat.com>
4650
4651 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4652 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4653 structure, field no longer exists.
4654
4655 2003-06-03 Theodore A. Roth <troth@openavr.org>
4656
4657 * remote.c (init_remote_state): Compute sizeof_g_packet by
4658 accumulation of the size of all registers instead of blindly using
4659 DEPRECATED_REGISTER_BYTES.
4660
4661 2003-06-03 Michael Snyder <msnyder@redhat.com>
4662
4663 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4664 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4665 for h8300sx.
4666
4667 2003-06-03 J. Brobecker <brobecker@gnat.com>
4668
4669 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4670 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4671
4672 2003-06-03 Andrew Cagney <cagney@redhat.com>
4673
4674 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4675 (sparc_convert_to_raw): Delete function.
4676 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4677 register_convert_to_virtual.
4678
4679 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4680
4681 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4682 layer if not dealing with a statically-linked threaded program.
4683
4684 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4685
4686 * solib.c (solib_open): Update comment to reflect actual search order.
4687
4688 2003-06-03 Andrew Cagney <cagney@redhat.com>
4689
4690 * frame.c (get_frame_memory_signed): New function.
4691 (get_frame_memory, get_frame_memory_unsigned): New function.
4692 (get_frame_arch): New function.
4693 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4694 (get_frame_memory, get_frame_unsigned_memory): Declare.
4695 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4696 get_frame_memory_unsigned and get_frame_arch.
4697 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4698
4699 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4700
4701 * MAINTAINERS (write after approval): Add myself.
4702
4703 2003-06-03 Jim Blandy <jimb@redhat.com>
4704
4705 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4706 elements of gregset_t are 64 bits each, but access registers
4707 are still 32 bits, so they're packed two per gregset_t
4708 element. Unpack/pack them properly.
4709
4710 2003-06-02 David Carlton <carlton@bactrian.org>
4711
4712 * linespec.c (find_methods): Break out code into
4713 add_matching_methods and add_constructors.
4714 (add_matching_methods): New.
4715 (add_constructors): Ditto.
4716
4717 2003-06-02 Andrew Cagney <cagney@redhat.com>
4718
4719 * sparc-tdep.c (sparc_print_registers): Delete call to
4720 REGISTER_CONVERTIBLE.
4721 (sparc_gdbarch_init): Do not set register_convertible.
4722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4723 * frv-tdep.c (frv_gdbarch_init): Ditto.
4724 * cris-tdep.c (cris_gdbarch_init): Ditto.
4725
4726 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4727
4728 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4729 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4730 (syms_from_objfile): Ditto.
4731
4732 2003-06-03 Andreas Schwab <schwab@suse.de>
4733
4734 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4735 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4736
4737 2003-06-02 Richard Henderson <rth@redhat.com>
4738
4739 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4740 a member of all_reggroup.
4741
4742 2003-06-02 Richard Henderson <rth@redhat.com>
4743
4744 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4745 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4746 (alpha_lds, alpha_sts): New.
4747 (alpha_convert_register_p): Change from _register_convertible.
4748 (alpha_register_to_value): Change from _convert_to_virtual;
4749 restructure and fail for type sizes other than 4 or 8.
4750 (alpha_value_to_register): Similarly.
4751 (alpha_extract_return_value): Use alpha_sts.
4752 (alpha_store_return_value): Use alpha_lds.
4753 (alpha_gdbarch_init): Update hooks.
4754
4755 2003-06-02 Richard Henderson <rth@redhat.com>
4756
4757 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4758 regnum identifiers.
4759 (alpha_sigtramp_register_address): Likewise.
4760
4761 2003-06-02 Richard Henderson <rth@redhat.com>
4762
4763 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4764 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4765 * alpha-tdep.h: Declare them.
4766
4767 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4768 Remove zerobuf. Don't error on UNIQUE.
4769 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4770 (ALPHA_REGSET_UNIQUE): Provide default.
4771 (supply_gregset): Use alpha_supply_int_regs.
4772 (fill_gregset): Use alpha_fill_int_regs.
4773 (supply_fpregset): Use alpha_supply_fp_regs.
4774 (fill_fpregset): Use alpha_fill_fp_regs.
4775 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4776 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4777 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4778 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4779 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4780 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4781
4782 2003-06-02 Richard Henderson <rth@redhat.com>
4783
4784 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4785
4786 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4787 (alpha_store_return_value): Likewise.
4788
4789 2003-06-02 David Carlton <carlton@math.stanford.edu>
4790
4791 * block.c (contained_in): Add 'const' to arguments.
4792 (block_function): Ditto.
4793 * block.h: Update declarations for block_function and
4794 contained_in.
4795
4796 2003-06-02 David Carlton <carlton@math.stanford.edu>
4797
4798 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4799 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4800 * p-valprint.c (pascal_val_print): Ditto.
4801 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4802
4803 2003-06-02 Richard Henderson <rth@redhat.com>
4804
4805 * alpha-tdep.c (alpha_push_dummy_call): Use
4806 builtin_type_ieee_double_little instead of builtin_type_double.
4807
4808 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4809 sign-extension of 32-bit values.
4810 (alpha_store_return_value): Similarly.
4811
4812 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4813 (alpha_extract_return_value): Likewise.
4814 (alpha_store_return_value): Likewise.
4815
4816 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4817 (alpha_store_return_value): Error on IEEE Quad floats.
4818
4819 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4820 (alpha_extract_struct_value_address): Likewise.
4821 (alpha_store_return_value): Likewise.
4822 (alpha_store_struct_return): Remove.
4823 (alpha_gdbarch_init): Update hook registration to match.
4824
4825 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4826 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4827 macros where appropriate.
4828 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4829 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4830
4831 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4832 for SP, GP; void_func_ptr for PC; non-language-specific types
4833 for all others.
4834 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4835
4836 2003-06-02 Richard Henderson <rth@redhat.com>
4837
4838 * top.h (lim_at_start): Declare.
4839 * main.c (captured_main): Set it.
4840 * top.c (lim_at_start): Define.
4841 (command_loop): Use it instead of &environ.
4842 * event-top.c (command_handler): Likewise.
4843
4844 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4845
4846 * mipsnbsd-tdep.c: Update copyright years.
4847 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4848
4849 2003-06-01 Richard Henderson <rth@redhat.com>
4850
4851 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4852 (alpha-linux-tdep.o): Update dependencies.
4853 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4854 * alpha-mdebug-tdep.c: Remove unneeded includes.
4855
4856 2003-06-01 Richard Henderson <rth@redhat.com>
4857
4858 * alpha-tdep.c (alpha_register_reggroup_p): New.
4859 (alpha_gdbarch_init): Register it.
4860
4861 2003-06-02 Andrew Cagney <cagney@redhat.com>
4862
4863 * dwarfread.c: Eliminate "register"
4864 (decode_die_type): Eliminate assignment within "if".
4865 (struct_type, decode_array_element_type): Ditto.
4866 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4867 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4868 (decode_modified_type, completedieinfo): Ditto.
4869 * block.c: Eliminate "register".
4870 (blockvector_for_pc_sect): Eliminate assignment within "if".
4871 * cp-support.h (struct symbol): Opaque declaration.
4872 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4873
4874 2003-06-01 Richard Henderson <rth@redhat.com>
4875
4876 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4877 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4878
4879 2003-06-01 Adam Fedor <fedor@gnu.org>
4880
4881 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4882 * gdbarch.[ch]: Regenerate.
4883 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4884 (hppa_gdbarch_init): Set it in the gdbarch vector.
4885 * i386-tdep.c (i386_fetch_pointer_argument): New
4886 (i386_gdbarch_init): Set it into gdbarch.
4887 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4888 (rs6000_gdbarch_init): Set it in gdbarch.
4889 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4890 (sparc_gdbarch_init): Set it in gdbarch.
4891
4892 2003-06-01 Andrew Cagney <cagney@redhat.com>
4893
4894 * defs.h (extract_address): Delete declaration.
4895 * findvar.c (extract_address): Delete function.
4896 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4897 extract_address with the inline equivalent,
4898 extract_unsigned_integer.
4899 (xstormy16_extract_struct_value_address): Ditto.
4900 (xstormy16_pointer_to_address): Ditto.
4901 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4902 * v850-tdep.c (v850_push_arguments): Ditto.
4903 (v850_extract_return_value): Ditto.
4904 (v850_extract_struct_value_address): Ditto.
4905 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4906 (sparcnbsd_get_longjmp_target_64): Ditto.
4907 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4908 (get_longjmp_target): Ditto.
4909 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4910 (sh64_extract_struct_value_address): Ditto.
4911 (sh_push_arguments): Ditto.
4912 (sh64_push_arguments): Ditto.
4913 * remote-vxsparc.c (vx_read_register): Ditto.
4914 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4915 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4916 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4917 * mipsv4-nat.c (get_longjmp_target): Ditto.
4918 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4919 * mips-nat.c (get_longjmp_target): Ditto.
4920 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4921 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4922 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4923 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4924 * irix5-nat.c (get_longjmp_target): Ditto.
4925 * irix4-nat.c (get_longjmp_target): Ditto.
4926 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4927 (ia64_push_arguments): Ditto.
4928 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4929 * h8300-tdep.c (h8300_push_arguments): Ditto.
4930 (h8300_store_return_value): Ditto.
4931 (h8300_extract_struct_value_address): Ditto.
4932 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4933 (frv_push_arguments): Ditto.
4934 * avr-tdep.c (avr_pointer_to_address): Ditto.
4935 (avr_push_arguments): Ditto.
4936 * arm-tdep.c (arm_push_dummy_call): Ditto.
4937 (arm_get_longjmp_target): Ditto.
4938 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4939 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4940 (alpha_get_longjmp_target): Ditto.
4941
4942 * solib-irix.c (extract_mips_address): Inline extract_address,
4943 replacing it with extract_signed_integer.
4944 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4945 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4946 (first_link_map_member, open_symbol_file_object): Ditto.
4947 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4948 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4949 (LM_NEXT, LM_NAME): Ditto.
4950
4951 2003-06-01 Richard Henderson <rth@redhat.com>
4952
4953 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4954 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4955 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4956 (alpha_cannot_store_register): Likewise.
4957 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4958 * alpha-nat.c (supply_gregset): Likewise.
4959 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4960
4961 2003-06-01 Andrew Cagney <cagney@redhat.com>
4962
4963 * infcall.c (call_function_by_hand): Update comment on
4964 DEPRECATED_DUMMY_WRITE_SP.
4965
4966 * mips-tdep.c (mips_gdbarch_init): Do not set
4967 deprecated_dummy_write_sp.
4968 (mips_eabi_push_dummy_call): Set the SP register.
4969 (mips_o64_push_dummy_call): Set the SP register.
4970 (mips_o32_push_dummy_call): Set the SP register.
4971 (mips_n32n64_push_dummy_call): Set the SP register.
4972
4973 2003-06-01 Richard Henderson <rth@redhat.com>
4974
4975 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4976 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4977 (supply_gregset): Likewise.
4978 * alpha-tdep.c (alpha_store_return_value): Likewise.
4979 (alpha_get_longjmp_target): Likewise.
4980 (alpha_register_name): Constify array.
4981 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4982 deprecated_register_size, deprecated_register_bytes,
4983 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4984 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4985 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4986
4987 2003-06-01 Richard Henderson <rth@redhat.com>
4988
4989 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4990 from arg_reg_buffer to regcache to avoid double conversion.
4991
4992 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4993
4994 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4995 SP_REGNUM.
4996 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4997 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4998
4999 2003-06-01 Richard Henderson <rth@redhat.com>
5000
5001 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5002 (decode_frame_entry): Set it. Skip FDE augmentation.
5003
5004 2003-06-01 Richard Henderson <rth@redhat.com>
5005
5006 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5007 not overlapping PC_REGNUM.
5008
5009 2003-06-01 Richard Henderson <rth@redhat.com>
5010
5011 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5012 alpha_push_arguments. Don't dump argument register data to
5013 the target stack. Fix float and 128-bit long double semantics.
5014 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5015 (alpha_fix_call_dummy): Remove.
5016 (alpha_call_dummy_words): Remove.
5017 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5018
5019 2003-06-01 Richard Henderson <rth@redhat.com>
5020
5021 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5022
5023 2003-06-01 Andrew Cagney <cagney@redhat.com>
5024
5025 * mips-tdep.c (is_mips16_addr): New function.
5026 (make_mips16_addr, unmake_mips16_addr): New functions.
5027 (pc_is_mips16, mips_fetch_instruction): Use.
5028 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5029 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5030 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5031 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5032 TARGET_MIPS.
5033 * config/mips/tm-mips.h: Update copyright.
5034 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5035 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5036 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5037 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5038 (TM_PRINT_INSN_MACH): Delete.
5039 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5040
5041 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5042 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5043 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5044 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5045 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5046 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5047 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5048 mips*-*-riscos* and mips*-*-sysv* onto mips.
5049 * config/mips/mips64.mt: New file.
5050 * config/mips/mips.mt: New file.
5051 * config/mips/littlemips.mt: Delete file.
5052 * config/mips/decstation.mt: Delete file.
5053 * config/mips/vr4300el.mt: Delete file.
5054 * config/mips/vr5000el.mt: Delete file.
5055 * config/mips/vr5000.mt: Delete file.
5056 * config/mips/vr4100.mt: Delete file.
5057 * config/mips/vr4xxxel.mt: Delete file.
5058 * config/mips/vr4300.mt: Delete file.
5059 * config/mips/vr4xxx.mt: Delete file.
5060 * config/mips/bigmips.mt: Delete file.
5061 * config/mips/bigmips64.mt: Delete file.
5062 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5063 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5064 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5065 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5066 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5067 "tm-bigmips.h".
5068 * config/mips/tm-irix3.h: Ditto.
5069 * config/mips/tm-mipsv4.h: Ditto.
5070 * config/mips/tm-embed.h: Ditto.
5071 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5072 "tm-bigmips64.h".
5073 * config/mips/tm-vr5000el.h: Delete file.
5074 * config/mips/tm-tx39l.h: Delete file.
5075 * config/mips/tm-vr4300el.h: Delete file.
5076 * config/mips/tm-vr4xxxel.h: Delete file.
5077 * config/mips/tm-vr4300.h: Delete file.
5078 * config/mips/tm-vr4100.h: Delete file.
5079 * config/mips/tm-vr4xxx.h: Delete file.
5080 * config/mips/tm-vr5000.h: Delete file.
5081 * config/mips/tm-embedl64.h: Delete file.
5082 * config/mips/tm-embedl.h: Delete file.
5083 * config/mips/tm-embed64.h: Delete file.
5084 * config/mips/tm-bigmips64.h: Delete file.
5085 * config/mips/tm-bigmips.h: Delete file.
5086
5087 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5088
5089 Fix gdb/1216.
5090 * shnbsd-nat.c: Include "sh-tdep.h".
5091
5092 From Richard Henderson <rth@redhat.com>:
5093 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5094
5095 2003-05-31 Andrew Cagney <cagney@redhat.com>
5096
5097 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5098 forward declaration.
5099 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5100 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5101 (mips_find_saved_regs): Use set_reg_offset.
5102 (mips_frame_init_saved_regs): Delete function.
5103 (mips_pop_frame): Call mips_find_saved_regs instead of
5104 DEPRECATED_FRAME_INIT_SAVED_REGS.
5105
5106 2003-05-31 Andrew Cagney <cagney@redhat.com>
5107
5108 * mips-tdep.c (mips_gdbarch_init): Do not set
5109 deprecated_max_register_raw_size, register_virtual_size, and
5110 deprecated_max_register_virtual_size.
5111
5112 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5113
5114 * i386-tdep.c: Include "dwarf2-frame.h".
5115 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5116 * Makefile.in (i386-tdep.o): Update dependencies.
5117
5118 * dwarf2-frame.c, dwarf2-frame.h: New files.
5119 * Makefile.in (SFILES): Add dwarf2-frame.c.
5120 (dwarf2_frame_h): Define.
5121 (COMMON_OBS): Add dwarf2-frame.o.
5122 (dwarf2-frame.o): Add dependencies.
5123
5124 2003-05-31 Andreas Jaeger <aj@suse.de>
5125
5126 * x86-64-linux-nat.c: Fix comment.
5127
5128 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5129
5130 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5131 function signature.
5132
5133 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5134 have a sigcontext_addr handler.
5135 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5136 sigcontext_addr handler.
5137
5138 2003-05-31 Andrew Cagney <cagney@redhat.com>
5139
5140 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5141 (print_fp_register_row): Replace do_fp_register_row.
5142 (mips_print_fp_register): Add "file" and "frame" parameters.
5143 (mips_print_register): Add "file" and "frame" parameters.
5144 (mips_print_registers_info): Replace mips_do_registers_info.
5145 (mips_gdbarch_init): Set print_registers_info instead of
5146 deprecated_do_registers_info.
5147 (mips_read_fp_register_single): Add "frame" parameter.
5148 (mips_read_fp_register_double): Add "frame" parameter.
5149
5150 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5151
5152 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5153 Fixes a bug where GDB would print the wrong register names for
5154 targets without SSE.
5155
5156 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5157 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5158 registers.
5159
5160 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5161 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5162 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5163 TDEP->sc_sp_offset.
5164
5165 From Michal Ludvig <mludvig@suse.cz>:
5166 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5167 and `sc_num_regs'.
5168 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5169 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5170 I386_ST0_REGNUM): Move here from...
5171 * i386-tdep.c: ... here.
5172 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5173 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5174 registers if possible.
5175 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5176 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5177 Remove variables.
5178 (i386bsd_sc_reg_offset): New variable.
5179 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5180 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5181 TDEP->sc_sp_offset.
5182 (i386fbsd_sc_reg_offset): New variable.
5183 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5184 TDEP->sc_num_regs.
5185 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5186 variables.
5187 (i386fbsd4_sc_reg_offset): New variable.
5188 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5189 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5190 TDEP->sc_sp_offset.
5191 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5192 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5193 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5194 Remove variables.
5195 (i386nbsd_sc_reg_offset): New variable.
5196 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5197 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5198 TDEP->sc_sp_offset.
5199 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5200 Remove variables.
5201 (i386obsd_sc_reg_offset): New variable.
5202 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5203 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5204 TDEP->sc_sp_offset.
5205 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5206 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5207 for frame pointer offset in `struct sigcontext'.
5208
5209 2003-05-31 Andrew Cagney <cagney@redhat.com>
5210
5211 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5212 architecture methods call_dummy_words, sizeof_call_dummy_words,
5213 push_return_address, store_struct_return, and fix_call_dummy. Set
5214 push_dummy_call instead of deprecated_push_arguments.
5215 (mips_store_struct_return): Delete function.
5216 (mips_fix_call_dummy): Delete function.
5217 (mips_push_return_address): Delete function.
5218 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5219 RA_REGNUM and T9_REGNUM.
5220 (mips_n32n64_push_dummy_call): Ditto for
5221 mips_n32n64_push_arguments.
5222 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5223 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5224
5225 2003-05-31 Andrew Cagney <cagney@redhat.com>
5226
5227 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5228 "dummy_addr" to "bp_addr".
5229 * infcall.c (call_function_by_hand): Pass "funaddr" to
5230 gdbarch_push_dummy_call.
5231 * gdbarch.h, gdbarch.c: Re-generate.
5232 * i386-tdep.c (i386_push_dummy_call): Update.
5233 * arm-tdep.c (arm_push_dummy_call): Update.
5234 * d10v-tdep.c (d10v_push_dummy_call): Update.
5235
5236 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5237
5238 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5239 variable declarations.
5240 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5241 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5242 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5243 x86_64_init_frame_pc, x86_64_init_frame_pc,
5244 x86_64_function_has_prologue): Remove prototypes.
5245 (X86_64_NUM_GREGS): New define.
5246 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5247 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5248 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5249 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5250 XMM1_REGNUM): Remove defines.
5251 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5252 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5253 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5254 X86_64_XMM1_REGNUM): New defines.
5255 (struct x86_64_register_info): Renamed from `struct
5256 register_info'. Remove `size' member.
5257 (x86_64_register_info_table): Remove variable.
5258 (x86_64_register_info): New variable.
5259 (X86_64_NUM_REGS): New define.
5260 (X86_64_NUM_GREGS): Remove define.
5261 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5262 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5263 Remove variables.
5264 (x86_54_dwarf2_reg_to_regnum): Remove function.
5265 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5266 (x86_64_dwarf_reg_to_regnum): New function.
5267 (x86_64_register_name): Rewrite.
5268 (x86_64_register_raw_size): Remove function.
5269 (x86_64_register_byte_table): Remove variable.
5270 (x86_64_register_byte): Remove function.
5271 (x86_64_register_virtual_type): Remove function.
5272 (x86_64_register_type): New function.
5273 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5274 x86_64_register_convert_to_raw): Remove functions.
5275 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5276 (x86_64_use_struct_convention): Make static. Adjust for renamed
5277 defines.
5278 (x86_64_frame_init_saved_regs): Remove function.
5279 (x86_64_push_arguments): Make static. Change to accept a regcache
5280 as argument.
5281 (x86_64_store_return_value, x86_64_extract_return_value): Make
5282 static. Rewrite based on i386 counterparts.
5283 (x86_64_push_dummy_call): New function.
5284 (X86_64_NUM_SAVED_REGS): New define.
5285 (x86_64_register_number): Remove function.
5286 (x86_64_store_struct_return): Remove function.
5287 (x86_64_frameless_function_invocation,
5288 x86_64_function_has_prologue): Remove functions.
5289 (PROLOG_BUFSIZE): Remove define.
5290 (struct x86_64_frame_cache): New structure.
5291 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5292 x86_64_frame_cache, x86_64_frame_this_id,
5293 x86_64_frame_prev_register, x86_64_frame_p,
5294 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5295 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5296 functions.
5297 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5298 variables.
5299 (x86_64_skip_prologue): Rewrite in terms of
5300 x86_64_analyze_prologue.
5301 (x86_64_frame_base_address): New function.
5302 (x86_64_frame_base): New variable.
5303 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5304 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5305 set deprecated_fp_regnum, deprecated_register_size,
5306 deprecated_register_bytes, register_raw_size, register_byte,
5307 register_virtual_type, register_convertiable,
5308 register_convert_to_virtual, convert_to_raw,
5309 deprecated_get_saved_register, deprecated_target_read_fp,
5310 deprecated_push_arguments, deprecated_push_return_address,
5311 deprecated_pop_frame, deprecated_store_struct_return,
5312 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5313 frameless_function_invocation, deprecated_frame_saved_pc,
5314 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5315 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5316 deprecated_init_frame_pc and virtual_frame_pointer. Call
5317 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5318 and x86_64_frame_p. Call frame_base_set_default to register
5319 x86_64_frame_base.
5320 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5321 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5322 (_initialize_x86_64_tdep): Remove function.
5323 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5324 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5325 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5326 define.
5327 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5328 (x86_64_linux_sigcontext_addr): Rewrite.
5329 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5330 x86_64_linux_frame_saved_pc): Remove functions.
5331 (x86_64_linux_pc_in_sigtramp): Renamed from
5332 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5333 trampoline.
5334 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5335 Remove_functions.
5336 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5337 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5338 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5339 (x86_64_regmap): Rename to regmap.
5340 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5341 x86_64_num_gregs.
5342 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5343 x86_64_regmap.
5344 (x86_64_fxsave_offset): Remove function.
5345 (supply_fpregset): Simply call x86_64_supply_fxsave.
5346 (fill_fpregset): Simply call x86_64_fill_fxsave.
5347 (fetch_inferior_registers, store_inferior_registers): Avoid
5348 asignment in if-statement.
5349 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5350 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5351 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5352 (fetch_core_registers): Remove function.
5353 (linux_elf_core_fns): Remove.
5354 (offsetoff): Don't define.
5355 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5356 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5357 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5358 add core-regset.o.
5359 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5360 protection against multiple includes instead of NM_X86_64_h. Add
5361 various comments. Include "config/nm-linux.h". Don't include
5362 <signal.h>.
5363 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5364 GET_THREAD_SIGNALS): Remove defines.
5365 (x86_64_register_u_addr, kernel_u_size,
5366 lin_thread_get_thread_signals): Remove prototypes.
5367 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5368 [HAVE_LINK_H]: Don't include "solib.h".
5369 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5370 * config/i386/tm-x86-64linux.h: Fix comments.
5371 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5372 x86-64-tdep.o): Update dependencies.
5373
5374 2003-05-30 Andrew Cagney <cagney@redhat.com>
5375
5376 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5377 Change parameter type to a "struct regcache *".
5378
5379 * gdbarch.sh: Regardless of the multi-arch level, always define
5380 the macro when not already defined.
5381 * gdbarch.h, gdbarch.c: Re-generate.
5382
5383 2003-05-30 Richard Henderson <rth@redhat.com>
5384
5385 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5386 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5387 (alpha_mdebug_frame_this_id): Likewise.
5388 (alpha_mdebug_frame_prev_register): Likewise.
5389 (alpha_mdebug_frame_base_address): Likewise.
5390 (alpha_mdebug_frame_locals_address): Likewise.
5391 (alpha_mdebug_frame_args_address): Likewise.
5392 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5393 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5394 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5395 loop increment.
5396 (alpha_heuristic_frame_this_id): Make static.
5397 (alpha_heuristic_frame_prev_register): Likewise.
5398 (alpha_heuristic_frame_base_address): Likewise.
5399 * alpha-tdep.h: Update.
5400
5401 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5402
5403 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5404 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5405 defenitions.
5406 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5407 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5408 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5409 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5410 I386_ST0_REGNUM): New defines.
5411 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5412 codestream_get): Remove define.
5413 (codestream_next_addr, condestream_addr, condestream_buf,
5414 codestream_off, codestream_cnt): Remove variables.
5415 (codestream_fill, codestream_seek, codestream_read): Remove
5416 functions.
5417 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5418 functionality.
5419 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5420 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5421 i386_frame_saved_pc, i386_saved_pc_after_call,
5422 i386_frame_num_args, i386_frame_init_saved_regs,
5423 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5424 i386_push_arguments): Remove functions.
5425 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5426 functionality. Use i386_analyze_prologue instead of
5427 i386_get_frame_setup.
5428 (I386_NUM_SAVED_REGS): New define.
5429 (struct i386_frame_cache): New structure.
5430 (i386_alloc_frame_cache, i386_analyze_struct_return,
5431 i386_skip_probe, i386_analyze_frame_setup,
5432 i386_analyze_register_saves, i386_analyze_prologue,
5433 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5434 i386_frame_prev_register, i386_sigtramp_frame_cache,
5435 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5436 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5437 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5438 New functions.
5439 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5440 New variables.
5441 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5442 I386_EAX_REGNUM and I386_EDX_REGNUM.
5443 (i386_extract_return_value, i386_store_return_value): Use
5444 I386_ST0_REGNUM where appropriate.
5445 (i386_extract_struct_value_address): Rewrite to use extract_address.
5446 (i386_svr4_pc_in_sigtramp): Add comment.
5447 (i386_svr4_sigcontext_addr): Rewrite.
5448 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5449 TDEP->sc_sp_offset.
5450 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5451 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5452 of new defines. Set push_dummy_call, don't set
5453 deprecated_push_arguments, deprecated_push_return_address,
5454 deprecated_pop_frame. Don't set parm_boundary. Don't set
5455 deprecated_frame_chain, deprecated_frame_saved_pc,
5456 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5457 save_dummy_frame_tos, unwind_pc. Call
5458 frame_unwind_append_predicate and frame_base_set_default. Don't
5459 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5460 Don't set frameless_function_invocation. Don't set
5461 deprecated_register_bytes, deprecated_register_size,
5462 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5463 * i386-linux-tdep.c: Fix formatting in some comments.
5464 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5465 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5466 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5467 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5468 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5469 redundant parentheses.
5470 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5471 (i386_linux_sigcontext_addr): Use it. Rewrite.
5472 (find_minsym_and_objfile): Change name of second argument.
5473 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5474 changed. Use frame_pc_unwind instead of
5475 DEPRECATED_SAVED_PC_AFTER_CALL.
5476 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5477 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5478 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5479 unwinder.
5480 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5481 "dummy-frame.h".
5482 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5483 (_initialize_i386_cygwin_tdep): New prototype.
5484 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5485 deprecated_frame_chain_valid.
5486 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5487 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5488 Rely on the SVR4 defaults.
5489 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5490 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5491
5492 2003-05-30 Andrew Cagney <cagney@redhat.com>
5493
5494 * infcall.c (call_function_by_hand): Always call
5495 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5496
5497 2003-05-30 Richard Henderson <rth@redhat.com>
5498
5499 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5500 increment.
5501
5502 2003-05-29 Jim Blandy <jimb@redhat.com>
5503
5504 Use gdbarch methods for solib stuff on PowerPC Linux.
5505 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5506 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5507 show through.
5508 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5509 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5510 giving the same effect as the #definitions above.
5511
5512 2003-05-29 Adam Fedor <fedor@gnu.org>
5513
5514 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5515 (find_implementation_from_class): Replace it with the standard
5516 case i.e. do nothing.
5517
5518 2003-05-29 Richard Henderson <rth@redhat.com>
5519
5520 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5521 (alpha_linux_sigtramp_offset): Use it. Make static.
5522 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5523 update for new frame model.
5524 * alpha-mdebug-tdep.c: New file.
5525 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5526 (alpha_osf1_init_abi): Install it.
5527 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5528 (linked_proc_desc_table): Remove.
5529 (alpha_frame_past_sigtramp_frame): Remove.
5530 (alpha_dynamic_sigtramp_offset): Remove.
5531 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5532 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5533 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5534 (push_sigtramp_desc): Remove.
5535 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5536 (alpha_cannot_store_register): Likewise.
5537 (alpha_sigcontext_addr): Remove.
5538 (alpha_find_saved_regs): Remove.
5539 (alpha_frame_init_saved_regs): Remove.
5540 (alpha_init_frame_pc_first): Remove.
5541 (read_next_frame_reg): Remove.
5542 (alpha_frame_saved_pc): Remove.
5543 (alpha_saved_pc_after_call): Remove.
5544 (temp_proc_desc, temp_saved_regs): Remove.
5545 (alpha_about_to_return): Remove.
5546 (cached_proc_desc): Remove.
5547 (alpha_frame_chain): Remove.
5548 (alpha_print_extra_frame_info): Remove.
5549 (alpha_init_extra_frame_info): Remove.
5550 (alpha_frame_locals_address): Remove.
5551 (alpha_frame_args_address): Remove.
5552 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5553 (alpha_push_dummy_frame): Remove.
5554 (alpha_pop_frame): Remove.
5555 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5556 (alpha_read_insn): New.
5557 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5558 for different insn encodings.
5559 (alpha_in_lenient_prologue): Remove.
5560 (struct alpha_sigtramp_unwind_cache): New.
5561 (alpha_sigtramp_frame_unwind_cache): New.
5562 (alpha_sigtramp_register_address): New.
5563 (alpha_sigtramp_frame_this_id): New.
5564 (alpha_sigtramp_frame_prev_register): New.
5565 (alpha_sigtramp_frame_unwind): New.
5566 (alpha_sigtramp_frame_p): New.
5567 (struct alpha_heuristic_unwind_cache): New.
5568 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5569 don't count nop insns that occur between functions.
5570 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5571 heuristic_proc_desc, but without the mdebug wrapping.
5572 (alpha_heuristic_frame_this_id): New.
5573 (alpha_heuristic_frame_prev_register): New.
5574 (alpha_heuristic_frame_unwind): New.
5575 (alpha_heuristic_frame_p): New.
5576 (alpha_heuristic_frame_base_address): New.
5577 (alpha_heuristic_frame_base): New.
5578 (alpha_unwind_dummy_id): New.
5579 (alpha_unwind_pc): New.
5580 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5581 frame related deprecated initializations; install replacements.
5582 (alpha_dump_tdep): Remove.
5583 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5584 (alpha_read_insn, alpha_after_prologue,
5585 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5586 alpha_heuristic_frame_prev_register,
5587 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5588 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5589 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5590 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5591
5592 2003-05-29 Andrew Cagney <cagney@redhat.com>
5593
5594 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5595 dependant on the availability of ASSERT_FUNCTION.
5596 (ASSERT_FUNCTION): Do not define when there is no function name.
5597
5598 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5599
5600 From Jimi X <jimix@watson.ibm.com>:
5601 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5602
5603 2003-05-28 Jim Blandy <jimb@redhat.com>
5604
5605 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5606 argument to ptrace to int; the system headers should give it the
5607 right type, and pointers don't fit in ints on powerpc64-*-*.
5608
5609 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5610
5611 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5612 DW_TAG_catch_block.
5613
5614 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5615
5616 * stabsread.c (dbx_lookup_type): Make static.
5617 (read_type): Ditto.
5618 (add_undefined_type): Ditto.
5619 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5620 not export.
5621
5622 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5623
5624 * hpread.c (hpread_has_name): Make static.
5625 (hpread_psymtab_to_symtab): Ditto.
5626 (file_exists): Ditto.
5627 (hpread_call_pxdb): Ditto.
5628 (hpread_pxdb_needed): Ditto.
5629 (hpread_quick_traverse): Ditto.
5630 (hpread_get_header): Ditto.
5631 (hpread_get_lntt): Ditto.
5632 (hpread_get_slt): Ditto.
5633 (class_of): Ditto.
5634
5635 2003-05-25 Andreas Schwab <schwab@suse.de>
5636
5637 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5638 stack_align and deprecated_extra_stack_alignment_needed.
5639 (m68k_stack_align): Delete.
5640
5641 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5642 (m68k_register_virtual_size): Likewise.
5643 (altos_skip_prologue): Remove obsolete function.
5644 (isi_frame_num_args): Likewise.
5645 (news_frame_num_args): Likewise.
5646 (m68k_fix_call_dummy): Make static.
5647 (m68k_push_dummy_frame): Likewise.
5648 (m68k_pop_frame): Likewise.
5649 (m68k_skip_prologue): Likewise.
5650 (m68k_frame_init_saved_regs): Likewise.
5651 (m68k_saved_pc_after_call): Likewise.
5652 (m68k_get_longjmp_target): Make multi-arch.
5653 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5654 structure. Register m68k_get_longjmp_target if enabled.
5655 * m68k-tdep.h (struct gdbarch_tdep): Define.
5656 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5657
5658 * Makefile.in (config.status): Also depend on configure.tgt
5659 and configure.host.
5660 (m68klinux-tdep.o): Update dependencies.
5661 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5662 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5663 (M68K_LINUX_JB_PC): Define.
5664 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5665 and take additional parameter.
5666 (m68k_linux_sigtramp_saved_pc): Update.
5667 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5668 m68k_linux_pc_in_sigtramp, in_plt_section,
5669 find_solib_trampoline_target.
5670 * config/m68k/tm-linux.h: Don't include any tm headers.
5671 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5672 (JB_ELEMENT_SIZE): Likewise.
5673 (JB_PC): Likewise.
5674 (GET_LONGJMP_TARGET): Likewise.
5675 (IN_SIGTRAMP): Likewise.
5676 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5677
5678 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5679
5680 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5681 (sparc32_push_arguments): Re-implement by calling
5682 sparc32_do_push_arguments.
5683
5684 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5685
5686 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5687 SPARC_O1_REGNUM): New defines.
5688 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5689 (sparc32_store_return_value): New function.
5690 (sparc_extract_struct_value_address): Rewrite to operate on a
5691 regcache.
5692 (sparc_gdbarch_init): Don't set
5693 deprecated_extract_struct_value_address. Set
5694 extract_struct_value_address instead. Don't set
5695 deprecated_extract_return_value and deprecated_store_return_value
5696 for 32-bit targets. Set extract_return_value and
5697 store_return_value instead.
5698 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5699 DEPRECTAED_EXTRACT_RETURN_VALUE,
5700 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5701 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5702 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5703 (sparc_store_return_value): Remove prototype.
5704 (sparc32_store_return_value): New prototype.
5705 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5706 Adjust prototypes.
5707
5708 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5709
5710 * sparcnbsd-tdep.c: Include "gdb_string.h".
5711
5712 2003-05-23 Andrew Cagney <cagney@redhat.com>
5713
5714 * p-valprint.c (pascal_val_print): Replace extract_address with
5715 the inline equivalent extract_unsigned_integer.
5716 * jv-valprint.c (java_value_print): Ditto.
5717 * ada-valprint.c (ada_val_print_1): Ditto.
5718 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5719
5720 2003-05-23 Theodore A. Roth <troth@openavr.org>
5721
5722 * blockframe.c (frameless_look_for_prologue): Remove unused
5723 after_prologue variable.
5724
5725 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5726
5727 * blockframe.c (get_pc_function_start): Rewrite to avoid
5728 asignments in if-statements.
5729
5730 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5731
5732 Committed by Elena Zannoni <ezannoni@redhat.com>.
5733 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5734 files, don't relocate absolute symbols (and do use mst_abs).
5735
5736 2003-05-23 Andrew Cagney <cagney@redhat.com>
5737
5738 * objc-lang.c: Include "gdb_assert.h".
5739 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5740 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5741 (gdb_check, gdb_check_fatal): Delete functions.
5742 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5743 gdb_assert.
5744 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5745 * Makefile.in (objc-lang.o): Update dependencies.
5746
5747 2003-05-22 Ian Lance Taylor <ian@airs.com>
5748
5749 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5750 with fprintf_filtered, not fprintf_unfiltered.
5751
5752 2003-05-22 Andrew Cagney <cagney@redhat.com>
5753
5754 * stack.c (frame_info): Inline extract_address, replacing it with
5755 extract_unsigned_integer.
5756 * findvar.c (unsigned_pointer_to_address): Ditto.
5757 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5758 * dwarf2expr.c (dwarf2_read_address): Ditto.
5759 * frame.c (frame_pc_unwind): Update comment.
5760 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5761
5762 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5763
5764 * infptrace.c (detach): Call print_sys_errmsg rather than
5765 perror_with_name to issue warning message when errno is non-zero
5766 after calling ptrace detach.
5767
5768 2003-05-21 J. Brobecker <brobecker@gnat.com>
5769
5770 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5771 macro definitions from here...
5772 * hppa-tdep.c: ...to there.
5773
5774 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5775
5776 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5777 register_ptrace_addr(). Fix all callers.
5778
5779 2003-05-21 Andreas Schwab <schwab@suse.de>
5780
5781 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5782 dependencies.
5783 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5784 end.
5785 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5786 (_initialize_m68k_linux_tdep): New function.
5787 (m68k_linux_frame_saved_pc): Make static.
5788 (m68k_linux_extract_return_value): Likewise.
5789 (m68k_linux_store_return_value): Likewise.
5790 (m68k_linux_extract_struct_value_address): Likewise.
5791 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5792 Remove.
5793 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5794 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5795 (DEPRECATED_FRAME_SAVED_PC): Remove.
5796
5797 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5798
5799 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5800 regset numbering rather than our own.
5801
5802 2003-05-19 David Carlton <carlton@bactrian.org>
5803
5804 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5805
5806 2003-05-19 David Carlton <carlton@bactrian.org>
5807
5808 Partial fix for PR c++/827.
5809 * cp-support.h: Include symtab.h.
5810 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5811 * cp-namespace.c: Update contributors.
5812 (cp_lookup_symbol_nonlocal): New.
5813 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5814 (lookup_symbol_file): Ditto.
5815 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5816 * block.h: Declare block_scope, block_using, block_global_block.
5817 * block.c (block_scope): New.
5818 (block_using, block_global_block): Ditto.
5819 * Makefile.in (cp_support_h): Depend on symtab_h.
5820 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5821
5822 2003-05-19 David Carlton <carlton@bactrian.org>
5823
5824 * language.h (struct language_defn): Add 'la_value_of_this'
5825 and 'la_lookup_symbol_nonlocal' members.
5826 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5827 lookup_symbol_static, lookup_symbol_global,
5828 lookup_symbol_aux_block.
5829 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5830 if we should search fields of this and how to do static/global
5831 lookup.
5832 (lookup_symbol_aux_block): Make extern.
5833 (basic_lookup_symbol_nonlocal): New.
5834 (lookup_symbol_static, lookup_symbol_global): Ditto.
5835 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5836 'la_lookup_symbol_nonlocal' members.
5837 * c-lang.c (c_language_defn, cplus_language_defn)
5838 (asm_language_defn, minimal_language_defn): Ditto.
5839 * jv-lang.c (java_language_defn): Ditto.
5840 * language.c (unknown_language_defn, auto_language_defn)
5841 (local_language_defn): Ditto.
5842 * m2-lang.c (m2_language_defn): Ditto.
5843 * objc-lang.c (objc_language_defn): Ditto.
5844 * scm-lang.c (scm_language_defn): Ditto.
5845 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5846 * p-lang.c (pascal_language_defn): Ditto for both.
5847 * Makefile.in (f-lang.o): Depend on value_h.
5848 (p-lang.o): Ditto.
5849
5850 2003-05-19 David Carlton <carlton@bactrian.org>
5851
5852 * block.h: Declare block_static_block.
5853 * block.c (block_static_block): New.
5854 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5855 lookup_symbol_aux_local, calling block_static_block instead.
5856 (lookup_symbol_aux_local): Delete 'static_block' argument.
5857
5858 2003-05-19 David Carlton <carlton@bactrian.org>
5859
5860 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5861
5862 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5863
5864 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5865 register numbers mapping.
5866
5867 2003-05-18 Adam Fedor <fedor@gnu.org>
5868
5869 * symtab.c (completion_list_objc_symbol): New function.
5870 (make_symbol_completion_list): Use it to add ObjC symbols
5871 when looking though the list.
5872 (language_search_unquoted_string): New function.
5873 (make_file_symbol_completion_list): Use it.
5874
5875 2003-05-18 Andreas Schwab <schwab@suse.de>
5876
5877 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5878 dependencies.
5879 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5880 as m68k_linux_extract_return_value.
5881 (DEPRECATED_STORE_RETURN_VALUE): Define as
5882 m68k_linux_store_return_value.
5883 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5884 m68k_linux_extract_struct_value_address.
5885 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5886 get_next_frame, get_frame_base, get_frame_pc.
5887 (m68k_linux_frame_saved_pc): Use get_frame_base.
5888 (m68k_linux_extract_return_value): New function.
5889 (m68k_linux_store_return_value): New function.
5890 (m68k_linux_extract_struct_value_address): New function.
5891 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5892
5893 * c-exp.y (typebase): Remove duplicate occurence of
5894 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5895 of lookup_signed_typename.
5896
5897 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5898
5899 * dwarf2loc.c (find_location_expression): Change type of second
5900 argument to `size_t *'.
5901 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5902 for size variable.
5903
5904 2003-05-18 David Carlton <carlton@bactrian.org>
5905
5906 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5907 'linkage_name'. Add comment.
5908 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5909 'linkage_name'.
5910 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5911 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5912 (lookup_block_symbol): Ditto.
5913
5914 2003-05-16 Andrew Cagney <cagney@redhat.com>
5915
5916 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5917 * gdbarch.h, gdbarch.c: Re-generate.
5918 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5919 * TODO (REGISTER_BYTES): Delete reference.
5920 * alpha-tdep.c (alpha_gdbarch_init): Update.
5921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5922 * x86-64-tdep.c (x86_64_init_abi): Update.
5923 * vax-tdep.c (vax_gdbarch_init): Update.
5924 * v850-tdep.c (v850_gdbarch_init): Update.
5925 * sparc-tdep.c (sparc_gdbarch_init): Update.
5926 * sh-tdep.c (sh_gdbarch_init): Update.
5927 * s390-tdep.c (s390_gdbarch_init): Update.
5928 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5929 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5930 (ns32k_gdbarch_init_32382): Update.
5931 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5932 * mcore-tdep.c (mcore_gdbarch_init): Update.
5933 * m68k-tdep.c (m68k_gdbarch_init): Update.
5934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5935 * ia64-tdep.c (ia64_gdbarch_init): Update.
5936 * i386-tdep.c (i386_gdbarch_init): Update.
5937 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5938 * hppa-tdep.c (hppa_gdbarch_init): Update.
5939 * h8300-tdep.c (h8300_gdbarch_init): Update.
5940 * frv-tdep.c (frv_gdbarch_init): Update.
5941 * cris-tdep.c (cris_gdbarch_init): Update.
5942 * avr-tdep.c (avr_gdbarch_init): Update.
5943 * arm-tdep.c (arm_gdbarch_init): Update.
5944 * sparc-tdep.c (sparc_pop_frame): Update.
5945 * rs6000-tdep.c (rs6000_pop_frame): Update.
5946 * remote.c (init_remote_state): Update.
5947 (remote_prepare_to_store): Update.
5948 * remote-vx.c (vx_prepare_to_store): Update.
5949 * remote-sds.c (sds_fetch_registers): Update.
5950 (sds_prepare_to_store): Update.
5951 * remote-array.c: Update.
5952 * regcache.c (init_legacy_regcache_descr): Update.
5953 (init_regcache_descr): Update.
5954 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5955 (mips_o64_extract_return_value): Update.
5956 * irix5-nat.c (fetch_core_registers): Update.
5957 * irix4-nat.c (fetch_core_registers): Update.
5958 * i386-tdep.h: Update.
5959 * hppa-tdep.c (pa_do_registers_info): Update.
5960 (pa_do_strcat_registers_info): Update.
5961 * cris-tdep.c (cris_register_bytes_ok): Update.
5962 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5963 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5964 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5965 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5966 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5967 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5968 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5969 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5970 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5971 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5972 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5973 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5974 (REGISTER_BYTES_OK): Update.
5975 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5976 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5977
5978 2003-05-16 Ian Lance Taylor <ian@airs.com>
5979
5980 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5981 (vax_print_insn, print_insn_arg): Remove static functions.
5982 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5983 print_insn_vax from opcodes library.
5984 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5985
5986 2003-05-15 Andrew Cagney <cagney@redhat.com>
5987
5988 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5989 * target.h (memory_breakpoint_from_pc): Delete declaration.
5990 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5991 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5992 * monitor.c (monitor_insert_breakpoint): Use
5993 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5994 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5995 * gdbarch.h, gdbarch.c: Re-generate.
5996 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5997 (sparc_gdbarch_init): Set breakpoint_from_pc to
5998 sparc_breakpoint_from_pc.
5999 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6000 (BREAKPOINT_FROM_PC): Define.
6001 (sparc_breakpoint_from_pc): Declare.
6002 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6003 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6004 (BREAKPOINT_FROM_PC): Define.
6005 (BREAKPOINT): Delete macro.
6006 * target.h: Update comment.
6007 * s390-tdep.c (s390_gdbarch_init): Update comments.
6008 * remote.c: Update comments.
6009 * remote-mips.c: Update comments.
6010 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6011 * mem-break.c: Update comment.
6012 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6013 (ia64_memory_insert_breakpoint): Update.
6014 * config/sparc/tm-sparc.h: Update comment.
6015 * config/pa/tm-hppa64.h: Update comment.
6016 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6017 (rs6000_breakpoint_from_pc): Update.
6018 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6019 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6020 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6021 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6022 (mips_breakpoint_from_pc): Update.
6023 (mips_dump_tdep): Update.
6024
6025 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6026 * minsyms.c (lookup_minimal_symbol): Inline
6027 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6028
6029 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6030 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6031 * p-lang.c (pascal_printstr): Ditto.
6032 * objc-lang.c (objc_printstr): Ditto.
6033 * m2-lang.c (m2_printstr): Ditto.
6034 * jv-valprint.c (java_print_value_fields): Ditto.
6035 * f-lang.c (f_printstr): Ditto.
6036 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6037 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6038 for repeat_count_threshold.
6039 * Makefile.in (cp-valprint.o): Update dependencies.
6040
6041 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6042
6043 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6044 (examine_prologue): Support looking through leaf functions, knowing
6045 they start with mov r2,r12. Support skipping over indirect stores
6046 of the input registers. Upon hitting a non-nop branch instruction
6047 or predicated instruction, bail out by setting lim_pc to the current
6048 pc value in the loop. At the end, if the lim_pc value is still
6049 beyond our calculated value and we have trust_limit set,
6050 use the lim_pc value.
6051
6052 2003-05-15 Andrew Cagney <cagney@redhat.com>
6053
6054 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6055 generic_find_dummy_frame.
6056 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6057 (deprecated_generic_find_dummy_frame): Update.
6058 (deprecated_read_register_dummy): Update.
6059 * frame.c (deprecated_generic_get_saved_register): Update.
6060
6061 2003-05-15 Theodore A. Roth <troth@openavr.org>
6062
6063 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6064 (avr_gdbarch_init): Set breakpoint_from_pc method.
6065
6066 2003-05-15 Andrew Cagney <cagney@redhat.com>
6067
6068 * regcache.c (build_regcache): Set deprecated_register_valid
6069 directly.
6070 (deprecated_grub_regcache_for_register_valid): Delete function.
6071 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6072 declaration.
6073
6074 2003-05-15 David Carlton <carlton@bactrian.org>
6075
6076 Committed by Elena Zannoni <ezannoni@redhat.com>
6077 * symtab.c (lookup_symbol_aux): Delete calls to
6078 lookup_symbol_aux_minsyms.
6079 (lookup_symbol_aux_minsyms): Comment out function and
6080 prototype. Delete lookup by mangled name.
6081
6082 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6083
6084 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6085 correctly indicate an empty stack and ``stack_allocated'' to the
6086 indicate the number of elements initially allocated.
6087 (dwarf_expr_grow_stack): Simplify method for computing new
6088 stack size. Don't loop infinitely if ``stack_len'' is zero.
6089 (execute_stack_op): Move ``ctx->in_reg'' initialization
6090 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6091 be used in conjuction with DW_OP_piece. Revise error message
6092 accordingly.
6093
6094 2003-05-14 Theodore A. Roth <troth@openavr.org>
6095
6096 * MAINTAINERS: Update my email address.
6097 * avr-tdep.c: Ditto.
6098
6099 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6100
6101 * symtab.h (enum domain_enum): Rename from namespace_enum.
6102 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6103 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6104 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6105 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6106 TYPES_NAMESPACE, METHODS_NAMESPACE.
6107 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6108 (struct symbol, struct partial_symbol): Rename field
6109 'namespace_enum namespace' to 'domain_enum domain'.
6110 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6111 Delete old define kludge for namespace.
6112
6113 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6114 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6115 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6116 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6117 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6118 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6119 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6120 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6121 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6122 occurrences of the above.
6123
6124 2003-05-14 Ian Lance Taylor <ian@airs.com>
6125
6126 * Makefile.in (install-only): Use $(SHELL) when running
6127 mkinstalldirs.
6128
6129 2003-05-13 Ian Lance Taylor <ian@airs.com>
6130
6131 * MAINTAINERS (write after approval): Add myself.
6132
6133 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6134 second and third arguments.
6135 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6136 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6137
6138 2003-05-13 Andrew Cagney <cagney@redhat.com>
6139
6140 * defs.h (store_address): Delete declaration.
6141 findvar.c (store_address): Delete function.
6142 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6143 store_unsigned_integer.
6144 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6145 * v850-tdep.c (v850_push_arguments): Ditto.
6146 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6147 * sh-tdep.c (sh64_get_saved_register): Ditto.
6148 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6149 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6150 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6151 (mips_get_saved_register): Ditto.
6152 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6153 (find_func_descr, ia64_push_arguments): Ditto.
6154 * i386-tdep.c (i386_push_arguments): Ditto.
6155 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6156 * frv-tdep.c (frv_push_arguments): Ditto.
6157 * frame.c (legacy_saved_regs_prev_register): Ditto.
6158 (deprecated_generic_get_saved_register): Ditto.
6159 * findvar.c (unsigned_address_to_pointer): Ditto.
6160 * dwarf2read.c (dwarf2_const_value): Ditto.
6161 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6162 * alpha-tdep.c (alpha_push_arguments): Ditto.
6163
6164 2003-05-12 J. Brobecker <brobecker@gnat.com>
6165
6166 * NEWS: Mention that the hppa-hpux port has been partially
6167 multiarched (32bit ABIT only, so far).
6168
6169 2003-05-11 Andrew Cagney <cagney@redhat.com>
6170
6171 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6172 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6173 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6174 sim/testsuite/sim/arm/misaligned2.ms, and
6175 sim/testsuite/sim/arm/misaligned3.ms.
6176 * disasm.h (struct ui_file): Add opaque struct declaration.
6177 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6178 * frame.h (struct ui_file): Ditto.
6179
6180 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6181
6182 * value.h: Pretty print.
6183
6184 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6185
6186 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6187
6188 2003-05-08 Andrew Cagney <cagney@redhat.com>
6189
6190 * regcache.h (max_register_size): Delete declaration.
6191 * regcache.c (max_register_size): Delete function.
6192 (struct regcache_descr): Delete field "max_register_size".
6193 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6194 registers fit in MAX_REGISTER_SIZE.
6195 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6196 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6197 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6198 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6199 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6200 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6201 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6202 * dve3900-rom.c, hppa-tdep.c: Ditto.
6203
6204 2003-05-08 David Carlton <carlton@math.stanford.edu>
6205
6206 * valops.c (push_word): Fix typo.
6207
6208 2003-05-08 Andrew Cagney <cagney@redhat.com>
6209
6210 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6211 * gdbarch.h: Re-generate.
6212 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6213 (legacy_max_register_raw_size): Delete declaration.
6214 * regcache.c (legacy_max_register_raw_size): Delete function.
6215 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6216 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6217 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6218 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6219 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6220 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6221 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6222 * findvar.c, dwarf2cfi.c: Ditto.
6223
6224 2003-05-08 Andrew Cagney <cagney@redhat.com>
6225
6226 * mips-tdep.c (read_signed_register): New function, moved to here
6227 from "regcache.c".
6228 (read_signed_register_pid): Ditto.
6229 * regcache.c (read_signed_register_pid): Delete function, moved to
6230 "mips-tdep.c".
6231 (read_signed_register): Ditto.
6232 * regcache.h (read_signed_register): Delete declaration.
6233 (read_signed_register_pid): Delete declaration.
6234
6235 2003-05-08 Andrew Cagney <cagney@redhat.com>
6236
6237 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6238 * gdbarch.h: Re-generate.
6239 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6240 (legacy_max_register_virtual_size): Delete declaration.
6241 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6242 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6243 * tracepoint.c (memrange_sortmerge): Ditto.
6244 * sparc-tdep.c (sparc_print_registers): Ditto.
6245 * regcache.c (legacy_max_register_virtual_size): Delete function.
6246
6247 2002-05-08 J. Brobecker <brobecker@gnat.com>
6248
6249 * fork-child.c (escape_bang_in_quoted_argument): New function.
6250 (fork_inferior): Escape '!' characters in quoted arguments
6251 only when needed.
6252
6253 2003-05-08 J. Brobecker <brobecker@gnat.com>
6254
6255 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6256 the language of the CU is not currently supported by GDB.
6257
6258 2003-05-08 J. Brobecker <brobecker@gnat.com>
6259
6260 * defs.h (language): Add language_minimal enum value.
6261 * c-lang.c (minimal_language_defn): New language definition.
6262 (_initialize_c_language): Add the new minimal language to the list
6263 of languages known to GDB.
6264
6265 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6266
6267 * frame.c (get_frame_type): Don't attempt to lazily initialize
6268 frame's unwinder for legacy frames.
6269
6270 2003-05-07 Andrew Cagney <cagney@redhat.com>
6271
6272 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6273 and "regcache" parameters.
6274 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6275
6276 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6277
6278 * dwarf2read.c (dwarf_decode_lines): Only use output of
6279 check_cu_functions() when calling record_line(). Do not update
6280 the current address.
6281
6282 2003-05-07 Andrew Cagney <cagney@redhat.com>
6283
6284 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6285 code.
6286
6287 2003-05-07 Jim Blandy <jimb@redhat.com>
6288
6289 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6290 'maint info symtabs' and 'maint info psymtabs'.
6291 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6292 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6293 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6294 Declarations updated.
6295 * maint.c (maintenance_list_command): Delete.
6296 (_initialize_maint_cmds): Update calls to add_cmd.
6297 * gdbcmd.h (maintenancelistlist): Delete declaration.
6298 * cli/cli-cmds.c (maintenancelistlist): Delete.
6299 (init_cmd_lists): Don't initialize it.
6300 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6301
6302 2003-05-07 Andrew Cagney <cagney@redhat.com>
6303
6304 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6305 "regcache".
6306 (d10v_print_registers_info): Update.
6307 (d10v_dmap_register, d10v_imap_register): Delete functions.
6308 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6309 and "imap_register".
6310 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6311 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6312 * arch-utils.c (generic_remote_translate_xfer_address): Add
6313 "regcache" and "gdbarch" parameters.
6314 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6315 parameter. Change class to multi-arch.
6316 * gdbarch.h, gdbarch.c: Re-generate.
6317 * remote.c (remote_xfer_memory): Use
6318 gdbarch_remote_translate_xfer_address.
6319
6320 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6321
6322 * infrun.c (prev_pc): Move declaration ahead of proceed().
6323 (proceed): Refresh prev_pc value before resuming.
6324 (stop_stepping): Remove code to refresh prev_pc.
6325
6326 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6327
6328 * nto-tdep.c: Removed stray comment.
6329
6330 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6331
6332 * i386-nto-tdep.c: Fix old K&R function definitions.
6333 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6334 Also change add_show_from_set() call to add_setshow_cmd().
6335 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6336
6337 2003-05-05 Andrew Cagney <cagney@redhat.com>
6338
6339 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6340 (fprint_dummy_frames): New function.
6341 (maintenance_print_dummy_frames): New function.
6342 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6343 * frame.c (fprint_frame_id): Make global.
6344 * frame.h (fprint_frame_id): Declare.
6345 * Makefile.in (dummy-frame.o): Update dependencies.
6346
6347 2003-05-05 Andrew Cagney <cagney@redhat.com>
6348
6349 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6350 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6351 SIZEOF_CALL_DUMMY_WORDS.
6352 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6353 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6354 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6355 CALL_DUMMY_BREAKPOINT_OFFSET.
6356 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6357 CALL_DUMMY_START_OFFSET.
6358 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6359 * gdbarch.h, gdbarch.c: Re-generate.
6360 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6361 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6362 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6363 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6364 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6365 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6366 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6367 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6368 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6369 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6370 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6371 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6372 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6373 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6374 * config/sparc/tm-sparc.h: Update.
6375
6376 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6377
6378 * configure.tgt: Add i[3456]86-*-nto*.
6379 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6380 * nto-tdep.c: New file. Neutrino target support routines.
6381 * nto-tdep.h: New file. Neutrino target header.
6382 * config/tm-qnxnto.h: New file.
6383 * config/i386/i386nto.mt: New file.
6384 * config/i386/tm-i386nto.h: New file.
6385
6386 2003-05-04 Andrew Cagney <cagney@redhat.com>
6387
6388 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6389 (load_infrun_state): Ditto.
6390 (struct thread_info): Drop "prev_func_name" field.
6391 * thread.c (load_infrun_state): Update.
6392 (save_infrun_state): Update.
6393 * infrun.c (prev_func_name): Delete variable.
6394 (init_wait_for_inferior): Do not clear prev_func_name.
6395 (stop_stepping, keep_going, context_switch): Do not swap
6396 prev_func_name.
6397 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6398 instead of PC_IN_SIGTRAMP.
6399
6400 2003-05-04 Andrew Cagney <cagney@redhat.com>
6401
6402 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6403 REGISTER_BYTE with register_offset_hack.
6404 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6405 that REGISTER_BYTE is consistent with the regcache.
6406 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6407 * gdbarch.h, gdbarch.c: Regenerate.
6408
6409 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6410
6411 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6412 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6413
6414 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6415
6416 2003-05-03 J. Brobecker <brobecker@gnat.com>
6417
6418 From Thierry Schneider <tpschneider1@yahoo.com>
6419 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6420 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6421 (mi-cmd-symbol.o): Add rule.
6422
6423 2003-05-03 Andrew Cagney <cagney@redhat.com>
6424
6425 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6426 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6427 * gdbarch.h, gdbarch.c: Re-generate.
6428 * d10v-tdep.c (d10v_push_dummy_code): New function.
6429 (d10v_gdbarch_init): Set push_dummy_code.
6430 * infcall.c (legacy_push_dummy_code): New function.
6431 (generic_push_dummy_code): New function.
6432 (push_dummy_code): New function.
6433 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6434 instead of dummy_addr, to push_dummy_call. Move call to
6435 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6436 switch.
6437 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6438
6439 2003-05-03 Andrew Cagney <cagney@redhat.com>
6440
6441 * disasm.h (print_insn): Declare.
6442 * disasm.c (init_gdb_disassemble_info): New function.
6443 (gdb_disassembly): Call init_gdb_disassemble_info.
6444 (gdb_print_insn): New function.
6445 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6446 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6447 * mcore-tdep.c: Include "disasm.h"
6448 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6449 * d10v-tdep.c: Include "disasm.h".
6450 (display_trace): Call gdb_print_insn, instead of print_insn.
6451 (print_insn): Delete function.
6452 * printcmd.c: Include "disasm.h".
6453 (print_insn): Delete function.
6454 (print_formatted): Call gdb_print_insn, instead of print_insn.
6455 * Makefile.in (printcmd.o): Update dependencies.
6456 (mcore-tdep.o, d10v-tdep.o): Ditto.
6457
6458 2003-05-02 Andrew Cagney <cagney@redhat.com>
6459
6460 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6461 PC_REGNUM, re-indent.
6462 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6463 PC_REGNUM isn't set.
6464
6465 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6466 * gdbarch.h, gdbarch.c: Re-generate.
6467 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6468 register_virtual_size, pc_regnum, or register_bytes.
6469 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6470 (d10v_register_type): Use D10V_PC_REGNUM.
6471 (d10v_print_registers_info, d10v_read_pc): Ditto.
6472 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6473 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6474
6475 2003-05-02 David Carlton <carlton@bactrian.org>
6476
6477 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6478 the name with mstrsave.
6479
6480 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6481
6482 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6483 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6484 (host_charset_name, target_charset_name): New vars for use by
6485 set/show commands.
6486 (host_charset_enum, target_charset_enum): New enums for set/show
6487 commands.
6488 (set_charset_sfunc, set_host_charset_sfunc,
6489 set_target_charset_sfunc): New functions.
6490 (set_host_charset, set_target_charset): Make static.
6491 (list_charsets, set_host_charset_command,
6492 set_target_charset_command): Delete functions.
6493 (show_charset_command): Rewrite as....
6494 (show_charset): Hook this up with the set/show command mechanism.
6495 (_initialize_charset): Change names of charsets to match the
6496 set/show enums. Use host_charset_name and target_charset_name.
6497 Use set/show mechanism for charset, host-charset, target-charset
6498 commands. Do not make 'show host-charset' and 'show
6499 target-charset' be aliases of 'show charset'.
6500
6501 * charset.h (set_host_charset, set_target_charset): Don't export,
6502 they are not used outside the file.
6503
6504 2003-05-01 Andrew Cagney <cagney@redhat.com>
6505
6506 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6507 (gdb_disassembly): Make "di" non static, always initialize and
6508 cleanup. Always use dis_asm_read_memory.
6509 (gdb_dis_asm_read_memory): Delete function.
6510
6511 2003-05-01 Andrew Cagney <cagney@redhat.com>
6512
6513 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6514 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6515
6516 2003-04-30 Andrew Cagney <cagney@redhat.com>
6517
6518 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6519 "tm_print_insn_info".
6520 (TARGET_PRINT_INSN_INFO): Delete macro.
6521 (dis_asm_read_memory): Delete function declaration.
6522 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6523 (tm_print_insn_info): Delete variable definition.
6524 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6525 * gdbarch.h, gdbarch.c: Re-generate.
6526 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6527 "deprecated_tm_print_insn_info".
6528 * mcore-tdep.c (mcore_dump_insn): Ditto.
6529 * mips-tdep.c (mips_gdbarch_init): Ditto.
6530 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6531 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6532 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6533 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6534 instead of TARGET_PRINT_INSN_INFO, add comment.
6535 * s390-tdep.c (s390_get_frame_info): Instead of
6536 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6537 (s390_check_function_end, s390_is_sigreturn): Ditto.
6538 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6539 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6540 * disasm.c: Include "gdbcore.h".
6541 (_initialize_disasm): New function, initialize
6542 "deprecated_tm_print_insn_info".
6543 (deprecated_tm_print_insn_info): New variable.
6544 (dis_asm_read_memory): Moved from "corefile.c", made static.
6545 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6546 * Makefile.in (disasm.o): Update dependencies.
6547
6548 2003-04-30 Andrew Cagney <cagney@redhat.com>
6549
6550 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6551
6552 2003-04-29 Adam Fedor <fedor@gnu.org>
6553
6554 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6555 * infcall.c (find_function_addr): Make non-static.
6556 * infcall.h (find_function_addr): Declare.
6557 * Makefile.in (eval.o): Update dependencies.
6558
6559 2003-04-28 Adam Fedor <fedor@gnu.org>
6560
6561 * symtab.c (symbol_find_demangled_name): Check for and demangle
6562 ObjC symbols.
6563 (symbol_init_demangled_name): Init for language_objc as well.
6564
6565 2003-04-28 Andrew Cagney <cagney@redhat.com>
6566
6567 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6568 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6569 * gdbarch.h, gdbarch.c: Re-generate.
6570 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6571 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6572 * inferior.h (deprecated_read_fp): Rename read_fp.
6573 (generic_target_read_fp): Delete declaration.
6574 * regcache.c (generic_target_read_fp): Delete function.
6575 (deprecated_read_fp): Replace read_fp, use
6576 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6577 * d10v-tdep.c (d10v_read_fp): Delete function.
6578 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6579
6580 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6581 deprecated_target_read_fp to generic_target_read_fp.
6582 * sh-tdep.c (sh_gdbarch_init): Ditto.
6583 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6585 * frv-tdep.c (frv_gdbarch_init): Ditto.
6586
6587 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6588 deprecated_fp_regnum.
6589 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6590 * vax-tdep.c (vax_gdbarch_init): Ditto.
6591 * v850-tdep.c (v850_gdbarch_init): Ditto.
6592 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6593 * sh-tdep.c (sh_gdbarch_init): Ditto.
6594 * s390-tdep.c (s390_gdbarch_init): Ditto.
6595 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6596 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6597 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6598 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6600 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6601 * i386-tdep.c (i386_gdbarch_init): Ditto.
6602 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6603 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6604 * frv-tdep.c (frv_gdbarch_init): Ditto.
6605 * cris-tdep.c (cris_gdbarch_init): Ditto.
6606 * avr-tdep.c (avr_gdbarch_init): Ditto.
6607 * arm-tdep.c (arm_gdbarch_init): Ditto.
6608 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6609
6610 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6611 * v850-tdep.c (v850_gdbarch_init): Ditto.
6612 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6613 * sh-tdep.c (sh_gdbarch_init): Ditto.
6614 * s390-tdep.c (s390_gdbarch_init): Ditto.
6615 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6616 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6617 * mips-tdep.c (mips_gdbarch_init): Ditto.
6618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6619 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6620 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6621 * frv-tdep.c (frv_gdbarch_init): Ditto.
6622 * avr-tdep.c (avr_gdbarch_init): Ditto.
6623 * arm-tdep.c (arm_gdbarch_init): Ditto.
6624
6625 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6626 DEPRECATED_FP_REGNUM.
6627 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6628 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6629 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6630 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6631 (sparc32_register_virtual_type): Ditto.
6632 * sh-tdep.c (sh64_frame_chain): Ditto.
6633 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6634 (sh_nofp_frame_init_saved_regs): Ditto.
6635 (sh64_nofp_frame_init_saved_regs): Ditto.
6636 (sh_fp_frame_init_saved_regs): Ditto.
6637 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6638 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6639 * procfs.c (procfs_fetch_registers): Ditto.
6640 (procfs_store_registers): Ditto.
6641 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6642 (store_inferior_registers, fetch_core_registers): Ditto.
6643 (fetch_kcore_registers, clear_regs): Ditto.
6644 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6645 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6646 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6647 * nlm/i386.c (do_status): Ditto.
6648 * mipsv4-nat.c (supply_gregset): Ditto.
6649 * mips-tdep.c: Ditto for comments.
6650 * mips-nat.c (fetch_inferior_registers): Ditto.
6651 (store_inferior_registers, fetch_core_registers): Ditto.
6652 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6653 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6654 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6655 (i386_do_pop_frame, i386_register_type): Ditto.
6656 * hppa-tdep.c (hppa_frame_chain): Ditto.
6657 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6658 (hppa_pop_frame, hppa_read_fp): Ditto.
6659 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6660 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6661 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6662 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6663 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6664 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6665 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6666 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6667 * blockframe.c: Ditto for comments.
6668 * arch-utils.h: Ditto for comments.
6669 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6670 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6671 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6672 * alpha-tdep.h: Ditto for comments.
6673 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6674 (alpha_cannot_store_register): Ditto.
6675 (alpha_push_dummy_frame): Ditto.
6676 * alpha-nat.c (supply_gregset): Ditto.
6677
6678 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6679 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6680 * config/sparc/tm-sparc.h: Update comment.
6681
6682 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6683 deprecated_read_fp instead of TARGET_READ_FP.
6684 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6685 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6686 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6687 deprecated_read_fp instead of read_fp.
6688 * s390-tdep.c (s390_push_arguments): Ditto.
6689 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6690 * frame.h: Ditto in comments.
6691 * frame.c (legacy_get_prev_frame): Ditto.
6692 * dummy-frame.c (dummy_frame_this_id): Ditto.
6693 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6694
6695 2003-04-28 Andrew Cagney <cagney@redhat.com>
6696
6697 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6698 * gdbarch.h, gdbarch.c: Re-generate.
6699 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6700 * vax-tdep.c (_initialize_vax_tdep): Update.
6701 * v850-tdep.c (_initialize_v850_tdep): Update.
6702 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6703 * s390-tdep.c (_initialize_s390_tdep): Update.
6704 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6705 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6706 * mips-tdep.c (_initialize_mips_tdep): Update.
6707 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6708 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6709 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6710 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6711 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6712 * frv-tdep.c (_initialize_frv_tdep): Update.
6713 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6714 (_initialize_cris_tdep): Update.
6715 * arch-utils.c (legacy_print_insn): Update.
6716 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6717
6718 2003-04-26 Adam Fedor <fedor@gnu.org>
6719
6720 * linespec.c (decode_objc): New function to decode ObjC calls
6721 (decode_line_1): Check for ObjC calls (using decode_objc)
6722 * Makefile (linespec.o): Update dependencies.
6723
6724 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6725
6726 * breakpoint.h (struct breakpoint_ops): New.
6727 (struct breakpoint): Add ops member.
6728
6729 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6730 (mention): Use new breakpoint ops member.
6731 (set_raw_breakpoint): Initialize ops field to NULL.
6732 (print_exception_catchpoint, print_one_exception_catchpoint)
6733 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6734 (gnu_v3_exception_catchpoint_ops): New.
6735 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6736
6737 2003-04-25 Adam Fedor <fedor@gnu.org>
6738
6739 * Makefile.in (COMMON_OBS): Add objc-lang.o
6740
6741 2003-04-25 Andrew Cagney <cagney@redhat.com>
6742
6743 * d10v-tdep.c (print_insn): Delete function.
6744 (display_trace): Use TARGET_PRINT_INSN.
6745 (_initialize_d10v_tdep): Do not set tm_print_insn.
6746 (d10v_gdbarch_init): Set print_insn.
6747
6748 2003-04-25 Andrew Cagney <cagney@redhat.com>
6749
6750 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6751 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6752 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6753 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6754 (nr_dmap_regs, a0_regnum): ... new functions.
6755 (d10v_print_registers_info): Use a0_regnum, use register_size.
6756 (d10v_register_byte): Delete function.
6757 (d10v_register_raw_size): Delete function.
6758 (d10v_register_type): Use a0_regnum.
6759 (d10v_print_registers_info): Use a0_regnum.
6760 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6761 (d10v_gdbarch_init): Do not set register_byte or
6762 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6763 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6764 extract_address.
6765 (trace_command): Use XCALLOC.
6766 (print_insn): Delete reference to tm_print_insn.
6767 (saved_regs_unwinder): Use store_unsigned_integer instead of
6768 store_address.
6769 * frame.h (FRAME_OBSTACK_CALLOC): Define
6770
6771 2003-04-25 David Carlton <carlton@bactrian.org>
6772
6773 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6774
6775 2003-04-24 Adam Fedor <fedor@gnu.org>
6776
6777 * objc-lang.c: Include "valprint.h"
6778 * Makefile.in (objc-lang.o): Update dependencies.
6779
6780 2003-04-24 Adam Fedor <fedor@gnu.org>
6781
6782 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6783 architecture dependant compilation and mark as unimplemented
6784 (until they get put in the gdbarch vector).
6785
6786 2003-04-23 David Carlton <carlton@bactrian.org>
6787
6788 * cp-support.c (cp_find_first_component): Accept 'operator' in
6789 more locations.
6790
6791 2003-04-23 Andrew Cagney <cagney@redhat.com>
6792
6793 * infcall.c (call_function_by_hand): Eliminate redundant
6794 indentation. Move "saved_async" and "old_cleanups" to where they
6795 are needed.
6796
6797 2003-04-23 Andrew Cagney <cagney@redhat.com>
6798
6799 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6800 and "buffer". Move the "name" code to where it is needed.
6801
6802 2003-04-23 Andrew Cagney <cagney@redhat.com>
6803
6804 * infcall.c (call_function_by_hand): Move variables "start_sp",
6805 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6806 code to ON_STACK switch branch.
6807
6808 2003-04-23 Andrew Cagney <cagney@redhat.com>
6809
6810 * infcall.c (call_function_by_hand): Make declaration of "i",
6811 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6812 lint.
6813
6814 2003-04-23 Andrew Cagney <cagney@redhat.com>
6815
6816 * infcall.c (call_function_by_hand): Delete variable
6817 "n_method_args". Localize "param_type"'s declaration to the loop
6818 that it is used. Reinstate code assigning to said variable -
6819 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6820 Rationalize code using "param_type".
6821
6822 2003-04-22 Andrew Cagney <cagney@redhat.com>
6823
6824 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6825 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6826 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6827 to DEPRECATED_PUSH_RETURN_ADDRESS.
6828
6829 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6830
6831 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6832 on the DWARF2 register number prior to fetching a register.
6833
6834 2003-04-22 J. Brobecker <brobecker@gnat.com>
6835
6836 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6837 Update all the tests using SOFT_FLOAT considering the fact that
6838 this macro was always set to 0.
6839 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6840 considering the fact that this macro was always set to 0.
6841 * hppa-tdep.h (hppa_store_return_value): Likewise.
6842 (hppa_extract_return_value): Likewise.
6843
6844 2003-04-22 J. Brobecker <brobecker@gnat.com>
6845
6846 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6847 the hppa-pro target only.
6848
6849 2003-04-21 J. Brobecker <brobecker@gnat.com>
6850
6851 Ongoing multi-arch conversion effort for HP/UX:
6852 * config/pa/tm-hppa.h: Move all macro that are no longer
6853 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6854 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6855
6856 2003-04-21 J. Brobecker <brobecker@gnat.com>
6857
6858 * config/pa/tm-hppa.h: Obsolete a section that was only used
6859 for hppa-pro.
6860
6861 2003-04-21 J. Brobecker <brobecker@gnat.com>
6862
6863 Ongoing multi-arch conversion for HP/UX.
6864 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6865 if already defined (allows hppa64 to stay non-multiarched for now).
6866 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6867
6868 2003-04-21 Andrew Cagney <cagney@redhat.com>
6869
6870 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6871
6872 2003-04-21 Andrew Cagney <cagney@redhat.com>
6873
6874 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6875 "i386_num_mmx_regs".
6876
6877 2003-04-21 Andrew Cagney <cagney@redhat.com>
6878
6879 * infcall.c: New file.
6880 * infcall.h: New file.
6881 * valarith.c: Include "infcall.h".
6882 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6883 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6884 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6885 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6886 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6887 (SFILES): Add "infcall.c"
6888 (COMMON_OBS): Add "infcall.o".
6889 (infcall.o): Specify dependencies.
6890 * value.h (call_function_by_hand): Delete declaration.
6891 * inferior.h (run_stack_dummy): Delete declaration.
6892 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6893 (run_stack_dummy): Move to "infcall.c", merged into
6894 call_function_by_hand.
6895 * valops.c (call_function_by_hand): Moved to "infcall.c".
6896 (find_function_addr, value_arg_coerce): Ditto.
6897 (unwindonsignal_p, coerce_float_to_double): Ditto.
6898 (_initialize_valops): Move "set/show coerce-float-to-double", and
6899 "set/show unwindonsignal" commands to "infcall.c".
6900 * v850-tdep.c, target.h: Update comments.
6901 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6902 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6903 (sh64_init_extra_frame_info): Update comments.
6904 * mn10300-tdep.c: Update comments.
6905 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6906 * config/sparc/tm-sparc.h: Update comments.
6907 * breakpoint.h: Update comments.
6908 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6909 * arm-tdep.c: Update comment.
6910
6911 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6912
6913 * i386-tdep.c (i386_num_register_names): New variable.
6914 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6915 (MM0_REGNUM): Remove redundant parentheses in define.
6916 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6917 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6918 i386_mxcsr_regnum_p): Remove redundant parentheses.
6919 (i386_register_name): Use i386_num_register_names.
6920
6921 * i386-tdep.c (i386_extract_return_value,
6922 i386_store_return_value): Correct check for availability of
6923 floating-point registers.
6924
6925 * i386-tdep.c (i386_frame_num_args): Remove function.
6926 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6927
6928 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6929 mmx_regnum_to_fp_regnum. Adjust all callers.
6930
6931 * i386-tdep.c (i386_get_longjmp_target): Use
6932 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6933 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6934 extract_address.
6935
6936 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6937
6938 * core-regset.c: Update comments to reflect reality. Re-order
6939 includes.
6940 (fetch_core_registers): Use switch instead of if. Remove
6941 redundant prototype.
6942
6943 2003-04-18 Jim Blandy <jimb@redhat.com>
6944
6945 * s390-tdep.c (s390_frame_align): New function.
6946 (s390_gdbarch_init): Register it with the gdbarch object.
6947
6948 2003-04-17 Richard Henderson <rth@redhat.com>
6949
6950 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6951
6952 2003-04-17 Michael Snyder <msnyder@redhat.com>
6953 Karen Bennet <bennet@redhat.com>
6954
6955 Committed by Elena Zannoni <ezannoni@redhat.com>
6956 * gdb_gcore.sh: New script to create a core dump of a process.
6957
6958 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6959
6960 * values.c (value_being_returned): Don't fetch the return
6961 value if the return type is void.
6962
6963 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6964
6965 * thread-db.c: Reindented.
6966
6967 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6968
6969 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6970 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6971 as types.
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6998
6999 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7000 the size of ``long double'' to 16, instead of 8.
7001
7002 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7003
7004 * i386-linux-nat.c: Add some whitespace to make things more
7005 readable.
7006 (fetch_register, store_register, fetch_inferior_registers,
7007 store_inferior_registers): Get rid of assignment in if-statement.
7008 (store_register): Fix typo in error message.
7009
7010 2003-04-16 Andrew Cagney <cagney@redhat.com>
7011
7012 * utils.c (xmmalloc): Always allocate something, matches
7013 libiberty/xmalloc's semantics.
7014 (xmrealloc, xmcalloc): Ditto.
7015
7016 2003-04-16 Andrew Cagney <cagney@redhat.com>
7017
7018 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7019 update comments.
7020 (get_frame_type): Initialize unwind and type when needed.
7021 (get_frame_id, frame_register_unwind): Ditto.
7022
7023 2003-04-16 Andrew Cagney <cagney@redhat.com>
7024
7025 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7026 obsolete.
7027 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7028 * sparcl-stub.c: Obsolete file.
7029 * config/sparc/tm-sparclet.h: Obsolete file.
7030 * sparclet-stub.c: Obsolete file.
7031 * sparclet-rom.c: Obsolete file.
7032 * sparcl-tdep.c: Obsolete file.
7033 * config/sparc/tm-sparclite.h: Obsolete file.
7034 * config/sparc/sparclite.mt: Obsolete file.
7035 * config/sparc/sparclet.mt: Obsolete file.
7036 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7037 sparc86x-*-* obsolete.
7038
7039 2003-04-15 David Carlton <carlton@math.stanford.edu>
7040
7041 * Makefile.in (SFILES): Add cp-namespace.c.
7042 (COMMON_OBS): Add cp-namespace.o.
7043 (block.o): Depend on gdb_obstack_h and cp_support_h.
7044 (buildsym.o): Depend on cp_support_h.
7045 (cp-namespace.o): New.
7046 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7047 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7048 (dwarf2read.o): Depend on cp_support_h.
7049 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7050 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7051 processing_current_namespace.
7052 (read_namespace): Update processing_current_namespace; check for
7053 anonymous namespaces.
7054 (dwarf2_name): New function.
7055 (dwarf2_extension): Ditto.
7056 * cp-support.h: Update copyright, contributors.
7057 Add inclusion guards.
7058 Add opaque declaration for structs obstack, block, symbol.
7059 (struct using_direct): New struct.
7060 Add declarations for cp_find_first_component,
7061 cp_entire_prefix_len, processing_has_namespace_info,
7062 processing_current_namespace, cp_is_anonymous,
7063 cp_add_using_directive, cp_initialize_namespace,
7064 cp_finalize_namespace, cp_set_block_scope,
7065 cp_scan_for_anonymous_namespaces.
7066 * cp-namespace.c: New file.
7067 * cp-support.c: Update copyright.
7068 Include ctype.h, gdb_assert.h, gdbcmd.h.
7069 New variable maint_cplus_cmd_list.
7070 (cp_find_first_component): New function.
7071 (cp_entire_prefix_len, maint_cplus_command)
7072 (first_component_command, _initialize_cp_support): Ditto.
7073 * buildsym.c: Include cp-support.h.
7074 New variable using_list.
7075 (add_symbol_to_list): Check for anonymous namespaces.
7076 (finish_block): Set block's scope.
7077 (start_symtab): Initialize C++ namespace support.
7078 (end_symtab): Finalize C++ namespace support.
7079 * block.h: Add opaque declarations for structs
7080 block_namespace_info, using_direct, and obstack.
7081 Add declarations for block_set_scope and block_set_using.
7082 (struct block): Add 'language_specific' member.
7083 (BLOCK_NAMESPACE): New macro.
7084 * block.c: Include gdb_obstack.h and cp-support.h.
7085 (struct block_namespace_info): New struct.
7086 (block_set_scope): New function.
7087 (block_set_using, block_initialize_namespace): Ditto.
7088
7089 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7090
7091 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7092 (locate_base): Return early if there aren't any link map offsets.
7093 (svr4_solib_create_inferior_hook): Warn if shared library support
7094 is unavailable.
7095
7096 2003-04-14 David Carlton <carlton@math.stanford.edu>
7097
7098 * symtab.c (symbol_set_names): Add prefix when storing Java names
7099 in hash table. Fix for PR java/1039.
7100
7101 2003-04-14 David Carlton <carlton@math.stanford.edu>
7102
7103 * symtab.c (symbol_set_names): Rename 'name' arg to
7104 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7105 * symtab.h: Change 'name' argument in declaration of
7106 symbol_set_names to 'linkage_name'.
7107 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7108
7109 2003-04-14 Andrew Cagney <cagney@redhat.com>
7110
7111 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7112 return the fully sign-extended register value.
7113 (get_frame_pointer): Ditto.
7114 (mips_pop_frame): Initialize "proc_desc" after checking for a
7115 dummy frame.
7116
7117 2003-04-14 Andrew Cagney <cagney@redhat.com>
7118
7119 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7120 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7121 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7122 (mips_push_register): Delete function.
7123 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7124 PUSH_FP_REGNUM.
7125
7126 2003-04-14 Jim Blandy <jimb@redhat.com>
7127
7128 * symmisc.c: #include "gdb_regex.h".
7129 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7130 functions.
7131 * maint.c (maintenance_list_command): New function.
7132 (_initialize_maint_cmds): Register the above as commands.
7133 * symtab.h (maintenance_list_symtabs,
7134 maintenance_list_psymtabs): New declarations.
7135 * cli/cli-cmds.c (maintenancelistlist): New variable.
7136 (init_cmd_lists): Initialize it.
7137 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7138 * gdbcmd.h (maintenancelistlist): New declaration.
7139 * Makefile.in (symmisc.o): Update dependencies.
7140
7141 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7142
7143 * s390-nat.c: Include asm/types.h for addr_t.
7144
7145 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7146
7147 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7148 actually incoming type.
7149
7150 2003-04-13 Andrew Cagney <cagney@redhat.com>
7151
7152 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7153 get_next_frame and get_frame_saved_regs.
7154
7155 2003-04-13 Andrew Cagney <cagney@redhat.com>
7156
7157 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7158 of gdbarch_num_regs.
7159
7160 2003-04-13 Andrew Cagney <cagney@redhat.com>
7161
7162 * frame.h: Mention what replaced what in "struct frame_info".
7163 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7164 deprecated_update_frame_base_hack and
7165 deprecated_update_frame_pc_hack.
7166 * hppa-tdep.c: Ditto.
7167
7168 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7169
7170 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7171 to read_reg and update its comment. Remove regnum member.
7172 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7173 Don't call read_reg when setting in_reg. Call read_reg to get
7174 the frame base if it's in a register. Return the register number
7175 on the stack instead of in the context. Remove extra arguments
7176 to read_reg.
7177 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7178 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7179 the register number on the expression stack.
7180 (needs_frame_read_reg): Remove extra arguments.
7181
7182 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7183
7184 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7185 made non-static.
7186 (execute_stack_op): All callers updated.
7187 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7188 * dwarf2loc.c (find_location_expression): New function.
7189 (dwarf_expr_frame_base): Call it.
7190 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7191 (dwarf2_tracepoint_var_ref): New function, broken out from
7192 locexpr_tracepoint_var_ref.
7193 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7194 Make static.
7195 (loclist_read_variable, loclist_read_needs_frame): New functions.
7196 (loclist_describe_location, loclist_tracepoint_var_ref): New
7197 functions.
7198 (dwarf2_loclist_funcs): New struct location_funcs.
7199 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7200 (struct dwarf2_locexpr_baton): Add comments.
7201 (dwarf2_loclist_funcs): New extern.
7202 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7203 base_address and base_known.
7204 (dwarf_loc_buffer): New variable.
7205 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7206 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7207 (dwarf2_has_info): Initialize dwarf_loc_offset.
7208 (dwarf2_build_psymtabs): Read in .debug_loc.
7209 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7210 DWARF_LOC_SIZE.
7211 (psymtab_to_symtab_1): Likewise. Move base address calculation
7212 here, from...
7213 (dwarf2_get_pc_bounds): ... here. Use the base address from
7214 cu_header.
7215 (dwarf2_symbol_mark_computed): Handle location lists.
7216
7217 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7218
7219 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7220 if the linkage name demangled successfully.
7221
7222 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7223
7224 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7225 disassmbly_flavour): Removed.
7226
7227 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7228
7229 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7230
7231 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7232
7233 2003-04-12 Andrew Cagney <cagney@redhat.com>
7234
7235 * frame.h (struct frame_info): Move definition from here ...
7236 * frame.c (struct frame_info): ... to here.
7237
7238 2003-04-12 Andrew Cagney <cagney@redhat.com>
7239
7240 * gdbthread.h (save_infrun_state): Delete parameter
7241 "prev_func_start".
7242 (struct thread_info): Delete field "prev_func_start".
7243 (load_infrun_state): Ditto.
7244 * thread.c (load_infrun_state, save_infrun_state): Update.
7245 * infrun.c (prev_func_start): Delete variable.
7246 (context_switch, init_wait_for_inferior): Update.
7247 (stop_stepping, keep_going): Update.
7248
7249 2003-04-12 Andrew Cagney <cagney@redhat.com>
7250
7251 * gdbarch.sh: Add missing opaque declarations.
7252 * gdbarch.h: Regnerate.
7253 * symtab.h: Add missing opaque declarations.
7254 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7255 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7256 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7257 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7258 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7259 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7260 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7261 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7262 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7263 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7264 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7265 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7266 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7267
7268 2003-04-11 Andrew Cagney <cagney@redhat.com>
7269
7270 * frame.c (get_frame_id): Return this frame's "id".
7271 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7272 function start.
7273 (legacy_saved_regs_this_id): Replace function body with
7274 internal-error.
7275 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7276 FRAME_OBSTACK_ZALLOC.
7277 (create_new_frame): Mark the frame ID as valid.
7278
7279 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7280
7281 * Makefile.in (libbfd_h): Added missing setting.
7282 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7283 according to the selected ABI.
7284
7285 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7286
7287 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7288
7289 2003-04-11 Andrew Cagney <cagney@redhat.com>
7290
7291 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7292 SAVED_PC_AFTER_CALL.
7293 * gdbarch.h, gdbarch.c: Regenerate.
7294 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7295 * x86-64-tdep.c (x86_64_init_abi): Update.
7296 * vax-tdep.c (vax_gdbarch_init): Update.
7297 * v850-tdep.c (v850_gdbarch_init): Update.
7298 * sparc-tdep.c (sparc_gdbarch_init): Update.
7299 * sh-tdep.c (sh_gdbarch_init): Update.
7300 * s390-tdep.c (s390_gdbarch_init): Update.
7301 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7302 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7303 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7304 * mips-tdep.c (mips_gdbarch_init): Update.
7305 * mcore-tdep.c (mcore_gdbarch_init): Update.
7306 * m68k-tdep.c (m68k_gdbarch_init): Update.
7307 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7308 * ia64-tdep.c (ia64_gdbarch_init): Update.
7309 (ia64_saved_pc_after_call): Update declaration.
7310 * i386ly-tdep.c (i386lynx_init_abi): Update.
7311 * i386-tdep.c (i386_gdbarch_init): Update.
7312 * hppa-tdep.c (hppa_gdbarch_init): Update.
7313 * h8300-tdep.c (h8300_gdbarch_init): Update.
7314 * frv-tdep.c (frv_gdbarch_init): Update.
7315 * cris-tdep.c (cris_gdbarch_init): Update.
7316 * avr-tdep.c (avr_gdbarch_init): Update.
7317 * arm-tdep.c (arm_gdbarch_init): Update.
7318 * alpha-tdep.c (alpha_gdbarch_init): Update.
7319 * ns32knbsd-nat.c (frame_num_args): Update.
7320 * ns32k-tdep.c (umax_frame_num_args): Update.
7321 * mips-tdep.c (mips_init_frame_pc_first): Update.
7322 * infrun.c (step_over_function): Update.
7323 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7324 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7325 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7326 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7327 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7328 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7329 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7330 * arch-utils.c (init_frame_pc_default): Update.
7331 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7332 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7333 declaration.
7334
7335 2003-04-11 Andrew Cagney <cagney@redhat.com>
7336
7337 * i387-tdep.c: Update copyright.
7338 (i387_to_double): Delete function.
7339 (double_to_i387): Delete function.
7340
7341 2003-04-10 Andrew Cagney <cagney@redhat.com>
7342
7343 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7344 frame's function's address. Simplify.
7345 (d10v_frame_unwind_cache): Check that the frame's function is
7346 non-zero.
7347
7348 2003-04-10 Jim Blandy <jimb@redhat.com>
7349
7350 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7351 call to set_gdbarch_deprecated_push_arguments.
7352
7353 2003-04-10 Andrew Cagney <cagney@redhat.com>
7354
7355 * frame.c (fprint_frame_id): New function.
7356 (fprint_frame_type, fprint_frame): New function.
7357 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7358 (create_sentinel_frame, get_frame_id): Ditto.
7359 (frame_id_p, frame_id_eq): Ditto.
7360 (frame_id_inner, create_new_frame): Ditto.
7361 (legacy_get_prev_frame, get_prev_frame): Ditto.
7362 (deprecated_update_frame_pc_hack): Ditto.
7363 (frame_register_unwind): Ditto.
7364 (deprecated_update_frame_base_hack): Ditto.
7365
7366 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7367
7368 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7369 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7370 frame_chain function.
7371 * Makefile.in: Add dependencies due to above change.
7372
7373 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7374
7375 * blockframe.c (legacy_frame_chain_valid): Move call to
7376 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7377 inside_entry_file.
7378
7379 2003-04-09 Andrew Cagney <cagney@redhat.com>
7380
7381 * frame.h (struct frame_id): Replace "pc" and "base" with
7382 "stack_addr" and "code_addr". Update comments.
7383 (frame_id_build): Update parameter names and comment.
7384 (struct frame_info): Replace "id_p" and "id" with "this_id".
7385 * dummy-frame.c (dummy_frame_this_id): Update.
7386 * breakpoint.c (print_one_breakpoint): Update.
7387 * frame.c (get_frame_id): Update.
7388 (get_frame_base, frame_id_build): Update.
7389 (create_sentinel_frame, legacy_get_prev_frame): Update.
7390 (deprecated_update_frame_base_hack): Update.
7391 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7392 (frame_id_inner): Ditto.
7393
7394 2003-04-09 Andrew Cagney <cagney@redhat.com>
7395
7396 * defs.h (gdb_print_host_address): Make "addr" parameter a
7397 pointer constant.
7398 * utils.c (gdb_print_host_address): Update.
7399
7400 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7401
7402 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7403 register number for R0 is 0.
7404
7405 2003-04-09 J. Brobecker <brobecker@gnat.com>
7406
7407 * frame.h (struct gdbarch): Add opaque structure definition
7408 to avoid a compilation warning on LynxOS 4.0.
7409
7410 2003-04-09 Andrew Cagney <cagney@redhat.com>
7411
7412 * frame.h (struct frame_info): Delete field "pc". Replace
7413 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7414 structure.
7415 * frame.c (frame_pc_unwind): Update.
7416 (create_sentinel_frame): Do not set "pc".
7417 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7418 (get_frame_pc): Call frame_pc_unwind.
7419 (deprecated_update_frame_pc_hack): Update.
7420 (create_new_frame): Use "pc" not "->pc".
7421
7422 2003-04-09 Andrew Cagney <cagney@redhat.com>
7423
7424 * frame.c (get_frame_id): Eliminate code updating "frame".
7425 (legacy_get_prev_frame): Ditto.
7426 (get_frame_base): Return id.base directly.
7427 (deprecated_update_frame_base_hack): Update "id.base".
7428 * frame.h (struct frame_info): Delete field "frame".
7429
7430 2003-04-09 Andrew Cagney <cagney@redhat.com>
7431
7432 * NEWS: Mention that the "Sequent family" is obsolete.
7433 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7434 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7435 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7436 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7437 * config/i386/tm-ptx4.h: Obsolete file.
7438 * config/i386/tm-ptx.h: Obsolete file.
7439 * symm-tdep.c: Obsolete file.
7440 * config/i386/symmetry.mt: Obsolete file.
7441 * config/i386/tm-symmetry.h: Obsolete file.
7442 * symm-nat.c: Obsolete file.
7443 * config/i386/nm-symmetry.h: Obsolete file.
7444 * config/i386/xm-symmetry.h: Obsolete file.
7445 * config/i386/symmetry.mh: Obsolete file.
7446 * config/i386/nm-ptx4.h: Obsolete file.
7447 * config/i386/ptx4.mh: Obsolete file.
7448 * config/i386/ptx.mt: Obsolete file.
7449 * config/i386/ptx.mh: Obsolete file.
7450 * config/i386/xm-ptx4.h: Obsolete file.
7451 * config/i386/xm-ptx.h: Obsolete file.
7452
7453 2003-04-09 Andrew Cagney <cagney@redhat.com>
7454
7455 Obsolete mips*-*-mach3*.
7456 * NEWS: Mention that mips*-*-mach3* is obsolete.
7457 * m3-nat.c: Obsolete file.
7458 * config/nm-m3.h: Obsolete file.
7459 * config/mips/tm-mipsm3.h: Obsolete file.
7460 * config/mips/mipsm3.mt: Obsolete file.
7461 * config/mips/mipsm3.mh: Obsolete file.
7462 * config/mips/xm-mipsm3.h: Obsolete file.
7463 * mipsm3-nat.c: Obsolete file.
7464 * configure.host: Obsolete mips-dec-mach3*.
7465 * configure.tgt: Obsolete mips*-*-mach3*.
7466
7467 2003-04-09 Andrew Cagney <cagney@redhat.com>
7468
7469 * doublest.h: Update copyright.
7470 (deprecated_store_floating, deprecated_extract_floating): Rename
7471 store_floating and extract_floating. Update comments.
7472 * doublest.c: Update copyright.
7473 (extract_floating_by_length): Replace extract_floating.
7474 (store_floating_by_length): Replace store_floating.
7475 (deprecated_extract_floating): New function.
7476 (deprecated_store_floating): New function.
7477 (extract_typed_floating): Call extract_floating_by_length.
7478 (store_typed_floating): Call store_floating_by_length.
7479 * x86-64-tdep.c (x86_64_store_return_value): Update.
7480 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7481 (sh64_extract_return_value): Update.
7482 (sh_sh4_register_convert_to_virtual): Update.
7483 (sh_sh64_register_convert_to_virtual): Update.
7484 (sh_sh4_register_convert_to_raw): Update.
7485 (sh_sh64_register_convert_to_raw): Update.
7486 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7487 (rs6000_register_convert_to_raw): Update.
7488 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7489 (ia64_register_convert_to_raw): Update.
7490 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7491 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7492 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7493 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7494 (alpha_register_convert_to_raw): Update.
7495
7496 2003-04-08 Andrew Cagney <cagney@redhat.com>
7497
7498 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7499 * gdbarch.h, gdbarch.c: Re-generate.
7500 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7501 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7502 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7503 conditionally, use frame_pc_unwind as an alternative. Add
7504 comments.
7505 * arch-utils.c (init_frame_pc_default): Only call
7506 SAVED_PC_AFTER_CALL when available.
7507
7508 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7509
7510 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7511 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7512 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7513 (start_remote): Ditto.
7514 (handle_inferior_event): Ditto.
7515 (save_inferior_status): Ditto.
7516 (restore_inferior_status): Ditto.
7517 * infcmd.c (attach_command): Ditto.
7518 * fork-child.c (startup_inferior): Ditto.
7519 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7520 * alpha-tdep.c (heuristic_proc_start): Ditto.
7521 * mips-tdep.c (heuristic_proc_start): Ditto.
7522 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7523 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7524 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7525 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7526 * remote-vx.c (vx_create_inferior): Ditto.
7527
7528 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7529
7530 * infrun.c (stop_soon_quietly): Make it an enum, to better
7531 override the default behavior of handle_inferior_event.
7532 (clear_proceed_status): Update uses of stop_soon_quietly to
7533 reflect that it is now an enum.
7534 (start_remote): Ditto.
7535 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7536 is set to handle the new GNU/Linux kernel behavior for
7537 attach/sigstop. Update uses of stop_soon_quietly.
7538 * inferior.h (enum stop_kind): New enum.
7539 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7540 Reset normal handle_inferior_event behavior, afterwards.
7541 * fork-child.c (startup_inferior): Update.
7542 * alpha-tdep.c (heuristic_proc_start): Update.
7543 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7544 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7545 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7546 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7547 * remote-vx.c (vx_create_inferior): Update.
7548 * mips-tdep.c (heuristic_proc_start): Update.
7549
7550 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7551
7552 * disasm.c (dump_insns): Move variables inside loop, or they will
7553 be freed more than once, causing wild memory corruptions.
7554 (gdb_disassembly): Look for the substring "-thread",
7555 instead of "-threads" in the target name, to make sure to find
7556 the 'multi-thread' target. Also, make sure we do the right thing
7557 with the "core" target.
7558
7559 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7560
7561 * mips-tdep.c (mips_print_fp_register): New function, created from
7562 do_fp_register_row(). Registers are now (also) printed as hex.
7563 Only one register is printed per row.
7564 (mips_print_register, do_fp_register_row): Print floating point
7565 registers with mips_print_fp_register().
7566
7567 2003-04-06 Andrew Cagney <cagney@redhat.com>
7568
7569 * valprint.h (inspect_it): Add extern declaration.
7570 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7571 (selectors_info, classes_info): Ditto.
7572 (find_objc_msgcall): Fix indentation.
7573 (objc_printstr): Delete extern declarations.
7574
7575 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7576
7577 2003-04-06 Andrew Cagney <cagney@redhat.com>
7578
7579 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7580 Update comment.
7581 * frame.c (legacy_saved_regs_this_id): Update.
7582 (legacy_get_prev_frame): Update.
7583 * xstormy16-tdep.c: Update comment.
7584 * sparc-tdep.c (sparc_frame_chain): Update comment.
7585 * blockframe.c (legacy_frame_chain_valid): Update.
7586
7587 2003-04-06 Andrew Cagney <cagney@redhat.com>
7588
7589 * valprint.c (val_print_type_code_int): Delete #ifdef
7590 PRINT_TYPELESS_INTEGER code.
7591
7592 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7593 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7594 multi-arch definition.
7595 * gdbarch.h: Re-generate.
7596
7597 2003-04-05 Andrew Cagney <cagney@redhat.com>
7598
7599 Eliminate FRAME_FIND_SAVED_REGS.
7600 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7601 Change FSR parameter to a pointer.
7602 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7603 Assume FSR parameter is a pointer.
7604 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7605 Make fsr a pointer.
7606 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7607 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7608 saved_regs a pointer.
7609 (hppa_frame_saved_pc): Ditto.
7610 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7611 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7612 pointer.
7613 (restore_pc_queue): Make fsr a pointer.
7614 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7615 (hppa_frame_chain): Make saved_regs a pointer, call
7616 hppa_frame_init_saved_regs.
7617 * sparc-tdep.c: Include "gdb_assert.h".
7618 (sparc_frame_find_saved_regs): Replace internal_error with
7619 gdb_assert.
7620 * remote-vxsparc.c (vx_read_register): Delete reference to
7621 FRAME_FIND_SAVED_REGS.
7622 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7623 * gdbarch.h: Regenerate.
7624 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7625 (deprecated_get_frame_saved_regs): Delete declaration.
7626 (struct frame_saved_regs): Delete definition.
7627 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7628 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7629 (hppa_frame_find_saved_regs): Delete declaration.
7630 (FRAME_FIND_SAVED_REGS): Delete macro.
7631 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7632 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7633 FRAME_FIND_SAVED_REGS in comment.
7634
7635 2003-04-05 Andrew Cagney <cagney@redhat.com>
7636
7637 * frame.c (frame_func_unwind, get_frame_func): New functions.
7638 * frame.h (get_frame_func, frame_func_unwind): Declare.
7639 (struct frame_info): Add field "prev_func" for caching the
7640 previous frame's function address.
7641 * arm-tdep.c (arm_frameless_function_invocation): Combine
7642 get_pc_function_start and get_frame_pc into get_frame_func.
7643 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7644 (sh64_nofp_frame_init_saved_regs): Ditto.
7645 * s390-tdep.c (s390_function_start): Ditto.
7646 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7647 (rs6000_frameless_function_invocation): Ditto.
7648 (rs6000_frame_saved_pc): Ditto.
7649 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7650 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7651 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7652 (i386_frame_init_saved_regs): Ditto.
7653 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7654 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7655 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7656 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7657 * blockframe.c (frameless_look_for_prologue): Ditto.
7658
7659 2003-04-05 Andrew Cagney <cagney@redhat.com>
7660
7661 * frame.c (legacy_get_prev_frame): Link prev to next at the
7662 function start. Update comments.
7663
7664 2003-04-05 Andrew Cagney <cagney@redhat.com>
7665
7666 * frame.c (get_frame_id): Update comment.
7667 (legacy_get_prev_frame): Update comment.
7668 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7669 * gdbarch.h: Regenerate.
7670 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7671 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7672
7673 2003-04-05 Andrew Cagney <cagney@redhat.com>
7674
7675 * stack.c (print_frame_info): Use get_frame_pc.
7676
7677 2003-04-04 Andrew Cagney <cagney@redhat.com>
7678
7679 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7680 the frame's type from the unwinder.
7681 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7682 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7683 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7684 (get_frame_base_address): Use get_frame_type.
7685 (get_frame_locals_address, get_frame_args_address): Ditto.
7686 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7687 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7688 (struct frame_info): Add comment explaining why the frame contains
7689 a "type" field.
7690 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7691 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7692 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7693 NORMAL_FRAME.
7694 * frame-unwind.h: Include "frame.h".
7695 (struct frame_unwind): Add "type" field.
7696 * Makefile.in (frame_unwind_h): Add $(frame_h).
7697
7698 2003-04-04 Andrew Cagney <cagney@redhat.com>
7699
7700 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7701 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7702 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7703 get_frame_base.
7704 (d10v_unwind_dummy_id): Use frame_id_build.
7705 * frame.c (find_frame_sal): Use get_frame_pc.
7706 (create_new_frame): Use deprecated_update_frame_pc_hack and
7707 deprecated_update_frame_base_hack.
7708 (create_sentinel_frame): Add comment about ->pc going away.
7709 (get_prev_frame): Add comment about ->pc going away.
7710 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7711 frame_id_build, deprecated_update_frame_pc_hack and
7712 deprecated_update_frame_base_hack.
7713 (select_frame): Use get_frame_pc.
7714 (legacy_saved_regs_this_id): Use frame_id_build.
7715
7716 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7717
7718 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7719 signed integer case.
7720 (classify_argument): Handle enumerations and references.
7721
7722 2003-04-04 Andrew Cagney <cagney@redhat.com>
7723
7724 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7725 ID to NULL.
7726
7727 2003-04-01 Adam Fedor <fedor@gnu.org>
7728
7729 * gdb/objc-lang.c (selectors_info): Replace calls to
7730 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7731 SYMBOL_NATURAL_NAME.
7732 (classes_info, find_methods): Likewise.
7733
7734 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7735
7736 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7737 ``mach'' to the value determined by bfd_default_set_arch_mach().
7738
7739 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7740
7741 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7742 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7743 (mi-cmd-file.o): Update dependencies.
7744
7745 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7746
7747 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7748 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7749
7750 2003-04-01 Adam Fedor <fedor@gnu.org>
7751
7752 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7753 * language.h (struct language_defn): Add la_demangle.
7754 (language_demangle): Declare.
7755 * language.c (language_demangle): New function.
7756 (unk_lang_demangle): Likewise.
7757 (unknown_language_defn, auto_language_defn, local_language_defn):
7758 Add ukn_lang_demangle.
7759 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7760 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7761 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7762 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7763 * jv-lang.c (java_demangle): New function
7764 (java_language_defn): Use it for la_demangle element.
7765 * objc-lang.c (objc_demangle): Add options argument
7766 (objc_language_defn): Use objc_demangle for la_demangle element.
7767 * maint.c (maintenance_demangle): Replace switch with
7768 call to language_demangle.
7769 * utils.c (fprintf_symbol_filtered): Likewise.
7770
7771 2003-04-01 Andrew Cagney <cagney@redhat.com>
7772
7773 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7774 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7775 PRINT_TYPELESS_INTEGER.
7776 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7777 PUSH_RETURN_ADDRESS.
7778
7779 2003-04-01 Andrew Cagney <cagney@redhat.com>
7780
7781 * Makefile.in (d10v-tdep.o): Update dependencies.
7782 * d10v-tdep.c: Include "frame-base.h".
7783 (d10v_frame_unwind): Make constant.
7784 (d10v_frame_base_address): New function.
7785 (d10v_frame_base): New variable.
7786 (d10v_gdbarch_init): Set frame_base default.
7787 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7788 comment for base.
7789 (d10v_frame_unwind_cache): Set and use "prev_sp".
7790 (d10v_frame_this_id): Use the previous frame's inner most stack
7791 address and this frame's func address for the frame ID. Use
7792 frame_id_build. Don't analyze beyond the current instruction.
7793
7794 2003-04-01 Andrew Cagney <cagney@redhat.com>
7795
7796 * frame.h (get_frame_locals_address, get_frame_args_address):
7797 Refer to the base address, instead of the address of the first
7798 local or parameter.
7799
7800 2003-04-01 Andrew Cagney <cagney@redhat.com>
7801
7802 Add frame debug info addresses:
7803 * frame-base.c: New file.
7804 * frame-base.h: New file.
7805 * frame.h (struct frame_base): Add opaque declaration.
7806 (get_frame_base): Update comment.
7807 (get_frame_base_address): Declare.
7808 (get_frame_locals_address): Declare.
7809 (get_frame_args_address): Declare.
7810 (struct frame_info): Add "base" and "base_cache". Update
7811 comments on the unwinder.
7812 * frame.c: Include "frame-base.h".
7813 (get_frame_locals_address): New function.
7814 (get_frame_base_address): New function.
7815 (get_frame_args_address): New function.
7816 * findvar.c (read_var_value): Use get_frame_locals_address and
7817 get_frame_args_address.
7818 * stack.c (frame_info): Use get_frame_locals_address and
7819 get_frame_args_address.
7820 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7821 moved to "frame-base.c".
7822 * printcmd.c (print_frame_nameless_args): Ditto.
7823 * symtab.h (address_class): Update comments.
7824 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7825 get_frame_base_address.
7826 * dwarf2expr.c (execute_stack_op): Ditto.
7827 * Makefile.in (frame_base_h): Define.
7828 (frame.o): Update dependencies.
7829 (frame-base.o): Add dependencies.
7830 (SFILES): Add frame-base.c.
7831 (COMMON_OBS): Add frame-base.o.
7832
7833 2003-04-01 Andrew Cagney <cagney@redhat.com>
7834
7835 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7836 CALL_DUMMY_LENGTH): Ditto.
7837 * gdbarch.c: Re-generate.
7838 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7839 (CALL_DUMMY_LENGTH): Delete macro.
7840 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7841 * arm-tdep.c (arm_gdbarch_init): Ditto.
7842 * avr-tdep.c (avr_gdbarch_init): Ditto.
7843 * cris-tdep.c (cris_gdbarch_init): Ditto.
7844 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7845 * frv-tdep.c (frv_gdbarch_init): Ditto.
7846 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7847 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7848 * i386-tdep.c (i386_gdbarch_init): Ditto.
7849 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7850 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7851 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7852 * mips-tdep.c (mips_gdbarch_init): Ditto.
7853 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7854 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7855 * s390-tdep.c (s390_gdbarch_init): Ditto.
7856 * sh-tdep.c (sh_gdbarch_init): Ditto.
7857 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7858 * v850-tdep.c (v850_gdbarch_init): Ditto.
7859 * vax-tdep.c (vax_gdbarch_init): Ditto.
7860 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7861
7862 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7863
7864 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7865
7866 2003-04-01 Andrew Cagney <cagney@redhat.com>
7867
7868 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7869 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7870 * gdbarch.h, gdbarch.c: Re-generate.
7871 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7872 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7873 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7874 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7875 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7876 * infcmd.c (run_stack_dummy): Simplify assuming
7877 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7878 * infrun.c (handle_inferior_event): Ditto.
7879 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7880 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7881 * arm-tdep.c (arm_gdbarch_init): Ditto.
7882 * avr-tdep.c (avr_gdbarch_init): Ditto.
7883 * cris-tdep.c (cris_gdbarch_init): Ditto.
7884 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7885 * frv-tdep.c (frv_gdbarch_init): Ditto.
7886 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7887 * i386-tdep.c (i386_gdbarch_init): Ditto.
7888 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7890 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7891 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7892 * mips-tdep.c (mips_gdbarch_init): Ditto.
7893 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7894 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7895 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7896 * s390-tdep.c (s390_gdbarch_init): Ditto.
7897 * sh-tdep.c (sh_gdbarch_init): Ditto.
7898 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7899 * v850-tdep.c (v850_gdbarch_init): Ditto.
7900 * vax-tdep.c (vax_gdbarch_init): Ditto.
7901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7902
7903 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7904
7905 * symfile.c (symfile_relocate_debug_section): Update call to
7906 bfd_simple_get_relocated_section_contents.
7907
7908 2003-03-31 Andrew Cagney <cagney@redhat.com>
7909
7910 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7911 * gdbarch.h, gdbarch.c: Regenerate.
7912 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7913 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7914 available.
7915 * frame.h (generic_fix_call_dummy): Delete declaration.
7916 * dummy-frame.h: Update comment.
7917 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7919 fix_call_dummy.
7920 * sh-tdep.c (sh_gdbarch_init): Ditto.
7921 * s390-tdep.c (s390_gdbarch_init): Ditto.
7922 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7923 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7924 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7925 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7926 * i386-tdep.c (i386_gdbarch_init): Ditto.
7927 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7928 * frv-tdep.c (frv_gdbarch_init): Ditto.
7929 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7930 * cris-tdep.c (cris_gdbarch_init): Ditto.
7931 * avr-tdep.c (avr_gdbarch_init): Ditto.
7932 * arm-tdep.c (arm_gdbarch_init): Ditto.
7933
7934 2003-03-31 J. Brobecker <brobecker@gnat.com>
7935
7936 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7937 (INIT_FRAME_AP): Likewise.
7938 (EXTRA_FRAME_INFO): Likewise.
7939
7940 2003-03-31 Andrew Cagney <cagney@redhat.com>
7941
7942 * gdbarch.sh: Include "symfile.h".
7943 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7944 * gdbarch.h, gdbarch.c: Re-generate.
7945 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7947 call_dummy_address, the default is at entry_point_address.
7948 * v850-tdep.c (v850_gdbarch_init): Ditto.
7949 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7950 * sh-tdep.c (sh_gdbarch_init): Ditto.
7951 * s390-tdep.c (s390_gdbarch_init): Ditto.
7952 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7953 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7954 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7955 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7956 * i386-tdep.c (i386_gdbarch_init): Ditto.
7957 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7958 * frv-tdep.c (frv_gdbarch_init): Ditto.
7959 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7960 * cris-tdep.c (cris_gdbarch_init): Ditto.
7961 * arm-tdep.c (arm_gdbarch_init): Ditto.
7962
7963 2003-03-31 Andrew Cagney <cagney@redhat.com>
7964
7965 * gdbarch.sh (CALL_DUMMY_P): Delete.
7966 * gdbarch.h, gdbarch.c: Re-generate.
7967 * inferior.h (CALL_DUMMY_P): Delete macro.
7968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7969 * vax-tdep.c (vax_gdbarch_init): Update.
7970 * v850-tdep.c (v850_gdbarch_init): Update.
7971 * sparc-tdep.c (sparc_gdbarch_init): Update.
7972 * sh-tdep.c (sh_gdbarch_init): Update.
7973 * s390-tdep.c (s390_gdbarch_init): Update.
7974 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7975 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7976 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7977 * mips-tdep.c (mips_gdbarch_init): Update.
7978 * mcore-tdep.c (mcore_gdbarch_init): Update.
7979 * m68k-tdep.c (m68k_gdbarch_init): Update.
7980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7981 * ia64-tdep.c (ia64_gdbarch_init): Update.
7982 * i386-tdep.c (i386_gdbarch_init): Update.
7983 * h8300-tdep.c (h8300_gdbarch_init): Update.
7984 * frv-tdep.c (frv_gdbarch_init): Update.
7985 * d10v-tdep.c (d10v_gdbarch_init): Update.
7986 * cris-tdep.c (cris_gdbarch_init): Update.
7987 * breakpoint.c (deprecated_frame_in_dummy): Update.
7988 * avr-tdep.c (avr_gdbarch_init): Update.
7989 * alpha-tdep.c (alpha_gdbarch_init): Update.
7990 * arm-tdep.c (arm_gdbarch_init): Update.
7991 * dummy-frame.c (dummy_frame_this_id): Update comments.
7992 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7993 * frame.c (legacy_get_prev_frame): Ditto.
7994 * valops.c (call_function_by_hand): Delete function.
7995 (hand_function_call): Rename to call_function_by_hand
7996
7997 2003-03-30 Andrew Cagney <cagney@redhat.com>
7998
7999 2002-11-10 Klee Dienes <kdienes@apple.com>
8000 * value.h (struct value): Update comment.
8001
8002 2003-03-30 Andrew Cagney <cagney@redhat.com>
8003
8004 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8005 D10V_FP_REGNUM.
8006 (d10v_gdbarch_init): Do not set fp_regnum.
8007
8008 * frame.c (get_frame_base): Force ID initialization.
8009 (get_prev_frame): Move computation of the frame ID from here ...
8010 (get_frame_id): ... to here.
8011 (legacy_get_prev_frame): Mark the frame ID as valid.
8012 * frame.h (struct frame_info): Add field "id_p".
8013
8014 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8015
8016 * i386-tdep.c (i386_store_struct_return): Removed.
8017 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8018
8019 2003-03-30 Andrew Cagney <cagney@redhat.com>
8020
8021 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8022 * gdbarch.h, gdbarch.c: Regenerate.
8023 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8024 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8025 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8026 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8027 * i386-tdep.c (i386_gdbarch_init): Ditto.
8028 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8029 * cris-tdep.c (cris_gdbarch_init): Ditto.
8030 * vax-tdep.c (vax_gdbarch_init): Ditto.
8031 * s390-tdep.c (s390_gdbarch_init): Ditto.
8032 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8033 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8034 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8035 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8036 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8037 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8038 * sparc-tdep.c (sparc_gdbarch_init): Update.
8039 * sh-tdep.c (sh_gdbarch_init): Update.
8040 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8041 * mips-tdep.c (mips_gdbarch_init): Update.
8042 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8043 * ia64-tdep.c (ia64_gdbarch_init): Update.
8044 * frv-tdep.c (frv_gdbarch_init): Update.
8045 * avr-tdep.c (avr_gdbarch_init): Update.
8046 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8047 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8048 instead of when push_dummy_call is not available.
8049
8050 2003-03-30 Andrew Cagney <cagney@redhat.com>
8051
8052 * infttrace.c: Include "gdbthread.h".
8053 (parent_attach_all): Fix function signature.
8054 (call_ptrace): Update call.
8055 * Makefile.in (infttrace.o): Update dependencies.
8056
8057 2003-03-30 Andrew Cagney <cagney@redhat.com>
8058
8059 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8060 PUSH_RETURN_ADDRESS.
8061 * gdbarch.h, gdbarch.c: Regenerate.
8062 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8063 * x86-64-tdep.c (x86_64_init_abi): Update.
8064 * v850-tdep.c (v850_gdbarch_init): Update.
8065 * sparc-tdep.c (sparc_gdbarch_init): Update.
8066 * sh-tdep.c (sh_gdbarch_init): Update.
8067 * s390-tdep.c (s390_gdbarch_init): Update.
8068 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8069 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8070 * mips-tdep.c (mips_gdbarch_init): Update.
8071 * mcore-tdep.c (mcore_gdbarch_init): Update.
8072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8073 * ia64-tdep.c (ia64_gdbarch_init): Update.
8074 * i386-tdep.c (i386_gdbarch_init): Update.
8075 * h8300-tdep.c (h8300_gdbarch_init): Update.
8076 * frv-tdep.c (frv_gdbarch_init): Update.
8077 * cris-tdep.c (cris_gdbarch_init): Update.
8078 * avr-tdep.c (avr_gdbarch_init): Update.
8079 * arm-tdep.c (arm_gdbarch_init): Update.
8080 * valops.c (hand_function_call): Update.
8081
8082 2003-03-29 Andrew Cagney <cagney@redhat.com>
8083
8084 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8085 sizeof_call_dummy_words.
8086 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8087 define.
8088 * gdbarch.h: Regenerate.
8089
8090 2003-03-29 Andrew Cagney <cagney@redhat.com>
8091
8092 * infttrace.h: New file.
8093 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8094 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8095 (hpread_read_doc_function_type): Detect an initialized type1.
8096 (hpread_quick_traverse): Initialize mod_name_string.
8097 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8098 (som_solib_get_solib_by_pc): Declare.
8099 (so_lib_thread_start_addr): Declare.
8100 (no_shared_libraries): Declare.
8101 * somread.c (init_import_symbols): Make static. Add forward
8102 declaration.
8103 * config/pa/nm-hppah.h: Include "infttrace.h" for
8104 parent_attach_all.
8105 (hppa_insert_hw_watchpoint): Declare.
8106 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8107 * hppah-nat.c: Include "gdb_string.h".
8108 (parent_attach_all): Delete extern declaration, moved to
8109 "infttrace.h".
8110 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8111 int.
8112 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8113 * Makefile.in (infttrace_h): Define.
8114 (hpread.o): Update dependencies.
8115 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8116 * hppa-hpux-tdep.c: Include "gdb_string.h".
8117 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8118 * infrun.c (handle_inferior_event): Always initialize
8119 stepped_after_stopped_by_watchpoint. Add default and remove
8120 fallthrough in switch statement.
8121 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8122 parameter to int.
8123 (hppa_remove_hw_watchpoint): Ditto.
8124
8125 2003-03-29 Andrew Cagney <cagney@redhat.com>
8126
8127 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8128 offset.
8129
8130 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8131
8132 * arm-tdep.c (arm_push_arguments): Delete.
8133 (struct stack_item): New type.
8134 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8135 (arm_store_struct_return): Delte.
8136 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8137 arm_push_arguments or arm_store_struct_return.
8138
8139 2003-03-28 Andrew Cagney <cagney@redhat.com>
8140
8141 * Makefile.in (d10v-tdep.o): Update dependencies.
8142 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8143 * d10v-tdep.c: Include "remote.h".
8144 (target_resume_hook): Delete extern declaration.
8145 (target_wait_loop_hook): Ditto.
8146 (tdisassemble_command): Eliminate assignment in "if" conditional.
8147 (d10v_ts2_register_sim_regno): Eliminate call to
8148 legacy_register_sim_regno.
8149 (d10v_ts3_register_sim_regno): Ditto.
8150
8151 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8152
8153 * thread.c: Reindented.
8154 * lin-lwp.c: Ditto.
8155 * linux-proc.c: Ditto.
8156
8157 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8158
8159 * MAINTAINERS (write after approval): Add myself.
8160
8161 2003-03-27 Theodore A. Roth <troth@openavr.org>
8162
8163 * objc-exp.y: Add missing semi-colons.
8164
8165 2003-03-27 Andrew Cagney <cagney@redhat.com>
8166
8167 * regcache.c (write_sp): Delete function and references.
8168 * inferior.h (write_sp): Delete declaration.
8169 * valops.c (hand_function_call): Replace write_sp with
8170 TARGET_WRITE_SP.
8171 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8172 (sparc_pop_frame): Ditto.
8173
8174 2003-03-27 Andrew Cagney <cagney@redhat.com>
8175
8176 * NEWS: Mention removal of support for hppa*-*-bsd* and
8177 hppa*-*-osf* natives, and hppa*-*-pro* target.
8178 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8179 * config/pa/xm-pa.h: Obsolete file.
8180 * config/pa/xm-hppab.h: Obsolete file.
8181 * config/pa/nm-hppab.h: Obsolete file.
8182 * config/pa/tm-hppab.h: Obsolete file.
8183 * config/pa/tm-hppao.h: Obsolete file.
8184 * config/pa/nm-hppao.h: Obsolete file.
8185 * config/pa/tm-pro.h: Obsolete file.
8186 * config/pa/hppaosf.mt: Obsolete file.
8187 * config/pa/hppaosf.mh: Obsolete file.
8188 * config/pa/hppapro.mt: Obsolete file.
8189 * config/pa/hppabsd.mt: Obsolete file.
8190 * config/pa/hppabsd.mh: Obsolete file.
8191 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8192 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8193 hppa*-*-osf*.
8194
8195 2003-03-27 Andrew Cagney <cagney@redhat.com>
8196
8197 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8198 push_arguments. Don't set push_return_address or write_sp.
8199 (d10v_push_dummy_call): Replace d10v_push_arguments.
8200 (d10v_push_return_address, d10v_write_sp): Delete function,
8201 handled by push_dummy_call.
8202
8203 2003-03-26 Andrew Cagney <cagney@redhat.com>
8204
8205 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8206 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8207 regcache and dummy_addr parameters.
8208 * gdbarch.h, gdbarch.c: Re-generate.
8209 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8210 available; assume it will handle stack alignment and return
8211 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8212 legacy_push_arguments.
8213 (legacy_push_arguments): Rename default_push_arguments.
8214 * value.h (legacy_push_arguments): Rename default_push_arguments.
8215 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8216 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8217 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8218 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8219 * config/i386/tm-symmetry.h: Update.
8220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8221 * x86-64-tdep.c (x86_64_init_abi): Update.
8222 * v850-tdep.c (v850_gdbarch_init): Update.
8223 * sparc-tdep.c (sparc_gdbarch_init): Update.
8224 * sh-tdep.c (sh_gdbarch_init): Update.
8225 * s390-tdep.c (s390_gdbarch_init): Update.
8226 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8227 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8228 * mips-tdep.c (mips_gdbarch_init): Update.
8229 * mcore-tdep.c (mcore_gdbarch_init): Update.
8230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8231 * ia64-tdep.c (ia64_gdbarch_init): Update.
8232 * i386-tdep.c (i386_gdbarch_init): Update.
8233 * hppa-tdep.c (hppa_gdbarch_init): Update.
8234 * h8300-tdep.c (h8300_gdbarch_init): Update.
8235 * frv-tdep.c (frv_gdbarch_init): Update.
8236 * d10v-tdep.c (d10v_gdbarch_init): Update.
8237 * cris-tdep.c (cris_gdbarch_init): Update.
8238 * avr-tdep.c (avr_gdbarch_init): Update.
8239 * arm-tdep.c (arm_gdbarch_init): Update.
8240 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8241 * alpha-tdep.c (alpha_gdbarch_init): Update.
8242
8243 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8244
8245 * signals/signals.c (do_target_signal_to_host): Correct realtime
8246 signal range test.
8247
8248 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8249
8250 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8251 (struct sal_chain, map_catch_names): Remove.
8252 (catch_exception_command_1): Don't call
8253 handle_gnu_4_16_catch_command.
8254
8255 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8256
8257 From Mark Dettinger <dettinge@de.ibm.com>:
8258 * dwarf2cfi.c (read_2u): Increment pointer by two.
8259
8260 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8261
8262 * signals/signals.c: Fix typos in last change.
8263
8264 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8265
8266 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8267 not already defined. Use __SIGRTMIN if available.
8268 (target_signal_from_host): Remove SIGRTMIN block.
8269 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8270 the signal is within the realtime range.
8271
8272 2003-03-25 Adam Fedor <fedor@gnu.org>
8273
8274 * Makefile.in (infrun.o): Add $(language_h)
8275 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8276 for language specific trampolines.
8277 * language.h (struct language_defn): Add skip_trampoline.
8278 (skip_language_trampoline): Declare.
8279 * language.c (unk_lang_trampoline, skip_language_trampoline):
8280 New functions.
8281 (unknown_language_defn, auto_language_defn, local_language_defn):
8282 Add ukn_lang_trampoline.
8283 * ada-lang.c (ada_language_defn): Add NULL for language
8284 specific skip_trampoline.
8285 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8286 scm-lang.c: Likewise.
8287 * objc-lang.c (objc_skip_trampoline): New function.
8288 (objc_language_defn): Add objc_skip_trampoline.
8289
8290 2003-03-25 Andrew Cagney <cagney@redhat.com>
8291
8292 * frame.c (get_prev_frame): Delay validating a frame's ID -
8293 non-NULL, didn't go backwards - until an attempt to unwind it to
8294 the previous frame.
8295
8296 2003-03-25 Andrew Cagney <cagney@redhat.com>
8297
8298 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8299 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8300 * gdbarch.h, gdbarch.c: Re-generate.
8301 * config/sparc/tm-sparc.h
8302 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8303 * sparc-tdep.c (sparc_gdbarch_init): Set
8304 deprecated_extra_stack_alignment_needed.
8305 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8306 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8307 extra_stack_alignment_needed.
8308 * v850-tdep.c (v850_gdbarch_init): Ditto.
8309 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8310 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8311 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8312 * cris-tdep.c (cris_gdbarch_init): Ditto.
8313 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8314 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8315
8316 2003-03-25 Andrew Cagney <cagney@redhat.com>
8317
8318 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8319 STORE_STRUCT_RETURN.
8320 * gdbarch.h, gdbarch.c: Regenerate.
8321 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8322 (d10v_push_arguments): Set the struct return register.
8323 (d10v_gdbarch_init): Update.
8324 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8325 * x86-64-tdep.c (x86_64_init_abi): Update.
8326 * vax-tdep.c (vax_gdbarch_init): Update.
8327 * v850-tdep.c (v850_gdbarch_init): Update.
8328 * sparc-tdep.c (sparc_gdbarch_init): Update.
8329 * sh-tdep.c (sh_gdbarch_init): Update.
8330 * s390-tdep.c (s390_gdbarch_init): Update.
8331 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8332 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8333 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8334 * mips-tdep.c (mips_gdbarch_init): Update.
8335 * mcore-tdep.c (mcore_gdbarch_init): Update.
8336 * m68k-tdep.c (m68k_gdbarch_init): Update.
8337 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8338 * ia64-tdep.c (ia64_gdbarch_init): Update.
8339 * i386-tdep.c (i386_gdbarch_init): Update.
8340 * hppa-tdep.c (hppa_gdbarch_init): Update.
8341 * h8300-tdep.c (h8300_gdbarch_init): Update.
8342 * frv-tdep.c (frv_gdbarch_init): Update.
8343 * cris-tdep.c (cris_gdbarch_init): Update.
8344 * avr-tdep.c (avr_gdbarch_init): Update.
8345 * arm-tdep.c (arm_gdbarch_init): Update.
8346 * alpha-tdep.c (alpha_gdbarch_init): Update.
8347
8348 2003-03-25 Andrew Cagney <cagney@redhat.com>
8349
8350 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8351 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8352 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8353 * gdbarch.h, gdbarch.c: Regenerate.
8354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8355 call_dummy_stack_adjust_p.
8356 * vax-tdep.c (vax_gdbarch_init): Ditto.
8357 * v850-tdep.c (v850_gdbarch_init): Ditto.
8358 * sh-tdep.c (sh_gdbarch_init): Ditto.
8359 * s390-tdep.c (s390_gdbarch_init): Ditto.
8360 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8361 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8362 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8363 * mips-tdep.c (mips_gdbarch_init): Ditto.
8364 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8365 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8367 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8368 * i386-tdep.c (i386_gdbarch_init): Ditto.
8369 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8370 * frv-tdep.c (frv_gdbarch_init): Ditto.
8371 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8372 * cris-tdep.c (cris_gdbarch_init): Ditto.
8373 * avr-tdep.c (avr_gdbarch_init): Ditto.
8374 * arm-tdep.c (arm_gdbarch_init): Ditto.
8375 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8376 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8377 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8378 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8379 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8380 call_dummy_stack_adjust_p.
8381 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8382 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8383 * sparc-tdep.c (sparc32_push_arguments): Update.
8384 * valops.c (hand_function_call): Update.
8385
8386 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8387
8388 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8389 set_gdbarch_char_signed.
8390
8391 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8392
8393 PR cli/548
8394 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8395
8396 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8397
8398 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8399 (_initialize_arm_tdep): Don't set tm_print_insn.
8400
8401 2003-03-24 Adam Fedor <fedor@gnu.org>
8402
8403 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8404 * objc-lang.h: Add multiple inclusion protection.
8405 (start_msglist, add_msglist, end_msglist): Additional declarations.
8406
8407 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8408
8409 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8410 value was renamed to ARM_FLOAT_SOFT_FPA.
8411
8412 2003-03-23 Andrew Cagney <cagney@redhat.com>
8413
8414 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8415 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8416 * gdbarch.h, gdbarch.c: Regenerate.
8417 * valops.c (hand_function_call): Update.
8418 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8419 * frame.c (legacy_saved_regs_this_id): Update.
8420 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8421 * dummy-frame.h: Update.
8422 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8423 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8424 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8425 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8426 * config/m68k/tm-sun3.h: Update.
8427 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8429 * x86-64-tdep.c (x86_64_init_abi): Update.
8430 * vax-tdep.c (vax_gdbarch_init): Update.
8431 * v850-tdep.c (v850_gdbarch_init): Update.
8432 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8433 * sh-tdep.c (sh_gdbarch_init): Update.
8434 * s390-tdep.c (s390_gdbarch_init): Update.
8435 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8436 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8437 (frame_get_saved_regs): Update.
8438 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8439 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8440 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8441 * mips-tdep.c (mips_gdbarch_init): Update.
8442 * mcore-tdep.c (mcore_gdbarch_init): Update.
8443 * m68k-tdep.c (m68k_gdbarch_init): Update.
8444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8445 * ia64-tdep.c (ia64_gdbarch_init): Update.
8446 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8447 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8448 (i386_interix_back_one_frame): Update.
8449 * hppa-tdep.c (hppa_gdbarch_init): Update.
8450 (hppa_init_extra_frame_info): Update.
8451 * h8300-tdep.c (h8300_gdbarch_init): Update.
8452 * frv-tdep.c (frv_gdbarch_init): Update.
8453 * cris-tdep.c (cris_gdbarch_init): Update.
8454 * avr-tdep.c (avr_gdbarch_init): Update.
8455 * arm-tdep.c (arm_gdbarch_init): Update.
8456 * alpha-tdep.c (alpha_gdbarch_init): Update.
8457
8458 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8459
8460 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8461 (arm_get_fp_model): Declare.
8462 * arm-tdep.c (fp_model_strings): New string array.
8463 (arm_fp_model, current_fp_model): New variables.
8464 (arm_get_fp_model): New function.
8465 (arm_set_fp): New function.
8466 (set_fp_model_sfunc): New function.
8467 (show_fp_model): New function.
8468 (_initialize_arm_tdep): Add new command to set/show the FPU.
8469 (arm_extract_return_value): Use arm_get_fp_model.
8470 (arm_store_return_value): Likewise.
8471 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8472 to initialize the floating-point data types.
8473 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8474 model is FPA.
8475
8476 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8477
8478 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8479 the current setting of each value.
8480 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8481 new_set and new_show. Use add_setshow_cmd_full and
8482 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8483 commands and add new version as subcommands of "set/show arm".
8484
8485 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8486
8487 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8488 (set_arm_command, show_arm_command): New functions.
8489 (_initialize_arm_tdep): Add them.
8490 (num_disassembly_options): Renamed from num_flavor_options.
8491 (valid_disassembly_styles): Renamed from valid_flavors.
8492 (disassembly_style): Renamed from disassembly_flavor.
8493 (set_disassembly_style_sfunc): Renamed from
8494 set_disassembly_flavor_sfunc.
8495 (set_disassembly_style): Renamed from set_disassembly_flavor.
8496 (arm_othernames): Updated.
8497 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8498 command. Add "set/show arm disassembly" commands. Deprecate
8499 "othernames" command.
8500
8501 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8502
8503 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8504 (arm-tdep.o): Depend on elf_arm_h.
8505
8506 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8507
8508 * Makefile.in (coff_internal_h): Define.
8509 (arm-tdep.o): Update dependencies.
8510
8511 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8512
8513 * arm-tdep.c (prologue_cache): Delete.
8514 (check_prologue_cache, save_prologue_cache): Delete.
8515 (arm_scan_prologue): Don't check or update the prologue_cache.
8516 (arm_gdb_arch_init): Don't initialize it.
8517 (_initialize_arm_tdep): Likewise.
8518
8519 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8520
8521 * MAINTAINERS (tui): Maintainer of tui code.
8522
8523 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8524
8525 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8526 (i386-cygwin-tdep.o): Add dependencies.
8527 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8528 * i386-cygwin-tdep.c: New file.
8529 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8530 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8531
8532 2003-03-20 Andrew Cagney <cagney@redhat.com>
8533
8534 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8535 (handle_inferior_event): Remove code calling
8536 DYNAMIC_TRAMPOLINE_NEXTPC.
8537
8538 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8539 already has a full path.
8540
8541 * main.c (gdb_main): Return 1.
8542 (captured_main): Call error to report an invalid interpreter.
8543
8544 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8545 * alpha-osf1-tdep.c: Include "gdb_string.h".
8546
8547 2003-03-19 J. Brobecker <brobecker@gnat.com>
8548
8549 Continuing work to convert the hppa targets to multiarch partial.
8550
8551 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8552 method, now that hppa_push_dummy_frame has a conformant prototype.
8553 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8554 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8555 for the switch to multiarch partial.
8556
8557 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8558
8559 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8560 when iss is issNull.
8561
8562 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8563
8564 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8565 NUM_REGS bounds check.
8566
8567 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8568
8569 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8570 * mips-tdep.c (gdb_assert.h): Include.
8571 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8572 (mips_register_name): Handle integer registers explicitly. Add
8573 bounds checking.
8574 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8575 (mips_lsi33k_reg_names): Don't list integer registers; they're
8576 handled by mips_register_name() now.
8577 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8578 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8579 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8580 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8581 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8582
8583 2003-03-18 Andrew Cagney <cagney@redhat.com>
8584
8585 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8586 a void pointer.
8587 * gdbtypes.h (print_scalar_formatted): Update declaration.
8588 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8589
8590 2003-03-18 J. Brobecker <brobecker@gnat.com>
8591
8592 * infrun.c (observer.h): Add #include.
8593 (normal_stop): Add call to observer_notify_normal_stop.
8594 * Makefile.in (infrun.o): Add dependency on observer.h.
8595
8596 2003-03-18 J. Brobecker <brobecker@gnat.com>
8597
8598 Continuing work to convert the hppa targets to multiarch partial.
8599 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8600 parameter. Reformat comment.
8601 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8602 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8603 to match new profile.
8604
8605 2003-03-18 J. Brobecker <brobecker@gnat.com>
8606
8607 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8608 appear to be working in any case.
8609
8610 2003-03-18 J. Brobecker <brobecker@gnat.com>
8611
8612 * observer.c (observer_test_first_observer): New static variable.
8613 (observer_test_second_observer): Likewise.
8614 (observer_test_third_observer): Likewise.
8615 (observer_test_first_notification_function): New static function.
8616 (observer_test_second_notification_function): Likewise.
8617 (observer_test_third_notification_function): Likewise.
8618
8619 2003-03-17 J. Brobecker <brobecker@gnat.com>
8620
8621 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8622 * somsolib.c (gdb_assert.h): Likewise.
8623 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8624 (somsolib.o): Likewise.
8625
8626 2003-03-17 Andrew Cagney <cagney@redhat.com>
8627
8628 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8629 BFD. Simplify setting of di.endian.
8630
8631 2003-03-17 Andrew Cagney <cagney@redhat.com>
8632
8633 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8634 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8635
8636 From Elena Zannoni <ezannoni@redhat.com>
8637 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8638 vector and floating-point parameters.
8639 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8640 convention.
8641 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8642
8643 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8644
8645 * MAINTAINERS: Remove my name from several maintainership roles.
8646
8647 2003-03-17 Andrew Cagney <cagney@redhat.com>
8648
8649 Fix frame off-by-one bug.
8650 * frame-unwind.h (frame_this_id_ftype): Replace
8651 frame_unwind_id_ftype.
8652 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8653 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8654 with "prev_register".
8655 * frame-unwind.c (frame_unwind_find_by_pc): Return
8656 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8657 comment.
8658 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8659 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8660 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8661 (dummy_frame_unwind): Update.
8662 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8663 sentinel_frame_register_unwind.
8664 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8665 (sentinel_frame_unwinder): Update.
8666 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8667 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8668 * frame.c (create_sentinel_frame): Update. Initialize
8669 "prologue_cache" instead of "unwind_cache".
8670 (frame_register_unwind): Call this frame's prev_register with the
8671 next frame and this frame's prologue cache.
8672 (get_prev_frame): Simplify. Always call prev frame's this_id with
8673 this frame and prev frame's prologue cache. Document that this
8674 call is shifted one to the left when compared to the
8675 frame_register_unwind call.
8676 (legacy_saved_regs_prev_register): Replace
8677 frame_saved_regs_register_unwind.
8678 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8679 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8680 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8681 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8682 (d10v_frame_unwind): Update.
8683 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8684 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8685 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8686 "saved_regs" with "this_saved_regs".
8687
8688 2003-03-16 Andrew Cagney <cagney@redhat.com>
8689
8690 * frame.c (frame_pop): Don't call target_store_registers. Fix
8691 problem reported by Mark Kettenis.
8692
8693 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8694
8695 * i386-tdep.c (i386_register_type): Renamed from
8696 i386_register_virtual_type. Adjust function signature.
8697 (i386_gdbarch_init): Set register_type instead of
8698 deprecated_max_register_raw_size,
8699 deprecated_max_register_virtual_size and register_virtual_type.
8700
8701 2003-03-14 Andrew Cagney <cagney@redhat.com>
8702
8703 * frame.c (get_prev_frame): When a legacy frame, always call
8704 legacy_get_prev_frame. Simplify unwind code using assumption that
8705 the unwinder is new.
8706 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8707 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8708 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8709
8710 2003-03-14 Andrew Cagney <cagney@redhat.com>
8711
8712 * frame.c (get_saved_register): Delete function.
8713 * frame.h (get_saved_register): Delete declaration.
8714 * xstormy16-tdep.c: Update comment.
8715 * regcache.h: Update comments.
8716 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8717 get_saved_register and extract_address, use
8718 frame_read_unsigned_register.
8719 (sparc_frame_saved_pc): Ditto.
8720 (sparc_get_saved_register): Instead of get_saved_register, use
8721 frame_register.
8722 (sparc_pop_frame): Ditto.
8723 * findvar.c: Update comments.
8724 (value_of_register): Call frame_register instead of
8725 get_saved_register.
8726 (value_from_register): Ditto.
8727 * config/sparc/tm-sparc.h: Update comment.
8728 * breakpoint.c: Update comment.
8729
8730 2003-03-14 Andrew Cagney <cagney@redhat.com>
8731
8732 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8733 GET_SAVED_REGISTER.
8734 * gdbarch.h, gdbarch.c: Re-generate.
8735 * frame.h: Update comments.
8736 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8737 * x86-64-tdep.c (x86_64_init_abi): Update.
8738 * sparc-tdep.c (sparc_gdbarch_init): Update.
8739 * sh-tdep.c (sh_gdbarch_init): Update.
8740 * mips-tdep.c (mips_gdbarch_init): Update.
8741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8742 * cris-tdep.c (cris_gdbarch_init): Update.
8743 * ia64-tdep.c (ia64_gdbarch_init): Update.
8744 * frame.c (frame_register): Update.
8745 (get_saved_register): Update.
8746 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8747
8748 2003-03-13 Andrew Cagney <cagney@redhat.com>
8749
8750 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8751 * gdbarch.h, gdbarch.c: Regenerate.
8752 * valops.c (hand_function_call): Update comment.
8753 * stack.c (return_command): Update comment.
8754 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8755 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8756 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8757 * x86-64-tdep.c (x86_64_init_abi): Update.
8758 * vax-tdep.c (vax_gdbarch_init): Update.
8759 * v850-tdep.c (v850_gdbarch_init): Update.
8760 * sparc-tdep.c (sparc_gdbarch_init): Update.
8761 * sh-tdep.c (sh_gdbarch_init): Update.
8762 * s390-tdep.c (s390_gdbarch_init): Update.
8763 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8764 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8765 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8766 * mips-tdep.c (mips_gdbarch_init): Update.
8767 * mcore-tdep.c (mcore_gdbarch_init): Update.
8768 * m68k-tdep.c (m68k_gdbarch_init): Update.
8769 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8770 * ia64-tdep.c (ia64_gdbarch_init): Update.
8771 * i386-tdep.c (i386_gdbarch_init): Update.
8772 * hppa-tdep.c (hppa_gdbarch_init): Update.
8773 * h8300-tdep.c (h8300_gdbarch_init): Update.
8774 * frv-tdep.c (frv_gdbarch_init): Update.
8775 * cris-tdep.c (cris_gdbarch_init): Update.
8776 * avr-tdep.c (avr_gdbarch_init): Update.
8777 * arm-tdep.c (arm_gdbarch_init): Update.
8778 * alpha-tdep.c (alpha_gdbarch_init): Update.
8779
8780 2003-03-13 Andrew Cagney <cagney@redhat.com>
8781
8782 * frame.c (legacy_frame_p): New function.
8783 (get_prev_frame): Use legacy_frame_p.
8784 * frame.h (legacy_frame_p): Declare.
8785
8786 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8787
8788 * MAINTAINERS (write after approval): Alphabetically
8789 listing corrected.
8790
8791 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8792
8793 * MAINTAINERS (write after approval): Add myself.
8794
8795 2003-03-12 Andrew Cagney <cagney@redhat.com>
8796
8797 * frame.c (get_prev_frame): Rename the frame parameter to
8798 "this_frame".
8799 (get_next_frame, legacy_get_prev_frame): Ditto.
8800
8801 2003-03-12 Andrew Cagney <cagney@redhat.com>
8802
8803 * frame.c (get_current_frame): Check target_has_registers before
8804 checking target_has_stack.
8805 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8806 instead of deprecated_selected_frame.
8807 * findvar.c (value_of_register): Pass "frame", not
8808 deprecated_selected_frame, to value_of_builtin_reg.
8809
8810 2003-03-12 Andrew Cagney <cagney@redhat.com>
8811
8812 * regcache.c (regcache_cooked_write_signed): New function.
8813 (regcache_cooked_write_unsigned): New function.
8814 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8815 (regcache_cooked_read_signed): Fix regnum in range assertion.
8816 * regcache.h (regcache_cooked_write_signed): Declare.
8817 (regcache_cooked_write_unsigned): Declare.
8818
8819 2003-03-12 Andrew Cagney <cagney@redhat.com>
8820
8821 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8822 * gdbarch.h, gdbarch.c: Re-generate.
8823 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8824 * x86-64-tdep.h: Update.
8825 * x86-64-tdep.c (x86_64_init_abi): Update.
8826 * v850-tdep.c (v850_gdbarch_init): Update.
8827 * sparc-tdep.c (sparc_gdbarch_init): Update.
8828 * sh-tdep.c (sh_gdbarch_init): Update.
8829 * s390-tdep.c (s390_gdbarch_init): Update.
8830 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8831 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8832 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8833 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8834 * mips-tdep.c (mips_gdbarch_init): Update.
8835 * mcore-tdep.c (mcore_gdbarch_init): Update.
8836 * m68k-tdep.c (m68k_gdbarch_init): Update.
8837 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8838 * ia64-tdep.c (ia64_gdbarch_init): Update.
8839 * i386-tdep.c (i386_gdbarch_init): Update.
8840 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8841 * hppa-tdep.c (hppa_gdbarch_init): Update.
8842 * h8300-tdep.c (h8300_gdbarch_init): Update.
8843 * frv-tdep.c (frv_gdbarch_init): Update.
8844 * cris-tdep.c (cris_gdbarch_init): Update.
8845 * avr-tdep.c (avr_gdbarch_init): Update.
8846 * arm-tdep.c (arm_gdbarch_init): Update.
8847 * alpha-tdep.c (alpha_gdbarch_init): Update.
8848 * sh-tdep.c (sh_init_extra_frame_info): Update.
8849 (sh64_init_extra_frame_info): Update.
8850 * ns32knbsd-nat.c (frame_num_args): Update.
8851 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8852 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8853 (xstormy16_frame_chain_valid): Update.
8854 * vax-tdep.c (vax_saved_pc_after_call): Update.
8855 * v850-tdep.c (v850_frame_chain): Update.
8856 (v850_pop_frame): Update.
8857 (v850_init_extra_frame_info): Update.
8858 * sparc-tdep.c (setup_arbitrary_frame): Update.
8859 * ns32k-tdep.c (umax_frame_num_args): Update.
8860 * s390-tdep.c (s390_pop_frame_regular): Update.
8861 * mn10300-tdep.c (mn10300_frame_chain): Update.
8862 (mn10300_pop_frame_regular): Update.
8863 (mn10300_init_extra_frame_info): Update.
8864 * mips-tdep.c (mips_init_frame_pc_first): Update.
8865 (mips_frame_chain): Update.
8866 (mips_pop_frame): Update.
8867 * mcore-tdep.c (mcore_frame_chain): Update.
8868 (mcore_pop_frame): Update.
8869 (mcore_init_extra_frame_info): Update.
8870 * arch-utils.c (init_frame_pc_default): Update.
8871 * m68k-tdep.c (isi_frame_num_args): Update.
8872 (delta68_frame_num_args): Update.
8873 (news_frame_num_args): Update.
8874 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8875 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8876 (alpha_frame_chain): Update.
8877 (alpha_pop_frame): Update.
8878 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8879 (hppa_init_extra_frame_info): Update.
8880 (hppa_frame_chain): Update.
8881 (hppa_frame_chain_valid): Update.
8882 * cris-tdep.c (cris_init_extra_frame_info): Update.
8883 * avr-tdep.c (avr_init_extra_frame_info): Update.
8884 * arm-tdep.c (arm_frame_chain_valid): Update.
8885 (arm_init_extra_frame_info): Update.
8886 (arm_pop_frame): Update.
8887 * frame.c (frame_pc_unwind): Update.
8888 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8889 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8890 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8891 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8892 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8893 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8894
8895 2003-03-12 Andrew Cagney <cagney@redhat.com>
8896
8897 Eliminate the need for POP_FRAME.
8898 * frame.c (do_frame_unwind_register): New function.
8899 (frame_pop): When no POP_FRAME, pop the frame using register
8900 unwind and a scratch regcache.
8901 (frame_saved_regs_pop): Delete function.
8902 (trad_frame_unwinder): Update.
8903 * d10v-tdep.c (d10v_frame_pop): Delete function.
8904 (d10v_frame_unwind): Update.
8905 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8906 (sentinel_frame_unwinder): Update.
8907 * dummy-frame.c (dummy_frame_pop): Delete function.
8908 (dummy_frame_unwind): Update.
8909 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8910 (struct frame_unwind): Update.
8911
8912 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8913
8914 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8915 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8916 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8917 Do range checks on register number obtained from debugging info.
8918 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8919 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8920 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8921 mapping function.
8922 (do_fp_register_row): Fix typo which caused double type to be
8923 used when attempting to unpack a float.
8924
8925 2003-03-11 J. Brobecker <brobecker@gnat.com>
8926
8927 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8928
8929 2003-03-11 Andrew Cagney <cagney@redhat.com>
8930
8931 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8932 frame. Problem found by Corinna Vinschen.
8933
8934 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8935
8936 * doublest.c (floatformat_from_length): Accept also
8937 the real size of 'long double' type.
8938
8939 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8940
8941 From Klee Dienes <kdienes@apple.com>:
8942 * breakpoint.c (bpstat_copy): Copy the command lines as well
8943 as the old value, to match what is freed in bpstat_clear.
8944
8945 2003-03-10 David Carlton <carlton@math.stanford.edu>
8946
8947 * minsyms.c (add_minsym_to_hash_table): Replace
8948 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8949 (compare_minimal_symbols, compact_minimal_symbols)
8950 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8951 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8952 of DEPRECATED_SYMBOL_MATCHES_NAME.
8953 (lookup_minimal_symbol_solib_trampoline): Ditto.
8954
8955 2003-03-10 Andrew Cagney <cagney@redhat.com>
8956
8957 * regcache.h (regcache_cooked_read_ftype): Define.
8958 (regcache_save, regcache_restore): Add a cooked_read parameter.
8959 * regcache.c (regcache_save, regcache_restore): Update.
8960 (do_cooked_read): New function.
8961 (regcache_cpy): Pass do_cooked_read to regcache_save and
8962 regcache_restore.
8963
8964 2003-03-10 Andrew Cagney <cagney@redhat.com>
8965
8966 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8967 * gdbarch.h, gdbarch.c: Re-generate.
8968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8969 * x86-64-tdep.h: Update.
8970 * x86-64-tdep.c (x86_64_init_abi): Update.
8971 * v850-tdep.c (v850_gdbarch_init): Update.
8972 * sparc-tdep.c (sparc_gdbarch_init): Update.
8973 * sh-tdep.c (sh_gdbarch_init): Update.
8974 * s390-tdep.c (s390_gdbarch_init): Update.
8975 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8976 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8977 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8978 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8979 * mips-tdep.c (mips_gdbarch_init): Update.
8980 * mcore-tdep.c (mcore_gdbarch_init): Update.
8981 * m68k-tdep.c (m68k_gdbarch_init): Update.
8982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8983 * ia64-tdep.c (ia64_gdbarch_init): Update.
8984 * i386-tdep.c (i386_gdbarch_init): Update.
8985 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8986 * hppa-tdep.c (hppa_gdbarch_init): Update.
8987 * h8300-tdep.c (h8300_gdbarch_init): Update.
8988 * frv-tdep.c (frv_gdbarch_init): Update.
8989 * cris-tdep.c (cris_gdbarch_init): Update.
8990 * avr-tdep.c (avr_gdbarch_init): Update.
8991 * arm-tdep.c (arm_gdbarch_init): Update.
8992 * alpha-tdep.c (alpha_gdbarch_init): Update.
8993 * sh-tdep.c (sh_init_extra_frame_info): Update.
8994 (sh64_init_extra_frame_info): Update.
8995 * ns32knbsd-nat.c (frame_num_args): Update.
8996 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8997 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8998 (xstormy16_frame_chain_valid): Update.
8999 * vax-tdep.c (vax_saved_pc_after_call): Update.
9000 * v850-tdep.c (v850_frame_chain): Update.
9001 (v850_pop_frame): Update.
9002 (v850_init_extra_frame_info): Update.
9003 * sparc-tdep.c (setup_arbitrary_frame): Update.
9004 * ns32k-tdep.c (umax_frame_num_args): Update.
9005 * s390-tdep.c (s390_pop_frame_regular): Update.
9006 * mn10300-tdep.c (mn10300_frame_chain): Update.
9007 (mn10300_pop_frame_regular): Update.
9008 (mn10300_init_extra_frame_info): Update.
9009 * mips-tdep.c (mips_init_frame_pc_first): Update.
9010 (mips_frame_chain): Update.
9011 (mips_pop_frame): Update.
9012 * mcore-tdep.c (mcore_frame_chain): Update.
9013 (mcore_pop_frame): Update.
9014 (mcore_init_extra_frame_info): Update.
9015 * arch-utils.c (init_frame_pc_default): Update.
9016 * m68k-tdep.c (isi_frame_num_args): Update.
9017 (delta68_frame_num_args): Update.
9018 (news_frame_num_args): Update.
9019 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9020 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9021 (alpha_frame_chain): Update.
9022 (alpha_pop_frame): Update.
9023 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9024 (hppa_init_extra_frame_info): Update.
9025 (hppa_frame_chain): Update.
9026 (hppa_frame_chain_valid): Update.
9027 * cris-tdep.c (cris_init_extra_frame_info): Update.
9028 * avr-tdep.c (avr_init_extra_frame_info): Update.
9029 * arm-tdep.c (arm_frame_chain_valid): Update.
9030 (arm_init_extra_frame_info): Update.
9031 (arm_pop_frame): Update.
9032 * frame.c (frame_pc_unwind): Update.
9033 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9034 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9035 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9036 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9037 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9038 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9039
9040 2003-03-10 Andrew Cagney <cagney@redhat.com>
9041
9042 * gdbarch.sh (gdbarch_unwind_pc): New method.
9043 * gdbarch.h, gdbarch.c: Regenerate.
9044 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9045 but use read_pc and FRAME_SAVED_PC as fall backs.
9046 (frame_saved_regs_pc_unwind): Delete function.
9047 (trad_frame_unwinder): Update.
9048 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9049 (struct frame_unwind): Update.
9050 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9051 (dummy_frame_unwind): Update.
9052 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9053 (sentinel_frame_unwinder): Update.
9054 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9055 (d10v_frame_unwind): Update.
9056 (d10v_unwind_pc): New function.
9057 (d10v_gdbarch_init): Set unwind_pc.
9058
9059 2003-03-10 Andrew Cagney <cagney@redhat.com>
9060
9061 * gdbarch.h: Re-generate.
9062
9063 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9064 PC.
9065 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9066 the PC register.
9067
9068 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9069
9070 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9071
9072 2003-03-08 Andrew Cagney <cagney@redhat.com>
9073
9074 * cli-out.c: Update copyright.
9075 (cli_out_data): Define typedef. Use instead of ui_out_data.
9076
9077 2003-03-08 Andrew Cagney <cagney@redhat.com>
9078
9079 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9080 the result.
9081
9082 2003-03-07 Andrew Cagney <cagney@redhat.com>
9083
9084 * gdbarch.sh: Don't generate two macro definitions when an
9085 undefined macro taking no arguments.
9086 * gdbarch.h: Regenerate.
9087
9088 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9089
9090 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9091 (x86_64_unwind_dummy_id): New functions.
9092 (x86_64_init_abi): Register these two new functions.
9093
9094 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9095
9096 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9097 (x86_64_skip_prologue): Move prologue detection to
9098 separate function.
9099 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9100
9101 2003-03-05 Andrew Cagney <cagney@redhat.com>
9102
9103 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9104 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9105 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9106 to use unwind_dummy_id when a dummy frame.
9107 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9108 predicate.
9109 * gdbarch.h, gdbarch.c: Regneerate.
9110
9111 2003-03-05 Andrew Cagney <cagney@redhat.com>
9112
9113 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9114 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9115 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9116 values.
9117
9118 2003-03-05 Andrew Cagney <cagney@redhat.com>
9119
9120 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9121 (struct d10v_unwind_cache): Delete field "frameless". Replace
9122 "next_addr" with "sp_offset". Add "r11_offset".
9123 (d10v_frame_unwind_cache): Update.
9124 (prologue_find_regs): Update. When "mv r11, sp", save the
9125 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9126 RN was saved in r11_offset.
9127
9128 2003-03-05 Andrew Cagney <cagney@redhat.com>
9129
9130 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9131 cached PC value in the next frame.
9132
9133 2003-03-05 Andrew Cagney <cagney@redhat.com>
9134
9135 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9136 "id_unwind_cache" with "id".
9137 (frame_id_unwind): Delete declaration.
9138 * frame.c (frame_id_unwind): Delete function.
9139 (get_prev_frame): Call the frame id unwind method directly. Store
9140 the returned next frame's ID value in NEXT_FRAME. Note that there
9141 is a problem with the wrong unwind ID being called with the wrong
9142 unwind cache.
9143
9144 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9145
9146 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9147
9148 2003-03-05 James Ingham <jingham@apple.com>
9149 Daniel Jacobowitz <drow@mvista.com>
9150
9151 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9152 (auto_cp_abi): New variable.
9153 (current_cp_abi, num_cp_abis): Make static.
9154 (CP_ABI_MAX): Define.
9155 (cp_abis): Turn into an array.
9156 (value_virtual_fn_field): Fix formatting.
9157 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9158 takes a pointer.
9159 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9160 (list_cp_abis, _initialize_cp_abi): New functions.
9161 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9162 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9163 switch_to_cp_abi. Update prototype for register_cp_abi.
9164 * Makefile.in (cp-abi.o): Update dependencies.
9165 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9166 instead of switch_to_cp_abi.
9167 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9168 register_cp_abi.
9169 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9170 register_cp_abi.
9171 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9172
9173 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9174
9175 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9176 * dwarf2loc.c: Include "regcache.h".
9177 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9178 register_size.
9179 * Makefile.in (dwarf2loc.o): Update dependencies.
9180
9181 2003-03-04 Theodore A. Roth <troth@openavr.org>
9182
9183 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9184 number of io registers reported by remote target is not a multiple of
9185 step.
9186
9187 2003-03-04 David Carlton <carlton@math.stanford.edu>
9188
9189 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9190 (lookup_symbol_aux_psymtabs): Update call to
9191 lookup_partial_symbol.
9192 (lookup_transparent_type, find_main_psymtab)
9193 (make_symbol_overload_list): Ditto.
9194
9195 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9196
9197 * MAINTAINERS (Write after approval): Update my email address.
9198
9199 2003-03-03 Andrew Cagney <cagney@redhat.com>
9200
9201 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9202 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9203 predicate. Replace MAX_REGISTER_RAW_SIZE.
9204 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9205 MAX_REGISTER_VIRTUAL_SIZE.
9206 * regcache.c (legacy_max_register_raw_size): New function.
9207 (legacy_max_register_virtual_size): New function.
9208 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9209 (MAX_REGISTER_RAW_SIZE): Define.
9210 (legacy_max_register_raw_size): Declare.
9211 (legacy_max_register_virtual_size): Declare.
9212 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9213 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9214 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9215 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9216 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9217 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9218 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9219 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9220 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9222 * vax-tdep.c (vax_gdbarch_init): Update.
9223 * v850-tdep.c (v850_gdbarch_init): Update.
9224 * sparc-tdep.c (sparc_gdbarch_init): Update.
9225 * sh-tdep.c (sh_gdbarch_init): Update.
9226 * s390-tdep.c (s390_gdbarch_init): Update.
9227 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9228 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9229 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9230 * mips-tdep.c (mips_gdbarch_init): Update.
9231 * mcore-tdep.c (mcore_gdbarch_init): Update.
9232 * m68k-tdep.c (m68k_gdbarch_init): Update.
9233 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9234 * ia64-tdep.c (ia64_gdbarch_init): Update.
9235 * i386-tdep.c (i386_gdbarch_init): Update.
9236 * hppa-tdep.c (hppa_gdbarch_init): Update.
9237 * h8300-tdep.c (h8300_gdbarch_init): Update.
9238 * frv-tdep.c (frv_gdbarch_init): Update.
9239 * cris-tdep.c (cris_gdbarch_init): Update.
9240 * avr-tdep.c (avr_gdbarch_init): Update.
9241 * arm-tdep.c (arm_gdbarch_init): Update.
9242 * alpha-tdep.c (alpha_gdbarch_init): Update.
9243 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9244 max_register_raw_size or max_register_virtual_size.
9245
9246 2003-03-03 David Carlton <carlton@math.stanford.edu>
9247
9248 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9249 SYMBOL_MATCHES_NAME, add comment.
9250 (SYMBOL_MATCHES_NATURAL_NAME): New.
9251 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9252 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9253 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9254 * symtab.c (lookup_partial_symbol): Use
9255 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9256 unhelpful comment.
9257 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9258 SYMBOL_MATCHES_NAME.
9259 Fix for PR c++/33.
9260
9261 2003-03-03 David Carlton <carlton@math.stanford.edu>
9262
9263 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9264 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9265 by regexp matching against SYMBOL_NATURAL_NAME.
9266
9267 2003-03-03 David Carlton <carlton@math.stanford.edu>
9268
9269 * linespec.c (find_method): Extract code into collect_methods.
9270 (collect_methods): New.
9271
9272 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9273
9274 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9275 get_frame_base.
9276
9277 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9278 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9279
9280 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9281
9282 * arch-utils.c (generic_register_byte): Fix to use the loop index
9283 and not regnum when summing the size of all registers up to regnum.
9284
9285 2003-03-01 Andrew Cagney <cagney@redhat.com>
9286
9287 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9288 FRAME_INIT_SAVED_REGS.
9289 * gdbarch.h, gdbarch.c: Regenerate.
9290 * stack.c (frame_info): Update.
9291 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9292 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9293 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9294 * ns32k-tdep.c (ns32k_pop_frame): Update.
9295 * mips-tdep.c (mips_pop_frame): Update.
9296 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9297 * ia64-tdep.c (ia64_frame_chain): Update.
9298 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9299 (ia64_frameless_function_invocation): Update.
9300 (ia64_init_extra_frame_info): Update.
9301 (ia64_pop_frame_regular): Update.
9302 * frame.h (struct frame_info): Update comment.
9303 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9304 * frame.c (frame_saved_regs_register_unwind): Update.
9305 (frame_saved_regs_register_unwind): Update.
9306 (deprecated_generic_get_saved_register): Update.
9307 * cris-tdep.c: Update comment.
9308 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9309 Rename macro.
9310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9311 * x86-64-tdep.c (x86_64_init_abi): Update.
9312 * vax-tdep.c (vax_gdbarch_init): Update.
9313 * v850-tdep.c (v850_gdbarch_init): Update.
9314 * sparc-tdep.c (sparc_gdbarch_init): Update.
9315 * sh-tdep.c (sh_gdbarch_init): Update.
9316 * s390-tdep.c (s390_gdbarch_init): Update.
9317 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9318 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9319 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9320 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9321 * mips-tdep.c (mips_gdbarch_init): Update.
9322 * mcore-tdep.c (mcore_gdbarch_init): Update.
9323 * m68k-tdep.c (m68k_gdbarch_init): Update.
9324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9325 * ia64-tdep.c (ia64_gdbarch_init): Update.
9326 * i386-tdep.c (i386_gdbarch_init): Update.
9327 * frv-tdep.c (frv_gdbarch_init): Update.
9328 * avr-tdep.c (avr_gdbarch_init): Update.
9329 * arm-tdep.c (arm_gdbarch_init): Update.
9330 * alpha-tdep.c (alpha_gdbarch_init): Update.
9331
9332 2003-03-01 Andrew Cagney <cagney@redhat.com>
9333
9334 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9335 option enum and switch. When no windows, set the interpreter to
9336 INTERP_CONSOLE.
9337
9338 2003-03-01 Andrew Cagney <cagney@redhat.com>
9339
9340 * main.c (captured_main): Replace magic option characters with an
9341 enum.
9342
9343 2003-03-01 Andrew Cagney <cagney@redhat.com>
9344
9345 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9346 INIT_EXTRA_FRAME_INFO.
9347 * gdbarch.h, gdbarch.c: Regenerate.
9348 * arm-tdep.c: Update comments.
9349 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9350 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9351 * frame.h, avr-tdep.c: Ditto.
9352 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9353 (create_new_frame, legacy_get_prev_frame): Ditto.
9354 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9355 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9357 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9358 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9359 * v850-tdep.c (v850_gdbarch_init): Ditto.
9360 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9361 * sh-tdep.c (sh_gdbarch_init): Ditto.
9362 * s390-tdep.c (s390_gdbarch_init): Ditto.
9363 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9364 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9365 * mips-tdep.c (mips_gdbarch_init): Ditto.
9366 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9368 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9369 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9370 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9371 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9372 * frv-tdep.c (frv_gdbarch_init): Ditto.
9373 * cris-tdep.c (cris_gdbarch_init): Ditto.
9374 * avr-tdep.c (avr_gdbarch_init): Ditto.
9375 * arm-tdep.c (arm_gdbarch_init): Ditto.
9376 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9377 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9378
9379 2003-03-01 Andrew Cagney <cagney@redhat.com>
9380
9381 * gdbarch.sh (register_type): New function with predicate.
9382 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9383 * gdbarch.h, gdbarch.c: Re-generate.
9384 * arch-utils.c (generic_register_byte): Use generic_register_size.
9385 (generic_register_size): When available, use
9386 gdbarch_register_type.
9387 * regcache.c (init_regcache_descr): When available, initialize the
9388 register type array using gdbarch_register_type. If the
9389 architecture supplies gdbarch_register_type, do not use the legacy
9390 regcache layout.
9391 * d10v-tdep.c (d10v_register_type): Replace
9392 d10v_register_virtual_type.
9393 (d10v_gdbarch_init): Set register_type instead of
9394 register_virtual_type.
9395
9396 2003-03-01 Andrew Cagney <cagney@redhat.com>
9397
9398 * Makefile.in (ax-gdb.o): Update dependencies.
9399 * ax-gdb.c: Include "regcache.h".
9400 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9401 * findvar.c (value_of_register): Ditto.
9402 * infcmd.c (default_print_registers_info): Ditto.
9403
9404 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9405
9406 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9407 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9408
9409 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9410
9411 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9412 of STREQ.
9413
9414 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9415
9416 * Makefile.in (dwarf2loc.o): Update dependencies.
9417 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9418 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9419 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9420 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9421 (locexpr_tracepoint_var_ref): New function.
9422 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9423
9424 2003-02-28 Andrew Cagney <cagney@redhat.com>
9425
9426 * regcache.c (register_size): New function.
9427 * regcache.h (register_size): Declare
9428 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9429 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9430
9431 2003-02-28 David Carlton <carlton@math.stanford.edu>
9432
9433 * linespec.c (decode_compound): Extract code into find_method.
9434 (find_method): New.
9435
9436 2003-02-28 J. Brobecker <brobecker@gnat.com>
9437
9438 * Makefile.in: Add rules to build and link in observer.o.
9439
9440 2003-02-27 J. Brobecker <brobecker@gnat.com>
9441
9442 * observer.c: Minor comments edits.
9443
9444 2003-02-27 J. Brobecker <brobecker@gnat.com>
9445
9446 * observer.h, observer.c: New file.
9447
9448 2003-02-27 Andrew Cagney <cagney@redhat.com>
9449
9450 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9451
9452 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9453
9454 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9455 (M6812_OP_STS_EXT): Likewise.
9456 (m6811_prologue): Use the above to recognize prologue.
9457 (m6812_prologue): Likewise.
9458
9459 2003-02-27 David Carlton <carlton@math.stanford.edu>
9460
9461 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9462 SYMBOL_PRINT_NAME.
9463 (compare_psymbols): Ditto.
9464 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9465
9466 2003-02-27 Michael Snyder <msnyder@redhat.com>
9467
9468 * f-lang.c (build_fortran_types): New function.
9469 (_initialize_f_language): Gdbarch-register built-in fortran types.
9470 * doublest.c (extract_floating): Fix warning text.
9471
9472 2003-02-27 Andrew Cagney <cagney@redhat.com>
9473
9474 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9475 predicate. Replaces PUSH_DUMMY_FRAME.
9476 * gdbarch.h, gdbarch.c: Regnerate.
9477 * valops.c (hand_function_call): Update. Call
9478 generic_push_dummy_frame directly.
9479 * vax-tdep.c (vax_gdbarch_init): Update.
9480 * sparc-tdep.c (sparc_gdbarch_init): Update.
9481 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9482 * m68k-tdep.c (m68k_gdbarch_init): Update.
9483 * hppa-tdep.c (hppa_gdbarch_init): Update.
9484 * alpha-tdep.c (alpha_gdbarch_init): Update.
9485 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9486 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9487 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9488 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9489 push_dummy_frame to generic_push_dummy_frame.
9490 * v850-tdep.c (v850_gdbarch_init): Ditto.
9491 * sh-tdep.c (sh_gdbarch_init): Ditto.
9492 * s390-tdep.c (s390_gdbarch_init): Ditto.
9493 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9494 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9495 * mips-tdep.c (mips_gdbarch_init): Ditto.
9496 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9498 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9499 * i386-tdep.c (i386_gdbarch_init): Ditto.
9500 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9501 * frv-tdep.c (frv_gdbarch_init): Ditto.
9502 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9503 * cris-tdep.c (cris_gdbarch_init): Ditto.
9504 * avr-tdep.c (avr_gdbarch_init): Ditto.
9505 * arm-tdep.c (arm_gdbarch_init): Ditto.
9506
9507 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9508
9509 * mips-tdep.c (show_mips_abi): New function.
9510 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9511 command ``show mips abi''.
9512
9513 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9514
9515 From Elena Zannoni <ezannoni@redhat.com>
9516 * dbxread.c (process_one_symbol): Only record line 0 if one or
9517 more sline entries have been seen for the function.
9518
9519 2003-02-26 Michael Chastain <mec@shout.net>
9520
9521 * configure: Regenerate with autoconf 000227.
9522
9523 2003-02-26 Michael Chastain <mec@shout.net>
9524
9525 Close PR build/660.
9526 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9527 for old libc5/glibc.
9528 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9529
9530 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9531
9532 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9533 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9534
9535 2003-02-26 Michael Chastain <mec@shout.net>
9536
9537 * configure.in: New variable HAVE_UINTPTR_T.
9538 * configure, config.in: Regenerated.
9539
9540 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9541
9542 Fix PR build/1097.
9543 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9544
9545 2003-02-25 Andrew Cagney <cagney@redhat.com>
9546
9547 * frame.c (get_prev_frame): Add comment on check for
9548 inside_entry_func. Only check for inside_entry_file when not a
9549 dummy and not a sentinel. Check that the new frame is not inner
9550 to the old frame.
9551
9552 2003-02-25 Andrew Cagney <cagney@redhat.com>
9553
9554 * frame.c (frame_debug): New variable.
9555 (_initialize_frame): Add "set/show debug frame" command.
9556 (get_prev_frame): When frame_debug, print reason why unwind
9557 failed.
9558
9559 2003-02-25 Michael Chastain <mec@shout.net>
9560
9561 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9562 to avoid uintptr_t definition problems.
9563
9564 2003-02-25 David Carlton <carlton@math.stanford.edu>
9565
9566 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9567 (SYMBOL_LINKAGE_NAME): Ditto.
9568 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9569 SYMBOL_LINKAGE_NAME.
9570 (struct general_symbol_info): Expand comment.
9571 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9572 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9573 (SYMBOL_MATCHES_REGEXP): Ditto.
9574 * symtab.c (symbol_natural_name): New function.
9575 * objfiles.h: Replace all uses of SYMBOL_NAME by
9576 DEPRECATED_SYMBOL_NAME.
9577 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9578 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9579 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9580 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9581 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9582 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9583 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9584 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9585 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9586 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9587 * ada-exp.y: Ditto.
9588 * ada-exp.y: Update copyright.
9589 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9590 * cp-valprint.c: Ditto.
9591
9592 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9593
9594 * infptrace.c (detach): Do not flag error if ptrace detach fails
9595 and errno is set to ESRCH.
9596
9597 2003-02-24 Andrew Cagney <cagney@redhat.com>
9598
9599 * infptrace.c (udot_info): Change type of udot_off to long. Use
9600 paddr when printing udot_off's value.
9601
9602 2003-02-24 David Carlton <carlton@math.stanford.edu>
9603
9604 * symtab.c (make_symbol_overload_list): Only read in partial
9605 symtabs containing a matching partial symbol.
9606
9607 2003-02-24 David Carlton <carlton@math.stanford.edu>
9608
9609 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9610 do the comparison, not strcmp.
9611 * symfile.c (compare_psymbols): Ditto.
9612 * defs.h: Declare strcmp_iw_ordered.
9613 * utils.c (strcmp_iw_ordered): New function.
9614
9615 2003-02-24 Jim Blandy <jimb@redhat.com>
9616
9617 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9618 support, shared libs): Remove my name from here, to better reflect
9619 reality.
9620
9621 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9622
9623 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9624 (target_ops): Add to_have_continuable_watchpoint.
9625 * target.c (update_current_target): Add INHERIT line for
9626 to_have_continuable_watchpoint.
9627 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9628 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9629 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9630 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9631
9632 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9633
9634 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9635 maintainership.
9636
9637 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9638
9639 * solib.c (solib_open): Call target defined search function after
9640 failing with solib-search-path.
9641 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9642 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9643
9644 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9645
9646 * MAINTAINERS: Add myself to Write After section.
9647
9648 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9649
9650 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9651
9652 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9653
9654 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9655 (m68hc11_add_reggroups): New function.
9656 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9657 (m68hc11_gdbarch_init): Install the reggroups.
9658 (_initialize_m68hc11_tdep): Initialize them.
9659
9660 2003-02-21 James E Wilson <wilson@tuliptree.org>
9661
9662 * MAINTAINERS: Update my email address.
9663
9664 2003-02-21 David Carlton <carlton@math.stanford.edu>
9665
9666 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9667
9668 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9669
9670 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9671 * symtab.h: Add opaque declarations of struct axs_value and
9672 struct agent_expr.
9673 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9674 (struct location_funcs): New type.
9675 (struct symbol): Add "loc" to aux_value.
9676 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9677 * dwarf2read.c: Include "dwarf2expr.h".
9678 (dwarf2_symbol_mark_computed): New function.
9679 (read_func_scope): Use it.
9680 (var_decode_location): New function.
9681 (new_symbol): Use it.
9682 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9683
9684 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9685 (dwarf2expr_h, dwarf2loc_h): New variables.
9686 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9687 (dwarf2expr.o, dwarf2loc.o): New rules.
9688 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9689 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9690 LOC_COMPUTED_ARG.
9691 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9692 * m2-exp.y (yylex): Likewise.
9693 * printcmd.c (address_info, print_frame_args): Likewise.
9694 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9695 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9696 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9697 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9698 * symtab.c (lookup_block_symbol): Likewise.
9699
9700 2003-02-20 Adam Fedor <fedor@gnu.org>
9701
9702 * symtab.h: Remove objc_specific struct
9703 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9704 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9705 Have language_objc use cplus_specific struct.
9706
9707 2003-02-20 Tom Tromey <tromey@redhat.com>
9708
9709 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9710 TYPE_NAME, when printing a String value. PR java/1075.
9711
9712 2003-02-20 Adam Fedor <fedor@gnu.org>
9713
9714 * objc-lang.h (find_methods): Remove declaration.
9715 * objc-lang.c (find_methods): Make static.
9716
9717 2003-02-20 Christopher Faylor <cgf@redhat.com>
9718
9719 * win32-nat.c (get_image_name): Check return value from
9720 ReadProcessMemory.
9721 (child_xfer_memory): Ditto.
9722
9723 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9724
9725 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9726 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9727 '${exec_prefix}' (in addition to the expansion thereof) as
9728 relocatable.
9729 * configure: Rebuilt.
9730
9731 2003-02-20 David Carlton <carlton@math.stanford.edu>
9732
9733 * symtab.c (search_symbols): Revert the search_symbols part of my
9734 2002-12-23 patch. Add comment.
9735
9736 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9737
9738 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9739 * dbxread.c (elfstab_build_psymtabs): Don't call
9740 install_minimal_symbols.
9741 (stabsect_build_psymtabs): Likewise.
9742 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9743 earlier.
9744 * somread.c (som_symfile_read): Call install_minimal_symbols
9745 and do_cleanups earlier.
9746 * nlmread.c (nlm_symfile_read): Likewise.
9747 * mdebugread.c (elfmdebug_build_psymtabs): Call
9748 install_minimal_symbols and make appropriate cleanups.
9749
9750 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9751
9752 * solib.c (reload_shared_libraries): New function.
9753 (_initialize_solib): Add callbacks for ``set solib-search-path''
9754 and ``set solib-absolute-prefix''.
9755
9756 2003-02-20 David Carlton <carlton@math.stanford.edu>
9757
9758 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9759 expand comment.
9760 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9761 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9762 * ada-typeprint.c (ada_typedef_print): Ditto.
9763 * ax-gdb.c (gen_var_ref): Ditto.
9764 * breakpoint.c (print_one_breakpoint): Ditto.
9765 * buildsym.c (finish_block): Ditto.
9766 * c-valprint.c (c_val_print): Ditto.
9767 * expprint.c (print_subexp): Ditto.
9768 * findvar.c (locate_var_value): Ditto.
9769 * infcmd.c (jump_command): Ditto.
9770 * linespec.c (decode_line_2, decode_compound): Ditto.
9771 * maint.c (maintenance_translate_address): Ditto.
9772 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9773 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9774 Ditto.
9775 * p-valprint.c (pascal_val_print): Ditto.
9776 * stabsread.c (define_symbol): Ditto.
9777 * stack.c (print_frame, frame_info, print_block_frame_locals)
9778 (print_frame_arg_vars, return_command): Ditto.
9779 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9780 * symmisc.c (print_symbol): Ditto.
9781 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9782 (compare_search_syms, print_symbol_info, print_msymbol_info)
9783 (rbreak_command): Ditto.
9784 * tracepoint.c (tracepoints_info): Ditto.
9785 * typeprint.c (typedef_print): Ditto.
9786 * valops.c (value_of_variable, hand_function_call): Ditto.
9787 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9788 * ada-typeprint.c: Update Copyright.
9789 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9790 * tracepoint.c, cli/cli-cmds.c: Ditto.
9791
9792 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9793
9794 * frame.c (generic_unwind_get_saved_register): Make non-static.
9795 * frame.h (generic_unwind_get_saved_register): Declare.
9796 * mips-tdep.c (read_next_frame_reg): Fetch register from
9797 current regcache when frame is NULL.
9798 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9799 that must be NULL.
9800 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9801 instead of frame_register_unwind().
9802
9803 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9804
9805 * remote-sim.c (gdbsim_insert_breakpoint)
9806 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9807 code.
9808
9809 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9810
9811 * remote.c (_initialize_remote): Add commands "set/show remote
9812 hardware-watchpoint-limit" and "set/show remote
9813 hardware-breakpoint-limit".
9814 (remote_hw_watchpoint_limit): Initialize to -1.
9815 (remote_hw_breakpoint_limit): Ditto.
9816 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9817
9818 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9819
9820 * coff-pe-read.c: New file - support reading of minimal symbols from a
9821 portable executable using the export table.
9822 * coff-pe-read.h: New file.
9823 * coffread.c: Include coff-pe-read.h.
9824 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9825 debugging symbols found.
9826 * Makefile.in (SFILES): Add coff-pe-read.o.
9827 (coff_pe_read_h): Define.
9828 (COMMON_OBS): Add coff-pe-read.o.
9829 (coffread.o): Add coff_pe_read_h dependency.
9830 (coff-pe-read.o): New target.
9831
9832 2003-02-19 David Carlton <carlton@math.stanford.edu>
9833
9834 * Makefile.in (SFILES): Add block.c.
9835 (block_h): New.
9836 (COMMON_OBS): Add block.o.
9837 (block.o): New.
9838 (x86-64-tdep.o): Add $(block_h).
9839 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9840 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9841 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9842 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9843 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9844 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9845 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9846 * value.h: Add opaque declaration for struct block.
9847 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9848 * ada-lang.h: Ditto.
9849 * x86-64-tdep.c: #include "block.h"
9850 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9851 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9852 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9853 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9854 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9855 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9856 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9857 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9858 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9859 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9860 * symtab.c (block_function): Ditto.
9861 (contained_in): Ditto.
9862 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9863 block.h. Add opaque declaration for struct block.
9864 * symtab.h: Move block_function and contained_in declarations to
9865 block.h. Add opaque declarations for struct block, struct
9866 blockvector.
9867 (struct block): Move to block.h.
9868 (struct blockvector): Ditto.
9869 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9870 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9871 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9872 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9873 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9874 Ditto.
9875 * block.c: New file.
9876 * block.h: New file.
9877
9878 2003-02-19 Theodore A. Roth <troth@openavr.org>
9879
9880 * avr-tdep.c (avr_extract_return_value): Remove function.
9881 (avr_store_return_value): Remove function.
9882 (avr_extract_struct_value_address): Remove function.
9883 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9884
9885 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9886
9887 * rs6000-tdep.c: Include "gdb_assert.h".
9888 (registers_e500): Add "acc" and "spefscr".
9889 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9890 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9891 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9892 really is "r0".
9893 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9894
9895 2003-02-18 Keith Seitz <keiths@redhat.com>
9896
9897 * Makefile.in: Add gdbtk-interps.c.
9898
9899 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9900
9901 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9902 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9903
9904 2003-02-18 Andrew Cagney <cagney@redhat.com>
9905
9906 * symtab.h (struct objfile): Add opaque declaration.
9907
9908 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9909
9910 From Jim Ingham <jingham@apple.com>:
9911 * dbxread.c (process_one_symbol): Use last_function_start rather
9912 than function_start_offset to find the real beginning of the
9913 current function. The latter is just the text section offset on
9914 some systems, the former is always the real function start.
9915
9916 2003-02-17 Andrew Cagney <cagney@redhat.com>
9917
9918 * configure.in: Revert ${target} != ${host}.
9919
9920 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9921
9922 * configure.in (Makefile): Use the test ${target} != ${host},
9923 instead of the absence of the "nm.h" file, to determine of the
9924 configuration non-native.
9925 * configure: Regenerate.
9926
9927 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9928
9929 From Brian Ford <ford@vss.fsi.com>
9930
9931 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9932 conditionalize tui_active test.
9933 (lookup_cmd_1): Ditto.
9934
9935 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9936
9937 * configure.in: Add check for _etext.
9938 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9939 available.
9940 * config.in, configure: regenerated.
9941
9942 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9943
9944 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9945
9946 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9947
9948 * main.c (tui_version): Delete variable.
9949 (captured_main): When --tui, set interpreter_p to "tui" instead of
9950 enabling tui_version.
9951 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9952 tui_version.
9953 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9954 * cli/cli-cmds.c (disassemble_command): Ditto.
9955 * defs.h (tui_version): Delete declaration.
9956 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9957 (tui-interp.o): Add rules.
9958 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9959
9960 2003-02-14 Christopher Faylor <cgf@redhat.com>
9961
9962 * win32-nat.c (register_loaded_dll): Correctly set address range for
9963 just-loaded dll.
9964
9965 2003-02-12 Jason Molenda (jmolenda@apple.com)
9966
9967 * symmisc.c (print_objfile_statistics): Include information about
9968 the number of psymtabs and symtabs in each object file.
9969
9970 2003-02-13 Keith R Seitz <keiths@redhat.com>
9971
9972 * main.h (struct captured_main_args): Add interpreter_p.
9973 * main.c (captured_main): Initialize interpreter_p from context.
9974 * gdb.c (main): Set interpreter_p argument.
9975 * Makefile.in (gdb.o): Add dependency for interps.h.
9976
9977 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9978
9979 * event-top.c (cli_command_loop): Delete declaration.
9980 (_initialize_event_loop): Delete function setting event_loop_hook.
9981 * event-top.h (cli_command_loop): Declare. Update copyright.
9982 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9983 * interps.c (current_interp_command_loop): When event_loop_p, call
9984 cli_command_loop.
9985
9986 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9987
9988 * interps.h (interp_command_loop_ftype): Change return type to
9989 void.
9990
9991 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9992
9993 * x86-64-tdep.c (x86_64_extract_return_value)
9994 (x86_64_store_return_value): Use regcache instead of regbuf.
9995 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9996 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9997
9998 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9999
10000 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10001 * aclocal.m4: Regenerate.
10002 * configure: Regenerate.
10003
10004 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10005 TCL_LD_SEARCH_FLAGS.
10006
10007 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10008
10009 * dwarf2cfi.c: Reindented.
10010
10011 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10012
10013 * interps.c (clear_interpreter_hooks): Convert function definition
10014 to ISO C.
10015
10016 2003-02-07 David Carlton <carlton@math.stanford.edu>
10017
10018 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10019
10020 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10021
10022 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10023 (struct type): ...to here.
10024 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10025 field.
10026 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10027 (replace_type): Set length on all type variants for a given type.
10028
10029 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10030
10031 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10032 <sys/stat.h>.
10033 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10034
10035 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10036
10037 * Makefile.in (symm-nat.o): Update dependencies.
10038 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10039 (lynx-nat.o, ia64-linux-nat.): Ditto.
10040 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10041 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10042 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10043
10044 * Makefile.in (inflow_h): Define.
10045 (procfs.o, inflow.o, procfs.o): Update dependencies.
10046 * inftarg.c (child_stop): Delete extern declaration of
10047 inferior_process_group. Include "inflow.h".
10048 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10049 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10050 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10051 (our_process_group, inferior_process_group): Extern declarations.
10052
10053 * procfs.c: Include "gdb_assert.h".
10054
10055 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10056 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10057 * jv-typeprint.c (java_type_print_base): Ditto.
10058 * typeprint.c (typedef_print): Eliminate STREQ.
10059 * cli/cli-script.c (define_command, define_command): Ditto.
10060 * main.c (captured_main): Ditto.
10061 * values.c (lookup_internalvar): Ditto.
10062 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10063 within `if' conditional.
10064 * linespec.c (decode_line_2): Ditto.
10065 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10066 (bfd_openw_with_cleanup): Ditto.
10067
10068 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10069
10070 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10071 legacy_extract_return_value and store_return_value to
10072 legacy_return_value.
10073
10074 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10075
10076 * win32-nat.c (get_relocated_section_addrs): New function. Find
10077 section load addresses for symbol handling in relocated DLLs.
10078 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10079
10080 2003-02-05 Fred Fish <fnf@intrinsity.com>
10081
10082 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10083 '=' and '!='.
10084 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10085 with '&' and '=='.
10086 (angel_RDI_info): Ditto.
10087 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10088 with '&' and '!='.
10089 (threads_continue_all_with_signals): Ditto.
10090
10091 2003-02-05 Jim Ingham <jingham@apple.com>
10092 Keith Seitz <keiths@redhat.com>
10093 Elena Zannoni <ezannoni@redhat.com>
10094 Andrew Cagney <ac131313@redhat.com>
10095
10096 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10097 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10098 (SUBDIR_MI_OBS): Add "mi-interp.o".
10099 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10100 (SFILES): Add "interps.c".
10101 (COMMON_OBS): Add "interps.o".
10102 (interps_h, mi_main_h): Define.
10103 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10104 (mi-main.o, main.o, event-top.o): Update dependencies.
10105 * cli/cli-interp.c: New file.
10106 * interps.h, interps.c: New files.
10107 * top.c: (gdb_init): Don't install the default interpreter, handed
10108 by captured_main.
10109 * main.c: Include "interps.h".
10110 (interpreter_p): Note that it should malloc'ed.
10111 (captured_command_loop): Call current_interp_command_loop.
10112 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10113 xfree and xstrdup when updating interpreter_p. Install the
10114 default interpreter. Add hack to stop mi1's copyright notice
10115 being encoded.
10116 * event-top.h (gdb_setup_readline): Declare.
10117 (gdb_disable_readline): Declare.
10118 * event-top.c: Include "interps.h".
10119 (display_gdb_prompt): Call current_interp_display_prompt_p.
10120 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10121 gdb_stdlog, and gdb_stdtarg.
10122 (_initialize_event_loop): Don't call gdb_setup_readline.
10123 * cli-out.c (cli_out_set_stream): New function.
10124 * cli-out.h (cli_out_set_stream): Declare.
10125
10126 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10127
10128 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10129 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10130 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10131 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10132 config/i386/i386v42mp.mt: Removed.
10133
10134 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10135
10136 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10137 GDB_OSABI_SOLARIS.
10138
10139 2003-02-05 Michael Chastain <mec@shout.net>
10140
10141 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10142 2.12.1 and earlier versions.
10143
10144 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10145
10146 Remove orphaned hosts, targets and files.
10147 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10148 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10149 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10150 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10151 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10152 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10153 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10154 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10155 * config/sparc/tm-sp64sim.h: Delete.
10156 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10157 hosts.
10158 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10159 mips*-dec-mach3* targets.
10160
10161 2003-02-04 Michael Chastain <mec@shout.net>
10162
10163 * NEWS: Fix typo: sepcifying -> specifying.
10164
10165 2003-02-04 Michael Chastain <mec@shout.net>
10166
10167 * dwarfread.c: Add documentation on the state of dwarf-1,
10168 looking towards obsoletion.
10169
10170 2003-02-03 Michael Chastain <mec@shout.net>
10171
10172 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10173 gdb/testsuite/gdb.c++/pr-1023.exp.
10174
10175 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10176
10177 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10178 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10179
10180 * utils.c (init_page_info): Delete reference to MPW in comments.
10181 * main.c (captured_main): Delete #ifdef MPW.
10182
10183 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10184
10185 * NEWS: Note that the m32r-*-elf* is obsolete.
10186 * monitor.c (monitor_expect): Obsolete reference to m32r.
10187 * configure.tgt: Mark m32r-*-elf* as obsolete.
10188 * MAINTAINERS: Mark m32k as obsolete.
10189 * m32r-rom.c: Obsolete file.
10190 * config/m32r/m32r.mt: Obsolete file.
10191 * config/m32r/tm-m32r.h: Obsolete file.
10192 * m32r-stub.c: Obsolete file.
10193 * m32r-tdep.c: Obsolete file.
10194
10195 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10196
10197 * NEWS: Mention that the z8k-zilog-none is obsolete.
10198 * MAINTAINERS: Mark z8k as obsolete.
10199 * configure.tgt: Obsolete the z8k-*-coff* target.
10200 * config/z8k/z8k.mt: Obsolete file.
10201 * config/z8k/tm-z8k.h: Obsolete file.
10202 * z8k-tdep.c: Obsolete file.
10203
10204 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10205
10206 * NEWS: Mention that the mn10200-elf is obsolete.
10207 * configure.tgt: Obsolete mn10200-*-* target.
10208 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10209 mention that the mn10200 is obsolete.
10210 * breakpoint.h: Ditto.
10211 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10212 * config/mn10200/mn10200.mt: Obsolete file.
10213 * config/mn10200/tm-mn10200.h: Obsolete file.
10214 * mn10200-tdep.c: Obsolete file.
10215
10216 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10217
10218 * MAINTAINERS: Mark h8500 as obsolete.
10219 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10220 * findvar.c (value_from_register): Ditto.
10221 * h8500-tdep.c: Mark file as obsolete.
10222 * config/h8500/h8500.mt: Ditto.
10223 * config/h8500/tm-h8500.h: Ditto.
10224 * NEWS: Mention that h8500 is obsolete.
10225
10226 2003-02-04 David Carlton <carlton@math.stanford.edu>
10227
10228 * objfiles.c (allocate_objfile): Always set name. Add comment at
10229 start of function.
10230 * jv-lang.c (get_dynamics_objfile): Add comment.
10231
10232 2003-02-04 David Carlton <carlton@math.stanford.edu>
10233
10234 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10235 * printcmd.c (build_address_symbolic): Replace uses of
10236 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10237 SYMBOL_NAME, and asm_demangle.
10238 Update copyright.
10239
10240 2003-02-04 David Carlton <carlton@math.stanford.edu>
10241
10242 * linespec.c (decode_compound): Extract code into
10243 lookup_prefix_sym.
10244 (lookup_prefix_sym): New function.
10245
10246 2003-02-04 David Carlton <carlton@math.stanford.edu>
10247
10248 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10249 FLOAT_COERCION_BADNESS.
10250 * gdbtypes.c (rank_one_type): Replace all uses of
10251 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10252
10253 2003-02-04 Jim Blandy <jimb@redhat.com>
10254
10255 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10256 section, let dwarf_macinfo_section point to it, not
10257 dwarf_loc_section.
10258
10259 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10260
10261 Pointed out by Anton Blanchard <anton@samba.org>.
10262 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10263 (ppc_linux_at_sigtramp_return_path): Use it.
10264
10265 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10266
10267 * defs.h (streq): Add prototype.
10268 * utils.c (streq): New function.
10269
10270 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10271 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10272 * mdebugread.c (new_symbol): Likewise.
10273 * stabsread.c (define_symbol): Likewise.
10274 * coffread.c (process_coff_symbol): Likewise.
10275 * dwarfread.c (new_symbol): Likewise.
10276
10277 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10278 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10279 here.
10280 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10281 SYMBOL_INIT_DEMANGLED_NAME.
10282 * objfiles.c: Include "hashtab.h".
10283 (allocate_objfile): Call htab_set_functions_ex for the
10284 demangled_names_hash.
10285 (free_objfile): Call htab_delete for the demangled_names_hash.
10286 * objfiles.h (struct htab): Add declaration.
10287 (struct objfile): Add demangled_names_hash.
10288 * symfile.c: Include "hashtab.h".
10289 (reread_symbols): Call htab_delete for the demangled_names_hash.
10290 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10291 SYMBOL_NAME in the bcache.
10292 * symtab.c: Include "hashtab.h". Update comments.
10293 (create_demangled_names_hash, symbol_set_names): New functions.
10294 (symbol_find_demangled_name): New function, broken out from
10295 symbol_init_demangled_names.
10296 (symbol_init_demangled_names): Use it.
10297 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10298 (SYMBOL_SET_NAMES): New macro.
10299 (symbol_set_names): Add prototype.
10300
10301 2003-02-03 Jim Blandy <jimb@redhat.com>
10302
10303 Use a single, consistent representation for an empty minimal
10304 symbol table in an objfile.
10305 * objfiles.c (terminate_minimal_symbol_table): New function.
10306 (allocate_objfile): Call it.
10307 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10308 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10309 non-NULL.
10310 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10311 objfile has minimal symbols, compare minimal_symbol_count to zero,
10312 instead of comparing msymbols with NULL.
10313 * objfiles.c (have_minimal_symbols): Same.
10314 * solib-sunos.c (solib_add_common_symbols): Call
10315 terminate_minimal_symbol_table.
10316 * symfile.c (reread_symbols): Same.
10317
10318 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10319
10320 * s390-tdep.c (s390_address_class_type_flags)
10321 (s390_address_class_type_flags_to_name)
10322 (s390_address_class_name_to_type_flags): New functions.
10323 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10324 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10325
10326 2003-02-03 Michael Snyder <msnyder@redhat.com>
10327
10328 * arm-tdep.c: Fix spell-o in comment.
10329
10330 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10331
10332 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10333 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10334 error messages to contain BFD filename.
10335
10336 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10337
10338 Fix PR gdb/742 gdb/743 gdb/877
10339 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10340 (do_mixed_source_and_assembly): Use
10341 make_cleanup_ui_out_tuple_begin_end and
10342 make_cleanup_ui_out_tuple_begin_end.
10343 (do_mixed_source_and_assembly): Ditto.
10344 * thread.c (do_captured_list_thread_ids): Ditto.
10345 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10346 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10347 ui_out_tuple_end): Delete prototypes.
10348 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10349 ui_out_list_end, ui_out_tuple_end): Delete.
10350
10351 From Kevin Buettner <kevinb@redhat.com>:
10352 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10353 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10354 (do_cleanup_table_end): New functions.
10355 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10356 Use cleanups to invoke_ui_out_tuple_end().
10357 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10358 * cli/cli-setshow.c (cmd_show_list): Use
10359 make_cleanup_ui_out_tuple_begin_end.
10360
10361 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10362
10363 * frame.c (frame_unwind_register): New function.
10364 (frame_unwind_unsigned_register): Use.
10365 (frame_unwind_signed_register): Use.
10366 (frame_read_register): New function.
10367 * frame.h (frame_unwind_register): Declare.
10368 (frame_read_register): Declare.
10369
10370 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10371 and frame_unwind_register instead of read_memory, write_register
10372 and deprecated_write_register_bytes.
10373
10374 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10375
10376 * frame.h: Note that namelen can be negative.
10377 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10378 NAME's length.
10379
10380 * NEWS: Mention that the d10v's `regs' command is deprecated.
10381 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10382 (d10v_print_registers_info): New function.
10383 (show_regs): Call d10v_print_registers_info.
10384 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10385
10386 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10387
10388 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10389 lost in the previous patch.
10390
10391 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10392
10393 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10394 * stack.c (print_frame_info_base): Output complete FRAME tuple
10395 for synthesized frames.
10396
10397 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10398
10399 * mips-nat.c (zerobuf): Delete.
10400 (fetch_inferior_registers): Alloc local zerobuf.
10401 (fetch_core_registers): Alloc local zerobuf.
10402 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10403 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10404 * thread-db.c (thread_db_store_registers): Ditto.
10405 * sh-tdep.c (sh_do_register): Ditto.
10406 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10407 * remote-sim.c (gdbsim_store_register): Ditto.
10408 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10409 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10410 * monitor.c (monitor_supply_register): Ditto.
10411 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10412 * mips-nat.c (fetch_inferior_registers): Ditto.
10413 * m68klinux-nat.c (fetch_register): Ditto.
10414 * lynx-nat.c (fetch_inferior_registers): Ditto.
10415 (fetch_inferior_registers): Ditto.
10416 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10417 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10418 (hpux_thread_store_registers): Ditto.
10419 * hppah-nat.c (fetch_register): Ditto.
10420 * hppab-nat.c (fetch_register): Ditto.
10421 * hppa-tdep.c (pa_register_look_aside): Ditto.
10422 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10423 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10424
10425 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10426
10427 * gdbarch.sh: Explictly specify all method levels. When a
10428 variable with an empty level, provide a non-multi-arch default.
10429 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10430 * gdbarch.h: Re-generate.
10431 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10432 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10433
10434 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10435
10436 * defs.h (host_pointer_to_address): Delete declaration.
10437 (address_to_host_pointer): Delete declaration.
10438 * utils.c (host_pointer_to_address): Delete function.
10439 (address_to_host_pointer): Delete function.
10440 * procfs.c (procfs_address_to_host_pointer): New function.
10441 * procfs.c (proc_set_watchpoint): Use.
10442 (procfs_can_use_hw_breakpoint): Update comments.
10443 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10444 (som_solib_add): Use.
10445 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10446 * hppa-tdep.c (unwind_command): Use.
10447
10448 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10449
10450 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10451 strlen d_name.
10452
10453 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10454 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10455 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10456 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10457 (define_symbol): Update.
10458 * symfile.c (generic_load): Remove references to nindy.
10459 * symtab.c: Remove references to nindy.
10460
10461 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10462
10463 * infcmd.c (print_float_info): Delete code conditional on
10464 FLOAT_INFO.
10465 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10466 * config/m68k/nm-apollo68b.h: Ditto.
10467 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10468 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10469 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10470
10471 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10472
10473 * config/i386/tm-i386os9k.h: Removed.
10474
10475 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10476 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10477 they're identical to i[3456]86-*-sysv* now.
10478 * config/i386/i386v32.mh: Removed.
10479 * config/i386/xm-i386v32.h: Removed.
10480 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10481
10482 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10483
10484 * config/i386/i386dgux.mh: Removed.
10485 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10486
10487 * configure.in: Fix typo.
10488 * configure: Regenerated.
10489
10490 2003-01-31 David Carlton <carlton@math.stanford.edu>
10491
10492 * dwarf2read.c (dwarf2_locate_sections): Set
10493 dwarf_ranges_section.
10494
10495 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10496
10497 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10498 * utils.c: Update comments documenting legitimate uses of PTR.
10499
10500 * utils.c: Re-indent.
10501
10502 * config/djgpp/fnchange.lst: Delete nindy files.
10503 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10504 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10505 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10506 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10507 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10508 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10509 * Makefile.in (init.c): Remove nindy references.
10510 (saber_gdb): Delete rule.
10511 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10512 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10513 and a68v-nat.c.
10514 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10515 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10516 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10517 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10518 nindy-share/stop.h.
10519 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10520 * saber.suppress: Delete file.
10521
10522 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10523
10524 * dbxread.c (stabs_data): New static variable.
10525 (fill_symbuf): Support an in-memory buffer for stabs data.
10526 (stabs_seek): New function.
10527 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10528 (read_ofile_symtab): Use stabs_seek.
10529 (elfstab_build_psymtabs): Take an asection* instead of
10530 an offset and size. Relocate the stabs data if necessary.
10531 Save the section* for dbx_psymtab_to_symtab.
10532 * dwarf2read.c: Add section variables for each debug section.
10533 (dwarf2_locate_sections): Fill them in.
10534 (dwarf2_read_section): Take an asection* argument.
10535 Relocate the section contents if necessary.
10536 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10537 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10538 it to dwarf2_read_section.
10539 (dwarf2_build_frame_info): Update callers.
10540 * elfread.c (elf_symfile_read): Update call to
10541 elfstab_build_psymtabs.
10542 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10543 (DBX_STAB_SECTION): New macro.
10544 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10545 * symfile.c (symfile_dummy_outputs): New function.
10546 (symfile_relocate_debug_section): New function.
10547 * symfile.h (symfile_relocate_debug_section): Add prototype.
10548
10549 2003-01-31 Richard Henderson <rth@redhat.com>
10550
10551 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10552 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10553 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10554 * alpha-tdep.c (alpha_register_name): Add "unique".
10555 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10556 (ALPHA_UNIQUE_REGNUM): New.
10557 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10558
10559 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10560
10561 * README: Remove reference to Ericsson 1800 monitor.
10562 * Makefile.in (remote-es.o): Delete rule.
10563 (ALLDEPFILES): Delete remote-es.c.
10564 * remote-es.c: Delete file.
10565 * config/m68k/es1800.mt: Delete file.
10566 * config/djgpp/fnchange.lst: Update.
10567 * configure.tgt: Delete m68*-ericsson-* target.
10568
10569 2003-01-31 Adam Fedor <fedor@gnu.org>
10570
10571 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10572 Remove duplicate/shadowing variable of same name.
10573
10574 2003-01-30 Jim Blandy <jimb@redhat.com>
10575
10576 * symfile.c (find_separate_debug_file): Assert that the objfile's
10577 directory name we compute ends with a slash, and then assume that
10578 that's so everywhere we use it.
10579
10580 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10581
10582 * valops.c (value_assign): Flush frame cache after stores to memory
10583 also.
10584
10585 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10586
10587 * Makefile.in (mon960-rom.o): Delete rule.
10588 * mon960-rom.c: Delete file.
10589
10590 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10591
10592 * d10v-tdep.c: Include "frame-unwind.h".
10593 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10594 list.
10595 (next_addr, uses_frame): Delete.
10596 (struct d10v_unwind_cache): Define.
10597 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10598 Use info instead of next_addr and uses_frame globals.
10599 (d10v_frame_init_saved_regs): Delete function.
10600 (d10v_init_extra_frame_info): Delete function.
10601 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10602 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10603 init_frame_pc or frame_saved_pc.
10604 (d10v_pop_frame): Delete function.
10605 (do_d10v_pop_frame): Delete function.
10606 (d10v_frame_chain): Delete function.
10607 (d10v_frame_chain_valid): Delete function.
10608 (d10v_frame_pc_unwind): New function.
10609 (d10v_frame_id_unwind): New function.
10610 (saved_regs_unwinder): New function.
10611 (d10v_frame_register_unwind): New function.
10612 (d10v_frame_pop): New function.
10613 (d10v_frame_unwind): New variable.
10614 (d10v_frame_p): New function.
10615 (d10v_frame_saved_pc): Delete function.
10616 * Makefile.in (d10v-tdep.o): Update dependencies.
10617
10618 2003-01-30 J. Brobecker <brobecker@gnat.com>
10619
10620 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10621 causing some regressions due to a change in the default value
10622 for this macro.
10623
10624 2003-01-29 Richard Henderson <rth@redhat.com>
10625 Elena Zannoni <ezannoni@redhat.com>
10626 Daniel Jacobowitz <drow@mvista.com>
10627
10628 Fix PR gdb/961.
10629 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10630 variables.
10631 (RANGES_SECTION): New.
10632 (dwarf_ranges_buffer): New variable.
10633 (struct comp_unit_head): Add member "die".
10634 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10635 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10636 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10637 (dwarf2_locate_sections): Likewise.
10638 (dwarf2_build_psymtabs): Read .debug_ranges.
10639 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10640 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10641 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10642 Look for DW_AT_ranges and return the bounding box.
10643
10644 2003-01-29 Brian Ford <ford@vss.fsi.com>
10645
10646 * win32-nat.c (cygwin_pid): Removed as unused.
10647 (child_attach): Try fall back to Cygwin pid.
10648
10649 2003-01-29 Jim Blandy <jimb@redhat.com>
10650
10651 * objfiles.h (struct objfile): Doc fix.
10652
10653 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10654
10655 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10656 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10657 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10658 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10659 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10660 (FRAME_SAVED_PC): Change to a function with predicate.
10661 * gdbarch.h, gdbarch.c: Re-generate.
10662
10663 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10664
10665 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10666
10667 * complaints.c (complain): Delete function.
10668 * complaints.h (struct deprecated_complaint): Delete definition.
10669 (complain): Delete declaration.
10670
10671 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10672
10673 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10674 dummy frames.
10675
10676 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10677
10678 * sentinel-frame.h, sentinel-frame.c: New files.
10679 * Makefile.in (frame.o): Update dependencies.
10680 (SFILES): Add sentinel-frame.c.
10681 (sentinel_frame_h): Define.
10682 (COMMON_OBS): Add sentinel-frame.o.
10683 (sentinel-frame.o): Specify dependencies.
10684 * frame.c: Include "sentinel-frame.h".
10685 (frame_register_unwind): Rewrite assuming that there is always a a
10686 ->next frame.
10687 (frame_register, generic_unwind_get_saved_register): Ditto.
10688 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10689 (create_sentinel_frame, unwind_to_current_frame): New functions.
10690 (get_current_frame): Rewrite using create_sentinel_frame and
10691 unwind_to_current_frame. When possible, always create a frame.
10692 (create_new_frame): Set next to the sentinel frame.
10693 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10694 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10695 ID cache when necessary.
10696 (frame_saved_regs_id_unwind): Use frame_relative_level.
10697 (deprecated_generic_get_saved_register): Use frame_relative_level,
10698 get_frame_saved_regs, get_frame_pc, get_frame_base and
10699 get_next_frame.
10700 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10701 frame_register.
10702
10703 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10704
10705 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10706
10707 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10708
10709 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10710 (maintenance_set_profile_cmd): Use error () instead of warning ().
10711
10712 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10713
10714 * configure.in: Check that -pg works if using --enable-profiling.
10715 Check for monstartup and _mcleanup regardless of --enable-profiling.
10716 * maint.c: Check for monstartup and _mcleanup before using them.
10717 * config.in: Regenerated.
10718 * configure: Regenerated.
10719
10720 2003-01-24 Nick Clifton <nickc@redhat.com>
10721
10722 * Add sh2e support:
10723
10724 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10725
10726 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10727 (sh2e_show_regs): New.
10728 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10729 * config/sh/tm-sh.h: Added sh2e to comments.
10730
10731 2003-01-23 Jim Blandy <jimb@redhat.com>
10732
10733 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10734 symbols found)" message here; we haven't checked for a separate
10735 debug info file yet, so we don't know yet.
10736 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10737 we've looked everywhere. Also, there's no need to print a special
10738 message when we're loading the separate debug info file: the one
10739 symbol_file_add prints is fine.
10740
10741 2003-01-23 Alexander Larsson <alexl@redhat.com>
10742 Jim Blandy <jimb@redhat.com>
10743
10744 Add support for executables whose debug info has been separated
10745 out into a separate file, leaving only a link behind.
10746 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10747 and separate_debug_objfile_backlink.
10748 (put_objfile_before): New declaration.
10749 * symfile.c: #include "filenames.h".
10750 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10751 debug info in a separate file, read that, too. Save the addrs
10752 argument, so we can use it again to read the separated debug info;
10753 syms_from_objfile modifies the table we pass it.
10754 (reread_symbols): After re-reading an objfile, call
10755 reread_separate_symbols to refresh its separate debug info
10756 objfile, if it has one.
10757 (reread_separate_symbols, find_separate_debug_file,
10758 get_debug_link_info, separate_debug_file_exists): New functions.
10759 (debug_file_directory): New global var.
10760 (_initialize_symfile): Initialize debug_file_directory, and
10761 provide the new `set debug-file-directory' command to let the user
10762 change it.
10763 * objfiles.c (free_objfile): If this objfile has its debug info in
10764 a separate objfile, free that one too. If this is itself a
10765 separate debug info objfile, clear our parent's backlink.
10766 (put_objfile_before): New function.
10767 * utils.c (gnu_debuglink_crc32): New function.
10768 * defs.h (gnu_debuglink_crc32): New declaration.
10769 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10770 * configure.in: Handle --with-separate-debug-dir config option.
10771 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10772 * acconfig.h (DEBUGDIR): New macro.
10773 * configure, aclocal.m4, config.in: Regenerated.
10774
10775 2003-01-22 Jim Blandy <jimb@redhat.com>
10776
10777 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10778 like the old symbol_file_add, but taking new arguments: you can
10779 now pass in either a `struct section_addr_info' list to say where
10780 each section is loaded, or a `struct section_offsets' table. Pass
10781 these new arguments through to syms_from_objfile as appropriate.
10782 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10783 with the appropriate quiescent values for the new arguments.
10784
10785 * symfile.c: #include "gdb_assert.h".
10786 (syms_from_objfile): Add the ability to pass in a section offset
10787 table directly, as an alternative to the section_addr_info table.
10788 Document arguments better.
10789 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10790 * symfile.h (syms_from_objfile): Update declaration.
10791 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10792 syms_from_objfile.
10793 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10794
10795 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10796
10797 Original patch by Tom Tromey <tromey@cygnus.com> and
10798 Jason Molenda <jmolenda@apple.com>.
10799 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10800 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10801 * NEWS: Mention profiling.
10802 * configure.in (--enable-gdbtk): Fix typo.
10803 (--enable-profiling): New. Set PROFILE_CFLAGS.
10804 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10805 Fill in function.
10806 (profiling_state): New variable.
10807 (mcleanup_wrapper): New function.
10808 (_initialize_maint): Remove NOTYET, fix call to
10809 add_setshow_boolean_cmd for "maint set profile".
10810 * configure: Regenerated.
10811
10812 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10813
10814 * Makefile.in (install-gdbtk): Install PNG images too.
10815
10816 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10817
10818 * exec.c (text_start): Delete global variable.
10819 (exec_file_attach): Make text_start local to the function.
10820 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10821 * valops.c (hand_function_call): Delete code that handles
10822 BEFORE_TEXT_END and AFTER_TEXT_END.
10823 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10824 of CALL_DUMMY_LOCATION.
10825 * gdbarch.c: Regenerate.
10826 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10827 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10828 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10829 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10830 (text_end): Delete extern declaration.
10831
10832 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10833
10834 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10835 * blockframe.c (backtrace_below_main): Move to "frame.c".
10836 (frame_chain_valid): Delete check for backtrace_below_main.
10837 (_initialize_blockframe): Delete initialization, move ``set
10838 backtrace-below-main'' command to "frame.c".
10839 (do_flush_frames_sfunc): Delete function.
10840 * frame.c: Include "command.h" and "gdbcmd.h".
10841 (frame_type_from_pc): New function.
10842 (create_new_frame): Use frame_type_from_pc.
10843 (legacy_get_prev_frame): New function.
10844 (get_prev_frame): Rewrite. When an old style frame, call
10845 legacy_get_prev_frame. Otherwize, unwind the PC first.
10846 (_initialize_frame): Add ``set backtrace-below-main'' command.
10847 * Makefile.in (frame.o): Update dependencies.
10848
10849 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10850
10851 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10852 DEPRECATED_REGISTERS_INFO.
10853
10854 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10855
10856 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10857 Maintainers'. Update `Various Maintainers'.
10858
10859 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10860
10861 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10862 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10863 Suppress actual parameters when `-'.
10864 * gdbarch.h, gdbarch.c: Regenerate.
10865
10866 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10867
10868 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10869 code handling dummy frames.
10870
10871 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10872
10873 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10874 (struct frame_unwind): Add field pop.
10875 * frame.h (frame_pop): Declare.
10876 * frame.c (frame_saved_regs_pop): New function.
10877 (trad_frame_unwinder): Add frame_saved_regs_pop.
10878 (frame_pop): New function.
10879 * dummy-frame.c (dummy_frame_pop): New function.
10880 (discard_innermost_dummy): New function.
10881 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10882 (dummy_frame_unwind): Add dummy_frame_pop.
10883 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10884 * valops.c (hand_function_call): Ditto.
10885 * stack.c (return_command): Ditto.
10886
10887 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10888
10889 * cris-tdep.c: Fix function declaration indentation.
10890 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10891 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10892 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10893 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10894 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10895 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10896
10897 2003-01-18 Michael Chastain <mec@shout.net>
10898
10899 * README (Unpacking and Installation -- quick overview):
10900 Warn against ".../gdb-5.3/gdb/configure".
10901
10902 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10903
10904 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10905 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10906 (struct frame_unwind): Declare opaque.
10907 (dummy_frame_p): Declare function.
10908 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10909 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10910 * dummy-frame.c: Include "frame-unwind.h".
10911 (dummy_frame_p): New function.
10912 (dummy_frame_unwind): New variable.
10913 * frame.c: Include "frame-unwind.h".
10914 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10915 to use the new unwind field.
10916 (set_unwind_by_pc): Delete function.
10917 (create_new_frame, get_prev_frame): Set unwind field using
10918 frame_unwind_find_by_pc.
10919 (trad_frame_unwind, trad_frame_unwinder): New variables.
10920 * frame.h (trad_frame_unwind): Declare variable.
10921 (frame_id_unwind_ftype): Delete declaration.
10922 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10923 (struct frame_unwind): Declare opaque.
10924 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10925 register_unwind with a single unwind pointer.
10926 * frame-unwind.h, frame-unwind.c: New files.
10927 * Makefile.in (SFILES): Add frame-unwind.c.
10928 (frame_unwind_h): Define.
10929 (COMMON_OBS): Add frame-unwind.o.
10930 (frame-unwind.o): Specify dependencies.
10931 (frame.o, dummy-frame.o): Update dependencies.
10932
10933 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10934
10935 * ada-valprint.c: Eliminate PTR.
10936 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10937 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10938 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10939 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10940 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10941 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10942 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10943
10944 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10945
10946 * main.c (captured_main): Don't use PTR.
10947 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10948 * gdbtypes.c (lookup_primitive_typename): Ditto.
10949 (lookup_struct_elt_type): Ditto.
10950 * f-valprint.c (info_common_command): Ditto.
10951 (list_all_visible_commons): Ditto.
10952 * jv-typeprint.c (java_type_print_base): Ditto.
10953
10954 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10955 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10956 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10957 i386-interix-nat.c and i386-interix-tdep.c. Rename
10958 m68klinux-nat.c and m68klinux-tdep.c. Rename
10959 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10960 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10961 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10962 * main.c (captured_main): Use xfree, not free.
10963
10964 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10965
10966 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10967 ID back using a parameter.
10968 * frame.c (frame_id_unwind): Update call.
10969 (frame_saved_regs_id_unwind): Update.
10970 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10971 * dummy-frame.h (struct frame_id): Add opaque declaration.
10972 (dummy_frame_id_unwind): Update declaration.
10973
10974 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10975
10976 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10977
10978 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10979
10980 * MAINTAINERS (Stephen P. Smith): Updated email address.
10981
10982 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10983
10984 Fix PR gdb/898
10985 * breakpoint.c (until_break_command): Add new argument. Use it to
10986 decide whether to stop only at the current frame or not.
10987 * breakpoint.h (until_break_command): Update prototype.
10988 * infcmd.c (until_command): Add new argument to until_break_command
10989 call.
10990 (advance_command): New function.
10991 (_initialize_infcmd): Update help string for 'until' command.
10992 Add new 'advance' command.
10993
10994 2003-01-14 David Carlton <carlton@math.stanford.edu>
10995
10996 * linespec.c (decode_line_1): Normalize comments.
10997 (set_flags): Ditto.
10998 (locate_first_half): Ditto.
10999 (decode_compound): Ditto.
11000 (symtab_from_filename): Ditto.
11001 (decode_all_digits): Ditto.
11002 (decode_dollar): Ditto.
11003 (find_methods): Ditto.
11004 (find_toplevel_char): Ditto.
11005
11006 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11007
11008 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11009 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11010 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11011 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11012 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11013 * language.c, language.h, m32r-tdep.c: Update copyright.
11014 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11015 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11016 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11017 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11018 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11019 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11020
11021 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11022
11023 * stabsread.h (process_later, resolve_cfront_continuation):
11024 Obsolete.
11025 Update copyright years.
11026 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11027 Update copyright year.
11028 * dbxread.c(struct cont_elem): Obsolete.
11029 (process_later, process_now): Obsolete functions.
11030 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11031 Update copyright year.
11032 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11033 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11034 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11035 (parse_partial_symbols): Obsolete cfront support.
11036 * stabsread.c
11037 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11038 macros.
11039 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11040 read_cfront_baseclasses, read_cfront_member_functions,
11041 resolve_cfront_continuation,read_cfront_static_fields,
11042 copy_cfront_struct_fields): Obsolete functions.
11043 (define_symbol, read_one_struct_field): Obsolete cfront support.
11044 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11045 Update Copyright year.
11046
11047 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11048
11049 * stack.c (print_frame_info, print_stack_frame_base_stub,
11050 print_stack_frame_base, show_and_print_stack_frame_stub,
11051 show_and_print_stack_frame, print_only_stack_frame_stub,
11052 print_only_stack_frame): Delete functions.
11053 (print_stack_frame_stub): Call print_frame_info instead of
11054 print_frame_info_base.
11055 (print_frame_info_base): Rename to print_frame_info.
11056 (backtrace_command_1): Call print_frame_info, instead of
11057 print_frame_info_base.
11058 (current_frame_command): Call print_stack_frame, instead of
11059 print_only_stack_frame.
11060 (frame_command): Call print_stack_frame, instead of
11061 show_and_print_stack_frame.
11062 (up_command): Ditto.
11063 (down_command): Ditto.
11064 * frame.h (print_only_stack_frame): Delete prototype.
11065 * infrun.c (normal_stop): Call print_stack_frame, instead of
11066 show_and_print_stack_frame.
11067 * thread.c (info_threads_command): Call print_stack_frame, instead
11068 of print_only_stack_frame.
11069
11070 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11071
11072 * README (Graphical interface to GDB): Update URL. Point at
11073 gdb/links/.
11074
11075 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11076 version match.
11077
11078 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11079
11080 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11081 lines.
11082
11083 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11084
11085 * thread-db.c (attach_thread): Prototype.
11086 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11087 thread information (ti), and valid flags (th_valid, ti_valid).
11088 (attach_thread): Move target_pid_to_str call to after the thread
11089 is added to GDB's list. Initialize the cache.
11090 (thread_get_info_callback, thread_db_map_id2thr)
11091 (thread_db_get_info): New functions.
11092 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11093 (thread_db_store_registers, thread_db_thread_alive)
11094 (thread_db_get_thread_local_address): Use them.
11095 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11096 of calling error() for threads in unknown state.
11097
11098 (clear_lwpid_callback): New function.
11099 (thread_db_resume): Use it to clear the cache.
11100
11101 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11102
11103 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11104 (resume_callback): Remove dead code.
11105
11106 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11107
11108 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11109 predicate.
11110 * gdbarch.h, gdbarch.c: Regenerate.
11111 * stack.c (frame_info): Only initialize the saved registers when
11112 FRAME_INIT_SAVED_REGS_P.
11113 * frame.c (frame_saved_regs_register_unwind): Assert
11114 FRAME_INIT_SAVED_REGS_P.
11115 (deprecated_generic_get_saved_register): Ditto.
11116
11117 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11118
11119 * source.c (openp): Squelch warning about "filename".
11120
11121 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11122
11123 * source.c (openp): If the file does not exist don't necessarily
11124 search the path.
11125
11126 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11127
11128 Fix PR gdb/872.
11129 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11130 (integer_types_same_name_p): New function.
11131 (rank_one_type): Use it.
11132 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11133
11134 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11135
11136 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11137 variables.
11138 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11139 * configure.in: Add --with-sysroot.
11140 * configure: Regenerated.
11141 * main.c (gdb_sysroot): New variable.
11142 (captured_main): Initialize gdb_sysroot.
11143 * defs.h (gdb_sysroot): New extern declaration.
11144 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11145
11146 2003-01-12 Michael Chastain <mec@shout.net>
11147
11148 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11149
11150 2003-01-12 Michael Chastain <mec@shout.net>
11151
11152 * top.c (print_gdb_version): Bump copyright year to 2003.
11153
11154 2003-01-12 David Carlton <carlton@bactrian.org>
11155
11156 * linespec.c (symtab_from_filename): Rename variable 's' to
11157 'file_symtab'.
11158
11159 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11160
11161 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11162 dummy frame.
11163 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11164
11165 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11166
11167 * d10v-tdep.c: Include "gdb_assert.h".
11168 (d10v_store_return_value): Rewrite to match current interface.
11169 (d10v_extract_struct_value_address): Ditto.
11170 (d10v_extract_return_value): Ditto.
11171 (d10v_gdbarch_init): Set store_restore_value,
11172 extract_struct_value_address and extract_return_value.
11173
11174 2003-01-12 J. Brobecker <brobecker@gnat.com>
11175
11176 * hpread.c (set_namestring): New procedure replacing the
11177 SET_NAMESTRING macro.
11178 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11179 by calls to set_namestring.
11180
11181 2003-01-11 J. Brobecker <brobecker@gnat.com>
11182
11183 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11184 a compilation warning.
11185 (hpread_process_one_debug_symbol): Likewise.
11186
11187 2003-01-10 David Carlton <carlton@math.stanford.edu>
11188
11189 * linespec.c (decode_line_1): Rename variable 's' to
11190 'file_symtab'.
11191 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11192 (decode_dollar): Ditto.
11193 (decode_variable): Ditto.
11194 (symbol_found): Ditto.
11195
11196 2003-01-09 Michael Chastain <mec@shout.net>
11197
11198 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11199
11200 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11201
11202 * win32-nat.c (set_process_privilege): New function.
11203 (child_attach): Call set_process_privilege() to enable the
11204 SE_DEBUG_NAME user privilege if available in process token.
11205
11206 2003-01-10 J. Brobecker <brobecker@gnat.com>
11207
11208 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11209 compilation error in the previous revision.
11210
11211 2003-01-09 David Carlton <carlton@math.stanford.edu>
11212
11213 * linespec.c: Update copyright.
11214
11215 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11216
11217 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11218 than inferior_ptid.
11219 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11220
11221 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11222
11223 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11224 Update comments.
11225 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11226 (frame_saved_regs_zalloc): Update.
11227 (frame_saved_regs_register_unwind): Update.
11228 (create_new_frame): Update.
11229 (get_prev_frame): Update.
11230 (frame_extra_info_zalloc): Update.
11231 (deprecated_get_frame_saved_regs): Update.
11232 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11233 * cris-tdep.c: Update comment.
11234
11235 * somsolib.h: Fix function indentation.
11236 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11237 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11238 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11239 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11240 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11241
11242 * infrun.c (follow_fork): Use ISO C definition.
11243 * expprint.c (print_subexp): Use xfree instead of free.
11244 * charset.c: Include "gdb_string.h" instead of <string.h>.
11245 (register_iconv_charsets): Use ISO C definition.
11246 (host_charset, target_charset): Ditto.
11247 * Makefile.in (charset.o): Update dependencies.
11248 (mi-cmd-env.o): Update dependencies.
11249
11250 2003-01-08 Andrew Cagney <cagney@redhat.com>
11251
11252 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11253 get_frame_base.
11254
11255 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11256
11257 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11258 build directories. Save edited gdb output in Mbuild.log. If a
11259 build fails, remove any final GDB executable.
11260
11261 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11262
11263 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11264 replacing hex constants with function names and stripping leading
11265 file name directory prefixes.
11266
11267 2003-01-08 Andrew Cagney <cagney@redhat.com>
11268
11269 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11270 get_frame_base.
11271
11272 2003-01-08 David Carlton <carlton@math.stanford.edu>
11273
11274 * linespec.c (decode_line_1): Move code into decode_variable.
11275 (decode_variable): New function.
11276
11277 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11278
11279 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11280
11281 2003-01-08 Andrew Cagney <cagney@redhat.com>
11282
11283 * cris-tdep.c (cris_frame_init_saved_regs): Use
11284 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11285 saved_regs buffer.
11286 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11287 (sh64_nofp_frame_init_saved_regs): Ditto.
11288 (sh_fp_frame_init_saved_regs): Ditto.
11289 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11290 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11291 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11292 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11293
11294 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11295
11296 * minsyms.c (lookup_minimal_symbol): Update comment.
11297 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11298 (lookup_minimal_symbol_solib_trampoline): Likewise.
11299
11300 2003-01-08 Andrew Cagney <cagney@redhat.com>
11301
11302 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11303 frame_relative_level.
11304
11305 * alpha-tdep.c: Use get_frame_extra_info.
11306 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11307 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11308 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11309 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11310
11311 * alpha-tdep.c: Use get_next_frame.
11312 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11313 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11314 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11315 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11316 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11317 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11318 * xstormy16-tdep.c: Ditto.
11319
11320 2003-01-07 Andrew Cagney <cagney@redhat.com>
11321
11322 * alpha-tdep.c: Use get_frame_base.
11323 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11324 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11325 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11326 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11327 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11328 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11329 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11330 * config/sparc/tm-sparc.h: Ditto.
11331
11332 2003-01-07 Andrew Cagney <cagney@redhat.com>
11333
11334 * frame.c (deprecated_get_frame_context): New function.
11335 (deprecated_set_frame_context): New function.
11336 * frame.h (deprecated_get_frame_context): Declare.
11337 (deprecated_set_frame_context): Declare.
11338 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11339 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11340
11341 2003-01-07 Andrew Cagney <cagney@redhat.com>
11342
11343 * frame.c (deprecated_set_frame_next_hack): New function.
11344 (deprecated_set_frame_prev_hack): New function.
11345 * frame.h (deprecated_set_frame_next_hack): Declare.
11346 (deprecated_set_frame_prev_hack): Declare.
11347 * mcore-tdep.c (analyze_dummy_frame): Use
11348 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11349 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11350
11351 2003-01-07 David Carlton <carlton@math.stanford.edu>
11352
11353 * linespec.c (decode_line_1): Move code into decode_dollar.
11354 (decode_dollar): New function.
11355
11356 2003-01-07 Andrew Cagney <cagney@redhat.com>
11357
11358 * arm-tdep.c (arm_init_extra_frame_info): Use
11359 deprecated_update_frame_base_hack.
11360 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11361 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11362 (fix_frame_pointer): Ditto.
11363 (mn10300_analyze_prologue): Ditto.
11364
11365 2003-01-07 Andrew Cagney <cagney@redhat.com>
11366
11367 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11368 extra_info using frame_extra_info_zalloc.
11369 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11370 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11371 (sh64_init_extra_frame_info): Ditto.
11372 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11373 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11374 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11375 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11376 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11377 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11378 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11379 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11380 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11381 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11382 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11383 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11384
11385 * mn10300-tdep.c (analyze_dummy_frame): Use
11386 deprecated_set_frame_extra_info_hack.
11387 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11388
11389 2003-01-07 J. Brobecker <brobecker@gnat.com>
11390
11391 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11392 class is not scText. These do not define "real" procedures.
11393 (parse_partial_symbols): Likewise.
11394
11395 2003-01-06 Michael Snyder <msnyder@redhat.com>
11396
11397 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11398
11399 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11400
11401 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11402 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11403 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11404 deprecated_frame_xmalloc_with_cleanup.
11405 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11406 deprecated_frame_xmalloc.
11407 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11408 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11409
11410 2003-01-06 Andrew Cagney <cagney@redhat.com>
11411
11412 * x86-64-linux-tdep.c: Include "osabi.h".
11413 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11414
11415 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11416
11417 2003-01-06 Andrew Cagney <cagney@redhat.com>
11418
11419 * MAINTAINERS (Target Instruction Set Architectures): Update
11420 arm-elf. Can be built with -Werror, has been multiarched.
11421
11422 * value.h (unpack_long): Make buffer parameter constant.
11423 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11424 * scm-lang.h (scm_parse): Ditto.
11425 * defs.h (extract_typed_address, extract_address): Ditto.
11426 (extract_long_unsigned_integer): Ditto.
11427 * inferior.h (unsigned_pointer_to_address): Ditto.
11428 (signed_pointer_to_address): Ditto.
11429 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11430 * gdbarch.h, gdbarch.c: Regenerate.
11431 * findvar.c (extract_long_unsigned_integer): Update.
11432 (extract_address): Update.
11433 (extract_typed_address): Update.
11434 (unsigned_pointer_to_address): Update.
11435 * values.c (unpack_long): Update.
11436 (unpack_double): Update.
11437 (unpack_pointer): Update.
11438 (unpack_field_as_long): Update.
11439 * d10v-tdep.c (d10v_pointer_to_address): Update.
11440 * avr-tdep.c (avr_pointer_to_address): Update.
11441 * scm-lang.c (scm_unpack): Update.
11442 * findvar.c (signed_pointer_to_address): Update.
11443
11444 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11445
11446 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11447 since it is in i386-tdep.c.
11448
11449 2003-01-06 J. Brobecker <brobecker@gnat.com>
11450
11451 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11452 failure introduced in the previous change.
11453
11454 2003-01-05 Michael Chastain <mec@shout.net>
11455
11456 * README: Remove references to deleted remote-*.c files:
11457 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11458 remote-nrom.c, remote-os9k.c, remote-udi.c.
11459
11460 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11461
11462 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11463 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11464 i386_get_longjmp_target.
11465
11466 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11467
11468 * arm-tdep.c (prologue_cache): Change to a pointer.
11469 (_initialize_arm_tdep): Allocate prologue_cache.
11470 (check_prologue_cache): Update.
11471 (save_prologue_cache): Update.
11472 (arm_gdbarch_init): Update.
11473
11474 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11475
11476 * stabsread.c (update_method_name_from_physname): Call complaint()
11477 instead of error.
11478
11479 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11480
11481 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11482 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11483 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11484
11485 * blockframe.c: Include "gdbcmd.h" and "command.h".
11486 (backtrace_below_main): New variable.
11487 (file_frame_chain_valid, func_frame_chain_valid)
11488 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11489 (generic_func_frame_chain_valid): Remove functions.
11490 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11491 (_initialize_blockframe): New function.
11492 * Makefile.in (blockframe.o): Update dependencies.
11493 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11494 comment. Call frame_chain_valid ().
11495 * frame.h: Remove old prototypes. Add prototype for
11496 frame_chain_valid and update comments to match.
11497 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11498 Remove old comment.
11499 * gdbarch.h: Regenerated.
11500 * gdbarch.c: Regenerated.
11501
11502 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11503 set_gdbarch_frame_chain_valid.
11504 * avr-tdep.c (avr_gdbarch_init): Likewise.
11505 * cris-tdep.c (cris_gdbarch_init): Likewise.
11506 * frv-tdep.c (frv_gdbarch_init): Likewise.
11507 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11508 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11509 (i386_nw_init_abi): Likewise.
11510 (i386_gdbarch_init): Likewise.
11511 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11513 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11514 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11515 * mips-tdep.c (mips_gdbarch_init): Likewise.
11516 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11517 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11518 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11519 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11520 * s390-tdep.c (s390_gdbarch_init): Likewise.
11521 * sh-tdep.c (sh_gdbarch_init): Likewise.
11522 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11523 * v850-tdep.c (v850_gdbarch_init): Likewise.
11524 * vax-tdep.c (vax_gdbarch_init): Likewise.
11525 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11526
11527 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11528 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11529 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11530 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11531 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11532 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11533 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11534 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11535
11536 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11537
11538 * Makefile.in (acconfig_h): Remove incorrect macro.
11539 (config_h): Define.
11540 (osabi.o): Update dependencies.
11541 * configure.tgt: Set gdb_osabi based on target triplet.
11542 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11543 * configure: Regenerated.
11544 * config.in: Regenerated.
11545 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11546 (GDB_OSABI_DEFAULT): Define if not already defined.
11547 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11548 (set_osabi_string): New variables.
11549 (gdbarch_register_osabi): Add new OS ABI to
11550 gdb_osabi_available_names.
11551 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11552 (set_osabi, show_osabi): New functions.
11553 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11554
11555 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11556
11557 * arch-utils.c (gdbarch_info_init): Set osabi to
11558 GDB_OSABI_UNINITIALIZED.
11559 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11560 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11561 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11562 * gdbarch.c: Regenerated.
11563 * gdbarch.h: Regenerated.
11564 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11565 there's no BFD.
11566 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11567 * osabi.h (enum gdb_osabi): Move to defs.h.
11568 (gdbarch_init_osabi): Update prototype.
11569 * defs.h (enum gdb_osabi): Moved here.
11570 * Makefile.in: Update dependencies.
11571
11572 * alpha-tdep.h: Don't include "osabi.h".
11573 (struct gdbarch_tdep): Remove osabi member.
11574 * alpha-tdep.c: Include "osabi.h".
11575 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11576 iterate over arches. Update call to gdbarch_init_osabi.
11577 (alpha_dump_tdep): Don't dump osabi.
11578 * alpha-linux-tdep.c: Include "osabi.h".
11579 * alpha-osf1-tdep.c: Include "osabi.h".
11580 * alphafbsd-tdep.c: Include "osabi.h".
11581 * alphanbsd-tdep.c: Include "osabi.h".
11582
11583 * arm-tdep.h: Don't include "osabi.h".
11584 (struct gdbarch_tdep): Remove osabi member.
11585 * arm-tdep.c: Include "osabi.h".
11586 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11587 iterate over arches. Update call to gdbarch_init_osabi.
11588 (arm_dump_tdep): Don't dump osabi.
11589 * arm-linux-tdep.c: Include "osabi.h".
11590 * armnbsd-tdep.c: Include "osabi.h".
11591
11592 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11593 Update call to gdbarch_init_osabi.
11594
11595 * i386-tdep.h: Don't include "osabi.h".
11596 (struct gdbarch_tdep): Remove osabi member.
11597 * i386-tdep.c: Include "osabi.h".
11598 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11599 iterate over arches. Update call to gdbarch_init_osabi.
11600 (i386_dump_tdep): Don't dump osabi.
11601 * i386-linux-tdep.c: Include "osabi.h".
11602 * i386-sol2-tdep.c: Include "osabi.h".
11603 * i386bsd-tdep.c: Include "osabi.h".
11604 * i386gnu-tdep.c: Include "osabi.h".
11605 * i386ly-tdep.c: Include "osabi.h".
11606 * i386nbsd-tdep.c: Include "osabi.h".
11607 * i386obsd-tdep.c: Include "osabi.h".
11608
11609 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11610 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11611 check osabi when iterating over arches. Update call to
11612 gdbarch_init_osabi.
11613 (mips_dump_tdep): Don't dump osabi.
11614
11615 * ns32k-tdep.h: Don't include "osabi.h".
11616 (struct gdbarch_tdep): Remove.
11617 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11618 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11619 allocate tdep. Update call to gdbarch_init_osabi.
11620 (ns32k_dump_tdep): Remove.
11621 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11622 * ns32knbsd-tdep.c: Include "osabi.h".
11623
11624 * ppc-tdep.h: Don't include "osabi.h".
11625 (struct gdbarch_tdep): Remove osabi member.
11626 * rs6000-tdep.c: Include "osabi.h".
11627 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11628 osabi when iterating over arches. Update call to
11629 gdbarch_init_osabi.
11630 (rs6000_dump_tdep): Don't dump osabi.
11631 * ppc-linux-tdep.c: Include "osabi.h".
11632 * ppcnbsd-tdep.c: Include "osabi.h".
11633
11634 * sh-tdep.h: Don't include "osabi.h".
11635 (struct gdbarch_tdep): Remove osabi member.
11636 * sh-tdep.c: Include "osabi.h".
11637 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11638 iterate over arches. Update call to gdbarch_init_osabi.
11639 (sh_dump_tdep): Don't dump osabi.
11640 * shnbsd-tdep.c: Include "osabi.h".
11641
11642 * sparc-tdep.c: Include "osabi.h".
11643 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11644 iterate over arches. Update call to gdbarch_init_osabi.
11645 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11646 tdep structure.
11647
11648 * vax-tdep.h: Don't include "osabi.h".
11649 (struct gdbarch_tdep): Remove.
11650 * vax-tdep.c: Include "osabi.h".
11651 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11652 iterate over arches. Don't allocate tdep. Update call
11653 to gdbarch_init_osabi.
11654 (vax_dump_tdep): Remove.
11655 (_initialize_vax_tdep): Update call to gdbarch_register.
11656
11657 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11658
11659 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11660 entirely.
11661 (breakpoint_re_set_one): Don't fetch the value for a disabled
11662 watchpoint.
11663
11664 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11665
11666 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11667 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11668 (COERCE_FLOAT_TO_DOUBLE): Remove.
11669 * gdbarch.c: Regenerate.
11670 * gdbarch.h: Regenerate.
11671 * Makefile.in: Remove value_h from gdbarch_h.
11672 * valops.c (coerce_float_to_double): New variable.
11673 (default_coerce_float_to_double): Remove.
11674 (standard_coerce_float_to_double): Remove.
11675 (value_arg_coerce): Use coerce_float_to_double.
11676 (_initialize_valops): Add "set coerce-float-to-double".
11677 * value.h (default_coerce_float_to_double): Remove prototype.
11678 (standard_coerce_float_to_double): Remove prototype.
11679
11680 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11681 prototyped.
11682 * mdebugread.c (parse_symbol): Likewise.
11683 * stabsread.c (define_symbol): Mark all functions as prototyped.
11684
11685 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11686 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11687 set_gdbarch_coerce_float_to_double.
11688 * arm-tdep.c (arm_gdbarch_init): Likewise.
11689 * frv-tdep.c (frv_gdbarch_init): Likewise.
11690 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11691 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11692 * mips-tdep.c (mips_gdbarch_init): Likewise.
11693 (mips_coerce_float_to_double): Remove.
11694 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11695 (rs6000_coerce_float_to_double): Remove.
11696 * s390-tdep.c (s390_gdbarch_init): Likewise.
11697 * sh-tdep.c (sh_gdbarch_init): Likewise.
11698 (sh_coerce_float_to_double): Remove.
11699 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11700 (sparc_coerce_float_to_double): Remove.
11701 * v850-tdep.c (v850_gdbarch_init): Likewise.
11702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11703 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11704 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11705 (hppa_coerce_float_to_double): Remove prototype.
11706 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11707
11708 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11709
11710 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11711
11712 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11713
11714 Suggested by Stewart Brown <sb24@avaya.com>:
11715 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11716 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11717 (c_type_print_varspec_suffix): Likewise.
11718
11719 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11720
11721 * configure.in: Don't set and AC_SUBST SUBDIRS.
11722 * configure: Regenerated.
11723
11724 * configure.in: Remove code dealing with shared libraries.
11725 * Makefile.in: Remove HLDFLAGS and HLDENV.
11726 * configure: Regenerated.
11727
11728 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11729
11730 * frame.c (deprecated_frame_xmalloc): New function.
11731 (deprecated_set_frame_saved_regs_hack): New function.
11732 (deprecated_set_frame_extra_info_hack): New function.
11733 * frame.h (deprecated_frame_xmalloc): Declare.
11734 (deprecated_set_frame_saved_regs_hack): Declare.
11735 (deprecated_set_frame_extra_info_hack): Declare.
11736
11737 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11738
11739 * configure.in: Move code that provides the --enable-gdbtk option
11740 right after the code that handles the --enable-tui option, and
11741 polish it somewhat.
11742 * configure: Regenerated.
11743
11744 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11745 AC_CHECK_FUNCS and remove the old check for pread64.
11746 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11747 * acconfig.h (_GNU_SOURCE): Add.
11748 (HAVE_PREAD64): Remove.
11749 * configure, aclocal.m4, config.in: Regenerated.
11750
11751 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11752
11753 * alpha-tdep.c: Use get_frame_saved_regs.
11754 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11755 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11756 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11757 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11758 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11759
11760 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11761
11762 * configure.in: Remove all use of the SUBDIRS variable; add
11763 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11764 code providing the --enable-multi-ice option, and move it right in
11765 front of the code that checks whether gdbserver is supported.
11766 Polish that too.
11767 * configure: Regenerated.
11768 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11769 @SUBDIRS@.
11770
11771 2003-01-03 Andrew Cagney <cagney@redhat.com>
11772
11773 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11774 * avr-tdep.c, cris-tdep.c: Ditto.
11775 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11776 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11777
11778 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11779
11780 * configure.in: Remove --enable-netrom option.
11781 * configure: Regenerated.
11782
11783 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11784
11785 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11786 declaration for `struct re_pattern_buffer' instead.
11787 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11788
11789 2003-01-03 J. Brobecker <brobecker@gnat.com>
11790
11791 * mdebugread.c (parse_symbol): Count until the stEnd matching
11792 the structure name.
11793
11794 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11795
11796 * configure.in: Remove --with-cpu option.
11797 subscripts. Remove evil changequotes here.
11798 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11799 * config.in, configure: Regenerated.
11800
11801 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11802 * configure.in: Cleanup section that sources GDB and BFD configure
11803 subscripts. Remove evil changequotes here.
11804 * config.in, configure: Regenerated.
11805
11806 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11807
11808 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11809 frame accessor methods.
11810 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11811 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11812 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11813 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11814 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11815 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11816 * z8k-tdep.c: Ditto.
11817
11818 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11819
11820 * configure.in: Remove UI_OUT configuration code.
11821 * ada-lang.c: Update assuming UI_OUT is always true.
11822 * Makefile.in (UIOUT_CFLAGS): Remove.
11823 * configure: Regenerated.
11824 * TODO: Remove blurb about elimination of -DUI_OUT.
11825
11826 * configure.in: Move code that provides the --enable-gdbcli,
11827 --enable-gdbmi options right before the code that handles the
11828 --enable-tui option. Polish a bit.
11829 * configure: Regenerated.
11830
11831 * configure.in: Rewrite check for GNU regex and the
11832 --without-included regex option, and move it into the "Checks for
11833 library functions" section. This makes us use the system regex
11834 again by default on systems with version 2 of the GNU C library.
11835 This was apparently broken.
11836 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11837 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11838 * config.in, configure: Regenerated.
11839
11840 * configure.in: Move code that provides the --enable-tui option
11841 before the "Checks for libraries" section. Polish the code
11842 somewhat and set need_curses to yes if we build the TUI. Rewrite
11843 code that looks for a library providing termcap functionality to
11844 match more closely what's done in the Readline library, and move
11845 it into to the "Checks for libraries" section.
11846 * configure: Regenerated.
11847 * Makefile.in (TERMCAP): Remove variable.
11848 * config/i386/go32.mh (TERMCAP): Remove variable.
11849
11850 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11851
11852 * MAINTAINERS: Mention gdb_mbuild.sh.
11853 * gdb_mbuild.sh: Rewrite.
11854
11855 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11856
11857 * configure.in: Fix typo in last change.
11858 * config.in, configure: Regenerated.
11859
11860 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11861
11862 * valarith.c (value_binop): Delete obsolete code and comments.
11863 * configure.host: Ditto.
11864 * buildsym.h (make_blockvector): Ditto.
11865 * buildsym.c (make_blockvector): Ditto.
11866 * defs.h (enum language): Ditto.
11867 (chill_demangle): Ditto.
11868 * elfread.c (elf_symtab_read): Ditto.
11869 * dwarfread.c (CHILL_PRODUCER): Ditto.
11870 (set_cu_language): Ditto.
11871 (handle_producer): Ditto.
11872 * expprint.c (print_subexp): Ditto.
11873 * gdbtypes.c (chill_varying_type): Ditto.
11874 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11875 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11876 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11877 (chill_varying_type): Ditto.
11878 * language.h (_LANG_chill): Ditto.
11879 * language.c (binop_result_type, integral_type): Ditto.
11880 (character_type, string_type, structured_type): Ditto.
11881 (lang_bool_type, binop_type_check): Ditto.
11882 * stabsread.h (os9k_stabs): Ditto.
11883 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11884 (define_symbol, read_type, read_struct_fields): Ditto.
11885 (read_array_type, read_enum_type, read_huge_number): Ditto.
11886 (read_range_type, start_stabs): Ditto.
11887 * symfile.c (init_filename_language_table): Ditto.
11888 (add_psymbol_with_dem_name_to_list): Ditto.
11889 * symtab.c (symbol_init_language_specific): Ditto.
11890 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11891 * symtab.h (struct general_symbol_info): Ditto.
11892 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11893 * typeprint.c (typedef_print): Ditto.
11894 * utils.c (fprintf_symbol_filtered): Ditto.
11895 * valops.c (value_cast, search_struct_field, value_slice): Delete
11896 obsolete code.
11897 (varying_to_slice): Delete function.
11898 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11899 (varying_to_slice): Delete declaration.
11900 * MAINTAINERS: Update.
11901
11902 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11903
11904 * configure.in: Reorganize "Checks for library functions section"
11905 a bit. Remove check for `btowc' and `isascii' functions.
11906 * configure: Regenerated.
11907
11908 * acconfig.h (_MSE_INT_H): Remove.
11909 * configure.in: Create "Checks for header files" section, and move
11910 appropriate tests there. Don't check for objlist.h, wchar.h,
11911 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11912 misdetection fix. Also add "Checks for types", "Checks for
11913 compiler characteristics" and "Checks for library functions"
11914 sections.
11915 * config.in, configure: Regenerated.
11916
11917 * configure.in: Create "Checks for programs" section, and move
11918 appropriate tests there.
11919
11920 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11921
11922 * configure.in: Create "Checks for libraries" section, and move
11923 appropriate tests there. Cleanup check for wctype in libw. Use
11924 AC_SEARCH_LIBS to see whether we need libsocket.
11925 * configure: Regenerated.
11926
11927 For older changes see ChangeLog-2002
11928 \f
11929 Local Variables:
11930 mode: change-log
11931 left-margin: 8
11932 fill-column: 74
11933 version-control: never
11934 End:
This page took 0.29446 seconds and 4 git commands to generate.