2003-09-12 Andrew Cagney <cagney@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-12 Andrew Cagney <cagney@redhat.com>
2
3 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
4 "entry_file_highpc". Update comments.
5 * defs.h (deprecated_inside_entry_file): Rename
6 "inside_entry_file".
7 * blockframe.c (deprecated_inside_entry_file): Rename
8 "inside_entry_file".
9 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
10 * vax-tdep.c (vax_frame_chain): Update.
11 * sh64-tdep.c (sh64_frame_chain): Update.
12 * sh-tdep.c (sh_frame_chain): Update.
13 * rs6000-tdep.c (rs6000_frame_chain): Update.
14 * ns32k-tdep.c (ns32k_frame_chain): Update.
15 * mips-tdep.c (mips_frame_chain): Update.
16 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
17 * m32r-tdep.c (m32r_frame_this_id): Update.
18 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
19 * frv-tdep.c (frv_frame_this_id): Update.
20 * d10v-tdep.c (d10v_frame_this_id): Update.
21 * cris-tdep.c (cris_frame_chain): Update.
22 * blockframe.c (legacy_frame_chain_valid): Update.
23 * avr-tdep.c (avr_frame_this_id): Update.
24 * arm-tdep.c (arm_prologue_this_id): Update.
25 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
26 * objfiles.c (objfile_relocate): Update.
27 * mipsread.c (mipscoff_symfile_read): Update.
28 (mipscoff_symfile_read): Update.
29 * mdebugread.c (parse_partial_symbols): Update.
30 * dwarfread.c (read_file_scope): Update.
31 * dwarf2read.c (read_file_scope): Update.
32 * dbxread.c (read_dbx_symtab): Update.
33 (read_dbx_symtab): Update.
34 * coffread.c (complete_symtab): Update.
35
36 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
37
38 * top.c (quit_target): New static helper function.
39 (quit_force): Moved code to quit_target(). Call quit_target()
40 via catch_errors() to catch errors during quit.
41
42 2003-09-11 David Carlton <carlton@kealia.com>
43
44 * buildsym.c (finish_block): Use allocate_block to allocate the
45 block.
46 * mdebugread.c (new_block): Add FIXME.
47
48 2003-09-11 David Carlton <carlton@kealia.com>
49
50 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
51 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
52 (recursive_dump_type): Ditto.
53 * printcmd.c (print_formatted): Ditto.
54 * typeprint.c (print_type_scalar): Ditto.
55 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
56 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
57 * cp-support.h: Declare cp_check_possible_namespace_symbols,
58 maint_cplus_cmd_list.
59 * cp-support.c: Make maint_cplus_cmd_list extern.
60 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
61 command.h.
62 (lookup_symbol_file): Look in possible namespace blocks when
63 appropriate.
64 (initialize_namespace_symtab): New.
65 (get_possible_namespace_block, free_namespace_block)
66 (check_possible_namespace_symbols)
67 (check_possible_namespace_symbols_loop)
68 (check_one_possible_namespace_symbol)
69 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
70 (_initialize_cp_namespace): Ditto.
71 * block.h: Declare allocate_block.
72 * block.c (allocate_block): New.
73 * jv-lang.c (get_java_class_symtab): Allocate blocks via
74 allocate_block.
75 * symfile.h: Update declaration of add_psymbol_to_list.
76 * symfile.c (add_psymbol_to_list): Return the partial symbol in
77 question.
78 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
79 scan_partial_symbols_call.
80 (scan_partial_symbols): Add NAMESPACE argument; update calls to
81 helper functions.
82 (add_partial_symbol): If necessary, scan mangled names for names
83 of namespaces.
84 (add_partial_namespace): Add NAMESPACE argument; generate partial
85 symbols associated to namespaces.
86 (add_partial_enumeration): Add NAMESPACE argument.
87 (new_symbol): Allow namespace syms.
88 (read_namespace): Generate namespace syms.
89 * objfiles.h: Add opaque declaration of struct symtab.
90 (struct objfile): Add cp_namespace_symtab member.
91 * objfiles.c (allocate_objfile): Set
92 objfile->cp_namespace_symtab.
93 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
94 dictionary_h, command_h.
95
96 2003-09-11 Andrew Cagney <cagney@redhat.com>
97
98 * rs6000-tdep.c (rs6000_push_dummy_call): Use
99 regcache_raw_write_signed to set SP_REGNUM, move the operation to
100 near the function's end.
101 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
102 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
103 regcache_raw_write_signed to set SP_REGNUM.
104
105 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
106
107 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
108 orig_addrs is set up properly.
109
110 2003-09-11 Andrew Cagney <cagney@redhat.com>
111
112 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
113 * gdbarch.h, gdbarch.c: Re-generate.
114 * infcall.c (call_function_by_hand): Update.
115 * hppa-tdep.c (hppa_push_arguments): Update.
116 * ada-lang.c (place_on_stack): Update.
117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
118 * sparc-tdep.c (sparc_gdbarch_init): Update.
119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
120 * hppa-tdep.c (hppa_gdbarch_init): Update.
121 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
122 stack_align.
123
124 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
125
126 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
127 register do need a frame.
128
129 2003-09-11 Andrew Cagney <cagney@redhat.com>
130
131 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
132 buildable since GDB 5.0.
133 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
134 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
135 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
136 * irix4-nat.c: Delete file.
137 * config/mips/irix4.mh: Delete file.
138 * config/mips/irix3.mh: Delete file.
139 * config/mips/irix3.mt: Delete file.
140 * config/mips/tm-irix3.h: Delete file.
141 * config/mips/nm-irix3.h: Delete file.
142 * config/mips/xm-irix3.h: Delete file.
143 * config/mips/nm-irix4.h: Delete file.
144 * config/mips/xm-irix4.h: Delete file.
145 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
146
147 2003-09-10 J. Brobecker <brobecker@gnat.com>
148
149 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
150 * Makefile.in (hppa-tdep.o): Update dependencies.
151
152 2003-09-10 James E Wilson <wilson@specifixinc.com>
153
154 * MAINTAINERS: Change my e-mail address. Move to paper trail
155 section.
156
157 2003-09-10 Kevin Buettner <kevinb@redhat.com>
158
159 * MAINTAINERS (frv): New ISA entry.
160
161 2003-09-10 Kevin Buettner <kevinb@redhat.com>
162
163 * frv-tdep.c (dis-asm.h): Include.
164 * Makefile.in (frv-tdep.o): Update dependencies.
165
166 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
167
168 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
169 Fix typo for high range of floating registers.
170
171 2003-09-09 David Carlton <carlton@kealia.com>
172
173 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
174 highpc initialization here out of scan_partial_symbols.
175 (scan_partial_symbols): Restructure into a recursive version,
176 calling add_partial_namespace and add_partial_enumeration when
177 appropriate.
178 (add_partial_namespace): New.
179 (add_partial_enumeration, locate_pdi_sibling): Ditto.
180
181 2003-09-09 Andrew Cagney <cagney@redhat.com>
182
183 * rs6000-tdep.c (ppc_push_return_address): Delete function.
184 (rs6000_push_dummy_call): Set LR to BP_ADDR.
185 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
186 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
187
188 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
189 (rs6000_push_dummy_call): Set the "TOC" register.
190
191 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
192 methods "max_register_raw_size", "max_register_virtual_size" or
193 "register_virtual_size".
194
195 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
196
197 * MAINTAINERS: Update my e-mail address.
198
199 2003-09-09 Andrew Cagney <cagney@redhat.com>
200
201 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
202 (rs6000_push_dummy_call): Store the struct return address.
203 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
204
205 2003-09-09 Andrew Cagney <cagney@redhat.com>
206
207 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
208 "ppc_sysv_abi_push_arguments".
209 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
210 "ppc_sysv_abi_push_arguments".
211 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
212 instead of "push_arguments".
213 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
214
215 2003-09-09 Andrew Cagney <cagney@redhat.com>
216
217 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
218 instead of CALL_DUMMY_ADDRESS.
219
220 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
221
222 * p-lang.c: Eliminate "register".
223 * c-lang.c: Ditto.
224 * expprint.c: Ditto.
225 * f-lang.c: Ditto.
226 * jv-lang.c: Ditto.
227 * language.c: Ditto.
228 * m2-lang.c: Ditto.
229 * parse.c: Ditto.
230 * scm-lang.c: Ditto.
231 * objc-lang.c: Ditto.
232
233 2003-09-09 Nick Clifton <nickc@redhat.com>
234
235 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
236
237 2003-09-04 Andrew Cagney <cagney@redhat.com>
238
239 * avr-tdep.c: Include "dis-asm.h".
240 * cris-tdep.c: Include "dis-asm.h".
241 (cris_delayed_get_disassembler): Use "struct disassemble_info"
242 instead of corresponding typedef.
243 * h8300-tdep.c: Include "dis-asm.h".
244 * ia64-tdep.c: Include "dis-asm.h".
245 * i386-tdep.c: Include "dis-asm.h".
246 (i386_print_insn): Use "struct disassemble_info" instead of
247 corresponding typedef.
248 * m68k-tdep.c: Include "dis-asm.h".
249 * mcore-tdep.c: Include "dis-asm.h".
250 * mips-tdep.c: Include "dis-asm.h".
251 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
252 instead of corresponding typedef.
253 * ns32k-tdep.c: Include "dis-asm.h".
254 * s390-tdep.c: Include "dis-asm.h".
255 * sparc-tdep.c: Include "dis-asm.h".
256 * vax-tdep.c: Include "dis-asm.h".
257 * v850-tdep.c: Include "dis-asm.h".
258 * mn10300-tdep.c: Include "dis-asm.h".
259 * rs6000-tdep.c: Include "dis-asm.h".
260 * xstormy16-tdep.c: Include "dis-asm.h".
261 (_initialize_xstormy16_tdep): Delete "extern" declaration of
262 print_insn_xstormy16.
263 * Makefile.in (v850-tdep.o): Update dependencies.
264 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
265 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
266 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
267 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
268 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
269 (gdbarch_h): Remove $(dis_asm_h).
270 * disasm.c: Include "dis-asm.h".
271 (dis_asm_read_memory): Use "struct disassemble_info" instead of
272 corresponding typedef.
273 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
274 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
275 * gdbarch.sh: Do not include "dis-asm.h".
276 (struct disassemble_info): Declare opaque.
277 (TARGET_PRINT_INSN): Update declaration.
278 * gdbarch.h, gdbarch.c: Re-generate.
279
280 2003-09-08 Andrew Cagney <cagney@redhat.com>
281
282 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
283 CALL_DUMMY_ADDRESS, change to a predicate.
284 * gdbarch.h, gdbarch.c: Re-generate.
285 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
286 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
287 * infcall.c (call_function_by_hand): Ditto.
288 * sparc-tdep.c (sparc_push_return_address): Ditto.
289 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
290 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
291 CALL_DUMMY_ADDRESS with entry_point_address.
292 * v850-tdep.c (v850_push_return_address): Ditto.
293 * s390-tdep.c (s390_push_return_address): Ditto.
294 * rs6000-tdep.c (ppc_push_return_address): Ditto.
295 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
296 * mcore-tdep.c (mcore_push_return_address): Ditto.
297 * cris-tdep.c (cris_push_return_address): Ditto.
298 * arm-tdep.c (arm_push_return_address): Ditto.
299
300 2003-09-08 Andrew Cagney <cagney@redhat.com>
301
302 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
303 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
304 and REG_UNMODIFIED to REG_SAME_VALUE.
305 (execute_cfa_program): Update.
306 (dwarf2_frame_cache): Update. Initialize table to
307 REG_UNSPECIFIED, complain if CFI fails to specify a register's
308 location.
309 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
310
311 2003-09-08 Andrew Cagney <cagney@redhat.com>
312
313 * gnu-nat.c: Remove "inline" function attribute.
314 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
315
316 2003-09-08 Kevin Buettner <kevinb@redhat.com>
317
318 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
319 target.
320
321 2003-09-08 Kevin Buettner <kevinb@redhat.com>
322
323 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
324 (frame_extra_info): Rename this struct to frv_unwind_cache.
325 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
326 Add fields ``prev_sp'' and ``base''.
327 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
328 (frv_saved_pc_after_call, frv_init_extra_frame_info)
329 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
330 Delete.
331 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
332 Revise all callers. Fill in the unwind cache argument and make
333 other adjustments to account for new frame mechanisms.
334 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
335 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
336 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
337 (frv_frame_unwind, frv_frame_base): New structs.
338 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
339 additional arguments expected by this method and adjust function
340 body accordingly.
341 (frv_gdbarch_init): Remove calls to the following functions:
342 set_gdbarch_deprecated_init_frame_pc(),
343 set_gdbarch_deprecated_saved_pc_after_call(),
344 set_gdbarch_deprecated_frame_chain(),
345 set_gdbarch_deprecated_frame_saved_pc(),
346 set_gdbarch_deprecated_frame_init_saved_regs(),
347 set_gdbarch_deprecated_push_arguments(),
348 set_gdbarch_deprecated_push_return_address(),
349 set_gdbarch_deprecated_pop_frame(),
350 set_gdbarch_deprecated_call_dummy_words(),
351 set_gdbarch_deprecated_sizeof_call_dummy_words(),
352 set_gdbarch_deprecated_init_extra_frame_info(),
353 set_gdbarch_deprecated_dummy_write_sp(), and
354 set_gdbarch_deprecated_pc_in_call_dummy().
355 Add calls to the following functions:
356 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
357 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
358 frame_base_set_default().
359 * Makefile.in (frv-tdep.o): Update dependencies.
360
361 2003-09-09 Mark Kettenis <kettenis@gnu.org>
362
363 * dwarf2-frame.c (read_encoded_value): Add support for
364 DW_EH_PE_aligned encoding.
365
366 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
367
368 * infrun.c (normal_stop): Don't print a message if the inferior
369 has exited.
370
371 2003-09-08 Jim Blandy <jimb@redhat.com>
372
373 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
374 * dbxread.c: #include "gdb_assert.h".
375 (read_dbx_symtab): If the objfile has no .data section, use the
376 section index for the .bss section instead.
377
378 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
379
380 * frame.c (deprecated_safe_get_selected_frame): New function.
381 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
382 * findvar.c (read_var_value): Call it.
383
384 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
385
386 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
387 (sh64-tdep.o): Add dependencies.
388 * configure.tgt: Add FIXME to sh-*-linux*.
389 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
390 (sh_gdbarch_init): Always set correct sh_show_regs function
391 pointer. Call sh64_gdbarch_init() if machine type is sh5.
392 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
393 * sh64-tdep.c: New file, containing all sh64 related code from
394 sh-tdep.c.
395 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
396 * config/sh/linux.mt (TDEPFILES): Ditto.
397 * config/sh/nbsd.mt (TDEPFILES): Ditto.
398 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
399 * config/sh/wince.mt (TDEPFILES): Ditto.
400
401 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
402
403 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
404 (stop_wait_callback): Handle !lp->signalled also.
405 (lin_lwp_has_pending, flush_callback): New functions.
406 (lin_lwp_wait): Call flush_callback.
407 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
408 (linux_proc_pending_signals): New function.
409 * linux-nat.h (linux_proc_pending_signals): Add prototype.
410
411 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
412
413 From Nick Kelsey <nickk@ubicom.com>:
414 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
415 when the stop PC is at the beginning of a function also.
416
417 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
418
419 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
420 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
421
422 2003-09-06 Mark Kettenis <kettenis@gnu.org>
423
424 * sol-thread.c: Include "gdb_string.h".
425
426 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
427
428 * gcore.c: Reorder include files in alphabetical order. Include
429 "gdb_assert.h". Various coding style fixes.
430 (derive_stack_segment, derive_heap_segment): Replace check for
431 non-null BOTTOM and TOP with gdb_assert.
432 (derive_heap_segment): Replace check for successful creation of
433 ZERO with gdb_assert.
434 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
435
436 2003-09-04 Andrew Cagney <cagney@redhat.com>
437
438 * thread-db.c (verbose_dlsym): New function.
439 (thread_db_load): Use verbose_dlsym
440 (thread_db_new_objfile): Print that libthread_db was loaded, and
441 that thread debugging was enabled.
442
443 2003-09-04 Andrew Cagney <cagney@redhat.com>
444
445 * configure.tgt: Add "mips64*-*-*" target. Delete
446 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
447 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
448 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
449 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
450 mips*-sony-*, and mips64*-*-elf* targets.
451 * config/mips/embedl.mt: Delete file.
452 * config/mips/embedl64.mt: Delete file.
453 * config/mips/mips.mt: Delete file.
454 * config/mips/mips64.mt: Delete file.
455 * config/mips/tm-embed.h: Delete file.
456 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
457 * config/mips/embed64.mt: Delete out-of-date comment.
458
459 2003-09-04 Andrew Cagney <cagney@redhat.com>
460
461 * hppa-tdep.c (hppa_gdbarch_init): Set
462 "have_nonsteppable_watchpoint".
463 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
464 * mips-tdep.c (mips_dump_tdep): Do not print
465 HAVE_NONSTEPPABLE_WATCHPOINT.
466 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
467 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
468 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
469 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
470
471 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
472
473 * breakpoint.c (watchpoint_check): Remove accidentally checked in
474 unused code. Add comment.
475
476 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
477
478 * breakpoint.c (watchpoint_check): Check for pc being in an
479 epilogue if watchpoint frame couldn't be found.
480
481 2003-09-04 Andrew Cagney <cagney@redhat.com>
482
483 * Makefile.in: Re-generate all dependencies.
484
485 2003-09-03 Andrew Cagney <cagney@redhat.com>
486
487 * arch-utils.h (legacy_print_insn): Delete declaration.
488 * arch-utils.c (legacy_print_insn): Delete function.
489 * disasm.c (deprecated_tm_print_insn_info): Delete.
490 (_initialize_disasm): Delete function, contained code initializing
491 deprecated_tm_print_insn_info.
492 * gdbarch.sh (deprecated_tm_print_insn): Delete.
493 (deprecated_tm_print_insn_info): Delete.
494 (TARGET_PRINT_INSN): Do not provide a default.
495 * gdbarch.h, gdbarch.c: Re-generate.
496
497 2003-09-03 Andrew Cagney <cagney@redhat.com>
498
499 * disasm.c (fprintf_disasm): New function.
500 (gdb_disassemble_info): Call "init_disassemble_info", instead of
501 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
502 reverts 2003-08-14 change.
503 (_initialize_disasm): Call "init_disassemble_info", instead of
504 INIT_DISASSEMBLE_INFO_NO_ARCH.
505
506 2003-09-03 Michael Snyder <msnyder@redhat.com>
507
508 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
509
510 2003-09-03 Andrew Cagney <cagney@redhat.com>
511
512 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
513 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
514 * symfile.c (syms_from_objfile): Update.
515 (reread_symbols): `Update
516 * exec.c (exec_file_attach): Update.
517 (exec_file_attach): Update.
518 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
519 2003-08-29 change.
520 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
521
522 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
523
524 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
525 trad-frame.h.
526 (arm_get_cache): Delete macro.
527 (struct arm_prologue_cache): Update comments. Make saved_regs into
528 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
529 to prev_sp.
530 (thumb_scan_prologue): Update for cache changes. Don't call
531 DEPRECATED_PC_IN_CALL_DUMMY.
532 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
533 argument and use it in desperation search for our prologue. Do not
534 search past the specified PC.
535 (arm_make_prologue_cache): Simplify.
536
537 (arm_prologue_this_id, arm_prologue_prev_register)
538 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
539 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
540 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
541 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
542 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
543
544 (arm_frame_chain_valid, arm_find_callers_reg)
545 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
546 (arm_pop_frame): Delete obsolete methods.
547 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
548
549 (arm_gdbarch_init): Update for new frame methods. Register prologue
550 and sigtramp unwinders. Set the default frame base method.
551
552 * Makefile.in (arm-tdep.o): Update dependencies.
553 * varobj.c (find_frame_addr_in_frame_chain): Call
554 get_frame_base_address.
555 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
556
557 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
558
559 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
560 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
561 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
562 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
563 Take NEXT_FRAME and CACHE arguments. Call
564 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
565 Set unwound_pc in CACHE instead of modifying the frame argument.
566 Don't bother checking the frame type when looking for sigtramp
567 frames.
568 (arm_make_prologue_cache, arm_frame_chain)
569 (arm_init_extra_frame_info): New functions.
570
571 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
572
573 * arm-tdep.c (arm_get_cache): Define.
574 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
575 unwound_sp, unwound_pc, and saved_regs.
576 (thumb_scan_prologue): Take a cache instead of the frame.
577 (arm_scan_prologue): Likewise.
578 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
579 instead of a temporary frame.
580 (arm_init_extra_frame_info): Allocate and use a cache.
581 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
582
583 2003-09-03 Andrew Cagney <cagney@redhat.com>
584
585 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
586 * config/mips/wince.mt (TM_CLIBS): Ditto.
587 * config/sh/wince.mt (TM_CLIBS): Ditto.
588 * config/pa/hppa64.mt (TM_CLIBS): Delete.
589 * config/sparc/sp64.mt (CC): Delete.
590
591 2003-09-03 Andrew Cagney <cagney@redhat.com>
592
593 * defs.h: Do not include "arch-utils.h".
594 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
595 GDB_MULTI_ARCH_PURE.
596 * configure.in (GDB_MULTI_ARCH): Do not define.
597 * configure, config.in: Regenerate.
598 * configure.tgt: Do not set variable "gdb_multi_arch".
599 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
600 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
601 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
602 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
603 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
604 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
605 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
606 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
607 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
608 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
609 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
610 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
611 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
612 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
613 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
614 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
615 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
616 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
617
618 2003-08-30 Michael Chastain <mec@shout.net>
619
620 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
621 * config/m68k/nm-hp300hpux.h: Delete.
622 * config/m68k/tm-hp300hpux.h: Delete.
623 * config/m68k/xm-hp300hpux.h: Delete.
624 * config/m68k/xm-hp300bsd.h: Delete.
625 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
626 tm-hp300hpux.h, xm-hp300hpux.h.
627 * somsolib.c: Remove comment about hp300 shared libraries.
628
629 2003-08-31 Mark Kettenis <kettenis@gnu.org>
630
631 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
632 Only define PTRACE_GET_THREAD_AREA is not already defined.
633 Various style fixes in code and comments and some additional
634 spelling fixes in comments. Move after functions dealing with
635 debug registers.
636 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
637 Fix coding-style.
638
639 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
640 frame_unwind_register_unsigned instead of
641 frame_unwind_unsigned_register.
642
643 2003-08-30 Mark Kettenis <kettenis@gnu.org>
644
645 * configure.in: Search for gethostbyname in libnsl.
646 * configure: Regenerated.
647
648 2003-08-29 Mark Kettenis <kettenis@gnu.org>
649
650 * configure.in: Remove redundant AC_MSG_RESULT in check for
651 uintptr_t in stdint.h.
652 * configure: Regenerated.
653
654 * amd64-nat.h (struct regcache): Add opaque declaration.
655
656 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
657 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
658 Change "register array" to "register cache" in comments.
659 (x86_64_linux_gregset64_reg_offset): New variable.
660 (GETREGS_SUPPLIES): Remove macro.
661 (supply_gregset): Call amd64_supply_native_gregset instead of
662 x86_64_linux_supply_gregset.
663 (fill_gregset): Rename `regno' to `regnum'. Call
664 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
665 (store_regs): Rename `regno' to `regnum'.
666 (store_fpregs): Rename `regno' to `regnum'.
667 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
668 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
669 Reorganize function a bit.
670 (store_inferior_registers): Rename `regno' to `regnum'. Use
671 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
672 Reorganize function a bit.
673 (_initialize_x86_64_linux_nat): New function.
674 * config/i386/x86-64linux.mh.
675
676 2003-08-29 Andrew Cagney <cagney@redhat.com>
677
678 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
679 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
680 (target_remove_watchpoint): Delete macro.
681 (target_insert_watchpoint): Delete macro.
682 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
683 (remote_mips_stopped_by_watchpoint): Delete declaration.
684 (remote_mips_remove_watchpoint): Delete declaration.
685 (remote_mips_set_watchpoint): Delete declaration.
686 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
687 * remote-mips.c (_initialize_remote_mips): Set
688 "to_insert_watchpoint", "to_stopped_by_watchpoint",
689 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
690 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
691 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
692 (mips_stopped_by_watchpoint): Rename
693 remote_mips_stopped_by_watchpoint.
694 (mips_can_hardware_watchpoint): Rename
695 remote_mips_can_use_hardware_watchpoint, update function
696 signature.
697
698 2003-08-29 Mark Kettenis <kettenis@gnu.org>
699
700 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
701 USER_DS. We haven't given them a register number yet.
702
703 * amd64-nat.h: New file.
704 * amd64-nat.c: New file.
705 * amd64fbsd-nat.c: Include "amd64-nat.h".
706 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
707 (amd64fbsd32_r_reg_offset): New variable.
708 (supply_gregset): Simply call amd64_supply_native_gregset.
709 (fill_gregset): Rename `regno' to `regnum'. Simply call
710 amd64_collect_native_gregset.
711 (fill_fpregset): Rename `regno' to `regnum'.
712 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
713 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
714 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
715 `fpregset_t'. Call amd64_supply_native_gregset instead of
716 supply_gregset. Call x86_64_supply_fxsave instead of
717 supply_fpregset.
718 (store_inferior_registers): Rename `regno' to `regnum'. Replace
719 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
720 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
721 `fpregset_t'. Call amd64_collect_native_gregset instead of
722 fill_gregset. Call x86_64_collect_fxsave instead of
723 fill_fpregset.
724 (_initialize_am64fbsd_nat): Initialize
725 amd64_native_gregset32_reg_offset and
726 amd64_native_gregset64_reg_offset.
727 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
728
729 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
730 null pointer. Fix typo in comment.
731
732 * regcache.c (supply_register): Reimplement to call
733 regcache_raw_supply.
734 (regcache_collect): Reimplement by calling regcache_raw_collect.
735
736 2003-08-28 Mark Kettenis <kettenis@gnu.org>
737
738 * regcache.c (register_buffer): Consitify first argument.
739 (regcache_raw_supply, regcache_raw_collect): New
740 functions.
741
742 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
743
744 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
745 by Nathan J. Williams.
746
747 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
748
749 * lin-lwp.c (wait_lwp): New function, copied from
750 stop_wait_callback. Clean up.
751 (stop_wait_callback): Use wait_lwp.
752
753 2003-08-28 Andrew Cagney <cagney@redhat.com>
754
755 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
756 flavour and disassembler options.
757 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
758 (mips_gdbarch_init): Set "print_insn". Delete initialization of
759 deprecated_tm_print_insn_info.
760
761 2003-08-27 Andrew Cagney <cagney@redhat.com>
762
763 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
764 Use target_read_memory.
765 (s390_get_frame_info): Update. Do not reference
766 deprecated_tm_print_insn_info.
767 (s390_check_function_end, s390_is_sigreturn): Ditto.
768
769 2003-08-27 Andrew Cagney <cagney@redhat.com>
770
771 * Makefile.in (cris-tdep.o): Update dependencies.
772 * cris-tdep.c: Include "gdb_assert.h".
773 (cris_gdbarch_init): Set print_insn.
774 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
775 (cris_delayed_get_disassembler): Simplify, directly call the
776 disassembler returned by cris_get_disassembler.
777 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
778 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
779 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
780 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
781 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
782 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
783 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
784 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
785 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
786 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
787 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
788 (gdb_print_insn_sparc): Delete function.
789 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
790 deprecated_tm_print_insn_info.
791 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
792 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
793 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
795 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
796 * s390-tdep.c (gdb_print_insn_s390): Delete function.
797 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
798 (s390_gdbarch_init): Set print_insn.
799
800 2003-08-27 Andrew Cagney <cagney@redhat.com>
801
802 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
803 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
804 * infcall.c (call_function_by_hand): Convert the entry point
805 address into a code address.
806
807 2003-08-27 Andrew Cagney <cagney@redhat.com>
808
809 * dsrec.c: Include "gdb_string.h".
810 * Makefile.in (dsrec.o): Update dependencies.
811
812 2003-08-27 Michael Chastain <mec@shout.net>
813
814 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
815
816 2003-08-27 Andrew Cagney <cagney@redhat.com>
817
818 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
819 (alpha_osf1_init_abi): Do not set call_dummy_address.
820
821 2003-08-27 David Carlton <carlton@kealia.com>
822
823 From Randolph Chung <tausq@debian.org>:
824 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
825 compiles with -Wformat-nonliteral -Werror.
826
827 2003-08-26 Jim Blandy <jimb@redhat.com>
828
829 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
830 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
831 bfd_lookup_symbol, since we only want symbols in code sections.
832 (look_for_base): Pass zero as the SECT_FLAGS argument to
833 bfd_lookup_symbol, since we're not concerned about which section
834 the symbol is in.
835
836 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
837
838 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
839 we are frameless or the return address register is already known.
840
841 2003-08-26 Andrew Cagney <cagney@redhat.com>
842
843 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
844 in size. Add comments.
845
846 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
847
848 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
849 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
850
851 2003-08-26 Jason Merrill <jason@redhat.com>
852
853 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
854 case out of #ifdef MIPS block.
855
856 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
857
858 PR java/1322
859 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
860 available before calling SECT_OFF_TEXT.
861 * PROBLEMS: Remove description of java/1322.
862
863 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
864
865 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
866 bof, and nat0-nat127 as pseudo-registers.
867 (ia64_frame_cache): New struct used to cache frame info.
868 (ia64_register_reggroup_p): New routine used to override default
869 register grouping so registers without names are still saved and
870 restored.
871 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
872 pseudo values.
873 (ia64_pseudo_register_read): New routine to read pseudo-registers.
874 (ia64_pseudo_register_write): New routine to write pseudo-registers.
875 (ia64_alloc_frame_cache): New routine to create a new
876 ia64_frame_cache.
877 (examine_prologue): Change prototype to add next_frame pointer.
878 Assume frameless until otherwise proven. Verify that the cfm for
879 current frame matches the cfm that should occur for the prologues
880 alloc insn and if equal, mark as not frameless. At end of routine,
881 if not frameless, calculate registers for the previous frame and store
882 in the cache, if a cache is provided.
883 (ia64_skip_prologue): Use new prototype when calling examine_prologue
884 and pass 0 for next_frame.
885 (ia64_store_return_value): Change to use convert_typed_floating()
886 instead of calling ia64_convert_to_raw().
887 (ia64_extract_return_value): Change to use convert_typed_floating()
888 instead of calling ia64_convert_to_virtual().
889 (ia64_frame_cache): New routine to support new frame model.
890 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
891 (ia64_frame_sniffer): Ditto.
892 (ia64_sigtramp_frame_init_saved_regs): Ditto.
893 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
894 (ia64_sigtramp_frame_prev_register): Ditto.
895 (ia64_sigtramp_frame_sniffer): Ditto.
896 (ia64_frame_base_address): Ditto.
897 (ia64_extract_struct_value_address): Change to issue error message.
898 (ia64_frame_align): New routine to align sp.
899 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
900 (ia64_push_arguments): Removed. Logic moved to
901 ia64_push_dummy_call().
902 (ia64_push_return_address): Ditto.
903 (ia64_unwind_dummy_id): New function.
904 (ia64_unwind_pc): Ditto.
905 (ia64_convert_register_p): Ditto.
906 (ia64_register_to_value): Ditto.
907 (ia64_value_to_register): Ditto.
908 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
909 (ia64_register_byte, ia64_register_raw_size): Ditto.
910 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
911 (ia64_saved_pc_after_call): Ditto.
912 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
913 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
914 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
915 (ia64_register_convert_to_raw): Ditto.
916 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
917 (ia64_init_extra_frame_info): Ditto.
918 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
919 (ia64_gdbarch_init): Remove registering of deprecated functions that
920 are no longer used. Add registration of new gdbarch functions.
921 Remove registering deprecated_write_sp. Replace
922 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
923 Delete set_gdbarch_deprecated_register_convertible(),
924 set_gdbarch_deprecated_register_convert_to_virtual(), and
925 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
926 set_gdbarch_deprecated_register_size(),
927 set_gdbarch_deprecated_register_bytes(),
928 set_gdbarch_pcregnum(),
929 set_gdbarch_deprecated_register_byte(),
930 set_gdbarch_deprecated_register_raw_size(),
931 set_gdbarch_deprecated_max_register_raw_size(),
932 set_gdbarch_deprecated_register_virtual_size(),
933 and set_gdbarch_deprecated_max_register_virtual_size() calls.
934 Replace set_gdbarch_deprecated_extract_return_value() with
935 set_gdbarch_extract_return_value(). Remove calls to:
936 set_gdbarch_deprecated_saved_pc_after_call();
937 set_gdbarch_deprecated_frame_chain(),
938 set_gdbarch_deprecated_frame_saved_pc(),
939 set_gdbarch_deprecated_frame_init_saved_regs(),
940 set_gdbarch_deprecated_get_saved_register(),
941 set_gdbarch_deprecated_call_dummy_words(),
942 set_gdbarch_deprecated_sizeof_call_dummy_words(),
943 set_gdbarch_deprecated_init_extra_frame_info(),
944 set_gdbarch_deprecated_frame_args_address(),
945 set_gdbarch_deprecated_frame_locals_address(),
946 and set_gdbarch_deprecated_dummy_write_sp().
947 Add set_gdbarch_convert_register_p(),
948 set_gdbarch_register_to_value(),
949 set_gdbarch_value_to_register(),
950 set_gdbarch_push_dummy_call(),
951 set_gdbarch_frame_align(),
952 set_gdbarch_unwind_dummy_id(),
953 set_gdbarch_unwind_pc(),
954 frame_unwind_append_sniffer(),
955 frame_unwind_append_sniffer(),
956 and frame_base_set_default().
957
958 2003-08-25 Chris Demetriou <cgd@broadcom.com>
959
960 * configure.tgt: Document need for special "mipsisa64" handling.
961 (mipsisa64*-*-linux64): Handle as target linux64.
962 (mipsisa64*-*-*): Handle as target embed64.
963
964 2003-08-18 Michael Chastain <mec@shout.net>
965
966 * PROBLEMS: Document pr gdb/1322, the Java anonymous
967 objfile bug.
968
969 2003-08-24 Mark Kettenis <kettenis@gnu.org>
970
971 * i387-tdep.h: Update copyright date.
972 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
973
974 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
975 CFLAGS games to reflect reality.
976
977 2003-08-24 Andrew Cagney <cagney@redhat.com>
978
979 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
980 GDB_MULTI_ARCH is always non-zero.
981 * osabi.c (_initialize_gdb_osabi): Ditto.
982 (gdbarch_init_osabi): Ditto.
983 * sparc-tdep.c: Ditto for #if code.
984
985 2003-08-23 Mark Kettenis <kettenis@gnu.org>
986
987 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
988 Update comments.
989 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
990 comments.
991 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
992 x86_64_supply_fxsave.
993 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
994 x86_64_supply_fxsave.
995 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
996 x86_64_supply_fxsave.
997
998 2003-08-23 Andreas Jaeger <aj@suse.de>
999
1000 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1001 i387_supply_fxsave.
1002
1003 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1004
1005 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1006 i387_supply_register.
1007 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1008 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1009 i387_supply_fsave.
1010 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1011 i387_supply_fxsave.
1012 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1013 i387_supply_fsave.
1014 * i386bsd-nat.c (supply_fpregset): Adjust call to
1015 i387_supply_fsave.
1016 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1017 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1018 supply_fpregset.
1019 (store_inferior_registers): Remove extraneous whitespace. Call
1020 i387_fill_fsave instead of fill_fpregset.
1021 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1022 (supply_fpregset): Likewise.
1023 * i386v4-nat.c (supply_fpregset): Adjust call to
1024 i387_supply_fsave.
1025 * i386-interix-nat.c (supply_fpregset): Adjust call to
1026 i387_supply_fsave.
1027 * i386-linux-nat.c (supply_fpregset): Adjust call to
1028 i387_supply_fsave.
1029 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1030 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1031 i387supply_fsave and i387_supply_fxsave.
1032 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1033 Incorporate code from `i387_supply_register.
1034 (i387_supply_register): Remove.
1035 (i387_supply_fxsave): Add `regnum' argument.
1036 Update comments.
1037 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1038 prototype.
1039 (i387_supply_register): remove prototype.
1040 Update comments.
1041
1042 2003-08-22 Michael Chastain <mec@shout.net>
1043
1044 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1045 Add lines for files in gdb/testsuite/gdb.cp/* that are
1046 still not 8.3 unique.
1047
1048 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1049
1050 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1051 TYPE_VPTR_FIELDNO is valid.
1052
1053 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1054
1055 * utils.c (set_width_command): Remove prototypes.
1056 (set_screen_size): New prototype.
1057 (init_page_info): Simplify by fetching the screen size from
1058 Readline. Call set_screen_size.
1059 (set_screen_size): New function.
1060 (set_width): Add missing whitespace in comment.
1061 (set_width_command): Call set_screen_size.
1062 (set_height_command): New function.
1063 (initialize_utils): Fix formatting. Make "set height" command
1064 call set_height_command. Remove redundant code that turns off
1065 pagination if output isn't a terminal. Remove redundant call to
1066 set_width_command.
1067
1068 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1069
1070 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1071 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1072 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1073 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1074 `case' keyword.
1075 (sparc64_register_info): Give the reister with number
1076 SPARC64_STATE_REGNUM a name.
1077 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1078 %asi and %ccr.
1079 (sparc64_push_dummy_call): Take BIAS into account when checking
1080 stcak alignment.
1081 (sparc_software_single_step): Remove assertions that check whether
1082 NPC and NNPC were zero.
1083 (sparc_supply_rwindow): Make public. Merge functionality with
1084 sparc64_supply_rwindow.
1085 (sparc_fill_rwindow): Make public. Merge functionality with
1086 sparc64_fill_rwindow.
1087 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1088 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1089 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1090 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1091 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1092
1093 * reggroups.c: Add whitespace after declarations of local
1094 variables in functions.
1095
1096 2003-08-21 Michael Chastain <mec@shout.net>
1097
1098 * gdbtypes.h: Change array bound type from an int to enum.
1099
1100 2003-08-21 Andrew Cagney <cagney@redhat.com>
1101
1102 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1103 * config/sparc/tm-sparc.h: Ditto.
1104 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1105 unconditionally.
1106 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1107
1108 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1109
1110 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1111 (register_objfile_data, set_objfile_data, objfile_data): New
1112 prototypes.
1113 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1114 prototypes.
1115 (allocate_objfile): Call objfile_alloc_data.
1116 (free_objfile): Call objfile_free_data.
1117 (struct objfile_data): New.
1118 (struct objfile_data_registration): New.
1119 (struct objfile_data_registry): New.
1120 (objfile_data_registry): New variable.
1121 (register_objfile_data): New function.
1122 (objfile_alloc_data, objfile_free_data): New functions.
1123 (set_objfile_data, objfile_data): New functions.
1124 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1125 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1126 (_initialize_dwarf2_frame): New function and prototype.
1127
1128 2003-08-21 Andrew Cagney <cagney@redhat.com>
1129
1130 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1131 a specific architecture.
1132 * arch-utils.h (set_architecture_from_arch_mach): Delete
1133 declaration.
1134 (target_architecture_hook): Delete declaration.
1135 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1136 (default_float_format): Assume GDB_MULTI_ARCH.
1137 (default_double_format): Assume GDB_MULTI_ARCH.
1138 (set_endian_from_file): Delete function.
1139 (arch_ok): Delete function.
1140 (set_arch): Delete function.
1141 (set_architecture_from_arch_mach): Delete function.
1142 (set_architecture_from_file): Delete function.
1143 (set_architecture): Assume GDB_MULTI_ARCH.
1144 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1145
1146 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1147
1148 Rewrite FreeBSD/sparc64 native configuration.
1149 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1150 * sparc64fbsd-nat.c: New file.
1151 * sparc64fbsd-tdep.c: New file.
1152 * sparc64-tdep.c sparc64-tdep.h: New files.
1153 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1154 sparc64fbsd-tdep.o): New dependencies.
1155 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1156 and sparc64fbsd-tdep.c.
1157 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1158 * config/sparc/fbsd.mh: Remove copyright notice.
1159 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1160 sparcbsd-nat.o.
1161 * config/sparc/fbsd.mt: Remove copyright notice.
1162 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1163 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1164 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1165 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1166 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1167 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1168 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1169 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1170 "sparc/tm-sp64.h".
1171 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1172 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1173
1174 2003-08-21 Michael Chastain <mec@shout.net>
1175
1176 * symtab.h: Add doco on the space critical structures and
1177 some measurements of space usage.
1178
1179 2003-08-21 Michael Snyder <msnyder@redhat.com>
1180
1181 * tracepoint.c (trace_dump_command): Trace break address
1182 is subject to DECR_PC_AFTER_BREAK.
1183 (set_traceframe_context): Make "trace_line" an int.
1184 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1185
1186 2003-08-20 Michael Snyder <msnyder@redhat.com>
1187
1188 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1189 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1190 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1191 argument passing.
1192 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1193 functions, replace sh_push_dummy_call.
1194 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1195
1196 2003-08-20 Michael Chastain <mec@shout.net>
1197
1198 * gdbtypes.h (struct main_type): Rearrange to save space.
1199
1200 2003-08-20 Michael Snyder <msnyder@redhat.com>
1201
1202 * trad-frame.c: Comment typo fix.
1203
1204 2003-08-20 Michael Snyder <msnyder@redhat.com>
1205 Kevin Buettner <kevinb@redhat.com>
1206
1207 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1208 (frv_frame_init_saved_regs): Add declaration.
1209 (frame_extra_info): Add new field ``saved_regs''.
1210 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1211 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1212 Update frame related code.
1213 (frv_extract_struct_value_address): Adjust formatting.
1214 * Makefile.in (frv-tdep.o): Update dependencies.
1215 * config/frv/tm-frv.h (target_insert_watchpoint)
1216 (target_remove_watchpoint, target_insert_hw_breakpoint)
1217 (target_remove_hw_breakpoint): Delete these macros.
1218 (remote_insert_watchpoint, remote_remove_watchpoint)
1219 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1220 these declarations.
1221
1222 2003-08-20 Michael Chastain <mec@shout.net>
1223
1224 * defs.h (ENUM_BITFIELD): New macro.
1225 * symtab.h (ENUM_BITFIELD): Use it.
1226 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1227
1228 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1229
1230 * MAINTAINERS (write after approval): Add myself.
1231
1232 2003-08-18 Andrew Cagney <cagney@redhat.com>
1233
1234 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1235 * gdbarch.h, gdbarch.c: Re-generate.
1236 * infcall.c (call_function_by_hand): Adjust the SP by
1237 frame_red_zone_size before allocating any stack space.
1238 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1239 * x86-64-tdep.c (x86_64_frame_align): New function.
1240 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1241
1242 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1243 Remove code adjusting SP so that it skips over the Red Zone.
1244
1245 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1246
1247 * NEWS (New native configurations): Mention FreeBSD/amd64.
1248
1249 2003-08-18 Andrew Cagney <cagney@redhat.com>
1250
1251 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1252 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1253 "m68k_frame_p".
1254 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1255
1256 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1257
1258 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1259
1260 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1261
1262 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1263 Define.
1264 * i386-linux-nat.c: Include "linux-nat.h".
1265 (child_post_startup_inferior): New function.
1266
1267 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1268
1269 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1270 at the start of a frameless function. This probably fixes PR
1271 backtrace/1338.
1272
1273 2003-08-17 Michael Chastain <mec@shout.net>
1274
1275 * symfile.c (find_sym_fns): Remove special case for apollo target.
1276
1277 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1278
1279 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1280 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1281 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1282 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1283 (linux_supports_tracevforkdone): New function.
1284 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1285 TRACEVFORKDONE.
1286 (child_follow_fork): Handle vfork.
1287 (linux_handle_extended_wait): Likewise. Also handle exec.
1288 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1289 * NEWS: Mention fork tracing.
1290
1291 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1292
1293 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1294
1295 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1296
1297 * Makefile.in (i386-linux-nat.o): Update dependencies.
1298 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1299 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1300 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1301 * i386-linux-nat.c: Include "linux-nat.h".
1302 (child_post_startup_inferior): New function.
1303 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1304 * infptrace.c (kill_inferior): Wrap in #ifdef.
1305 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1306 attaching to each LWP.
1307 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1308 (init_lin_lwp_ops): Fill in some more operations.
1309 * linux-nat.h (linux_enable_event_reporting)
1310 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1311 prototypes.
1312 * linux-nat.c (linux_enable_event_reporting): New function.
1313 (child_post_attach, linux_child_post_startup_inferior)
1314 (child_post_startup_inferior, child_follow_fork)
1315 (linux_handle_extended_wait, kill_inferior): New functions.
1316
1317 2003-08-16 Andrew Cagney <cagney@redhat.com>
1318
1319 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1320 * gdbarch.h, gdbarch.c: Re-generate.
1321
1322 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1323
1324 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1325
1326 2003-08-16 Andrew Cagney <cagney@redhat.com>
1327
1328 * NEWS: Mention that "set prompt-escape-char" was deleted.
1329 * top.c (get_prompt_1): Delete function.
1330 (gdb_prompt_escape):
1331 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1332 prompt-escape-char" command.
1333 (MAX_PROMPT_SIZE): Delete macro.
1334 (get_prompt): Simplify, do not call get_prompt_1.
1335
1336 2003-08-16 Andrew Cagney <cagney@redhat.com>
1337
1338 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1339 -Werror. -Wformat-nonliteral problems.
1340
1341 2003-08-15 J. Brobecker <brobecker@gnat.com>
1342
1343 Further multiarching work mostly for hppa64-*-hpux11:
1344 * hppa-tdep.h: New file.
1345 * hppa-tdep.c: #include hppa-tdep.c.
1346 (hppa32_num_regs): Renamed from hppa_num_regs.
1347 (hppa64_num_regs): New constant.
1348 (hppa64_call_dummy_breakpoint_offset): New constant.
1349 (hppa32_call_dummy_length): New constant.
1350 (hppa64_call_dummy_length): New constant.
1351 (hppa32_stack_align): Make name 32bit explicit.
1352 (hppa32_register_virtual_type): Likewise.
1353 (hppa32_extract_return_value): Likewise.
1354 (hppa32_use_struct_convention): Likewise.
1355 (hppa32_store_return_value): Likewise.
1356 (hppa64_register_virtual_type): New function.
1357 (hppa64_extract_return_value): New function.
1358 (hppa64_use_struct_convention): New function.
1359 (hppa64_store_return_value): New function.
1360 (hppa_frame_locals_address): Remove declaration, function does
1361 not exist anymore.
1362 (hppa_register_byte): Add support for PA64 ABI.
1363 (hppa_gdbarch_init): Add support for PA64 ABI.
1364 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1365 Make name 32bit explicit.
1366 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1367 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1368 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1369 (hppa64_hpux_frame_base_before_sigtramp): New function.
1370 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1371 * config/pa/tm-hppa64.h: Remove macros that are no longer
1372 necessary now that the gdbarch vector is properly setup.
1373 Transform some macros into function calls. Some minor cleanup.
1374 * config/pa/tm-hppah.h: Update function calls in macros
1375 following the function renaming in hppa-hpux-tdep.c.
1376 * Makefile.in (hppa_tdep_h): New variable.
1377 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1378
1379 2003-08-14 Michael Snyder <msnyder@redhat.com>
1380
1381 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1382
1383 2003-08-13 J. Brobecker <brobecker@gnat.com>
1384
1385 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1386 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1387 routine.
1388
1389 2003-08-13 Michael Snyder <msnyder@redhat.com>
1390
1391 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1392 (frv_saved_pc_after_call): Use deprecated ftype.
1393 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1394 (frv_remote_translate_xfer_address): Remove.
1395 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1396
1397 2003-08-13 J. Brobecker <brobecker@gnat.com>
1398
1399 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1400 initialization after the common gdbarch initialization, not before.
1401
1402 2003-08-13 J. Brobecker <brobecker@gnat.com>
1403
1404 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1405 (ADDR_BITS_REMOVE): Remove, redundant.
1406
1407 2003-08-13 J. Brobecker <brobecker@gnat.com>
1408
1409 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1410 gdbarch method to clear the 2 low bits of text addresses.
1411
1412 2003-08-12 Andrew Cagney <cagney@redhat.com>
1413
1414 * Makefile.in (dsrec.o): Update dependencies.
1415 * dsrec.c: Include "gdb_assert.h".
1416 (make_srec): Use snprintf instead of sprintf, use a literal format
1417 string.
1418
1419 2003-08-12 Andrew Cagney <cagney@redhat.com>
1420
1421 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1422 FRAME_OBSTACK_ZALLOC.
1423
1424 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1425
1426 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1427 SSE registers.
1428
1429 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1430
1431 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1432 amd64fbsd_sc_reg_offset): Add extern declarations.
1433 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1434 declarations.
1435
1436 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1437
1438 * MAINTAINERS (write after approval): Update my mail address.
1439
1440 2003-08-10 Andrew Cagney <cagney@redhat.com>
1441
1442 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1443
1444 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1445
1446 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1447 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1448 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1449 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1450 i386bsd_sc_reg_offset): Add extern declarations.
1451 * i386obsd-nat.c: Include "i386-tdep.h"
1452 (_initialize_i386obsd_nat): Remove extern declarations.
1453 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1454 declarations.
1455 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1456 declarations.
1457
1458 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1459 instead of frame_read_register.
1460 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1461 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1462 SP_REGNUM.
1463 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1464 instead of frame_unwind_unsigned_register. Use
1465 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1466 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1467 instead of read_register. Use builtin_type_void_data_ptr instead
1468 of builtin_type_void_func_ptr when extracting the address of the
1469 jmp_buf.
1470 (i386_extract_return_value, i386_store_return_value,
1471 i386_pseudo_register_read, i386_pseudo_register_write): Use
1472 register_size instead REGISTER_RAW_SIZE.
1473
1474 2003-08-10 Andrew Cagney <cagney@redhat.com>
1475
1476 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1477 sprintf. Make "name" constant.
1478
1479 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1480
1481 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1482 instead of frame_read_register.
1483 (i387_print_float_info): Use get_frame_register and
1484 get_frame_register_unsigned instead of frame_register_read.
1485
1486 * i386fbsd-nat.c: Include "i386-tdep.h".
1487 (child_resume): Make `eflags' an ULONGEST. Use
1488 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1489 instead of register_read and register_write.
1490
1491 * i386bsd-nat.c (fetch_inferior_registers,
1492 store_inferior_registers): Don't use && at the end of a line.
1493 (_initialize_i386bsd_nat): Fix typo.
1494
1495 * frame.c (_initialize_frame): Add missing backslash.
1496
1497 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1498 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1499 and supply_register instead of manipulating the register buffer
1500 directly.
1501
1502 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1503 * config/i386/nm-i386sol2.h
1504 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1505
1506 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1507 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1508 instructions that GCC likes to mingle into the prologue. Fixes
1509 gdb/1253 and gdb/1255.
1510
1511 2003-08-09 Andrew Cagney <cagney@redhat.com>
1512
1513 Fix GDB PR cli/926.
1514 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1515 * command.h (add_setshow_uinteger_cmd): Declare.
1516 * frame.c (set_backtrace_cmd): New function.
1517 (show_backtrace_cmd): New function.
1518 * frame.c (_initialize_frame): Replace "set/show
1519 backtrace-below-main" with "set/show backtrace past-main". Add
1520 command "set/show backtrace limit".
1521 (backtrace_past_main): Rename "backtrace_below_main".
1522 (backtrace_limit): New variable.
1523 (get_prev_frame): Update. Check the backtrace_limit.
1524
1525 2003-08-09 Andrew Cagney <cagney@redhat.com>
1526
1527 * defs.h (xstrprintf): Declare.
1528 * utils.c (xstrprintf): New function.
1529 * breakpoint.c (insert_breakpoints): Replace sprintf and
1530 non-literal format strings, with xstrprintf and cleanups.
1531 (delete_breakpoint,breakpoint_re_set): Ditto.
1532 (commands_command, insert_breakpoints): Ditto.
1533 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1534 (break_at_finish_command_1): Ditto.
1535
1536 2003-08-09 Andrew Cagney <cagney@redhat.com>
1537
1538 * MAINTAINERS (language support): List Adam Fedor as Objective C
1539 maintainer.
1540
1541 2003-08-08 J. Brobecker <brobecker@gnat.com>
1542
1543 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1544 are now multiarched.
1545
1546 2003-08-08 J. Brobecker <brobecker@gnat.com>
1547
1548 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1549 longer necessary now that hppa64 is partially multiarch'ed.
1550
1551 2003-08-08 Andrew Cagney <cagney@redhat.com>
1552
1553 * interps.c (interp_set): Check for a NULL "old_interp".
1554
1555 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1556
1557 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1558 (install-only): Support DESTDIR.
1559 (uninstall): Likewise.
1560 (install-gdbtk): Likewise.
1561
1562 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1563
1564 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1565 contains something meaningful at all times.
1566
1567 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1568
1569 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1570
1571 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1572
1573 * MAINTAINERS (write after approval): Added self.
1574
1575 2003-08-07 Andrew Cagney <cagney@redhat.com>
1576
1577 * inferior.h (AT_SYMBOL): Define.
1578 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1579 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1580 * mips-tdep.c (mips_call_dummy_address): Delete function.
1581 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1582 set call_dummy_address.
1583
1584 2003-08-07 Andrew Cagney <cagney@redhat.com>
1585
1586 * language.c (op_error): Delete function.
1587 (binop_type_check): Delete function.
1588 * language.h (type_op_error, range_op_error): Delete macros.
1589 (op_error): Delete declaration.
1590
1591 2003-08-07 Andrew Cagney <cagney@redhat.com>
1592
1593 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1594
1595 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1596
1597 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1598 (x86_64_push_arguments): Skip the red zone.
1599
1600 2003-08-05 Andrew Cagney <cagney@redhat.com>
1601
1602 * reggroups.c (reggroup_next): Check for the final entry.
1603
1604 2003-08-04 Andrew Cagney <cagney@redhat.com>
1605
1606 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1607 * cli/cli-script.c (define_command): Call query directly, instead
1608 of passing it a buffer.
1609 * ocd.c (ocd_error): Pass error a constant format string.
1610 * remote-mips.c (mips_error): Use fputs_filtered.
1611
1612 * solib-svr4.c (_initialize_svr4_solib): Update
1613 register_gdbarch_data call.
1614 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1615
1616 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1617 (register_gdbarch_data): Delete "free" parameter. Update
1618 comments.
1619 * gdbarch.h, gdbarch.c: Re-generate.
1620 * reggroups.c (_initialize_reggroup): Update.
1621 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1622 * frame-base.c (_initialize_frame_base): Update.
1623 * frame-unwind.c (_initialize_frame_unwind): Update.
1624 * user-regs.c (_initialize_user_regs): Update.
1625 * remote.c (_initialize_remote): Update.
1626 * regcache.c (_initialize_regcache): Update.
1627
1628 * regcache.c (xfree_regcache_descr): Delete function.
1629 (_initialize_regcache): Update call to register_gdbarch_data.
1630 (init_regcache_descr, init_legacy_regcache_descr): Use
1631 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1632
1633 * remote.c (free_remote_state): Delete function.
1634 (_initialize_remote): Update register_gdbarch_data.
1635 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1636 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1637
1638 2003-08-04 Andrew Cagney <cagney@redhat.com>
1639
1640 * reggroups.c (struct reggroup_el): Define.
1641 (struct reggroups): Delete field "nr_group". Replace array
1642 "group" with a "first" to "last" linked list.
1643 (reggroups_init): Update. Allocate using gdbarch's obstack.
1644 (reggroups_free): Delete function.
1645 (add_group): Update. Add "el" parameter.
1646 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1647 (default_groups): Update.
1648 (reggroup_next): Replace reggroups.
1649 (reggroups_dump): Update.
1650 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1651 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1652 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1653
1654 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1655
1656 * Makefile.in (tui-interp.o): Update dependencies.
1657
1658 2003-08-04 David Carlton <carlton@kealia.com>
1659
1660 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1661 to internal_error call.
1662 * source.c (forward_search_command): Add "%s" format argument.
1663 (reverse_search_command): Ditto.
1664 * top.c (quit_confirm): Ditto.
1665 * cli/cli-setshow.c (do_setshow_command): Ditto.
1666 * cp-valprint.c (cp_print_class_method): Replace
1667 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1668 (cp_print_class_member): Ditto.
1669 * event-top.c (command_line_handler): Ditto.
1670 * linux-proc.c (linux_info_proc_cmd): Ditto.
1671 * p-typeprint.c (pascal_type_print_base): Ditto.
1672 * p-valprint.c (pascal_object_print_class_method): Ditto.
1673 (pascal_object_print_class_member): Ditto.
1674 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1675 * remote.c (remote_cisco_section_offsets): Ditto.
1676 * top.c (command_line_input): Ditto.
1677 * utils.c (vwarning,error_stream,quit): Ditto.
1678 * valprint.c (print_floating,print_binary_chars)
1679 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1680
1681 2003-08-04 Andrew Cagney <cagney@redhat.com>
1682
1683 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1684
1685 2003-08-02 Andrew Cagney <cagney@redhat.com>
1686
1687 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1688 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1689 amd64fbsd-nat.c.
1690
1691 2003-08-02 Andrew Cagney <cagney@redhat.com>
1692
1693 * Makefile.in: Update all dependencies and definitions.
1694
1695 2003-08-02 Adam Fedor <fedor@gnu.org>
1696
1697 * linespec.c (is_objc_method_format): New function
1698 (decode_line_1, locate_first_half): Use it.
1699 Fixes PR objc/1298
1700
1701 2003-08-01 Andrew Cagney <cagney@redhat.com>
1702
1703 * NEWS: Mention that m32r is multi-arch.
1704 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1705 * configure.tgt: Recognize m32r-*-*.
1706 * config/m32r/tm-m32r.h: Delete file.
1707 * config/m32r/m32r.mt: New file.
1708 * m32r-rom.c (m32r_upload_command): Use hostent only when
1709 gethostname succeeds, in order to avoid a compilation
1710 warning.
1711 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1712 compiler warning.
1713
1714 2003-08-01 Michael Snyder <msnyder@redhat.com>
1715
1716 * sh-tdep.c (sh_frame_align): New gdbarch method.
1717 (sh_gdbarch_init): Set up frame_align method.
1718
1719 2003-07-31 Michael Snyder <msnyder@redhat.com>
1720
1721 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1722 which is already covered by the new frames infrastructure.
1723
1724 2003-07-31 Andrew Cagney <cagney@redhat.com>
1725
1726 * user-regs.c (struct user_reg): Add "next" link.
1727 (struct user_regs): Replace "user" with "first" and "last" links.
1728 (append_user_reg): Add pre-allocated "reg" parameter.
1729 (builtin_user_regs): Provide initial value for "last".
1730 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1731 (user_regs_init): Allocate memory from the gdbarch obstack.
1732 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1733 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1734 linked list.
1735 (usernum_to_user_reg): New function.
1736 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1737 (value_of_user_reg): Use usernum_to_user_reg.
1738 (user_regs_free): Delete function.
1739 (_initialize_user_regs): Update register_gdbarch_data call.
1740
1741 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1742
1743 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1744
1745 2003-07-30 Michael Snyder <msnyder@redhat.com>
1746
1747 * value.h (value_being_returned): Add a struct_addr argument.
1748 * infcall.c (call_function_by_hand): Pass struct_addr to
1749 value_being_returned.
1750 * infcmd.c (print_return_value): Pass zero as struct_addr.
1751 * values.c (value_being_returned): If struct_addr is passed,
1752 use it instead of trying to recover it from the inferior.
1753
1754 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1755
1756 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1757 the prologue analyzer won't need to attempt to extract the pc
1758 value from the woefully incomplete dummy frame.
1759 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1760 possible. Disable code which modifies the frame.
1761
1762 2003-07-28 Andrew Cagney <cagney@redhat.com>
1763
1764 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1765 to level 2.
1766 (annotate_breakpoints_table, annotate_record): Ditto.
1767 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1768 (annotate_field_name_end, annotate_field_value): Ditto.
1769 (annotate_field_end, annotate_frame_source_begin): Ditto.
1770 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1771 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1772 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1773 (annotate_frame_address_end, annotate_frame_address): Ditto.
1774 (annotate_frame_args, annotate_frame_end): Ditto.
1775 (annotate_frame_where, annotate_arg_begin): Ditto.
1776 (annotate_arg_name_end, annotate_arg_value): Ditto.
1777 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1778 (annotate_function_call, annotate_signal_name): Ditto.
1779 (annotate_signal_string, annotate_signal_name_end): Ditto.
1780 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1781 (annotate_value_begin, annotate_value_history_value): Ditto.
1782 (annotate_value_history_end, annotate_value_end): Ditto.
1783 (annotate_display_begin, annotate_display_number_end): Ditto.
1784 (annotate_display_format, annotate_display_expression): Ditto.
1785 (annotate_display_expression_end, annotate_display_value): Ditto.
1786 (annotate_display_end, annotate_array_section_begin): Ditto.
1787 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1788 (annotate_elt, annotate_array_section_end): Ditto.
1789
1790 2003-07-28 Andrew Cagney <cagney@redhat.com>
1791
1792 * regcache.c (struct regcache_descr): Update comments on
1793 nr_raw_registers.
1794 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1795 sizeof_raw_register_valid_p.
1796 (init_regcache_descr): Set nr_raw_registers and
1797 sizeof_raw_register_valid_p before calling
1798 init_legacy_regcache_descr.
1799
1800 2003-07-28 Andrew Cagney <cagney@redhat.com>
1801
1802 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1803 MOD NUM_REGS.
1804
1805 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1806
1807 * thread.c (info_threads_command): Use get_selected_frame ().
1808 Check that there is at least one non-sentinel frame.
1809
1810 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1811
1812 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1813 (m68hc11_pop_frame): Remove.
1814 (m68hc11_frame_saved_pc): Remove.
1815 (m68hc11_frame_chain): Remove.
1816 (m68hc11_frame_init_saved_regs): Remove.
1817 (m68hc11_init_extra_frame_info): Remove.
1818 (m68hc11_store_struct_return): Remove.
1819 (m68hc11_saved_pc_after_call): Remove.
1820
1821 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1822
1823 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1824 frame unwind information.
1825 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1826 and adapted for frame unwinding.
1827 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1828 (m68hc11_unwind_pc): New function.
1829 (m68hc11_frame_unwind_cache): New function to analyze frames.
1830 (m68hc11_frame_this_id): New function to create new frame struct.
1831 (m68hc11_frame_prev_register): New function to unwind a register from
1832 the frame.
1833 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1834 (m68hc11_frame_p): New function for the above.
1835 (m68hc11_frame_base_address): New function to return fp of frame.
1836 (m68hc11_frame_args_address): Update for frame.
1837 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1838 (m68hc11_unwind_sp): New function.
1839 (m68hc11_unwind_dummy_id): New function.
1840 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1841 calls.
1842
1843 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1844
1845 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1846 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1847 when we are beyond the current pc.
1848
1849 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1850
1851 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1852 from m68hc11_push_arguments.
1853 (m68hc11_push_arguments): Remove.
1854 (m68hc11_push_return_address): Remove.
1855 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1856 handlers; remove deprecated_extra_stack_alignment_needed.
1857
1858 2003-07-27 Andrew Cagney <cagney@redhat.com>
1859
1860 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1861 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1862 REAL_PC and not the pointer.
1863 * hppa-hpux-tdep.c: Include frame.h
1864
1865 2003-07-27 Andrew Cagney <cagney@redhat.com>
1866
1867 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1868 GDB_MULTI_ACH_PARTIAL.
1869
1870 2003-07-27 Andrew Cagney <cagney@redhat.com>
1871
1872 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1873 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1874 operator at start and not end of line.
1875 (decode_prologue): Ditto.
1876 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1877 frame_unwind_register_unsigned instead of
1878 frame_unwind_unsigned_register.
1879 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1880 read_register.
1881 (m32r_push_dummy_call): Use register_size instead of
1882 REGISTER_RAW_SIZE.
1883 (m32r_frame_sniffer): Replace m32r_frame_p.
1884 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1885 * m32r-rom.c (report_transfer_performance): Delete extern
1886 declaration.
1887 (m32r_load, m32r_upload_command): Use print_transfer_performance
1888 instead of report_transfer_performance.
1889 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1890 / add_show_from_set.
1891
1892 2003-07-26 Andrew Cagney <cagney@redhat.com>
1893
1894 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1895 store_return_value and extract_struct_value_address.
1896
1897 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1898
1899 PR c++/1267
1900 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1901 NULL, default to the section containing PC.
1902
1903 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1904
1905 * NEWS: Mention "regs" deprecated for m68hc11 too.
1906
1907 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1908 (m68hc11_print_register): New function to print out one register.
1909 (m68hc11_print_registers_info): New function to print registers.
1910 (show_regs): Deprecate and use the above.
1911 (m68hc11_gdbarch_init): Install the print_registers_info.
1912
1913 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1914
1915 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1916 that we have a SIGTRAP before returning non-zero.
1917
1918 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1919 Elena Zannoni <ezannoni@redhat.com>
1920
1921 * linespec.c (decode_line_2): Avoid crash if
1922 find_function_start_sal() returns empty record.
1923
1924 2003-07-23 Andreas Schwab <schwab@suse.de>
1925
1926 * ia64-tdep.c (ia64_print_insn): New function.
1927 (ia64_gdbarch_init): Set print_insn to it.
1928 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1929 deprecated_tm_print_insn_info.
1930
1931 2003-07-22 Michael Snyder <msnyder@redhat.com>
1932
1933 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1934 handle 8-bit returns (long long).
1935 (h8300h_extract_return_value): Ditto.
1936 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1937
1938 2003-07-22 Andrew Cagney <cagney@redhat.com>
1939
1940 * gdbarch.c Include "gdb_obstack.h".
1941 (struct gdbarch): Add an "obstack".
1942 (alloc_gdbarch_data): Allocate the gdbarch data using
1943 GDBARCH_OBSTACK_CALLOC.
1944 (free_gdbarch_data): Delete function.
1945 (gdbarch_obstack_zalloc): New function.
1946 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1947 Assert that the architecture is not initialized.
1948 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1949 vector from the obstack.
1950 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1951 architecture obstack.
1952 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1953 (set_gdbarch_data): Assert that the data is not initialized.
1954 (struct gdbarch_data): Delete member "free".
1955 (register_gdbarch_data): Do not initialize "free".
1956 * gdbarch.h, gdbarch.c: Re-generate.
1957
1958 2003-07-22 Andrew Cagney <cagney@redhat.com>
1959
1960 * configure.in (build_warnings): Add -Wformat-nonliteral.
1961 * configure: Re-generate.
1962
1963 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1964
1965 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1966
1967 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1968
1969 * findvar.c (read_var_value): Remove case for thread local storage
1970 variables. It is now entirely handled by the dwarf2 location
1971 expression code.
1972 * printcmd.c (address_info): Ditto.
1973 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1974 enumeration value.
1975 (struct symbol): Remove objfile field, which was used by
1976 LOC_THREAD_LOCAL_STATIC only.
1977 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1978 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1979 usage of objfile pointer.
1980 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1981 thread local variables.
1982 Add include of objfiles.h.
1983 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1984 storage variables.
1985 * Makefile.in (dwarf2loc.o): Update dependencies.
1986
1987 2003-07-22 Andrew Cagney <cagney@redhat.com>
1988
1989 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1990 get_frame_base.
1991 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1992 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1993 (struct value): Add opaque declaration.
1994 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1995
1996 2003-07-21 Andrew Cagney <cagney@redhat.com>
1997
1998 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1999 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2000
2001 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2002
2003 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2004 regcache_cooked_read_unsigned instead of read_register.
2005 (m68hc11_saved_pc_after_call): Likewise.
2006 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2007 instead of write_register.
2008 (m68hc11_register_type): New function.
2009 (m68hc11_register_virtual_type): Remove.
2010 (m68hc11_store_return_value): Convert to use the regcache.
2011 (m68hc11_extract_struct_value_address): Likewise.
2012 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2013 m68hc11_register_type; undeprecate store_return_value and
2014 extract_struct_value_address.
2015
2016 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2017
2018 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2019 and translate to use regcache.
2020 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2021
2022 2003-07-18 Andrew Cagney <cagney@redhat.com>
2023
2024 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2025 * gdbarch.h, gdbarch.c: Re-generate.
2026 * i386-tdep.c (i386_gdbarch_init): Do not set
2027 DWARF2_BUILD_FRAME_INFO.
2028 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2029 unconditionally.
2030 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2031 DWARF2_BUILD_FRAME_INFO.
2032
2033 2003-07-18 Andrew Cagney <cagney@redhat.com>
2034
2035 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2036 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2037
2038 2003-07-18 Andrew Cagney <cagney@redhat.com>
2039
2040 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2041 frame_unwind_address_in_block, instead of frame_pc_unwind.
2042 (dwarf2_frame_cache): Ditto.
2043
2044 2003-07-18 Andrew Cagney <cagney@redhat.com>
2045
2046 * user-regs.h (struct gdbarch): Declare opaque.
2047 * ui-out.h (struct ui_file): Declare opaque.
2048 * dwarf2-frame.h (struct frame_info): Declare opaque.
2049
2050 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2051
2052 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2053 #include "...".
2054 (procfs_meminfo): Change strerror to safe_strerror.
2055 (procfs_can_run): Remove K&R badness.
2056
2057 2003-07-17 Michael Snyder <msnyder@redhat.com>
2058
2059 * remote-sim.c: Comment typo fix.
2060
2061 2003-07-17 Andrew Cagney <cagney@redhat.com>
2062
2063 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2064 configure.
2065 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2066 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2067 GDB_MULTI_ARCH_PARTIAL.
2068
2069 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2070
2071 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2072 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2073 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2074
2075 2003-07-16 Theodore A. Roth <troth@openavr.org>
2076
2077 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2078 found.
2079 (avr_frame_unwind_cache): Don't unwind FP for main.
2080 Update a comment.
2081 Save the computed prev_sp.
2082 (avr_saved_regs_unwinder): Remove function.
2083 (avr_frame_prev_register): Use PC unwind logic from
2084 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2085
2086 2003-07-16 Andrew Cagney <cagney@redhat.com>
2087
2088 * frame-base.h (frame_base_p_ftype): Delete definition.
2089 (frame_base_append_predicate): Delete declaration.
2090 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2091 (frame_unwind_append_predicate): Delete declaration.
2092 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2093 (append_predicate): Delete parameter "p".
2094 (frame_unwind_append_predicate): Delete function.
2095 (frame_unwind_append_sniffer): Update call to append_predicate.
2096 (frame_unwind_free): Delete function.
2097 (_initialize_frame_unwind): Pass NULL as "free" to
2098 register_gdbarch_data.
2099 (frame_unwind_init): Append the dummy_frame_sniffer.
2100 (frame_unwind_find_by_frame): Simplify.
2101 * frame-base.c (struct frame_base_table): Delete field "p".
2102 (append_predicate): Delete parameter "p".
2103 (frame_base_append_predicate): Delete function.
2104 (frame_base_append_sniffer): Update call to append_predicate.
2105 (frame_base_free): Delete function.
2106 (frame_base_find_by_frame): Simplify.
2107 (_initialize_frame_base): Pass NULL as "free" to
2108 register_gdbarch_data.
2109 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2110 (x86_64_sigtramp_frame_sniffer): Replace
2111 "x86_64_sigtramp_frame_p".
2112 (x86_64_init_abi): Set the frame unwind sniffers.
2113 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2114 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2115 (m68k_gdbarch_init): Set the frame unwind sniffers.
2116 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2117 "i386_sigtramp_frame_p".
2118 (i386_frame_sniffer): Replace "i386_frame_p".
2119 (i386_gdbarch_init): Set the frame unwind sniffers.
2120 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2121 (avr_gdbarch_init): Set the frame unwind sniffers.
2122 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2123 "alpha_sigtramp_frame_p"
2124 (alpha_heuristic_frame_sniffer): Replace
2125 "alpha_heuristic_frame_p".
2126 (alpha_gdbarch_init): Set the frame unwind sniffers.
2127 (alpha_dwarf2_init_abi): Ditto.
2128 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2129 "alpha_debug_frame_p".
2130 (alpha_mdebug_frame_base_sniffer): Replace
2131 "alpha_mdebug_frame_base_p".
2132 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2133 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2134 (d10v_gdbarch_init): Set the frame unwind sniffer.
2135 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2136 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2137 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2138 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2139 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2140 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2141
2142 2003-07-16 Michael Snyder <msnyder@redhat.com>
2143
2144 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2145 should go thru sh_dsp_register_sim_regno, else the dsp regs
2146 will not get the right values.
2147
2148 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2149
2150 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2151 deprecated_store_floating by call to store_typed_floating.
2152 (sh_sh4_register_convert_to_raw): Substitute call to
2153 deprecated_extract_floating by call to extract_typed_floating.
2154
2155 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2156
2157 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2158
2159 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2160
2161 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2162 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2163 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2164 as possible.
2165 (do_pseudo_register): Remove.
2166 (sh_push_dummy_code): New function.
2167 (sh64_store_struct_return): Rename from sh_store_struct_return.
2168 Only called for sh64 now.
2169 (sh_extract_struct_value_address): Regcache'ify.
2170 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2171 and accomodate new tasks.
2172 (sh64_push_return_address): Rename from sh_push_return_address.
2173 Only called for sh64 now.
2174 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2175 Regcache'ify.
2176 (sh3e_sh4_extract_return_value): Regcache'ify.
2177 (sh_default_store_return_value): Ditto.
2178 (sh3e_sh4_store_return_value): Ditto.
2179 (sh_default_register_byte): Remove.
2180 (sh_sh4_register_byte): Remove.
2181 (sh_default_register_raw_size): Remove.
2182 (sh_sh4_register_raw_size): Remove.
2183 (sh_register_virtual_size): Remove.
2184 (sh_sh3e_register_virtual_type): Remove.
2185 (sh_sh3e_register_type): New function.
2186 (sh_sh4_register_virtual_type): Remove.
2187 (sh_sh4_register_type): New function.
2188 (sh_default_register_virtual_type): Remove.
2189 (sh_default_register_type): New function.
2190 (do_fv_register_info): Add parameters to accomodate call from
2191 sh_print_registers_info.
2192 (do_dr_register_info): Ditto.
2193 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2194 Add parameters to accomodate call from sh_print_registers_info.
2195 (sh_do_fp_register): Ditto.
2196 (sh64_do_pseudo_register): Call do_dr_register_info,
2197 do_fv_register_info and sh_do_fp_register with default parameters.
2198 (sh_do_register): Add parameters to accomodate call from
2199 sh_print_registers_info.
2200 (sh_print_register): Ditto.
2201 (sh_print_registers_info): Rename from sh_do_registers_info.
2202 Add parameters to be used as gdbarch_print_registers_info
2203 implementation. Accomodate removed do_pseudo_register function
2204 pointer.
2205 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2206 function pointer. Call sh_print_register with default parameters.
2207 (sh64_do_registers_info): Call sh_print_registers_info instead of
2208 sh_do_registers_info.
2209 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2210 detection of deprecated vs. non-deprecated functionality.
2211 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2212 function pointer assignments by direct function calls.
2213
2214 2003-07-15 Andrew Cagney <cagney@redhat.com>
2215
2216 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2217 (frame_register_unwind, create_new_frame): Ditto.
2218 (legacy_get_prev_frame, get_frame_type): Ditto.
2219 (get_frame_base_address): Use frame_base_find_by_frame.
2220 (get_frame_locals_address): Use frame_base_find_by_frame.
2221 (get_frame_args_address): Use frame_base_find_by_frame.
2222 * frame-base.h (frame_base_sniffer_ftype): Declare.
2223 (frame_base_append_sniffer): Declare.
2224 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2225 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2226 (frame_base_append_sniffer): New function.
2227 (frame_base_append_predicate): Add a NULL sniffer.
2228 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2229 (struct frame_base_table): Add "sniffer".
2230 (frame_base_free): Free the "sniffer" table.
2231 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2232 (frame_unwind_append_sniffer): Declare.
2233 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2234 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2235 (struct frame_unwind_table): Add "sniffer", delete "middle".
2236 (append_predicate): Add "sniffer" parameter, append the sniffer.
2237 (frame_unwind_init): Update append_predicate call.
2238 (frame_unwind_append_sniffer): New function.
2239 (frame_unwind_append_predicate): Update append_predicate call.
2240 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2241
2242 2003-07-15 Andrew Cagney <cagney@redhat.com>
2243
2244 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2245 before code inhibiting repeated unwind attempts. Add to
2246 commentary on that test's problems.
2247 * blockframe.c (inside_main_func): Look for "main" in the minimal
2248 symbol table.
2249 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2250 identical.
2251
2252 2003-07-15 Andrew Cagney <cagney@redhat.com>
2253
2254 * complaints.c (struct explanation): Define.
2255 (struct complaints): Change type of "explanation" to "struct
2256 explanation".
2257 (symfile_explanations): Convert to a "struct explanation" table.
2258 (vcomplaint): Update.
2259
2260 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2261
2262 * x86-64-linux-nat.c (regmap): Removed.
2263 (supply_gregset, fill_gregset): Call
2264 x86_64_linux_(fill,supply)_gregset functions.
2265 * x86-64-linux-tdep.c (USER_*): New defines.
2266 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2267 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2268 New functions.
2269 (fetch_core_registers): Ditto.
2270 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2271 * x86-64-linux-tdep.h: New file.
2272 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2273 and core-regset.o.
2274 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2275
2276 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2277
2278 * x86-64-tdep.c (x86_64_store_return_value): Use
2279 regcache_cooked_write_part instead of regcache_cooked_write.
2280
2281 * configure.host: Add x86_64-*-freebsd*.
2282 * configure.tgt: Add x86_64-*-freebsd*.
2283 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2284 * amd64fbsd-nat.c: New file.
2285 * amd64fbsd-tdep.c: New file.
2286 * config/i386/nm-fbsd64.h: New file.
2287 * config/i386/fbsd64.mh: New file.
2288 * config/i386/fbsd64.mt: New file.
2289
2290 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2291
2292 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2293 `sc_regs_offset' and `sc_fpregs_offset'.
2294 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2295 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2296 (alpha_sigtramp_register_address): Rewrite to use new members of
2297 `struct gdbarch_tdep'.
2298 (alpha_gdbarch_init): Initialize new members of struct
2299 gdbarch_tdep'.
2300 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2301 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2302 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2303 (alphafbsd_pc_in_sigtramp): Implement.
2304 (alphafbsd_sigtramp_offset): New function.
2305 (alphafbsd_sigcontext_addr): New function.
2306 (alphafbsd_init_abi): Initialize signal trampoline related members
2307 of `struct gdbarch_tdep'.
2308 (_initialize_alphafbsd_tdep): Add prototype.
2309
2310 2003-07-11 Theodore A. Roth <troth@openavr.org>
2311
2312 * Makefile.in (install-only): Quote sed expression when generating
2313 transformed_name.
2314
2315 2003-07-11 Richard Henderson <rth@redhat.com>
2316
2317 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2318 * dwarf2-frame.c: Include complaints.h.
2319 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2320 variable initialization; return NULL on error.
2321 (decode_frame_entry): New.
2322
2323 2003-07-11 Andrew Cagney <cagney@redhat.com>
2324
2325 * frame.h (frame_address_in_block): Delete declaration.
2326 * blockframe.c (frame_address_in_block): Delete function.
2327 (get_frame_block): Use get_frame_address_in_block.
2328 (block_innermost_frame): Ditto.
2329 * stack.c (print_frame, backtrace_command_1): Ditto.
2330
2331 * frame.h (get_frame_address_in_block): Declare.
2332 (frame_unwind_address_in_block): Declare.
2333 * frame.c (frame_unwind_address_in_block): New function.
2334 (get_frame_address_in_block): New function.
2335
2336 2003-07-10 Andrew Cagney <cagney@redhat.com>
2337
2338 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2339 pre-default. Note: re-generate has no effect.
2340
2341 2003-07-10 Andrew Cagney <cagney@redhat.com>
2342
2343 * gdbarch.sh: When a variable, but not a function, compare against
2344 0. Fix problem in previous patch.
2345 * gdbarch.c: Re-generate.
2346
2347 2003-07-10 Andrew Cagney <cagney@redhat.com>
2348
2349 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2350 functions against NULL, not 0.
2351 * gdbarch.c: Re-generate.
2352
2353 2003-07-10 Fred Fish <fnf@ninemoons.com>
2354
2355 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2356 null string instead of a null pointer.
2357 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2358
2359 2003-07-09 Michael Snyder <msnyder@redhat.com>
2360
2361 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2362
2363 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2364
2365 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2366 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2367 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2368 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2369 * x86-64-tdep.c: ... from here.
2370
2371 2003-07-09 Andreas Schwab <schwab@suse.de>
2372
2373 * m68k-tdep.h (enum struct_return): Define.
2374 (struct gdbarch_tdep): Add struct_return.
2375 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2376 bytes are padded to the right, not to the left. Pass struct value
2377 address in register %a1, not on stack.
2378 (m68k_use_struct_convention): New function.
2379 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2380 struct_return in tdep to pcc_struct_return.
2381 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2382 reg_struct_return.
2383
2384 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2385
2386 * somread.c (som_symfile_offsets): Fix compilation error.
2387
2388 2003-07-09 Andrew Cagney <cagney@redhat.com>
2389
2390 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2391 Add comments about the checks.
2392
2393 2003-07-08 Andrew Cagney <cagney@redhat.com>
2394
2395 * Makefile.in: Make dependency section headers consistent.
2396 (config_h): Move to $BUILD headers section.
2397 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2398 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2399 (ada-exp.tab.c): Move to YACC/LEX section.
2400 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2401 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2402
2403 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2404
2405 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2406 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2407 of strerror with safe_strerror, use ISO C function definitions,
2408 and replace instances of sprintf with snprintf.
2409
2410 2003-07-07 Andrew Cagney <cagney@redhat.com>
2411
2412 * frame.c (get_prev_frame): Enable check for identical frames.
2413 Update comments. Update error messages.
2414
2415 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2416
2417 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2418
2419 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2420
2421 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2422 sort_symtab_syms, no longer necessary.
2423
2424 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2425
2426 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2427
2428 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2429
2430 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2431 (mips_register_byte): Likewise.
2432
2433 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2434
2435 * Makefile.in (sparc_tdep_h): New.
2436 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2437 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2438 * sparc-linux-nat.c: Include "sparc-tdep.h".
2439 * sparc-nat.c: Likewise.
2440 * sparc-tdep.c: Likewise.
2441 * sparc64nbsd-nat.c: Likewise.
2442 * sparcnbsd-nat.c: Likewise.
2443 * sparcnbsd-tdep.c: Likewise.
2444 * sparc-tdep.h: New file.
2445 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2446 and sparc_npc_regnum.
2447
2448 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2449
2450 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2451 (mips_linux_cannot_store_register): List supported instead of
2452 unsupported registers.
2453
2454 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2455
2456 * disasm.c (dump_insns): Separate instructions from addresses.
2457
2458 2003-07-07 Andreas Schwab <schwab@suse.de>
2459
2460 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2461 dependencies.
2462 * m68k-tdep.c (NUM_FREGS): Delete.
2463 (SIG_PC_FP_OFFSET): Delete.
2464 (TARGET_M68K): Delete.
2465 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2466 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2467 P_MOVEL_SP, P_MOVEML_SP): Define.
2468 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2469 P_TRAP): Delete.
2470 (m68k_register_raw_size): Delete.
2471 (m68k_register_virtual_size): Delete.
2472 (m68k_register_type): Renamed from m68k_register_virtual_type and
2473 add gdbarch argument.
2474 (m68k_store_struct_return): Delete.
2475 (m68k_deprecated_extract_return_value): Delete.
2476 (m68k_deprecated_extract_struct_value_address): Delete.
2477 (m68k_frame_chain): Delete.
2478 (m68k_frame_saved_pc): Delete.
2479 (m68k_fix_call_dummy): Delete.
2480 (m68k_push_dummy_frame): Delete.
2481 (m68k_pop_frame): Delete.
2482 (m68k_extract_return_value): New function.
2483 (m68k_store_return_value): Rewrite using regcache.
2484 (m68k_extract_struct_value_address): Rewrite using regcache.
2485 (m68k_push_dummy_call): New function.
2486 (struct m68k_frame_cache): Define.
2487 (m68k_alloc_frame_cache): New function.
2488 (m68k_analyze_frame_setup): New function.
2489 (m68k_analyze_register_saves): New function.
2490 (m68k_analyze_prologue): New function.
2491 (m68k_skip_prologue): Rewrite using above functions.
2492 (m68k_unwind_pc): New function.
2493 (m68k_frame_cache): New function.
2494 (m68k_frame_this_id): New function.
2495 (m68k_frame_prev_register): New function.
2496 (m68k_frame_unwind): New variable.
2497 (m68k_frame_p): New function.
2498 (m68k_sigtramp_frame_cache): New function.
2499 (m68k_sigtramp_frame_this_id): New function.
2500 (m68k_sigtramp_frame_prev_register): New function.
2501 (m68k_sigtramp_frame_unwind): New variable.
2502 (m68k_sigtramp_frame_p): New function.
2503 (m68k_frame_base_address): New function.
2504 (m68k_frame_base): New function.
2505 (m68k_unwind_dummy_id): New function.
2506 (fill_gregset): Use regcache_collect.
2507 (fill_fpregset): Likewise.
2508 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2509 defined.
2510 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2511 deprecated_init_frame_pc, deprecated_store_struct_return,
2512 deprecated_extract_return_value, deprecated_store_return_value,
2513 deprecated_frame_chain, deprecated_frame_saved_pc,
2514 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2515 deprecated_register_virtual_size,
2516 deprecated_max_register_raw_size,
2517 deprecated_max_register_virtual_size,
2518 deprecated_register_virtual_type, deprecated_register_size,
2519 deprecated_register_byte, deprecated_register_bytes,
2520 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2521 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2522 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2523 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2524 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2525 deprecated_push_dummy_frame, deprecated_pop_frame,
2526 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2527 only if SYSCALL_TRAP is defined. Set extract_return_value,
2528 store_return_value, extract_struct_value_address, register_type,
2529 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2530 predicates.
2531 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2532 M68K_MAX_REGISTER_SIZE): Define.
2533 (struct m68k_sigtramp_info): Define.
2534 (struct gdbarch_tdep): Add get_sigtramp_info.
2535 * m68klinux-nat.c (fetch_register): Use register_size instead of
2536 REGISTER_RAW_SIZE. Don't put assignment in if.
2537 (store_register): Likewise.
2538 (fetch_inferior_registers): Likewise.
2539 (store_inferior_registers): Likewise.
2540 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2541 (m68k_linux_frame_saved_pc): Delete.
2542 (m68k_linux_sigcontext_reg_offset,
2543 m68k_linux_ucontext_reg_offset): Define.
2544 (m68k_linux_get_sigtramp_info): New function.
2545 (m68k_linux_extract_return_value): Rewrite using regcache.
2546 (m68k_linux_store_return_value): Likewise.
2547 (m68k_linux_extract_struct_value_address): Likewise.
2548 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2549 Don't set deprecated_frame_saved_pc,
2550 deprecated_extract_return_value, deprecated_store_return_value,
2551 deprecated_extract_struct_value_address. Set
2552 extract_return_value, store_return_value,
2553 extract_struct_value_address.
2554
2555 2003-07-07 Andrew Cagney <cagney@redhat.com>
2556
2557 * expprint.c: Include "user-regs.h" instead of "frame.h".
2558 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2559 frame_map_regnum_to_name.
2560 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2561 (frame_map_name_to_regnum): Simplify, call
2562 user_reg_map_name_to_regnum.
2563 (frame_map_regnum_to_name): Simplify, call
2564 user_reg_map_regnum_to_name.
2565 (frame_register_unwind): Update.
2566 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2567 (_initialize_frame_reg): Call user_reg_add_builtin.
2568 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2569 (value_of_register): Use value_of_user_reg.
2570 * eval.c (evaluate_subexp_standard): Update.
2571 * parse.c (write_dollar_variable): Update.
2572 * d10v-tdep.c (d10v_print_registers_info): Update.
2573 * infcmd.c (registers_info): Update.
2574 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2575 (builtin_regs_h): Delete macro.
2576 (user_regs_h): Define.
2577 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2578 (builtin-regs.o): Delete target.
2579 (user-regs.o): Specify dependencies.
2580 (expprint.o): Update dependencies.
2581 (findvar.o): Update dependencies.
2582 (frame.o): Update dependencies.
2583 (std-regs.o): Update dependencies.
2584
2585 2003-07-06 Christopher Faylor <cgf@redhat.com>
2586
2587 * win32-nat.c (solib_symbols_add): Use one variable for all section
2588 address stuff. Pass variable rather than address of variable to
2589 safe_symbol_file_add.
2590
2591 2003-07-06 Andreas Schwab <schwab@suse.de>
2592
2593 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2594
2595 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2596
2597 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2598
2599 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2600
2601 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2602
2603 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2604
2605 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2606 * config/i386/nto.mh: New file.
2607 * config/i386/nm-nto.h: New file.
2608 * configure.host: Add i[3456]86-*-nto*.
2609
2610 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2611
2612 * remote-vx.c (vx_add_symbols): Fix compilation error.
2613
2614 2003-07-03 Andrew Cagney <cagney@redhat.com>
2615
2616 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2617 * gdbarch.h, gdbarch.c: Re-generate.
2618 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2619 (legacy_register_name): Declare.
2620 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2621 (REGISTER_NAME): Define.
2622 * sparc-tdep.c (legacy_register_name): New function.
2623 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2624 (REGISTER_NAME): Define.
2625 (hppa64_register_name): Declare.
2626 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2627 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2628 (hppa64_register_name): New function.
2629 (hppa_register_name): New function.
2630 * arch-utils.c (legacy_register_name): Delete.
2631 * arch-utils.h (legacy_register_name): Delete.
2632
2633 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2634
2635 * cli/cli-interp.c (cli_interpreter_resume): Update the
2636 cli_uiout's stream to gdb_stdout.
2637
2638 2003-07-03 Andrew Cagney <cagney@redhat.com>
2639
2640 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2641 predicate.
2642 * gdbarch.h, gdbarch.c: Re-generate.
2643 * regcache.c (init_regcache_descr): Use legacy code when either
2644 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2645
2646 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2647
2648 * NEWS: Move "set logging" entry into GDB 6.0 section.
2649
2650 2003-07-02 Jim Blandy <jimb@redhat.com>
2651
2652 * s390-tdep.c (struct frame_extra_info): new member:
2653 'stack_bought_valid'.
2654 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2655 initialize fextra_info->stack_bought.
2656 (s390_frameless_function_invocation): Don't trust the value of
2657 fextra_info_ptr->stack_bought unless
2658 fextra_info->stack_bought_valid is set.
2659
2660 New S390 prologue analyzer.
2661 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2662 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2663 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2664 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2665 compute_x_addr, s390_on_stack, s390_store,
2666 s390_get_signal_frame_info): New functions.
2667 (S390_NUM_SPILL_SLOTS): New macro.
2668 (s390_get_frame_info): Rewritten.
2669 (is_arg_reg): Deleted.
2670
2671 Break out the decoding of S/390 instructions into separate
2672 functions, to make it more legible, and easier to check
2673 against the spec.
2674 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2675 is_rx, is_rxe): New functions.
2676 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2677 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2678 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2679 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2680 enums for opcode values. (Is this an improvement?)
2681
2682 2003-07-02 Andrew Cagney <cagney@redhat.com>
2683
2684 * i386-tdep.c: Revert change committed as part of trad-frame code
2685 below.
2686
2687 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2688
2689 * breakpoint.c (insert_catchpoint): Make static.
2690
2691 2003-07-02 Andreas Schwab <schwab@suse.de>
2692
2693 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2694 former ia64_push_arguments and ia64_push_return_address, and use
2695 regcache functions instead of read/write_register.
2696 (ia64_gdbarch_init): Set push_dummy_call instead of
2697 deprecated_push_arguments and deprecated_push_return_address.
2698
2699 2003-07-01 Andreas Jaeger <aj@suse.de>
2700
2701 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2702 before the call.
2703 Set %rax only to number of SSE registers used.
2704
2705 2003-07-01 Andrew Cagney <cagney@redhat.com>
2706
2707 * trad-frame.h: Update comments, a -1 .addr is reserved.
2708 (trad_frame_value_p, trad_frame_addr_p): Declare.
2709 (trad_frame_reg_p): Declare.
2710 (trad_frame_set_value): Rename trad_frame_register_value.
2711 (trad_frame_set_unknown): Declare.
2712 * trad-frame.c (trad_frame_realreg_p): New function.
2713 (trad_frame_addr_p, trad_frame_value_p): New function.
2714 (trad_frame_set_unknown): New function.
2715 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2716 (trad_frame_prev_register): Use trad_frame_realreg_p,
2717 trad_frame_addr_p and trad_frame_value_p.
2718 (trad_frame_set_value): Rename trad_frame_register_value.
2719 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2720 and trad_frame_set_value.
2721
2722 2003-06-30 Jim Blandy <jimb@redhat.com>
2723
2724 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2725 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2726 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2727 for 16 registers, and then 32 more bytes.
2728 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2729 New macros.
2730 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2731 Move up in the file, since it's now used by is_simple_arg.
2732 (is_simple_arg): Don't assume registers are four bytes long.
2733 Exclude all double arguments. Extended floats are not simple
2734 args.
2735 (is_power_of_two): New function.
2736 (pass_by_copy_ref): Call is_power_of_two, and check that the
2737 length fits in a register, rather than listing all the acceptable
2738 sizes. Extended floats are not passed by reference.
2739 (s390_push_arguments): Don't assume registers are four bytes long.
2740 Reserve an argument register to point to the buffer for structures
2741 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2742 S390_STACK_FRAME_OVERHEAD.
2743
2744 2003-06-30 Andreas Schwab <schwab@suse.de>
2745
2746 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2747 format error message.
2748
2749 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2750
2751 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2752
2753 2003-06-30 David Carlton <carlton@kealia.com>
2754
2755 Band-aid for PR c++/1245.
2756 * Makefile.in (cp-support.o): Depend on complaints_h.
2757 * cp-support.c: Include complaints.h. Add declaration for
2758 find_last_component.
2759 (cp_find_first_component): Separate code into
2760 cp_find_first_component_aux.
2761 (cp_find_first_component_aux): Call demangled_name_complaint.
2762 (demangled_name_complaint): New.
2763
2764 2003-06-30 Andrew Cagney <cagney@redhat.com>
2765
2766 * remote.c (remote_write_bytes): Explicitly compute and then use
2767 the payload size. Update comments to reflect. Fixes problem of
2768 GDB not sending small packets as found by Fred Fish.
2769
2770 2003-06-30 Andrew Cagney <cagney@redhat.com>
2771
2772 * remote.c (remote_async_wait): Fix -Wformat problem.
2773
2774 2003-06-29 Andrew Cagney <cagney@redhat.com>
2775
2776 * remote.c (remote_wait): Call error, and not warning, when the
2777 packet is corrupt.
2778 (remote_async_wait): Ditto.
2779
2780 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2781
2782 * sparc-tdep.c (sparc_y_regnum): Make external again.
2783
2784 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2785
2786 * cli/cli-logging.c (pop_output_files): Add void to function
2787 definition.
2788
2789 2003-06-29 Andrew Cagney <cagney@redhat.com>
2790
2791 * frame.c (frame_register_unwind): Use unsigned char when dumping
2792 the buffer contents.
2793
2794 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2795
2796 * cli/cli-logging.c: New file.
2797 * cli-out.c (struct ui_out_data): Add original_stream.
2798 (cli_redirect): New function.
2799 (cli_ui_out_impl): Add cli_redirect.
2800 (cli_out_new): Initialize original_stream.
2801 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2802 (uo_redirect, ui_out_redirect): New.
2803 * ui-out.h (struct ui_out_impl): Add redirect member.
2804 (redirect_ftype): New.
2805 (ui_out_redirect): Add prototype.
2806 * Makefile.in: Add rules for cli-logging.c.
2807 * NEWS: Mention "set logging".
2808
2809 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2810
2811 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2812
2813 2003-06-27 Andrew Cagney <cagney@redhat.com>
2814
2815 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2816 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2817 * avr-tdep.c (avr_call_dummy_address): Delete function.
2818 (avr_gdbarch_init): Do not set call_dummy_address.
2819
2820 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2821
2822 * symfile.c (syms_from_objfile): Move variables to inner block.
2823 Move the checks for the non-mainline case a bit earlier to avoid
2824 doing some useless computations.
2825
2826 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2827
2828 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2829
2830 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2831
2832 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2833 sections.
2834
2835 2003-06-26 Michael Chastain <mec@shout.net>
2836
2837 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2838 gdb/testsuite/gdb.c++/pr-1210.exp.
2839
2840 2003-06-26 Andrew Cagney <cagney@redhat.com>
2841
2842 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2843 altivec_expression.h and altivec_registers.h.
2844
2845 2003-06-26 Andrew Cagney <cagney@redhat.com>
2846
2847 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2848 info->mach when MIPS16. Patch suggested by Fred Fish.
2849
2850 2003-06-26 Andrew Cagney <cagney@redhat.com>
2851
2852 * utils.c (internal_vproblem): Print the problem to a reason
2853 buffer and then pass to query. Make the msg variable more local.
2854
2855 2003-06-26 Andrew Cagney <cagney@redhat.com>
2856
2857 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2858 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2859 * gdbarch.h, gdbarch.c: Re-generate.
2860 * frame-base.c (default_frame_args_address): Update. Use
2861 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2862 not available.
2863 (default_frame_locals_address): Ditto for
2864 DEPRECATED_FRAME_LOCALS_ADDRESS.
2865 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2866 (vax_frame_num_args): Update.
2867 (vax_gdbarch_init): Update.
2868 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2869 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2870 * mcore-tdep.c (mcore_gdbarch_init): Update.
2871 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2872 * ia64-tdep.c (ia64_gdbarch_init): Update.
2873 * symtab.h (address_class): Update comments.
2874 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2875 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2876 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2877 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2878 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2879 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2880 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2881 * alpha-mdebug-tdep.c: Update.
2882 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2883
2884 2003-06-26 Andreas Jaeger <aj@suse.de>
2885
2886 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2887 of SSE registers so that varargs functions work. Rework handling
2888 of passing arguments on the stack.
2889 (x86_64_store_return_value): Return double and float values in SSE
2890 register.
2891
2892 2003-06-24 Michael Chastain <mec@shout.net>
2893
2894 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2895 the "constructor breakpoints ignored" bug.
2896
2897 2003-06-25 David Carlton <carlton@kealia.com>
2898
2899 * MAINTAINERS: Update e-mail address.
2900
2901 2003-06-24 Jim Blandy <jimb@redhat.com>
2902
2903 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2904
2905 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2906 function.
2907 (ppc_linux_init_abi): Register it as the
2908 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2909
2910 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2911 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2912 method.
2913
2914 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2915 (ppc64_standard_linkage_target): Use it.
2916
2917 2003-06-23 Andrew Cagney <cagney@redhat.com>
2918
2919 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2920 for 0 "int0" and 4 "int32" sized registers.
2921 * gdbtypes.c (builtin_type_int0): Define.
2922 (build_gdbtypes): Initialize builtin_type_int0.
2923 * gdbtypes.h (builtin_type_int0): Declare.
2924
2925 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2926
2927 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2928 as characters are unsigned.
2929
2930 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2931
2932 PR gdb/1179
2933 * dwarfread.c (struct_type): Skip static fields without crashing.
2934
2935 2003-06-22 Andrew Cagney <cagney@redhat.com>
2936
2937 GDB 6.0 branch created.
2938 * README: Update.
2939 * PROBLEMS: Update. Empty.
2940 * NEWS: Update.
2941
2942 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2943
2944 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2945 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2946
2947 2003-06-22 Andrew Cagney <cagney@redhat.com>
2948
2949 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2950 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2951 Velikov.
2952
2953 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2954
2955 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2956 compilers.
2957
2958 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2959
2960 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2961 argument of val_print.
2962 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2963 to the address argument of baseclass_offset or target_read_memory.
2964 Do add it to the argument of cp_print_value_fields.
2965
2966 2003-06-21 Andrew Cagney <cagney@redhat.com>
2967
2968 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2969 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2970 instead of 0..NUM_REGS.
2971 (mips_register_reggroup_p): New function.
2972 (mips_pseudo_register_write): New function.
2973 (mips_pseudo_register_read): New function.
2974 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2975 based on the register's type.
2976 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2977 cooked.
2978 (mips_get_saved_register): Simplify. Assert that REGNO is a
2979 pseudo / cooked.
2980 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2981 (mips_register_type): Replace mips_register_virtual_type. Map
2982 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2983 when available.
2984 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2985 that the register is cooked / virtual.
2986 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2987 Only get the extra info when needed.
2988 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2989 (mips32_heuristic_proc_desc): Fetch the cooked register.
2990 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2991 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2992 (mips_print_register): Use gdbarch_register_type, instead of
2993 REGISTER_VIRTUAL_TYPE.
2994 (print_gp_register_row): Use gdbarch_register_type, instead of
2995 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2996 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2997 Print the pseudo / cooked registers.
2998 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2999 Print the pseudo / cooked registers.
3000 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3001 REG_NUM is pseudo / cooked.
3002 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3003 (mips_n32n64_xfer_return_value): Ditto.
3004 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3005 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3006 (mips_register_sim_regno): New function.
3007 (mips_gdbarch_init): Set deprecated_register_byte,
3008 register_group_p, pseudo_register_write, pseudo_register_read,
3009 register_sim_regno, and num_pseudo_regs. Set register_type,
3010 instead of register_virtual_type.
3011 * Makefile.in (mips-tdep.o): Update dependencies.
3012 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3013 REGISTER_VIRTUAL_TYPE.
3014 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3015 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3016 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3017 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3018 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3019
3020 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3021
3022 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3023 * cli/cli-cmds.c: Include "gdb_vfork.h".
3024 (shell_escape): Use vfork.
3025
3026 2003-06-21 Andrew Cagney <cagney@redhat.com>
3027
3028 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3029 32 bit floating-point register saves.
3030
3031 * frame.h (deprecated_unwind_get_saved_register): Delete.
3032 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3033 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3034 and deprecated_get_next_frame_hack instead of
3035 deprecated_unwind_get_saved_register.
3036
3037 * mips-tdep.c (mips_dump_tdep): Do not print
3038 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3039
3040 * frame.c (get_frame_register): New function.
3041 (frame_unwind_register_signed): New function.
3042 (get_frame_register_signed): New function.
3043 (frame_unwind_register_unsigned): New function.
3044 (get_frame_register_unsigned): New function.
3045 * frame.h: Add comments on naming schema.
3046 (get_frame_register, frame_unwind_register_signed): Declare.
3047 (get_frame_register_signed, get_frame_register_signed): Declare.
3048 (frame_unwind_register_unsigned): Declare.
3049 (get_frame_register_unsigned): Declare.
3050
3051 2003-06-20 Theodore A. Roth <troth@openavr.org>
3052
3053 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3054
3055 2003-06-20 Theodore A. Roth <troth@openavr.org>
3056
3057 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3058 (avr_read_sp): Ditto.
3059
3060 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3061
3062 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3063 * config/arm/nm-linux.h: Likewise.
3064 * config/arm/tm-linux.h: Likewise.
3065 * config/ia64/nm-linux.h: Likewise.
3066 * config/ia64/tm-ia64.h: Likewise.
3067 * config/s390/tm-linux.h: Likewise.
3068 * config/s390/tm-s390.h: Likewise.
3069 * s390-nat.c: Likewise.
3070 * s390-tdep.c: Likewise.
3071
3072 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3073 * config/ia64/linux.mt: Likewise.
3074 * config/m68k/linux.mh: Likewise.
3075 * config/mips/linux.mt: Likewise.
3076 * config/powerpc/linux.mh: Likewise.
3077 * config/sh/linux.mt: Likewise.
3078
3079 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3080
3081 * solib.c (solib_open): Change tests for whether to search
3082 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3083 comments.
3084
3085 2003-06-19 Theodore A. Roth <troth@openavr.org>
3086
3087 * avr-tdep.c (avr_frame_address): Delete function.
3088 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3089 set_gdbarch_frame_args_address.
3090
3091 2003-06-19 Andrew Cagney <cagney@redhat.com>
3092
3093 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3094 (REGISTER_CONVERT_FROM_TYPE): Delete.
3095 (mips_register_convert_to_type): Delete declaration.
3096 (mips_register_convert_from_type): Delete declaration.
3097 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3098 kernel/.
3099
3100 2003-06-19 Michael Snyder <msnyder@redhat.com>
3101
3102 * linux-nat.h: New file.
3103 * linux-nat.c: Include linux-nat.h.
3104 * lin-lwp.c: Include linux-nat.h.
3105 Move struct lwp_info def to linux-nat.h.
3106 * linux-proc.c: Include linux-nat.h.
3107 (linux_make_note_section): Iterate over lwps instead of threads.
3108 (linux_do_thread_registers): Use lwp instead of merged pid.
3109 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3110 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3111 Add dependency on linux_nat_h.
3112
3113 2003-06-19 Theodore A. Roth <troth@openavr.org>
3114
3115 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3116
3117 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3118
3119 * varobj.c (get_type, get_target_type): Use check_typedef.
3120
3121 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3122
3123 * breakpoint.c (insert_catchpoint): Call internal_error.
3124
3125 2003-06-19 Theodore A. Roth <troth@openavr.org>
3126
3127 * avr-tdep.c (avr_push_dummy_code): Delete function.
3128 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3129
3130 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3131
3132 * arch-utils.c (default_prepare_to_proceed): Remove.
3133 (generic_prepare_to_proceed): Remove.
3134 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3135 (generic_prepare_to_proceed): Remove prototype.
3136 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3137 * gdbarch.c: Regenerate.
3138 * gdbarch.h: Regenerate.
3139 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3140 * hppah-nat.c (hppa_switched_threads): Remove.
3141 * infrun.c (prepare_to_proceed): New static function, copied from
3142 generic_prepare_to_proceed. Remove select_it argument.
3143 (proceed): Call prepare_to_proceed.
3144 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3145 variables.
3146 (ptrace_wait): Don't set the removed variables.
3147 (hppa_switched_threads): Remove.
3148 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3149 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3150 (lin_lwp_prepare_to_proceed): Remove prototype.
3151 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3152 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3153
3154 2003-06-18 Theodore A. Roth <troth@openavr.org>
3155
3156 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3157 trad-frame.h.
3158 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3159 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3160 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3161 (AVR_PROLOGUE_*): Enumerate prologue types.
3162 (struct frame_extra_info): Remove.
3163 (struct avr_unwind_cache): Define.
3164 (avr_write_sp): Delete function.
3165 (avr_read_fp): Ditto.
3166 (avr_init_extra_frame_info): Ditto.
3167 (avr_pop_frame): Ditto.
3168 (avr_frame_saved_pc): Ditto.
3169 (avr_saved_pc_after_call): Ditto.
3170 (avr_push_return_address): Ditto.
3171 (avr_frame_chain): Ditto.
3172 (avr_store_struct_return): Ditto.
3173 (avr_push_arguments): Ditto.
3174 (avr_scan_prologue): Update comments. Changed to set up the info for
3175 cache unwinding. Now returns end of prologue PC.
3176 (avr_skip_prologue): Better handling of functions lacking a prologue
3177 by using avr_scan_prologue.
3178 (avr_scan_arg_moves): New function.
3179 (avr_saved_regs_unwinder): Ditto.
3180 (avr_frame_unwind_cache): Ditto.
3181 (avr_unwind_pc): Ditto.
3182 (avr_frame_this_id): Ditto.
3183 (avr_frame_prev_register): Ditto.
3184 (avr_frame_p): Ditto.
3185 (avr_frame_base_address ): Ditto.
3186 (avr_unwind_dummy_id): Ditto.
3187 (avr_push_dummy_code): Ditto.
3188 (push_stack_item): Ditto.
3189 (pop_stack_item): Ditto.
3190 (avr_push_dummy_call): Ditto.
3191 (struct stack_item): Define.
3192 (avr_frame_unwind): Declare structure.
3193 (avr_frame_base): Ditto.
3194 (avr_gdbarch_init): Remove calls to
3195 set_gdbarch_deprecated_init_frame_pc,
3196 set_gdbarch_deprecated_target_read_fp,
3197 set_gdbarch_deprecated_dummy_write_sp,
3198 set_gdbarch_deprecated_fp_regnum,
3199 set_gdbarch_deprecated_push_arguments,
3200 set_gdbarch_deprecated_push_return_address,
3201 set_gdbarch_deprecated_pop_frame,
3202 set_gdbarch_deprecated_store_struct_return,
3203 set_gdbarch_deprecated_frame_init_saved_regs,
3204 set_gdbarch_deprecated_init_extra_frame_info,
3205 set_gdbarch_deprecated_frame_chain,
3206 set_gdbarch_deprecated_frame_saved_pc,
3207 set_gdbarch_deprecated_saved_pc_after_call.
3208 Add calls to set_gdbarch_push_dummy_call,
3209 set_gdbarch_push_dummy_code,
3210 frame_unwind_append_predicate,
3211 frame_base_set_default,
3212 set_gdbarch_unwind_dummy_id,
3213 set_gdbarch_unwind_pc.
3214 Wrap a long line.
3215
3216 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3217
3218 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3219 registers for H8/300S.
3220 (h8300_print_registers_info): Ditto.
3221 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3222
3223 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3224
3225 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3226 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3227 (lin_lwp_wait): Likewise. Update comments.
3228 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3229 (pull_pid_from_list, linux_record_stopped_pid): New.
3230
3231 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3232
3233 * ada-lang.c (scan_discrim_bound): Name first argument.
3234 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3235 declared by ALL_BLOCK_SYMBOLS.
3236
3237 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3238
3239 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3240 ("regcache.h"): Include it.
3241 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3242
3243 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3244
3245 * NEWS: Mention gdbserver detach change and "disconnect" command.
3246 * infcmd.c (disconnect_command): New function.
3247 (_initialize_infcmd): Add ``disconnect'' command.
3248 * remote.c (remote_async_detach): Delete.
3249 (remote_detach): Merge remote_async_detach.
3250 (remote_disconnect): New.
3251 (init_remote_ops): Set to_disconnect.
3252 (init_remote_cisco_ops): Likewise.
3253 (init_remote_async_ops): Likewise. Use remote_detach.
3254 * target.c (cleanup_target): Default to_disconnect.
3255 (update_current_target): Inherit to_disconnect.
3256 (target_disconnect, debug_to_disconnect): New functions.
3257 (setup_target_debug): Set to_disconnect.
3258 * target.h (struct target_ops): Add to_disconnect.
3259 (target_disconnect): Add prototype.
3260
3261 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3262
3263 * breakpoint.c (insert_catchpoint): New function.
3264 (insert_breakpoints): Use catch_exceptions to call
3265 insert_catchpoint. Disable catchpoints if they fail to insert.
3266
3267 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3268
3269 * symfile.c (reread_symbols): Clear sym_private.
3270
3271 2003-06-17 Andrew Cagney <cagney@redhat.com>
3272
3273 * trad-frame.h (struct frame_info): Add opaque declaration.
3274 * remote-fileio.h (struct cmd_list_element): Add opaque
3275 declaration.
3276 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3277 comments.
3278
3279 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3280
3281 * remote.c (remote_prepare_to_store): Replace call to
3282 deprecated_read_register_bytes with multiple regcache_raw_read
3283 calls.
3284
3285 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3286
3287 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3288 (nto_find_and_open_solib): Likewise.
3289 (nto_init_solib_absolute_prefix): Likewise.
3290 (_initialize_nto_tdep): Fix indentation.
3291
3292 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3293
3294 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3295
3296 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3297
3298 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3299
3300 2003-06-17 Jim Blandy <jimb@redhat.com>
3301
3302 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3303
3304 2003-06-16 Theodore A. Roth <troth@openavr.org>
3305
3306 * avr-tdep.c (avr_extract_return_value): New function.
3307 (avr_gdbarch_init): Set extract_return_value method.
3308
3309 2003-06-16 Andrew Cagney <cagney@redhat.com>
3310
3311 * frame.h (deprecated_get_next_frame_hack): Declare.
3312 * frame.c (legacy_saved_regs_prev_register): Only require
3313 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3314 there are always saved regs.
3315 (deprecated_generic_get_saved_register): Do not require
3316 DEPRECATED_FRAME_INIT_SAVED_REGS.
3317 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3318 use frame ID unwind instead.
3319 (deprecated_get_next_frame_hack): New function.
3320
3321 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3322
3323 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3324 (h8300_push_dummy_call): ...this function. Some minor optimization.
3325 (h8300_push_return_address): Remove.
3326 (h8300_gdbarch_init): Remove calls to
3327 set_gdbarch_deprecated_dummy_write_sp,
3328 set_gdbarch_deprecated_push_arguments and
3329 set_gdbarch_deprecated_push_return_address.
3330 Add call to set_gdbarch_push_dummy_call.
3331
3332 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3333
3334 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3335 (E_PSEUDO_EXR_REGNUM): Ditto.
3336 (h8300_is_argument_spill): Check for instructions moving argument
3337 registers into safe registers.
3338 (h8300_skip_prologue): Check for stm instruction to push registers
3339 used for register variables onto stack.
3340 (gdb_print_insn_h8300): Remove.
3341 (h8300_examine_prologue): Add a comment.
3342 (h8300_register_name): Take pseudo registers into account.
3343 (h8300s_register_name): Ditto.
3344 (h8300sx_register_name): Ditto.
3345 (h8300_print_register): Ditto.
3346 (h8300_print_registers_info): Define "nice" printing order.
3347 (h8300_saved_pc_after_call): Take pseudo registers into account.
3348 (h8300_register_type): Ditto. Return type used for remote connection
3349 when requesting real CCR or EXR register, return actual type when
3350 requesting pseudo CCR or EXR.
3351 (h8300_pseudo_register_read): New function.
3352 (h8300_pseudo_register_write): Ditto.
3353 (h8300_dbg_reg_to_regnum): Ditto.
3354 (h8300s_dbg_reg_to_regnum): Ditto.
3355 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3356 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3357 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3358 set_gdbarch_print_insn architecture dependent.
3359 Call set_gdbarch_pseudo_register_read and
3360 set_gdbarch_pseudo_register_write.
3361 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3362
3363 2003-06-16 Andrew Cagney <cagney@redhat.com>
3364
3365 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3366 * gdbarch.h, gdbarch.c: Re-generate.
3367 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3368 * s390-tdep.c (s390_gdbarch_init): Update.
3369 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3370 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3371 * mips-tdep.c (mips_gdbarch_init): Update.
3372 * mcore-tdep.c (mcore_gdbarch_init): Update.
3373 * cris-tdep.c (cris_gdbarch_init): Update.
3374 * infcall.c (call_function_by_hand): Update.
3375 * ia64-tdep.c (ia64_push_arguments): Update comment.
3376 * frame.c (legacy_get_prev_frame): Do not assume
3377 SAVE_DUMMY_FRAME_TOS_P.
3378 * dummy-frame.c (find_dummy_frame): Update comment.
3379
3380 2003-06-16 Andrew Cagney <cagney@redhat.com>
3381
3382 * regcache.c (do_cooked_read): Do not use register_valid_p.
3383
3384 2003-06-15 Theodore A. Roth <troth@openavr.org>
3385
3386 * avr-tdep.c (avr_register_type): Remove a blank line.
3387 (avr_scan_prologue): Correct some comments.
3388
3389 2003-06-15 Theodore A. Roth <troth@openavr.org>
3390
3391 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3392 prologue types.
3393 Properly scan prologues generated by gcc with the -mcall-prologues
3394 option.
3395 Add code to scan -mcall-prologues for mega devices.
3396
3397 2003-06-15 Theodore A. Roth <troth@openavr.org>
3398
3399 * avr-tdep.c (avr_register_byte): Delete function.
3400 (avr_register_raw_size): Delete function.
3401 (avr_register_virtual_size): Delete function.
3402 (avr_register_virtual_type): Delete function.
3403 (avr_register_type): New function.
3404 (avr_address_to_pointer): Remove unused code.
3405 (avr_read_fp): Need to read FP as two separate bytes due to change to
3406 avr_register_type() usage.
3407 (avr_gdbarch_init): Don't set deprecated_register_size.
3408 Don't set deprecated_register_bytes.
3409 Don't set deprecated_register_byte.
3410 Don't set deprecated_register_raw_size.
3411 Don't set deprecated_max_register_raw_size.
3412 Don't set deprecated_register_virtual_size.
3413 Don't set deprecated_max_register_virtual_size.
3414 Don't set deprecated_register_virtual_type.
3415 Set register_type method.
3416
3417 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3418
3419 * Makefile.in (linux-nat.o): Add rule.
3420 * linux-nat.c: New file.
3421 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3422 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3423 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3424 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3425 * config/arm/linux.mh (NATDEPFILES): Likewise.
3426 * config/i386/linux.mh (NATDEPFILES): Likewise.
3427 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3428 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3429 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3430 * config/mips/linux.mh (NATDEPFILES): Likewise.
3431 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3432 * config/s390/s390.mh (NATDEPFILES): Likewise.
3433 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3434
3435 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3436
3437 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3438 replace out-of-date comment.
3439
3440 2003-06-15 Andrew Cagney <cagney@redhat.com>
3441
3442 * rdi-share/host.h (Fail): Change to a varargs function.
3443 * remote-rdi.c (Fail): Update.
3444
3445 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3446
3447 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3448 (i386_convert_register_p, i386_register_to_value,
3449 i386_register_from_value): Handle types longer than 8 bytes.
3450
3451 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3452
3453 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3454 Move floating-point code to new function in i387-tdep.c.
3455 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3456 New functions containing code moved here from i386-tdep.c.
3457 * i387-tdep.h: Add opaque declaration for `struct type'.
3458 (i387_register_to_value, i387_value_to_register): New prototypes.
3459 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3460 (x86_64_init_abi): Set convert_register_p, register_to_value and
3461 value_to_register here.
3462
3463 2003-06-14 Andrew Cagney <cagney@redhat.com>
3464
3465 * mips-tdep.c (mips_register_to_value): Make static.
3466 (mips_value_to_register): Make static.
3467 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3468 * ia64-tdep.c (ia64_register_raw_size): Make static.
3469 (ia64_register_virtual_size): Make static.
3470 (ia64_register_byte): Make static.
3471 * i387-tdep.c: Include "i387-tdep.h".
3472 (print_387_control_word): Delete function.
3473 (print_387_status_word): Delete function.
3474 (print_387_status_bits): Delete function.
3475 (print_387_control_bits): Delete function.
3476 * Makefile.in (i387-tdep.o): Update dependencies.
3477 * rdi-share/host.h (Fail): Declare.
3478 * remote-rdi.c (Fail): Update to match declaration.
3479
3480 2003-06-14 Andrew Cagney <cagney@redhat.com>
3481
3482 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3483 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3484 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3485 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3486 * README: Delete reference to remote-array.
3487 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3488 (remote-array.o): Delete target.
3489 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3490 * remote-array.c: Delete file.
3491
3492 2003-06-14 Andrew Cagney <cagney@redhat.com>
3493 Mark Kettenis <kettenis@gnu.org>
3494
3495 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3496 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3497 parameter with "frame".
3498 * gdbarch.h, gdbarch.c: Re-generate.
3499 * frame.h (put_frame_register): Declare.
3500 * frame.c (put_frame_register): New function.
3501 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3502 (legacy_register_to_value): Rewrite, use "frame" to get the
3503 register value.
3504 (legacy_value_to_register): Rewrite, use "frame" to find the
3505 register's location before storing.
3506 * arch-utils.h (legacy_convert_register_p): Update.
3507 (legacy_register_to_value, legacy_value_to_register): Update.
3508 * findvar.c (value_from_register): Rewrite, eliminate use of
3509 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3510 "frame" to REGISTER_TO_VALUE.
3511 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3512 lval_reg_frame_relative + lval_register branch of the switch. Do
3513 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3514 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3515 I386_EDI_REGNUM): New defines.
3516 (i386_next_regnum, i386_convert_register_p,
3517 i386_register_to_value, i386_value_to_register): New functions.
3518 (i386_register_convertible, i386_register_convert_to_virtual,
3519 i386_convert_to_raw): Remove functions.
3520 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3521 value_to_register instead of register_convertible,
3522 register_convert_to_virtual and register_convert_to_raw.
3523 * mips-tdep.c (mips_convert_register_p): New function.
3524 (mips_value_to_register): Replace mips_register_convert_from_type.
3525 (mips_register_to_value): Replace mips_register_convert_to_type.
3526 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3527 register_to_value.
3528 * alpha-tdep.c (alpha_convert_register_p): Update.
3529 (alpha_value_to_register): Update, store the register.
3530 (alpha_register_to_value): Update, fetch the register.
3531
3532 2003-06-14 Theodore A. Roth <troth@openavr.org>
3533
3534 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3535 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3536 Don't set deprecated_call_dummy_words.
3537 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3538 Don't set remote_translate_xfer_address.
3539 (avr_io_reg_read_command): Remove commented out debug printf.
3540 Wrap a long line.
3541
3542 2003-06-14 Theodore A. Roth <troth@openavr.org>
3543
3544 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3545 causes gdb to seg fault.
3546
3547 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3548
3549 * sparc-nat.c (fetch_inferior_registers): Correct
3550 a reference to "registers".
3551
3552 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3553
3554 * Makefile.in (exc_request_U_h): Define
3555 (exc_request_S_h): Likewise.
3556 (msg_reply_S_h): Likewise.
3557 (msg_U_h): Likewise.
3558 (notify_S_h): Likewise.
3559 (process_reply_S_h): Likewise.
3560 (gnu-nat.o): Depend on gdb_obstack_h
3561 * gnu-nat.c: Include "gdb_obstack.h".
3562
3563 2003-06-13 Andrew Cagney <cagney@redhat.com>
3564
3565 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3566 * gdbarch.h, gdbarch.c: Re-generate.
3567
3568 2003-06-13 Andrew Cagney <cagney@redhat.com>
3569
3570 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3571 when deprecated REGISTER macros can be deleted.
3572 * gdbarch.h, gdbarch.c: Re-generate.
3573
3574 2003-06-13 Jim Blandy <jimb@redhat.com>
3575
3576 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3577 Linux entry point symbols for _dl_debug_state, too.
3578
3579 2003-06-13 Andrew Cagney <cagney@redhat.com>
3580
3581 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3582 available, do not use the FP register, and always save the TOS.
3583 * dummy-frame.c (dummy_frame_this_id): Do not assert
3584 SAVE_DUMMY_FRAME_TOS.
3585 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3586 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3587 (i386_push_dummy_call): Add 8 to the returned SP.
3588 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3589 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3590 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3591 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3592 (x86_64_push_dummy_call): Return "sp + 16".
3593 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3594 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3595 save_dummy_frame_tos.
3596
3597 2003-06-13 Jim Blandy <jimb@redhat.com>
3598
3599 * frv-tdep.c (frv_use_struct_convention): Delete static
3600 declaration for function deleted in my change of 2003-06-12.
3601
3602 2003-06-13 Theodore A. Roth <troth@openavr.org>
3603
3604 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3605 (avr_pointer_to_address): Shift code addrs left 1 bit.
3606 (avr_convert_from_func_ptr_addr): Delete function since operation is
3607 better handled by avr_address_to_pointer and avr_pointer_to_address.
3608 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3609
3610 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3611
3612 From Kelley Cook <kelleycook@wideopenwest.com>:
3613 * configure.host: Accept i[34567]86 variants.
3614 * configure.tgt: Likewise.
3615 * nlm/configure.in: Likewise.
3616 * nlm/configure: Regenerated.
3617
3618 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3619
3620 * arm-tdep.c (solib-svr4.h): Dont' include it.
3621 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3622 * arm-linux-tdep.c: ... here. Make static.
3623 (arm_linux_init_abi): Register it.
3624 (solib-svr4.h): Include it.
3625 * Makefile.in: Update dependencies.
3626 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3627 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3628
3629 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3630
3631 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3632 indicate registers used for return values.
3633 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3634 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3635 members.
3636 (h8300_init_extra_frame_info): Ditto.
3637 (h8300_frame_locals_address): Removed.
3638 (h8300_frame_args_address): Removed.
3639 (h8300_extract_return_value): Use new regcache structure. Only care
3640 for 16 bit CPUs.
3641 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3642 (h8300_store_return_value): Use new regcache structure. Only care
3643 for 16 bit CPUs.
3644 (h8300h_store_return_value): Same function for 32 bit CPUs.
3645 (h8300_store_struct_return): Removed.
3646 (h8300_extract_struct_value_address): Use new regcache structure.
3647 (h8300h_extract_struct_value_address): Removed.
3648 (h8300_push_dummy_code): New function.
3649 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3650 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3651 set_gdbarch_store_return_value architecture dependent.
3652 Call set_gdbarch_push_dummy_code and
3653 set_gdbarch_extract_struct_value_address.
3654 Remove calls to set_gdbarch_frame_args_address,
3655 set_gdbarch_frame_locals_address,
3656 set_gdbarch_deprecated_store_struct_return,
3657 set_gdbarch_deprecated_extract_return_value,
3658 set_gdbarch_deprecated_extract_struct_value_address,
3659 set_gdbarch_deprecated_call_dummy_words and
3660 set_gdbarch_deprecated_sizeof_call_dummy_words.
3661
3662 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3663
3664 * h8300-tdep.c (h8300_register_byte): Remove.
3665 (h8300h_register_byte): Remove.
3666 (h8300_register_virtual_type): Remove. Substitute by...
3667 (h8300_register_type): New function.
3668 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3669 (h8300h_extract_struct_value_address): Ditto.
3670 (h8300_gdbarch_init): Drop calls to
3671 set_gdbarch_deprecated_register_byte and
3672 set_gdbarch_deprecated_register_virtual_type.
3673 Add call to set_gdbarch_register_type.
3674
3675 2003-06-13 Andrew Cagney <cagney@redhat.com>
3676
3677 * gdbarch.sh: Update comments on registers.
3678 (deprecated_register_byte): Rename register_byte.
3679 (deprecated_register_raw_size): Rename register_raw_size.
3680 (deprecated_register_virtual_size): Rename register_virtual_size.
3681 (deprecated_register_virtual_type): Rename register_virtual_type.
3682 * gdbarch.h, gdbarch.c: Re-generate.
3683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3684 * vax-tdep.c (vax_gdbarch_init): Update.
3685 * v850-tdep.c (v850_gdbarch_init): Update.
3686 * sparc-tdep.c (sparc_gdbarch_init): Update.
3687 * sh-tdep.c (sh_gdbarch_init): Update.
3688 * s390-tdep.c (s390_gdbarch_init): Update.
3689 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3690 * ns32k-tdep.c: Update.
3691 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3692 * mips-tdep.c (mips_gdbarch_init): Update.
3693 * mcore-tdep.c (mcore_gdbarch_init): Update.
3694 * m68k-tdep.c (m68k_gdbarch_init): Update.
3695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3696 * ia64-tdep.c (ia64_gdbarch_init): Update.
3697 * hppa-tdep.c (hppa_gdbarch_init): Update.
3698 * h8300-tdep.c (h8300_gdbarch_init): Update.
3699 * frv-tdep.c (frv_gdbarch_init): Update.
3700 * cris-tdep.c (cris_gdbarch_init): Update.
3701 * avr-tdep.c (avr_gdbarch_init): Update.
3702 * alpha-tdep.c (alpha_gdbarch_init): Update.
3703 * arm-tdep.c (arm_gdbarch_init): Update.
3704
3705 2003-06-13 Andrew Cagney <cagney@redhat.com>
3706
3707 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3708 mips_o32_use_struct_convention with always_use_struct_convention.
3709
3710 2003-06-12 David Carlton <carlton@kealia.com>
3711
3712 * cp-namespace.c (cp_set_block_scope): Comment out
3713 processing_has_namespace_info branch.
3714
3715 2003-06-12 Jim Blandy <jimb@redhat.com>
3716
3717 Recognize and skip 64-bit PowerPC Linux linkage functions.
3718 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3719 insn_pattern, insns_match_pattern, d_field, ds_field): New
3720 functions, macros, and types for working with PPC instructions.
3721 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3722 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3723 ppc64_skip_trampoline_code): New functions, variables, and macros
3724 for recognizing and skipping linkage functions.
3725 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3726 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3727
3728 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3729 register offsets for both the 32- and 64-bit interfaces.
3730
3731 Actually finish the job started by my change of 2003-05-29.
3732 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3733 other #definition of this.
3734 (ppc_linux_skip_trampoline_code): Remove declaration.
3735 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3736 static.
3737 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3738 method for GDBARCH.
3739
3740 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3741 'long' on ppc64-*-linux*.
3742
3743 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3744 isn't #defined, assume the register doesn't exist: act as if
3745 tdep->ppc_mq_regnum were -1.
3746
3747 * configure.host, configure.tgt: Add entries for
3748 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3749 powerpc/linux.mt.
3750 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3751 New files.
3752
3753 * arch-utils.c (always_use_struct_convention): New function.
3754 * arch-utils.h (always_use_struct_convention): New prototype.
3755 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3756 (alpha_gdbarch_init): Register always_use_struct_convention,
3757 instead of alpha_use_struct_convention.
3758 * cris-tdep.c (cris_use_struct_convention): Delete.
3759 (cris_gdbarch_init): Register always_use_struct_convention,
3760 instead of cris_use_struct_convention.
3761 * frv-tdep.c (frv_use_struct_convention): Delete.
3762 (frv_gdbarch_init): Register always_use_struct_convention,
3763 instead of frv_use_struct_convention.
3764 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3765 (h8300_gdbarch_init): Register always_use_struct_convention,
3766 instead of h8300_use_struct_convention.
3767 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3768 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3769 instead of mips_o32_use_struct_convention.
3770
3771 2003-06-12 Andrew Cagney <cagney@redhat.com>
3772
3773 * wince.c: Include "mips-tdep.h".
3774 * mips-tdep.h (mips_next_pc): Declare.
3775 * mcore-tdep.c: Make more local functions static.
3776 * Makefile.in (wince.o): Update dependencies.
3777
3778 2003-06-12 David Carlton <carlton@kealia.com>
3779
3780 * symtab.c (lookup_symbol_aux_minsyms): Replace
3781 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3782 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3783 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3784 SYMBOL_NATURAL_NAME.
3785
3786 2003-06-12 Andreas Schwab <schwab@suse.de>
3787
3788 * Makefile.in (tuiDisassem.o): Update dependencies.
3789
3790 2003-06-12 David Carlton <carlton@bactrian.org>
3791
3792 * symtab.h: Delete declaration of make_symbol_overload_list.
3793 Add declaration of lookup_partial_symbol.
3794 * symtab.c (remove_params): Move to cp-support.c.
3795 (overload_list_add_symbol, make_symbol_overload_list)
3796 (sym_return_val_size, sym_return_val_index): Ditto.
3797 (lookup_partial_symbol): Make extern.
3798 * cp-support.h: Add declaration of make_symbol_overload_list.
3799 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3800 symtab.h, and block.h.
3801 (remove_params): Move here from symtab.c.
3802 (overload_list_add_symbol, make_symbol_overload_list)
3803 (sym_return_val_size, sym_return_val_index): Ditto.
3804 * valops.c: Include cp-support.h.
3805 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3806 frame_h, and block_h.
3807 (valops.o): Depend on cp_support_h.
3808
3809 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3810
3811 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3812 substitute by NUM_REGS throughout.
3813 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3814 (h8300s_register_name): New function for H8S registers.
3815 (h8300sx_register_name): Ditto for H8SX registers.
3816 (h8300_print_register): Revise register printing, avoid depending
3817 on 32 bit long.
3818 (h8300_register_byte): Only care for H8/300 registers.
3819 (h8300h_register_byte): New function for any other architecture.
3820 (h8300_register_raw_size): Remove.
3821 (h8300_register_virtual_type): Revise to return actually useful
3822 type.
3823 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3824 (h8300h_extract_struct_value_address): New function for any other
3825 architecture.
3826 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3827 set_gdbarch_register_name, set_gdbarch_register_byte,
3828 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3829 Remove calls to set_gdbarch_deprecated_register_size,
3830 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3831 set_gdbarch_deprecated_max_register_raw_size,
3832 set_gdbarch_register_virtual_size and
3833 set_gdbarch_deprecated_max_register_virtual_size entirely.
3834 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3835 set_gdbarch_long_double_bit.
3836
3837 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3838
3839 * doublest.c (convert_doublest_to_floatformat): When dealing
3840 with the implied integer bit, only alter mant_bits if we are
3841 processing a full 32 bits of mantissa.
3842
3843 2003-06-11 David Carlton <carlton@bactrian.org>
3844
3845 * dictionary.h: New.
3846 * dictionary.c: New.
3847 * block.h: Add opaque declaration for struct dictionary.
3848 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3849 'sym' members.
3850 (BLOCK_DICT): New macro.
3851 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3852 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3853 BLOCK_SHOULD_SORT.
3854 (ALL_BLOCK_SYMBOLS): Update definition.
3855 * Makefile.in (SFILES): Add dictionary.c.
3856 (dictionary_h): New.
3857 (COMMON_OBS): Add dictionary.o.
3858 (dictionary.o): New.
3859 (ada-lang.o): Depend on dictionary_h.
3860 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3861 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3862 (mi-cmd-stack.o): Ditto.
3863 (gdbtk-cmds.o): Update dependencies.
3864 (gdbtk-stack.o): Ditto.
3865 * ada-lang.c: Include dictionary.h.
3866 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3867 (fill_in_ada_prototype, debug_print_block): Ditto.
3868 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3869 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3870 'is_sorted'.
3871 * mdebugread.c: Include dictionary.h.
3872 (struct parse_stack): Delete 'maxsyms' member.
3873 (parse_symbol): Update calls to new_block. Delete calls to
3874 shrink_block. Use dictionary methods.
3875 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3876 Update calls to new_symtab. Don't maintain maxsyms data.
3877 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3878 (add_symbol): Just call dict_add_symbol.
3879 (new_symtab): Delete 'maxsyms' argument.
3880 (new_symtab): Update calls to new_block.
3881 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3882 (shrink_block): Delete function.
3883 (fixup_sigtramp): Update call to new_block. Add symbol via
3884 dict_add_symbol.
3885 * jv-lang.c: Include dictionary.h.
3886 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3887 appropriately. Set class_symtab->free_func. Make sure the
3888 blockvector is big enough to hold two blocks.
3889 (add_class_symtab_symbol): Use dictionary methods.
3890 (free_class_block): New function.
3891 (type_from_class): Replace explicit iteration by
3892 ALL_BLOCK_SYMBOLS.
3893 * symtab.h (struct symtab): Replace 'free_ptr' method by
3894 'free_func'.
3895 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3896 sort_symtab_syms.
3897 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3898 sort_symtab_syms.
3899 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3900 Include dictionary.h.
3901 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3902 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3903 sort_symtab_syms.
3904 * objfiles.c: Include dictionary.h.
3905 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3906 * buildsym.c: Include dictionary.h.
3907 (finish_block): Use dictionary methods.
3908 (end_symtab): Set free_func to NULL, not free_ptr.
3909 * tracepoint.c: Include dictionary.h.
3910 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3911 (scope_info): Ditto.
3912 * stack.c: Include dictionary.h.
3913 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3914 (print_block_frame_labels, print_frame_arg_vars)
3915 (print_frame_args): Ditto.
3916 * symmisc.c (free_symtab_block): Use dictionary methods.
3917 (dump_symtab): Ditto.
3918 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3919 Include dictionary.h.
3920 * symfile.h: Delete declarations of sort_block_syms,
3921 sort_symtab_syms.
3922 * symfile.c (sort_block_syms): Delete.
3923 (sort_symtab_syms): Delete.
3924 * symtab.c: Include dictionary.h.
3925 (lookup_block_symbol): Use dictionary iterators.
3926 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3927 (search_symbols, make_symbol_completion_list): Ditto.
3928 (make_symbol_overload_list): Ditto.
3929 * valops.c (value_of_local): Use dict_empty.
3930 Include dictionary.h.
3931
3932 2003-06-11 J. Brobecker <brobecker@gnat.com>
3933
3934 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3935
3936 2003-06-11 David Carlton <carlton@bactrian.org>
3937
3938 * block.h (BLOCK_SHOULD_SORT): Delete.
3939 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3940 blocks.
3941 * ada-lang.c (ada_add_block_symbols): Ditto.
3942 * symfile.c (sort_block_syms): Delete.
3943 (sort_symtab_syms): Ditto.
3944 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3945 declarations.
3946 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3947 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3948 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3949 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3950 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3951 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3952 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3953
3954 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3955
3956 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3957 bits to 128.
3958
3959 2003-06-11 Andrew Cagney <cagney@redhat.com>
3960
3961 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3962 REGISTER_CONVERTIBLE.
3963 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3964 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3965 * gdbarch.h, gdbarch.c: Re-generate.
3966 * arch-utils.h (deprecated_register_convertible_not): Rename
3967 generic_register_convertible_not.
3968 * arch-utils.c (deprecated_register_convertible_not): Rename
3969 generic_register_convertible.
3970 (legacy_convert_register_p, legacy_register_to_value): Update.
3971 * sh-tdep.c (sh64_push_arguments): Update.
3972 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3973 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3974 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3975 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3976 * arch-utils.c (legacy_value_to_register): Update.
3977 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3978 (rs6000_register_convert_to_raw): Make parameter "from" const.
3979 * mips-tdep.c (mips_gdbarch_init): Update.
3980 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3981 * infcmd.c (default_print_registers_info): Update.
3982 * ia64-tdep.c (ia64_gdbarch_init): Update.
3983 (ia64_register_convert_to_raw): Make parameter "from" const.
3984 * i386-tdep.c (i386_gdbarch_init): Update.
3985 (i386_register_convert_to_raw): Update.
3986
3987 2003-06-11 Andrew Cagney <cagney@redhat.com>
3988
3989 * remote-fileio.c: Include "remote-fileio.h".
3990 * Makefile.in (remote-fileio.o): Update dependencies.
3991 (remote_fileio_h): Fix typo.
3992
3993 2003-06-11 Andrew Cagney <cagney@redhat.com>
3994
3995 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3996 (xstormy16_save_dummy_frame_tos): Make static.
3997 (_initialize_xstormy16_tdep): Add declaration.
3998 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3999 * v850-tdep.c: Make local functions static.
4000 (_initialize_v850_tdep): Add declaration.
4001 * sparc-tdep.c: Make local functions static.
4002 (_initialize_sparc_tdep): Add declaration.
4003 * sh-tdep.c: Make local functions static.
4004 (_initialize_sh_tdep): Add declaration.
4005 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4006 * s390-tdep.c: Make local functions static.
4007 (_initialize_s390_tdep): Add declaration.
4008 * dbxread.c (find_stab_function_addr): Make static.
4009 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4010 * ocd.c (_initialize_remote_ocd): Add declaration.
4011 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4012 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4013 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4014 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4015 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4016 * remote-array.c (_initialize_array): Add declaration.
4017 (_initialize_remote_monitors): Add declaration.
4018 * remote-mips.c: Make local functions static.
4019 (_initialize_remote_mips): Add declaration.
4020 * mcore-tdep.c: Make all local functions static.
4021 (_initialize_mcore_tdep): Add declaration.
4022 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4023 * abug-rom.c (_initialize_abug_rom): Add declaration.
4024 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4025 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4026 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4027 * remote-est.c (_initialize_est): Add declaration.
4028 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4029 (m68hc11_call_dummy_address): Make static.
4030 * ia64-tdep.c: Make local functions static.
4031 (_initialize_ia64_tdep): Add declaration.
4032 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4033 * monitor.c (monitor_wait_filter): Make static.
4034 (_initialize_remote_monitors): Add declaration.
4035 * remote-hms.c (_initialize_remote_hms): Add declaration.
4036 * remote-e7000.c (fetch_regs_from_dump): Make static.
4037 (expect_n): Make static.
4038 (_initialize_remote_e7000): Add declaration.
4039 * ser-e7kpc.c: Always include "defs.h".
4040 (_initialize_ser_e7000pc): Add declaration.
4041 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4042 * cris-tdep.c: Make all but one function static.
4043 (_initialize_cris_tdep): Add declaration.
4044 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4045 * solib.c (update_solib_list): Make static.
4046 (_initialize_solib): Add declaration.
4047 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4048 (_initialize_avr_tdep): Add declaration.
4049 * remote-rdi.c (voiddummy): Make static.
4050 (_initialize_remote_rdi): Add declaration.
4051 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4052 * remote-rdp.c (send_rdp): Make static.
4053 (_initialize_remote_rdp): Add declaration.
4054 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4055
4056 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4057
4058 * remote-fileio.c: Make ari happy.
4059
4060 2003-06-10 J. Brobecker <brobecker@gnat.com>
4061
4062 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4063 fetching the trailing bytes of the buffer we are about to write.
4064
4065 2003-06-10 Andrew Cagney <cagney@redhat.com>
4066
4067 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4068 * Makefile.in (remote-fileio.o): Update dependencies.
4069 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4070 include <setjmp.h>, or <sys/types.h> conditional on USG.
4071 (remote_fio_jmp_buf): Delete global variable.
4072
4073 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4074 Martin M. Hunt <hunt@redhat.com>
4075
4076 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4077 (SFILES): Add remote-fileio.c.
4078 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4079 dependencies for building remote.o.
4080 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4081 * remote-fileio.h: New header file defining remote File-I/O interface.
4082 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4083 static storage class.
4084 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4085 'F' packet.
4086 (_initialize_remote): Call initialize_remote_fileio().
4087 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4088 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4089 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4090 (captured_main): Initialize new ui_files.
4091 * ui-file.c: Add read and fgets input functions.
4092 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4093 (null_file_read): New function.
4094 (ui_file_read): New function.
4095 (set_ui_file_read): New function.
4096 (stdio_file_read): New function.
4097 * ui-file.h: New type ui_file_read_ftype.
4098 (set_ui_file_read): Declare.
4099 (ui_file_read): Declare.
4100
4101 2003-06-09 Andrew Cagney <cagney@redhat.com>
4102
4103 * frame.h (deprecated_unwind_get_saved_register): Rename
4104 generic_unwind_get_saved_register, update comments.
4105 * mips-tdep.c (mips_get_saved_register): Update.
4106 * frame.c (deprecated_unwind_get_saved_register): Update.
4107
4108 2003-06-09 Andrew Cagney <cagney@redhat.com>
4109
4110 * vax-tdep.c (vax_frame_locals_address): Delete function.
4111 (vax_gdbarch_init): Do not set frame_locals_address.
4112 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4113 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4114 * s390-tdep.c (s390_frame_args_address): Delete function.
4115 (s390_gdbarch_init): Do not set frame_args_address or
4116 frame_locals_address.
4117 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4118 (ns32k_gdbarch_init): Do not set frame_locals_address.
4119 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4120 (hppa_frame_locals_address): Delete function.
4121 (hppa_gdbarch_init): Do not set frame_args_address, or
4122 frame_locals_address.
4123 * arm-tdep.c (arm_frame_args_address): Delete.
4124 (arm_frame_locals_address): Delete.
4125 (arm_gdbarch_init): Do not set frame_args_address, or
4126 frame_locals_address.
4127
4128 2003-06-09 Andrew Cagney <cagney@redhat.com>
4129
4130 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4131 * gdbarch.h, gdbarch.c: Re-generate.
4132 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4133 * arch-utils.c (frame_num_args_unknown): Delete function.
4134 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4135 (frame_info): Use FRAME_NUM_ARGS_P.
4136 * arm-tdep.c (arm_frame_num_args): Delete function.
4137 (arm_gdbarch_init): Do not set frame_num_args.
4138 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4139 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4140 (hppa_gdbarch_init): Do not set frame_num_args.
4141 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4142 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4143 frame_num_args to default frame_num_args_unknown.
4144 * v850-tdep.c (v850_gdbarch_init): Ditto.
4145 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4146 * sh-tdep.c (sh_gdbarch_init): Ditto.
4147 * s390-tdep.c (s390_gdbarch_init): Ditto.
4148 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4149 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4150 * mips-tdep.c (mips_gdbarch_init): Ditto.
4151 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4152 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4154 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4155 * i386-tdep.c (i386_gdbarch_init): Ditto.
4156 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4157 * frv-tdep.c (frv_gdbarch_init): Ditto.
4158 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4159 * cris-tdep.c (cris_gdbarch_init): Ditto.
4160 * avr-tdep.c (avr_gdbarch_init): Ditto.
4161 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4162
4163 2003-06-09 Andrew Cagney <cagney@redhat.com>
4164
4165 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4166 (print_frame_args): Moved to "stack.c".
4167 * stack.c: Include "gdb_assert.h".
4168 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4169 (print_frame_args): Moved from "printcmd.c".
4170 * frame.h (print_frame_args): Delete declaration.
4171 * Makefile.in (stack.o): Update dependencies.
4172
4173 2003-06-08 Andrew Cagney <cagney@redhat.com>
4174
4175 * frame.c (get_prev_frame): Remove reference to
4176 frame_args_address_correct in comments.
4177 * frame-base.c (default_frame_args_address): Delete code
4178 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4179 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4180 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4181 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4182 (vax_frame_args_address_correct): Delete declaration.
4183
4184 2003-06-08 Andrew Cagney <cagney@redhat.com>
4185
4186 * gdbarch.sh (UNWIND_SP): Add.
4187 * gdbarch.h, gdbarch.c: Re-generate.
4188 * frame.c (frame_sp_unwind): New function.
4189 (get_frame_sp): New function.
4190 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4191 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4192 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4193 value.
4194 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4195 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4196
4197 2003-06-08 Andrew Cagney <cagney@redhat.com>
4198
4199 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4200 REMOTE_BREAKPOINT.
4201 * remote.c: Update.
4202 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4203 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4204 * config/m68k/tm-sun3.h: Update.
4205 * config/m68k/tm-m68klynx.h: Update.
4206 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4207
4208 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4209 trad_frame". Update comments.
4210 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4211 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4212 (trad_frame_register_value, trad_frame_prev_register): Update.
4213
4214 2003-06-08 Andrew Cagney <cagney@redhat.com>
4215
4216 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4217 from GCC's acinclude.m4.
4218 * configure.in: Check for getopt's delcaration.
4219 * aclocal.m4, config.in, configure: Re-generate.
4220 * main.c (error_init): Delete declaration.
4221 * defs.h (error_init): Declare.
4222 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4223 (rs6000_convert_from_func_ptr_addr): Make static.
4224 (_initialize_rs6000_tdep): Add declaration.
4225 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4226 (show_commands, set_verbose, show_history): Delete declaration.
4227 * top.h (set_verbose): Add declaration.
4228 (show_history, set_history, show_commands): Add declaration.
4229 (do_restore_instream_cleanup): Add declaration.
4230 * objc-lang.c (specialcmp): Make static.
4231 (print_object_command): Make static.
4232 (find_objc_msgsend): Make static.
4233 (find_objc_msgcall_submethod_helper): Make static.
4234 (find_objc_msgcall_submethod): Make static.
4235 (_initialize_objc_language): Add declaration.
4236 (find_implementation_from_class): Make static.
4237 (find_implementation): Make static.
4238 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4239 * objc-lang.h (lookup_struct_typedef): Add declaration.
4240 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4241 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4242 (do_restore_user_call_depth): Make static.
4243 (do_restore_instream_cleanup): Delete declaration.
4244 (dont_repeat): Delete declaration.
4245 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4246 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4247 * reggroups.c (_initialize_reggroup): Add declaration.
4248 * cp-support.c (_initialize_cp_support): Add declaration.
4249 * cp-abi.c (_initialize_cp_abi): Add declaration.
4250 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4251 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4252 (_initialize_gnu_v3_abi): Add declaration.
4253 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4254 (_initialize_gnu_v2_abi): Add declaration.
4255 * frame-base.c (_initialize_frame_base): Add declaration.
4256 * doublest.c (floatformat_from_length): Make static.
4257 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4258 * frame.c (create_sentinel_frame): Make static.
4259 (_initialize_frame): Add declaration.
4260 * top.c (do_catch_errors): Make static.
4261 (gdb_rl_operate_and_get_next_completion): Make static.
4262 * typeprint.c: Include "typeprint.h".
4263 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4264 (sentinel_frame_this_id): Make static.
4265 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4266 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4267 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4268 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4269 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4270 * maint.c (maintenance_print_architecture): Make static.
4271 * signals/signals.c (_initialize_signals): Add declaration.
4272 * std-regs.c (_initialize_frame_reg): Add declaration.
4273 * jv-exp.y (push_variable): ISO C definition.
4274 (push_qualified_expression_name): Ditto.
4275 * memattr.c (_initialize_mem): Add declaration.
4276 * remote.c (remote_check_watch_resources): Make static.
4277 (remote_stopped_by_watchpoint): Make static.
4278 (remote_stopped_data_address): Make static.
4279 * d10v-tdep.c (nr_dmap_regs): Make static.
4280 (a0_regnum): Make static.
4281 (d10v_frame_unwind_cache): Make static.
4282 (d10v_frame_p): Make static.
4283 * osabi.c (show_osabi): Make static.
4284 (_initialize_gdb_osabi): Add extern declaration.
4285 * gdbtypes.c (make_qualified_type): Make static.
4286 (safe_parse_type): Make static.
4287 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4288 * macrotab.c (macro_bcache_free): Make static.
4289 * interps.c (interp_set_quiet): Make static.
4290 (interpreter_exec_cmd): Make static.
4291 * stack.h (select_frame_command): New file.
4292 * stack.c: Include "stack.h".
4293 (select_frame_command_wrapper): Delete function.
4294 (select_frame_command): Make global.
4295 * infcall.c: Include "infcall.h".
4296 * linespec.c: Include "linespec.h".
4297 * symfile.c (sections_overlap): Make static.
4298 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4299 * charset.c (_initialize_charset): Add missing prototype.
4300 * regcache.c (init_legacy_regcache_descr): Make static.
4301 (do_regcache_xfree): Make static.
4302 (regcache_xfer_part): Make static.
4303 (_initialize_regcache): Add missing prototype.
4304 * breakpoint.c (parse_breakpoint_sals): Make static.
4305 (breakpoint_sals_to_pc): Make static.
4306 * interps.h (clear_interpreter_hooks): ISO C declaration.
4307 * Makefile.in (stack_h): Define.
4308 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4309 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4310
4311 2003-06-08 Andrew Cagney <cagney@redhat.com>
4312
4313 * Makefile.in (d10v-tdep.o): Update dependencies.
4314 (SFILES): Add trad-frame.c.
4315 (trad_frame_h): Define.
4316 (COMMON_OBS): Add trad-frame.o.
4317 (trad-frame.o): Specify dependencies.
4318 * d10v-tdep.c: Include "trad-frame.h".
4319 (saved_regs_unwinder): Delete function.
4320 (d10v_frame_prev_register): Use trad_frame_prev_register.
4321 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4322 trad_frame", delete "regs" and "prev_sp".
4323 (prologue_find_regs): Use trad-frame.
4324 * trad-frame.h, trad-frame.c: New files.
4325
4326 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4327
4328 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4329
4330 2003-06-07 Adam Fedor <fedor@gnu.org>
4331
4332 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4333 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4334 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4335 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4336 resolve_msgsend_super, resolve_msgsend_super_stret):
4337 Use it.
4338
4339 2003-06-07 Andrew Cagney <cagney@redhat.com>
4340
4341 * symfile.h: Re-indent, clean up comments.
4342
4343 2003-06-07 Andrew Cagney <cagney@redhat.com>
4344
4345 * inferior.h (deprecated_write_sp): Replace
4346 generic_target_write_sp.
4347 * regcache.c (deprecated_write_sp): Replace
4348 generic_target_write_sp.
4349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4350 * vax-tdep.c (vax_gdbarch_init): Update.
4351 * v850-tdep.c (v850_gdbarch_init): Update.
4352 * sparc-tdep.c (sparc_gdbarch_init): Update.
4353 * sh-tdep.c (sh_gdbarch_init): Update.
4354 * s390-tdep.c (s390_gdbarch_init): Update.
4355 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4356 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4357 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4358 * mcore-tdep.c (mcore_gdbarch_init): Update.
4359 * m68k-tdep.c (m68k_gdbarch_init): Update.
4360 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4361 * ia64-tdep.c (ia64_gdbarch_init): Update.
4362 * h8300-tdep.c (h8300_gdbarch_init): Update.
4363 * frv-tdep.c (frv_gdbarch_init): Update.
4364 * cris-tdep.c (cris_gdbarch_init): Update.
4365 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4366
4367 2003-06-07 Andrew Cagney <cagney@redhat.com>
4368
4369 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4370 Assert that PC_REGNUM is valid.
4371 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4372
4373 2003-06-07 Andrew Cagney <cagney@redhat.com>
4374
4375 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4376 * gdbarch.h, gdbarch.c: Regenerate.
4377 * mn10300-tdep.c: Include "gdb_assert.h".
4378 (mn10300_read_fp): New function.
4379 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4380 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4381 * ia64-tdep.c: Include "gdb_assert.h".
4382 (ia64_read_fp): New function.
4383 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4384 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4385 * regcache.c (generic_target_read_sp): Delete function.
4386 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4387 * inferior.h (generic_target_read_sp): Delete declaration.
4388 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4389 generic_target_read_sp.
4390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4391 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4392 * sh-tdep.c (sh_gdbarch_init): Ditto.
4393 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4394 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4395
4396 2003-06-07 Andrew Cagney <cagney@redhat.com>
4397
4398 * gdbarch.sh: Comment each field of startup_gdbarch.
4399 * gdbarch.h, gdbarch.c: Re-generate.
4400
4401 2003-06-07 Andrew Cagney <cagney@redhat.com>
4402
4403 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4404 * gdbarch.h, gdbarch.c: Re-generate.
4405 * regcache.c: Update comments on read_pc et.al.
4406 (generic_target_read_pc): Delete function.
4407 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4408 * inferior.h (generic_target_read_pc): Delete declaration.
4409 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4410 generic_target_read_pc.
4411 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4412 * sh-tdep.c (sh_gdbarch_init): Ditto.
4413 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4414 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4415
4416 2003-06-07 Andrew Cagney <cagney@redhat.com>
4417
4418 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4419 "index" with "special_local_sect". Use strcmp instead of STREQ.
4420 Append period to coments.
4421
4422 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4423
4424 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4425 (elfstab_offset_sections): Likewise.
4426 * gdb-stabs.h (stab_section_info): Likewise.
4427 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4428 * objfiles.c (objfile_relocate): Likewise.
4429 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4430 * remote.c (get_offsets): Likewise.
4431 (remote_cisco_objfile_relocate): Likewise.
4432 * somread.c (som_symfile_offsets): Likewise.
4433 * symfile.c (alloc_section_addr_info): New function.
4434 (build_section_addr_info_from_section_tab): Use it.
4435 (free_section_addr_info): Adjust.
4436 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4437 (syms_from_objfile): Allocate local_addr dynamically.
4438 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4439 dynamically.
4440 (add_symbol_file_command): Allocate sect_opts dynamically.
4441 (reread_symbols): Avoid use of SECT_OFF_MAX.
4442 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4443 (alloc_section_addr_info): Declare it.
4444 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4445 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4446 dynamically.
4447 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4448
4449 2003-06-06 Andrew Cagney <cagney@redhat.com>
4450
4451 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4452 (d10v_frame_unwind_cache): Do not set "return_pc".
4453
4454 2003-06-06 Michael Snyder <msnyder@redhat.com>
4455
4456 * h8300-tdep.c: Make tidy (long lines).
4457
4458 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4459
4460 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4461 to regcache_collect().
4462
4463 2003-06-05 J. Brobecker <brobecker@gnat.com>
4464
4465 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4466 pc_in_sigtramp multiarch method.
4467 (hppa_hpux_som_init_abi): Use it.
4468 (hppa_hpux_elf_init_abi): Likewise.
4469 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4470 macro has been multiarched.
4471 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4472 macro here, as hppa64 isn't multiarched yet.
4473
4474 2003-06-05 Andrew Cagney <cagney@redhat.com>
4475
4476 * Makefile.in (value_h): Add $(frame_h).
4477 * value.h: Include "frame.h".
4478 (struct value): Replace "frame_addr" with "frame_id".
4479 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4480 * values.c (allocate_value): Use VALUE_FRAME_ID.
4481 (value_copy): Use VALUE_FRAME_ID.
4482 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4483 * valops.c (value_assign): Update. Use frame_find_by_id.
4484
4485 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4486
4487 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4488 in each pass.
4489
4490 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4491
4492 * thread-db.c (check_event): For create/death event breakpoints,
4493 loop through all messages to ensure that we read the message
4494 corresponding to the breakpoint we are at.
4495
4496 2003-06-04 Michael Snyder <msnyder@redhat.com>
4497
4498 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4499
4500 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4501
4502 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4503 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4504 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4505 when handling .eh_frame sections.
4506
4507 2003-06-04 J. Brobecker <brobecker@gnat.com>
4508
4509 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4510 prepare_to_proceed procedure instead of the hppa-specific one.
4511 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4512
4513 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4514
4515 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4516 * config.in: Regenerated.
4517 * configure.in: Add test for syscall function and check for
4518 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4519 * configure: Regenerated.
4520 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4521 <sys/syscall.h>.
4522 (kill_lwp): New function that uses tkill syscall or
4523 uses kill, depending on whether threading model is nptl or not.
4524 All callers of kill() changed to use kill_lwp().
4525 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4526 see if all threads have already exited in the nptl model.
4527 (stop_and_resume_callback): New callback function used by the
4528 lin_lwp_wait thread exit handling code.
4529 (stop_wait_callback): Check for threads already having exited and
4530 delete such threads fromt the lwp list when discovered.
4531 (stop_callback): Don't assert retcode of kill call.
4532
4533 Roland McGrath <roland@redhat.com>
4534 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4535 nptl libthread_db.
4536
4537 2003-06-03 Richard Henderson <rth@redhat.com>
4538
4539 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4540 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4541 (alpha_sigtramp_frame_prev_register): Likewise.
4542 (alpha_heuristic_frame_prev_register): Likewise.
4543 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4544
4545 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4546 alpha-specific register id names.
4547 (alpha_mdebug_frame_unwind_cache): Likewise.
4548 (alpha_mdebug_frame_prev_register): Likewise.
4549
4550 2003-06-03 Richard Henderson <rth@redhat.com>
4551
4552 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4553 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4554 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4555 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4556 unwind routines.
4557 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4558 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4559 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4560
4561 * alpha-linux-tdep.c: Remove unnecessary includes.
4562 * Makefile.in (alpha-linux-tdep.o): Update.
4563
4564 2003-06-03 Richard Henderson <rth@redhat.com>
4565
4566 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4567 (alphabsd_fill_fpreg): Likewise.
4568
4569 2003-06-03 J. Brobecker <brobecker@gnat.com>
4570
4571 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4572 references to struct frame_info fields by calls to the equivalent
4573 accessors. Necessary now that frame_info is opaque.
4574
4575 2003-06-03 J. Brobecker <brobecker@gnat.com>
4576
4577 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4578 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4579 structure, field no longer exists.
4580
4581 2003-06-03 J. Brobecker <brobecker@gnat.com>
4582
4583 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4584 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4585
4586 2003-06-03 J. Brobecker <brobecker@gnat.com>
4587
4588 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4589 references to struct frame_info fields by calls to the equivalent
4590 accessors. Necessary now that frame_info is opaque.
4591
4592 2003-06-03 J. Brobecker <brobecker@gnat.com>
4593
4594 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4595 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4596 structure, field no longer exists.
4597
4598 2003-06-03 Theodore A. Roth <troth@openavr.org>
4599
4600 * remote.c (init_remote_state): Compute sizeof_g_packet by
4601 accumulation of the size of all registers instead of blindly using
4602 DEPRECATED_REGISTER_BYTES.
4603
4604 2003-06-03 Michael Snyder <msnyder@redhat.com>
4605
4606 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4607 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4608 for h8300sx.
4609
4610 2003-06-03 J. Brobecker <brobecker@gnat.com>
4611
4612 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4613 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4614
4615 2003-06-03 Andrew Cagney <cagney@redhat.com>
4616
4617 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4618 (sparc_convert_to_raw): Delete function.
4619 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4620 register_convert_to_virtual.
4621
4622 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4623
4624 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4625 layer if not dealing with a statically-linked threaded program.
4626
4627 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4628
4629 * solib.c (solib_open): Update comment to reflect actual search order.
4630
4631 2003-06-03 Andrew Cagney <cagney@redhat.com>
4632
4633 * frame.c (get_frame_memory_signed): New function.
4634 (get_frame_memory, get_frame_memory_unsigned): New function.
4635 (get_frame_arch): New function.
4636 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4637 (get_frame_memory, get_frame_unsigned_memory): Declare.
4638 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4639 get_frame_memory_unsigned and get_frame_arch.
4640 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4641
4642 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4643
4644 * MAINTAINERS (write after approval): Add myself.
4645
4646 2003-06-03 Jim Blandy <jimb@redhat.com>
4647
4648 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4649 elements of gregset_t are 64 bits each, but access registers
4650 are still 32 bits, so they're packed two per gregset_t
4651 element. Unpack/pack them properly.
4652
4653 2003-06-02 David Carlton <carlton@bactrian.org>
4654
4655 * linespec.c (find_methods): Break out code into
4656 add_matching_methods and add_constructors.
4657 (add_matching_methods): New.
4658 (add_constructors): Ditto.
4659
4660 2003-06-02 Andrew Cagney <cagney@redhat.com>
4661
4662 * sparc-tdep.c (sparc_print_registers): Delete call to
4663 REGISTER_CONVERTIBLE.
4664 (sparc_gdbarch_init): Do not set register_convertible.
4665 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4666 * frv-tdep.c (frv_gdbarch_init): Ditto.
4667 * cris-tdep.c (cris_gdbarch_init): Ditto.
4668
4669 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4670
4671 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4672 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4673 (syms_from_objfile): Ditto.
4674
4675 2003-06-03 Andreas Schwab <schwab@suse.de>
4676
4677 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4678 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4679
4680 2003-06-02 Richard Henderson <rth@redhat.com>
4681
4682 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4683 a member of all_reggroup.
4684
4685 2003-06-02 Richard Henderson <rth@redhat.com>
4686
4687 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4688 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4689 (alpha_lds, alpha_sts): New.
4690 (alpha_convert_register_p): Change from _register_convertible.
4691 (alpha_register_to_value): Change from _convert_to_virtual;
4692 restructure and fail for type sizes other than 4 or 8.
4693 (alpha_value_to_register): Similarly.
4694 (alpha_extract_return_value): Use alpha_sts.
4695 (alpha_store_return_value): Use alpha_lds.
4696 (alpha_gdbarch_init): Update hooks.
4697
4698 2003-06-02 Richard Henderson <rth@redhat.com>
4699
4700 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4701 regnum identifiers.
4702 (alpha_sigtramp_register_address): Likewise.
4703
4704 2003-06-02 Richard Henderson <rth@redhat.com>
4705
4706 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4707 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4708 * alpha-tdep.h: Declare them.
4709
4710 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4711 Remove zerobuf. Don't error on UNIQUE.
4712 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4713 (ALPHA_REGSET_UNIQUE): Provide default.
4714 (supply_gregset): Use alpha_supply_int_regs.
4715 (fill_gregset): Use alpha_fill_int_regs.
4716 (supply_fpregset): Use alpha_supply_fp_regs.
4717 (fill_fpregset): Use alpha_fill_fp_regs.
4718 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4719 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4720 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4721 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4722 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4723 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4724
4725 2003-06-02 Richard Henderson <rth@redhat.com>
4726
4727 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4728
4729 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4730 (alpha_store_return_value): Likewise.
4731
4732 2003-06-02 David Carlton <carlton@math.stanford.edu>
4733
4734 * block.c (contained_in): Add 'const' to arguments.
4735 (block_function): Ditto.
4736 * block.h: Update declarations for block_function and
4737 contained_in.
4738
4739 2003-06-02 David Carlton <carlton@math.stanford.edu>
4740
4741 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4742 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4743 * p-valprint.c (pascal_val_print): Ditto.
4744 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4745
4746 2003-06-02 Richard Henderson <rth@redhat.com>
4747
4748 * alpha-tdep.c (alpha_push_dummy_call): Use
4749 builtin_type_ieee_double_little instead of builtin_type_double.
4750
4751 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4752 sign-extension of 32-bit values.
4753 (alpha_store_return_value): Similarly.
4754
4755 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4756 (alpha_extract_return_value): Likewise.
4757 (alpha_store_return_value): Likewise.
4758
4759 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4760 (alpha_store_return_value): Error on IEEE Quad floats.
4761
4762 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4763 (alpha_extract_struct_value_address): Likewise.
4764 (alpha_store_return_value): Likewise.
4765 (alpha_store_struct_return): Remove.
4766 (alpha_gdbarch_init): Update hook registration to match.
4767
4768 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4769 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4770 macros where appropriate.
4771 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4772 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4773
4774 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4775 for SP, GP; void_func_ptr for PC; non-language-specific types
4776 for all others.
4777 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4778
4779 2003-06-02 Richard Henderson <rth@redhat.com>
4780
4781 * top.h (lim_at_start): Declare.
4782 * main.c (captured_main): Set it.
4783 * top.c (lim_at_start): Define.
4784 (command_loop): Use it instead of &environ.
4785 * event-top.c (command_handler): Likewise.
4786
4787 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4788
4789 * mipsnbsd-tdep.c: Update copyright years.
4790 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4791
4792 2003-06-01 Richard Henderson <rth@redhat.com>
4793
4794 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4795 (alpha-linux-tdep.o): Update dependencies.
4796 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4797 * alpha-mdebug-tdep.c: Remove unneeded includes.
4798
4799 2003-06-01 Richard Henderson <rth@redhat.com>
4800
4801 * alpha-tdep.c (alpha_register_reggroup_p): New.
4802 (alpha_gdbarch_init): Register it.
4803
4804 2003-06-02 Andrew Cagney <cagney@redhat.com>
4805
4806 * dwarfread.c: Eliminate "register"
4807 (decode_die_type): Eliminate assignment within "if".
4808 (struct_type, decode_array_element_type): Ditto.
4809 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4810 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4811 (decode_modified_type, completedieinfo): Ditto.
4812 * block.c: Eliminate "register".
4813 (blockvector_for_pc_sect): Eliminate assignment within "if".
4814 * cp-support.h (struct symbol): Opaque declaration.
4815 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4816
4817 2003-06-01 Richard Henderson <rth@redhat.com>
4818
4819 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4820 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4821
4822 2003-06-01 Adam Fedor <fedor@gnu.org>
4823
4824 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4825 * gdbarch.[ch]: Regenerate.
4826 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4827 (hppa_gdbarch_init): Set it in the gdbarch vector.
4828 * i386-tdep.c (i386_fetch_pointer_argument): New
4829 (i386_gdbarch_init): Set it into gdbarch.
4830 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4831 (rs6000_gdbarch_init): Set it in gdbarch.
4832 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4833 (sparc_gdbarch_init): Set it in gdbarch.
4834
4835 2003-06-01 Andrew Cagney <cagney@redhat.com>
4836
4837 * defs.h (extract_address): Delete declaration.
4838 * findvar.c (extract_address): Delete function.
4839 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4840 extract_address with the inline equivalent,
4841 extract_unsigned_integer.
4842 (xstormy16_extract_struct_value_address): Ditto.
4843 (xstormy16_pointer_to_address): Ditto.
4844 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4845 * v850-tdep.c (v850_push_arguments): Ditto.
4846 (v850_extract_return_value): Ditto.
4847 (v850_extract_struct_value_address): Ditto.
4848 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4849 (sparcnbsd_get_longjmp_target_64): Ditto.
4850 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4851 (get_longjmp_target): Ditto.
4852 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4853 (sh64_extract_struct_value_address): Ditto.
4854 (sh_push_arguments): Ditto.
4855 (sh64_push_arguments): Ditto.
4856 * remote-vxsparc.c (vx_read_register): Ditto.
4857 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4858 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4859 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4860 * mipsv4-nat.c (get_longjmp_target): Ditto.
4861 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4862 * mips-nat.c (get_longjmp_target): Ditto.
4863 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4864 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4865 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4866 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4867 * irix5-nat.c (get_longjmp_target): Ditto.
4868 * irix4-nat.c (get_longjmp_target): Ditto.
4869 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4870 (ia64_push_arguments): Ditto.
4871 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4872 * h8300-tdep.c (h8300_push_arguments): Ditto.
4873 (h8300_store_return_value): Ditto.
4874 (h8300_extract_struct_value_address): Ditto.
4875 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4876 (frv_push_arguments): Ditto.
4877 * avr-tdep.c (avr_pointer_to_address): Ditto.
4878 (avr_push_arguments): Ditto.
4879 * arm-tdep.c (arm_push_dummy_call): Ditto.
4880 (arm_get_longjmp_target): Ditto.
4881 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4882 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4883 (alpha_get_longjmp_target): Ditto.
4884
4885 * solib-irix.c (extract_mips_address): Inline extract_address,
4886 replacing it with extract_signed_integer.
4887 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4888 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4889 (first_link_map_member, open_symbol_file_object): Ditto.
4890 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4891 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4892 (LM_NEXT, LM_NAME): Ditto.
4893
4894 2003-06-01 Richard Henderson <rth@redhat.com>
4895
4896 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4897 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4898 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4899 (alpha_cannot_store_register): Likewise.
4900 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4901 * alpha-nat.c (supply_gregset): Likewise.
4902 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4903
4904 2003-06-01 Andrew Cagney <cagney@redhat.com>
4905
4906 * infcall.c (call_function_by_hand): Update comment on
4907 DEPRECATED_DUMMY_WRITE_SP.
4908
4909 * mips-tdep.c (mips_gdbarch_init): Do not set
4910 deprecated_dummy_write_sp.
4911 (mips_eabi_push_dummy_call): Set the SP register.
4912 (mips_o64_push_dummy_call): Set the SP register.
4913 (mips_o32_push_dummy_call): Set the SP register.
4914 (mips_n32n64_push_dummy_call): Set the SP register.
4915
4916 2003-06-01 Richard Henderson <rth@redhat.com>
4917
4918 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4919 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4920 (supply_gregset): Likewise.
4921 * alpha-tdep.c (alpha_store_return_value): Likewise.
4922 (alpha_get_longjmp_target): Likewise.
4923 (alpha_register_name): Constify array.
4924 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4925 deprecated_register_size, deprecated_register_bytes,
4926 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4927 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4928 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4929
4930 2003-06-01 Richard Henderson <rth@redhat.com>
4931
4932 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4933 from arg_reg_buffer to regcache to avoid double conversion.
4934
4935 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4936
4937 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4938 SP_REGNUM.
4939 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4940 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4941
4942 2003-06-01 Richard Henderson <rth@redhat.com>
4943
4944 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4945 (decode_frame_entry): Set it. Skip FDE augmentation.
4946
4947 2003-06-01 Richard Henderson <rth@redhat.com>
4948
4949 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4950 not overlapping PC_REGNUM.
4951
4952 2003-06-01 Richard Henderson <rth@redhat.com>
4953
4954 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4955 alpha_push_arguments. Don't dump argument register data to
4956 the target stack. Fix float and 128-bit long double semantics.
4957 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4958 (alpha_fix_call_dummy): Remove.
4959 (alpha_call_dummy_words): Remove.
4960 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4961
4962 2003-06-01 Richard Henderson <rth@redhat.com>
4963
4964 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4965
4966 2003-06-01 Andrew Cagney <cagney@redhat.com>
4967
4968 * mips-tdep.c (is_mips16_addr): New function.
4969 (make_mips16_addr, unmake_mips16_addr): New functions.
4970 (pc_is_mips16, mips_fetch_instruction): Use.
4971 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4972 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4973 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4974 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4975 TARGET_MIPS.
4976 * config/mips/tm-mips.h: Update copyright.
4977 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4978 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4979 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4980 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4981 (TM_PRINT_INSN_MACH): Delete.
4982 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4983
4984 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4985 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4986 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4987 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4988 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4989 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4990 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4991 mips*-*-riscos* and mips*-*-sysv* onto mips.
4992 * config/mips/mips64.mt: New file.
4993 * config/mips/mips.mt: New file.
4994 * config/mips/littlemips.mt: Delete file.
4995 * config/mips/decstation.mt: Delete file.
4996 * config/mips/vr4300el.mt: Delete file.
4997 * config/mips/vr5000el.mt: Delete file.
4998 * config/mips/vr5000.mt: Delete file.
4999 * config/mips/vr4100.mt: Delete file.
5000 * config/mips/vr4xxxel.mt: Delete file.
5001 * config/mips/vr4300.mt: Delete file.
5002 * config/mips/vr4xxx.mt: Delete file.
5003 * config/mips/bigmips.mt: Delete file.
5004 * config/mips/bigmips64.mt: Delete file.
5005 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5006 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5007 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5008 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5009 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5010 "tm-bigmips.h".
5011 * config/mips/tm-irix3.h: Ditto.
5012 * config/mips/tm-mipsv4.h: Ditto.
5013 * config/mips/tm-embed.h: Ditto.
5014 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5015 "tm-bigmips64.h".
5016 * config/mips/tm-vr5000el.h: Delete file.
5017 * config/mips/tm-tx39l.h: Delete file.
5018 * config/mips/tm-vr4300el.h: Delete file.
5019 * config/mips/tm-vr4xxxel.h: Delete file.
5020 * config/mips/tm-vr4300.h: Delete file.
5021 * config/mips/tm-vr4100.h: Delete file.
5022 * config/mips/tm-vr4xxx.h: Delete file.
5023 * config/mips/tm-vr5000.h: Delete file.
5024 * config/mips/tm-embedl64.h: Delete file.
5025 * config/mips/tm-embedl.h: Delete file.
5026 * config/mips/tm-embed64.h: Delete file.
5027 * config/mips/tm-bigmips64.h: Delete file.
5028 * config/mips/tm-bigmips.h: Delete file.
5029
5030 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5031
5032 Fix gdb/1216.
5033 * shnbsd-nat.c: Include "sh-tdep.h".
5034
5035 From Richard Henderson <rth@redhat.com>:
5036 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5037
5038 2003-05-31 Andrew Cagney <cagney@redhat.com>
5039
5040 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5041 forward declaration.
5042 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5043 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5044 (mips_find_saved_regs): Use set_reg_offset.
5045 (mips_frame_init_saved_regs): Delete function.
5046 (mips_pop_frame): Call mips_find_saved_regs instead of
5047 DEPRECATED_FRAME_INIT_SAVED_REGS.
5048
5049 2003-05-31 Andrew Cagney <cagney@redhat.com>
5050
5051 * mips-tdep.c (mips_gdbarch_init): Do not set
5052 deprecated_max_register_raw_size, register_virtual_size, and
5053 deprecated_max_register_virtual_size.
5054
5055 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5056
5057 * i386-tdep.c: Include "dwarf2-frame.h".
5058 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5059 * Makefile.in (i386-tdep.o): Update dependencies.
5060
5061 * dwarf2-frame.c, dwarf2-frame.h: New files.
5062 * Makefile.in (SFILES): Add dwarf2-frame.c.
5063 (dwarf2_frame_h): Define.
5064 (COMMON_OBS): Add dwarf2-frame.o.
5065 (dwarf2-frame.o): Add dependencies.
5066
5067 2003-05-31 Andreas Jaeger <aj@suse.de>
5068
5069 * x86-64-linux-nat.c: Fix comment.
5070
5071 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5072
5073 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5074 function signature.
5075
5076 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5077 have a sigcontext_addr handler.
5078 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5079 sigcontext_addr handler.
5080
5081 2003-05-31 Andrew Cagney <cagney@redhat.com>
5082
5083 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5084 (print_fp_register_row): Replace do_fp_register_row.
5085 (mips_print_fp_register): Add "file" and "frame" parameters.
5086 (mips_print_register): Add "file" and "frame" parameters.
5087 (mips_print_registers_info): Replace mips_do_registers_info.
5088 (mips_gdbarch_init): Set print_registers_info instead of
5089 deprecated_do_registers_info.
5090 (mips_read_fp_register_single): Add "frame" parameter.
5091 (mips_read_fp_register_double): Add "frame" parameter.
5092
5093 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5094
5095 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5096 Fixes a bug where GDB would print the wrong register names for
5097 targets without SSE.
5098
5099 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5100 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5101 registers.
5102
5103 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5104 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5105 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5106 TDEP->sc_sp_offset.
5107
5108 From Michal Ludvig <mludvig@suse.cz>:
5109 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5110 and `sc_num_regs'.
5111 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5112 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5113 I386_ST0_REGNUM): Move here from...
5114 * i386-tdep.c: ... here.
5115 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5116 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5117 registers if possible.
5118 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5119 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5120 Remove variables.
5121 (i386bsd_sc_reg_offset): New variable.
5122 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5123 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5124 TDEP->sc_sp_offset.
5125 (i386fbsd_sc_reg_offset): New variable.
5126 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5127 TDEP->sc_num_regs.
5128 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5129 variables.
5130 (i386fbsd4_sc_reg_offset): New variable.
5131 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5132 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5133 TDEP->sc_sp_offset.
5134 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5135 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5136 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5137 Remove variables.
5138 (i386nbsd_sc_reg_offset): New variable.
5139 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5140 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5141 TDEP->sc_sp_offset.
5142 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5143 Remove variables.
5144 (i386obsd_sc_reg_offset): New variable.
5145 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5146 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5147 TDEP->sc_sp_offset.
5148 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5149 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5150 for frame pointer offset in `struct sigcontext'.
5151
5152 2003-05-31 Andrew Cagney <cagney@redhat.com>
5153
5154 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5155 architecture methods call_dummy_words, sizeof_call_dummy_words,
5156 push_return_address, store_struct_return, and fix_call_dummy. Set
5157 push_dummy_call instead of deprecated_push_arguments.
5158 (mips_store_struct_return): Delete function.
5159 (mips_fix_call_dummy): Delete function.
5160 (mips_push_return_address): Delete function.
5161 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5162 RA_REGNUM and T9_REGNUM.
5163 (mips_n32n64_push_dummy_call): Ditto for
5164 mips_n32n64_push_arguments.
5165 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5166 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5167
5168 2003-05-31 Andrew Cagney <cagney@redhat.com>
5169
5170 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5171 "dummy_addr" to "bp_addr".
5172 * infcall.c (call_function_by_hand): Pass "funaddr" to
5173 gdbarch_push_dummy_call.
5174 * gdbarch.h, gdbarch.c: Re-generate.
5175 * i386-tdep.c (i386_push_dummy_call): Update.
5176 * arm-tdep.c (arm_push_dummy_call): Update.
5177 * d10v-tdep.c (d10v_push_dummy_call): Update.
5178
5179 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5180
5181 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5182 variable declarations.
5183 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5184 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5185 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5186 x86_64_init_frame_pc, x86_64_init_frame_pc,
5187 x86_64_function_has_prologue): Remove prototypes.
5188 (X86_64_NUM_GREGS): New define.
5189 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5190 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5191 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5192 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5193 XMM1_REGNUM): Remove defines.
5194 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5195 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5196 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5197 X86_64_XMM1_REGNUM): New defines.
5198 (struct x86_64_register_info): Renamed from `struct
5199 register_info'. Remove `size' member.
5200 (x86_64_register_info_table): Remove variable.
5201 (x86_64_register_info): New variable.
5202 (X86_64_NUM_REGS): New define.
5203 (X86_64_NUM_GREGS): Remove define.
5204 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5205 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5206 Remove variables.
5207 (x86_54_dwarf2_reg_to_regnum): Remove function.
5208 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5209 (x86_64_dwarf_reg_to_regnum): New function.
5210 (x86_64_register_name): Rewrite.
5211 (x86_64_register_raw_size): Remove function.
5212 (x86_64_register_byte_table): Remove variable.
5213 (x86_64_register_byte): Remove function.
5214 (x86_64_register_virtual_type): Remove function.
5215 (x86_64_register_type): New function.
5216 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5217 x86_64_register_convert_to_raw): Remove functions.
5218 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5219 (x86_64_use_struct_convention): Make static. Adjust for renamed
5220 defines.
5221 (x86_64_frame_init_saved_regs): Remove function.
5222 (x86_64_push_arguments): Make static. Change to accept a regcache
5223 as argument.
5224 (x86_64_store_return_value, x86_64_extract_return_value): Make
5225 static. Rewrite based on i386 counterparts.
5226 (x86_64_push_dummy_call): New function.
5227 (X86_64_NUM_SAVED_REGS): New define.
5228 (x86_64_register_number): Remove function.
5229 (x86_64_store_struct_return): Remove function.
5230 (x86_64_frameless_function_invocation,
5231 x86_64_function_has_prologue): Remove functions.
5232 (PROLOG_BUFSIZE): Remove define.
5233 (struct x86_64_frame_cache): New structure.
5234 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5235 x86_64_frame_cache, x86_64_frame_this_id,
5236 x86_64_frame_prev_register, x86_64_frame_p,
5237 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5238 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5239 functions.
5240 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5241 variables.
5242 (x86_64_skip_prologue): Rewrite in terms of
5243 x86_64_analyze_prologue.
5244 (x86_64_frame_base_address): New function.
5245 (x86_64_frame_base): New variable.
5246 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5247 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5248 set deprecated_fp_regnum, deprecated_register_size,
5249 deprecated_register_bytes, register_raw_size, register_byte,
5250 register_virtual_type, register_convertiable,
5251 register_convert_to_virtual, convert_to_raw,
5252 deprecated_get_saved_register, deprecated_target_read_fp,
5253 deprecated_push_arguments, deprecated_push_return_address,
5254 deprecated_pop_frame, deprecated_store_struct_return,
5255 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5256 frameless_function_invocation, deprecated_frame_saved_pc,
5257 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5258 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5259 deprecated_init_frame_pc and virtual_frame_pointer. Call
5260 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5261 and x86_64_frame_p. Call frame_base_set_default to register
5262 x86_64_frame_base.
5263 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5264 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5265 (_initialize_x86_64_tdep): Remove function.
5266 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5267 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5268 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5269 define.
5270 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5271 (x86_64_linux_sigcontext_addr): Rewrite.
5272 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5273 x86_64_linux_frame_saved_pc): Remove functions.
5274 (x86_64_linux_pc_in_sigtramp): Renamed from
5275 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5276 trampoline.
5277 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5278 Remove_functions.
5279 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5280 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5281 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5282 (x86_64_regmap): Rename to regmap.
5283 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5284 x86_64_num_gregs.
5285 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5286 x86_64_regmap.
5287 (x86_64_fxsave_offset): Remove function.
5288 (supply_fpregset): Simply call x86_64_supply_fxsave.
5289 (fill_fpregset): Simply call x86_64_fill_fxsave.
5290 (fetch_inferior_registers, store_inferior_registers): Avoid
5291 asignment in if-statement.
5292 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5293 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5294 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5295 (fetch_core_registers): Remove function.
5296 (linux_elf_core_fns): Remove.
5297 (offsetoff): Don't define.
5298 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5299 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5300 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5301 add core-regset.o.
5302 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5303 protection against multiple includes instead of NM_X86_64_h. Add
5304 various comments. Include "config/nm-linux.h". Don't include
5305 <signal.h>.
5306 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5307 GET_THREAD_SIGNALS): Remove defines.
5308 (x86_64_register_u_addr, kernel_u_size,
5309 lin_thread_get_thread_signals): Remove prototypes.
5310 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5311 [HAVE_LINK_H]: Don't include "solib.h".
5312 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5313 * config/i386/tm-x86-64linux.h: Fix comments.
5314 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5315 x86-64-tdep.o): Update dependencies.
5316
5317 2003-05-30 Andrew Cagney <cagney@redhat.com>
5318
5319 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5320 Change parameter type to a "struct regcache *".
5321
5322 * gdbarch.sh: Regardless of the multi-arch level, always define
5323 the macro when not already defined.
5324 * gdbarch.h, gdbarch.c: Re-generate.
5325
5326 2003-05-30 Richard Henderson <rth@redhat.com>
5327
5328 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5329 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5330 (alpha_mdebug_frame_this_id): Likewise.
5331 (alpha_mdebug_frame_prev_register): Likewise.
5332 (alpha_mdebug_frame_base_address): Likewise.
5333 (alpha_mdebug_frame_locals_address): Likewise.
5334 (alpha_mdebug_frame_args_address): Likewise.
5335 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5336 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5337 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5338 loop increment.
5339 (alpha_heuristic_frame_this_id): Make static.
5340 (alpha_heuristic_frame_prev_register): Likewise.
5341 (alpha_heuristic_frame_base_address): Likewise.
5342 * alpha-tdep.h: Update.
5343
5344 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5345
5346 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5347 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5348 defenitions.
5349 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5350 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5351 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5352 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5353 I386_ST0_REGNUM): New defines.
5354 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5355 codestream_get): Remove define.
5356 (codestream_next_addr, condestream_addr, condestream_buf,
5357 codestream_off, codestream_cnt): Remove variables.
5358 (codestream_fill, codestream_seek, codestream_read): Remove
5359 functions.
5360 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5361 functionality.
5362 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5363 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5364 i386_frame_saved_pc, i386_saved_pc_after_call,
5365 i386_frame_num_args, i386_frame_init_saved_regs,
5366 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5367 i386_push_arguments): Remove functions.
5368 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5369 functionality. Use i386_analyze_prologue instead of
5370 i386_get_frame_setup.
5371 (I386_NUM_SAVED_REGS): New define.
5372 (struct i386_frame_cache): New structure.
5373 (i386_alloc_frame_cache, i386_analyze_struct_return,
5374 i386_skip_probe, i386_analyze_frame_setup,
5375 i386_analyze_register_saves, i386_analyze_prologue,
5376 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5377 i386_frame_prev_register, i386_sigtramp_frame_cache,
5378 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5379 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5380 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5381 New functions.
5382 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5383 New variables.
5384 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5385 I386_EAX_REGNUM and I386_EDX_REGNUM.
5386 (i386_extract_return_value, i386_store_return_value): Use
5387 I386_ST0_REGNUM where appropriate.
5388 (i386_extract_struct_value_address): Rewrite to use extract_address.
5389 (i386_svr4_pc_in_sigtramp): Add comment.
5390 (i386_svr4_sigcontext_addr): Rewrite.
5391 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5392 TDEP->sc_sp_offset.
5393 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5394 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5395 of new defines. Set push_dummy_call, don't set
5396 deprecated_push_arguments, deprecated_push_return_address,
5397 deprecated_pop_frame. Don't set parm_boundary. Don't set
5398 deprecated_frame_chain, deprecated_frame_saved_pc,
5399 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5400 save_dummy_frame_tos, unwind_pc. Call
5401 frame_unwind_append_predicate and frame_base_set_default. Don't
5402 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5403 Don't set frameless_function_invocation. Don't set
5404 deprecated_register_bytes, deprecated_register_size,
5405 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5406 * i386-linux-tdep.c: Fix formatting in some comments.
5407 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5408 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5409 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5410 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5411 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5412 redundant parentheses.
5413 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5414 (i386_linux_sigcontext_addr): Use it. Rewrite.
5415 (find_minsym_and_objfile): Change name of second argument.
5416 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5417 changed. Use frame_pc_unwind instead of
5418 DEPRECATED_SAVED_PC_AFTER_CALL.
5419 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5420 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5421 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5422 unwinder.
5423 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5424 "dummy-frame.h".
5425 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5426 (_initialize_i386_cygwin_tdep): New prototype.
5427 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5428 deprecated_frame_chain_valid.
5429 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5430 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5431 Rely on the SVR4 defaults.
5432 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5433 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5434
5435 2003-05-30 Andrew Cagney <cagney@redhat.com>
5436
5437 * infcall.c (call_function_by_hand): Always call
5438 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5439
5440 2003-05-30 Richard Henderson <rth@redhat.com>
5441
5442 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5443 increment.
5444
5445 2003-05-29 Jim Blandy <jimb@redhat.com>
5446
5447 Use gdbarch methods for solib stuff on PowerPC Linux.
5448 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5449 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5450 show through.
5451 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5452 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5453 giving the same effect as the #definitions above.
5454
5455 2003-05-29 Adam Fedor <fedor@gnu.org>
5456
5457 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5458 (find_implementation_from_class): Replace it with the standard
5459 case i.e. do nothing.
5460
5461 2003-05-29 Richard Henderson <rth@redhat.com>
5462
5463 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5464 (alpha_linux_sigtramp_offset): Use it. Make static.
5465 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5466 update for new frame model.
5467 * alpha-mdebug-tdep.c: New file.
5468 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5469 (alpha_osf1_init_abi): Install it.
5470 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5471 (linked_proc_desc_table): Remove.
5472 (alpha_frame_past_sigtramp_frame): Remove.
5473 (alpha_dynamic_sigtramp_offset): Remove.
5474 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5475 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5476 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5477 (push_sigtramp_desc): Remove.
5478 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5479 (alpha_cannot_store_register): Likewise.
5480 (alpha_sigcontext_addr): Remove.
5481 (alpha_find_saved_regs): Remove.
5482 (alpha_frame_init_saved_regs): Remove.
5483 (alpha_init_frame_pc_first): Remove.
5484 (read_next_frame_reg): Remove.
5485 (alpha_frame_saved_pc): Remove.
5486 (alpha_saved_pc_after_call): Remove.
5487 (temp_proc_desc, temp_saved_regs): Remove.
5488 (alpha_about_to_return): Remove.
5489 (cached_proc_desc): Remove.
5490 (alpha_frame_chain): Remove.
5491 (alpha_print_extra_frame_info): Remove.
5492 (alpha_init_extra_frame_info): Remove.
5493 (alpha_frame_locals_address): Remove.
5494 (alpha_frame_args_address): Remove.
5495 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5496 (alpha_push_dummy_frame): Remove.
5497 (alpha_pop_frame): Remove.
5498 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5499 (alpha_read_insn): New.
5500 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5501 for different insn encodings.
5502 (alpha_in_lenient_prologue): Remove.
5503 (struct alpha_sigtramp_unwind_cache): New.
5504 (alpha_sigtramp_frame_unwind_cache): New.
5505 (alpha_sigtramp_register_address): New.
5506 (alpha_sigtramp_frame_this_id): New.
5507 (alpha_sigtramp_frame_prev_register): New.
5508 (alpha_sigtramp_frame_unwind): New.
5509 (alpha_sigtramp_frame_p): New.
5510 (struct alpha_heuristic_unwind_cache): New.
5511 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5512 don't count nop insns that occur between functions.
5513 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5514 heuristic_proc_desc, but without the mdebug wrapping.
5515 (alpha_heuristic_frame_this_id): New.
5516 (alpha_heuristic_frame_prev_register): New.
5517 (alpha_heuristic_frame_unwind): New.
5518 (alpha_heuristic_frame_p): New.
5519 (alpha_heuristic_frame_base_address): New.
5520 (alpha_heuristic_frame_base): New.
5521 (alpha_unwind_dummy_id): New.
5522 (alpha_unwind_pc): New.
5523 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5524 frame related deprecated initializations; install replacements.
5525 (alpha_dump_tdep): Remove.
5526 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5527 (alpha_read_insn, alpha_after_prologue,
5528 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5529 alpha_heuristic_frame_prev_register,
5530 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5531 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5532 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5533 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5534
5535 2003-05-29 Andrew Cagney <cagney@redhat.com>
5536
5537 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5538 dependant on the availability of ASSERT_FUNCTION.
5539 (ASSERT_FUNCTION): Do not define when there is no function name.
5540
5541 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5542
5543 From Jimi X <jimix@watson.ibm.com>:
5544 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5545
5546 2003-05-28 Jim Blandy <jimb@redhat.com>
5547
5548 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5549 argument to ptrace to int; the system headers should give it the
5550 right type, and pointers don't fit in ints on powerpc64-*-*.
5551
5552 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5553
5554 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5555 DW_TAG_catch_block.
5556
5557 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5558
5559 * stabsread.c (dbx_lookup_type): Make static.
5560 (read_type): Ditto.
5561 (add_undefined_type): Ditto.
5562 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5563 not export.
5564
5565 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5566
5567 * hpread.c (hpread_has_name): Make static.
5568 (hpread_psymtab_to_symtab): Ditto.
5569 (file_exists): Ditto.
5570 (hpread_call_pxdb): Ditto.
5571 (hpread_pxdb_needed): Ditto.
5572 (hpread_quick_traverse): Ditto.
5573 (hpread_get_header): Ditto.
5574 (hpread_get_lntt): Ditto.
5575 (hpread_get_slt): Ditto.
5576 (class_of): Ditto.
5577
5578 2003-05-25 Andreas Schwab <schwab@suse.de>
5579
5580 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5581 stack_align and deprecated_extra_stack_alignment_needed.
5582 (m68k_stack_align): Delete.
5583
5584 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5585 (m68k_register_virtual_size): Likewise.
5586 (altos_skip_prologue): Remove obsolete function.
5587 (isi_frame_num_args): Likewise.
5588 (news_frame_num_args): Likewise.
5589 (m68k_fix_call_dummy): Make static.
5590 (m68k_push_dummy_frame): Likewise.
5591 (m68k_pop_frame): Likewise.
5592 (m68k_skip_prologue): Likewise.
5593 (m68k_frame_init_saved_regs): Likewise.
5594 (m68k_saved_pc_after_call): Likewise.
5595 (m68k_get_longjmp_target): Make multi-arch.
5596 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5597 structure. Register m68k_get_longjmp_target if enabled.
5598 * m68k-tdep.h (struct gdbarch_tdep): Define.
5599 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5600
5601 * Makefile.in (config.status): Also depend on configure.tgt
5602 and configure.host.
5603 (m68klinux-tdep.o): Update dependencies.
5604 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5605 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5606 (M68K_LINUX_JB_PC): Define.
5607 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5608 and take additional parameter.
5609 (m68k_linux_sigtramp_saved_pc): Update.
5610 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5611 m68k_linux_pc_in_sigtramp, in_plt_section,
5612 find_solib_trampoline_target.
5613 * config/m68k/tm-linux.h: Don't include any tm headers.
5614 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5615 (JB_ELEMENT_SIZE): Likewise.
5616 (JB_PC): Likewise.
5617 (GET_LONGJMP_TARGET): Likewise.
5618 (IN_SIGTRAMP): Likewise.
5619 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5620
5621 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5622
5623 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5624 (sparc32_push_arguments): Re-implement by calling
5625 sparc32_do_push_arguments.
5626
5627 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5628
5629 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5630 SPARC_O1_REGNUM): New defines.
5631 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5632 (sparc32_store_return_value): New function.
5633 (sparc_extract_struct_value_address): Rewrite to operate on a
5634 regcache.
5635 (sparc_gdbarch_init): Don't set
5636 deprecated_extract_struct_value_address. Set
5637 extract_struct_value_address instead. Don't set
5638 deprecated_extract_return_value and deprecated_store_return_value
5639 for 32-bit targets. Set extract_return_value and
5640 store_return_value instead.
5641 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5642 DEPRECTAED_EXTRACT_RETURN_VALUE,
5643 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5644 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5645 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5646 (sparc_store_return_value): Remove prototype.
5647 (sparc32_store_return_value): New prototype.
5648 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5649 Adjust prototypes.
5650
5651 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5652
5653 * sparcnbsd-tdep.c: Include "gdb_string.h".
5654
5655 2003-05-23 Andrew Cagney <cagney@redhat.com>
5656
5657 * p-valprint.c (pascal_val_print): Replace extract_address with
5658 the inline equivalent extract_unsigned_integer.
5659 * jv-valprint.c (java_value_print): Ditto.
5660 * ada-valprint.c (ada_val_print_1): Ditto.
5661 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5662
5663 2003-05-23 Theodore A. Roth <troth@openavr.org>
5664
5665 * blockframe.c (frameless_look_for_prologue): Remove unused
5666 after_prologue variable.
5667
5668 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5669
5670 * blockframe.c (get_pc_function_start): Rewrite to avoid
5671 asignments in if-statements.
5672
5673 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5674
5675 Committed by Elena Zannoni <ezannoni@redhat.com>.
5676 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5677 files, don't relocate absolute symbols (and do use mst_abs).
5678
5679 2003-05-23 Andrew Cagney <cagney@redhat.com>
5680
5681 * objc-lang.c: Include "gdb_assert.h".
5682 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5683 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5684 (gdb_check, gdb_check_fatal): Delete functions.
5685 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5686 gdb_assert.
5687 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5688 * Makefile.in (objc-lang.o): Update dependencies.
5689
5690 2003-05-22 Ian Lance Taylor <ian@airs.com>
5691
5692 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5693 with fprintf_filtered, not fprintf_unfiltered.
5694
5695 2003-05-22 Andrew Cagney <cagney@redhat.com>
5696
5697 * stack.c (frame_info): Inline extract_address, replacing it with
5698 extract_unsigned_integer.
5699 * findvar.c (unsigned_pointer_to_address): Ditto.
5700 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5701 * dwarf2expr.c (dwarf2_read_address): Ditto.
5702 * frame.c (frame_pc_unwind): Update comment.
5703 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5704
5705 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5706
5707 * infptrace.c (detach): Call print_sys_errmsg rather than
5708 perror_with_name to issue warning message when errno is non-zero
5709 after calling ptrace detach.
5710
5711 2003-05-21 J. Brobecker <brobecker@gnat.com>
5712
5713 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5714 macro definitions from here...
5715 * hppa-tdep.c: ...to there.
5716
5717 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5718
5719 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5720 register_ptrace_addr(). Fix all callers.
5721
5722 2003-05-21 Andreas Schwab <schwab@suse.de>
5723
5724 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5725 dependencies.
5726 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5727 end.
5728 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5729 (_initialize_m68k_linux_tdep): New function.
5730 (m68k_linux_frame_saved_pc): Make static.
5731 (m68k_linux_extract_return_value): Likewise.
5732 (m68k_linux_store_return_value): Likewise.
5733 (m68k_linux_extract_struct_value_address): Likewise.
5734 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5735 Remove.
5736 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5737 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5738 (DEPRECATED_FRAME_SAVED_PC): Remove.
5739
5740 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5741
5742 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5743 regset numbering rather than our own.
5744
5745 2003-05-19 David Carlton <carlton@bactrian.org>
5746
5747 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5748
5749 2003-05-19 David Carlton <carlton@bactrian.org>
5750
5751 Partial fix for PR c++/827.
5752 * cp-support.h: Include symtab.h.
5753 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5754 * cp-namespace.c: Update contributors.
5755 (cp_lookup_symbol_nonlocal): New.
5756 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5757 (lookup_symbol_file): Ditto.
5758 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5759 * block.h: Declare block_scope, block_using, block_global_block.
5760 * block.c (block_scope): New.
5761 (block_using, block_global_block): Ditto.
5762 * Makefile.in (cp_support_h): Depend on symtab_h.
5763 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5764
5765 2003-05-19 David Carlton <carlton@bactrian.org>
5766
5767 * language.h (struct language_defn): Add 'la_value_of_this'
5768 and 'la_lookup_symbol_nonlocal' members.
5769 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5770 lookup_symbol_static, lookup_symbol_global,
5771 lookup_symbol_aux_block.
5772 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5773 if we should search fields of this and how to do static/global
5774 lookup.
5775 (lookup_symbol_aux_block): Make extern.
5776 (basic_lookup_symbol_nonlocal): New.
5777 (lookup_symbol_static, lookup_symbol_global): Ditto.
5778 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5779 'la_lookup_symbol_nonlocal' members.
5780 * c-lang.c (c_language_defn, cplus_language_defn)
5781 (asm_language_defn, minimal_language_defn): Ditto.
5782 * jv-lang.c (java_language_defn): Ditto.
5783 * language.c (unknown_language_defn, auto_language_defn)
5784 (local_language_defn): Ditto.
5785 * m2-lang.c (m2_language_defn): Ditto.
5786 * objc-lang.c (objc_language_defn): Ditto.
5787 * scm-lang.c (scm_language_defn): Ditto.
5788 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5789 * p-lang.c (pascal_language_defn): Ditto for both.
5790 * Makefile.in (f-lang.o): Depend on value_h.
5791 (p-lang.o): Ditto.
5792
5793 2003-05-19 David Carlton <carlton@bactrian.org>
5794
5795 * block.h: Declare block_static_block.
5796 * block.c (block_static_block): New.
5797 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5798 lookup_symbol_aux_local, calling block_static_block instead.
5799 (lookup_symbol_aux_local): Delete 'static_block' argument.
5800
5801 2003-05-19 David Carlton <carlton@bactrian.org>
5802
5803 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5804
5805 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5806
5807 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5808 register numbers mapping.
5809
5810 2003-05-18 Adam Fedor <fedor@gnu.org>
5811
5812 * symtab.c (completion_list_objc_symbol): New function.
5813 (make_symbol_completion_list): Use it to add ObjC symbols
5814 when looking though the list.
5815 (language_search_unquoted_string): New function.
5816 (make_file_symbol_completion_list): Use it.
5817
5818 2003-05-18 Andreas Schwab <schwab@suse.de>
5819
5820 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5821 dependencies.
5822 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5823 as m68k_linux_extract_return_value.
5824 (DEPRECATED_STORE_RETURN_VALUE): Define as
5825 m68k_linux_store_return_value.
5826 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5827 m68k_linux_extract_struct_value_address.
5828 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5829 get_next_frame, get_frame_base, get_frame_pc.
5830 (m68k_linux_frame_saved_pc): Use get_frame_base.
5831 (m68k_linux_extract_return_value): New function.
5832 (m68k_linux_store_return_value): New function.
5833 (m68k_linux_extract_struct_value_address): New function.
5834 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5835
5836 * c-exp.y (typebase): Remove duplicate occurence of
5837 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5838 of lookup_signed_typename.
5839
5840 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5841
5842 * dwarf2loc.c (find_location_expression): Change type of second
5843 argument to `size_t *'.
5844 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5845 for size variable.
5846
5847 2003-05-18 David Carlton <carlton@bactrian.org>
5848
5849 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5850 'linkage_name'. Add comment.
5851 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5852 'linkage_name'.
5853 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5854 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5855 (lookup_block_symbol): Ditto.
5856
5857 2003-05-16 Andrew Cagney <cagney@redhat.com>
5858
5859 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5860 * gdbarch.h, gdbarch.c: Re-generate.
5861 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5862 * TODO (REGISTER_BYTES): Delete reference.
5863 * alpha-tdep.c (alpha_gdbarch_init): Update.
5864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5865 * x86-64-tdep.c (x86_64_init_abi): Update.
5866 * vax-tdep.c (vax_gdbarch_init): Update.
5867 * v850-tdep.c (v850_gdbarch_init): Update.
5868 * sparc-tdep.c (sparc_gdbarch_init): Update.
5869 * sh-tdep.c (sh_gdbarch_init): Update.
5870 * s390-tdep.c (s390_gdbarch_init): Update.
5871 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5872 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5873 (ns32k_gdbarch_init_32382): Update.
5874 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5875 * mcore-tdep.c (mcore_gdbarch_init): Update.
5876 * m68k-tdep.c (m68k_gdbarch_init): Update.
5877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5878 * ia64-tdep.c (ia64_gdbarch_init): Update.
5879 * i386-tdep.c (i386_gdbarch_init): Update.
5880 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5881 * hppa-tdep.c (hppa_gdbarch_init): Update.
5882 * h8300-tdep.c (h8300_gdbarch_init): Update.
5883 * frv-tdep.c (frv_gdbarch_init): Update.
5884 * cris-tdep.c (cris_gdbarch_init): Update.
5885 * avr-tdep.c (avr_gdbarch_init): Update.
5886 * arm-tdep.c (arm_gdbarch_init): Update.
5887 * sparc-tdep.c (sparc_pop_frame): Update.
5888 * rs6000-tdep.c (rs6000_pop_frame): Update.
5889 * remote.c (init_remote_state): Update.
5890 (remote_prepare_to_store): Update.
5891 * remote-vx.c (vx_prepare_to_store): Update.
5892 * remote-sds.c (sds_fetch_registers): Update.
5893 (sds_prepare_to_store): Update.
5894 * remote-array.c: Update.
5895 * regcache.c (init_legacy_regcache_descr): Update.
5896 (init_regcache_descr): Update.
5897 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5898 (mips_o64_extract_return_value): Update.
5899 * irix5-nat.c (fetch_core_registers): Update.
5900 * irix4-nat.c (fetch_core_registers): Update.
5901 * i386-tdep.h: Update.
5902 * hppa-tdep.c (pa_do_registers_info): Update.
5903 (pa_do_strcat_registers_info): Update.
5904 * cris-tdep.c (cris_register_bytes_ok): Update.
5905 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5906 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5907 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5908 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5909 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5910 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5911 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5912 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5913 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5914 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5915 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5916 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5917 (REGISTER_BYTES_OK): Update.
5918 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5919 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5920
5921 2003-05-16 Ian Lance Taylor <ian@airs.com>
5922
5923 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5924 (vax_print_insn, print_insn_arg): Remove static functions.
5925 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5926 print_insn_vax from opcodes library.
5927 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5928
5929 2003-05-15 Andrew Cagney <cagney@redhat.com>
5930
5931 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5932 * target.h (memory_breakpoint_from_pc): Delete declaration.
5933 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5934 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5935 * monitor.c (monitor_insert_breakpoint): Use
5936 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5937 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5938 * gdbarch.h, gdbarch.c: Re-generate.
5939 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5940 (sparc_gdbarch_init): Set breakpoint_from_pc to
5941 sparc_breakpoint_from_pc.
5942 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5943 (BREAKPOINT_FROM_PC): Define.
5944 (sparc_breakpoint_from_pc): Declare.
5945 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5946 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5947 (BREAKPOINT_FROM_PC): Define.
5948 (BREAKPOINT): Delete macro.
5949 * target.h: Update comment.
5950 * s390-tdep.c (s390_gdbarch_init): Update comments.
5951 * remote.c: Update comments.
5952 * remote-mips.c: Update comments.
5953 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5954 * mem-break.c: Update comment.
5955 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5956 (ia64_memory_insert_breakpoint): Update.
5957 * config/sparc/tm-sparc.h: Update comment.
5958 * config/pa/tm-hppa64.h: Update comment.
5959 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5960 (rs6000_breakpoint_from_pc): Update.
5961 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5962 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5963 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5964 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5965 (mips_breakpoint_from_pc): Update.
5966 (mips_dump_tdep): Update.
5967
5968 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5969 * minsyms.c (lookup_minimal_symbol): Inline
5970 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5971
5972 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5973 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5974 * p-lang.c (pascal_printstr): Ditto.
5975 * objc-lang.c (objc_printstr): Ditto.
5976 * m2-lang.c (m2_printstr): Ditto.
5977 * jv-valprint.c (java_print_value_fields): Ditto.
5978 * f-lang.c (f_printstr): Ditto.
5979 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5980 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5981 for repeat_count_threshold.
5982 * Makefile.in (cp-valprint.o): Update dependencies.
5983
5984 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5985
5986 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5987 (examine_prologue): Support looking through leaf functions, knowing
5988 they start with mov r2,r12. Support skipping over indirect stores
5989 of the input registers. Upon hitting a non-nop branch instruction
5990 or predicated instruction, bail out by setting lim_pc to the current
5991 pc value in the loop. At the end, if the lim_pc value is still
5992 beyond our calculated value and we have trust_limit set,
5993 use the lim_pc value.
5994
5995 2003-05-15 Andrew Cagney <cagney@redhat.com>
5996
5997 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5998 generic_find_dummy_frame.
5999 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6000 (deprecated_generic_find_dummy_frame): Update.
6001 (deprecated_read_register_dummy): Update.
6002 * frame.c (deprecated_generic_get_saved_register): Update.
6003
6004 2003-05-15 Theodore A. Roth <troth@openavr.org>
6005
6006 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6007 (avr_gdbarch_init): Set breakpoint_from_pc method.
6008
6009 2003-05-15 Andrew Cagney <cagney@redhat.com>
6010
6011 * regcache.c (build_regcache): Set deprecated_register_valid
6012 directly.
6013 (deprecated_grub_regcache_for_register_valid): Delete function.
6014 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6015 declaration.
6016
6017 2003-05-15 David Carlton <carlton@bactrian.org>
6018
6019 Committed by Elena Zannoni <ezannoni@redhat.com>
6020 * symtab.c (lookup_symbol_aux): Delete calls to
6021 lookup_symbol_aux_minsyms.
6022 (lookup_symbol_aux_minsyms): Comment out function and
6023 prototype. Delete lookup by mangled name.
6024
6025 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6026
6027 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6028 correctly indicate an empty stack and ``stack_allocated'' to the
6029 indicate the number of elements initially allocated.
6030 (dwarf_expr_grow_stack): Simplify method for computing new
6031 stack size. Don't loop infinitely if ``stack_len'' is zero.
6032 (execute_stack_op): Move ``ctx->in_reg'' initialization
6033 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6034 be used in conjuction with DW_OP_piece. Revise error message
6035 accordingly.
6036
6037 2003-05-14 Theodore A. Roth <troth@openavr.org>
6038
6039 * MAINTAINERS: Update my email address.
6040 * avr-tdep.c: Ditto.
6041
6042 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6043
6044 * symtab.h (enum domain_enum): Rename from namespace_enum.
6045 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6046 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6047 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6048 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6049 TYPES_NAMESPACE, METHODS_NAMESPACE.
6050 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6051 (struct symbol, struct partial_symbol): Rename field
6052 'namespace_enum namespace' to 'domain_enum domain'.
6053 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6054 Delete old define kludge for namespace.
6055
6056 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6057 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6058 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6059 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6060 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6061 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6062 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6063 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6064 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6065 occurrences of the above.
6066
6067 2003-05-14 Ian Lance Taylor <ian@airs.com>
6068
6069 * Makefile.in (install-only): Use $(SHELL) when running
6070 mkinstalldirs.
6071
6072 2003-05-13 Ian Lance Taylor <ian@airs.com>
6073
6074 * MAINTAINERS (write after approval): Add myself.
6075
6076 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6077 second and third arguments.
6078 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6079 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6080
6081 2003-05-13 Andrew Cagney <cagney@redhat.com>
6082
6083 * defs.h (store_address): Delete declaration.
6084 findvar.c (store_address): Delete function.
6085 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6086 store_unsigned_integer.
6087 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6088 * v850-tdep.c (v850_push_arguments): Ditto.
6089 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6090 * sh-tdep.c (sh64_get_saved_register): Ditto.
6091 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6092 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6093 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6094 (mips_get_saved_register): Ditto.
6095 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6096 (find_func_descr, ia64_push_arguments): Ditto.
6097 * i386-tdep.c (i386_push_arguments): Ditto.
6098 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6099 * frv-tdep.c (frv_push_arguments): Ditto.
6100 * frame.c (legacy_saved_regs_prev_register): Ditto.
6101 (deprecated_generic_get_saved_register): Ditto.
6102 * findvar.c (unsigned_address_to_pointer): Ditto.
6103 * dwarf2read.c (dwarf2_const_value): Ditto.
6104 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6105 * alpha-tdep.c (alpha_push_arguments): Ditto.
6106
6107 2003-05-12 J. Brobecker <brobecker@gnat.com>
6108
6109 * NEWS: Mention that the hppa-hpux port has been partially
6110 multiarched (32bit ABIT only, so far).
6111
6112 2003-05-11 Andrew Cagney <cagney@redhat.com>
6113
6114 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6115 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6116 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6117 sim/testsuite/sim/arm/misaligned2.ms, and
6118 sim/testsuite/sim/arm/misaligned3.ms.
6119 * disasm.h (struct ui_file): Add opaque struct declaration.
6120 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6121 * frame.h (struct ui_file): Ditto.
6122
6123 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6124
6125 * value.h: Pretty print.
6126
6127 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6128
6129 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6130
6131 2003-05-08 Andrew Cagney <cagney@redhat.com>
6132
6133 * regcache.h (max_register_size): Delete declaration.
6134 * regcache.c (max_register_size): Delete function.
6135 (struct regcache_descr): Delete field "max_register_size".
6136 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6137 registers fit in MAX_REGISTER_SIZE.
6138 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6139 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6140 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6141 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6142 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6143 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6144 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6145 * dve3900-rom.c, hppa-tdep.c: Ditto.
6146
6147 2003-05-08 David Carlton <carlton@math.stanford.edu>
6148
6149 * valops.c (push_word): Fix typo.
6150
6151 2003-05-08 Andrew Cagney <cagney@redhat.com>
6152
6153 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6154 * gdbarch.h: Re-generate.
6155 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6156 (legacy_max_register_raw_size): Delete declaration.
6157 * regcache.c (legacy_max_register_raw_size): Delete function.
6158 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6159 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6160 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6161 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6162 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6163 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6164 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6165 * findvar.c, dwarf2cfi.c: Ditto.
6166
6167 2003-05-08 Andrew Cagney <cagney@redhat.com>
6168
6169 * mips-tdep.c (read_signed_register): New function, moved to here
6170 from "regcache.c".
6171 (read_signed_register_pid): Ditto.
6172 * regcache.c (read_signed_register_pid): Delete function, moved to
6173 "mips-tdep.c".
6174 (read_signed_register): Ditto.
6175 * regcache.h (read_signed_register): Delete declaration.
6176 (read_signed_register_pid): Delete declaration.
6177
6178 2003-05-08 Andrew Cagney <cagney@redhat.com>
6179
6180 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6181 * gdbarch.h: Re-generate.
6182 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6183 (legacy_max_register_virtual_size): Delete declaration.
6184 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6185 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6186 * tracepoint.c (memrange_sortmerge): Ditto.
6187 * sparc-tdep.c (sparc_print_registers): Ditto.
6188 * regcache.c (legacy_max_register_virtual_size): Delete function.
6189
6190 2002-05-08 J. Brobecker <brobecker@gnat.com>
6191
6192 * fork-child.c (escape_bang_in_quoted_argument): New function.
6193 (fork_inferior): Escape '!' characters in quoted arguments
6194 only when needed.
6195
6196 2003-05-08 J. Brobecker <brobecker@gnat.com>
6197
6198 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6199 the language of the CU is not currently supported by GDB.
6200
6201 2003-05-08 J. Brobecker <brobecker@gnat.com>
6202
6203 * defs.h (language): Add language_minimal enum value.
6204 * c-lang.c (minimal_language_defn): New language definition.
6205 (_initialize_c_language): Add the new minimal language to the list
6206 of languages known to GDB.
6207
6208 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6209
6210 * frame.c (get_frame_type): Don't attempt to lazily initialize
6211 frame's unwinder for legacy frames.
6212
6213 2003-05-07 Andrew Cagney <cagney@redhat.com>
6214
6215 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6216 and "regcache" parameters.
6217 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6218
6219 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6220
6221 * dwarf2read.c (dwarf_decode_lines): Only use output of
6222 check_cu_functions() when calling record_line(). Do not update
6223 the current address.
6224
6225 2003-05-07 Andrew Cagney <cagney@redhat.com>
6226
6227 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6228 code.
6229
6230 2003-05-07 Jim Blandy <jimb@redhat.com>
6231
6232 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6233 'maint info symtabs' and 'maint info psymtabs'.
6234 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6235 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6236 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6237 Declarations updated.
6238 * maint.c (maintenance_list_command): Delete.
6239 (_initialize_maint_cmds): Update calls to add_cmd.
6240 * gdbcmd.h (maintenancelistlist): Delete declaration.
6241 * cli/cli-cmds.c (maintenancelistlist): Delete.
6242 (init_cmd_lists): Don't initialize it.
6243 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6244
6245 2003-05-07 Andrew Cagney <cagney@redhat.com>
6246
6247 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6248 "regcache".
6249 (d10v_print_registers_info): Update.
6250 (d10v_dmap_register, d10v_imap_register): Delete functions.
6251 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6252 and "imap_register".
6253 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6254 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6255 * arch-utils.c (generic_remote_translate_xfer_address): Add
6256 "regcache" and "gdbarch" parameters.
6257 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6258 parameter. Change class to multi-arch.
6259 * gdbarch.h, gdbarch.c: Re-generate.
6260 * remote.c (remote_xfer_memory): Use
6261 gdbarch_remote_translate_xfer_address.
6262
6263 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6264
6265 * infrun.c (prev_pc): Move declaration ahead of proceed().
6266 (proceed): Refresh prev_pc value before resuming.
6267 (stop_stepping): Remove code to refresh prev_pc.
6268
6269 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6270
6271 * nto-tdep.c: Removed stray comment.
6272
6273 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6274
6275 * i386-nto-tdep.c: Fix old K&R function definitions.
6276 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6277 Also change add_show_from_set() call to add_setshow_cmd().
6278 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6279
6280 2003-05-05 Andrew Cagney <cagney@redhat.com>
6281
6282 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6283 (fprint_dummy_frames): New function.
6284 (maintenance_print_dummy_frames): New function.
6285 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6286 * frame.c (fprint_frame_id): Make global.
6287 * frame.h (fprint_frame_id): Declare.
6288 * Makefile.in (dummy-frame.o): Update dependencies.
6289
6290 2003-05-05 Andrew Cagney <cagney@redhat.com>
6291
6292 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6293 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6294 SIZEOF_CALL_DUMMY_WORDS.
6295 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6296 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6297 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6298 CALL_DUMMY_BREAKPOINT_OFFSET.
6299 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6300 CALL_DUMMY_START_OFFSET.
6301 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6302 * gdbarch.h, gdbarch.c: Re-generate.
6303 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6304 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6305 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6306 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6307 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6308 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6309 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6310 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6311 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6312 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6313 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6314 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6315 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6316 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6317 * config/sparc/tm-sparc.h: Update.
6318
6319 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6320
6321 * configure.tgt: Add i[3456]86-*-nto*.
6322 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6323 * nto-tdep.c: New file. Neutrino target support routines.
6324 * nto-tdep.h: New file. Neutrino target header.
6325 * config/tm-qnxnto.h: New file.
6326 * config/i386/i386nto.mt: New file.
6327 * config/i386/tm-i386nto.h: New file.
6328
6329 2003-05-04 Andrew Cagney <cagney@redhat.com>
6330
6331 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6332 (load_infrun_state): Ditto.
6333 (struct thread_info): Drop "prev_func_name" field.
6334 * thread.c (load_infrun_state): Update.
6335 (save_infrun_state): Update.
6336 * infrun.c (prev_func_name): Delete variable.
6337 (init_wait_for_inferior): Do not clear prev_func_name.
6338 (stop_stepping, keep_going, context_switch): Do not swap
6339 prev_func_name.
6340 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6341 instead of PC_IN_SIGTRAMP.
6342
6343 2003-05-04 Andrew Cagney <cagney@redhat.com>
6344
6345 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6346 REGISTER_BYTE with register_offset_hack.
6347 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6348 that REGISTER_BYTE is consistent with the regcache.
6349 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6350 * gdbarch.h, gdbarch.c: Regenerate.
6351
6352 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6353
6354 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6355 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6356
6357 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6358
6359 2003-05-03 J. Brobecker <brobecker@gnat.com>
6360
6361 From Thierry Schneider <tpschneider1@yahoo.com>
6362 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6363 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6364 (mi-cmd-symbol.o): Add rule.
6365
6366 2003-05-03 Andrew Cagney <cagney@redhat.com>
6367
6368 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6369 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6370 * gdbarch.h, gdbarch.c: Re-generate.
6371 * d10v-tdep.c (d10v_push_dummy_code): New function.
6372 (d10v_gdbarch_init): Set push_dummy_code.
6373 * infcall.c (legacy_push_dummy_code): New function.
6374 (generic_push_dummy_code): New function.
6375 (push_dummy_code): New function.
6376 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6377 instead of dummy_addr, to push_dummy_call. Move call to
6378 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6379 switch.
6380 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6381
6382 2003-05-03 Andrew Cagney <cagney@redhat.com>
6383
6384 * disasm.h (print_insn): Declare.
6385 * disasm.c (init_gdb_disassemble_info): New function.
6386 (gdb_disassembly): Call init_gdb_disassemble_info.
6387 (gdb_print_insn): New function.
6388 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6389 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6390 * mcore-tdep.c: Include "disasm.h"
6391 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6392 * d10v-tdep.c: Include "disasm.h".
6393 (display_trace): Call gdb_print_insn, instead of print_insn.
6394 (print_insn): Delete function.
6395 * printcmd.c: Include "disasm.h".
6396 (print_insn): Delete function.
6397 (print_formatted): Call gdb_print_insn, instead of print_insn.
6398 * Makefile.in (printcmd.o): Update dependencies.
6399 (mcore-tdep.o, d10v-tdep.o): Ditto.
6400
6401 2003-05-02 Andrew Cagney <cagney@redhat.com>
6402
6403 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6404 PC_REGNUM, re-indent.
6405 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6406 PC_REGNUM isn't set.
6407
6408 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6409 * gdbarch.h, gdbarch.c: Re-generate.
6410 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6411 register_virtual_size, pc_regnum, or register_bytes.
6412 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6413 (d10v_register_type): Use D10V_PC_REGNUM.
6414 (d10v_print_registers_info, d10v_read_pc): Ditto.
6415 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6416 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6417
6418 2003-05-02 David Carlton <carlton@bactrian.org>
6419
6420 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6421 the name with mstrsave.
6422
6423 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6424
6425 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6426 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6427 (host_charset_name, target_charset_name): New vars for use by
6428 set/show commands.
6429 (host_charset_enum, target_charset_enum): New enums for set/show
6430 commands.
6431 (set_charset_sfunc, set_host_charset_sfunc,
6432 set_target_charset_sfunc): New functions.
6433 (set_host_charset, set_target_charset): Make static.
6434 (list_charsets, set_host_charset_command,
6435 set_target_charset_command): Delete functions.
6436 (show_charset_command): Rewrite as....
6437 (show_charset): Hook this up with the set/show command mechanism.
6438 (_initialize_charset): Change names of charsets to match the
6439 set/show enums. Use host_charset_name and target_charset_name.
6440 Use set/show mechanism for charset, host-charset, target-charset
6441 commands. Do not make 'show host-charset' and 'show
6442 target-charset' be aliases of 'show charset'.
6443
6444 * charset.h (set_host_charset, set_target_charset): Don't export,
6445 they are not used outside the file.
6446
6447 2003-05-01 Andrew Cagney <cagney@redhat.com>
6448
6449 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6450 (gdb_disassembly): Make "di" non static, always initialize and
6451 cleanup. Always use dis_asm_read_memory.
6452 (gdb_dis_asm_read_memory): Delete function.
6453
6454 2003-05-01 Andrew Cagney <cagney@redhat.com>
6455
6456 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6457 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6458
6459 2003-04-30 Andrew Cagney <cagney@redhat.com>
6460
6461 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6462 "tm_print_insn_info".
6463 (TARGET_PRINT_INSN_INFO): Delete macro.
6464 (dis_asm_read_memory): Delete function declaration.
6465 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6466 (tm_print_insn_info): Delete variable definition.
6467 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6468 * gdbarch.h, gdbarch.c: Re-generate.
6469 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6470 "deprecated_tm_print_insn_info".
6471 * mcore-tdep.c (mcore_dump_insn): Ditto.
6472 * mips-tdep.c (mips_gdbarch_init): Ditto.
6473 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6474 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6475 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6476 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6477 instead of TARGET_PRINT_INSN_INFO, add comment.
6478 * s390-tdep.c (s390_get_frame_info): Instead of
6479 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6480 (s390_check_function_end, s390_is_sigreturn): Ditto.
6481 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6482 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6483 * disasm.c: Include "gdbcore.h".
6484 (_initialize_disasm): New function, initialize
6485 "deprecated_tm_print_insn_info".
6486 (deprecated_tm_print_insn_info): New variable.
6487 (dis_asm_read_memory): Moved from "corefile.c", made static.
6488 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6489 * Makefile.in (disasm.o): Update dependencies.
6490
6491 2003-04-30 Andrew Cagney <cagney@redhat.com>
6492
6493 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6494
6495 2003-04-29 Adam Fedor <fedor@gnu.org>
6496
6497 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6498 * infcall.c (find_function_addr): Make non-static.
6499 * infcall.h (find_function_addr): Declare.
6500 * Makefile.in (eval.o): Update dependencies.
6501
6502 2003-04-28 Adam Fedor <fedor@gnu.org>
6503
6504 * symtab.c (symbol_find_demangled_name): Check for and demangle
6505 ObjC symbols.
6506 (symbol_init_demangled_name): Init for language_objc as well.
6507
6508 2003-04-28 Andrew Cagney <cagney@redhat.com>
6509
6510 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6511 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6512 * gdbarch.h, gdbarch.c: Re-generate.
6513 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6514 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6515 * inferior.h (deprecated_read_fp): Rename read_fp.
6516 (generic_target_read_fp): Delete declaration.
6517 * regcache.c (generic_target_read_fp): Delete function.
6518 (deprecated_read_fp): Replace read_fp, use
6519 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6520 * d10v-tdep.c (d10v_read_fp): Delete function.
6521 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6522
6523 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6524 deprecated_target_read_fp to generic_target_read_fp.
6525 * sh-tdep.c (sh_gdbarch_init): Ditto.
6526 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6528 * frv-tdep.c (frv_gdbarch_init): Ditto.
6529
6530 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6531 deprecated_fp_regnum.
6532 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6533 * vax-tdep.c (vax_gdbarch_init): Ditto.
6534 * v850-tdep.c (v850_gdbarch_init): Ditto.
6535 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6536 * sh-tdep.c (sh_gdbarch_init): Ditto.
6537 * s390-tdep.c (s390_gdbarch_init): Ditto.
6538 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6539 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6540 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6541 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6543 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6544 * i386-tdep.c (i386_gdbarch_init): Ditto.
6545 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6546 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6547 * frv-tdep.c (frv_gdbarch_init): Ditto.
6548 * cris-tdep.c (cris_gdbarch_init): Ditto.
6549 * avr-tdep.c (avr_gdbarch_init): Ditto.
6550 * arm-tdep.c (arm_gdbarch_init): Ditto.
6551 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6552
6553 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6554 * v850-tdep.c (v850_gdbarch_init): Ditto.
6555 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6556 * sh-tdep.c (sh_gdbarch_init): Ditto.
6557 * s390-tdep.c (s390_gdbarch_init): Ditto.
6558 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6559 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6560 * mips-tdep.c (mips_gdbarch_init): Ditto.
6561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6562 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6563 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6564 * frv-tdep.c (frv_gdbarch_init): Ditto.
6565 * avr-tdep.c (avr_gdbarch_init): Ditto.
6566 * arm-tdep.c (arm_gdbarch_init): Ditto.
6567
6568 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6569 DEPRECATED_FP_REGNUM.
6570 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6571 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6572 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6573 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6574 (sparc32_register_virtual_type): Ditto.
6575 * sh-tdep.c (sh64_frame_chain): Ditto.
6576 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6577 (sh_nofp_frame_init_saved_regs): Ditto.
6578 (sh64_nofp_frame_init_saved_regs): Ditto.
6579 (sh_fp_frame_init_saved_regs): Ditto.
6580 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6581 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6582 * procfs.c (procfs_fetch_registers): Ditto.
6583 (procfs_store_registers): Ditto.
6584 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6585 (store_inferior_registers, fetch_core_registers): Ditto.
6586 (fetch_kcore_registers, clear_regs): Ditto.
6587 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6588 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6589 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6590 * nlm/i386.c (do_status): Ditto.
6591 * mipsv4-nat.c (supply_gregset): Ditto.
6592 * mips-tdep.c: Ditto for comments.
6593 * mips-nat.c (fetch_inferior_registers): Ditto.
6594 (store_inferior_registers, fetch_core_registers): Ditto.
6595 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6596 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6597 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6598 (i386_do_pop_frame, i386_register_type): Ditto.
6599 * hppa-tdep.c (hppa_frame_chain): Ditto.
6600 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6601 (hppa_pop_frame, hppa_read_fp): Ditto.
6602 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6603 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6604 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6605 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6606 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6607 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6608 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6609 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6610 * blockframe.c: Ditto for comments.
6611 * arch-utils.h: Ditto for comments.
6612 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6613 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6614 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6615 * alpha-tdep.h: Ditto for comments.
6616 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6617 (alpha_cannot_store_register): Ditto.
6618 (alpha_push_dummy_frame): Ditto.
6619 * alpha-nat.c (supply_gregset): Ditto.
6620
6621 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6622 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6623 * config/sparc/tm-sparc.h: Update comment.
6624
6625 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6626 deprecated_read_fp instead of TARGET_READ_FP.
6627 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6628 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6629 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6630 deprecated_read_fp instead of read_fp.
6631 * s390-tdep.c (s390_push_arguments): Ditto.
6632 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6633 * frame.h: Ditto in comments.
6634 * frame.c (legacy_get_prev_frame): Ditto.
6635 * dummy-frame.c (dummy_frame_this_id): Ditto.
6636 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6637
6638 2003-04-28 Andrew Cagney <cagney@redhat.com>
6639
6640 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6641 * gdbarch.h, gdbarch.c: Re-generate.
6642 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6643 * vax-tdep.c (_initialize_vax_tdep): Update.
6644 * v850-tdep.c (_initialize_v850_tdep): Update.
6645 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6646 * s390-tdep.c (_initialize_s390_tdep): Update.
6647 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6648 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6649 * mips-tdep.c (_initialize_mips_tdep): Update.
6650 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6651 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6652 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6653 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6654 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6655 * frv-tdep.c (_initialize_frv_tdep): Update.
6656 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6657 (_initialize_cris_tdep): Update.
6658 * arch-utils.c (legacy_print_insn): Update.
6659 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6660
6661 2003-04-26 Adam Fedor <fedor@gnu.org>
6662
6663 * linespec.c (decode_objc): New function to decode ObjC calls
6664 (decode_line_1): Check for ObjC calls (using decode_objc)
6665 * Makefile (linespec.o): Update dependencies.
6666
6667 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6668
6669 * breakpoint.h (struct breakpoint_ops): New.
6670 (struct breakpoint): Add ops member.
6671
6672 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6673 (mention): Use new breakpoint ops member.
6674 (set_raw_breakpoint): Initialize ops field to NULL.
6675 (print_exception_catchpoint, print_one_exception_catchpoint)
6676 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6677 (gnu_v3_exception_catchpoint_ops): New.
6678 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6679
6680 2003-04-25 Adam Fedor <fedor@gnu.org>
6681
6682 * Makefile.in (COMMON_OBS): Add objc-lang.o
6683
6684 2003-04-25 Andrew Cagney <cagney@redhat.com>
6685
6686 * d10v-tdep.c (print_insn): Delete function.
6687 (display_trace): Use TARGET_PRINT_INSN.
6688 (_initialize_d10v_tdep): Do not set tm_print_insn.
6689 (d10v_gdbarch_init): Set print_insn.
6690
6691 2003-04-25 Andrew Cagney <cagney@redhat.com>
6692
6693 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6694 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6695 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6696 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6697 (nr_dmap_regs, a0_regnum): ... new functions.
6698 (d10v_print_registers_info): Use a0_regnum, use register_size.
6699 (d10v_register_byte): Delete function.
6700 (d10v_register_raw_size): Delete function.
6701 (d10v_register_type): Use a0_regnum.
6702 (d10v_print_registers_info): Use a0_regnum.
6703 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6704 (d10v_gdbarch_init): Do not set register_byte or
6705 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6706 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6707 extract_address.
6708 (trace_command): Use XCALLOC.
6709 (print_insn): Delete reference to tm_print_insn.
6710 (saved_regs_unwinder): Use store_unsigned_integer instead of
6711 store_address.
6712 * frame.h (FRAME_OBSTACK_CALLOC): Define
6713
6714 2003-04-25 David Carlton <carlton@bactrian.org>
6715
6716 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6717
6718 2003-04-24 Adam Fedor <fedor@gnu.org>
6719
6720 * objc-lang.c: Include "valprint.h"
6721 * Makefile.in (objc-lang.o): Update dependencies.
6722
6723 2003-04-24 Adam Fedor <fedor@gnu.org>
6724
6725 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6726 architecture dependant compilation and mark as unimplemented
6727 (until they get put in the gdbarch vector).
6728
6729 2003-04-23 David Carlton <carlton@bactrian.org>
6730
6731 * cp-support.c (cp_find_first_component): Accept 'operator' in
6732 more locations.
6733
6734 2003-04-23 Andrew Cagney <cagney@redhat.com>
6735
6736 * infcall.c (call_function_by_hand): Eliminate redundant
6737 indentation. Move "saved_async" and "old_cleanups" to where they
6738 are needed.
6739
6740 2003-04-23 Andrew Cagney <cagney@redhat.com>
6741
6742 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6743 and "buffer". Move the "name" code to where it is needed.
6744
6745 2003-04-23 Andrew Cagney <cagney@redhat.com>
6746
6747 * infcall.c (call_function_by_hand): Move variables "start_sp",
6748 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6749 code to ON_STACK switch branch.
6750
6751 2003-04-23 Andrew Cagney <cagney@redhat.com>
6752
6753 * infcall.c (call_function_by_hand): Make declaration of "i",
6754 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6755 lint.
6756
6757 2003-04-23 Andrew Cagney <cagney@redhat.com>
6758
6759 * infcall.c (call_function_by_hand): Delete variable
6760 "n_method_args". Localize "param_type"'s declaration to the loop
6761 that it is used. Reinstate code assigning to said variable -
6762 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6763 Rationalize code using "param_type".
6764
6765 2003-04-22 Andrew Cagney <cagney@redhat.com>
6766
6767 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6768 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6769 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6770 to DEPRECATED_PUSH_RETURN_ADDRESS.
6771
6772 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6773
6774 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6775 on the DWARF2 register number prior to fetching a register.
6776
6777 2003-04-22 J. Brobecker <brobecker@gnat.com>
6778
6779 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6780 Update all the tests using SOFT_FLOAT considering the fact that
6781 this macro was always set to 0.
6782 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6783 considering the fact that this macro was always set to 0.
6784 * hppa-tdep.h (hppa_store_return_value): Likewise.
6785 (hppa_extract_return_value): Likewise.
6786
6787 2003-04-22 J. Brobecker <brobecker@gnat.com>
6788
6789 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6790 the hppa-pro target only.
6791
6792 2003-04-21 J. Brobecker <brobecker@gnat.com>
6793
6794 Ongoing multi-arch conversion effort for HP/UX:
6795 * config/pa/tm-hppa.h: Move all macro that are no longer
6796 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6797 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6798
6799 2003-04-21 J. Brobecker <brobecker@gnat.com>
6800
6801 * config/pa/tm-hppa.h: Obsolete a section that was only used
6802 for hppa-pro.
6803
6804 2003-04-21 J. Brobecker <brobecker@gnat.com>
6805
6806 Ongoing multi-arch conversion for HP/UX.
6807 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6808 if already defined (allows hppa64 to stay non-multiarched for now).
6809 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6810
6811 2003-04-21 Andrew Cagney <cagney@redhat.com>
6812
6813 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6814
6815 2003-04-21 Andrew Cagney <cagney@redhat.com>
6816
6817 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6818 "i386_num_mmx_regs".
6819
6820 2003-04-21 Andrew Cagney <cagney@redhat.com>
6821
6822 * infcall.c: New file.
6823 * infcall.h: New file.
6824 * valarith.c: Include "infcall.h".
6825 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6826 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6827 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6828 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6829 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6830 (SFILES): Add "infcall.c"
6831 (COMMON_OBS): Add "infcall.o".
6832 (infcall.o): Specify dependencies.
6833 * value.h (call_function_by_hand): Delete declaration.
6834 * inferior.h (run_stack_dummy): Delete declaration.
6835 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6836 (run_stack_dummy): Move to "infcall.c", merged into
6837 call_function_by_hand.
6838 * valops.c (call_function_by_hand): Moved to "infcall.c".
6839 (find_function_addr, value_arg_coerce): Ditto.
6840 (unwindonsignal_p, coerce_float_to_double): Ditto.
6841 (_initialize_valops): Move "set/show coerce-float-to-double", and
6842 "set/show unwindonsignal" commands to "infcall.c".
6843 * v850-tdep.c, target.h: Update comments.
6844 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6845 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6846 (sh64_init_extra_frame_info): Update comments.
6847 * mn10300-tdep.c: Update comments.
6848 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6849 * config/sparc/tm-sparc.h: Update comments.
6850 * breakpoint.h: Update comments.
6851 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6852 * arm-tdep.c: Update comment.
6853
6854 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6855
6856 * i386-tdep.c (i386_num_register_names): New variable.
6857 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6858 (MM0_REGNUM): Remove redundant parentheses in define.
6859 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6860 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6861 i386_mxcsr_regnum_p): Remove redundant parentheses.
6862 (i386_register_name): Use i386_num_register_names.
6863
6864 * i386-tdep.c (i386_extract_return_value,
6865 i386_store_return_value): Correct check for availability of
6866 floating-point registers.
6867
6868 * i386-tdep.c (i386_frame_num_args): Remove function.
6869 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6870
6871 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6872 mmx_regnum_to_fp_regnum. Adjust all callers.
6873
6874 * i386-tdep.c (i386_get_longjmp_target): Use
6875 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6876 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6877 extract_address.
6878
6879 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6880
6881 * core-regset.c: Update comments to reflect reality. Re-order
6882 includes.
6883 (fetch_core_registers): Use switch instead of if. Remove
6884 redundant prototype.
6885
6886 2003-04-18 Jim Blandy <jimb@redhat.com>
6887
6888 * s390-tdep.c (s390_frame_align): New function.
6889 (s390_gdbarch_init): Register it with the gdbarch object.
6890
6891 2003-04-17 Richard Henderson <rth@redhat.com>
6892
6893 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6894
6895 2003-04-17 Michael Snyder <msnyder@redhat.com>
6896 Karen Bennet <bennet@redhat.com>
6897
6898 Committed by Elena Zannoni <ezannoni@redhat.com>
6899 * gdb_gcore.sh: New script to create a core dump of a process.
6900
6901 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6902
6903 * values.c (value_being_returned): Don't fetch the return
6904 value if the return type is void.
6905
6906 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6907
6908 * thread-db.c: Reindented.
6909
6910 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6911
6912 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6913 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6914 as types.
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6941
6942 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6943 the size of ``long double'' to 16, instead of 8.
6944
6945 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6946
6947 * i386-linux-nat.c: Add some whitespace to make things more
6948 readable.
6949 (fetch_register, store_register, fetch_inferior_registers,
6950 store_inferior_registers): Get rid of assignment in if-statement.
6951 (store_register): Fix typo in error message.
6952
6953 2003-04-16 Andrew Cagney <cagney@redhat.com>
6954
6955 * utils.c (xmmalloc): Always allocate something, matches
6956 libiberty/xmalloc's semantics.
6957 (xmrealloc, xmcalloc): Ditto.
6958
6959 2003-04-16 Andrew Cagney <cagney@redhat.com>
6960
6961 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6962 update comments.
6963 (get_frame_type): Initialize unwind and type when needed.
6964 (get_frame_id, frame_register_unwind): Ditto.
6965
6966 2003-04-16 Andrew Cagney <cagney@redhat.com>
6967
6968 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6969 obsolete.
6970 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6971 * sparcl-stub.c: Obsolete file.
6972 * config/sparc/tm-sparclet.h: Obsolete file.
6973 * sparclet-stub.c: Obsolete file.
6974 * sparclet-rom.c: Obsolete file.
6975 * sparcl-tdep.c: Obsolete file.
6976 * config/sparc/tm-sparclite.h: Obsolete file.
6977 * config/sparc/sparclite.mt: Obsolete file.
6978 * config/sparc/sparclet.mt: Obsolete file.
6979 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6980 sparc86x-*-* obsolete.
6981
6982 2003-04-15 David Carlton <carlton@math.stanford.edu>
6983
6984 * Makefile.in (SFILES): Add cp-namespace.c.
6985 (COMMON_OBS): Add cp-namespace.o.
6986 (block.o): Depend on gdb_obstack_h and cp_support_h.
6987 (buildsym.o): Depend on cp_support_h.
6988 (cp-namespace.o): New.
6989 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6990 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6991 (dwarf2read.o): Depend on cp_support_h.
6992 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6993 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6994 processing_current_namespace.
6995 (read_namespace): Update processing_current_namespace; check for
6996 anonymous namespaces.
6997 (dwarf2_name): New function.
6998 (dwarf2_extension): Ditto.
6999 * cp-support.h: Update copyright, contributors.
7000 Add inclusion guards.
7001 Add opaque declaration for structs obstack, block, symbol.
7002 (struct using_direct): New struct.
7003 Add declarations for cp_find_first_component,
7004 cp_entire_prefix_len, processing_has_namespace_info,
7005 processing_current_namespace, cp_is_anonymous,
7006 cp_add_using_directive, cp_initialize_namespace,
7007 cp_finalize_namespace, cp_set_block_scope,
7008 cp_scan_for_anonymous_namespaces.
7009 * cp-namespace.c: New file.
7010 * cp-support.c: Update copyright.
7011 Include ctype.h, gdb_assert.h, gdbcmd.h.
7012 New variable maint_cplus_cmd_list.
7013 (cp_find_first_component): New function.
7014 (cp_entire_prefix_len, maint_cplus_command)
7015 (first_component_command, _initialize_cp_support): Ditto.
7016 * buildsym.c: Include cp-support.h.
7017 New variable using_list.
7018 (add_symbol_to_list): Check for anonymous namespaces.
7019 (finish_block): Set block's scope.
7020 (start_symtab): Initialize C++ namespace support.
7021 (end_symtab): Finalize C++ namespace support.
7022 * block.h: Add opaque declarations for structs
7023 block_namespace_info, using_direct, and obstack.
7024 Add declarations for block_set_scope and block_set_using.
7025 (struct block): Add 'language_specific' member.
7026 (BLOCK_NAMESPACE): New macro.
7027 * block.c: Include gdb_obstack.h and cp-support.h.
7028 (struct block_namespace_info): New struct.
7029 (block_set_scope): New function.
7030 (block_set_using, block_initialize_namespace): Ditto.
7031
7032 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7033
7034 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7035 (locate_base): Return early if there aren't any link map offsets.
7036 (svr4_solib_create_inferior_hook): Warn if shared library support
7037 is unavailable.
7038
7039 2003-04-14 David Carlton <carlton@math.stanford.edu>
7040
7041 * symtab.c (symbol_set_names): Add prefix when storing Java names
7042 in hash table. Fix for PR java/1039.
7043
7044 2003-04-14 David Carlton <carlton@math.stanford.edu>
7045
7046 * symtab.c (symbol_set_names): Rename 'name' arg to
7047 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7048 * symtab.h: Change 'name' argument in declaration of
7049 symbol_set_names to 'linkage_name'.
7050 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7051
7052 2003-04-14 Andrew Cagney <cagney@redhat.com>
7053
7054 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7055 return the fully sign-extended register value.
7056 (get_frame_pointer): Ditto.
7057 (mips_pop_frame): Initialize "proc_desc" after checking for a
7058 dummy frame.
7059
7060 2003-04-14 Andrew Cagney <cagney@redhat.com>
7061
7062 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7063 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7064 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7065 (mips_push_register): Delete function.
7066 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7067 PUSH_FP_REGNUM.
7068
7069 2003-04-14 Jim Blandy <jimb@redhat.com>
7070
7071 * symmisc.c: #include "gdb_regex.h".
7072 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7073 functions.
7074 * maint.c (maintenance_list_command): New function.
7075 (_initialize_maint_cmds): Register the above as commands.
7076 * symtab.h (maintenance_list_symtabs,
7077 maintenance_list_psymtabs): New declarations.
7078 * cli/cli-cmds.c (maintenancelistlist): New variable.
7079 (init_cmd_lists): Initialize it.
7080 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7081 * gdbcmd.h (maintenancelistlist): New declaration.
7082 * Makefile.in (symmisc.o): Update dependencies.
7083
7084 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7085
7086 * s390-nat.c: Include asm/types.h for addr_t.
7087
7088 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7089
7090 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7091 actually incoming type.
7092
7093 2003-04-13 Andrew Cagney <cagney@redhat.com>
7094
7095 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7096 get_next_frame and get_frame_saved_regs.
7097
7098 2003-04-13 Andrew Cagney <cagney@redhat.com>
7099
7100 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7101 of gdbarch_num_regs.
7102
7103 2003-04-13 Andrew Cagney <cagney@redhat.com>
7104
7105 * frame.h: Mention what replaced what in "struct frame_info".
7106 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7107 deprecated_update_frame_base_hack and
7108 deprecated_update_frame_pc_hack.
7109 * hppa-tdep.c: Ditto.
7110
7111 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7112
7113 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7114 to read_reg and update its comment. Remove regnum member.
7115 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7116 Don't call read_reg when setting in_reg. Call read_reg to get
7117 the frame base if it's in a register. Return the register number
7118 on the stack instead of in the context. Remove extra arguments
7119 to read_reg.
7120 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7121 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7122 the register number on the expression stack.
7123 (needs_frame_read_reg): Remove extra arguments.
7124
7125 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7126
7127 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7128 made non-static.
7129 (execute_stack_op): All callers updated.
7130 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7131 * dwarf2loc.c (find_location_expression): New function.
7132 (dwarf_expr_frame_base): Call it.
7133 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7134 (dwarf2_tracepoint_var_ref): New function, broken out from
7135 locexpr_tracepoint_var_ref.
7136 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7137 Make static.
7138 (loclist_read_variable, loclist_read_needs_frame): New functions.
7139 (loclist_describe_location, loclist_tracepoint_var_ref): New
7140 functions.
7141 (dwarf2_loclist_funcs): New struct location_funcs.
7142 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7143 (struct dwarf2_locexpr_baton): Add comments.
7144 (dwarf2_loclist_funcs): New extern.
7145 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7146 base_address and base_known.
7147 (dwarf_loc_buffer): New variable.
7148 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7149 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7150 (dwarf2_has_info): Initialize dwarf_loc_offset.
7151 (dwarf2_build_psymtabs): Read in .debug_loc.
7152 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7153 DWARF_LOC_SIZE.
7154 (psymtab_to_symtab_1): Likewise. Move base address calculation
7155 here, from...
7156 (dwarf2_get_pc_bounds): ... here. Use the base address from
7157 cu_header.
7158 (dwarf2_symbol_mark_computed): Handle location lists.
7159
7160 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7161
7162 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7163 if the linkage name demangled successfully.
7164
7165 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7166
7167 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7168 disassmbly_flavour): Removed.
7169
7170 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7171
7172 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7173
7174 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7175
7176 2003-04-12 Andrew Cagney <cagney@redhat.com>
7177
7178 * frame.h (struct frame_info): Move definition from here ...
7179 * frame.c (struct frame_info): ... to here.
7180
7181 2003-04-12 Andrew Cagney <cagney@redhat.com>
7182
7183 * gdbthread.h (save_infrun_state): Delete parameter
7184 "prev_func_start".
7185 (struct thread_info): Delete field "prev_func_start".
7186 (load_infrun_state): Ditto.
7187 * thread.c (load_infrun_state, save_infrun_state): Update.
7188 * infrun.c (prev_func_start): Delete variable.
7189 (context_switch, init_wait_for_inferior): Update.
7190 (stop_stepping, keep_going): Update.
7191
7192 2003-04-12 Andrew Cagney <cagney@redhat.com>
7193
7194 * gdbarch.sh: Add missing opaque declarations.
7195 * gdbarch.h: Regnerate.
7196 * symtab.h: Add missing opaque declarations.
7197 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7198 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7199 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7200 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7201 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7202 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7203 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7204 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7205 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7206 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7207 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7208 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7209 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7210
7211 2003-04-11 Andrew Cagney <cagney@redhat.com>
7212
7213 * frame.c (get_frame_id): Return this frame's "id".
7214 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7215 function start.
7216 (legacy_saved_regs_this_id): Replace function body with
7217 internal-error.
7218 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7219 FRAME_OBSTACK_ZALLOC.
7220 (create_new_frame): Mark the frame ID as valid.
7221
7222 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7223
7224 * Makefile.in (libbfd_h): Added missing setting.
7225 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7226 according to the selected ABI.
7227
7228 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7229
7230 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7231
7232 2003-04-11 Andrew Cagney <cagney@redhat.com>
7233
7234 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7235 SAVED_PC_AFTER_CALL.
7236 * gdbarch.h, gdbarch.c: Regenerate.
7237 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7238 * x86-64-tdep.c (x86_64_init_abi): Update.
7239 * vax-tdep.c (vax_gdbarch_init): Update.
7240 * v850-tdep.c (v850_gdbarch_init): Update.
7241 * sparc-tdep.c (sparc_gdbarch_init): Update.
7242 * sh-tdep.c (sh_gdbarch_init): Update.
7243 * s390-tdep.c (s390_gdbarch_init): Update.
7244 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7245 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7246 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7247 * mips-tdep.c (mips_gdbarch_init): Update.
7248 * mcore-tdep.c (mcore_gdbarch_init): Update.
7249 * m68k-tdep.c (m68k_gdbarch_init): Update.
7250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7251 * ia64-tdep.c (ia64_gdbarch_init): Update.
7252 (ia64_saved_pc_after_call): Update declaration.
7253 * i386ly-tdep.c (i386lynx_init_abi): Update.
7254 * i386-tdep.c (i386_gdbarch_init): Update.
7255 * hppa-tdep.c (hppa_gdbarch_init): Update.
7256 * h8300-tdep.c (h8300_gdbarch_init): Update.
7257 * frv-tdep.c (frv_gdbarch_init): Update.
7258 * cris-tdep.c (cris_gdbarch_init): Update.
7259 * avr-tdep.c (avr_gdbarch_init): Update.
7260 * arm-tdep.c (arm_gdbarch_init): Update.
7261 * alpha-tdep.c (alpha_gdbarch_init): Update.
7262 * ns32knbsd-nat.c (frame_num_args): Update.
7263 * ns32k-tdep.c (umax_frame_num_args): Update.
7264 * mips-tdep.c (mips_init_frame_pc_first): Update.
7265 * infrun.c (step_over_function): Update.
7266 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7267 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7268 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7269 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7270 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7271 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7272 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7273 * arch-utils.c (init_frame_pc_default): Update.
7274 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7275 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7276 declaration.
7277
7278 2003-04-11 Andrew Cagney <cagney@redhat.com>
7279
7280 * i387-tdep.c: Update copyright.
7281 (i387_to_double): Delete function.
7282 (double_to_i387): Delete function.
7283
7284 2003-04-10 Andrew Cagney <cagney@redhat.com>
7285
7286 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7287 frame's function's address. Simplify.
7288 (d10v_frame_unwind_cache): Check that the frame's function is
7289 non-zero.
7290
7291 2003-04-10 Jim Blandy <jimb@redhat.com>
7292
7293 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7294 call to set_gdbarch_deprecated_push_arguments.
7295
7296 2003-04-10 Andrew Cagney <cagney@redhat.com>
7297
7298 * frame.c (fprint_frame_id): New function.
7299 (fprint_frame_type, fprint_frame): New function.
7300 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7301 (create_sentinel_frame, get_frame_id): Ditto.
7302 (frame_id_p, frame_id_eq): Ditto.
7303 (frame_id_inner, create_new_frame): Ditto.
7304 (legacy_get_prev_frame, get_prev_frame): Ditto.
7305 (deprecated_update_frame_pc_hack): Ditto.
7306 (frame_register_unwind): Ditto.
7307 (deprecated_update_frame_base_hack): Ditto.
7308
7309 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7310
7311 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7312 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7313 frame_chain function.
7314 * Makefile.in: Add dependencies due to above change.
7315
7316 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7317
7318 * blockframe.c (legacy_frame_chain_valid): Move call to
7319 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7320 inside_entry_file.
7321
7322 2003-04-09 Andrew Cagney <cagney@redhat.com>
7323
7324 * frame.h (struct frame_id): Replace "pc" and "base" with
7325 "stack_addr" and "code_addr". Update comments.
7326 (frame_id_build): Update parameter names and comment.
7327 (struct frame_info): Replace "id_p" and "id" with "this_id".
7328 * dummy-frame.c (dummy_frame_this_id): Update.
7329 * breakpoint.c (print_one_breakpoint): Update.
7330 * frame.c (get_frame_id): Update.
7331 (get_frame_base, frame_id_build): Update.
7332 (create_sentinel_frame, legacy_get_prev_frame): Update.
7333 (deprecated_update_frame_base_hack): Update.
7334 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7335 (frame_id_inner): Ditto.
7336
7337 2003-04-09 Andrew Cagney <cagney@redhat.com>
7338
7339 * defs.h (gdb_print_host_address): Make "addr" parameter a
7340 pointer constant.
7341 * utils.c (gdb_print_host_address): Update.
7342
7343 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7344
7345 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7346 register number for R0 is 0.
7347
7348 2003-04-09 J. Brobecker <brobecker@gnat.com>
7349
7350 * frame.h (struct gdbarch): Add opaque structure definition
7351 to avoid a compilation warning on LynxOS 4.0.
7352
7353 2003-04-09 Andrew Cagney <cagney@redhat.com>
7354
7355 * frame.h (struct frame_info): Delete field "pc". Replace
7356 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7357 structure.
7358 * frame.c (frame_pc_unwind): Update.
7359 (create_sentinel_frame): Do not set "pc".
7360 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7361 (get_frame_pc): Call frame_pc_unwind.
7362 (deprecated_update_frame_pc_hack): Update.
7363 (create_new_frame): Use "pc" not "->pc".
7364
7365 2003-04-09 Andrew Cagney <cagney@redhat.com>
7366
7367 * frame.c (get_frame_id): Eliminate code updating "frame".
7368 (legacy_get_prev_frame): Ditto.
7369 (get_frame_base): Return id.base directly.
7370 (deprecated_update_frame_base_hack): Update "id.base".
7371 * frame.h (struct frame_info): Delete field "frame".
7372
7373 2003-04-09 Andrew Cagney <cagney@redhat.com>
7374
7375 * NEWS: Mention that the "Sequent family" is obsolete.
7376 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7377 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7378 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7379 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7380 * config/i386/tm-ptx4.h: Obsolete file.
7381 * config/i386/tm-ptx.h: Obsolete file.
7382 * symm-tdep.c: Obsolete file.
7383 * config/i386/symmetry.mt: Obsolete file.
7384 * config/i386/tm-symmetry.h: Obsolete file.
7385 * symm-nat.c: Obsolete file.
7386 * config/i386/nm-symmetry.h: Obsolete file.
7387 * config/i386/xm-symmetry.h: Obsolete file.
7388 * config/i386/symmetry.mh: Obsolete file.
7389 * config/i386/nm-ptx4.h: Obsolete file.
7390 * config/i386/ptx4.mh: Obsolete file.
7391 * config/i386/ptx.mt: Obsolete file.
7392 * config/i386/ptx.mh: Obsolete file.
7393 * config/i386/xm-ptx4.h: Obsolete file.
7394 * config/i386/xm-ptx.h: Obsolete file.
7395
7396 2003-04-09 Andrew Cagney <cagney@redhat.com>
7397
7398 Obsolete mips*-*-mach3*.
7399 * NEWS: Mention that mips*-*-mach3* is obsolete.
7400 * m3-nat.c: Obsolete file.
7401 * config/nm-m3.h: Obsolete file.
7402 * config/mips/tm-mipsm3.h: Obsolete file.
7403 * config/mips/mipsm3.mt: Obsolete file.
7404 * config/mips/mipsm3.mh: Obsolete file.
7405 * config/mips/xm-mipsm3.h: Obsolete file.
7406 * mipsm3-nat.c: Obsolete file.
7407 * configure.host: Obsolete mips-dec-mach3*.
7408 * configure.tgt: Obsolete mips*-*-mach3*.
7409
7410 2003-04-09 Andrew Cagney <cagney@redhat.com>
7411
7412 * doublest.h: Update copyright.
7413 (deprecated_store_floating, deprecated_extract_floating): Rename
7414 store_floating and extract_floating. Update comments.
7415 * doublest.c: Update copyright.
7416 (extract_floating_by_length): Replace extract_floating.
7417 (store_floating_by_length): Replace store_floating.
7418 (deprecated_extract_floating): New function.
7419 (deprecated_store_floating): New function.
7420 (extract_typed_floating): Call extract_floating_by_length.
7421 (store_typed_floating): Call store_floating_by_length.
7422 * x86-64-tdep.c (x86_64_store_return_value): Update.
7423 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7424 (sh64_extract_return_value): Update.
7425 (sh_sh4_register_convert_to_virtual): Update.
7426 (sh_sh64_register_convert_to_virtual): Update.
7427 (sh_sh4_register_convert_to_raw): Update.
7428 (sh_sh64_register_convert_to_raw): Update.
7429 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7430 (rs6000_register_convert_to_raw): Update.
7431 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7432 (ia64_register_convert_to_raw): Update.
7433 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7434 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7435 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7436 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7437 (alpha_register_convert_to_raw): Update.
7438
7439 2003-04-08 Andrew Cagney <cagney@redhat.com>
7440
7441 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7442 * gdbarch.h, gdbarch.c: Re-generate.
7443 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7444 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7445 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7446 conditionally, use frame_pc_unwind as an alternative. Add
7447 comments.
7448 * arch-utils.c (init_frame_pc_default): Only call
7449 SAVED_PC_AFTER_CALL when available.
7450
7451 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7452
7453 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7454 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7455 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7456 (start_remote): Ditto.
7457 (handle_inferior_event): Ditto.
7458 (save_inferior_status): Ditto.
7459 (restore_inferior_status): Ditto.
7460 * infcmd.c (attach_command): Ditto.
7461 * fork-child.c (startup_inferior): Ditto.
7462 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7463 * alpha-tdep.c (heuristic_proc_start): Ditto.
7464 * mips-tdep.c (heuristic_proc_start): Ditto.
7465 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7466 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7467 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7468 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7469 * remote-vx.c (vx_create_inferior): Ditto.
7470
7471 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7472
7473 * infrun.c (stop_soon_quietly): Make it an enum, to better
7474 override the default behavior of handle_inferior_event.
7475 (clear_proceed_status): Update uses of stop_soon_quietly to
7476 reflect that it is now an enum.
7477 (start_remote): Ditto.
7478 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7479 is set to handle the new GNU/Linux kernel behavior for
7480 attach/sigstop. Update uses of stop_soon_quietly.
7481 * inferior.h (enum stop_kind): New enum.
7482 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7483 Reset normal handle_inferior_event behavior, afterwards.
7484 * fork-child.c (startup_inferior): Update.
7485 * alpha-tdep.c (heuristic_proc_start): Update.
7486 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7487 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7488 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7489 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7490 * remote-vx.c (vx_create_inferior): Update.
7491 * mips-tdep.c (heuristic_proc_start): Update.
7492
7493 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7494
7495 * disasm.c (dump_insns): Move variables inside loop, or they will
7496 be freed more than once, causing wild memory corruptions.
7497 (gdb_disassembly): Look for the substring "-thread",
7498 instead of "-threads" in the target name, to make sure to find
7499 the 'multi-thread' target. Also, make sure we do the right thing
7500 with the "core" target.
7501
7502 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7503
7504 * mips-tdep.c (mips_print_fp_register): New function, created from
7505 do_fp_register_row(). Registers are now (also) printed as hex.
7506 Only one register is printed per row.
7507 (mips_print_register, do_fp_register_row): Print floating point
7508 registers with mips_print_fp_register().
7509
7510 2003-04-06 Andrew Cagney <cagney@redhat.com>
7511
7512 * valprint.h (inspect_it): Add extern declaration.
7513 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7514 (selectors_info, classes_info): Ditto.
7515 (find_objc_msgcall): Fix indentation.
7516 (objc_printstr): Delete extern declarations.
7517
7518 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7519
7520 2003-04-06 Andrew Cagney <cagney@redhat.com>
7521
7522 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7523 Update comment.
7524 * frame.c (legacy_saved_regs_this_id): Update.
7525 (legacy_get_prev_frame): Update.
7526 * xstormy16-tdep.c: Update comment.
7527 * sparc-tdep.c (sparc_frame_chain): Update comment.
7528 * blockframe.c (legacy_frame_chain_valid): Update.
7529
7530 2003-04-06 Andrew Cagney <cagney@redhat.com>
7531
7532 * valprint.c (val_print_type_code_int): Delete #ifdef
7533 PRINT_TYPELESS_INTEGER code.
7534
7535 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7536 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7537 multi-arch definition.
7538 * gdbarch.h: Re-generate.
7539
7540 2003-04-05 Andrew Cagney <cagney@redhat.com>
7541
7542 Eliminate FRAME_FIND_SAVED_REGS.
7543 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7544 Change FSR parameter to a pointer.
7545 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7546 Assume FSR parameter is a pointer.
7547 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7548 Make fsr a pointer.
7549 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7550 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7551 saved_regs a pointer.
7552 (hppa_frame_saved_pc): Ditto.
7553 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7554 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7555 pointer.
7556 (restore_pc_queue): Make fsr a pointer.
7557 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7558 (hppa_frame_chain): Make saved_regs a pointer, call
7559 hppa_frame_init_saved_regs.
7560 * sparc-tdep.c: Include "gdb_assert.h".
7561 (sparc_frame_find_saved_regs): Replace internal_error with
7562 gdb_assert.
7563 * remote-vxsparc.c (vx_read_register): Delete reference to
7564 FRAME_FIND_SAVED_REGS.
7565 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7566 * gdbarch.h: Regenerate.
7567 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7568 (deprecated_get_frame_saved_regs): Delete declaration.
7569 (struct frame_saved_regs): Delete definition.
7570 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7571 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7572 (hppa_frame_find_saved_regs): Delete declaration.
7573 (FRAME_FIND_SAVED_REGS): Delete macro.
7574 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7575 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7576 FRAME_FIND_SAVED_REGS in comment.
7577
7578 2003-04-05 Andrew Cagney <cagney@redhat.com>
7579
7580 * frame.c (frame_func_unwind, get_frame_func): New functions.
7581 * frame.h (get_frame_func, frame_func_unwind): Declare.
7582 (struct frame_info): Add field "prev_func" for caching the
7583 previous frame's function address.
7584 * arm-tdep.c (arm_frameless_function_invocation): Combine
7585 get_pc_function_start and get_frame_pc into get_frame_func.
7586 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7587 (sh64_nofp_frame_init_saved_regs): Ditto.
7588 * s390-tdep.c (s390_function_start): Ditto.
7589 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7590 (rs6000_frameless_function_invocation): Ditto.
7591 (rs6000_frame_saved_pc): Ditto.
7592 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7593 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7594 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7595 (i386_frame_init_saved_regs): Ditto.
7596 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7597 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7598 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7599 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7600 * blockframe.c (frameless_look_for_prologue): Ditto.
7601
7602 2003-04-05 Andrew Cagney <cagney@redhat.com>
7603
7604 * frame.c (legacy_get_prev_frame): Link prev to next at the
7605 function start. Update comments.
7606
7607 2003-04-05 Andrew Cagney <cagney@redhat.com>
7608
7609 * frame.c (get_frame_id): Update comment.
7610 (legacy_get_prev_frame): Update comment.
7611 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7612 * gdbarch.h: Regenerate.
7613 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7614 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7615
7616 2003-04-05 Andrew Cagney <cagney@redhat.com>
7617
7618 * stack.c (print_frame_info): Use get_frame_pc.
7619
7620 2003-04-04 Andrew Cagney <cagney@redhat.com>
7621
7622 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7623 the frame's type from the unwinder.
7624 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7625 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7626 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7627 (get_frame_base_address): Use get_frame_type.
7628 (get_frame_locals_address, get_frame_args_address): Ditto.
7629 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7630 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7631 (struct frame_info): Add comment explaining why the frame contains
7632 a "type" field.
7633 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7634 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7635 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7636 NORMAL_FRAME.
7637 * frame-unwind.h: Include "frame.h".
7638 (struct frame_unwind): Add "type" field.
7639 * Makefile.in (frame_unwind_h): Add $(frame_h).
7640
7641 2003-04-04 Andrew Cagney <cagney@redhat.com>
7642
7643 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7644 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7645 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7646 get_frame_base.
7647 (d10v_unwind_dummy_id): Use frame_id_build.
7648 * frame.c (find_frame_sal): Use get_frame_pc.
7649 (create_new_frame): Use deprecated_update_frame_pc_hack and
7650 deprecated_update_frame_base_hack.
7651 (create_sentinel_frame): Add comment about ->pc going away.
7652 (get_prev_frame): Add comment about ->pc going away.
7653 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7654 frame_id_build, deprecated_update_frame_pc_hack and
7655 deprecated_update_frame_base_hack.
7656 (select_frame): Use get_frame_pc.
7657 (legacy_saved_regs_this_id): Use frame_id_build.
7658
7659 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7660
7661 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7662 signed integer case.
7663 (classify_argument): Handle enumerations and references.
7664
7665 2003-04-04 Andrew Cagney <cagney@redhat.com>
7666
7667 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7668 ID to NULL.
7669
7670 2003-04-01 Adam Fedor <fedor@gnu.org>
7671
7672 * gdb/objc-lang.c (selectors_info): Replace calls to
7673 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7674 SYMBOL_NATURAL_NAME.
7675 (classes_info, find_methods): Likewise.
7676
7677 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7678
7679 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7680 ``mach'' to the value determined by bfd_default_set_arch_mach().
7681
7682 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7683
7684 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7685 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7686 (mi-cmd-file.o): Update dependencies.
7687
7688 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7689
7690 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7691 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7692
7693 2003-04-01 Adam Fedor <fedor@gnu.org>
7694
7695 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7696 * language.h (struct language_defn): Add la_demangle.
7697 (language_demangle): Declare.
7698 * language.c (language_demangle): New function.
7699 (unk_lang_demangle): Likewise.
7700 (unknown_language_defn, auto_language_defn, local_language_defn):
7701 Add ukn_lang_demangle.
7702 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7703 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7704 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7705 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7706 * jv-lang.c (java_demangle): New function
7707 (java_language_defn): Use it for la_demangle element.
7708 * objc-lang.c (objc_demangle): Add options argument
7709 (objc_language_defn): Use objc_demangle for la_demangle element.
7710 * maint.c (maintenance_demangle): Replace switch with
7711 call to language_demangle.
7712 * utils.c (fprintf_symbol_filtered): Likewise.
7713
7714 2003-04-01 Andrew Cagney <cagney@redhat.com>
7715
7716 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7717 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7718 PRINT_TYPELESS_INTEGER.
7719 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7720 PUSH_RETURN_ADDRESS.
7721
7722 2003-04-01 Andrew Cagney <cagney@redhat.com>
7723
7724 * Makefile.in (d10v-tdep.o): Update dependencies.
7725 * d10v-tdep.c: Include "frame-base.h".
7726 (d10v_frame_unwind): Make constant.
7727 (d10v_frame_base_address): New function.
7728 (d10v_frame_base): New variable.
7729 (d10v_gdbarch_init): Set frame_base default.
7730 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7731 comment for base.
7732 (d10v_frame_unwind_cache): Set and use "prev_sp".
7733 (d10v_frame_this_id): Use the previous frame's inner most stack
7734 address and this frame's func address for the frame ID. Use
7735 frame_id_build. Don't analyze beyond the current instruction.
7736
7737 2003-04-01 Andrew Cagney <cagney@redhat.com>
7738
7739 * frame.h (get_frame_locals_address, get_frame_args_address):
7740 Refer to the base address, instead of the address of the first
7741 local or parameter.
7742
7743 2003-04-01 Andrew Cagney <cagney@redhat.com>
7744
7745 Add frame debug info addresses:
7746 * frame-base.c: New file.
7747 * frame-base.h: New file.
7748 * frame.h (struct frame_base): Add opaque declaration.
7749 (get_frame_base): Update comment.
7750 (get_frame_base_address): Declare.
7751 (get_frame_locals_address): Declare.
7752 (get_frame_args_address): Declare.
7753 (struct frame_info): Add "base" and "base_cache". Update
7754 comments on the unwinder.
7755 * frame.c: Include "frame-base.h".
7756 (get_frame_locals_address): New function.
7757 (get_frame_base_address): New function.
7758 (get_frame_args_address): New function.
7759 * findvar.c (read_var_value): Use get_frame_locals_address and
7760 get_frame_args_address.
7761 * stack.c (frame_info): Use get_frame_locals_address and
7762 get_frame_args_address.
7763 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7764 moved to "frame-base.c".
7765 * printcmd.c (print_frame_nameless_args): Ditto.
7766 * symtab.h (address_class): Update comments.
7767 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7768 get_frame_base_address.
7769 * dwarf2expr.c (execute_stack_op): Ditto.
7770 * Makefile.in (frame_base_h): Define.
7771 (frame.o): Update dependencies.
7772 (frame-base.o): Add dependencies.
7773 (SFILES): Add frame-base.c.
7774 (COMMON_OBS): Add frame-base.o.
7775
7776 2003-04-01 Andrew Cagney <cagney@redhat.com>
7777
7778 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7779 CALL_DUMMY_LENGTH): Ditto.
7780 * gdbarch.c: Re-generate.
7781 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7782 (CALL_DUMMY_LENGTH): Delete macro.
7783 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7784 * arm-tdep.c (arm_gdbarch_init): Ditto.
7785 * avr-tdep.c (avr_gdbarch_init): Ditto.
7786 * cris-tdep.c (cris_gdbarch_init): Ditto.
7787 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7788 * frv-tdep.c (frv_gdbarch_init): Ditto.
7789 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7790 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7791 * i386-tdep.c (i386_gdbarch_init): Ditto.
7792 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7793 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7794 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7795 * mips-tdep.c (mips_gdbarch_init): Ditto.
7796 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7797 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7798 * s390-tdep.c (s390_gdbarch_init): Ditto.
7799 * sh-tdep.c (sh_gdbarch_init): Ditto.
7800 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7801 * v850-tdep.c (v850_gdbarch_init): Ditto.
7802 * vax-tdep.c (vax_gdbarch_init): Ditto.
7803 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7804
7805 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7806
7807 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7808
7809 2003-04-01 Andrew Cagney <cagney@redhat.com>
7810
7811 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7812 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7813 * gdbarch.h, gdbarch.c: Re-generate.
7814 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7815 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7816 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7817 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7818 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7819 * infcmd.c (run_stack_dummy): Simplify assuming
7820 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7821 * infrun.c (handle_inferior_event): Ditto.
7822 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7823 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7824 * arm-tdep.c (arm_gdbarch_init): Ditto.
7825 * avr-tdep.c (avr_gdbarch_init): Ditto.
7826 * cris-tdep.c (cris_gdbarch_init): Ditto.
7827 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7828 * frv-tdep.c (frv_gdbarch_init): Ditto.
7829 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7830 * i386-tdep.c (i386_gdbarch_init): Ditto.
7831 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7833 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7834 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7835 * mips-tdep.c (mips_gdbarch_init): Ditto.
7836 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7837 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7838 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7839 * s390-tdep.c (s390_gdbarch_init): Ditto.
7840 * sh-tdep.c (sh_gdbarch_init): Ditto.
7841 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7842 * v850-tdep.c (v850_gdbarch_init): Ditto.
7843 * vax-tdep.c (vax_gdbarch_init): Ditto.
7844 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7845
7846 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7847
7848 * symfile.c (symfile_relocate_debug_section): Update call to
7849 bfd_simple_get_relocated_section_contents.
7850
7851 2003-03-31 Andrew Cagney <cagney@redhat.com>
7852
7853 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7854 * gdbarch.h, gdbarch.c: Regenerate.
7855 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7856 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7857 available.
7858 * frame.h (generic_fix_call_dummy): Delete declaration.
7859 * dummy-frame.h: Update comment.
7860 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7861 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7862 fix_call_dummy.
7863 * sh-tdep.c (sh_gdbarch_init): Ditto.
7864 * s390-tdep.c (s390_gdbarch_init): Ditto.
7865 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7866 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7867 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7868 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7869 * i386-tdep.c (i386_gdbarch_init): Ditto.
7870 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7871 * frv-tdep.c (frv_gdbarch_init): Ditto.
7872 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7873 * cris-tdep.c (cris_gdbarch_init): Ditto.
7874 * avr-tdep.c (avr_gdbarch_init): Ditto.
7875 * arm-tdep.c (arm_gdbarch_init): Ditto.
7876
7877 2003-03-31 J. Brobecker <brobecker@gnat.com>
7878
7879 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7880 (INIT_FRAME_AP): Likewise.
7881 (EXTRA_FRAME_INFO): Likewise.
7882
7883 2003-03-31 Andrew Cagney <cagney@redhat.com>
7884
7885 * gdbarch.sh: Include "symfile.h".
7886 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7887 * gdbarch.h, gdbarch.c: Re-generate.
7888 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7889 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7890 call_dummy_address, the default is at entry_point_address.
7891 * v850-tdep.c (v850_gdbarch_init): Ditto.
7892 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7893 * sh-tdep.c (sh_gdbarch_init): Ditto.
7894 * s390-tdep.c (s390_gdbarch_init): Ditto.
7895 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7896 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7897 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7898 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7899 * i386-tdep.c (i386_gdbarch_init): Ditto.
7900 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7901 * frv-tdep.c (frv_gdbarch_init): Ditto.
7902 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7903 * cris-tdep.c (cris_gdbarch_init): Ditto.
7904 * arm-tdep.c (arm_gdbarch_init): Ditto.
7905
7906 2003-03-31 Andrew Cagney <cagney@redhat.com>
7907
7908 * gdbarch.sh (CALL_DUMMY_P): Delete.
7909 * gdbarch.h, gdbarch.c: Re-generate.
7910 * inferior.h (CALL_DUMMY_P): Delete macro.
7911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7912 * vax-tdep.c (vax_gdbarch_init): Update.
7913 * v850-tdep.c (v850_gdbarch_init): Update.
7914 * sparc-tdep.c (sparc_gdbarch_init): Update.
7915 * sh-tdep.c (sh_gdbarch_init): Update.
7916 * s390-tdep.c (s390_gdbarch_init): Update.
7917 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7918 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7919 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7920 * mips-tdep.c (mips_gdbarch_init): Update.
7921 * mcore-tdep.c (mcore_gdbarch_init): Update.
7922 * m68k-tdep.c (m68k_gdbarch_init): Update.
7923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7924 * ia64-tdep.c (ia64_gdbarch_init): Update.
7925 * i386-tdep.c (i386_gdbarch_init): Update.
7926 * h8300-tdep.c (h8300_gdbarch_init): Update.
7927 * frv-tdep.c (frv_gdbarch_init): Update.
7928 * d10v-tdep.c (d10v_gdbarch_init): Update.
7929 * cris-tdep.c (cris_gdbarch_init): Update.
7930 * breakpoint.c (deprecated_frame_in_dummy): Update.
7931 * avr-tdep.c (avr_gdbarch_init): Update.
7932 * alpha-tdep.c (alpha_gdbarch_init): Update.
7933 * arm-tdep.c (arm_gdbarch_init): Update.
7934 * dummy-frame.c (dummy_frame_this_id): Update comments.
7935 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7936 * frame.c (legacy_get_prev_frame): Ditto.
7937 * valops.c (call_function_by_hand): Delete function.
7938 (hand_function_call): Rename to call_function_by_hand
7939
7940 2003-03-30 Andrew Cagney <cagney@redhat.com>
7941
7942 2002-11-10 Klee Dienes <kdienes@apple.com>
7943 * value.h (struct value): Update comment.
7944
7945 2003-03-30 Andrew Cagney <cagney@redhat.com>
7946
7947 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7948 D10V_FP_REGNUM.
7949 (d10v_gdbarch_init): Do not set fp_regnum.
7950
7951 * frame.c (get_frame_base): Force ID initialization.
7952 (get_prev_frame): Move computation of the frame ID from here ...
7953 (get_frame_id): ... to here.
7954 (legacy_get_prev_frame): Mark the frame ID as valid.
7955 * frame.h (struct frame_info): Add field "id_p".
7956
7957 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7958
7959 * i386-tdep.c (i386_store_struct_return): Removed.
7960 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7961
7962 2003-03-30 Andrew Cagney <cagney@redhat.com>
7963
7964 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7965 * gdbarch.h, gdbarch.c: Regenerate.
7966 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7967 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7968 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7969 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7970 * i386-tdep.c (i386_gdbarch_init): Ditto.
7971 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7972 * cris-tdep.c (cris_gdbarch_init): Ditto.
7973 * vax-tdep.c (vax_gdbarch_init): Ditto.
7974 * s390-tdep.c (s390_gdbarch_init): Ditto.
7975 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7976 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7977 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7978 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7979 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7980 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7981 * sparc-tdep.c (sparc_gdbarch_init): Update.
7982 * sh-tdep.c (sh_gdbarch_init): Update.
7983 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7984 * mips-tdep.c (mips_gdbarch_init): Update.
7985 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7986 * ia64-tdep.c (ia64_gdbarch_init): Update.
7987 * frv-tdep.c (frv_gdbarch_init): Update.
7988 * avr-tdep.c (avr_gdbarch_init): Update.
7989 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7990 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7991 instead of when push_dummy_call is not available.
7992
7993 2003-03-30 Andrew Cagney <cagney@redhat.com>
7994
7995 * infttrace.c: Include "gdbthread.h".
7996 (parent_attach_all): Fix function signature.
7997 (call_ptrace): Update call.
7998 * Makefile.in (infttrace.o): Update dependencies.
7999
8000 2003-03-30 Andrew Cagney <cagney@redhat.com>
8001
8002 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8003 PUSH_RETURN_ADDRESS.
8004 * gdbarch.h, gdbarch.c: Regenerate.
8005 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8006 * x86-64-tdep.c (x86_64_init_abi): Update.
8007 * v850-tdep.c (v850_gdbarch_init): Update.
8008 * sparc-tdep.c (sparc_gdbarch_init): Update.
8009 * sh-tdep.c (sh_gdbarch_init): Update.
8010 * s390-tdep.c (s390_gdbarch_init): Update.
8011 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8012 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8013 * mips-tdep.c (mips_gdbarch_init): Update.
8014 * mcore-tdep.c (mcore_gdbarch_init): Update.
8015 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8016 * ia64-tdep.c (ia64_gdbarch_init): Update.
8017 * i386-tdep.c (i386_gdbarch_init): Update.
8018 * h8300-tdep.c (h8300_gdbarch_init): Update.
8019 * frv-tdep.c (frv_gdbarch_init): Update.
8020 * cris-tdep.c (cris_gdbarch_init): Update.
8021 * avr-tdep.c (avr_gdbarch_init): Update.
8022 * arm-tdep.c (arm_gdbarch_init): Update.
8023 * valops.c (hand_function_call): Update.
8024
8025 2003-03-29 Andrew Cagney <cagney@redhat.com>
8026
8027 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8028 sizeof_call_dummy_words.
8029 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8030 define.
8031 * gdbarch.h: Regenerate.
8032
8033 2003-03-29 Andrew Cagney <cagney@redhat.com>
8034
8035 * infttrace.h: New file.
8036 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8037 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8038 (hpread_read_doc_function_type): Detect an initialized type1.
8039 (hpread_quick_traverse): Initialize mod_name_string.
8040 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8041 (som_solib_get_solib_by_pc): Declare.
8042 (so_lib_thread_start_addr): Declare.
8043 (no_shared_libraries): Declare.
8044 * somread.c (init_import_symbols): Make static. Add forward
8045 declaration.
8046 * config/pa/nm-hppah.h: Include "infttrace.h" for
8047 parent_attach_all.
8048 (hppa_insert_hw_watchpoint): Declare.
8049 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8050 * hppah-nat.c: Include "gdb_string.h".
8051 (parent_attach_all): Delete extern declaration, moved to
8052 "infttrace.h".
8053 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8054 int.
8055 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8056 * Makefile.in (infttrace_h): Define.
8057 (hpread.o): Update dependencies.
8058 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8059 * hppa-hpux-tdep.c: Include "gdb_string.h".
8060 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8061 * infrun.c (handle_inferior_event): Always initialize
8062 stepped_after_stopped_by_watchpoint. Add default and remove
8063 fallthrough in switch statement.
8064 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8065 parameter to int.
8066 (hppa_remove_hw_watchpoint): Ditto.
8067
8068 2003-03-29 Andrew Cagney <cagney@redhat.com>
8069
8070 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8071 offset.
8072
8073 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8074
8075 * arm-tdep.c (arm_push_arguments): Delete.
8076 (struct stack_item): New type.
8077 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8078 (arm_store_struct_return): Delte.
8079 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8080 arm_push_arguments or arm_store_struct_return.
8081
8082 2003-03-28 Andrew Cagney <cagney@redhat.com>
8083
8084 * Makefile.in (d10v-tdep.o): Update dependencies.
8085 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8086 * d10v-tdep.c: Include "remote.h".
8087 (target_resume_hook): Delete extern declaration.
8088 (target_wait_loop_hook): Ditto.
8089 (tdisassemble_command): Eliminate assignment in "if" conditional.
8090 (d10v_ts2_register_sim_regno): Eliminate call to
8091 legacy_register_sim_regno.
8092 (d10v_ts3_register_sim_regno): Ditto.
8093
8094 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8095
8096 * thread.c: Reindented.
8097 * lin-lwp.c: Ditto.
8098 * linux-proc.c: Ditto.
8099
8100 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8101
8102 * MAINTAINERS (write after approval): Add myself.
8103
8104 2003-03-27 Theodore A. Roth <troth@openavr.org>
8105
8106 * objc-exp.y: Add missing semi-colons.
8107
8108 2003-03-27 Andrew Cagney <cagney@redhat.com>
8109
8110 * regcache.c (write_sp): Delete function and references.
8111 * inferior.h (write_sp): Delete declaration.
8112 * valops.c (hand_function_call): Replace write_sp with
8113 TARGET_WRITE_SP.
8114 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8115 (sparc_pop_frame): Ditto.
8116
8117 2003-03-27 Andrew Cagney <cagney@redhat.com>
8118
8119 * NEWS: Mention removal of support for hppa*-*-bsd* and
8120 hppa*-*-osf* natives, and hppa*-*-pro* target.
8121 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8122 * config/pa/xm-pa.h: Obsolete file.
8123 * config/pa/xm-hppab.h: Obsolete file.
8124 * config/pa/nm-hppab.h: Obsolete file.
8125 * config/pa/tm-hppab.h: Obsolete file.
8126 * config/pa/tm-hppao.h: Obsolete file.
8127 * config/pa/nm-hppao.h: Obsolete file.
8128 * config/pa/tm-pro.h: Obsolete file.
8129 * config/pa/hppaosf.mt: Obsolete file.
8130 * config/pa/hppaosf.mh: Obsolete file.
8131 * config/pa/hppapro.mt: Obsolete file.
8132 * config/pa/hppabsd.mt: Obsolete file.
8133 * config/pa/hppabsd.mh: Obsolete file.
8134 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8135 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8136 hppa*-*-osf*.
8137
8138 2003-03-27 Andrew Cagney <cagney@redhat.com>
8139
8140 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8141 push_arguments. Don't set push_return_address or write_sp.
8142 (d10v_push_dummy_call): Replace d10v_push_arguments.
8143 (d10v_push_return_address, d10v_write_sp): Delete function,
8144 handled by push_dummy_call.
8145
8146 2003-03-26 Andrew Cagney <cagney@redhat.com>
8147
8148 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8149 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8150 regcache and dummy_addr parameters.
8151 * gdbarch.h, gdbarch.c: Re-generate.
8152 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8153 available; assume it will handle stack alignment and return
8154 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8155 legacy_push_arguments.
8156 (legacy_push_arguments): Rename default_push_arguments.
8157 * value.h (legacy_push_arguments): Rename default_push_arguments.
8158 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8159 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8160 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8161 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8162 * config/i386/tm-symmetry.h: Update.
8163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8164 * x86-64-tdep.c (x86_64_init_abi): Update.
8165 * v850-tdep.c (v850_gdbarch_init): Update.
8166 * sparc-tdep.c (sparc_gdbarch_init): Update.
8167 * sh-tdep.c (sh_gdbarch_init): Update.
8168 * s390-tdep.c (s390_gdbarch_init): Update.
8169 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8170 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8171 * mips-tdep.c (mips_gdbarch_init): Update.
8172 * mcore-tdep.c (mcore_gdbarch_init): Update.
8173 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8174 * ia64-tdep.c (ia64_gdbarch_init): Update.
8175 * i386-tdep.c (i386_gdbarch_init): Update.
8176 * hppa-tdep.c (hppa_gdbarch_init): Update.
8177 * h8300-tdep.c (h8300_gdbarch_init): Update.
8178 * frv-tdep.c (frv_gdbarch_init): Update.
8179 * d10v-tdep.c (d10v_gdbarch_init): Update.
8180 * cris-tdep.c (cris_gdbarch_init): Update.
8181 * avr-tdep.c (avr_gdbarch_init): Update.
8182 * arm-tdep.c (arm_gdbarch_init): Update.
8183 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8184 * alpha-tdep.c (alpha_gdbarch_init): Update.
8185
8186 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8187
8188 * signals/signals.c (do_target_signal_to_host): Correct realtime
8189 signal range test.
8190
8191 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8192
8193 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8194 (struct sal_chain, map_catch_names): Remove.
8195 (catch_exception_command_1): Don't call
8196 handle_gnu_4_16_catch_command.
8197
8198 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8199
8200 From Mark Dettinger <dettinge@de.ibm.com>:
8201 * dwarf2cfi.c (read_2u): Increment pointer by two.
8202
8203 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8204
8205 * signals/signals.c: Fix typos in last change.
8206
8207 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8208
8209 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8210 not already defined. Use __SIGRTMIN if available.
8211 (target_signal_from_host): Remove SIGRTMIN block.
8212 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8213 the signal is within the realtime range.
8214
8215 2003-03-25 Adam Fedor <fedor@gnu.org>
8216
8217 * Makefile.in (infrun.o): Add $(language_h)
8218 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8219 for language specific trampolines.
8220 * language.h (struct language_defn): Add skip_trampoline.
8221 (skip_language_trampoline): Declare.
8222 * language.c (unk_lang_trampoline, skip_language_trampoline):
8223 New functions.
8224 (unknown_language_defn, auto_language_defn, local_language_defn):
8225 Add ukn_lang_trampoline.
8226 * ada-lang.c (ada_language_defn): Add NULL for language
8227 specific skip_trampoline.
8228 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8229 scm-lang.c: Likewise.
8230 * objc-lang.c (objc_skip_trampoline): New function.
8231 (objc_language_defn): Add objc_skip_trampoline.
8232
8233 2003-03-25 Andrew Cagney <cagney@redhat.com>
8234
8235 * frame.c (get_prev_frame): Delay validating a frame's ID -
8236 non-NULL, didn't go backwards - until an attempt to unwind it to
8237 the previous frame.
8238
8239 2003-03-25 Andrew Cagney <cagney@redhat.com>
8240
8241 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8242 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8243 * gdbarch.h, gdbarch.c: Re-generate.
8244 * config/sparc/tm-sparc.h
8245 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8246 * sparc-tdep.c (sparc_gdbarch_init): Set
8247 deprecated_extra_stack_alignment_needed.
8248 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8249 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8250 extra_stack_alignment_needed.
8251 * v850-tdep.c (v850_gdbarch_init): Ditto.
8252 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8253 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8254 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8255 * cris-tdep.c (cris_gdbarch_init): Ditto.
8256 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8257 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8258
8259 2003-03-25 Andrew Cagney <cagney@redhat.com>
8260
8261 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8262 STORE_STRUCT_RETURN.
8263 * gdbarch.h, gdbarch.c: Regenerate.
8264 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8265 (d10v_push_arguments): Set the struct return register.
8266 (d10v_gdbarch_init): Update.
8267 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8268 * x86-64-tdep.c (x86_64_init_abi): Update.
8269 * vax-tdep.c (vax_gdbarch_init): Update.
8270 * v850-tdep.c (v850_gdbarch_init): Update.
8271 * sparc-tdep.c (sparc_gdbarch_init): Update.
8272 * sh-tdep.c (sh_gdbarch_init): Update.
8273 * s390-tdep.c (s390_gdbarch_init): Update.
8274 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8275 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8276 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8277 * mips-tdep.c (mips_gdbarch_init): Update.
8278 * mcore-tdep.c (mcore_gdbarch_init): Update.
8279 * m68k-tdep.c (m68k_gdbarch_init): Update.
8280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8281 * ia64-tdep.c (ia64_gdbarch_init): Update.
8282 * i386-tdep.c (i386_gdbarch_init): Update.
8283 * hppa-tdep.c (hppa_gdbarch_init): Update.
8284 * h8300-tdep.c (h8300_gdbarch_init): Update.
8285 * frv-tdep.c (frv_gdbarch_init): Update.
8286 * cris-tdep.c (cris_gdbarch_init): Update.
8287 * avr-tdep.c (avr_gdbarch_init): Update.
8288 * arm-tdep.c (arm_gdbarch_init): Update.
8289 * alpha-tdep.c (alpha_gdbarch_init): Update.
8290
8291 2003-03-25 Andrew Cagney <cagney@redhat.com>
8292
8293 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8294 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8295 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8296 * gdbarch.h, gdbarch.c: Regenerate.
8297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8298 call_dummy_stack_adjust_p.
8299 * vax-tdep.c (vax_gdbarch_init): Ditto.
8300 * v850-tdep.c (v850_gdbarch_init): Ditto.
8301 * sh-tdep.c (sh_gdbarch_init): Ditto.
8302 * s390-tdep.c (s390_gdbarch_init): Ditto.
8303 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8304 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8305 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8306 * mips-tdep.c (mips_gdbarch_init): Ditto.
8307 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8308 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8310 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8311 * i386-tdep.c (i386_gdbarch_init): Ditto.
8312 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8313 * frv-tdep.c (frv_gdbarch_init): Ditto.
8314 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8315 * cris-tdep.c (cris_gdbarch_init): Ditto.
8316 * avr-tdep.c (avr_gdbarch_init): Ditto.
8317 * arm-tdep.c (arm_gdbarch_init): Ditto.
8318 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8319 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8320 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8321 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8322 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8323 call_dummy_stack_adjust_p.
8324 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8325 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8326 * sparc-tdep.c (sparc32_push_arguments): Update.
8327 * valops.c (hand_function_call): Update.
8328
8329 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8330
8331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8332 set_gdbarch_char_signed.
8333
8334 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8335
8336 PR cli/548
8337 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8338
8339 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8340
8341 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8342 (_initialize_arm_tdep): Don't set tm_print_insn.
8343
8344 2003-03-24 Adam Fedor <fedor@gnu.org>
8345
8346 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8347 * objc-lang.h: Add multiple inclusion protection.
8348 (start_msglist, add_msglist, end_msglist): Additional declarations.
8349
8350 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8351
8352 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8353 value was renamed to ARM_FLOAT_SOFT_FPA.
8354
8355 2003-03-23 Andrew Cagney <cagney@redhat.com>
8356
8357 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8358 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8359 * gdbarch.h, gdbarch.c: Regenerate.
8360 * valops.c (hand_function_call): Update.
8361 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8362 * frame.c (legacy_saved_regs_this_id): Update.
8363 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8364 * dummy-frame.h: Update.
8365 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8366 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8367 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8368 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8369 * config/m68k/tm-sun3.h: Update.
8370 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8372 * x86-64-tdep.c (x86_64_init_abi): Update.
8373 * vax-tdep.c (vax_gdbarch_init): Update.
8374 * v850-tdep.c (v850_gdbarch_init): Update.
8375 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8376 * sh-tdep.c (sh_gdbarch_init): Update.
8377 * s390-tdep.c (s390_gdbarch_init): Update.
8378 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8379 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8380 (frame_get_saved_regs): Update.
8381 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8382 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8383 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8384 * mips-tdep.c (mips_gdbarch_init): Update.
8385 * mcore-tdep.c (mcore_gdbarch_init): Update.
8386 * m68k-tdep.c (m68k_gdbarch_init): Update.
8387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8388 * ia64-tdep.c (ia64_gdbarch_init): Update.
8389 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8390 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8391 (i386_interix_back_one_frame): Update.
8392 * hppa-tdep.c (hppa_gdbarch_init): Update.
8393 (hppa_init_extra_frame_info): Update.
8394 * h8300-tdep.c (h8300_gdbarch_init): Update.
8395 * frv-tdep.c (frv_gdbarch_init): Update.
8396 * cris-tdep.c (cris_gdbarch_init): Update.
8397 * avr-tdep.c (avr_gdbarch_init): Update.
8398 * arm-tdep.c (arm_gdbarch_init): Update.
8399 * alpha-tdep.c (alpha_gdbarch_init): Update.
8400
8401 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8402
8403 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8404 (arm_get_fp_model): Declare.
8405 * arm-tdep.c (fp_model_strings): New string array.
8406 (arm_fp_model, current_fp_model): New variables.
8407 (arm_get_fp_model): New function.
8408 (arm_set_fp): New function.
8409 (set_fp_model_sfunc): New function.
8410 (show_fp_model): New function.
8411 (_initialize_arm_tdep): Add new command to set/show the FPU.
8412 (arm_extract_return_value): Use arm_get_fp_model.
8413 (arm_store_return_value): Likewise.
8414 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8415 to initialize the floating-point data types.
8416 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8417 model is FPA.
8418
8419 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8420
8421 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8422 the current setting of each value.
8423 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8424 new_set and new_show. Use add_setshow_cmd_full and
8425 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8426 commands and add new version as subcommands of "set/show arm".
8427
8428 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8429
8430 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8431 (set_arm_command, show_arm_command): New functions.
8432 (_initialize_arm_tdep): Add them.
8433 (num_disassembly_options): Renamed from num_flavor_options.
8434 (valid_disassembly_styles): Renamed from valid_flavors.
8435 (disassembly_style): Renamed from disassembly_flavor.
8436 (set_disassembly_style_sfunc): Renamed from
8437 set_disassembly_flavor_sfunc.
8438 (set_disassembly_style): Renamed from set_disassembly_flavor.
8439 (arm_othernames): Updated.
8440 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8441 command. Add "set/show arm disassembly" commands. Deprecate
8442 "othernames" command.
8443
8444 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8445
8446 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8447 (arm-tdep.o): Depend on elf_arm_h.
8448
8449 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8450
8451 * Makefile.in (coff_internal_h): Define.
8452 (arm-tdep.o): Update dependencies.
8453
8454 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8455
8456 * arm-tdep.c (prologue_cache): Delete.
8457 (check_prologue_cache, save_prologue_cache): Delete.
8458 (arm_scan_prologue): Don't check or update the prologue_cache.
8459 (arm_gdb_arch_init): Don't initialize it.
8460 (_initialize_arm_tdep): Likewise.
8461
8462 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8463
8464 * MAINTAINERS (tui): Maintainer of tui code.
8465
8466 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8467
8468 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8469 (i386-cygwin-tdep.o): Add dependencies.
8470 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8471 * i386-cygwin-tdep.c: New file.
8472 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8473 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8474
8475 2003-03-20 Andrew Cagney <cagney@redhat.com>
8476
8477 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8478 (handle_inferior_event): Remove code calling
8479 DYNAMIC_TRAMPOLINE_NEXTPC.
8480
8481 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8482 already has a full path.
8483
8484 * main.c (gdb_main): Return 1.
8485 (captured_main): Call error to report an invalid interpreter.
8486
8487 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8488 * alpha-osf1-tdep.c: Include "gdb_string.h".
8489
8490 2003-03-19 J. Brobecker <brobecker@gnat.com>
8491
8492 Continuing work to convert the hppa targets to multiarch partial.
8493
8494 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8495 method, now that hppa_push_dummy_frame has a conformant prototype.
8496 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8497 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8498 for the switch to multiarch partial.
8499
8500 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8501
8502 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8503 when iss is issNull.
8504
8505 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8506
8507 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8508 NUM_REGS bounds check.
8509
8510 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8511
8512 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8513 * mips-tdep.c (gdb_assert.h): Include.
8514 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8515 (mips_register_name): Handle integer registers explicitly. Add
8516 bounds checking.
8517 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8518 (mips_lsi33k_reg_names): Don't list integer registers; they're
8519 handled by mips_register_name() now.
8520 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8521 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8522 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8523 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8524 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8525
8526 2003-03-18 Andrew Cagney <cagney@redhat.com>
8527
8528 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8529 a void pointer.
8530 * gdbtypes.h (print_scalar_formatted): Update declaration.
8531 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8532
8533 2003-03-18 J. Brobecker <brobecker@gnat.com>
8534
8535 * infrun.c (observer.h): Add #include.
8536 (normal_stop): Add call to observer_notify_normal_stop.
8537 * Makefile.in (infrun.o): Add dependency on observer.h.
8538
8539 2003-03-18 J. Brobecker <brobecker@gnat.com>
8540
8541 Continuing work to convert the hppa targets to multiarch partial.
8542 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8543 parameter. Reformat comment.
8544 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8545 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8546 to match new profile.
8547
8548 2003-03-18 J. Brobecker <brobecker@gnat.com>
8549
8550 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8551 appear to be working in any case.
8552
8553 2003-03-18 J. Brobecker <brobecker@gnat.com>
8554
8555 * observer.c (observer_test_first_observer): New static variable.
8556 (observer_test_second_observer): Likewise.
8557 (observer_test_third_observer): Likewise.
8558 (observer_test_first_notification_function): New static function.
8559 (observer_test_second_notification_function): Likewise.
8560 (observer_test_third_notification_function): Likewise.
8561
8562 2003-03-17 J. Brobecker <brobecker@gnat.com>
8563
8564 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8565 * somsolib.c (gdb_assert.h): Likewise.
8566 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8567 (somsolib.o): Likewise.
8568
8569 2003-03-17 Andrew Cagney <cagney@redhat.com>
8570
8571 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8572 BFD. Simplify setting of di.endian.
8573
8574 2003-03-17 Andrew Cagney <cagney@redhat.com>
8575
8576 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8577 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8578
8579 From Elena Zannoni <ezannoni@redhat.com>
8580 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8581 vector and floating-point parameters.
8582 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8583 convention.
8584 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8585
8586 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8587
8588 * MAINTAINERS: Remove my name from several maintainership roles.
8589
8590 2003-03-17 Andrew Cagney <cagney@redhat.com>
8591
8592 Fix frame off-by-one bug.
8593 * frame-unwind.h (frame_this_id_ftype): Replace
8594 frame_unwind_id_ftype.
8595 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8596 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8597 with "prev_register".
8598 * frame-unwind.c (frame_unwind_find_by_pc): Return
8599 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8600 comment.
8601 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8602 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8603 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8604 (dummy_frame_unwind): Update.
8605 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8606 sentinel_frame_register_unwind.
8607 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8608 (sentinel_frame_unwinder): Update.
8609 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8610 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8611 * frame.c (create_sentinel_frame): Update. Initialize
8612 "prologue_cache" instead of "unwind_cache".
8613 (frame_register_unwind): Call this frame's prev_register with the
8614 next frame and this frame's prologue cache.
8615 (get_prev_frame): Simplify. Always call prev frame's this_id with
8616 this frame and prev frame's prologue cache. Document that this
8617 call is shifted one to the left when compared to the
8618 frame_register_unwind call.
8619 (legacy_saved_regs_prev_register): Replace
8620 frame_saved_regs_register_unwind.
8621 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8622 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8623 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8624 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8625 (d10v_frame_unwind): Update.
8626 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8627 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8628 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8629 "saved_regs" with "this_saved_regs".
8630
8631 2003-03-16 Andrew Cagney <cagney@redhat.com>
8632
8633 * frame.c (frame_pop): Don't call target_store_registers. Fix
8634 problem reported by Mark Kettenis.
8635
8636 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8637
8638 * i386-tdep.c (i386_register_type): Renamed from
8639 i386_register_virtual_type. Adjust function signature.
8640 (i386_gdbarch_init): Set register_type instead of
8641 deprecated_max_register_raw_size,
8642 deprecated_max_register_virtual_size and register_virtual_type.
8643
8644 2003-03-14 Andrew Cagney <cagney@redhat.com>
8645
8646 * frame.c (get_prev_frame): When a legacy frame, always call
8647 legacy_get_prev_frame. Simplify unwind code using assumption that
8648 the unwinder is new.
8649 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8650 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8651 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8652
8653 2003-03-14 Andrew Cagney <cagney@redhat.com>
8654
8655 * frame.c (get_saved_register): Delete function.
8656 * frame.h (get_saved_register): Delete declaration.
8657 * xstormy16-tdep.c: Update comment.
8658 * regcache.h: Update comments.
8659 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8660 get_saved_register and extract_address, use
8661 frame_read_unsigned_register.
8662 (sparc_frame_saved_pc): Ditto.
8663 (sparc_get_saved_register): Instead of get_saved_register, use
8664 frame_register.
8665 (sparc_pop_frame): Ditto.
8666 * findvar.c: Update comments.
8667 (value_of_register): Call frame_register instead of
8668 get_saved_register.
8669 (value_from_register): Ditto.
8670 * config/sparc/tm-sparc.h: Update comment.
8671 * breakpoint.c: Update comment.
8672
8673 2003-03-14 Andrew Cagney <cagney@redhat.com>
8674
8675 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8676 GET_SAVED_REGISTER.
8677 * gdbarch.h, gdbarch.c: Re-generate.
8678 * frame.h: Update comments.
8679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8680 * x86-64-tdep.c (x86_64_init_abi): Update.
8681 * sparc-tdep.c (sparc_gdbarch_init): Update.
8682 * sh-tdep.c (sh_gdbarch_init): Update.
8683 * mips-tdep.c (mips_gdbarch_init): Update.
8684 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8685 * cris-tdep.c (cris_gdbarch_init): Update.
8686 * ia64-tdep.c (ia64_gdbarch_init): Update.
8687 * frame.c (frame_register): Update.
8688 (get_saved_register): Update.
8689 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8690
8691 2003-03-13 Andrew Cagney <cagney@redhat.com>
8692
8693 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8694 * gdbarch.h, gdbarch.c: Regenerate.
8695 * valops.c (hand_function_call): Update comment.
8696 * stack.c (return_command): Update comment.
8697 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8698 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8700 * x86-64-tdep.c (x86_64_init_abi): Update.
8701 * vax-tdep.c (vax_gdbarch_init): Update.
8702 * v850-tdep.c (v850_gdbarch_init): Update.
8703 * sparc-tdep.c (sparc_gdbarch_init): Update.
8704 * sh-tdep.c (sh_gdbarch_init): Update.
8705 * s390-tdep.c (s390_gdbarch_init): Update.
8706 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8707 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8708 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8709 * mips-tdep.c (mips_gdbarch_init): Update.
8710 * mcore-tdep.c (mcore_gdbarch_init): Update.
8711 * m68k-tdep.c (m68k_gdbarch_init): Update.
8712 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8713 * ia64-tdep.c (ia64_gdbarch_init): Update.
8714 * i386-tdep.c (i386_gdbarch_init): Update.
8715 * hppa-tdep.c (hppa_gdbarch_init): Update.
8716 * h8300-tdep.c (h8300_gdbarch_init): Update.
8717 * frv-tdep.c (frv_gdbarch_init): Update.
8718 * cris-tdep.c (cris_gdbarch_init): Update.
8719 * avr-tdep.c (avr_gdbarch_init): Update.
8720 * arm-tdep.c (arm_gdbarch_init): Update.
8721 * alpha-tdep.c (alpha_gdbarch_init): Update.
8722
8723 2003-03-13 Andrew Cagney <cagney@redhat.com>
8724
8725 * frame.c (legacy_frame_p): New function.
8726 (get_prev_frame): Use legacy_frame_p.
8727 * frame.h (legacy_frame_p): Declare.
8728
8729 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8730
8731 * MAINTAINERS (write after approval): Alphabetically
8732 listing corrected.
8733
8734 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8735
8736 * MAINTAINERS (write after approval): Add myself.
8737
8738 2003-03-12 Andrew Cagney <cagney@redhat.com>
8739
8740 * frame.c (get_prev_frame): Rename the frame parameter to
8741 "this_frame".
8742 (get_next_frame, legacy_get_prev_frame): Ditto.
8743
8744 2003-03-12 Andrew Cagney <cagney@redhat.com>
8745
8746 * frame.c (get_current_frame): Check target_has_registers before
8747 checking target_has_stack.
8748 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8749 instead of deprecated_selected_frame.
8750 * findvar.c (value_of_register): Pass "frame", not
8751 deprecated_selected_frame, to value_of_builtin_reg.
8752
8753 2003-03-12 Andrew Cagney <cagney@redhat.com>
8754
8755 * regcache.c (regcache_cooked_write_signed): New function.
8756 (regcache_cooked_write_unsigned): New function.
8757 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8758 (regcache_cooked_read_signed): Fix regnum in range assertion.
8759 * regcache.h (regcache_cooked_write_signed): Declare.
8760 (regcache_cooked_write_unsigned): Declare.
8761
8762 2003-03-12 Andrew Cagney <cagney@redhat.com>
8763
8764 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8765 * gdbarch.h, gdbarch.c: Re-generate.
8766 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8767 * x86-64-tdep.h: Update.
8768 * x86-64-tdep.c (x86_64_init_abi): Update.
8769 * v850-tdep.c (v850_gdbarch_init): Update.
8770 * sparc-tdep.c (sparc_gdbarch_init): Update.
8771 * sh-tdep.c (sh_gdbarch_init): Update.
8772 * s390-tdep.c (s390_gdbarch_init): Update.
8773 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8774 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8775 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8776 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8777 * mips-tdep.c (mips_gdbarch_init): Update.
8778 * mcore-tdep.c (mcore_gdbarch_init): Update.
8779 * m68k-tdep.c (m68k_gdbarch_init): Update.
8780 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8781 * ia64-tdep.c (ia64_gdbarch_init): Update.
8782 * i386-tdep.c (i386_gdbarch_init): Update.
8783 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8784 * hppa-tdep.c (hppa_gdbarch_init): Update.
8785 * h8300-tdep.c (h8300_gdbarch_init): Update.
8786 * frv-tdep.c (frv_gdbarch_init): Update.
8787 * cris-tdep.c (cris_gdbarch_init): Update.
8788 * avr-tdep.c (avr_gdbarch_init): Update.
8789 * arm-tdep.c (arm_gdbarch_init): Update.
8790 * alpha-tdep.c (alpha_gdbarch_init): Update.
8791 * sh-tdep.c (sh_init_extra_frame_info): Update.
8792 (sh64_init_extra_frame_info): Update.
8793 * ns32knbsd-nat.c (frame_num_args): Update.
8794 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8795 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8796 (xstormy16_frame_chain_valid): Update.
8797 * vax-tdep.c (vax_saved_pc_after_call): Update.
8798 * v850-tdep.c (v850_frame_chain): Update.
8799 (v850_pop_frame): Update.
8800 (v850_init_extra_frame_info): Update.
8801 * sparc-tdep.c (setup_arbitrary_frame): Update.
8802 * ns32k-tdep.c (umax_frame_num_args): Update.
8803 * s390-tdep.c (s390_pop_frame_regular): Update.
8804 * mn10300-tdep.c (mn10300_frame_chain): Update.
8805 (mn10300_pop_frame_regular): Update.
8806 (mn10300_init_extra_frame_info): Update.
8807 * mips-tdep.c (mips_init_frame_pc_first): Update.
8808 (mips_frame_chain): Update.
8809 (mips_pop_frame): Update.
8810 * mcore-tdep.c (mcore_frame_chain): Update.
8811 (mcore_pop_frame): Update.
8812 (mcore_init_extra_frame_info): Update.
8813 * arch-utils.c (init_frame_pc_default): Update.
8814 * m68k-tdep.c (isi_frame_num_args): Update.
8815 (delta68_frame_num_args): Update.
8816 (news_frame_num_args): Update.
8817 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8818 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8819 (alpha_frame_chain): Update.
8820 (alpha_pop_frame): Update.
8821 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8822 (hppa_init_extra_frame_info): Update.
8823 (hppa_frame_chain): Update.
8824 (hppa_frame_chain_valid): Update.
8825 * cris-tdep.c (cris_init_extra_frame_info): Update.
8826 * avr-tdep.c (avr_init_extra_frame_info): Update.
8827 * arm-tdep.c (arm_frame_chain_valid): Update.
8828 (arm_init_extra_frame_info): Update.
8829 (arm_pop_frame): Update.
8830 * frame.c (frame_pc_unwind): Update.
8831 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8832 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8833 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8834 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8835 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8836 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8837
8838 2003-03-12 Andrew Cagney <cagney@redhat.com>
8839
8840 Eliminate the need for POP_FRAME.
8841 * frame.c (do_frame_unwind_register): New function.
8842 (frame_pop): When no POP_FRAME, pop the frame using register
8843 unwind and a scratch regcache.
8844 (frame_saved_regs_pop): Delete function.
8845 (trad_frame_unwinder): Update.
8846 * d10v-tdep.c (d10v_frame_pop): Delete function.
8847 (d10v_frame_unwind): Update.
8848 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8849 (sentinel_frame_unwinder): Update.
8850 * dummy-frame.c (dummy_frame_pop): Delete function.
8851 (dummy_frame_unwind): Update.
8852 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8853 (struct frame_unwind): Update.
8854
8855 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8856
8857 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8858 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8859 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8860 Do range checks on register number obtained from debugging info.
8861 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8862 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8863 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8864 mapping function.
8865 (do_fp_register_row): Fix typo which caused double type to be
8866 used when attempting to unpack a float.
8867
8868 2003-03-11 J. Brobecker <brobecker@gnat.com>
8869
8870 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8871
8872 2003-03-11 Andrew Cagney <cagney@redhat.com>
8873
8874 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8875 frame. Problem found by Corinna Vinschen.
8876
8877 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8878
8879 * doublest.c (floatformat_from_length): Accept also
8880 the real size of 'long double' type.
8881
8882 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8883
8884 From Klee Dienes <kdienes@apple.com>:
8885 * breakpoint.c (bpstat_copy): Copy the command lines as well
8886 as the old value, to match what is freed in bpstat_clear.
8887
8888 2003-03-10 David Carlton <carlton@math.stanford.edu>
8889
8890 * minsyms.c (add_minsym_to_hash_table): Replace
8891 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8892 (compare_minimal_symbols, compact_minimal_symbols)
8893 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8894 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8895 of DEPRECATED_SYMBOL_MATCHES_NAME.
8896 (lookup_minimal_symbol_solib_trampoline): Ditto.
8897
8898 2003-03-10 Andrew Cagney <cagney@redhat.com>
8899
8900 * regcache.h (regcache_cooked_read_ftype): Define.
8901 (regcache_save, regcache_restore): Add a cooked_read parameter.
8902 * regcache.c (regcache_save, regcache_restore): Update.
8903 (do_cooked_read): New function.
8904 (regcache_cpy): Pass do_cooked_read to regcache_save and
8905 regcache_restore.
8906
8907 2003-03-10 Andrew Cagney <cagney@redhat.com>
8908
8909 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8910 * gdbarch.h, gdbarch.c: Re-generate.
8911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8912 * x86-64-tdep.h: Update.
8913 * x86-64-tdep.c (x86_64_init_abi): Update.
8914 * v850-tdep.c (v850_gdbarch_init): Update.
8915 * sparc-tdep.c (sparc_gdbarch_init): Update.
8916 * sh-tdep.c (sh_gdbarch_init): Update.
8917 * s390-tdep.c (s390_gdbarch_init): Update.
8918 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8919 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8920 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8921 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8922 * mips-tdep.c (mips_gdbarch_init): Update.
8923 * mcore-tdep.c (mcore_gdbarch_init): Update.
8924 * m68k-tdep.c (m68k_gdbarch_init): Update.
8925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8926 * ia64-tdep.c (ia64_gdbarch_init): Update.
8927 * i386-tdep.c (i386_gdbarch_init): Update.
8928 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8929 * hppa-tdep.c (hppa_gdbarch_init): Update.
8930 * h8300-tdep.c (h8300_gdbarch_init): Update.
8931 * frv-tdep.c (frv_gdbarch_init): Update.
8932 * cris-tdep.c (cris_gdbarch_init): Update.
8933 * avr-tdep.c (avr_gdbarch_init): Update.
8934 * arm-tdep.c (arm_gdbarch_init): Update.
8935 * alpha-tdep.c (alpha_gdbarch_init): Update.
8936 * sh-tdep.c (sh_init_extra_frame_info): Update.
8937 (sh64_init_extra_frame_info): Update.
8938 * ns32knbsd-nat.c (frame_num_args): Update.
8939 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8940 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8941 (xstormy16_frame_chain_valid): Update.
8942 * vax-tdep.c (vax_saved_pc_after_call): Update.
8943 * v850-tdep.c (v850_frame_chain): Update.
8944 (v850_pop_frame): Update.
8945 (v850_init_extra_frame_info): Update.
8946 * sparc-tdep.c (setup_arbitrary_frame): Update.
8947 * ns32k-tdep.c (umax_frame_num_args): Update.
8948 * s390-tdep.c (s390_pop_frame_regular): Update.
8949 * mn10300-tdep.c (mn10300_frame_chain): Update.
8950 (mn10300_pop_frame_regular): Update.
8951 (mn10300_init_extra_frame_info): Update.
8952 * mips-tdep.c (mips_init_frame_pc_first): Update.
8953 (mips_frame_chain): Update.
8954 (mips_pop_frame): Update.
8955 * mcore-tdep.c (mcore_frame_chain): Update.
8956 (mcore_pop_frame): Update.
8957 (mcore_init_extra_frame_info): Update.
8958 * arch-utils.c (init_frame_pc_default): Update.
8959 * m68k-tdep.c (isi_frame_num_args): Update.
8960 (delta68_frame_num_args): Update.
8961 (news_frame_num_args): Update.
8962 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8963 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8964 (alpha_frame_chain): Update.
8965 (alpha_pop_frame): Update.
8966 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8967 (hppa_init_extra_frame_info): Update.
8968 (hppa_frame_chain): Update.
8969 (hppa_frame_chain_valid): Update.
8970 * cris-tdep.c (cris_init_extra_frame_info): Update.
8971 * avr-tdep.c (avr_init_extra_frame_info): Update.
8972 * arm-tdep.c (arm_frame_chain_valid): Update.
8973 (arm_init_extra_frame_info): Update.
8974 (arm_pop_frame): Update.
8975 * frame.c (frame_pc_unwind): Update.
8976 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8977 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8978 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8979 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8980 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8981 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8982
8983 2003-03-10 Andrew Cagney <cagney@redhat.com>
8984
8985 * gdbarch.sh (gdbarch_unwind_pc): New method.
8986 * gdbarch.h, gdbarch.c: Regenerate.
8987 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8988 but use read_pc and FRAME_SAVED_PC as fall backs.
8989 (frame_saved_regs_pc_unwind): Delete function.
8990 (trad_frame_unwinder): Update.
8991 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8992 (struct frame_unwind): Update.
8993 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8994 (dummy_frame_unwind): Update.
8995 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8996 (sentinel_frame_unwinder): Update.
8997 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8998 (d10v_frame_unwind): Update.
8999 (d10v_unwind_pc): New function.
9000 (d10v_gdbarch_init): Set unwind_pc.
9001
9002 2003-03-10 Andrew Cagney <cagney@redhat.com>
9003
9004 * gdbarch.h: Re-generate.
9005
9006 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9007 PC.
9008 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9009 the PC register.
9010
9011 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9012
9013 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9014
9015 2003-03-08 Andrew Cagney <cagney@redhat.com>
9016
9017 * cli-out.c: Update copyright.
9018 (cli_out_data): Define typedef. Use instead of ui_out_data.
9019
9020 2003-03-08 Andrew Cagney <cagney@redhat.com>
9021
9022 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9023 the result.
9024
9025 2003-03-07 Andrew Cagney <cagney@redhat.com>
9026
9027 * gdbarch.sh: Don't generate two macro definitions when an
9028 undefined macro taking no arguments.
9029 * gdbarch.h: Regenerate.
9030
9031 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9032
9033 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9034 (x86_64_unwind_dummy_id): New functions.
9035 (x86_64_init_abi): Register these two new functions.
9036
9037 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9038
9039 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9040 (x86_64_skip_prologue): Move prologue detection to
9041 separate function.
9042 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9043
9044 2003-03-05 Andrew Cagney <cagney@redhat.com>
9045
9046 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9047 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9048 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9049 to use unwind_dummy_id when a dummy frame.
9050 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9051 predicate.
9052 * gdbarch.h, gdbarch.c: Regneerate.
9053
9054 2003-03-05 Andrew Cagney <cagney@redhat.com>
9055
9056 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9057 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9058 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9059 values.
9060
9061 2003-03-05 Andrew Cagney <cagney@redhat.com>
9062
9063 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9064 (struct d10v_unwind_cache): Delete field "frameless". Replace
9065 "next_addr" with "sp_offset". Add "r11_offset".
9066 (d10v_frame_unwind_cache): Update.
9067 (prologue_find_regs): Update. When "mv r11, sp", save the
9068 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9069 RN was saved in r11_offset.
9070
9071 2003-03-05 Andrew Cagney <cagney@redhat.com>
9072
9073 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9074 cached PC value in the next frame.
9075
9076 2003-03-05 Andrew Cagney <cagney@redhat.com>
9077
9078 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9079 "id_unwind_cache" with "id".
9080 (frame_id_unwind): Delete declaration.
9081 * frame.c (frame_id_unwind): Delete function.
9082 (get_prev_frame): Call the frame id unwind method directly. Store
9083 the returned next frame's ID value in NEXT_FRAME. Note that there
9084 is a problem with the wrong unwind ID being called with the wrong
9085 unwind cache.
9086
9087 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9088
9089 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9090
9091 2003-03-05 James Ingham <jingham@apple.com>
9092 Daniel Jacobowitz <drow@mvista.com>
9093
9094 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9095 (auto_cp_abi): New variable.
9096 (current_cp_abi, num_cp_abis): Make static.
9097 (CP_ABI_MAX): Define.
9098 (cp_abis): Turn into an array.
9099 (value_virtual_fn_field): Fix formatting.
9100 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9101 takes a pointer.
9102 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9103 (list_cp_abis, _initialize_cp_abi): New functions.
9104 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9105 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9106 switch_to_cp_abi. Update prototype for register_cp_abi.
9107 * Makefile.in (cp-abi.o): Update dependencies.
9108 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9109 instead of switch_to_cp_abi.
9110 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9111 register_cp_abi.
9112 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9113 register_cp_abi.
9114 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9115
9116 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9117
9118 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9119 * dwarf2loc.c: Include "regcache.h".
9120 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9121 register_size.
9122 * Makefile.in (dwarf2loc.o): Update dependencies.
9123
9124 2003-03-04 Theodore A. Roth <troth@openavr.org>
9125
9126 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9127 number of io registers reported by remote target is not a multiple of
9128 step.
9129
9130 2003-03-04 David Carlton <carlton@math.stanford.edu>
9131
9132 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9133 (lookup_symbol_aux_psymtabs): Update call to
9134 lookup_partial_symbol.
9135 (lookup_transparent_type, find_main_psymtab)
9136 (make_symbol_overload_list): Ditto.
9137
9138 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9139
9140 * MAINTAINERS (Write after approval): Update my email address.
9141
9142 2003-03-03 Andrew Cagney <cagney@redhat.com>
9143
9144 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9145 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9146 predicate. Replace MAX_REGISTER_RAW_SIZE.
9147 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9148 MAX_REGISTER_VIRTUAL_SIZE.
9149 * regcache.c (legacy_max_register_raw_size): New function.
9150 (legacy_max_register_virtual_size): New function.
9151 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9152 (MAX_REGISTER_RAW_SIZE): Define.
9153 (legacy_max_register_raw_size): Declare.
9154 (legacy_max_register_virtual_size): Declare.
9155 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9156 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9157 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9158 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9159 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9160 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9161 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9162 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9163 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9164 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9165 * vax-tdep.c (vax_gdbarch_init): Update.
9166 * v850-tdep.c (v850_gdbarch_init): Update.
9167 * sparc-tdep.c (sparc_gdbarch_init): Update.
9168 * sh-tdep.c (sh_gdbarch_init): Update.
9169 * s390-tdep.c (s390_gdbarch_init): Update.
9170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9171 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9172 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9173 * mips-tdep.c (mips_gdbarch_init): Update.
9174 * mcore-tdep.c (mcore_gdbarch_init): Update.
9175 * m68k-tdep.c (m68k_gdbarch_init): Update.
9176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9177 * ia64-tdep.c (ia64_gdbarch_init): Update.
9178 * i386-tdep.c (i386_gdbarch_init): Update.
9179 * hppa-tdep.c (hppa_gdbarch_init): Update.
9180 * h8300-tdep.c (h8300_gdbarch_init): Update.
9181 * frv-tdep.c (frv_gdbarch_init): Update.
9182 * cris-tdep.c (cris_gdbarch_init): Update.
9183 * avr-tdep.c (avr_gdbarch_init): Update.
9184 * arm-tdep.c (arm_gdbarch_init): Update.
9185 * alpha-tdep.c (alpha_gdbarch_init): Update.
9186 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9187 max_register_raw_size or max_register_virtual_size.
9188
9189 2003-03-03 David Carlton <carlton@math.stanford.edu>
9190
9191 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9192 SYMBOL_MATCHES_NAME, add comment.
9193 (SYMBOL_MATCHES_NATURAL_NAME): New.
9194 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9195 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9196 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9197 * symtab.c (lookup_partial_symbol): Use
9198 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9199 unhelpful comment.
9200 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9201 SYMBOL_MATCHES_NAME.
9202 Fix for PR c++/33.
9203
9204 2003-03-03 David Carlton <carlton@math.stanford.edu>
9205
9206 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9207 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9208 by regexp matching against SYMBOL_NATURAL_NAME.
9209
9210 2003-03-03 David Carlton <carlton@math.stanford.edu>
9211
9212 * linespec.c (find_method): Extract code into collect_methods.
9213 (collect_methods): New.
9214
9215 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9216
9217 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9218 get_frame_base.
9219
9220 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9221 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9222
9223 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9224
9225 * arch-utils.c (generic_register_byte): Fix to use the loop index
9226 and not regnum when summing the size of all registers up to regnum.
9227
9228 2003-03-01 Andrew Cagney <cagney@redhat.com>
9229
9230 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9231 FRAME_INIT_SAVED_REGS.
9232 * gdbarch.h, gdbarch.c: Regenerate.
9233 * stack.c (frame_info): Update.
9234 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9235 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9236 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9237 * ns32k-tdep.c (ns32k_pop_frame): Update.
9238 * mips-tdep.c (mips_pop_frame): Update.
9239 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9240 * ia64-tdep.c (ia64_frame_chain): Update.
9241 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9242 (ia64_frameless_function_invocation): Update.
9243 (ia64_init_extra_frame_info): Update.
9244 (ia64_pop_frame_regular): Update.
9245 * frame.h (struct frame_info): Update comment.
9246 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9247 * frame.c (frame_saved_regs_register_unwind): Update.
9248 (frame_saved_regs_register_unwind): Update.
9249 (deprecated_generic_get_saved_register): Update.
9250 * cris-tdep.c: Update comment.
9251 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9252 Rename macro.
9253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9254 * x86-64-tdep.c (x86_64_init_abi): Update.
9255 * vax-tdep.c (vax_gdbarch_init): Update.
9256 * v850-tdep.c (v850_gdbarch_init): Update.
9257 * sparc-tdep.c (sparc_gdbarch_init): Update.
9258 * sh-tdep.c (sh_gdbarch_init): Update.
9259 * s390-tdep.c (s390_gdbarch_init): Update.
9260 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9261 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9262 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9263 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9264 * mips-tdep.c (mips_gdbarch_init): Update.
9265 * mcore-tdep.c (mcore_gdbarch_init): Update.
9266 * m68k-tdep.c (m68k_gdbarch_init): Update.
9267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9268 * ia64-tdep.c (ia64_gdbarch_init): Update.
9269 * i386-tdep.c (i386_gdbarch_init): Update.
9270 * frv-tdep.c (frv_gdbarch_init): Update.
9271 * avr-tdep.c (avr_gdbarch_init): Update.
9272 * arm-tdep.c (arm_gdbarch_init): Update.
9273 * alpha-tdep.c (alpha_gdbarch_init): Update.
9274
9275 2003-03-01 Andrew Cagney <cagney@redhat.com>
9276
9277 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9278 option enum and switch. When no windows, set the interpreter to
9279 INTERP_CONSOLE.
9280
9281 2003-03-01 Andrew Cagney <cagney@redhat.com>
9282
9283 * main.c (captured_main): Replace magic option characters with an
9284 enum.
9285
9286 2003-03-01 Andrew Cagney <cagney@redhat.com>
9287
9288 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9289 INIT_EXTRA_FRAME_INFO.
9290 * gdbarch.h, gdbarch.c: Regenerate.
9291 * arm-tdep.c: Update comments.
9292 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9293 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9294 * frame.h, avr-tdep.c: Ditto.
9295 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9296 (create_new_frame, legacy_get_prev_frame): Ditto.
9297 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9298 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9300 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9301 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9302 * v850-tdep.c (v850_gdbarch_init): Ditto.
9303 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9304 * sh-tdep.c (sh_gdbarch_init): Ditto.
9305 * s390-tdep.c (s390_gdbarch_init): Ditto.
9306 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9307 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9308 * mips-tdep.c (mips_gdbarch_init): Ditto.
9309 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9311 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9312 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9313 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9314 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9315 * frv-tdep.c (frv_gdbarch_init): Ditto.
9316 * cris-tdep.c (cris_gdbarch_init): Ditto.
9317 * avr-tdep.c (avr_gdbarch_init): Ditto.
9318 * arm-tdep.c (arm_gdbarch_init): Ditto.
9319 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9320 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9321
9322 2003-03-01 Andrew Cagney <cagney@redhat.com>
9323
9324 * gdbarch.sh (register_type): New function with predicate.
9325 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9326 * gdbarch.h, gdbarch.c: Re-generate.
9327 * arch-utils.c (generic_register_byte): Use generic_register_size.
9328 (generic_register_size): When available, use
9329 gdbarch_register_type.
9330 * regcache.c (init_regcache_descr): When available, initialize the
9331 register type array using gdbarch_register_type. If the
9332 architecture supplies gdbarch_register_type, do not use the legacy
9333 regcache layout.
9334 * d10v-tdep.c (d10v_register_type): Replace
9335 d10v_register_virtual_type.
9336 (d10v_gdbarch_init): Set register_type instead of
9337 register_virtual_type.
9338
9339 2003-03-01 Andrew Cagney <cagney@redhat.com>
9340
9341 * Makefile.in (ax-gdb.o): Update dependencies.
9342 * ax-gdb.c: Include "regcache.h".
9343 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9344 * findvar.c (value_of_register): Ditto.
9345 * infcmd.c (default_print_registers_info): Ditto.
9346
9347 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9348
9349 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9350 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9351
9352 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9353
9354 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9355 of STREQ.
9356
9357 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9358
9359 * Makefile.in (dwarf2loc.o): Update dependencies.
9360 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9361 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9362 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9363 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9364 (locexpr_tracepoint_var_ref): New function.
9365 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9366
9367 2003-02-28 Andrew Cagney <cagney@redhat.com>
9368
9369 * regcache.c (register_size): New function.
9370 * regcache.h (register_size): Declare
9371 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9372 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9373
9374 2003-02-28 David Carlton <carlton@math.stanford.edu>
9375
9376 * linespec.c (decode_compound): Extract code into find_method.
9377 (find_method): New.
9378
9379 2003-02-28 J. Brobecker <brobecker@gnat.com>
9380
9381 * Makefile.in: Add rules to build and link in observer.o.
9382
9383 2003-02-27 J. Brobecker <brobecker@gnat.com>
9384
9385 * observer.c: Minor comments edits.
9386
9387 2003-02-27 J. Brobecker <brobecker@gnat.com>
9388
9389 * observer.h, observer.c: New file.
9390
9391 2003-02-27 Andrew Cagney <cagney@redhat.com>
9392
9393 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9394
9395 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9396
9397 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9398 (M6812_OP_STS_EXT): Likewise.
9399 (m6811_prologue): Use the above to recognize prologue.
9400 (m6812_prologue): Likewise.
9401
9402 2003-02-27 David Carlton <carlton@math.stanford.edu>
9403
9404 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9405 SYMBOL_PRINT_NAME.
9406 (compare_psymbols): Ditto.
9407 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9408
9409 2003-02-27 Michael Snyder <msnyder@redhat.com>
9410
9411 * f-lang.c (build_fortran_types): New function.
9412 (_initialize_f_language): Gdbarch-register built-in fortran types.
9413 * doublest.c (extract_floating): Fix warning text.
9414
9415 2003-02-27 Andrew Cagney <cagney@redhat.com>
9416
9417 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9418 predicate. Replaces PUSH_DUMMY_FRAME.
9419 * gdbarch.h, gdbarch.c: Regnerate.
9420 * valops.c (hand_function_call): Update. Call
9421 generic_push_dummy_frame directly.
9422 * vax-tdep.c (vax_gdbarch_init): Update.
9423 * sparc-tdep.c (sparc_gdbarch_init): Update.
9424 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9425 * m68k-tdep.c (m68k_gdbarch_init): Update.
9426 * hppa-tdep.c (hppa_gdbarch_init): Update.
9427 * alpha-tdep.c (alpha_gdbarch_init): Update.
9428 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9429 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9430 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9432 push_dummy_frame to generic_push_dummy_frame.
9433 * v850-tdep.c (v850_gdbarch_init): Ditto.
9434 * sh-tdep.c (sh_gdbarch_init): Ditto.
9435 * s390-tdep.c (s390_gdbarch_init): Ditto.
9436 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9437 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9438 * mips-tdep.c (mips_gdbarch_init): Ditto.
9439 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9441 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9442 * i386-tdep.c (i386_gdbarch_init): Ditto.
9443 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9444 * frv-tdep.c (frv_gdbarch_init): Ditto.
9445 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9446 * cris-tdep.c (cris_gdbarch_init): Ditto.
9447 * avr-tdep.c (avr_gdbarch_init): Ditto.
9448 * arm-tdep.c (arm_gdbarch_init): Ditto.
9449
9450 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9451
9452 * mips-tdep.c (show_mips_abi): New function.
9453 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9454 command ``show mips abi''.
9455
9456 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9457
9458 From Elena Zannoni <ezannoni@redhat.com>
9459 * dbxread.c (process_one_symbol): Only record line 0 if one or
9460 more sline entries have been seen for the function.
9461
9462 2003-02-26 Michael Chastain <mec@shout.net>
9463
9464 * configure: Regenerate with autoconf 000227.
9465
9466 2003-02-26 Michael Chastain <mec@shout.net>
9467
9468 Close PR build/660.
9469 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9470 for old libc5/glibc.
9471 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9472
9473 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9474
9475 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9476 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9477
9478 2003-02-26 Michael Chastain <mec@shout.net>
9479
9480 * configure.in: New variable HAVE_UINTPTR_T.
9481 * configure, config.in: Regenerated.
9482
9483 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9484
9485 Fix PR build/1097.
9486 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9487
9488 2003-02-25 Andrew Cagney <cagney@redhat.com>
9489
9490 * frame.c (get_prev_frame): Add comment on check for
9491 inside_entry_func. Only check for inside_entry_file when not a
9492 dummy and not a sentinel. Check that the new frame is not inner
9493 to the old frame.
9494
9495 2003-02-25 Andrew Cagney <cagney@redhat.com>
9496
9497 * frame.c (frame_debug): New variable.
9498 (_initialize_frame): Add "set/show debug frame" command.
9499 (get_prev_frame): When frame_debug, print reason why unwind
9500 failed.
9501
9502 2003-02-25 Michael Chastain <mec@shout.net>
9503
9504 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9505 to avoid uintptr_t definition problems.
9506
9507 2003-02-25 David Carlton <carlton@math.stanford.edu>
9508
9509 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9510 (SYMBOL_LINKAGE_NAME): Ditto.
9511 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9512 SYMBOL_LINKAGE_NAME.
9513 (struct general_symbol_info): Expand comment.
9514 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9515 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9516 (SYMBOL_MATCHES_REGEXP): Ditto.
9517 * symtab.c (symbol_natural_name): New function.
9518 * objfiles.h: Replace all uses of SYMBOL_NAME by
9519 DEPRECATED_SYMBOL_NAME.
9520 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9521 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9522 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9523 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9524 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9525 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9526 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9527 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9528 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9529 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9530 * ada-exp.y: Ditto.
9531 * ada-exp.y: Update copyright.
9532 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9533 * cp-valprint.c: Ditto.
9534
9535 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9536
9537 * infptrace.c (detach): Do not flag error if ptrace detach fails
9538 and errno is set to ESRCH.
9539
9540 2003-02-24 Andrew Cagney <cagney@redhat.com>
9541
9542 * infptrace.c (udot_info): Change type of udot_off to long. Use
9543 paddr when printing udot_off's value.
9544
9545 2003-02-24 David Carlton <carlton@math.stanford.edu>
9546
9547 * symtab.c (make_symbol_overload_list): Only read in partial
9548 symtabs containing a matching partial symbol.
9549
9550 2003-02-24 David Carlton <carlton@math.stanford.edu>
9551
9552 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9553 do the comparison, not strcmp.
9554 * symfile.c (compare_psymbols): Ditto.
9555 * defs.h: Declare strcmp_iw_ordered.
9556 * utils.c (strcmp_iw_ordered): New function.
9557
9558 2003-02-24 Jim Blandy <jimb@redhat.com>
9559
9560 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9561 support, shared libs): Remove my name from here, to better reflect
9562 reality.
9563
9564 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9565
9566 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9567 (target_ops): Add to_have_continuable_watchpoint.
9568 * target.c (update_current_target): Add INHERIT line for
9569 to_have_continuable_watchpoint.
9570 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9571 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9572 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9573 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9574
9575 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9576
9577 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9578 maintainership.
9579
9580 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9581
9582 * solib.c (solib_open): Call target defined search function after
9583 failing with solib-search-path.
9584 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9585 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9586
9587 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9588
9589 * MAINTAINERS: Add myself to Write After section.
9590
9591 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9592
9593 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9594
9595 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9596
9597 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9598 (m68hc11_add_reggroups): New function.
9599 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9600 (m68hc11_gdbarch_init): Install the reggroups.
9601 (_initialize_m68hc11_tdep): Initialize them.
9602
9603 2003-02-21 James E Wilson <wilson@tuliptree.org>
9604
9605 * MAINTAINERS: Update my email address.
9606
9607 2003-02-21 David Carlton <carlton@math.stanford.edu>
9608
9609 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9610
9611 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9612
9613 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9614 * symtab.h: Add opaque declarations of struct axs_value and
9615 struct agent_expr.
9616 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9617 (struct location_funcs): New type.
9618 (struct symbol): Add "loc" to aux_value.
9619 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9620 * dwarf2read.c: Include "dwarf2expr.h".
9621 (dwarf2_symbol_mark_computed): New function.
9622 (read_func_scope): Use it.
9623 (var_decode_location): New function.
9624 (new_symbol): Use it.
9625 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9626
9627 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9628 (dwarf2expr_h, dwarf2loc_h): New variables.
9629 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9630 (dwarf2expr.o, dwarf2loc.o): New rules.
9631 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9632 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9633 LOC_COMPUTED_ARG.
9634 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9635 * m2-exp.y (yylex): Likewise.
9636 * printcmd.c (address_info, print_frame_args): Likewise.
9637 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9638 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9639 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9640 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9641 * symtab.c (lookup_block_symbol): Likewise.
9642
9643 2003-02-20 Adam Fedor <fedor@gnu.org>
9644
9645 * symtab.h: Remove objc_specific struct
9646 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9647 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9648 Have language_objc use cplus_specific struct.
9649
9650 2003-02-20 Tom Tromey <tromey@redhat.com>
9651
9652 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9653 TYPE_NAME, when printing a String value. PR java/1075.
9654
9655 2003-02-20 Adam Fedor <fedor@gnu.org>
9656
9657 * objc-lang.h (find_methods): Remove declaration.
9658 * objc-lang.c (find_methods): Make static.
9659
9660 2003-02-20 Christopher Faylor <cgf@redhat.com>
9661
9662 * win32-nat.c (get_image_name): Check return value from
9663 ReadProcessMemory.
9664 (child_xfer_memory): Ditto.
9665
9666 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9667
9668 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9669 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9670 '${exec_prefix}' (in addition to the expansion thereof) as
9671 relocatable.
9672 * configure: Rebuilt.
9673
9674 2003-02-20 David Carlton <carlton@math.stanford.edu>
9675
9676 * symtab.c (search_symbols): Revert the search_symbols part of my
9677 2002-12-23 patch. Add comment.
9678
9679 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9680
9681 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9682 * dbxread.c (elfstab_build_psymtabs): Don't call
9683 install_minimal_symbols.
9684 (stabsect_build_psymtabs): Likewise.
9685 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9686 earlier.
9687 * somread.c (som_symfile_read): Call install_minimal_symbols
9688 and do_cleanups earlier.
9689 * nlmread.c (nlm_symfile_read): Likewise.
9690 * mdebugread.c (elfmdebug_build_psymtabs): Call
9691 install_minimal_symbols and make appropriate cleanups.
9692
9693 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9694
9695 * solib.c (reload_shared_libraries): New function.
9696 (_initialize_solib): Add callbacks for ``set solib-search-path''
9697 and ``set solib-absolute-prefix''.
9698
9699 2003-02-20 David Carlton <carlton@math.stanford.edu>
9700
9701 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9702 expand comment.
9703 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9704 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9705 * ada-typeprint.c (ada_typedef_print): Ditto.
9706 * ax-gdb.c (gen_var_ref): Ditto.
9707 * breakpoint.c (print_one_breakpoint): Ditto.
9708 * buildsym.c (finish_block): Ditto.
9709 * c-valprint.c (c_val_print): Ditto.
9710 * expprint.c (print_subexp): Ditto.
9711 * findvar.c (locate_var_value): Ditto.
9712 * infcmd.c (jump_command): Ditto.
9713 * linespec.c (decode_line_2, decode_compound): Ditto.
9714 * maint.c (maintenance_translate_address): Ditto.
9715 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9716 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9717 Ditto.
9718 * p-valprint.c (pascal_val_print): Ditto.
9719 * stabsread.c (define_symbol): Ditto.
9720 * stack.c (print_frame, frame_info, print_block_frame_locals)
9721 (print_frame_arg_vars, return_command): Ditto.
9722 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9723 * symmisc.c (print_symbol): Ditto.
9724 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9725 (compare_search_syms, print_symbol_info, print_msymbol_info)
9726 (rbreak_command): Ditto.
9727 * tracepoint.c (tracepoints_info): Ditto.
9728 * typeprint.c (typedef_print): Ditto.
9729 * valops.c (value_of_variable, hand_function_call): Ditto.
9730 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9731 * ada-typeprint.c: Update Copyright.
9732 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9733 * tracepoint.c, cli/cli-cmds.c: Ditto.
9734
9735 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9736
9737 * frame.c (generic_unwind_get_saved_register): Make non-static.
9738 * frame.h (generic_unwind_get_saved_register): Declare.
9739 * mips-tdep.c (read_next_frame_reg): Fetch register from
9740 current regcache when frame is NULL.
9741 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9742 that must be NULL.
9743 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9744 instead of frame_register_unwind().
9745
9746 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9747
9748 * remote-sim.c (gdbsim_insert_breakpoint)
9749 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9750 code.
9751
9752 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9753
9754 * remote.c (_initialize_remote): Add commands "set/show remote
9755 hardware-watchpoint-limit" and "set/show remote
9756 hardware-breakpoint-limit".
9757 (remote_hw_watchpoint_limit): Initialize to -1.
9758 (remote_hw_breakpoint_limit): Ditto.
9759 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9760
9761 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9762
9763 * coff-pe-read.c: New file - support reading of minimal symbols from a
9764 portable executable using the export table.
9765 * coff-pe-read.h: New file.
9766 * coffread.c: Include coff-pe-read.h.
9767 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9768 debugging symbols found.
9769 * Makefile.in (SFILES): Add coff-pe-read.o.
9770 (coff_pe_read_h): Define.
9771 (COMMON_OBS): Add coff-pe-read.o.
9772 (coffread.o): Add coff_pe_read_h dependency.
9773 (coff-pe-read.o): New target.
9774
9775 2003-02-19 David Carlton <carlton@math.stanford.edu>
9776
9777 * Makefile.in (SFILES): Add block.c.
9778 (block_h): New.
9779 (COMMON_OBS): Add block.o.
9780 (block.o): New.
9781 (x86-64-tdep.o): Add $(block_h).
9782 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9783 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9784 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9785 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9786 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9787 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9788 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9789 * value.h: Add opaque declaration for struct block.
9790 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9791 * ada-lang.h: Ditto.
9792 * x86-64-tdep.c: #include "block.h"
9793 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9794 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9795 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9796 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9797 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9798 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9799 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9800 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9801 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9802 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9803 * symtab.c (block_function): Ditto.
9804 (contained_in): Ditto.
9805 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9806 block.h. Add opaque declaration for struct block.
9807 * symtab.h: Move block_function and contained_in declarations to
9808 block.h. Add opaque declarations for struct block, struct
9809 blockvector.
9810 (struct block): Move to block.h.
9811 (struct blockvector): Ditto.
9812 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9813 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9814 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9815 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9816 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9817 Ditto.
9818 * block.c: New file.
9819 * block.h: New file.
9820
9821 2003-02-19 Theodore A. Roth <troth@openavr.org>
9822
9823 * avr-tdep.c (avr_extract_return_value): Remove function.
9824 (avr_store_return_value): Remove function.
9825 (avr_extract_struct_value_address): Remove function.
9826 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9827
9828 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9829
9830 * rs6000-tdep.c: Include "gdb_assert.h".
9831 (registers_e500): Add "acc" and "spefscr".
9832 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9833 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9834 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9835 really is "r0".
9836 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9837
9838 2003-02-18 Keith Seitz <keiths@redhat.com>
9839
9840 * Makefile.in: Add gdbtk-interps.c.
9841
9842 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9843
9844 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9845 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9846
9847 2003-02-18 Andrew Cagney <cagney@redhat.com>
9848
9849 * symtab.h (struct objfile): Add opaque declaration.
9850
9851 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9852
9853 From Jim Ingham <jingham@apple.com>:
9854 * dbxread.c (process_one_symbol): Use last_function_start rather
9855 than function_start_offset to find the real beginning of the
9856 current function. The latter is just the text section offset on
9857 some systems, the former is always the real function start.
9858
9859 2003-02-17 Andrew Cagney <cagney@redhat.com>
9860
9861 * configure.in: Revert ${target} != ${host}.
9862
9863 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9864
9865 * configure.in (Makefile): Use the test ${target} != ${host},
9866 instead of the absence of the "nm.h" file, to determine of the
9867 configuration non-native.
9868 * configure: Regenerate.
9869
9870 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9871
9872 From Brian Ford <ford@vss.fsi.com>
9873
9874 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9875 conditionalize tui_active test.
9876 (lookup_cmd_1): Ditto.
9877
9878 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9879
9880 * configure.in: Add check for _etext.
9881 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9882 available.
9883 * config.in, configure: regenerated.
9884
9885 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9886
9887 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9888
9889 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9890
9891 * main.c (tui_version): Delete variable.
9892 (captured_main): When --tui, set interpreter_p to "tui" instead of
9893 enabling tui_version.
9894 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9895 tui_version.
9896 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9897 * cli/cli-cmds.c (disassemble_command): Ditto.
9898 * defs.h (tui_version): Delete declaration.
9899 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9900 (tui-interp.o): Add rules.
9901 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9902
9903 2003-02-14 Christopher Faylor <cgf@redhat.com>
9904
9905 * win32-nat.c (register_loaded_dll): Correctly set address range for
9906 just-loaded dll.
9907
9908 2003-02-12 Jason Molenda (jmolenda@apple.com)
9909
9910 * symmisc.c (print_objfile_statistics): Include information about
9911 the number of psymtabs and symtabs in each object file.
9912
9913 2003-02-13 Keith R Seitz <keiths@redhat.com>
9914
9915 * main.h (struct captured_main_args): Add interpreter_p.
9916 * main.c (captured_main): Initialize interpreter_p from context.
9917 * gdb.c (main): Set interpreter_p argument.
9918 * Makefile.in (gdb.o): Add dependency for interps.h.
9919
9920 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9921
9922 * event-top.c (cli_command_loop): Delete declaration.
9923 (_initialize_event_loop): Delete function setting event_loop_hook.
9924 * event-top.h (cli_command_loop): Declare. Update copyright.
9925 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9926 * interps.c (current_interp_command_loop): When event_loop_p, call
9927 cli_command_loop.
9928
9929 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9930
9931 * interps.h (interp_command_loop_ftype): Change return type to
9932 void.
9933
9934 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9935
9936 * x86-64-tdep.c (x86_64_extract_return_value)
9937 (x86_64_store_return_value): Use regcache instead of regbuf.
9938 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9939 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9940
9941 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9942
9943 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9944 * aclocal.m4: Regenerate.
9945 * configure: Regenerate.
9946
9947 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9948 TCL_LD_SEARCH_FLAGS.
9949
9950 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9951
9952 * dwarf2cfi.c: Reindented.
9953
9954 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9955
9956 * interps.c (clear_interpreter_hooks): Convert function definition
9957 to ISO C.
9958
9959 2003-02-07 David Carlton <carlton@math.stanford.edu>
9960
9961 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9962
9963 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9964
9965 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9966 (struct type): ...to here.
9967 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9968 field.
9969 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9970 (replace_type): Set length on all type variants for a given type.
9971
9972 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9973
9974 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9975 <sys/stat.h>.
9976 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9977
9978 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9979
9980 * Makefile.in (symm-nat.o): Update dependencies.
9981 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9982 (lynx-nat.o, ia64-linux-nat.): Ditto.
9983 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9984 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9985 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9986
9987 * Makefile.in (inflow_h): Define.
9988 (procfs.o, inflow.o, procfs.o): Update dependencies.
9989 * inftarg.c (child_stop): Delete extern declaration of
9990 inferior_process_group. Include "inflow.h".
9991 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9992 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9993 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9994 (our_process_group, inferior_process_group): Extern declarations.
9995
9996 * procfs.c: Include "gdb_assert.h".
9997
9998 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9999 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10000 * jv-typeprint.c (java_type_print_base): Ditto.
10001 * typeprint.c (typedef_print): Eliminate STREQ.
10002 * cli/cli-script.c (define_command, define_command): Ditto.
10003 * main.c (captured_main): Ditto.
10004 * values.c (lookup_internalvar): Ditto.
10005 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10006 within `if' conditional.
10007 * linespec.c (decode_line_2): Ditto.
10008 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10009 (bfd_openw_with_cleanup): Ditto.
10010
10011 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10012
10013 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10014 legacy_extract_return_value and store_return_value to
10015 legacy_return_value.
10016
10017 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10018
10019 * win32-nat.c (get_relocated_section_addrs): New function. Find
10020 section load addresses for symbol handling in relocated DLLs.
10021 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10022
10023 2003-02-05 Fred Fish <fnf@intrinsity.com>
10024
10025 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10026 '=' and '!='.
10027 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10028 with '&' and '=='.
10029 (angel_RDI_info): Ditto.
10030 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10031 with '&' and '!='.
10032 (threads_continue_all_with_signals): Ditto.
10033
10034 2003-02-05 Jim Ingham <jingham@apple.com>
10035 Keith Seitz <keiths@redhat.com>
10036 Elena Zannoni <ezannoni@redhat.com>
10037 Andrew Cagney <ac131313@redhat.com>
10038
10039 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10040 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10041 (SUBDIR_MI_OBS): Add "mi-interp.o".
10042 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10043 (SFILES): Add "interps.c".
10044 (COMMON_OBS): Add "interps.o".
10045 (interps_h, mi_main_h): Define.
10046 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10047 (mi-main.o, main.o, event-top.o): Update dependencies.
10048 * cli/cli-interp.c: New file.
10049 * interps.h, interps.c: New files.
10050 * top.c: (gdb_init): Don't install the default interpreter, handed
10051 by captured_main.
10052 * main.c: Include "interps.h".
10053 (interpreter_p): Note that it should malloc'ed.
10054 (captured_command_loop): Call current_interp_command_loop.
10055 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10056 xfree and xstrdup when updating interpreter_p. Install the
10057 default interpreter. Add hack to stop mi1's copyright notice
10058 being encoded.
10059 * event-top.h (gdb_setup_readline): Declare.
10060 (gdb_disable_readline): Declare.
10061 * event-top.c: Include "interps.h".
10062 (display_gdb_prompt): Call current_interp_display_prompt_p.
10063 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10064 gdb_stdlog, and gdb_stdtarg.
10065 (_initialize_event_loop): Don't call gdb_setup_readline.
10066 * cli-out.c (cli_out_set_stream): New function.
10067 * cli-out.h (cli_out_set_stream): Declare.
10068
10069 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10070
10071 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10072 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10073 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10074 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10075 config/i386/i386v42mp.mt: Removed.
10076
10077 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10078
10079 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10080 GDB_OSABI_SOLARIS.
10081
10082 2003-02-05 Michael Chastain <mec@shout.net>
10083
10084 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10085 2.12.1 and earlier versions.
10086
10087 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10088
10089 Remove orphaned hosts, targets and files.
10090 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10091 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10092 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10093 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10094 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10095 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10096 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10097 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10098 * config/sparc/tm-sp64sim.h: Delete.
10099 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10100 hosts.
10101 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10102 mips*-dec-mach3* targets.
10103
10104 2003-02-04 Michael Chastain <mec@shout.net>
10105
10106 * NEWS: Fix typo: sepcifying -> specifying.
10107
10108 2003-02-04 Michael Chastain <mec@shout.net>
10109
10110 * dwarfread.c: Add documentation on the state of dwarf-1,
10111 looking towards obsoletion.
10112
10113 2003-02-03 Michael Chastain <mec@shout.net>
10114
10115 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10116 gdb/testsuite/gdb.c++/pr-1023.exp.
10117
10118 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10119
10120 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10121 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10122
10123 * utils.c (init_page_info): Delete reference to MPW in comments.
10124 * main.c (captured_main): Delete #ifdef MPW.
10125
10126 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10127
10128 * NEWS: Note that the m32r-*-elf* is obsolete.
10129 * monitor.c (monitor_expect): Obsolete reference to m32r.
10130 * configure.tgt: Mark m32r-*-elf* as obsolete.
10131 * MAINTAINERS: Mark m32k as obsolete.
10132 * m32r-rom.c: Obsolete file.
10133 * config/m32r/m32r.mt: Obsolete file.
10134 * config/m32r/tm-m32r.h: Obsolete file.
10135 * m32r-stub.c: Obsolete file.
10136 * m32r-tdep.c: Obsolete file.
10137
10138 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10139
10140 * NEWS: Mention that the z8k-zilog-none is obsolete.
10141 * MAINTAINERS: Mark z8k as obsolete.
10142 * configure.tgt: Obsolete the z8k-*-coff* target.
10143 * config/z8k/z8k.mt: Obsolete file.
10144 * config/z8k/tm-z8k.h: Obsolete file.
10145 * z8k-tdep.c: Obsolete file.
10146
10147 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10148
10149 * NEWS: Mention that the mn10200-elf is obsolete.
10150 * configure.tgt: Obsolete mn10200-*-* target.
10151 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10152 mention that the mn10200 is obsolete.
10153 * breakpoint.h: Ditto.
10154 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10155 * config/mn10200/mn10200.mt: Obsolete file.
10156 * config/mn10200/tm-mn10200.h: Obsolete file.
10157 * mn10200-tdep.c: Obsolete file.
10158
10159 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10160
10161 * MAINTAINERS: Mark h8500 as obsolete.
10162 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10163 * findvar.c (value_from_register): Ditto.
10164 * h8500-tdep.c: Mark file as obsolete.
10165 * config/h8500/h8500.mt: Ditto.
10166 * config/h8500/tm-h8500.h: Ditto.
10167 * NEWS: Mention that h8500 is obsolete.
10168
10169 2003-02-04 David Carlton <carlton@math.stanford.edu>
10170
10171 * objfiles.c (allocate_objfile): Always set name. Add comment at
10172 start of function.
10173 * jv-lang.c (get_dynamics_objfile): Add comment.
10174
10175 2003-02-04 David Carlton <carlton@math.stanford.edu>
10176
10177 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10178 * printcmd.c (build_address_symbolic): Replace uses of
10179 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10180 SYMBOL_NAME, and asm_demangle.
10181 Update copyright.
10182
10183 2003-02-04 David Carlton <carlton@math.stanford.edu>
10184
10185 * linespec.c (decode_compound): Extract code into
10186 lookup_prefix_sym.
10187 (lookup_prefix_sym): New function.
10188
10189 2003-02-04 David Carlton <carlton@math.stanford.edu>
10190
10191 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10192 FLOAT_COERCION_BADNESS.
10193 * gdbtypes.c (rank_one_type): Replace all uses of
10194 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10195
10196 2003-02-04 Jim Blandy <jimb@redhat.com>
10197
10198 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10199 section, let dwarf_macinfo_section point to it, not
10200 dwarf_loc_section.
10201
10202 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10203
10204 Pointed out by Anton Blanchard <anton@samba.org>.
10205 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10206 (ppc_linux_at_sigtramp_return_path): Use it.
10207
10208 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10209
10210 * defs.h (streq): Add prototype.
10211 * utils.c (streq): New function.
10212
10213 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10214 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10215 * mdebugread.c (new_symbol): Likewise.
10216 * stabsread.c (define_symbol): Likewise.
10217 * coffread.c (process_coff_symbol): Likewise.
10218 * dwarfread.c (new_symbol): Likewise.
10219
10220 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10221 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10222 here.
10223 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10224 SYMBOL_INIT_DEMANGLED_NAME.
10225 * objfiles.c: Include "hashtab.h".
10226 (allocate_objfile): Call htab_set_functions_ex for the
10227 demangled_names_hash.
10228 (free_objfile): Call htab_delete for the demangled_names_hash.
10229 * objfiles.h (struct htab): Add declaration.
10230 (struct objfile): Add demangled_names_hash.
10231 * symfile.c: Include "hashtab.h".
10232 (reread_symbols): Call htab_delete for the demangled_names_hash.
10233 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10234 SYMBOL_NAME in the bcache.
10235 * symtab.c: Include "hashtab.h". Update comments.
10236 (create_demangled_names_hash, symbol_set_names): New functions.
10237 (symbol_find_demangled_name): New function, broken out from
10238 symbol_init_demangled_names.
10239 (symbol_init_demangled_names): Use it.
10240 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10241 (SYMBOL_SET_NAMES): New macro.
10242 (symbol_set_names): Add prototype.
10243
10244 2003-02-03 Jim Blandy <jimb@redhat.com>
10245
10246 Use a single, consistent representation for an empty minimal
10247 symbol table in an objfile.
10248 * objfiles.c (terminate_minimal_symbol_table): New function.
10249 (allocate_objfile): Call it.
10250 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10251 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10252 non-NULL.
10253 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10254 objfile has minimal symbols, compare minimal_symbol_count to zero,
10255 instead of comparing msymbols with NULL.
10256 * objfiles.c (have_minimal_symbols): Same.
10257 * solib-sunos.c (solib_add_common_symbols): Call
10258 terminate_minimal_symbol_table.
10259 * symfile.c (reread_symbols): Same.
10260
10261 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10262
10263 * s390-tdep.c (s390_address_class_type_flags)
10264 (s390_address_class_type_flags_to_name)
10265 (s390_address_class_name_to_type_flags): New functions.
10266 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10267 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10268
10269 2003-02-03 Michael Snyder <msnyder@redhat.com>
10270
10271 * arm-tdep.c: Fix spell-o in comment.
10272
10273 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10274
10275 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10276 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10277 error messages to contain BFD filename.
10278
10279 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10280
10281 Fix PR gdb/742 gdb/743 gdb/877
10282 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10283 (do_mixed_source_and_assembly): Use
10284 make_cleanup_ui_out_tuple_begin_end and
10285 make_cleanup_ui_out_tuple_begin_end.
10286 (do_mixed_source_and_assembly): Ditto.
10287 * thread.c (do_captured_list_thread_ids): Ditto.
10288 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10289 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10290 ui_out_tuple_end): Delete prototypes.
10291 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10292 ui_out_list_end, ui_out_tuple_end): Delete.
10293
10294 From Kevin Buettner <kevinb@redhat.com>:
10295 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10296 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10297 (do_cleanup_table_end): New functions.
10298 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10299 Use cleanups to invoke_ui_out_tuple_end().
10300 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10301 * cli/cli-setshow.c (cmd_show_list): Use
10302 make_cleanup_ui_out_tuple_begin_end.
10303
10304 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10305
10306 * frame.c (frame_unwind_register): New function.
10307 (frame_unwind_unsigned_register): Use.
10308 (frame_unwind_signed_register): Use.
10309 (frame_read_register): New function.
10310 * frame.h (frame_unwind_register): Declare.
10311 (frame_read_register): Declare.
10312
10313 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10314 and frame_unwind_register instead of read_memory, write_register
10315 and deprecated_write_register_bytes.
10316
10317 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10318
10319 * frame.h: Note that namelen can be negative.
10320 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10321 NAME's length.
10322
10323 * NEWS: Mention that the d10v's `regs' command is deprecated.
10324 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10325 (d10v_print_registers_info): New function.
10326 (show_regs): Call d10v_print_registers_info.
10327 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10328
10329 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10330
10331 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10332 lost in the previous patch.
10333
10334 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10335
10336 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10337 * stack.c (print_frame_info_base): Output complete FRAME tuple
10338 for synthesized frames.
10339
10340 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10341
10342 * mips-nat.c (zerobuf): Delete.
10343 (fetch_inferior_registers): Alloc local zerobuf.
10344 (fetch_core_registers): Alloc local zerobuf.
10345 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10346 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10347 * thread-db.c (thread_db_store_registers): Ditto.
10348 * sh-tdep.c (sh_do_register): Ditto.
10349 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10350 * remote-sim.c (gdbsim_store_register): Ditto.
10351 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10352 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10353 * monitor.c (monitor_supply_register): Ditto.
10354 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10355 * mips-nat.c (fetch_inferior_registers): Ditto.
10356 * m68klinux-nat.c (fetch_register): Ditto.
10357 * lynx-nat.c (fetch_inferior_registers): Ditto.
10358 (fetch_inferior_registers): Ditto.
10359 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10360 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10361 (hpux_thread_store_registers): Ditto.
10362 * hppah-nat.c (fetch_register): Ditto.
10363 * hppab-nat.c (fetch_register): Ditto.
10364 * hppa-tdep.c (pa_register_look_aside): Ditto.
10365 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10366 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10367
10368 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10369
10370 * gdbarch.sh: Explictly specify all method levels. When a
10371 variable with an empty level, provide a non-multi-arch default.
10372 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10373 * gdbarch.h: Re-generate.
10374 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10375 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10376
10377 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10378
10379 * defs.h (host_pointer_to_address): Delete declaration.
10380 (address_to_host_pointer): Delete declaration.
10381 * utils.c (host_pointer_to_address): Delete function.
10382 (address_to_host_pointer): Delete function.
10383 * procfs.c (procfs_address_to_host_pointer): New function.
10384 * procfs.c (proc_set_watchpoint): Use.
10385 (procfs_can_use_hw_breakpoint): Update comments.
10386 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10387 (som_solib_add): Use.
10388 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10389 * hppa-tdep.c (unwind_command): Use.
10390
10391 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10392
10393 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10394 strlen d_name.
10395
10396 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10397 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10398 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10399 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10400 (define_symbol): Update.
10401 * symfile.c (generic_load): Remove references to nindy.
10402 * symtab.c: Remove references to nindy.
10403
10404 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10405
10406 * infcmd.c (print_float_info): Delete code conditional on
10407 FLOAT_INFO.
10408 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10409 * config/m68k/nm-apollo68b.h: Ditto.
10410 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10411 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10412 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10413
10414 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10415
10416 * config/i386/tm-i386os9k.h: Removed.
10417
10418 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10419 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10420 they're identical to i[3456]86-*-sysv* now.
10421 * config/i386/i386v32.mh: Removed.
10422 * config/i386/xm-i386v32.h: Removed.
10423 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10424
10425 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10426
10427 * config/i386/i386dgux.mh: Removed.
10428 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10429
10430 * configure.in: Fix typo.
10431 * configure: Regenerated.
10432
10433 2003-01-31 David Carlton <carlton@math.stanford.edu>
10434
10435 * dwarf2read.c (dwarf2_locate_sections): Set
10436 dwarf_ranges_section.
10437
10438 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10439
10440 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10441 * utils.c: Update comments documenting legitimate uses of PTR.
10442
10443 * utils.c: Re-indent.
10444
10445 * config/djgpp/fnchange.lst: Delete nindy files.
10446 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10447 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10448 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10449 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10450 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10451 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10452 * Makefile.in (init.c): Remove nindy references.
10453 (saber_gdb): Delete rule.
10454 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10455 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10456 and a68v-nat.c.
10457 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10458 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10459 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10460 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10461 nindy-share/stop.h.
10462 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10463 * saber.suppress: Delete file.
10464
10465 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10466
10467 * dbxread.c (stabs_data): New static variable.
10468 (fill_symbuf): Support an in-memory buffer for stabs data.
10469 (stabs_seek): New function.
10470 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10471 (read_ofile_symtab): Use stabs_seek.
10472 (elfstab_build_psymtabs): Take an asection* instead of
10473 an offset and size. Relocate the stabs data if necessary.
10474 Save the section* for dbx_psymtab_to_symtab.
10475 * dwarf2read.c: Add section variables for each debug section.
10476 (dwarf2_locate_sections): Fill them in.
10477 (dwarf2_read_section): Take an asection* argument.
10478 Relocate the section contents if necessary.
10479 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10480 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10481 it to dwarf2_read_section.
10482 (dwarf2_build_frame_info): Update callers.
10483 * elfread.c (elf_symfile_read): Update call to
10484 elfstab_build_psymtabs.
10485 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10486 (DBX_STAB_SECTION): New macro.
10487 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10488 * symfile.c (symfile_dummy_outputs): New function.
10489 (symfile_relocate_debug_section): New function.
10490 * symfile.h (symfile_relocate_debug_section): Add prototype.
10491
10492 2003-01-31 Richard Henderson <rth@redhat.com>
10493
10494 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10495 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10496 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10497 * alpha-tdep.c (alpha_register_name): Add "unique".
10498 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10499 (ALPHA_UNIQUE_REGNUM): New.
10500 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10501
10502 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10503
10504 * README: Remove reference to Ericsson 1800 monitor.
10505 * Makefile.in (remote-es.o): Delete rule.
10506 (ALLDEPFILES): Delete remote-es.c.
10507 * remote-es.c: Delete file.
10508 * config/m68k/es1800.mt: Delete file.
10509 * config/djgpp/fnchange.lst: Update.
10510 * configure.tgt: Delete m68*-ericsson-* target.
10511
10512 2003-01-31 Adam Fedor <fedor@gnu.org>
10513
10514 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10515 Remove duplicate/shadowing variable of same name.
10516
10517 2003-01-30 Jim Blandy <jimb@redhat.com>
10518
10519 * symfile.c (find_separate_debug_file): Assert that the objfile's
10520 directory name we compute ends with a slash, and then assume that
10521 that's so everywhere we use it.
10522
10523 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10524
10525 * valops.c (value_assign): Flush frame cache after stores to memory
10526 also.
10527
10528 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10529
10530 * Makefile.in (mon960-rom.o): Delete rule.
10531 * mon960-rom.c: Delete file.
10532
10533 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10534
10535 * d10v-tdep.c: Include "frame-unwind.h".
10536 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10537 list.
10538 (next_addr, uses_frame): Delete.
10539 (struct d10v_unwind_cache): Define.
10540 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10541 Use info instead of next_addr and uses_frame globals.
10542 (d10v_frame_init_saved_regs): Delete function.
10543 (d10v_init_extra_frame_info): Delete function.
10544 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10545 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10546 init_frame_pc or frame_saved_pc.
10547 (d10v_pop_frame): Delete function.
10548 (do_d10v_pop_frame): Delete function.
10549 (d10v_frame_chain): Delete function.
10550 (d10v_frame_chain_valid): Delete function.
10551 (d10v_frame_pc_unwind): New function.
10552 (d10v_frame_id_unwind): New function.
10553 (saved_regs_unwinder): New function.
10554 (d10v_frame_register_unwind): New function.
10555 (d10v_frame_pop): New function.
10556 (d10v_frame_unwind): New variable.
10557 (d10v_frame_p): New function.
10558 (d10v_frame_saved_pc): Delete function.
10559 * Makefile.in (d10v-tdep.o): Update dependencies.
10560
10561 2003-01-30 J. Brobecker <brobecker@gnat.com>
10562
10563 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10564 causing some regressions due to a change in the default value
10565 for this macro.
10566
10567 2003-01-29 Richard Henderson <rth@redhat.com>
10568 Elena Zannoni <ezannoni@redhat.com>
10569 Daniel Jacobowitz <drow@mvista.com>
10570
10571 Fix PR gdb/961.
10572 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10573 variables.
10574 (RANGES_SECTION): New.
10575 (dwarf_ranges_buffer): New variable.
10576 (struct comp_unit_head): Add member "die".
10577 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10578 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10579 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10580 (dwarf2_locate_sections): Likewise.
10581 (dwarf2_build_psymtabs): Read .debug_ranges.
10582 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10583 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10584 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10585 Look for DW_AT_ranges and return the bounding box.
10586
10587 2003-01-29 Brian Ford <ford@vss.fsi.com>
10588
10589 * win32-nat.c (cygwin_pid): Removed as unused.
10590 (child_attach): Try fall back to Cygwin pid.
10591
10592 2003-01-29 Jim Blandy <jimb@redhat.com>
10593
10594 * objfiles.h (struct objfile): Doc fix.
10595
10596 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10597
10598 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10599 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10600 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10601 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10602 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10603 (FRAME_SAVED_PC): Change to a function with predicate.
10604 * gdbarch.h, gdbarch.c: Re-generate.
10605
10606 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10607
10608 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10609
10610 * complaints.c (complain): Delete function.
10611 * complaints.h (struct deprecated_complaint): Delete definition.
10612 (complain): Delete declaration.
10613
10614 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10615
10616 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10617 dummy frames.
10618
10619 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10620
10621 * sentinel-frame.h, sentinel-frame.c: New files.
10622 * Makefile.in (frame.o): Update dependencies.
10623 (SFILES): Add sentinel-frame.c.
10624 (sentinel_frame_h): Define.
10625 (COMMON_OBS): Add sentinel-frame.o.
10626 (sentinel-frame.o): Specify dependencies.
10627 * frame.c: Include "sentinel-frame.h".
10628 (frame_register_unwind): Rewrite assuming that there is always a a
10629 ->next frame.
10630 (frame_register, generic_unwind_get_saved_register): Ditto.
10631 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10632 (create_sentinel_frame, unwind_to_current_frame): New functions.
10633 (get_current_frame): Rewrite using create_sentinel_frame and
10634 unwind_to_current_frame. When possible, always create a frame.
10635 (create_new_frame): Set next to the sentinel frame.
10636 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10637 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10638 ID cache when necessary.
10639 (frame_saved_regs_id_unwind): Use frame_relative_level.
10640 (deprecated_generic_get_saved_register): Use frame_relative_level,
10641 get_frame_saved_regs, get_frame_pc, get_frame_base and
10642 get_next_frame.
10643 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10644 frame_register.
10645
10646 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10647
10648 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10649
10650 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10651
10652 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10653 (maintenance_set_profile_cmd): Use error () instead of warning ().
10654
10655 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10656
10657 * configure.in: Check that -pg works if using --enable-profiling.
10658 Check for monstartup and _mcleanup regardless of --enable-profiling.
10659 * maint.c: Check for monstartup and _mcleanup before using them.
10660 * config.in: Regenerated.
10661 * configure: Regenerated.
10662
10663 2003-01-24 Nick Clifton <nickc@redhat.com>
10664
10665 * Add sh2e support:
10666
10667 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10668
10669 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10670 (sh2e_show_regs): New.
10671 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10672 * config/sh/tm-sh.h: Added sh2e to comments.
10673
10674 2003-01-23 Jim Blandy <jimb@redhat.com>
10675
10676 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10677 symbols found)" message here; we haven't checked for a separate
10678 debug info file yet, so we don't know yet.
10679 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10680 we've looked everywhere. Also, there's no need to print a special
10681 message when we're loading the separate debug info file: the one
10682 symbol_file_add prints is fine.
10683
10684 2003-01-23 Alexander Larsson <alexl@redhat.com>
10685 Jim Blandy <jimb@redhat.com>
10686
10687 Add support for executables whose debug info has been separated
10688 out into a separate file, leaving only a link behind.
10689 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10690 and separate_debug_objfile_backlink.
10691 (put_objfile_before): New declaration.
10692 * symfile.c: #include "filenames.h".
10693 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10694 debug info in a separate file, read that, too. Save the addrs
10695 argument, so we can use it again to read the separated debug info;
10696 syms_from_objfile modifies the table we pass it.
10697 (reread_symbols): After re-reading an objfile, call
10698 reread_separate_symbols to refresh its separate debug info
10699 objfile, if it has one.
10700 (reread_separate_symbols, find_separate_debug_file,
10701 get_debug_link_info, separate_debug_file_exists): New functions.
10702 (debug_file_directory): New global var.
10703 (_initialize_symfile): Initialize debug_file_directory, and
10704 provide the new `set debug-file-directory' command to let the user
10705 change it.
10706 * objfiles.c (free_objfile): If this objfile has its debug info in
10707 a separate objfile, free that one too. If this is itself a
10708 separate debug info objfile, clear our parent's backlink.
10709 (put_objfile_before): New function.
10710 * utils.c (gnu_debuglink_crc32): New function.
10711 * defs.h (gnu_debuglink_crc32): New declaration.
10712 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10713 * configure.in: Handle --with-separate-debug-dir config option.
10714 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10715 * acconfig.h (DEBUGDIR): New macro.
10716 * configure, aclocal.m4, config.in: Regenerated.
10717
10718 2003-01-22 Jim Blandy <jimb@redhat.com>
10719
10720 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10721 like the old symbol_file_add, but taking new arguments: you can
10722 now pass in either a `struct section_addr_info' list to say where
10723 each section is loaded, or a `struct section_offsets' table. Pass
10724 these new arguments through to syms_from_objfile as appropriate.
10725 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10726 with the appropriate quiescent values for the new arguments.
10727
10728 * symfile.c: #include "gdb_assert.h".
10729 (syms_from_objfile): Add the ability to pass in a section offset
10730 table directly, as an alternative to the section_addr_info table.
10731 Document arguments better.
10732 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10733 * symfile.h (syms_from_objfile): Update declaration.
10734 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10735 syms_from_objfile.
10736 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10737
10738 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10739
10740 Original patch by Tom Tromey <tromey@cygnus.com> and
10741 Jason Molenda <jmolenda@apple.com>.
10742 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10743 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10744 * NEWS: Mention profiling.
10745 * configure.in (--enable-gdbtk): Fix typo.
10746 (--enable-profiling): New. Set PROFILE_CFLAGS.
10747 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10748 Fill in function.
10749 (profiling_state): New variable.
10750 (mcleanup_wrapper): New function.
10751 (_initialize_maint): Remove NOTYET, fix call to
10752 add_setshow_boolean_cmd for "maint set profile".
10753 * configure: Regenerated.
10754
10755 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10756
10757 * Makefile.in (install-gdbtk): Install PNG images too.
10758
10759 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10760
10761 * exec.c (text_start): Delete global variable.
10762 (exec_file_attach): Make text_start local to the function.
10763 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10764 * valops.c (hand_function_call): Delete code that handles
10765 BEFORE_TEXT_END and AFTER_TEXT_END.
10766 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10767 of CALL_DUMMY_LOCATION.
10768 * gdbarch.c: Regenerate.
10769 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10770 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10771 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10772 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10773 (text_end): Delete extern declaration.
10774
10775 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10776
10777 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10778 * blockframe.c (backtrace_below_main): Move to "frame.c".
10779 (frame_chain_valid): Delete check for backtrace_below_main.
10780 (_initialize_blockframe): Delete initialization, move ``set
10781 backtrace-below-main'' command to "frame.c".
10782 (do_flush_frames_sfunc): Delete function.
10783 * frame.c: Include "command.h" and "gdbcmd.h".
10784 (frame_type_from_pc): New function.
10785 (create_new_frame): Use frame_type_from_pc.
10786 (legacy_get_prev_frame): New function.
10787 (get_prev_frame): Rewrite. When an old style frame, call
10788 legacy_get_prev_frame. Otherwize, unwind the PC first.
10789 (_initialize_frame): Add ``set backtrace-below-main'' command.
10790 * Makefile.in (frame.o): Update dependencies.
10791
10792 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10793
10794 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10795 DEPRECATED_REGISTERS_INFO.
10796
10797 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10798
10799 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10800 Maintainers'. Update `Various Maintainers'.
10801
10802 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10803
10804 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10805 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10806 Suppress actual parameters when `-'.
10807 * gdbarch.h, gdbarch.c: Regenerate.
10808
10809 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10810
10811 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10812 code handling dummy frames.
10813
10814 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10815
10816 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10817 (struct frame_unwind): Add field pop.
10818 * frame.h (frame_pop): Declare.
10819 * frame.c (frame_saved_regs_pop): New function.
10820 (trad_frame_unwinder): Add frame_saved_regs_pop.
10821 (frame_pop): New function.
10822 * dummy-frame.c (dummy_frame_pop): New function.
10823 (discard_innermost_dummy): New function.
10824 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10825 (dummy_frame_unwind): Add dummy_frame_pop.
10826 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10827 * valops.c (hand_function_call): Ditto.
10828 * stack.c (return_command): Ditto.
10829
10830 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10831
10832 * cris-tdep.c: Fix function declaration indentation.
10833 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10834 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10835 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10836 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10837 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10838 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10839
10840 2003-01-18 Michael Chastain <mec@shout.net>
10841
10842 * README (Unpacking and Installation -- quick overview):
10843 Warn against ".../gdb-5.3/gdb/configure".
10844
10845 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10846
10847 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10848 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10849 (struct frame_unwind): Declare opaque.
10850 (dummy_frame_p): Declare function.
10851 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10852 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10853 * dummy-frame.c: Include "frame-unwind.h".
10854 (dummy_frame_p): New function.
10855 (dummy_frame_unwind): New variable.
10856 * frame.c: Include "frame-unwind.h".
10857 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10858 to use the new unwind field.
10859 (set_unwind_by_pc): Delete function.
10860 (create_new_frame, get_prev_frame): Set unwind field using
10861 frame_unwind_find_by_pc.
10862 (trad_frame_unwind, trad_frame_unwinder): New variables.
10863 * frame.h (trad_frame_unwind): Declare variable.
10864 (frame_id_unwind_ftype): Delete declaration.
10865 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10866 (struct frame_unwind): Declare opaque.
10867 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10868 register_unwind with a single unwind pointer.
10869 * frame-unwind.h, frame-unwind.c: New files.
10870 * Makefile.in (SFILES): Add frame-unwind.c.
10871 (frame_unwind_h): Define.
10872 (COMMON_OBS): Add frame-unwind.o.
10873 (frame-unwind.o): Specify dependencies.
10874 (frame.o, dummy-frame.o): Update dependencies.
10875
10876 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10877
10878 * ada-valprint.c: Eliminate PTR.
10879 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10880 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10881 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10882 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10883 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10884 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10885 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10886
10887 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10888
10889 * main.c (captured_main): Don't use PTR.
10890 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10891 * gdbtypes.c (lookup_primitive_typename): Ditto.
10892 (lookup_struct_elt_type): Ditto.
10893 * f-valprint.c (info_common_command): Ditto.
10894 (list_all_visible_commons): Ditto.
10895 * jv-typeprint.c (java_type_print_base): Ditto.
10896
10897 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10898 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10899 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10900 i386-interix-nat.c and i386-interix-tdep.c. Rename
10901 m68klinux-nat.c and m68klinux-tdep.c. Rename
10902 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10903 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10904 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10905 * main.c (captured_main): Use xfree, not free.
10906
10907 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10908
10909 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10910 ID back using a parameter.
10911 * frame.c (frame_id_unwind): Update call.
10912 (frame_saved_regs_id_unwind): Update.
10913 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10914 * dummy-frame.h (struct frame_id): Add opaque declaration.
10915 (dummy_frame_id_unwind): Update declaration.
10916
10917 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10918
10919 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10920
10921 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10922
10923 * MAINTAINERS (Stephen P. Smith): Updated email address.
10924
10925 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10926
10927 Fix PR gdb/898
10928 * breakpoint.c (until_break_command): Add new argument. Use it to
10929 decide whether to stop only at the current frame or not.
10930 * breakpoint.h (until_break_command): Update prototype.
10931 * infcmd.c (until_command): Add new argument to until_break_command
10932 call.
10933 (advance_command): New function.
10934 (_initialize_infcmd): Update help string for 'until' command.
10935 Add new 'advance' command.
10936
10937 2003-01-14 David Carlton <carlton@math.stanford.edu>
10938
10939 * linespec.c (decode_line_1): Normalize comments.
10940 (set_flags): Ditto.
10941 (locate_first_half): Ditto.
10942 (decode_compound): Ditto.
10943 (symtab_from_filename): Ditto.
10944 (decode_all_digits): Ditto.
10945 (decode_dollar): Ditto.
10946 (find_methods): Ditto.
10947 (find_toplevel_char): Ditto.
10948
10949 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10950
10951 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10952 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10953 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10954 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10955 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10956 * language.c, language.h, m32r-tdep.c: Update copyright.
10957 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10958 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10959 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10960 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10961 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10962 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10963
10964 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10965
10966 * stabsread.h (process_later, resolve_cfront_continuation):
10967 Obsolete.
10968 Update copyright years.
10969 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10970 Update copyright year.
10971 * dbxread.c(struct cont_elem): Obsolete.
10972 (process_later, process_now): Obsolete functions.
10973 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10974 Update copyright year.
10975 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10976 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10977 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10978 (parse_partial_symbols): Obsolete cfront support.
10979 * stabsread.c
10980 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10981 macros.
10982 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10983 read_cfront_baseclasses, read_cfront_member_functions,
10984 resolve_cfront_continuation,read_cfront_static_fields,
10985 copy_cfront_struct_fields): Obsolete functions.
10986 (define_symbol, read_one_struct_field): Obsolete cfront support.
10987 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10988 Update Copyright year.
10989
10990 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10991
10992 * stack.c (print_frame_info, print_stack_frame_base_stub,
10993 print_stack_frame_base, show_and_print_stack_frame_stub,
10994 show_and_print_stack_frame, print_only_stack_frame_stub,
10995 print_only_stack_frame): Delete functions.
10996 (print_stack_frame_stub): Call print_frame_info instead of
10997 print_frame_info_base.
10998 (print_frame_info_base): Rename to print_frame_info.
10999 (backtrace_command_1): Call print_frame_info, instead of
11000 print_frame_info_base.
11001 (current_frame_command): Call print_stack_frame, instead of
11002 print_only_stack_frame.
11003 (frame_command): Call print_stack_frame, instead of
11004 show_and_print_stack_frame.
11005 (up_command): Ditto.
11006 (down_command): Ditto.
11007 * frame.h (print_only_stack_frame): Delete prototype.
11008 * infrun.c (normal_stop): Call print_stack_frame, instead of
11009 show_and_print_stack_frame.
11010 * thread.c (info_threads_command): Call print_stack_frame, instead
11011 of print_only_stack_frame.
11012
11013 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11014
11015 * README (Graphical interface to GDB): Update URL. Point at
11016 gdb/links/.
11017
11018 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11019 version match.
11020
11021 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11022
11023 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11024 lines.
11025
11026 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11027
11028 * thread-db.c (attach_thread): Prototype.
11029 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11030 thread information (ti), and valid flags (th_valid, ti_valid).
11031 (attach_thread): Move target_pid_to_str call to after the thread
11032 is added to GDB's list. Initialize the cache.
11033 (thread_get_info_callback, thread_db_map_id2thr)
11034 (thread_db_get_info): New functions.
11035 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11036 (thread_db_store_registers, thread_db_thread_alive)
11037 (thread_db_get_thread_local_address): Use them.
11038 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11039 of calling error() for threads in unknown state.
11040
11041 (clear_lwpid_callback): New function.
11042 (thread_db_resume): Use it to clear the cache.
11043
11044 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11045
11046 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11047 (resume_callback): Remove dead code.
11048
11049 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11050
11051 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11052 predicate.
11053 * gdbarch.h, gdbarch.c: Regenerate.
11054 * stack.c (frame_info): Only initialize the saved registers when
11055 FRAME_INIT_SAVED_REGS_P.
11056 * frame.c (frame_saved_regs_register_unwind): Assert
11057 FRAME_INIT_SAVED_REGS_P.
11058 (deprecated_generic_get_saved_register): Ditto.
11059
11060 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11061
11062 * source.c (openp): Squelch warning about "filename".
11063
11064 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11065
11066 * source.c (openp): If the file does not exist don't necessarily
11067 search the path.
11068
11069 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11070
11071 Fix PR gdb/872.
11072 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11073 (integer_types_same_name_p): New function.
11074 (rank_one_type): Use it.
11075 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11076
11077 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11078
11079 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11080 variables.
11081 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11082 * configure.in: Add --with-sysroot.
11083 * configure: Regenerated.
11084 * main.c (gdb_sysroot): New variable.
11085 (captured_main): Initialize gdb_sysroot.
11086 * defs.h (gdb_sysroot): New extern declaration.
11087 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11088
11089 2003-01-12 Michael Chastain <mec@shout.net>
11090
11091 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11092
11093 2003-01-12 Michael Chastain <mec@shout.net>
11094
11095 * top.c (print_gdb_version): Bump copyright year to 2003.
11096
11097 2003-01-12 David Carlton <carlton@bactrian.org>
11098
11099 * linespec.c (symtab_from_filename): Rename variable 's' to
11100 'file_symtab'.
11101
11102 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11103
11104 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11105 dummy frame.
11106 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11107
11108 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11109
11110 * d10v-tdep.c: Include "gdb_assert.h".
11111 (d10v_store_return_value): Rewrite to match current interface.
11112 (d10v_extract_struct_value_address): Ditto.
11113 (d10v_extract_return_value): Ditto.
11114 (d10v_gdbarch_init): Set store_restore_value,
11115 extract_struct_value_address and extract_return_value.
11116
11117 2003-01-12 J. Brobecker <brobecker@gnat.com>
11118
11119 * hpread.c (set_namestring): New procedure replacing the
11120 SET_NAMESTRING macro.
11121 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11122 by calls to set_namestring.
11123
11124 2003-01-11 J. Brobecker <brobecker@gnat.com>
11125
11126 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11127 a compilation warning.
11128 (hpread_process_one_debug_symbol): Likewise.
11129
11130 2003-01-10 David Carlton <carlton@math.stanford.edu>
11131
11132 * linespec.c (decode_line_1): Rename variable 's' to
11133 'file_symtab'.
11134 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11135 (decode_dollar): Ditto.
11136 (decode_variable): Ditto.
11137 (symbol_found): Ditto.
11138
11139 2003-01-09 Michael Chastain <mec@shout.net>
11140
11141 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11142
11143 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11144
11145 * win32-nat.c (set_process_privilege): New function.
11146 (child_attach): Call set_process_privilege() to enable the
11147 SE_DEBUG_NAME user privilege if available in process token.
11148
11149 2003-01-10 J. Brobecker <brobecker@gnat.com>
11150
11151 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11152 compilation error in the previous revision.
11153
11154 2003-01-09 David Carlton <carlton@math.stanford.edu>
11155
11156 * linespec.c: Update copyright.
11157
11158 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11159
11160 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11161 than inferior_ptid.
11162 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11163
11164 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11165
11166 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11167 Update comments.
11168 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11169 (frame_saved_regs_zalloc): Update.
11170 (frame_saved_regs_register_unwind): Update.
11171 (create_new_frame): Update.
11172 (get_prev_frame): Update.
11173 (frame_extra_info_zalloc): Update.
11174 (deprecated_get_frame_saved_regs): Update.
11175 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11176 * cris-tdep.c: Update comment.
11177
11178 * somsolib.h: Fix function indentation.
11179 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11180 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11181 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11182 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11183 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11184
11185 * infrun.c (follow_fork): Use ISO C definition.
11186 * expprint.c (print_subexp): Use xfree instead of free.
11187 * charset.c: Include "gdb_string.h" instead of <string.h>.
11188 (register_iconv_charsets): Use ISO C definition.
11189 (host_charset, target_charset): Ditto.
11190 * Makefile.in (charset.o): Update dependencies.
11191 (mi-cmd-env.o): Update dependencies.
11192
11193 2003-01-08 Andrew Cagney <cagney@redhat.com>
11194
11195 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11196 get_frame_base.
11197
11198 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11199
11200 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11201 build directories. Save edited gdb output in Mbuild.log. If a
11202 build fails, remove any final GDB executable.
11203
11204 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11205
11206 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11207 replacing hex constants with function names and stripping leading
11208 file name directory prefixes.
11209
11210 2003-01-08 Andrew Cagney <cagney@redhat.com>
11211
11212 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11213 get_frame_base.
11214
11215 2003-01-08 David Carlton <carlton@math.stanford.edu>
11216
11217 * linespec.c (decode_line_1): Move code into decode_variable.
11218 (decode_variable): New function.
11219
11220 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11221
11222 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11223
11224 2003-01-08 Andrew Cagney <cagney@redhat.com>
11225
11226 * cris-tdep.c (cris_frame_init_saved_regs): Use
11227 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11228 saved_regs buffer.
11229 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11230 (sh64_nofp_frame_init_saved_regs): Ditto.
11231 (sh_fp_frame_init_saved_regs): Ditto.
11232 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11233 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11234 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11235 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11236
11237 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11238
11239 * minsyms.c (lookup_minimal_symbol): Update comment.
11240 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11241 (lookup_minimal_symbol_solib_trampoline): Likewise.
11242
11243 2003-01-08 Andrew Cagney <cagney@redhat.com>
11244
11245 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11246 frame_relative_level.
11247
11248 * alpha-tdep.c: Use get_frame_extra_info.
11249 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11250 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11251 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11252 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11253
11254 * alpha-tdep.c: Use get_next_frame.
11255 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11256 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11257 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11258 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11259 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11260 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11261 * xstormy16-tdep.c: Ditto.
11262
11263 2003-01-07 Andrew Cagney <cagney@redhat.com>
11264
11265 * alpha-tdep.c: Use get_frame_base.
11266 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11267 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11268 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11269 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11270 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11271 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11272 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11273 * config/sparc/tm-sparc.h: Ditto.
11274
11275 2003-01-07 Andrew Cagney <cagney@redhat.com>
11276
11277 * frame.c (deprecated_get_frame_context): New function.
11278 (deprecated_set_frame_context): New function.
11279 * frame.h (deprecated_get_frame_context): Declare.
11280 (deprecated_set_frame_context): Declare.
11281 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11282 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11283
11284 2003-01-07 Andrew Cagney <cagney@redhat.com>
11285
11286 * frame.c (deprecated_set_frame_next_hack): New function.
11287 (deprecated_set_frame_prev_hack): New function.
11288 * frame.h (deprecated_set_frame_next_hack): Declare.
11289 (deprecated_set_frame_prev_hack): Declare.
11290 * mcore-tdep.c (analyze_dummy_frame): Use
11291 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11292 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11293
11294 2003-01-07 David Carlton <carlton@math.stanford.edu>
11295
11296 * linespec.c (decode_line_1): Move code into decode_dollar.
11297 (decode_dollar): New function.
11298
11299 2003-01-07 Andrew Cagney <cagney@redhat.com>
11300
11301 * arm-tdep.c (arm_init_extra_frame_info): Use
11302 deprecated_update_frame_base_hack.
11303 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11304 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11305 (fix_frame_pointer): Ditto.
11306 (mn10300_analyze_prologue): Ditto.
11307
11308 2003-01-07 Andrew Cagney <cagney@redhat.com>
11309
11310 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11311 extra_info using frame_extra_info_zalloc.
11312 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11313 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11314 (sh64_init_extra_frame_info): Ditto.
11315 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11316 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11317 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11318 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11319 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11320 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11321 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11322 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11323 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11324 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11325 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11326 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11327
11328 * mn10300-tdep.c (analyze_dummy_frame): Use
11329 deprecated_set_frame_extra_info_hack.
11330 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11331
11332 2003-01-07 J. Brobecker <brobecker@gnat.com>
11333
11334 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11335 class is not scText. These do not define "real" procedures.
11336 (parse_partial_symbols): Likewise.
11337
11338 2003-01-06 Michael Snyder <msnyder@redhat.com>
11339
11340 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11341
11342 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11343
11344 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11345 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11346 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11347 deprecated_frame_xmalloc_with_cleanup.
11348 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11349 deprecated_frame_xmalloc.
11350 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11351 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11352
11353 2003-01-06 Andrew Cagney <cagney@redhat.com>
11354
11355 * x86-64-linux-tdep.c: Include "osabi.h".
11356 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11357
11358 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11359
11360 2003-01-06 Andrew Cagney <cagney@redhat.com>
11361
11362 * MAINTAINERS (Target Instruction Set Architectures): Update
11363 arm-elf. Can be built with -Werror, has been multiarched.
11364
11365 * value.h (unpack_long): Make buffer parameter constant.
11366 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11367 * scm-lang.h (scm_parse): Ditto.
11368 * defs.h (extract_typed_address, extract_address): Ditto.
11369 (extract_long_unsigned_integer): Ditto.
11370 * inferior.h (unsigned_pointer_to_address): Ditto.
11371 (signed_pointer_to_address): Ditto.
11372 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11373 * gdbarch.h, gdbarch.c: Regenerate.
11374 * findvar.c (extract_long_unsigned_integer): Update.
11375 (extract_address): Update.
11376 (extract_typed_address): Update.
11377 (unsigned_pointer_to_address): Update.
11378 * values.c (unpack_long): Update.
11379 (unpack_double): Update.
11380 (unpack_pointer): Update.
11381 (unpack_field_as_long): Update.
11382 * d10v-tdep.c (d10v_pointer_to_address): Update.
11383 * avr-tdep.c (avr_pointer_to_address): Update.
11384 * scm-lang.c (scm_unpack): Update.
11385 * findvar.c (signed_pointer_to_address): Update.
11386
11387 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11388
11389 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11390 since it is in i386-tdep.c.
11391
11392 2003-01-06 J. Brobecker <brobecker@gnat.com>
11393
11394 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11395 failure introduced in the previous change.
11396
11397 2003-01-05 Michael Chastain <mec@shout.net>
11398
11399 * README: Remove references to deleted remote-*.c files:
11400 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11401 remote-nrom.c, remote-os9k.c, remote-udi.c.
11402
11403 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11404
11405 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11406 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11407 i386_get_longjmp_target.
11408
11409 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11410
11411 * arm-tdep.c (prologue_cache): Change to a pointer.
11412 (_initialize_arm_tdep): Allocate prologue_cache.
11413 (check_prologue_cache): Update.
11414 (save_prologue_cache): Update.
11415 (arm_gdbarch_init): Update.
11416
11417 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11418
11419 * stabsread.c (update_method_name_from_physname): Call complaint()
11420 instead of error.
11421
11422 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11423
11424 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11425 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11426 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11427
11428 * blockframe.c: Include "gdbcmd.h" and "command.h".
11429 (backtrace_below_main): New variable.
11430 (file_frame_chain_valid, func_frame_chain_valid)
11431 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11432 (generic_func_frame_chain_valid): Remove functions.
11433 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11434 (_initialize_blockframe): New function.
11435 * Makefile.in (blockframe.o): Update dependencies.
11436 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11437 comment. Call frame_chain_valid ().
11438 * frame.h: Remove old prototypes. Add prototype for
11439 frame_chain_valid and update comments to match.
11440 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11441 Remove old comment.
11442 * gdbarch.h: Regenerated.
11443 * gdbarch.c: Regenerated.
11444
11445 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11446 set_gdbarch_frame_chain_valid.
11447 * avr-tdep.c (avr_gdbarch_init): Likewise.
11448 * cris-tdep.c (cris_gdbarch_init): Likewise.
11449 * frv-tdep.c (frv_gdbarch_init): Likewise.
11450 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11451 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11452 (i386_nw_init_abi): Likewise.
11453 (i386_gdbarch_init): Likewise.
11454 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11456 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11457 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11458 * mips-tdep.c (mips_gdbarch_init): Likewise.
11459 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11460 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11461 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11462 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11463 * s390-tdep.c (s390_gdbarch_init): Likewise.
11464 * sh-tdep.c (sh_gdbarch_init): Likewise.
11465 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11466 * v850-tdep.c (v850_gdbarch_init): Likewise.
11467 * vax-tdep.c (vax_gdbarch_init): Likewise.
11468 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11469
11470 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11471 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11472 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11473 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11474 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11475 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11476 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11477 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11478
11479 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11480
11481 * Makefile.in (acconfig_h): Remove incorrect macro.
11482 (config_h): Define.
11483 (osabi.o): Update dependencies.
11484 * configure.tgt: Set gdb_osabi based on target triplet.
11485 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11486 * configure: Regenerated.
11487 * config.in: Regenerated.
11488 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11489 (GDB_OSABI_DEFAULT): Define if not already defined.
11490 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11491 (set_osabi_string): New variables.
11492 (gdbarch_register_osabi): Add new OS ABI to
11493 gdb_osabi_available_names.
11494 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11495 (set_osabi, show_osabi): New functions.
11496 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11497
11498 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11499
11500 * arch-utils.c (gdbarch_info_init): Set osabi to
11501 GDB_OSABI_UNINITIALIZED.
11502 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11503 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11504 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11505 * gdbarch.c: Regenerated.
11506 * gdbarch.h: Regenerated.
11507 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11508 there's no BFD.
11509 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11510 * osabi.h (enum gdb_osabi): Move to defs.h.
11511 (gdbarch_init_osabi): Update prototype.
11512 * defs.h (enum gdb_osabi): Moved here.
11513 * Makefile.in: Update dependencies.
11514
11515 * alpha-tdep.h: Don't include "osabi.h".
11516 (struct gdbarch_tdep): Remove osabi member.
11517 * alpha-tdep.c: Include "osabi.h".
11518 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11519 iterate over arches. Update call to gdbarch_init_osabi.
11520 (alpha_dump_tdep): Don't dump osabi.
11521 * alpha-linux-tdep.c: Include "osabi.h".
11522 * alpha-osf1-tdep.c: Include "osabi.h".
11523 * alphafbsd-tdep.c: Include "osabi.h".
11524 * alphanbsd-tdep.c: Include "osabi.h".
11525
11526 * arm-tdep.h: Don't include "osabi.h".
11527 (struct gdbarch_tdep): Remove osabi member.
11528 * arm-tdep.c: Include "osabi.h".
11529 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11530 iterate over arches. Update call to gdbarch_init_osabi.
11531 (arm_dump_tdep): Don't dump osabi.
11532 * arm-linux-tdep.c: Include "osabi.h".
11533 * armnbsd-tdep.c: Include "osabi.h".
11534
11535 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11536 Update call to gdbarch_init_osabi.
11537
11538 * i386-tdep.h: Don't include "osabi.h".
11539 (struct gdbarch_tdep): Remove osabi member.
11540 * i386-tdep.c: Include "osabi.h".
11541 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11542 iterate over arches. Update call to gdbarch_init_osabi.
11543 (i386_dump_tdep): Don't dump osabi.
11544 * i386-linux-tdep.c: Include "osabi.h".
11545 * i386-sol2-tdep.c: Include "osabi.h".
11546 * i386bsd-tdep.c: Include "osabi.h".
11547 * i386gnu-tdep.c: Include "osabi.h".
11548 * i386ly-tdep.c: Include "osabi.h".
11549 * i386nbsd-tdep.c: Include "osabi.h".
11550 * i386obsd-tdep.c: Include "osabi.h".
11551
11552 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11553 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11554 check osabi when iterating over arches. Update call to
11555 gdbarch_init_osabi.
11556 (mips_dump_tdep): Don't dump osabi.
11557
11558 * ns32k-tdep.h: Don't include "osabi.h".
11559 (struct gdbarch_tdep): Remove.
11560 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11561 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11562 allocate tdep. Update call to gdbarch_init_osabi.
11563 (ns32k_dump_tdep): Remove.
11564 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11565 * ns32knbsd-tdep.c: Include "osabi.h".
11566
11567 * ppc-tdep.h: Don't include "osabi.h".
11568 (struct gdbarch_tdep): Remove osabi member.
11569 * rs6000-tdep.c: Include "osabi.h".
11570 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11571 osabi when iterating over arches. Update call to
11572 gdbarch_init_osabi.
11573 (rs6000_dump_tdep): Don't dump osabi.
11574 * ppc-linux-tdep.c: Include "osabi.h".
11575 * ppcnbsd-tdep.c: Include "osabi.h".
11576
11577 * sh-tdep.h: Don't include "osabi.h".
11578 (struct gdbarch_tdep): Remove osabi member.
11579 * sh-tdep.c: Include "osabi.h".
11580 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11581 iterate over arches. Update call to gdbarch_init_osabi.
11582 (sh_dump_tdep): Don't dump osabi.
11583 * shnbsd-tdep.c: Include "osabi.h".
11584
11585 * sparc-tdep.c: Include "osabi.h".
11586 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11587 iterate over arches. Update call to gdbarch_init_osabi.
11588 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11589 tdep structure.
11590
11591 * vax-tdep.h: Don't include "osabi.h".
11592 (struct gdbarch_tdep): Remove.
11593 * vax-tdep.c: Include "osabi.h".
11594 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11595 iterate over arches. Don't allocate tdep. Update call
11596 to gdbarch_init_osabi.
11597 (vax_dump_tdep): Remove.
11598 (_initialize_vax_tdep): Update call to gdbarch_register.
11599
11600 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11601
11602 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11603 entirely.
11604 (breakpoint_re_set_one): Don't fetch the value for a disabled
11605 watchpoint.
11606
11607 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11608
11609 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11610 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11611 (COERCE_FLOAT_TO_DOUBLE): Remove.
11612 * gdbarch.c: Regenerate.
11613 * gdbarch.h: Regenerate.
11614 * Makefile.in: Remove value_h from gdbarch_h.
11615 * valops.c (coerce_float_to_double): New variable.
11616 (default_coerce_float_to_double): Remove.
11617 (standard_coerce_float_to_double): Remove.
11618 (value_arg_coerce): Use coerce_float_to_double.
11619 (_initialize_valops): Add "set coerce-float-to-double".
11620 * value.h (default_coerce_float_to_double): Remove prototype.
11621 (standard_coerce_float_to_double): Remove prototype.
11622
11623 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11624 prototyped.
11625 * mdebugread.c (parse_symbol): Likewise.
11626 * stabsread.c (define_symbol): Mark all functions as prototyped.
11627
11628 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11629 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11630 set_gdbarch_coerce_float_to_double.
11631 * arm-tdep.c (arm_gdbarch_init): Likewise.
11632 * frv-tdep.c (frv_gdbarch_init): Likewise.
11633 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11634 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11635 * mips-tdep.c (mips_gdbarch_init): Likewise.
11636 (mips_coerce_float_to_double): Remove.
11637 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11638 (rs6000_coerce_float_to_double): Remove.
11639 * s390-tdep.c (s390_gdbarch_init): Likewise.
11640 * sh-tdep.c (sh_gdbarch_init): Likewise.
11641 (sh_coerce_float_to_double): Remove.
11642 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11643 (sparc_coerce_float_to_double): Remove.
11644 * v850-tdep.c (v850_gdbarch_init): Likewise.
11645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11646 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11647 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11648 (hppa_coerce_float_to_double): Remove prototype.
11649 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11650
11651 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11652
11653 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11654
11655 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11656
11657 Suggested by Stewart Brown <sb24@avaya.com>:
11658 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11659 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11660 (c_type_print_varspec_suffix): Likewise.
11661
11662 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11663
11664 * configure.in: Don't set and AC_SUBST SUBDIRS.
11665 * configure: Regenerated.
11666
11667 * configure.in: Remove code dealing with shared libraries.
11668 * Makefile.in: Remove HLDFLAGS and HLDENV.
11669 * configure: Regenerated.
11670
11671 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11672
11673 * frame.c (deprecated_frame_xmalloc): New function.
11674 (deprecated_set_frame_saved_regs_hack): New function.
11675 (deprecated_set_frame_extra_info_hack): New function.
11676 * frame.h (deprecated_frame_xmalloc): Declare.
11677 (deprecated_set_frame_saved_regs_hack): Declare.
11678 (deprecated_set_frame_extra_info_hack): Declare.
11679
11680 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11681
11682 * configure.in: Move code that provides the --enable-gdbtk option
11683 right after the code that handles the --enable-tui option, and
11684 polish it somewhat.
11685 * configure: Regenerated.
11686
11687 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11688 AC_CHECK_FUNCS and remove the old check for pread64.
11689 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11690 * acconfig.h (_GNU_SOURCE): Add.
11691 (HAVE_PREAD64): Remove.
11692 * configure, aclocal.m4, config.in: Regenerated.
11693
11694 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11695
11696 * alpha-tdep.c: Use get_frame_saved_regs.
11697 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11698 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11699 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11700 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11701 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11702
11703 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11704
11705 * configure.in: Remove all use of the SUBDIRS variable; add
11706 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11707 code providing the --enable-multi-ice option, and move it right in
11708 front of the code that checks whether gdbserver is supported.
11709 Polish that too.
11710 * configure: Regenerated.
11711 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11712 @SUBDIRS@.
11713
11714 2003-01-03 Andrew Cagney <cagney@redhat.com>
11715
11716 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11717 * avr-tdep.c, cris-tdep.c: Ditto.
11718 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11719 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11720
11721 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11722
11723 * configure.in: Remove --enable-netrom option.
11724 * configure: Regenerated.
11725
11726 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11727
11728 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11729 declaration for `struct re_pattern_buffer' instead.
11730 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11731
11732 2003-01-03 J. Brobecker <brobecker@gnat.com>
11733
11734 * mdebugread.c (parse_symbol): Count until the stEnd matching
11735 the structure name.
11736
11737 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11738
11739 * configure.in: Remove --with-cpu option.
11740 subscripts. Remove evil changequotes here.
11741 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11742 * config.in, configure: Regenerated.
11743
11744 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11745 * configure.in: Cleanup section that sources GDB and BFD configure
11746 subscripts. Remove evil changequotes here.
11747 * config.in, configure: Regenerated.
11748
11749 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11750
11751 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11752 frame accessor methods.
11753 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11754 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11755 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11756 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11757 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11758 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11759 * z8k-tdep.c: Ditto.
11760
11761 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11762
11763 * configure.in: Remove UI_OUT configuration code.
11764 * ada-lang.c: Update assuming UI_OUT is always true.
11765 * Makefile.in (UIOUT_CFLAGS): Remove.
11766 * configure: Regenerated.
11767 * TODO: Remove blurb about elimination of -DUI_OUT.
11768
11769 * configure.in: Move code that provides the --enable-gdbcli,
11770 --enable-gdbmi options right before the code that handles the
11771 --enable-tui option. Polish a bit.
11772 * configure: Regenerated.
11773
11774 * configure.in: Rewrite check for GNU regex and the
11775 --without-included regex option, and move it into the "Checks for
11776 library functions" section. This makes us use the system regex
11777 again by default on systems with version 2 of the GNU C library.
11778 This was apparently broken.
11779 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11780 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11781 * config.in, configure: Regenerated.
11782
11783 * configure.in: Move code that provides the --enable-tui option
11784 before the "Checks for libraries" section. Polish the code
11785 somewhat and set need_curses to yes if we build the TUI. Rewrite
11786 code that looks for a library providing termcap functionality to
11787 match more closely what's done in the Readline library, and move
11788 it into to the "Checks for libraries" section.
11789 * configure: Regenerated.
11790 * Makefile.in (TERMCAP): Remove variable.
11791 * config/i386/go32.mh (TERMCAP): Remove variable.
11792
11793 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11794
11795 * MAINTAINERS: Mention gdb_mbuild.sh.
11796 * gdb_mbuild.sh: Rewrite.
11797
11798 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11799
11800 * configure.in: Fix typo in last change.
11801 * config.in, configure: Regenerated.
11802
11803 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11804
11805 * valarith.c (value_binop): Delete obsolete code and comments.
11806 * configure.host: Ditto.
11807 * buildsym.h (make_blockvector): Ditto.
11808 * buildsym.c (make_blockvector): Ditto.
11809 * defs.h (enum language): Ditto.
11810 (chill_demangle): Ditto.
11811 * elfread.c (elf_symtab_read): Ditto.
11812 * dwarfread.c (CHILL_PRODUCER): Ditto.
11813 (set_cu_language): Ditto.
11814 (handle_producer): Ditto.
11815 * expprint.c (print_subexp): Ditto.
11816 * gdbtypes.c (chill_varying_type): Ditto.
11817 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11818 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11819 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11820 (chill_varying_type): Ditto.
11821 * language.h (_LANG_chill): Ditto.
11822 * language.c (binop_result_type, integral_type): Ditto.
11823 (character_type, string_type, structured_type): Ditto.
11824 (lang_bool_type, binop_type_check): Ditto.
11825 * stabsread.h (os9k_stabs): Ditto.
11826 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11827 (define_symbol, read_type, read_struct_fields): Ditto.
11828 (read_array_type, read_enum_type, read_huge_number): Ditto.
11829 (read_range_type, start_stabs): Ditto.
11830 * symfile.c (init_filename_language_table): Ditto.
11831 (add_psymbol_with_dem_name_to_list): Ditto.
11832 * symtab.c (symbol_init_language_specific): Ditto.
11833 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11834 * symtab.h (struct general_symbol_info): Ditto.
11835 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11836 * typeprint.c (typedef_print): Ditto.
11837 * utils.c (fprintf_symbol_filtered): Ditto.
11838 * valops.c (value_cast, search_struct_field, value_slice): Delete
11839 obsolete code.
11840 (varying_to_slice): Delete function.
11841 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11842 (varying_to_slice): Delete declaration.
11843 * MAINTAINERS: Update.
11844
11845 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11846
11847 * configure.in: Reorganize "Checks for library functions section"
11848 a bit. Remove check for `btowc' and `isascii' functions.
11849 * configure: Regenerated.
11850
11851 * acconfig.h (_MSE_INT_H): Remove.
11852 * configure.in: Create "Checks for header files" section, and move
11853 appropriate tests there. Don't check for objlist.h, wchar.h,
11854 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11855 misdetection fix. Also add "Checks for types", "Checks for
11856 compiler characteristics" and "Checks for library functions"
11857 sections.
11858 * config.in, configure: Regenerated.
11859
11860 * configure.in: Create "Checks for programs" section, and move
11861 appropriate tests there.
11862
11863 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11864
11865 * configure.in: Create "Checks for libraries" section, and move
11866 appropriate tests there. Cleanup check for wctype in libw. Use
11867 AC_SEARCH_LIBS to see whether we need libsocket.
11868 * configure: Regenerated.
11869
11870 For older changes see ChangeLog-2002
11871 \f
11872 Local Variables:
11873 mode: change-log
11874 left-margin: 8
11875 fill-column: 74
11876 version-control: never
11877 End: