* cris-tdep.c (cris_gdbarch_init): Set
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-14 Mark Kettenis <kettenis@gnu.org>
2
3 * cris-tdep.c (cris_gdbarch_init): Set
4 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
5 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
6 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
7 * mips-tdep.c (mips_gdbarch_init): Likewise.
8 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10
11 2003-09-13 Andrew Cagney <cagney@redhat.com>
12
13 * values.c (using_struct_return): Delete "function" and "funcaddr"
14 parameters.
15 * value.h (using_struct_return): Update declaration.
16 * infcmd.c (finish_command_continuation): Update.
17 (finish_command): Update.
18 * infcall.c (call_function_by_hand): Update.
19 * eval.c (evaluate_subexp_standard): Update.
20
21 2003-09-13 Christopher Faylor <cgf@redhat.com>
22
23 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
24 SSE registers since gdb will not operate correctly without this.
25 Restore include file ordering munged in previous change.
26 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
27
28 2003-09-13 Mark Kettenis <kettenis@gnu.org>
29
30 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
31 REG_STRUCT_HAS_ADDR.
32 * gdbarch.c, gdbarch.h: Updated.
33 * infcall.c (call_function_by_hand): Update.
34 * stabsread.c (define_symbol): Updated.
35
36 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
37
38 2003-09-12 Christopher Faylor <cgf@redhat.com>
39
40 * win32-nat.c: Reorganize so that defines used by target headers are
41 actually defined by the system headers.
42 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
43 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
44
45 2003-09-12 Jim Blandy <jimb@redhat.com>
46
47 * dbxread.c (read_dbx_symtab): Don't report an internal error if
48 the file has no .data, .bss, or .rodata sections. Instead wait
49 until we see a variable alleged to live in one of those sections.
50
51 * dbxread.c (read_dbx_symtab): If we have no .data section and no
52 .bss section, presume that any variables we find live in the
53 .rodata section.
54
55 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
56 offsets for global and static variables.
57
58 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
59 symbol types are, by definition, in the .data section, so it is
60 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
61 If there is no .data section, there should be no N_DATA or N_DATA
62 | N_EXT symbols.
63
64 2003-09-12 Mark Kettenis <kettenis@gnu.org>
65
66 * amd64fbsd-tdep.c: Fix sigtramp recognition.
67 (amd64fbsd_sigcontext_addr): Rewrite.
68 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
69 with correct values.
70 (amd64fbsd_sc_reg_offset): Initialize with correct values.
71 (amd64fbsd_init_abi): Fix typo.
72
73 2003-09-12 Andrew Cagney <cagney@redhat.com>
74
75 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
76 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
77
78 2003-09-12 Andrew Cagney <cagney@redhat.com>
79
80 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
81 "entry_file_highpc". Update comments.
82 * defs.h (deprecated_inside_entry_file): Rename
83 "inside_entry_file".
84 * blockframe.c (deprecated_inside_entry_file): Rename
85 "inside_entry_file".
86 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
87 * vax-tdep.c (vax_frame_chain): Update.
88 * sh64-tdep.c (sh64_frame_chain): Update.
89 * sh-tdep.c (sh_frame_chain): Update.
90 * rs6000-tdep.c (rs6000_frame_chain): Update.
91 * ns32k-tdep.c (ns32k_frame_chain): Update.
92 * mips-tdep.c (mips_frame_chain): Update.
93 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
94 * m32r-tdep.c (m32r_frame_this_id): Update.
95 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
96 * frv-tdep.c (frv_frame_this_id): Update.
97 * d10v-tdep.c (d10v_frame_this_id): Update.
98 * cris-tdep.c (cris_frame_chain): Update.
99 * blockframe.c (legacy_frame_chain_valid): Update.
100 * avr-tdep.c (avr_frame_this_id): Update.
101 * arm-tdep.c (arm_prologue_this_id): Update.
102 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
103 * objfiles.c (objfile_relocate): Update.
104 * mipsread.c (mipscoff_symfile_read): Update.
105 (mipscoff_symfile_read): Update.
106 * mdebugread.c (parse_partial_symbols): Update.
107 * dwarfread.c (read_file_scope): Update.
108 * dwarf2read.c (read_file_scope): Update.
109 * dbxread.c (read_dbx_symtab): Update.
110 (read_dbx_symtab): Update.
111 * coffread.c (complete_symtab): Update.
112
113 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
114
115 * top.c (quit_target): New static helper function.
116 (quit_force): Moved code to quit_target(). Call quit_target()
117 via catch_errors() to catch errors during quit.
118
119 2003-09-11 David Carlton <carlton@kealia.com>
120
121 * buildsym.c (finish_block): Use allocate_block to allocate the
122 block.
123 * mdebugread.c (new_block): Add FIXME.
124
125 2003-09-11 David Carlton <carlton@kealia.com>
126
127 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
128 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
129 (recursive_dump_type): Ditto.
130 * printcmd.c (print_formatted): Ditto.
131 * typeprint.c (print_type_scalar): Ditto.
132 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
133 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
134 * cp-support.h: Declare cp_check_possible_namespace_symbols,
135 maint_cplus_cmd_list.
136 * cp-support.c: Make maint_cplus_cmd_list extern.
137 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
138 command.h.
139 (lookup_symbol_file): Look in possible namespace blocks when
140 appropriate.
141 (initialize_namespace_symtab): New.
142 (get_possible_namespace_block, free_namespace_block)
143 (check_possible_namespace_symbols)
144 (check_possible_namespace_symbols_loop)
145 (check_one_possible_namespace_symbol)
146 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
147 (_initialize_cp_namespace): Ditto.
148 * block.h: Declare allocate_block.
149 * block.c (allocate_block): New.
150 * jv-lang.c (get_java_class_symtab): Allocate blocks via
151 allocate_block.
152 * symfile.h: Update declaration of add_psymbol_to_list.
153 * symfile.c (add_psymbol_to_list): Return the partial symbol in
154 question.
155 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
156 scan_partial_symbols_call.
157 (scan_partial_symbols): Add NAMESPACE argument; update calls to
158 helper functions.
159 (add_partial_symbol): If necessary, scan mangled names for names
160 of namespaces.
161 (add_partial_namespace): Add NAMESPACE argument; generate partial
162 symbols associated to namespaces.
163 (add_partial_enumeration): Add NAMESPACE argument.
164 (new_symbol): Allow namespace syms.
165 (read_namespace): Generate namespace syms.
166 * objfiles.h: Add opaque declaration of struct symtab.
167 (struct objfile): Add cp_namespace_symtab member.
168 * objfiles.c (allocate_objfile): Set
169 objfile->cp_namespace_symtab.
170 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
171 dictionary_h, command_h.
172
173 2003-09-11 Andrew Cagney <cagney@redhat.com>
174
175 * rs6000-tdep.c (rs6000_push_dummy_call): Use
176 regcache_raw_write_signed to set SP_REGNUM, move the operation to
177 near the function's end.
178 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
179 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
180 regcache_raw_write_signed to set SP_REGNUM.
181
182 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
183
184 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
185 orig_addrs is set up properly.
186
187 2003-09-11 Andrew Cagney <cagney@redhat.com>
188
189 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
190 * gdbarch.h, gdbarch.c: Re-generate.
191 * infcall.c (call_function_by_hand): Update.
192 * hppa-tdep.c (hppa_push_arguments): Update.
193 * ada-lang.c (place_on_stack): Update.
194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
195 * sparc-tdep.c (sparc_gdbarch_init): Update.
196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
197 * hppa-tdep.c (hppa_gdbarch_init): Update.
198 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
199 stack_align.
200
201 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
202
203 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
204 register do need a frame.
205
206 2003-09-11 Andrew Cagney <cagney@redhat.com>
207
208 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
209 buildable since GDB 5.0.
210 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
211 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
212 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
213 * irix4-nat.c: Delete file.
214 * config/mips/irix4.mh: Delete file.
215 * config/mips/irix3.mh: Delete file.
216 * config/mips/irix3.mt: Delete file.
217 * config/mips/tm-irix3.h: Delete file.
218 * config/mips/nm-irix3.h: Delete file.
219 * config/mips/xm-irix3.h: Delete file.
220 * config/mips/nm-irix4.h: Delete file.
221 * config/mips/xm-irix4.h: Delete file.
222 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
223
224 2003-09-10 J. Brobecker <brobecker@gnat.com>
225
226 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
227 * Makefile.in (hppa-tdep.o): Update dependencies.
228
229 2003-09-10 James E Wilson <wilson@specifixinc.com>
230
231 * MAINTAINERS: Change my e-mail address. Move to paper trail
232 section.
233
234 2003-09-10 Kevin Buettner <kevinb@redhat.com>
235
236 * MAINTAINERS (frv): New ISA entry.
237
238 2003-09-10 Kevin Buettner <kevinb@redhat.com>
239
240 * frv-tdep.c (dis-asm.h): Include.
241 * Makefile.in (frv-tdep.o): Update dependencies.
242
243 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
244
245 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
246 Fix typo for high range of floating registers.
247
248 2003-09-09 David Carlton <carlton@kealia.com>
249
250 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
251 highpc initialization here out of scan_partial_symbols.
252 (scan_partial_symbols): Restructure into a recursive version,
253 calling add_partial_namespace and add_partial_enumeration when
254 appropriate.
255 (add_partial_namespace): New.
256 (add_partial_enumeration, locate_pdi_sibling): Ditto.
257
258 2003-09-09 Andrew Cagney <cagney@redhat.com>
259
260 * rs6000-tdep.c (ppc_push_return_address): Delete function.
261 (rs6000_push_dummy_call): Set LR to BP_ADDR.
262 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
263 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
264
265 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
266 (rs6000_push_dummy_call): Set the "TOC" register.
267
268 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
269 methods "max_register_raw_size", "max_register_virtual_size" or
270 "register_virtual_size".
271
272 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
273
274 * MAINTAINERS: Update my e-mail address.
275
276 2003-09-09 Andrew Cagney <cagney@redhat.com>
277
278 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
279 (rs6000_push_dummy_call): Store the struct return address.
280 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
281
282 2003-09-09 Andrew Cagney <cagney@redhat.com>
283
284 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
285 "ppc_sysv_abi_push_arguments".
286 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
287 "ppc_sysv_abi_push_arguments".
288 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
289 instead of "push_arguments".
290 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
291
292 2003-09-09 Andrew Cagney <cagney@redhat.com>
293
294 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
295 instead of CALL_DUMMY_ADDRESS.
296
297 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
298
299 * p-lang.c: Eliminate "register".
300 * c-lang.c: Ditto.
301 * expprint.c: Ditto.
302 * f-lang.c: Ditto.
303 * jv-lang.c: Ditto.
304 * language.c: Ditto.
305 * m2-lang.c: Ditto.
306 * parse.c: Ditto.
307 * scm-lang.c: Ditto.
308 * objc-lang.c: Ditto.
309
310 2003-09-09 Nick Clifton <nickc@redhat.com>
311
312 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
313
314 2003-09-04 Andrew Cagney <cagney@redhat.com>
315
316 * avr-tdep.c: Include "dis-asm.h".
317 * cris-tdep.c: Include "dis-asm.h".
318 (cris_delayed_get_disassembler): Use "struct disassemble_info"
319 instead of corresponding typedef.
320 * h8300-tdep.c: Include "dis-asm.h".
321 * ia64-tdep.c: Include "dis-asm.h".
322 * i386-tdep.c: Include "dis-asm.h".
323 (i386_print_insn): Use "struct disassemble_info" instead of
324 corresponding typedef.
325 * m68k-tdep.c: Include "dis-asm.h".
326 * mcore-tdep.c: Include "dis-asm.h".
327 * mips-tdep.c: Include "dis-asm.h".
328 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
329 instead of corresponding typedef.
330 * ns32k-tdep.c: Include "dis-asm.h".
331 * s390-tdep.c: Include "dis-asm.h".
332 * sparc-tdep.c: Include "dis-asm.h".
333 * vax-tdep.c: Include "dis-asm.h".
334 * v850-tdep.c: Include "dis-asm.h".
335 * mn10300-tdep.c: Include "dis-asm.h".
336 * rs6000-tdep.c: Include "dis-asm.h".
337 * xstormy16-tdep.c: Include "dis-asm.h".
338 (_initialize_xstormy16_tdep): Delete "extern" declaration of
339 print_insn_xstormy16.
340 * Makefile.in (v850-tdep.o): Update dependencies.
341 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
342 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
343 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
344 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
345 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
346 (gdbarch_h): Remove $(dis_asm_h).
347 * disasm.c: Include "dis-asm.h".
348 (dis_asm_read_memory): Use "struct disassemble_info" instead of
349 corresponding typedef.
350 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
351 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
352 * gdbarch.sh: Do not include "dis-asm.h".
353 (struct disassemble_info): Declare opaque.
354 (TARGET_PRINT_INSN): Update declaration.
355 * gdbarch.h, gdbarch.c: Re-generate.
356
357 2003-09-08 Andrew Cagney <cagney@redhat.com>
358
359 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
360 CALL_DUMMY_ADDRESS, change to a predicate.
361 * gdbarch.h, gdbarch.c: Re-generate.
362 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
363 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
364 * infcall.c (call_function_by_hand): Ditto.
365 * sparc-tdep.c (sparc_push_return_address): Ditto.
366 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
367 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
368 CALL_DUMMY_ADDRESS with entry_point_address.
369 * v850-tdep.c (v850_push_return_address): Ditto.
370 * s390-tdep.c (s390_push_return_address): Ditto.
371 * rs6000-tdep.c (ppc_push_return_address): Ditto.
372 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
373 * mcore-tdep.c (mcore_push_return_address): Ditto.
374 * cris-tdep.c (cris_push_return_address): Ditto.
375 * arm-tdep.c (arm_push_return_address): Ditto.
376
377 2003-09-08 Andrew Cagney <cagney@redhat.com>
378
379 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
380 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
381 and REG_UNMODIFIED to REG_SAME_VALUE.
382 (execute_cfa_program): Update.
383 (dwarf2_frame_cache): Update. Initialize table to
384 REG_UNSPECIFIED, complain if CFI fails to specify a register's
385 location.
386 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
387
388 2003-09-08 Andrew Cagney <cagney@redhat.com>
389
390 * gnu-nat.c: Remove "inline" function attribute.
391 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
392
393 2003-09-08 Kevin Buettner <kevinb@redhat.com>
394
395 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
396 target.
397
398 2003-09-08 Kevin Buettner <kevinb@redhat.com>
399
400 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
401 (frame_extra_info): Rename this struct to frv_unwind_cache.
402 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
403 Add fields ``prev_sp'' and ``base''.
404 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
405 (frv_saved_pc_after_call, frv_init_extra_frame_info)
406 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
407 Delete.
408 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
409 Revise all callers. Fill in the unwind cache argument and make
410 other adjustments to account for new frame mechanisms.
411 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
412 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
413 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
414 (frv_frame_unwind, frv_frame_base): New structs.
415 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
416 additional arguments expected by this method and adjust function
417 body accordingly.
418 (frv_gdbarch_init): Remove calls to the following functions:
419 set_gdbarch_deprecated_init_frame_pc(),
420 set_gdbarch_deprecated_saved_pc_after_call(),
421 set_gdbarch_deprecated_frame_chain(),
422 set_gdbarch_deprecated_frame_saved_pc(),
423 set_gdbarch_deprecated_frame_init_saved_regs(),
424 set_gdbarch_deprecated_push_arguments(),
425 set_gdbarch_deprecated_push_return_address(),
426 set_gdbarch_deprecated_pop_frame(),
427 set_gdbarch_deprecated_call_dummy_words(),
428 set_gdbarch_deprecated_sizeof_call_dummy_words(),
429 set_gdbarch_deprecated_init_extra_frame_info(),
430 set_gdbarch_deprecated_dummy_write_sp(), and
431 set_gdbarch_deprecated_pc_in_call_dummy().
432 Add calls to the following functions:
433 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
434 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
435 frame_base_set_default().
436 * Makefile.in (frv-tdep.o): Update dependencies.
437
438 2003-09-09 Mark Kettenis <kettenis@gnu.org>
439
440 * dwarf2-frame.c (read_encoded_value): Add support for
441 DW_EH_PE_aligned encoding.
442
443 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
444
445 * infrun.c (normal_stop): Don't print a message if the inferior
446 has exited.
447
448 2003-09-08 Jim Blandy <jimb@redhat.com>
449
450 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
451 * dbxread.c: #include "gdb_assert.h".
452 (read_dbx_symtab): If the objfile has no .data section, use the
453 section index for the .bss section instead.
454
455 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
456
457 * frame.c (deprecated_safe_get_selected_frame): New function.
458 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
459 * findvar.c (read_var_value): Call it.
460
461 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
462
463 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
464 (sh64-tdep.o): Add dependencies.
465 * configure.tgt: Add FIXME to sh-*-linux*.
466 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
467 (sh_gdbarch_init): Always set correct sh_show_regs function
468 pointer. Call sh64_gdbarch_init() if machine type is sh5.
469 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
470 * sh64-tdep.c: New file, containing all sh64 related code from
471 sh-tdep.c.
472 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
473 * config/sh/linux.mt (TDEPFILES): Ditto.
474 * config/sh/nbsd.mt (TDEPFILES): Ditto.
475 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
476 * config/sh/wince.mt (TDEPFILES): Ditto.
477
478 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
479
480 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
481 (stop_wait_callback): Handle !lp->signalled also.
482 (lin_lwp_has_pending, flush_callback): New functions.
483 (lin_lwp_wait): Call flush_callback.
484 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
485 (linux_proc_pending_signals): New function.
486 * linux-nat.h (linux_proc_pending_signals): Add prototype.
487
488 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
489
490 From Nick Kelsey <nickk@ubicom.com>:
491 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
492 when the stop PC is at the beginning of a function also.
493
494 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
495
496 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
497 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
498
499 2003-09-06 Mark Kettenis <kettenis@gnu.org>
500
501 * sol-thread.c: Include "gdb_string.h".
502
503 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
504
505 * gcore.c: Reorder include files in alphabetical order. Include
506 "gdb_assert.h". Various coding style fixes.
507 (derive_stack_segment, derive_heap_segment): Replace check for
508 non-null BOTTOM and TOP with gdb_assert.
509 (derive_heap_segment): Replace check for successful creation of
510 ZERO with gdb_assert.
511 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
512
513 2003-09-04 Andrew Cagney <cagney@redhat.com>
514
515 * thread-db.c (verbose_dlsym): New function.
516 (thread_db_load): Use verbose_dlsym
517 (thread_db_new_objfile): Print that libthread_db was loaded, and
518 that thread debugging was enabled.
519
520 2003-09-04 Andrew Cagney <cagney@redhat.com>
521
522 * configure.tgt: Add "mips64*-*-*" target. Delete
523 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
524 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
525 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
526 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
527 mips*-sony-*, and mips64*-*-elf* targets.
528 * config/mips/embedl.mt: Delete file.
529 * config/mips/embedl64.mt: Delete file.
530 * config/mips/mips.mt: Delete file.
531 * config/mips/mips64.mt: Delete file.
532 * config/mips/tm-embed.h: Delete file.
533 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
534 * config/mips/embed64.mt: Delete out-of-date comment.
535
536 2003-09-04 Andrew Cagney <cagney@redhat.com>
537
538 * hppa-tdep.c (hppa_gdbarch_init): Set
539 "have_nonsteppable_watchpoint".
540 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
541 * mips-tdep.c (mips_dump_tdep): Do not print
542 HAVE_NONSTEPPABLE_WATCHPOINT.
543 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
544 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
545 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
546 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
547
548 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
549
550 * breakpoint.c (watchpoint_check): Remove accidentally checked in
551 unused code. Add comment.
552
553 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
554
555 * breakpoint.c (watchpoint_check): Check for pc being in an
556 epilogue if watchpoint frame couldn't be found.
557
558 2003-09-04 Andrew Cagney <cagney@redhat.com>
559
560 * Makefile.in: Re-generate all dependencies.
561
562 2003-09-03 Andrew Cagney <cagney@redhat.com>
563
564 * arch-utils.h (legacy_print_insn): Delete declaration.
565 * arch-utils.c (legacy_print_insn): Delete function.
566 * disasm.c (deprecated_tm_print_insn_info): Delete.
567 (_initialize_disasm): Delete function, contained code initializing
568 deprecated_tm_print_insn_info.
569 * gdbarch.sh (deprecated_tm_print_insn): Delete.
570 (deprecated_tm_print_insn_info): Delete.
571 (TARGET_PRINT_INSN): Do not provide a default.
572 * gdbarch.h, gdbarch.c: Re-generate.
573
574 2003-09-03 Andrew Cagney <cagney@redhat.com>
575
576 * disasm.c (fprintf_disasm): New function.
577 (gdb_disassemble_info): Call "init_disassemble_info", instead of
578 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
579 reverts 2003-08-14 change.
580 (_initialize_disasm): Call "init_disassemble_info", instead of
581 INIT_DISASSEMBLE_INFO_NO_ARCH.
582
583 2003-09-03 Michael Snyder <msnyder@redhat.com>
584
585 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
586
587 2003-09-03 Andrew Cagney <cagney@redhat.com>
588
589 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
590 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
591 * symfile.c (syms_from_objfile): Update.
592 (reread_symbols): `Update
593 * exec.c (exec_file_attach): Update.
594 (exec_file_attach): Update.
595 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
596 2003-08-29 change.
597 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
598
599 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
600
601 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
602 trad-frame.h.
603 (arm_get_cache): Delete macro.
604 (struct arm_prologue_cache): Update comments. Make saved_regs into
605 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
606 to prev_sp.
607 (thumb_scan_prologue): Update for cache changes. Don't call
608 DEPRECATED_PC_IN_CALL_DUMMY.
609 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
610 argument and use it in desperation search for our prologue. Do not
611 search past the specified PC.
612 (arm_make_prologue_cache): Simplify.
613
614 (arm_prologue_this_id, arm_prologue_prev_register)
615 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
616 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
617 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
618 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
619 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
620
621 (arm_frame_chain_valid, arm_find_callers_reg)
622 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
623 (arm_pop_frame): Delete obsolete methods.
624 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
625
626 (arm_gdbarch_init): Update for new frame methods. Register prologue
627 and sigtramp unwinders. Set the default frame base method.
628
629 * Makefile.in (arm-tdep.o): Update dependencies.
630 * varobj.c (find_frame_addr_in_frame_chain): Call
631 get_frame_base_address.
632 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
633
634 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
635
636 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
637 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
638 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
639 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
640 Take NEXT_FRAME and CACHE arguments. Call
641 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
642 Set unwound_pc in CACHE instead of modifying the frame argument.
643 Don't bother checking the frame type when looking for sigtramp
644 frames.
645 (arm_make_prologue_cache, arm_frame_chain)
646 (arm_init_extra_frame_info): New functions.
647
648 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
649
650 * arm-tdep.c (arm_get_cache): Define.
651 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
652 unwound_sp, unwound_pc, and saved_regs.
653 (thumb_scan_prologue): Take a cache instead of the frame.
654 (arm_scan_prologue): Likewise.
655 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
656 instead of a temporary frame.
657 (arm_init_extra_frame_info): Allocate and use a cache.
658 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
659
660 2003-09-03 Andrew Cagney <cagney@redhat.com>
661
662 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
663 * config/mips/wince.mt (TM_CLIBS): Ditto.
664 * config/sh/wince.mt (TM_CLIBS): Ditto.
665 * config/pa/hppa64.mt (TM_CLIBS): Delete.
666 * config/sparc/sp64.mt (CC): Delete.
667
668 2003-09-03 Andrew Cagney <cagney@redhat.com>
669
670 * defs.h: Do not include "arch-utils.h".
671 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
672 GDB_MULTI_ARCH_PURE.
673 * configure.in (GDB_MULTI_ARCH): Do not define.
674 * configure, config.in: Regenerate.
675 * configure.tgt: Do not set variable "gdb_multi_arch".
676 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
677 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
678 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
679 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
680 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
681 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
682 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
683 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
684 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
685 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
686 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
687 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
688 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
689 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
690 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
691 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
692 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
693 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
694
695 2003-08-30 Michael Chastain <mec@shout.net>
696
697 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
698 * config/m68k/nm-hp300hpux.h: Delete.
699 * config/m68k/tm-hp300hpux.h: Delete.
700 * config/m68k/xm-hp300hpux.h: Delete.
701 * config/m68k/xm-hp300bsd.h: Delete.
702 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
703 tm-hp300hpux.h, xm-hp300hpux.h.
704 * somsolib.c: Remove comment about hp300 shared libraries.
705
706 2003-08-31 Mark Kettenis <kettenis@gnu.org>
707
708 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
709 Only define PTRACE_GET_THREAD_AREA is not already defined.
710 Various style fixes in code and comments and some additional
711 spelling fixes in comments. Move after functions dealing with
712 debug registers.
713 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
714 Fix coding-style.
715
716 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
717 frame_unwind_register_unsigned instead of
718 frame_unwind_unsigned_register.
719
720 2003-08-30 Mark Kettenis <kettenis@gnu.org>
721
722 * configure.in: Search for gethostbyname in libnsl.
723 * configure: Regenerated.
724
725 2003-08-29 Mark Kettenis <kettenis@gnu.org>
726
727 * configure.in: Remove redundant AC_MSG_RESULT in check for
728 uintptr_t in stdint.h.
729 * configure: Regenerated.
730
731 * amd64-nat.h (struct regcache): Add opaque declaration.
732
733 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
734 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
735 Change "register array" to "register cache" in comments.
736 (x86_64_linux_gregset64_reg_offset): New variable.
737 (GETREGS_SUPPLIES): Remove macro.
738 (supply_gregset): Call amd64_supply_native_gregset instead of
739 x86_64_linux_supply_gregset.
740 (fill_gregset): Rename `regno' to `regnum'. Call
741 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
742 (store_regs): Rename `regno' to `regnum'.
743 (store_fpregs): Rename `regno' to `regnum'.
744 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
745 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
746 Reorganize function a bit.
747 (store_inferior_registers): Rename `regno' to `regnum'. Use
748 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
749 Reorganize function a bit.
750 (_initialize_x86_64_linux_nat): New function.
751 * config/i386/x86-64linux.mh.
752
753 2003-08-29 Andrew Cagney <cagney@redhat.com>
754
755 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
756 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
757 (target_remove_watchpoint): Delete macro.
758 (target_insert_watchpoint): Delete macro.
759 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
760 (remote_mips_stopped_by_watchpoint): Delete declaration.
761 (remote_mips_remove_watchpoint): Delete declaration.
762 (remote_mips_set_watchpoint): Delete declaration.
763 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
764 * remote-mips.c (_initialize_remote_mips): Set
765 "to_insert_watchpoint", "to_stopped_by_watchpoint",
766 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
767 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
768 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
769 (mips_stopped_by_watchpoint): Rename
770 remote_mips_stopped_by_watchpoint.
771 (mips_can_hardware_watchpoint): Rename
772 remote_mips_can_use_hardware_watchpoint, update function
773 signature.
774
775 2003-08-29 Mark Kettenis <kettenis@gnu.org>
776
777 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
778 USER_DS. We haven't given them a register number yet.
779
780 * amd64-nat.h: New file.
781 * amd64-nat.c: New file.
782 * amd64fbsd-nat.c: Include "amd64-nat.h".
783 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
784 (amd64fbsd32_r_reg_offset): New variable.
785 (supply_gregset): Simply call amd64_supply_native_gregset.
786 (fill_gregset): Rename `regno' to `regnum'. Simply call
787 amd64_collect_native_gregset.
788 (fill_fpregset): Rename `regno' to `regnum'.
789 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
790 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
791 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
792 `fpregset_t'. Call amd64_supply_native_gregset instead of
793 supply_gregset. Call x86_64_supply_fxsave instead of
794 supply_fpregset.
795 (store_inferior_registers): Rename `regno' to `regnum'. Replace
796 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
797 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
798 `fpregset_t'. Call amd64_collect_native_gregset instead of
799 fill_gregset. Call x86_64_collect_fxsave instead of
800 fill_fpregset.
801 (_initialize_am64fbsd_nat): Initialize
802 amd64_native_gregset32_reg_offset and
803 amd64_native_gregset64_reg_offset.
804 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
805
806 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
807 null pointer. Fix typo in comment.
808
809 * regcache.c (supply_register): Reimplement to call
810 regcache_raw_supply.
811 (regcache_collect): Reimplement by calling regcache_raw_collect.
812
813 2003-08-28 Mark Kettenis <kettenis@gnu.org>
814
815 * regcache.c (register_buffer): Consitify first argument.
816 (regcache_raw_supply, regcache_raw_collect): New
817 functions.
818
819 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
820
821 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
822 by Nathan J. Williams.
823
824 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
825
826 * lin-lwp.c (wait_lwp): New function, copied from
827 stop_wait_callback. Clean up.
828 (stop_wait_callback): Use wait_lwp.
829
830 2003-08-28 Andrew Cagney <cagney@redhat.com>
831
832 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
833 flavour and disassembler options.
834 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
835 (mips_gdbarch_init): Set "print_insn". Delete initialization of
836 deprecated_tm_print_insn_info.
837
838 2003-08-27 Andrew Cagney <cagney@redhat.com>
839
840 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
841 Use target_read_memory.
842 (s390_get_frame_info): Update. Do not reference
843 deprecated_tm_print_insn_info.
844 (s390_check_function_end, s390_is_sigreturn): Ditto.
845
846 2003-08-27 Andrew Cagney <cagney@redhat.com>
847
848 * Makefile.in (cris-tdep.o): Update dependencies.
849 * cris-tdep.c: Include "gdb_assert.h".
850 (cris_gdbarch_init): Set print_insn.
851 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
852 (cris_delayed_get_disassembler): Simplify, directly call the
853 disassembler returned by cris_get_disassembler.
854 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
855 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
856 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
857 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
858 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
859 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
860 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
861 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
862 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
863 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
864 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
865 (gdb_print_insn_sparc): Delete function.
866 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
867 deprecated_tm_print_insn_info.
868 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
869 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
870 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
872 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
873 * s390-tdep.c (gdb_print_insn_s390): Delete function.
874 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
875 (s390_gdbarch_init): Set print_insn.
876
877 2003-08-27 Andrew Cagney <cagney@redhat.com>
878
879 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
880 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
881 * infcall.c (call_function_by_hand): Convert the entry point
882 address into a code address.
883
884 2003-08-27 Andrew Cagney <cagney@redhat.com>
885
886 * dsrec.c: Include "gdb_string.h".
887 * Makefile.in (dsrec.o): Update dependencies.
888
889 2003-08-27 Michael Chastain <mec@shout.net>
890
891 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
892
893 2003-08-27 Andrew Cagney <cagney@redhat.com>
894
895 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
896 (alpha_osf1_init_abi): Do not set call_dummy_address.
897
898 2003-08-27 David Carlton <carlton@kealia.com>
899
900 From Randolph Chung <tausq@debian.org>:
901 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
902 compiles with -Wformat-nonliteral -Werror.
903
904 2003-08-26 Jim Blandy <jimb@redhat.com>
905
906 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
907 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
908 bfd_lookup_symbol, since we only want symbols in code sections.
909 (look_for_base): Pass zero as the SECT_FLAGS argument to
910 bfd_lookup_symbol, since we're not concerned about which section
911 the symbol is in.
912
913 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
914
915 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
916 we are frameless or the return address register is already known.
917
918 2003-08-26 Andrew Cagney <cagney@redhat.com>
919
920 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
921 in size. Add comments.
922
923 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
924
925 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
926 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
927
928 2003-08-26 Jason Merrill <jason@redhat.com>
929
930 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
931 case out of #ifdef MIPS block.
932
933 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
934
935 PR java/1322
936 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
937 available before calling SECT_OFF_TEXT.
938 * PROBLEMS: Remove description of java/1322.
939
940 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
941
942 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
943 bof, and nat0-nat127 as pseudo-registers.
944 (ia64_frame_cache): New struct used to cache frame info.
945 (ia64_register_reggroup_p): New routine used to override default
946 register grouping so registers without names are still saved and
947 restored.
948 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
949 pseudo values.
950 (ia64_pseudo_register_read): New routine to read pseudo-registers.
951 (ia64_pseudo_register_write): New routine to write pseudo-registers.
952 (ia64_alloc_frame_cache): New routine to create a new
953 ia64_frame_cache.
954 (examine_prologue): Change prototype to add next_frame pointer.
955 Assume frameless until otherwise proven. Verify that the cfm for
956 current frame matches the cfm that should occur for the prologues
957 alloc insn and if equal, mark as not frameless. At end of routine,
958 if not frameless, calculate registers for the previous frame and store
959 in the cache, if a cache is provided.
960 (ia64_skip_prologue): Use new prototype when calling examine_prologue
961 and pass 0 for next_frame.
962 (ia64_store_return_value): Change to use convert_typed_floating()
963 instead of calling ia64_convert_to_raw().
964 (ia64_extract_return_value): Change to use convert_typed_floating()
965 instead of calling ia64_convert_to_virtual().
966 (ia64_frame_cache): New routine to support new frame model.
967 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
968 (ia64_frame_sniffer): Ditto.
969 (ia64_sigtramp_frame_init_saved_regs): Ditto.
970 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
971 (ia64_sigtramp_frame_prev_register): Ditto.
972 (ia64_sigtramp_frame_sniffer): Ditto.
973 (ia64_frame_base_address): Ditto.
974 (ia64_extract_struct_value_address): Change to issue error message.
975 (ia64_frame_align): New routine to align sp.
976 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
977 (ia64_push_arguments): Removed. Logic moved to
978 ia64_push_dummy_call().
979 (ia64_push_return_address): Ditto.
980 (ia64_unwind_dummy_id): New function.
981 (ia64_unwind_pc): Ditto.
982 (ia64_convert_register_p): Ditto.
983 (ia64_register_to_value): Ditto.
984 (ia64_value_to_register): Ditto.
985 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
986 (ia64_register_byte, ia64_register_raw_size): Ditto.
987 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
988 (ia64_saved_pc_after_call): Ditto.
989 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
990 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
991 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
992 (ia64_register_convert_to_raw): Ditto.
993 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
994 (ia64_init_extra_frame_info): Ditto.
995 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
996 (ia64_gdbarch_init): Remove registering of deprecated functions that
997 are no longer used. Add registration of new gdbarch functions.
998 Remove registering deprecated_write_sp. Replace
999 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1000 Delete set_gdbarch_deprecated_register_convertible(),
1001 set_gdbarch_deprecated_register_convert_to_virtual(), and
1002 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1003 set_gdbarch_deprecated_register_size(),
1004 set_gdbarch_deprecated_register_bytes(),
1005 set_gdbarch_pcregnum(),
1006 set_gdbarch_deprecated_register_byte(),
1007 set_gdbarch_deprecated_register_raw_size(),
1008 set_gdbarch_deprecated_max_register_raw_size(),
1009 set_gdbarch_deprecated_register_virtual_size(),
1010 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1011 Replace set_gdbarch_deprecated_extract_return_value() with
1012 set_gdbarch_extract_return_value(). Remove calls to:
1013 set_gdbarch_deprecated_saved_pc_after_call();
1014 set_gdbarch_deprecated_frame_chain(),
1015 set_gdbarch_deprecated_frame_saved_pc(),
1016 set_gdbarch_deprecated_frame_init_saved_regs(),
1017 set_gdbarch_deprecated_get_saved_register(),
1018 set_gdbarch_deprecated_call_dummy_words(),
1019 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1020 set_gdbarch_deprecated_init_extra_frame_info(),
1021 set_gdbarch_deprecated_frame_args_address(),
1022 set_gdbarch_deprecated_frame_locals_address(),
1023 and set_gdbarch_deprecated_dummy_write_sp().
1024 Add set_gdbarch_convert_register_p(),
1025 set_gdbarch_register_to_value(),
1026 set_gdbarch_value_to_register(),
1027 set_gdbarch_push_dummy_call(),
1028 set_gdbarch_frame_align(),
1029 set_gdbarch_unwind_dummy_id(),
1030 set_gdbarch_unwind_pc(),
1031 frame_unwind_append_sniffer(),
1032 frame_unwind_append_sniffer(),
1033 and frame_base_set_default().
1034
1035 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1036
1037 * configure.tgt: Document need for special "mipsisa64" handling.
1038 (mipsisa64*-*-linux64): Handle as target linux64.
1039 (mipsisa64*-*-*): Handle as target embed64.
1040
1041 2003-08-18 Michael Chastain <mec@shout.net>
1042
1043 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1044 objfile bug.
1045
1046 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1047
1048 * i387-tdep.h: Update copyright date.
1049 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1050
1051 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1052 CFLAGS games to reflect reality.
1053
1054 2003-08-24 Andrew Cagney <cagney@redhat.com>
1055
1056 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1057 GDB_MULTI_ARCH is always non-zero.
1058 * osabi.c (_initialize_gdb_osabi): Ditto.
1059 (gdbarch_init_osabi): Ditto.
1060 * sparc-tdep.c: Ditto for #if code.
1061
1062 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1063
1064 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1065 Update comments.
1066 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1067 comments.
1068 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1069 x86_64_supply_fxsave.
1070 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1071 x86_64_supply_fxsave.
1072 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1073 x86_64_supply_fxsave.
1074
1075 2003-08-23 Andreas Jaeger <aj@suse.de>
1076
1077 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1078 i387_supply_fxsave.
1079
1080 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1081
1082 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1083 i387_supply_register.
1084 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1085 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1086 i387_supply_fsave.
1087 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1088 i387_supply_fxsave.
1089 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1090 i387_supply_fsave.
1091 * i386bsd-nat.c (supply_fpregset): Adjust call to
1092 i387_supply_fsave.
1093 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1094 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1095 supply_fpregset.
1096 (store_inferior_registers): Remove extraneous whitespace. Call
1097 i387_fill_fsave instead of fill_fpregset.
1098 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1099 (supply_fpregset): Likewise.
1100 * i386v4-nat.c (supply_fpregset): Adjust call to
1101 i387_supply_fsave.
1102 * i386-interix-nat.c (supply_fpregset): Adjust call to
1103 i387_supply_fsave.
1104 * i386-linux-nat.c (supply_fpregset): Adjust call to
1105 i387_supply_fsave.
1106 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1107 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1108 i387supply_fsave and i387_supply_fxsave.
1109 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1110 Incorporate code from `i387_supply_register.
1111 (i387_supply_register): Remove.
1112 (i387_supply_fxsave): Add `regnum' argument.
1113 Update comments.
1114 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1115 prototype.
1116 (i387_supply_register): remove prototype.
1117 Update comments.
1118
1119 2003-08-22 Michael Chastain <mec@shout.net>
1120
1121 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1122 Add lines for files in gdb/testsuite/gdb.cp/* that are
1123 still not 8.3 unique.
1124
1125 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1126
1127 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1128 TYPE_VPTR_FIELDNO is valid.
1129
1130 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1131
1132 * utils.c (set_width_command): Remove prototypes.
1133 (set_screen_size): New prototype.
1134 (init_page_info): Simplify by fetching the screen size from
1135 Readline. Call set_screen_size.
1136 (set_screen_size): New function.
1137 (set_width): Add missing whitespace in comment.
1138 (set_width_command): Call set_screen_size.
1139 (set_height_command): New function.
1140 (initialize_utils): Fix formatting. Make "set height" command
1141 call set_height_command. Remove redundant code that turns off
1142 pagination if output isn't a terminal. Remove redundant call to
1143 set_width_command.
1144
1145 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1146
1147 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1148 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1149 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1150 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1151 `case' keyword.
1152 (sparc64_register_info): Give the reister with number
1153 SPARC64_STATE_REGNUM a name.
1154 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1155 %asi and %ccr.
1156 (sparc64_push_dummy_call): Take BIAS into account when checking
1157 stcak alignment.
1158 (sparc_software_single_step): Remove assertions that check whether
1159 NPC and NNPC were zero.
1160 (sparc_supply_rwindow): Make public. Merge functionality with
1161 sparc64_supply_rwindow.
1162 (sparc_fill_rwindow): Make public. Merge functionality with
1163 sparc64_fill_rwindow.
1164 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1165 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1166 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1167 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1168 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1169
1170 * reggroups.c: Add whitespace after declarations of local
1171 variables in functions.
1172
1173 2003-08-21 Michael Chastain <mec@shout.net>
1174
1175 * gdbtypes.h: Change array bound type from an int to enum.
1176
1177 2003-08-21 Andrew Cagney <cagney@redhat.com>
1178
1179 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1180 * config/sparc/tm-sparc.h: Ditto.
1181 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1182 unconditionally.
1183 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1184
1185 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1186
1187 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1188 (register_objfile_data, set_objfile_data, objfile_data): New
1189 prototypes.
1190 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1191 prototypes.
1192 (allocate_objfile): Call objfile_alloc_data.
1193 (free_objfile): Call objfile_free_data.
1194 (struct objfile_data): New.
1195 (struct objfile_data_registration): New.
1196 (struct objfile_data_registry): New.
1197 (objfile_data_registry): New variable.
1198 (register_objfile_data): New function.
1199 (objfile_alloc_data, objfile_free_data): New functions.
1200 (set_objfile_data, objfile_data): New functions.
1201 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1202 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1203 (_initialize_dwarf2_frame): New function and prototype.
1204
1205 2003-08-21 Andrew Cagney <cagney@redhat.com>
1206
1207 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1208 a specific architecture.
1209 * arch-utils.h (set_architecture_from_arch_mach): Delete
1210 declaration.
1211 (target_architecture_hook): Delete declaration.
1212 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1213 (default_float_format): Assume GDB_MULTI_ARCH.
1214 (default_double_format): Assume GDB_MULTI_ARCH.
1215 (set_endian_from_file): Delete function.
1216 (arch_ok): Delete function.
1217 (set_arch): Delete function.
1218 (set_architecture_from_arch_mach): Delete function.
1219 (set_architecture_from_file): Delete function.
1220 (set_architecture): Assume GDB_MULTI_ARCH.
1221 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1222
1223 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1224
1225 Rewrite FreeBSD/sparc64 native configuration.
1226 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1227 * sparc64fbsd-nat.c: New file.
1228 * sparc64fbsd-tdep.c: New file.
1229 * sparc64-tdep.c sparc64-tdep.h: New files.
1230 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1231 sparc64fbsd-tdep.o): New dependencies.
1232 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1233 and sparc64fbsd-tdep.c.
1234 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1235 * config/sparc/fbsd.mh: Remove copyright notice.
1236 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1237 sparcbsd-nat.o.
1238 * config/sparc/fbsd.mt: Remove copyright notice.
1239 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1240 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1241 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1242 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1243 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1244 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1245 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1246 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1247 "sparc/tm-sp64.h".
1248 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1249 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1250
1251 2003-08-21 Michael Chastain <mec@shout.net>
1252
1253 * symtab.h: Add doco on the space critical structures and
1254 some measurements of space usage.
1255
1256 2003-08-21 Michael Snyder <msnyder@redhat.com>
1257
1258 * tracepoint.c (trace_dump_command): Trace break address
1259 is subject to DECR_PC_AFTER_BREAK.
1260 (set_traceframe_context): Make "trace_line" an int.
1261 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1262
1263 2003-08-20 Michael Snyder <msnyder@redhat.com>
1264
1265 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1266 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1267 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1268 argument passing.
1269 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1270 functions, replace sh_push_dummy_call.
1271 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1272
1273 2003-08-20 Michael Chastain <mec@shout.net>
1274
1275 * gdbtypes.h (struct main_type): Rearrange to save space.
1276
1277 2003-08-20 Michael Snyder <msnyder@redhat.com>
1278
1279 * trad-frame.c: Comment typo fix.
1280
1281 2003-08-20 Michael Snyder <msnyder@redhat.com>
1282 Kevin Buettner <kevinb@redhat.com>
1283
1284 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1285 (frv_frame_init_saved_regs): Add declaration.
1286 (frame_extra_info): Add new field ``saved_regs''.
1287 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1288 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1289 Update frame related code.
1290 (frv_extract_struct_value_address): Adjust formatting.
1291 * Makefile.in (frv-tdep.o): Update dependencies.
1292 * config/frv/tm-frv.h (target_insert_watchpoint)
1293 (target_remove_watchpoint, target_insert_hw_breakpoint)
1294 (target_remove_hw_breakpoint): Delete these macros.
1295 (remote_insert_watchpoint, remote_remove_watchpoint)
1296 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1297 these declarations.
1298
1299 2003-08-20 Michael Chastain <mec@shout.net>
1300
1301 * defs.h (ENUM_BITFIELD): New macro.
1302 * symtab.h (ENUM_BITFIELD): Use it.
1303 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1304
1305 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1306
1307 * MAINTAINERS (write after approval): Add myself.
1308
1309 2003-08-18 Andrew Cagney <cagney@redhat.com>
1310
1311 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1312 * gdbarch.h, gdbarch.c: Re-generate.
1313 * infcall.c (call_function_by_hand): Adjust the SP by
1314 frame_red_zone_size before allocating any stack space.
1315 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1316 * x86-64-tdep.c (x86_64_frame_align): New function.
1317 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1318
1319 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1320 Remove code adjusting SP so that it skips over the Red Zone.
1321
1322 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1323
1324 * NEWS (New native configurations): Mention FreeBSD/amd64.
1325
1326 2003-08-18 Andrew Cagney <cagney@redhat.com>
1327
1328 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1329 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1330 "m68k_frame_p".
1331 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1332
1333 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1334
1335 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1336
1337 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1338
1339 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1340 Define.
1341 * i386-linux-nat.c: Include "linux-nat.h".
1342 (child_post_startup_inferior): New function.
1343
1344 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1345
1346 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1347 at the start of a frameless function. This probably fixes PR
1348 backtrace/1338.
1349
1350 2003-08-17 Michael Chastain <mec@shout.net>
1351
1352 * symfile.c (find_sym_fns): Remove special case for apollo target.
1353
1354 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1355
1356 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1357 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1358 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1359 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1360 (linux_supports_tracevforkdone): New function.
1361 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1362 TRACEVFORKDONE.
1363 (child_follow_fork): Handle vfork.
1364 (linux_handle_extended_wait): Likewise. Also handle exec.
1365 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1366 * NEWS: Mention fork tracing.
1367
1368 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1369
1370 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1371
1372 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1373
1374 * Makefile.in (i386-linux-nat.o): Update dependencies.
1375 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1376 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1377 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1378 * i386-linux-nat.c: Include "linux-nat.h".
1379 (child_post_startup_inferior): New function.
1380 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1381 * infptrace.c (kill_inferior): Wrap in #ifdef.
1382 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1383 attaching to each LWP.
1384 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1385 (init_lin_lwp_ops): Fill in some more operations.
1386 * linux-nat.h (linux_enable_event_reporting)
1387 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1388 prototypes.
1389 * linux-nat.c (linux_enable_event_reporting): New function.
1390 (child_post_attach, linux_child_post_startup_inferior)
1391 (child_post_startup_inferior, child_follow_fork)
1392 (linux_handle_extended_wait, kill_inferior): New functions.
1393
1394 2003-08-16 Andrew Cagney <cagney@redhat.com>
1395
1396 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1397 * gdbarch.h, gdbarch.c: Re-generate.
1398
1399 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1400
1401 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1402
1403 2003-08-16 Andrew Cagney <cagney@redhat.com>
1404
1405 * NEWS: Mention that "set prompt-escape-char" was deleted.
1406 * top.c (get_prompt_1): Delete function.
1407 (gdb_prompt_escape):
1408 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1409 prompt-escape-char" command.
1410 (MAX_PROMPT_SIZE): Delete macro.
1411 (get_prompt): Simplify, do not call get_prompt_1.
1412
1413 2003-08-16 Andrew Cagney <cagney@redhat.com>
1414
1415 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1416 -Werror. -Wformat-nonliteral problems.
1417
1418 2003-08-15 J. Brobecker <brobecker@gnat.com>
1419
1420 Further multiarching work mostly for hppa64-*-hpux11:
1421 * hppa-tdep.h: New file.
1422 * hppa-tdep.c: #include hppa-tdep.c.
1423 (hppa32_num_regs): Renamed from hppa_num_regs.
1424 (hppa64_num_regs): New constant.
1425 (hppa64_call_dummy_breakpoint_offset): New constant.
1426 (hppa32_call_dummy_length): New constant.
1427 (hppa64_call_dummy_length): New constant.
1428 (hppa32_stack_align): Make name 32bit explicit.
1429 (hppa32_register_virtual_type): Likewise.
1430 (hppa32_extract_return_value): Likewise.
1431 (hppa32_use_struct_convention): Likewise.
1432 (hppa32_store_return_value): Likewise.
1433 (hppa64_register_virtual_type): New function.
1434 (hppa64_extract_return_value): New function.
1435 (hppa64_use_struct_convention): New function.
1436 (hppa64_store_return_value): New function.
1437 (hppa_frame_locals_address): Remove declaration, function does
1438 not exist anymore.
1439 (hppa_register_byte): Add support for PA64 ABI.
1440 (hppa_gdbarch_init): Add support for PA64 ABI.
1441 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1442 Make name 32bit explicit.
1443 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1444 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1445 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1446 (hppa64_hpux_frame_base_before_sigtramp): New function.
1447 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1448 * config/pa/tm-hppa64.h: Remove macros that are no longer
1449 necessary now that the gdbarch vector is properly setup.
1450 Transform some macros into function calls. Some minor cleanup.
1451 * config/pa/tm-hppah.h: Update function calls in macros
1452 following the function renaming in hppa-hpux-tdep.c.
1453 * Makefile.in (hppa_tdep_h): New variable.
1454 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1455
1456 2003-08-14 Michael Snyder <msnyder@redhat.com>
1457
1458 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1459
1460 2003-08-13 J. Brobecker <brobecker@gnat.com>
1461
1462 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1463 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1464 routine.
1465
1466 2003-08-13 Michael Snyder <msnyder@redhat.com>
1467
1468 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1469 (frv_saved_pc_after_call): Use deprecated ftype.
1470 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1471 (frv_remote_translate_xfer_address): Remove.
1472 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1473
1474 2003-08-13 J. Brobecker <brobecker@gnat.com>
1475
1476 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1477 initialization after the common gdbarch initialization, not before.
1478
1479 2003-08-13 J. Brobecker <brobecker@gnat.com>
1480
1481 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1482 (ADDR_BITS_REMOVE): Remove, redundant.
1483
1484 2003-08-13 J. Brobecker <brobecker@gnat.com>
1485
1486 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1487 gdbarch method to clear the 2 low bits of text addresses.
1488
1489 2003-08-12 Andrew Cagney <cagney@redhat.com>
1490
1491 * Makefile.in (dsrec.o): Update dependencies.
1492 * dsrec.c: Include "gdb_assert.h".
1493 (make_srec): Use snprintf instead of sprintf, use a literal format
1494 string.
1495
1496 2003-08-12 Andrew Cagney <cagney@redhat.com>
1497
1498 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1499 FRAME_OBSTACK_ZALLOC.
1500
1501 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1502
1503 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1504 SSE registers.
1505
1506 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1507
1508 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1509 amd64fbsd_sc_reg_offset): Add extern declarations.
1510 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1511 declarations.
1512
1513 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1514
1515 * MAINTAINERS (write after approval): Update my mail address.
1516
1517 2003-08-10 Andrew Cagney <cagney@redhat.com>
1518
1519 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1520
1521 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1522
1523 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1524 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1525 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1526 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1527 i386bsd_sc_reg_offset): Add extern declarations.
1528 * i386obsd-nat.c: Include "i386-tdep.h"
1529 (_initialize_i386obsd_nat): Remove extern declarations.
1530 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1531 declarations.
1532 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1533 declarations.
1534
1535 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1536 instead of frame_read_register.
1537 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1538 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1539 SP_REGNUM.
1540 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1541 instead of frame_unwind_unsigned_register. Use
1542 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1543 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1544 instead of read_register. Use builtin_type_void_data_ptr instead
1545 of builtin_type_void_func_ptr when extracting the address of the
1546 jmp_buf.
1547 (i386_extract_return_value, i386_store_return_value,
1548 i386_pseudo_register_read, i386_pseudo_register_write): Use
1549 register_size instead REGISTER_RAW_SIZE.
1550
1551 2003-08-10 Andrew Cagney <cagney@redhat.com>
1552
1553 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1554 sprintf. Make "name" constant.
1555
1556 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1557
1558 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1559 instead of frame_read_register.
1560 (i387_print_float_info): Use get_frame_register and
1561 get_frame_register_unsigned instead of frame_register_read.
1562
1563 * i386fbsd-nat.c: Include "i386-tdep.h".
1564 (child_resume): Make `eflags' an ULONGEST. Use
1565 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1566 instead of register_read and register_write.
1567
1568 * i386bsd-nat.c (fetch_inferior_registers,
1569 store_inferior_registers): Don't use && at the end of a line.
1570 (_initialize_i386bsd_nat): Fix typo.
1571
1572 * frame.c (_initialize_frame): Add missing backslash.
1573
1574 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1575 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1576 and supply_register instead of manipulating the register buffer
1577 directly.
1578
1579 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1580 * config/i386/nm-i386sol2.h
1581 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1582
1583 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1584 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1585 instructions that GCC likes to mingle into the prologue. Fixes
1586 gdb/1253 and gdb/1255.
1587
1588 2003-08-09 Andrew Cagney <cagney@redhat.com>
1589
1590 Fix GDB PR cli/926.
1591 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1592 * command.h (add_setshow_uinteger_cmd): Declare.
1593 * frame.c (set_backtrace_cmd): New function.
1594 (show_backtrace_cmd): New function.
1595 * frame.c (_initialize_frame): Replace "set/show
1596 backtrace-below-main" with "set/show backtrace past-main". Add
1597 command "set/show backtrace limit".
1598 (backtrace_past_main): Rename "backtrace_below_main".
1599 (backtrace_limit): New variable.
1600 (get_prev_frame): Update. Check the backtrace_limit.
1601
1602 2003-08-09 Andrew Cagney <cagney@redhat.com>
1603
1604 * defs.h (xstrprintf): Declare.
1605 * utils.c (xstrprintf): New function.
1606 * breakpoint.c (insert_breakpoints): Replace sprintf and
1607 non-literal format strings, with xstrprintf and cleanups.
1608 (delete_breakpoint,breakpoint_re_set): Ditto.
1609 (commands_command, insert_breakpoints): Ditto.
1610 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1611 (break_at_finish_command_1): Ditto.
1612
1613 2003-08-09 Andrew Cagney <cagney@redhat.com>
1614
1615 * MAINTAINERS (language support): List Adam Fedor as Objective C
1616 maintainer.
1617
1618 2003-08-08 J. Brobecker <brobecker@gnat.com>
1619
1620 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1621 are now multiarched.
1622
1623 2003-08-08 J. Brobecker <brobecker@gnat.com>
1624
1625 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1626 longer necessary now that hppa64 is partially multiarch'ed.
1627
1628 2003-08-08 Andrew Cagney <cagney@redhat.com>
1629
1630 * interps.c (interp_set): Check for a NULL "old_interp".
1631
1632 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1633
1634 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1635 (install-only): Support DESTDIR.
1636 (uninstall): Likewise.
1637 (install-gdbtk): Likewise.
1638
1639 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1640
1641 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1642 contains something meaningful at all times.
1643
1644 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1645
1646 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1647
1648 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1649
1650 * MAINTAINERS (write after approval): Added self.
1651
1652 2003-08-07 Andrew Cagney <cagney@redhat.com>
1653
1654 * inferior.h (AT_SYMBOL): Define.
1655 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1656 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1657 * mips-tdep.c (mips_call_dummy_address): Delete function.
1658 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1659 set call_dummy_address.
1660
1661 2003-08-07 Andrew Cagney <cagney@redhat.com>
1662
1663 * language.c (op_error): Delete function.
1664 (binop_type_check): Delete function.
1665 * language.h (type_op_error, range_op_error): Delete macros.
1666 (op_error): Delete declaration.
1667
1668 2003-08-07 Andrew Cagney <cagney@redhat.com>
1669
1670 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1671
1672 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1673
1674 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1675 (x86_64_push_arguments): Skip the red zone.
1676
1677 2003-08-05 Andrew Cagney <cagney@redhat.com>
1678
1679 * reggroups.c (reggroup_next): Check for the final entry.
1680
1681 2003-08-04 Andrew Cagney <cagney@redhat.com>
1682
1683 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1684 * cli/cli-script.c (define_command): Call query directly, instead
1685 of passing it a buffer.
1686 * ocd.c (ocd_error): Pass error a constant format string.
1687 * remote-mips.c (mips_error): Use fputs_filtered.
1688
1689 * solib-svr4.c (_initialize_svr4_solib): Update
1690 register_gdbarch_data call.
1691 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1692
1693 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1694 (register_gdbarch_data): Delete "free" parameter. Update
1695 comments.
1696 * gdbarch.h, gdbarch.c: Re-generate.
1697 * reggroups.c (_initialize_reggroup): Update.
1698 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1699 * frame-base.c (_initialize_frame_base): Update.
1700 * frame-unwind.c (_initialize_frame_unwind): Update.
1701 * user-regs.c (_initialize_user_regs): Update.
1702 * remote.c (_initialize_remote): Update.
1703 * regcache.c (_initialize_regcache): Update.
1704
1705 * regcache.c (xfree_regcache_descr): Delete function.
1706 (_initialize_regcache): Update call to register_gdbarch_data.
1707 (init_regcache_descr, init_legacy_regcache_descr): Use
1708 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1709
1710 * remote.c (free_remote_state): Delete function.
1711 (_initialize_remote): Update register_gdbarch_data.
1712 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1713 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1714
1715 2003-08-04 Andrew Cagney <cagney@redhat.com>
1716
1717 * reggroups.c (struct reggroup_el): Define.
1718 (struct reggroups): Delete field "nr_group". Replace array
1719 "group" with a "first" to "last" linked list.
1720 (reggroups_init): Update. Allocate using gdbarch's obstack.
1721 (reggroups_free): Delete function.
1722 (add_group): Update. Add "el" parameter.
1723 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1724 (default_groups): Update.
1725 (reggroup_next): Replace reggroups.
1726 (reggroups_dump): Update.
1727 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1728 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1729 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1730
1731 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1732
1733 * Makefile.in (tui-interp.o): Update dependencies.
1734
1735 2003-08-04 David Carlton <carlton@kealia.com>
1736
1737 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1738 to internal_error call.
1739 * source.c (forward_search_command): Add "%s" format argument.
1740 (reverse_search_command): Ditto.
1741 * top.c (quit_confirm): Ditto.
1742 * cli/cli-setshow.c (do_setshow_command): Ditto.
1743 * cp-valprint.c (cp_print_class_method): Replace
1744 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1745 (cp_print_class_member): Ditto.
1746 * event-top.c (command_line_handler): Ditto.
1747 * linux-proc.c (linux_info_proc_cmd): Ditto.
1748 * p-typeprint.c (pascal_type_print_base): Ditto.
1749 * p-valprint.c (pascal_object_print_class_method): Ditto.
1750 (pascal_object_print_class_member): Ditto.
1751 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1752 * remote.c (remote_cisco_section_offsets): Ditto.
1753 * top.c (command_line_input): Ditto.
1754 * utils.c (vwarning,error_stream,quit): Ditto.
1755 * valprint.c (print_floating,print_binary_chars)
1756 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1757
1758 2003-08-04 Andrew Cagney <cagney@redhat.com>
1759
1760 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1761
1762 2003-08-02 Andrew Cagney <cagney@redhat.com>
1763
1764 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1765 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1766 amd64fbsd-nat.c.
1767
1768 2003-08-02 Andrew Cagney <cagney@redhat.com>
1769
1770 * Makefile.in: Update all dependencies and definitions.
1771
1772 2003-08-02 Adam Fedor <fedor@gnu.org>
1773
1774 * linespec.c (is_objc_method_format): New function
1775 (decode_line_1, locate_first_half): Use it.
1776 Fixes PR objc/1298
1777
1778 2003-08-01 Andrew Cagney <cagney@redhat.com>
1779
1780 * NEWS: Mention that m32r is multi-arch.
1781 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1782 * configure.tgt: Recognize m32r-*-*.
1783 * config/m32r/tm-m32r.h: Delete file.
1784 * config/m32r/m32r.mt: New file.
1785 * m32r-rom.c (m32r_upload_command): Use hostent only when
1786 gethostname succeeds, in order to avoid a compilation
1787 warning.
1788 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1789 compiler warning.
1790
1791 2003-08-01 Michael Snyder <msnyder@redhat.com>
1792
1793 * sh-tdep.c (sh_frame_align): New gdbarch method.
1794 (sh_gdbarch_init): Set up frame_align method.
1795
1796 2003-07-31 Michael Snyder <msnyder@redhat.com>
1797
1798 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1799 which is already covered by the new frames infrastructure.
1800
1801 2003-07-31 Andrew Cagney <cagney@redhat.com>
1802
1803 * user-regs.c (struct user_reg): Add "next" link.
1804 (struct user_regs): Replace "user" with "first" and "last" links.
1805 (append_user_reg): Add pre-allocated "reg" parameter.
1806 (builtin_user_regs): Provide initial value for "last".
1807 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1808 (user_regs_init): Allocate memory from the gdbarch obstack.
1809 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1810 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1811 linked list.
1812 (usernum_to_user_reg): New function.
1813 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1814 (value_of_user_reg): Use usernum_to_user_reg.
1815 (user_regs_free): Delete function.
1816 (_initialize_user_regs): Update register_gdbarch_data call.
1817
1818 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1819
1820 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1821
1822 2003-07-30 Michael Snyder <msnyder@redhat.com>
1823
1824 * value.h (value_being_returned): Add a struct_addr argument.
1825 * infcall.c (call_function_by_hand): Pass struct_addr to
1826 value_being_returned.
1827 * infcmd.c (print_return_value): Pass zero as struct_addr.
1828 * values.c (value_being_returned): If struct_addr is passed,
1829 use it instead of trying to recover it from the inferior.
1830
1831 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1832
1833 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1834 the prologue analyzer won't need to attempt to extract the pc
1835 value from the woefully incomplete dummy frame.
1836 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1837 possible. Disable code which modifies the frame.
1838
1839 2003-07-28 Andrew Cagney <cagney@redhat.com>
1840
1841 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1842 to level 2.
1843 (annotate_breakpoints_table, annotate_record): Ditto.
1844 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1845 (annotate_field_name_end, annotate_field_value): Ditto.
1846 (annotate_field_end, annotate_frame_source_begin): Ditto.
1847 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1848 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1849 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1850 (annotate_frame_address_end, annotate_frame_address): Ditto.
1851 (annotate_frame_args, annotate_frame_end): Ditto.
1852 (annotate_frame_where, annotate_arg_begin): Ditto.
1853 (annotate_arg_name_end, annotate_arg_value): Ditto.
1854 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1855 (annotate_function_call, annotate_signal_name): Ditto.
1856 (annotate_signal_string, annotate_signal_name_end): Ditto.
1857 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1858 (annotate_value_begin, annotate_value_history_value): Ditto.
1859 (annotate_value_history_end, annotate_value_end): Ditto.
1860 (annotate_display_begin, annotate_display_number_end): Ditto.
1861 (annotate_display_format, annotate_display_expression): Ditto.
1862 (annotate_display_expression_end, annotate_display_value): Ditto.
1863 (annotate_display_end, annotate_array_section_begin): Ditto.
1864 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1865 (annotate_elt, annotate_array_section_end): Ditto.
1866
1867 2003-07-28 Andrew Cagney <cagney@redhat.com>
1868
1869 * regcache.c (struct regcache_descr): Update comments on
1870 nr_raw_registers.
1871 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1872 sizeof_raw_register_valid_p.
1873 (init_regcache_descr): Set nr_raw_registers and
1874 sizeof_raw_register_valid_p before calling
1875 init_legacy_regcache_descr.
1876
1877 2003-07-28 Andrew Cagney <cagney@redhat.com>
1878
1879 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1880 MOD NUM_REGS.
1881
1882 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1883
1884 * thread.c (info_threads_command): Use get_selected_frame ().
1885 Check that there is at least one non-sentinel frame.
1886
1887 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1888
1889 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1890 (m68hc11_pop_frame): Remove.
1891 (m68hc11_frame_saved_pc): Remove.
1892 (m68hc11_frame_chain): Remove.
1893 (m68hc11_frame_init_saved_regs): Remove.
1894 (m68hc11_init_extra_frame_info): Remove.
1895 (m68hc11_store_struct_return): Remove.
1896 (m68hc11_saved_pc_after_call): Remove.
1897
1898 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1899
1900 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1901 frame unwind information.
1902 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1903 and adapted for frame unwinding.
1904 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1905 (m68hc11_unwind_pc): New function.
1906 (m68hc11_frame_unwind_cache): New function to analyze frames.
1907 (m68hc11_frame_this_id): New function to create new frame struct.
1908 (m68hc11_frame_prev_register): New function to unwind a register from
1909 the frame.
1910 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1911 (m68hc11_frame_p): New function for the above.
1912 (m68hc11_frame_base_address): New function to return fp of frame.
1913 (m68hc11_frame_args_address): Update for frame.
1914 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1915 (m68hc11_unwind_sp): New function.
1916 (m68hc11_unwind_dummy_id): New function.
1917 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1918 calls.
1919
1920 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1921
1922 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1923 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1924 when we are beyond the current pc.
1925
1926 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1927
1928 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1929 from m68hc11_push_arguments.
1930 (m68hc11_push_arguments): Remove.
1931 (m68hc11_push_return_address): Remove.
1932 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1933 handlers; remove deprecated_extra_stack_alignment_needed.
1934
1935 2003-07-27 Andrew Cagney <cagney@redhat.com>
1936
1937 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1938 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1939 REAL_PC and not the pointer.
1940 * hppa-hpux-tdep.c: Include frame.h
1941
1942 2003-07-27 Andrew Cagney <cagney@redhat.com>
1943
1944 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1945 GDB_MULTI_ACH_PARTIAL.
1946
1947 2003-07-27 Andrew Cagney <cagney@redhat.com>
1948
1949 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1950 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1951 operator at start and not end of line.
1952 (decode_prologue): Ditto.
1953 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1954 frame_unwind_register_unsigned instead of
1955 frame_unwind_unsigned_register.
1956 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1957 read_register.
1958 (m32r_push_dummy_call): Use register_size instead of
1959 REGISTER_RAW_SIZE.
1960 (m32r_frame_sniffer): Replace m32r_frame_p.
1961 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1962 * m32r-rom.c (report_transfer_performance): Delete extern
1963 declaration.
1964 (m32r_load, m32r_upload_command): Use print_transfer_performance
1965 instead of report_transfer_performance.
1966 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1967 / add_show_from_set.
1968
1969 2003-07-26 Andrew Cagney <cagney@redhat.com>
1970
1971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1972 store_return_value and extract_struct_value_address.
1973
1974 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1975
1976 PR c++/1267
1977 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1978 NULL, default to the section containing PC.
1979
1980 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1981
1982 * NEWS: Mention "regs" deprecated for m68hc11 too.
1983
1984 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1985 (m68hc11_print_register): New function to print out one register.
1986 (m68hc11_print_registers_info): New function to print registers.
1987 (show_regs): Deprecate and use the above.
1988 (m68hc11_gdbarch_init): Install the print_registers_info.
1989
1990 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1991
1992 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1993 that we have a SIGTRAP before returning non-zero.
1994
1995 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1996 Elena Zannoni <ezannoni@redhat.com>
1997
1998 * linespec.c (decode_line_2): Avoid crash if
1999 find_function_start_sal() returns empty record.
2000
2001 2003-07-23 Andreas Schwab <schwab@suse.de>
2002
2003 * ia64-tdep.c (ia64_print_insn): New function.
2004 (ia64_gdbarch_init): Set print_insn to it.
2005 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2006 deprecated_tm_print_insn_info.
2007
2008 2003-07-22 Michael Snyder <msnyder@redhat.com>
2009
2010 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2011 handle 8-bit returns (long long).
2012 (h8300h_extract_return_value): Ditto.
2013 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2014
2015 2003-07-22 Andrew Cagney <cagney@redhat.com>
2016
2017 * gdbarch.c Include "gdb_obstack.h".
2018 (struct gdbarch): Add an "obstack".
2019 (alloc_gdbarch_data): Allocate the gdbarch data using
2020 GDBARCH_OBSTACK_CALLOC.
2021 (free_gdbarch_data): Delete function.
2022 (gdbarch_obstack_zalloc): New function.
2023 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2024 Assert that the architecture is not initialized.
2025 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2026 vector from the obstack.
2027 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2028 architecture obstack.
2029 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2030 (set_gdbarch_data): Assert that the data is not initialized.
2031 (struct gdbarch_data): Delete member "free".
2032 (register_gdbarch_data): Do not initialize "free".
2033 * gdbarch.h, gdbarch.c: Re-generate.
2034
2035 2003-07-22 Andrew Cagney <cagney@redhat.com>
2036
2037 * configure.in (build_warnings): Add -Wformat-nonliteral.
2038 * configure: Re-generate.
2039
2040 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2041
2042 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2043
2044 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2045
2046 * findvar.c (read_var_value): Remove case for thread local storage
2047 variables. It is now entirely handled by the dwarf2 location
2048 expression code.
2049 * printcmd.c (address_info): Ditto.
2050 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2051 enumeration value.
2052 (struct symbol): Remove objfile field, which was used by
2053 LOC_THREAD_LOCAL_STATIC only.
2054 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2055 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2056 usage of objfile pointer.
2057 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2058 thread local variables.
2059 Add include of objfiles.h.
2060 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2061 storage variables.
2062 * Makefile.in (dwarf2loc.o): Update dependencies.
2063
2064 2003-07-22 Andrew Cagney <cagney@redhat.com>
2065
2066 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2067 get_frame_base.
2068 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2069 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2070 (struct value): Add opaque declaration.
2071 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2072
2073 2003-07-21 Andrew Cagney <cagney@redhat.com>
2074
2075 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2076 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2077
2078 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2079
2080 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2081 regcache_cooked_read_unsigned instead of read_register.
2082 (m68hc11_saved_pc_after_call): Likewise.
2083 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2084 instead of write_register.
2085 (m68hc11_register_type): New function.
2086 (m68hc11_register_virtual_type): Remove.
2087 (m68hc11_store_return_value): Convert to use the regcache.
2088 (m68hc11_extract_struct_value_address): Likewise.
2089 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2090 m68hc11_register_type; undeprecate store_return_value and
2091 extract_struct_value_address.
2092
2093 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2094
2095 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2096 and translate to use regcache.
2097 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2098
2099 2003-07-18 Andrew Cagney <cagney@redhat.com>
2100
2101 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2102 * gdbarch.h, gdbarch.c: Re-generate.
2103 * i386-tdep.c (i386_gdbarch_init): Do not set
2104 DWARF2_BUILD_FRAME_INFO.
2105 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2106 unconditionally.
2107 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2108 DWARF2_BUILD_FRAME_INFO.
2109
2110 2003-07-18 Andrew Cagney <cagney@redhat.com>
2111
2112 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2113 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2114
2115 2003-07-18 Andrew Cagney <cagney@redhat.com>
2116
2117 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2118 frame_unwind_address_in_block, instead of frame_pc_unwind.
2119 (dwarf2_frame_cache): Ditto.
2120
2121 2003-07-18 Andrew Cagney <cagney@redhat.com>
2122
2123 * user-regs.h (struct gdbarch): Declare opaque.
2124 * ui-out.h (struct ui_file): Declare opaque.
2125 * dwarf2-frame.h (struct frame_info): Declare opaque.
2126
2127 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2128
2129 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2130 #include "...".
2131 (procfs_meminfo): Change strerror to safe_strerror.
2132 (procfs_can_run): Remove K&R badness.
2133
2134 2003-07-17 Michael Snyder <msnyder@redhat.com>
2135
2136 * remote-sim.c: Comment typo fix.
2137
2138 2003-07-17 Andrew Cagney <cagney@redhat.com>
2139
2140 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2141 configure.
2142 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2143 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2144 GDB_MULTI_ARCH_PARTIAL.
2145
2146 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2147
2148 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2149 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2150 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2151
2152 2003-07-16 Theodore A. Roth <troth@openavr.org>
2153
2154 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2155 found.
2156 (avr_frame_unwind_cache): Don't unwind FP for main.
2157 Update a comment.
2158 Save the computed prev_sp.
2159 (avr_saved_regs_unwinder): Remove function.
2160 (avr_frame_prev_register): Use PC unwind logic from
2161 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2162
2163 2003-07-16 Andrew Cagney <cagney@redhat.com>
2164
2165 * frame-base.h (frame_base_p_ftype): Delete definition.
2166 (frame_base_append_predicate): Delete declaration.
2167 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2168 (frame_unwind_append_predicate): Delete declaration.
2169 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2170 (append_predicate): Delete parameter "p".
2171 (frame_unwind_append_predicate): Delete function.
2172 (frame_unwind_append_sniffer): Update call to append_predicate.
2173 (frame_unwind_free): Delete function.
2174 (_initialize_frame_unwind): Pass NULL as "free" to
2175 register_gdbarch_data.
2176 (frame_unwind_init): Append the dummy_frame_sniffer.
2177 (frame_unwind_find_by_frame): Simplify.
2178 * frame-base.c (struct frame_base_table): Delete field "p".
2179 (append_predicate): Delete parameter "p".
2180 (frame_base_append_predicate): Delete function.
2181 (frame_base_append_sniffer): Update call to append_predicate.
2182 (frame_base_free): Delete function.
2183 (frame_base_find_by_frame): Simplify.
2184 (_initialize_frame_base): Pass NULL as "free" to
2185 register_gdbarch_data.
2186 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2187 (x86_64_sigtramp_frame_sniffer): Replace
2188 "x86_64_sigtramp_frame_p".
2189 (x86_64_init_abi): Set the frame unwind sniffers.
2190 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2191 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2192 (m68k_gdbarch_init): Set the frame unwind sniffers.
2193 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2194 "i386_sigtramp_frame_p".
2195 (i386_frame_sniffer): Replace "i386_frame_p".
2196 (i386_gdbarch_init): Set the frame unwind sniffers.
2197 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2198 (avr_gdbarch_init): Set the frame unwind sniffers.
2199 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2200 "alpha_sigtramp_frame_p"
2201 (alpha_heuristic_frame_sniffer): Replace
2202 "alpha_heuristic_frame_p".
2203 (alpha_gdbarch_init): Set the frame unwind sniffers.
2204 (alpha_dwarf2_init_abi): Ditto.
2205 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2206 "alpha_debug_frame_p".
2207 (alpha_mdebug_frame_base_sniffer): Replace
2208 "alpha_mdebug_frame_base_p".
2209 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2210 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2211 (d10v_gdbarch_init): Set the frame unwind sniffer.
2212 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2213 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2214 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2215 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2216 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2217 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2218
2219 2003-07-16 Michael Snyder <msnyder@redhat.com>
2220
2221 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2222 should go thru sh_dsp_register_sim_regno, else the dsp regs
2223 will not get the right values.
2224
2225 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2226
2227 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2228 deprecated_store_floating by call to store_typed_floating.
2229 (sh_sh4_register_convert_to_raw): Substitute call to
2230 deprecated_extract_floating by call to extract_typed_floating.
2231
2232 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2233
2234 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2235
2236 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2237
2238 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2239 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2240 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2241 as possible.
2242 (do_pseudo_register): Remove.
2243 (sh_push_dummy_code): New function.
2244 (sh64_store_struct_return): Rename from sh_store_struct_return.
2245 Only called for sh64 now.
2246 (sh_extract_struct_value_address): Regcache'ify.
2247 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2248 and accomodate new tasks.
2249 (sh64_push_return_address): Rename from sh_push_return_address.
2250 Only called for sh64 now.
2251 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2252 Regcache'ify.
2253 (sh3e_sh4_extract_return_value): Regcache'ify.
2254 (sh_default_store_return_value): Ditto.
2255 (sh3e_sh4_store_return_value): Ditto.
2256 (sh_default_register_byte): Remove.
2257 (sh_sh4_register_byte): Remove.
2258 (sh_default_register_raw_size): Remove.
2259 (sh_sh4_register_raw_size): Remove.
2260 (sh_register_virtual_size): Remove.
2261 (sh_sh3e_register_virtual_type): Remove.
2262 (sh_sh3e_register_type): New function.
2263 (sh_sh4_register_virtual_type): Remove.
2264 (sh_sh4_register_type): New function.
2265 (sh_default_register_virtual_type): Remove.
2266 (sh_default_register_type): New function.
2267 (do_fv_register_info): Add parameters to accomodate call from
2268 sh_print_registers_info.
2269 (do_dr_register_info): Ditto.
2270 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2271 Add parameters to accomodate call from sh_print_registers_info.
2272 (sh_do_fp_register): Ditto.
2273 (sh64_do_pseudo_register): Call do_dr_register_info,
2274 do_fv_register_info and sh_do_fp_register with default parameters.
2275 (sh_do_register): Add parameters to accomodate call from
2276 sh_print_registers_info.
2277 (sh_print_register): Ditto.
2278 (sh_print_registers_info): Rename from sh_do_registers_info.
2279 Add parameters to be used as gdbarch_print_registers_info
2280 implementation. Accomodate removed do_pseudo_register function
2281 pointer.
2282 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2283 function pointer. Call sh_print_register with default parameters.
2284 (sh64_do_registers_info): Call sh_print_registers_info instead of
2285 sh_do_registers_info.
2286 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2287 detection of deprecated vs. non-deprecated functionality.
2288 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2289 function pointer assignments by direct function calls.
2290
2291 2003-07-15 Andrew Cagney <cagney@redhat.com>
2292
2293 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2294 (frame_register_unwind, create_new_frame): Ditto.
2295 (legacy_get_prev_frame, get_frame_type): Ditto.
2296 (get_frame_base_address): Use frame_base_find_by_frame.
2297 (get_frame_locals_address): Use frame_base_find_by_frame.
2298 (get_frame_args_address): Use frame_base_find_by_frame.
2299 * frame-base.h (frame_base_sniffer_ftype): Declare.
2300 (frame_base_append_sniffer): Declare.
2301 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2302 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2303 (frame_base_append_sniffer): New function.
2304 (frame_base_append_predicate): Add a NULL sniffer.
2305 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2306 (struct frame_base_table): Add "sniffer".
2307 (frame_base_free): Free the "sniffer" table.
2308 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2309 (frame_unwind_append_sniffer): Declare.
2310 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2311 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2312 (struct frame_unwind_table): Add "sniffer", delete "middle".
2313 (append_predicate): Add "sniffer" parameter, append the sniffer.
2314 (frame_unwind_init): Update append_predicate call.
2315 (frame_unwind_append_sniffer): New function.
2316 (frame_unwind_append_predicate): Update append_predicate call.
2317 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2318
2319 2003-07-15 Andrew Cagney <cagney@redhat.com>
2320
2321 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2322 before code inhibiting repeated unwind attempts. Add to
2323 commentary on that test's problems.
2324 * blockframe.c (inside_main_func): Look for "main" in the minimal
2325 symbol table.
2326 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2327 identical.
2328
2329 2003-07-15 Andrew Cagney <cagney@redhat.com>
2330
2331 * complaints.c (struct explanation): Define.
2332 (struct complaints): Change type of "explanation" to "struct
2333 explanation".
2334 (symfile_explanations): Convert to a "struct explanation" table.
2335 (vcomplaint): Update.
2336
2337 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2338
2339 * x86-64-linux-nat.c (regmap): Removed.
2340 (supply_gregset, fill_gregset): Call
2341 x86_64_linux_(fill,supply)_gregset functions.
2342 * x86-64-linux-tdep.c (USER_*): New defines.
2343 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2344 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2345 New functions.
2346 (fetch_core_registers): Ditto.
2347 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2348 * x86-64-linux-tdep.h: New file.
2349 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2350 and core-regset.o.
2351 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2352
2353 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2354
2355 * x86-64-tdep.c (x86_64_store_return_value): Use
2356 regcache_cooked_write_part instead of regcache_cooked_write.
2357
2358 * configure.host: Add x86_64-*-freebsd*.
2359 * configure.tgt: Add x86_64-*-freebsd*.
2360 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2361 * amd64fbsd-nat.c: New file.
2362 * amd64fbsd-tdep.c: New file.
2363 * config/i386/nm-fbsd64.h: New file.
2364 * config/i386/fbsd64.mh: New file.
2365 * config/i386/fbsd64.mt: New file.
2366
2367 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2368
2369 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2370 `sc_regs_offset' and `sc_fpregs_offset'.
2371 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2372 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2373 (alpha_sigtramp_register_address): Rewrite to use new members of
2374 `struct gdbarch_tdep'.
2375 (alpha_gdbarch_init): Initialize new members of struct
2376 gdbarch_tdep'.
2377 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2378 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2379 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2380 (alphafbsd_pc_in_sigtramp): Implement.
2381 (alphafbsd_sigtramp_offset): New function.
2382 (alphafbsd_sigcontext_addr): New function.
2383 (alphafbsd_init_abi): Initialize signal trampoline related members
2384 of `struct gdbarch_tdep'.
2385 (_initialize_alphafbsd_tdep): Add prototype.
2386
2387 2003-07-11 Theodore A. Roth <troth@openavr.org>
2388
2389 * Makefile.in (install-only): Quote sed expression when generating
2390 transformed_name.
2391
2392 2003-07-11 Richard Henderson <rth@redhat.com>
2393
2394 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2395 * dwarf2-frame.c: Include complaints.h.
2396 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2397 variable initialization; return NULL on error.
2398 (decode_frame_entry): New.
2399
2400 2003-07-11 Andrew Cagney <cagney@redhat.com>
2401
2402 * frame.h (frame_address_in_block): Delete declaration.
2403 * blockframe.c (frame_address_in_block): Delete function.
2404 (get_frame_block): Use get_frame_address_in_block.
2405 (block_innermost_frame): Ditto.
2406 * stack.c (print_frame, backtrace_command_1): Ditto.
2407
2408 * frame.h (get_frame_address_in_block): Declare.
2409 (frame_unwind_address_in_block): Declare.
2410 * frame.c (frame_unwind_address_in_block): New function.
2411 (get_frame_address_in_block): New function.
2412
2413 2003-07-10 Andrew Cagney <cagney@redhat.com>
2414
2415 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2416 pre-default. Note: re-generate has no effect.
2417
2418 2003-07-10 Andrew Cagney <cagney@redhat.com>
2419
2420 * gdbarch.sh: When a variable, but not a function, compare against
2421 0. Fix problem in previous patch.
2422 * gdbarch.c: Re-generate.
2423
2424 2003-07-10 Andrew Cagney <cagney@redhat.com>
2425
2426 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2427 functions against NULL, not 0.
2428 * gdbarch.c: Re-generate.
2429
2430 2003-07-10 Fred Fish <fnf@ninemoons.com>
2431
2432 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2433 null string instead of a null pointer.
2434 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2435
2436 2003-07-09 Michael Snyder <msnyder@redhat.com>
2437
2438 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2439
2440 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2441
2442 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2443 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2444 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2445 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2446 * x86-64-tdep.c: ... from here.
2447
2448 2003-07-09 Andreas Schwab <schwab@suse.de>
2449
2450 * m68k-tdep.h (enum struct_return): Define.
2451 (struct gdbarch_tdep): Add struct_return.
2452 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2453 bytes are padded to the right, not to the left. Pass struct value
2454 address in register %a1, not on stack.
2455 (m68k_use_struct_convention): New function.
2456 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2457 struct_return in tdep to pcc_struct_return.
2458 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2459 reg_struct_return.
2460
2461 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2462
2463 * somread.c (som_symfile_offsets): Fix compilation error.
2464
2465 2003-07-09 Andrew Cagney <cagney@redhat.com>
2466
2467 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2468 Add comments about the checks.
2469
2470 2003-07-08 Andrew Cagney <cagney@redhat.com>
2471
2472 * Makefile.in: Make dependency section headers consistent.
2473 (config_h): Move to $BUILD headers section.
2474 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2475 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2476 (ada-exp.tab.c): Move to YACC/LEX section.
2477 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2478 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2479
2480 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2481
2482 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2483 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2484 of strerror with safe_strerror, use ISO C function definitions,
2485 and replace instances of sprintf with snprintf.
2486
2487 2003-07-07 Andrew Cagney <cagney@redhat.com>
2488
2489 * frame.c (get_prev_frame): Enable check for identical frames.
2490 Update comments. Update error messages.
2491
2492 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2493
2494 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2495
2496 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2497
2498 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2499 sort_symtab_syms, no longer necessary.
2500
2501 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2502
2503 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2504
2505 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2506
2507 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2508 (mips_register_byte): Likewise.
2509
2510 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2511
2512 * Makefile.in (sparc_tdep_h): New.
2513 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2514 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2515 * sparc-linux-nat.c: Include "sparc-tdep.h".
2516 * sparc-nat.c: Likewise.
2517 * sparc-tdep.c: Likewise.
2518 * sparc64nbsd-nat.c: Likewise.
2519 * sparcnbsd-nat.c: Likewise.
2520 * sparcnbsd-tdep.c: Likewise.
2521 * sparc-tdep.h: New file.
2522 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2523 and sparc_npc_regnum.
2524
2525 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2526
2527 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2528 (mips_linux_cannot_store_register): List supported instead of
2529 unsupported registers.
2530
2531 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2532
2533 * disasm.c (dump_insns): Separate instructions from addresses.
2534
2535 2003-07-07 Andreas Schwab <schwab@suse.de>
2536
2537 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2538 dependencies.
2539 * m68k-tdep.c (NUM_FREGS): Delete.
2540 (SIG_PC_FP_OFFSET): Delete.
2541 (TARGET_M68K): Delete.
2542 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2543 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2544 P_MOVEL_SP, P_MOVEML_SP): Define.
2545 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2546 P_TRAP): Delete.
2547 (m68k_register_raw_size): Delete.
2548 (m68k_register_virtual_size): Delete.
2549 (m68k_register_type): Renamed from m68k_register_virtual_type and
2550 add gdbarch argument.
2551 (m68k_store_struct_return): Delete.
2552 (m68k_deprecated_extract_return_value): Delete.
2553 (m68k_deprecated_extract_struct_value_address): Delete.
2554 (m68k_frame_chain): Delete.
2555 (m68k_frame_saved_pc): Delete.
2556 (m68k_fix_call_dummy): Delete.
2557 (m68k_push_dummy_frame): Delete.
2558 (m68k_pop_frame): Delete.
2559 (m68k_extract_return_value): New function.
2560 (m68k_store_return_value): Rewrite using regcache.
2561 (m68k_extract_struct_value_address): Rewrite using regcache.
2562 (m68k_push_dummy_call): New function.
2563 (struct m68k_frame_cache): Define.
2564 (m68k_alloc_frame_cache): New function.
2565 (m68k_analyze_frame_setup): New function.
2566 (m68k_analyze_register_saves): New function.
2567 (m68k_analyze_prologue): New function.
2568 (m68k_skip_prologue): Rewrite using above functions.
2569 (m68k_unwind_pc): New function.
2570 (m68k_frame_cache): New function.
2571 (m68k_frame_this_id): New function.
2572 (m68k_frame_prev_register): New function.
2573 (m68k_frame_unwind): New variable.
2574 (m68k_frame_p): New function.
2575 (m68k_sigtramp_frame_cache): New function.
2576 (m68k_sigtramp_frame_this_id): New function.
2577 (m68k_sigtramp_frame_prev_register): New function.
2578 (m68k_sigtramp_frame_unwind): New variable.
2579 (m68k_sigtramp_frame_p): New function.
2580 (m68k_frame_base_address): New function.
2581 (m68k_frame_base): New function.
2582 (m68k_unwind_dummy_id): New function.
2583 (fill_gregset): Use regcache_collect.
2584 (fill_fpregset): Likewise.
2585 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2586 defined.
2587 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2588 deprecated_init_frame_pc, deprecated_store_struct_return,
2589 deprecated_extract_return_value, deprecated_store_return_value,
2590 deprecated_frame_chain, deprecated_frame_saved_pc,
2591 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2592 deprecated_register_virtual_size,
2593 deprecated_max_register_raw_size,
2594 deprecated_max_register_virtual_size,
2595 deprecated_register_virtual_type, deprecated_register_size,
2596 deprecated_register_byte, deprecated_register_bytes,
2597 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2598 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2599 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2600 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2601 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2602 deprecated_push_dummy_frame, deprecated_pop_frame,
2603 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2604 only if SYSCALL_TRAP is defined. Set extract_return_value,
2605 store_return_value, extract_struct_value_address, register_type,
2606 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2607 predicates.
2608 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2609 M68K_MAX_REGISTER_SIZE): Define.
2610 (struct m68k_sigtramp_info): Define.
2611 (struct gdbarch_tdep): Add get_sigtramp_info.
2612 * m68klinux-nat.c (fetch_register): Use register_size instead of
2613 REGISTER_RAW_SIZE. Don't put assignment in if.
2614 (store_register): Likewise.
2615 (fetch_inferior_registers): Likewise.
2616 (store_inferior_registers): Likewise.
2617 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2618 (m68k_linux_frame_saved_pc): Delete.
2619 (m68k_linux_sigcontext_reg_offset,
2620 m68k_linux_ucontext_reg_offset): Define.
2621 (m68k_linux_get_sigtramp_info): New function.
2622 (m68k_linux_extract_return_value): Rewrite using regcache.
2623 (m68k_linux_store_return_value): Likewise.
2624 (m68k_linux_extract_struct_value_address): Likewise.
2625 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2626 Don't set deprecated_frame_saved_pc,
2627 deprecated_extract_return_value, deprecated_store_return_value,
2628 deprecated_extract_struct_value_address. Set
2629 extract_return_value, store_return_value,
2630 extract_struct_value_address.
2631
2632 2003-07-07 Andrew Cagney <cagney@redhat.com>
2633
2634 * expprint.c: Include "user-regs.h" instead of "frame.h".
2635 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2636 frame_map_regnum_to_name.
2637 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2638 (frame_map_name_to_regnum): Simplify, call
2639 user_reg_map_name_to_regnum.
2640 (frame_map_regnum_to_name): Simplify, call
2641 user_reg_map_regnum_to_name.
2642 (frame_register_unwind): Update.
2643 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2644 (_initialize_frame_reg): Call user_reg_add_builtin.
2645 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2646 (value_of_register): Use value_of_user_reg.
2647 * eval.c (evaluate_subexp_standard): Update.
2648 * parse.c (write_dollar_variable): Update.
2649 * d10v-tdep.c (d10v_print_registers_info): Update.
2650 * infcmd.c (registers_info): Update.
2651 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2652 (builtin_regs_h): Delete macro.
2653 (user_regs_h): Define.
2654 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2655 (builtin-regs.o): Delete target.
2656 (user-regs.o): Specify dependencies.
2657 (expprint.o): Update dependencies.
2658 (findvar.o): Update dependencies.
2659 (frame.o): Update dependencies.
2660 (std-regs.o): Update dependencies.
2661
2662 2003-07-06 Christopher Faylor <cgf@redhat.com>
2663
2664 * win32-nat.c (solib_symbols_add): Use one variable for all section
2665 address stuff. Pass variable rather than address of variable to
2666 safe_symbol_file_add.
2667
2668 2003-07-06 Andreas Schwab <schwab@suse.de>
2669
2670 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2671
2672 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2673
2674 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2675
2676 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2677
2678 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2679
2680 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2681
2682 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2683 * config/i386/nto.mh: New file.
2684 * config/i386/nm-nto.h: New file.
2685 * configure.host: Add i[3456]86-*-nto*.
2686
2687 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2688
2689 * remote-vx.c (vx_add_symbols): Fix compilation error.
2690
2691 2003-07-03 Andrew Cagney <cagney@redhat.com>
2692
2693 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2694 * gdbarch.h, gdbarch.c: Re-generate.
2695 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2696 (legacy_register_name): Declare.
2697 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2698 (REGISTER_NAME): Define.
2699 * sparc-tdep.c (legacy_register_name): New function.
2700 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2701 (REGISTER_NAME): Define.
2702 (hppa64_register_name): Declare.
2703 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2704 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2705 (hppa64_register_name): New function.
2706 (hppa_register_name): New function.
2707 * arch-utils.c (legacy_register_name): Delete.
2708 * arch-utils.h (legacy_register_name): Delete.
2709
2710 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2711
2712 * cli/cli-interp.c (cli_interpreter_resume): Update the
2713 cli_uiout's stream to gdb_stdout.
2714
2715 2003-07-03 Andrew Cagney <cagney@redhat.com>
2716
2717 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2718 predicate.
2719 * gdbarch.h, gdbarch.c: Re-generate.
2720 * regcache.c (init_regcache_descr): Use legacy code when either
2721 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2722
2723 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2724
2725 * NEWS: Move "set logging" entry into GDB 6.0 section.
2726
2727 2003-07-02 Jim Blandy <jimb@redhat.com>
2728
2729 * s390-tdep.c (struct frame_extra_info): new member:
2730 'stack_bought_valid'.
2731 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2732 initialize fextra_info->stack_bought.
2733 (s390_frameless_function_invocation): Don't trust the value of
2734 fextra_info_ptr->stack_bought unless
2735 fextra_info->stack_bought_valid is set.
2736
2737 New S390 prologue analyzer.
2738 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2739 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2740 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2741 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2742 compute_x_addr, s390_on_stack, s390_store,
2743 s390_get_signal_frame_info): New functions.
2744 (S390_NUM_SPILL_SLOTS): New macro.
2745 (s390_get_frame_info): Rewritten.
2746 (is_arg_reg): Deleted.
2747
2748 Break out the decoding of S/390 instructions into separate
2749 functions, to make it more legible, and easier to check
2750 against the spec.
2751 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2752 is_rx, is_rxe): New functions.
2753 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2754 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2755 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2756 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2757 enums for opcode values. (Is this an improvement?)
2758
2759 2003-07-02 Andrew Cagney <cagney@redhat.com>
2760
2761 * i386-tdep.c: Revert change committed as part of trad-frame code
2762 below.
2763
2764 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2765
2766 * breakpoint.c (insert_catchpoint): Make static.
2767
2768 2003-07-02 Andreas Schwab <schwab@suse.de>
2769
2770 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2771 former ia64_push_arguments and ia64_push_return_address, and use
2772 regcache functions instead of read/write_register.
2773 (ia64_gdbarch_init): Set push_dummy_call instead of
2774 deprecated_push_arguments and deprecated_push_return_address.
2775
2776 2003-07-01 Andreas Jaeger <aj@suse.de>
2777
2778 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2779 before the call.
2780 Set %rax only to number of SSE registers used.
2781
2782 2003-07-01 Andrew Cagney <cagney@redhat.com>
2783
2784 * trad-frame.h: Update comments, a -1 .addr is reserved.
2785 (trad_frame_value_p, trad_frame_addr_p): Declare.
2786 (trad_frame_reg_p): Declare.
2787 (trad_frame_set_value): Rename trad_frame_register_value.
2788 (trad_frame_set_unknown): Declare.
2789 * trad-frame.c (trad_frame_realreg_p): New function.
2790 (trad_frame_addr_p, trad_frame_value_p): New function.
2791 (trad_frame_set_unknown): New function.
2792 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2793 (trad_frame_prev_register): Use trad_frame_realreg_p,
2794 trad_frame_addr_p and trad_frame_value_p.
2795 (trad_frame_set_value): Rename trad_frame_register_value.
2796 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2797 and trad_frame_set_value.
2798
2799 2003-06-30 Jim Blandy <jimb@redhat.com>
2800
2801 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2802 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2803 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2804 for 16 registers, and then 32 more bytes.
2805 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2806 New macros.
2807 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2808 Move up in the file, since it's now used by is_simple_arg.
2809 (is_simple_arg): Don't assume registers are four bytes long.
2810 Exclude all double arguments. Extended floats are not simple
2811 args.
2812 (is_power_of_two): New function.
2813 (pass_by_copy_ref): Call is_power_of_two, and check that the
2814 length fits in a register, rather than listing all the acceptable
2815 sizes. Extended floats are not passed by reference.
2816 (s390_push_arguments): Don't assume registers are four bytes long.
2817 Reserve an argument register to point to the buffer for structures
2818 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2819 S390_STACK_FRAME_OVERHEAD.
2820
2821 2003-06-30 Andreas Schwab <schwab@suse.de>
2822
2823 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2824 format error message.
2825
2826 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2827
2828 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2829
2830 2003-06-30 David Carlton <carlton@kealia.com>
2831
2832 Band-aid for PR c++/1245.
2833 * Makefile.in (cp-support.o): Depend on complaints_h.
2834 * cp-support.c: Include complaints.h. Add declaration for
2835 find_last_component.
2836 (cp_find_first_component): Separate code into
2837 cp_find_first_component_aux.
2838 (cp_find_first_component_aux): Call demangled_name_complaint.
2839 (demangled_name_complaint): New.
2840
2841 2003-06-30 Andrew Cagney <cagney@redhat.com>
2842
2843 * remote.c (remote_write_bytes): Explicitly compute and then use
2844 the payload size. Update comments to reflect. Fixes problem of
2845 GDB not sending small packets as found by Fred Fish.
2846
2847 2003-06-30 Andrew Cagney <cagney@redhat.com>
2848
2849 * remote.c (remote_async_wait): Fix -Wformat problem.
2850
2851 2003-06-29 Andrew Cagney <cagney@redhat.com>
2852
2853 * remote.c (remote_wait): Call error, and not warning, when the
2854 packet is corrupt.
2855 (remote_async_wait): Ditto.
2856
2857 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2858
2859 * sparc-tdep.c (sparc_y_regnum): Make external again.
2860
2861 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2862
2863 * cli/cli-logging.c (pop_output_files): Add void to function
2864 definition.
2865
2866 2003-06-29 Andrew Cagney <cagney@redhat.com>
2867
2868 * frame.c (frame_register_unwind): Use unsigned char when dumping
2869 the buffer contents.
2870
2871 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2872
2873 * cli/cli-logging.c: New file.
2874 * cli-out.c (struct ui_out_data): Add original_stream.
2875 (cli_redirect): New function.
2876 (cli_ui_out_impl): Add cli_redirect.
2877 (cli_out_new): Initialize original_stream.
2878 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2879 (uo_redirect, ui_out_redirect): New.
2880 * ui-out.h (struct ui_out_impl): Add redirect member.
2881 (redirect_ftype): New.
2882 (ui_out_redirect): Add prototype.
2883 * Makefile.in: Add rules for cli-logging.c.
2884 * NEWS: Mention "set logging".
2885
2886 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2887
2888 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2889
2890 2003-06-27 Andrew Cagney <cagney@redhat.com>
2891
2892 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2893 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2894 * avr-tdep.c (avr_call_dummy_address): Delete function.
2895 (avr_gdbarch_init): Do not set call_dummy_address.
2896
2897 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2898
2899 * symfile.c (syms_from_objfile): Move variables to inner block.
2900 Move the checks for the non-mainline case a bit earlier to avoid
2901 doing some useless computations.
2902
2903 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2904
2905 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2906
2907 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2908
2909 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2910 sections.
2911
2912 2003-06-26 Michael Chastain <mec@shout.net>
2913
2914 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2915 gdb/testsuite/gdb.c++/pr-1210.exp.
2916
2917 2003-06-26 Andrew Cagney <cagney@redhat.com>
2918
2919 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2920 altivec_expression.h and altivec_registers.h.
2921
2922 2003-06-26 Andrew Cagney <cagney@redhat.com>
2923
2924 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2925 info->mach when MIPS16. Patch suggested by Fred Fish.
2926
2927 2003-06-26 Andrew Cagney <cagney@redhat.com>
2928
2929 * utils.c (internal_vproblem): Print the problem to a reason
2930 buffer and then pass to query. Make the msg variable more local.
2931
2932 2003-06-26 Andrew Cagney <cagney@redhat.com>
2933
2934 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2935 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2936 * gdbarch.h, gdbarch.c: Re-generate.
2937 * frame-base.c (default_frame_args_address): Update. Use
2938 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2939 not available.
2940 (default_frame_locals_address): Ditto for
2941 DEPRECATED_FRAME_LOCALS_ADDRESS.
2942 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2943 (vax_frame_num_args): Update.
2944 (vax_gdbarch_init): Update.
2945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2946 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2947 * mcore-tdep.c (mcore_gdbarch_init): Update.
2948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2949 * ia64-tdep.c (ia64_gdbarch_init): Update.
2950 * symtab.h (address_class): Update comments.
2951 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2952 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2953 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2954 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2955 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2956 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2957 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2958 * alpha-mdebug-tdep.c: Update.
2959 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2960
2961 2003-06-26 Andreas Jaeger <aj@suse.de>
2962
2963 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2964 of SSE registers so that varargs functions work. Rework handling
2965 of passing arguments on the stack.
2966 (x86_64_store_return_value): Return double and float values in SSE
2967 register.
2968
2969 2003-06-24 Michael Chastain <mec@shout.net>
2970
2971 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2972 the "constructor breakpoints ignored" bug.
2973
2974 2003-06-25 David Carlton <carlton@kealia.com>
2975
2976 * MAINTAINERS: Update e-mail address.
2977
2978 2003-06-24 Jim Blandy <jimb@redhat.com>
2979
2980 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2981
2982 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2983 function.
2984 (ppc_linux_init_abi): Register it as the
2985 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2986
2987 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2988 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2989 method.
2990
2991 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2992 (ppc64_standard_linkage_target): Use it.
2993
2994 2003-06-23 Andrew Cagney <cagney@redhat.com>
2995
2996 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2997 for 0 "int0" and 4 "int32" sized registers.
2998 * gdbtypes.c (builtin_type_int0): Define.
2999 (build_gdbtypes): Initialize builtin_type_int0.
3000 * gdbtypes.h (builtin_type_int0): Declare.
3001
3002 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3003
3004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3005 as characters are unsigned.
3006
3007 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3008
3009 PR gdb/1179
3010 * dwarfread.c (struct_type): Skip static fields without crashing.
3011
3012 2003-06-22 Andrew Cagney <cagney@redhat.com>
3013
3014 GDB 6.0 branch created.
3015 * README: Update.
3016 * PROBLEMS: Update. Empty.
3017 * NEWS: Update.
3018
3019 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3020
3021 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3022 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3023
3024 2003-06-22 Andrew Cagney <cagney@redhat.com>
3025
3026 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3027 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3028 Velikov.
3029
3030 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3031
3032 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3033 compilers.
3034
3035 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3036
3037 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3038 argument of val_print.
3039 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3040 to the address argument of baseclass_offset or target_read_memory.
3041 Do add it to the argument of cp_print_value_fields.
3042
3043 2003-06-21 Andrew Cagney <cagney@redhat.com>
3044
3045 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3046 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3047 instead of 0..NUM_REGS.
3048 (mips_register_reggroup_p): New function.
3049 (mips_pseudo_register_write): New function.
3050 (mips_pseudo_register_read): New function.
3051 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3052 based on the register's type.
3053 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3054 cooked.
3055 (mips_get_saved_register): Simplify. Assert that REGNO is a
3056 pseudo / cooked.
3057 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3058 (mips_register_type): Replace mips_register_virtual_type. Map
3059 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3060 when available.
3061 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3062 that the register is cooked / virtual.
3063 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3064 Only get the extra info when needed.
3065 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3066 (mips32_heuristic_proc_desc): Fetch the cooked register.
3067 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3068 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3069 (mips_print_register): Use gdbarch_register_type, instead of
3070 REGISTER_VIRTUAL_TYPE.
3071 (print_gp_register_row): Use gdbarch_register_type, instead of
3072 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3073 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3074 Print the pseudo / cooked registers.
3075 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3076 Print the pseudo / cooked registers.
3077 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3078 REG_NUM is pseudo / cooked.
3079 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3080 (mips_n32n64_xfer_return_value): Ditto.
3081 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3082 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3083 (mips_register_sim_regno): New function.
3084 (mips_gdbarch_init): Set deprecated_register_byte,
3085 register_group_p, pseudo_register_write, pseudo_register_read,
3086 register_sim_regno, and num_pseudo_regs. Set register_type,
3087 instead of register_virtual_type.
3088 * Makefile.in (mips-tdep.o): Update dependencies.
3089 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3090 REGISTER_VIRTUAL_TYPE.
3091 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3092 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3093 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3094 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3095 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3096
3097 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3098
3099 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3100 * cli/cli-cmds.c: Include "gdb_vfork.h".
3101 (shell_escape): Use vfork.
3102
3103 2003-06-21 Andrew Cagney <cagney@redhat.com>
3104
3105 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3106 32 bit floating-point register saves.
3107
3108 * frame.h (deprecated_unwind_get_saved_register): Delete.
3109 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3110 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3111 and deprecated_get_next_frame_hack instead of
3112 deprecated_unwind_get_saved_register.
3113
3114 * mips-tdep.c (mips_dump_tdep): Do not print
3115 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3116
3117 * frame.c (get_frame_register): New function.
3118 (frame_unwind_register_signed): New function.
3119 (get_frame_register_signed): New function.
3120 (frame_unwind_register_unsigned): New function.
3121 (get_frame_register_unsigned): New function.
3122 * frame.h: Add comments on naming schema.
3123 (get_frame_register, frame_unwind_register_signed): Declare.
3124 (get_frame_register_signed, get_frame_register_signed): Declare.
3125 (frame_unwind_register_unsigned): Declare.
3126 (get_frame_register_unsigned): Declare.
3127
3128 2003-06-20 Theodore A. Roth <troth@openavr.org>
3129
3130 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3131
3132 2003-06-20 Theodore A. Roth <troth@openavr.org>
3133
3134 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3135 (avr_read_sp): Ditto.
3136
3137 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3138
3139 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3140 * config/arm/nm-linux.h: Likewise.
3141 * config/arm/tm-linux.h: Likewise.
3142 * config/ia64/nm-linux.h: Likewise.
3143 * config/ia64/tm-ia64.h: Likewise.
3144 * config/s390/tm-linux.h: Likewise.
3145 * config/s390/tm-s390.h: Likewise.
3146 * s390-nat.c: Likewise.
3147 * s390-tdep.c: Likewise.
3148
3149 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3150 * config/ia64/linux.mt: Likewise.
3151 * config/m68k/linux.mh: Likewise.
3152 * config/mips/linux.mt: Likewise.
3153 * config/powerpc/linux.mh: Likewise.
3154 * config/sh/linux.mt: Likewise.
3155
3156 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3157
3158 * solib.c (solib_open): Change tests for whether to search
3159 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3160 comments.
3161
3162 2003-06-19 Theodore A. Roth <troth@openavr.org>
3163
3164 * avr-tdep.c (avr_frame_address): Delete function.
3165 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3166 set_gdbarch_frame_args_address.
3167
3168 2003-06-19 Andrew Cagney <cagney@redhat.com>
3169
3170 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3171 (REGISTER_CONVERT_FROM_TYPE): Delete.
3172 (mips_register_convert_to_type): Delete declaration.
3173 (mips_register_convert_from_type): Delete declaration.
3174 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3175 kernel/.
3176
3177 2003-06-19 Michael Snyder <msnyder@redhat.com>
3178
3179 * linux-nat.h: New file.
3180 * linux-nat.c: Include linux-nat.h.
3181 * lin-lwp.c: Include linux-nat.h.
3182 Move struct lwp_info def to linux-nat.h.
3183 * linux-proc.c: Include linux-nat.h.
3184 (linux_make_note_section): Iterate over lwps instead of threads.
3185 (linux_do_thread_registers): Use lwp instead of merged pid.
3186 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3187 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3188 Add dependency on linux_nat_h.
3189
3190 2003-06-19 Theodore A. Roth <troth@openavr.org>
3191
3192 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3193
3194 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3195
3196 * varobj.c (get_type, get_target_type): Use check_typedef.
3197
3198 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3199
3200 * breakpoint.c (insert_catchpoint): Call internal_error.
3201
3202 2003-06-19 Theodore A. Roth <troth@openavr.org>
3203
3204 * avr-tdep.c (avr_push_dummy_code): Delete function.
3205 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3206
3207 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3208
3209 * arch-utils.c (default_prepare_to_proceed): Remove.
3210 (generic_prepare_to_proceed): Remove.
3211 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3212 (generic_prepare_to_proceed): Remove prototype.
3213 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3214 * gdbarch.c: Regenerate.
3215 * gdbarch.h: Regenerate.
3216 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3217 * hppah-nat.c (hppa_switched_threads): Remove.
3218 * infrun.c (prepare_to_proceed): New static function, copied from
3219 generic_prepare_to_proceed. Remove select_it argument.
3220 (proceed): Call prepare_to_proceed.
3221 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3222 variables.
3223 (ptrace_wait): Don't set the removed variables.
3224 (hppa_switched_threads): Remove.
3225 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3226 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3227 (lin_lwp_prepare_to_proceed): Remove prototype.
3228 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3229 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3230
3231 2003-06-18 Theodore A. Roth <troth@openavr.org>
3232
3233 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3234 trad-frame.h.
3235 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3236 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3237 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3238 (AVR_PROLOGUE_*): Enumerate prologue types.
3239 (struct frame_extra_info): Remove.
3240 (struct avr_unwind_cache): Define.
3241 (avr_write_sp): Delete function.
3242 (avr_read_fp): Ditto.
3243 (avr_init_extra_frame_info): Ditto.
3244 (avr_pop_frame): Ditto.
3245 (avr_frame_saved_pc): Ditto.
3246 (avr_saved_pc_after_call): Ditto.
3247 (avr_push_return_address): Ditto.
3248 (avr_frame_chain): Ditto.
3249 (avr_store_struct_return): Ditto.
3250 (avr_push_arguments): Ditto.
3251 (avr_scan_prologue): Update comments. Changed to set up the info for
3252 cache unwinding. Now returns end of prologue PC.
3253 (avr_skip_prologue): Better handling of functions lacking a prologue
3254 by using avr_scan_prologue.
3255 (avr_scan_arg_moves): New function.
3256 (avr_saved_regs_unwinder): Ditto.
3257 (avr_frame_unwind_cache): Ditto.
3258 (avr_unwind_pc): Ditto.
3259 (avr_frame_this_id): Ditto.
3260 (avr_frame_prev_register): Ditto.
3261 (avr_frame_p): Ditto.
3262 (avr_frame_base_address ): Ditto.
3263 (avr_unwind_dummy_id): Ditto.
3264 (avr_push_dummy_code): Ditto.
3265 (push_stack_item): Ditto.
3266 (pop_stack_item): Ditto.
3267 (avr_push_dummy_call): Ditto.
3268 (struct stack_item): Define.
3269 (avr_frame_unwind): Declare structure.
3270 (avr_frame_base): Ditto.
3271 (avr_gdbarch_init): Remove calls to
3272 set_gdbarch_deprecated_init_frame_pc,
3273 set_gdbarch_deprecated_target_read_fp,
3274 set_gdbarch_deprecated_dummy_write_sp,
3275 set_gdbarch_deprecated_fp_regnum,
3276 set_gdbarch_deprecated_push_arguments,
3277 set_gdbarch_deprecated_push_return_address,
3278 set_gdbarch_deprecated_pop_frame,
3279 set_gdbarch_deprecated_store_struct_return,
3280 set_gdbarch_deprecated_frame_init_saved_regs,
3281 set_gdbarch_deprecated_init_extra_frame_info,
3282 set_gdbarch_deprecated_frame_chain,
3283 set_gdbarch_deprecated_frame_saved_pc,
3284 set_gdbarch_deprecated_saved_pc_after_call.
3285 Add calls to set_gdbarch_push_dummy_call,
3286 set_gdbarch_push_dummy_code,
3287 frame_unwind_append_predicate,
3288 frame_base_set_default,
3289 set_gdbarch_unwind_dummy_id,
3290 set_gdbarch_unwind_pc.
3291 Wrap a long line.
3292
3293 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3294
3295 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3296 registers for H8/300S.
3297 (h8300_print_registers_info): Ditto.
3298 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3299
3300 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3301
3302 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3303 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3304 (lin_lwp_wait): Likewise. Update comments.
3305 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3306 (pull_pid_from_list, linux_record_stopped_pid): New.
3307
3308 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3309
3310 * ada-lang.c (scan_discrim_bound): Name first argument.
3311 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3312 declared by ALL_BLOCK_SYMBOLS.
3313
3314 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3315
3316 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3317 ("regcache.h"): Include it.
3318 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3319
3320 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3321
3322 * NEWS: Mention gdbserver detach change and "disconnect" command.
3323 * infcmd.c (disconnect_command): New function.
3324 (_initialize_infcmd): Add ``disconnect'' command.
3325 * remote.c (remote_async_detach): Delete.
3326 (remote_detach): Merge remote_async_detach.
3327 (remote_disconnect): New.
3328 (init_remote_ops): Set to_disconnect.
3329 (init_remote_cisco_ops): Likewise.
3330 (init_remote_async_ops): Likewise. Use remote_detach.
3331 * target.c (cleanup_target): Default to_disconnect.
3332 (update_current_target): Inherit to_disconnect.
3333 (target_disconnect, debug_to_disconnect): New functions.
3334 (setup_target_debug): Set to_disconnect.
3335 * target.h (struct target_ops): Add to_disconnect.
3336 (target_disconnect): Add prototype.
3337
3338 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3339
3340 * breakpoint.c (insert_catchpoint): New function.
3341 (insert_breakpoints): Use catch_exceptions to call
3342 insert_catchpoint. Disable catchpoints if they fail to insert.
3343
3344 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3345
3346 * symfile.c (reread_symbols): Clear sym_private.
3347
3348 2003-06-17 Andrew Cagney <cagney@redhat.com>
3349
3350 * trad-frame.h (struct frame_info): Add opaque declaration.
3351 * remote-fileio.h (struct cmd_list_element): Add opaque
3352 declaration.
3353 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3354 comments.
3355
3356 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3357
3358 * remote.c (remote_prepare_to_store): Replace call to
3359 deprecated_read_register_bytes with multiple regcache_raw_read
3360 calls.
3361
3362 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3363
3364 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3365 (nto_find_and_open_solib): Likewise.
3366 (nto_init_solib_absolute_prefix): Likewise.
3367 (_initialize_nto_tdep): Fix indentation.
3368
3369 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3370
3371 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3372
3373 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3374
3375 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3376
3377 2003-06-17 Jim Blandy <jimb@redhat.com>
3378
3379 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3380
3381 2003-06-16 Theodore A. Roth <troth@openavr.org>
3382
3383 * avr-tdep.c (avr_extract_return_value): New function.
3384 (avr_gdbarch_init): Set extract_return_value method.
3385
3386 2003-06-16 Andrew Cagney <cagney@redhat.com>
3387
3388 * frame.h (deprecated_get_next_frame_hack): Declare.
3389 * frame.c (legacy_saved_regs_prev_register): Only require
3390 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3391 there are always saved regs.
3392 (deprecated_generic_get_saved_register): Do not require
3393 DEPRECATED_FRAME_INIT_SAVED_REGS.
3394 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3395 use frame ID unwind instead.
3396 (deprecated_get_next_frame_hack): New function.
3397
3398 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3399
3400 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3401 (h8300_push_dummy_call): ...this function. Some minor optimization.
3402 (h8300_push_return_address): Remove.
3403 (h8300_gdbarch_init): Remove calls to
3404 set_gdbarch_deprecated_dummy_write_sp,
3405 set_gdbarch_deprecated_push_arguments and
3406 set_gdbarch_deprecated_push_return_address.
3407 Add call to set_gdbarch_push_dummy_call.
3408
3409 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3410
3411 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3412 (E_PSEUDO_EXR_REGNUM): Ditto.
3413 (h8300_is_argument_spill): Check for instructions moving argument
3414 registers into safe registers.
3415 (h8300_skip_prologue): Check for stm instruction to push registers
3416 used for register variables onto stack.
3417 (gdb_print_insn_h8300): Remove.
3418 (h8300_examine_prologue): Add a comment.
3419 (h8300_register_name): Take pseudo registers into account.
3420 (h8300s_register_name): Ditto.
3421 (h8300sx_register_name): Ditto.
3422 (h8300_print_register): Ditto.
3423 (h8300_print_registers_info): Define "nice" printing order.
3424 (h8300_saved_pc_after_call): Take pseudo registers into account.
3425 (h8300_register_type): Ditto. Return type used for remote connection
3426 when requesting real CCR or EXR register, return actual type when
3427 requesting pseudo CCR or EXR.
3428 (h8300_pseudo_register_read): New function.
3429 (h8300_pseudo_register_write): Ditto.
3430 (h8300_dbg_reg_to_regnum): Ditto.
3431 (h8300s_dbg_reg_to_regnum): Ditto.
3432 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3433 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3434 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3435 set_gdbarch_print_insn architecture dependent.
3436 Call set_gdbarch_pseudo_register_read and
3437 set_gdbarch_pseudo_register_write.
3438 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3439
3440 2003-06-16 Andrew Cagney <cagney@redhat.com>
3441
3442 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3443 * gdbarch.h, gdbarch.c: Re-generate.
3444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3445 * s390-tdep.c (s390_gdbarch_init): Update.
3446 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3447 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3448 * mips-tdep.c (mips_gdbarch_init): Update.
3449 * mcore-tdep.c (mcore_gdbarch_init): Update.
3450 * cris-tdep.c (cris_gdbarch_init): Update.
3451 * infcall.c (call_function_by_hand): Update.
3452 * ia64-tdep.c (ia64_push_arguments): Update comment.
3453 * frame.c (legacy_get_prev_frame): Do not assume
3454 SAVE_DUMMY_FRAME_TOS_P.
3455 * dummy-frame.c (find_dummy_frame): Update comment.
3456
3457 2003-06-16 Andrew Cagney <cagney@redhat.com>
3458
3459 * regcache.c (do_cooked_read): Do not use register_valid_p.
3460
3461 2003-06-15 Theodore A. Roth <troth@openavr.org>
3462
3463 * avr-tdep.c (avr_register_type): Remove a blank line.
3464 (avr_scan_prologue): Correct some comments.
3465
3466 2003-06-15 Theodore A. Roth <troth@openavr.org>
3467
3468 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3469 prologue types.
3470 Properly scan prologues generated by gcc with the -mcall-prologues
3471 option.
3472 Add code to scan -mcall-prologues for mega devices.
3473
3474 2003-06-15 Theodore A. Roth <troth@openavr.org>
3475
3476 * avr-tdep.c (avr_register_byte): Delete function.
3477 (avr_register_raw_size): Delete function.
3478 (avr_register_virtual_size): Delete function.
3479 (avr_register_virtual_type): Delete function.
3480 (avr_register_type): New function.
3481 (avr_address_to_pointer): Remove unused code.
3482 (avr_read_fp): Need to read FP as two separate bytes due to change to
3483 avr_register_type() usage.
3484 (avr_gdbarch_init): Don't set deprecated_register_size.
3485 Don't set deprecated_register_bytes.
3486 Don't set deprecated_register_byte.
3487 Don't set deprecated_register_raw_size.
3488 Don't set deprecated_max_register_raw_size.
3489 Don't set deprecated_register_virtual_size.
3490 Don't set deprecated_max_register_virtual_size.
3491 Don't set deprecated_register_virtual_type.
3492 Set register_type method.
3493
3494 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3495
3496 * Makefile.in (linux-nat.o): Add rule.
3497 * linux-nat.c: New file.
3498 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3499 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3500 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3501 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3502 * config/arm/linux.mh (NATDEPFILES): Likewise.
3503 * config/i386/linux.mh (NATDEPFILES): Likewise.
3504 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3505 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3506 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3507 * config/mips/linux.mh (NATDEPFILES): Likewise.
3508 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3509 * config/s390/s390.mh (NATDEPFILES): Likewise.
3510 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3511
3512 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3513
3514 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3515 replace out-of-date comment.
3516
3517 2003-06-15 Andrew Cagney <cagney@redhat.com>
3518
3519 * rdi-share/host.h (Fail): Change to a varargs function.
3520 * remote-rdi.c (Fail): Update.
3521
3522 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3523
3524 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3525 (i386_convert_register_p, i386_register_to_value,
3526 i386_register_from_value): Handle types longer than 8 bytes.
3527
3528 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3529
3530 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3531 Move floating-point code to new function in i387-tdep.c.
3532 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3533 New functions containing code moved here from i386-tdep.c.
3534 * i387-tdep.h: Add opaque declaration for `struct type'.
3535 (i387_register_to_value, i387_value_to_register): New prototypes.
3536 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3537 (x86_64_init_abi): Set convert_register_p, register_to_value and
3538 value_to_register here.
3539
3540 2003-06-14 Andrew Cagney <cagney@redhat.com>
3541
3542 * mips-tdep.c (mips_register_to_value): Make static.
3543 (mips_value_to_register): Make static.
3544 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3545 * ia64-tdep.c (ia64_register_raw_size): Make static.
3546 (ia64_register_virtual_size): Make static.
3547 (ia64_register_byte): Make static.
3548 * i387-tdep.c: Include "i387-tdep.h".
3549 (print_387_control_word): Delete function.
3550 (print_387_status_word): Delete function.
3551 (print_387_status_bits): Delete function.
3552 (print_387_control_bits): Delete function.
3553 * Makefile.in (i387-tdep.o): Update dependencies.
3554 * rdi-share/host.h (Fail): Declare.
3555 * remote-rdi.c (Fail): Update to match declaration.
3556
3557 2003-06-14 Andrew Cagney <cagney@redhat.com>
3558
3559 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3560 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3561 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3562 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3563 * README: Delete reference to remote-array.
3564 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3565 (remote-array.o): Delete target.
3566 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3567 * remote-array.c: Delete file.
3568
3569 2003-06-14 Andrew Cagney <cagney@redhat.com>
3570 Mark Kettenis <kettenis@gnu.org>
3571
3572 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3573 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3574 parameter with "frame".
3575 * gdbarch.h, gdbarch.c: Re-generate.
3576 * frame.h (put_frame_register): Declare.
3577 * frame.c (put_frame_register): New function.
3578 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3579 (legacy_register_to_value): Rewrite, use "frame" to get the
3580 register value.
3581 (legacy_value_to_register): Rewrite, use "frame" to find the
3582 register's location before storing.
3583 * arch-utils.h (legacy_convert_register_p): Update.
3584 (legacy_register_to_value, legacy_value_to_register): Update.
3585 * findvar.c (value_from_register): Rewrite, eliminate use of
3586 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3587 "frame" to REGISTER_TO_VALUE.
3588 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3589 lval_reg_frame_relative + lval_register branch of the switch. Do
3590 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3591 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3592 I386_EDI_REGNUM): New defines.
3593 (i386_next_regnum, i386_convert_register_p,
3594 i386_register_to_value, i386_value_to_register): New functions.
3595 (i386_register_convertible, i386_register_convert_to_virtual,
3596 i386_convert_to_raw): Remove functions.
3597 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3598 value_to_register instead of register_convertible,
3599 register_convert_to_virtual and register_convert_to_raw.
3600 * mips-tdep.c (mips_convert_register_p): New function.
3601 (mips_value_to_register): Replace mips_register_convert_from_type.
3602 (mips_register_to_value): Replace mips_register_convert_to_type.
3603 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3604 register_to_value.
3605 * alpha-tdep.c (alpha_convert_register_p): Update.
3606 (alpha_value_to_register): Update, store the register.
3607 (alpha_register_to_value): Update, fetch the register.
3608
3609 2003-06-14 Theodore A. Roth <troth@openavr.org>
3610
3611 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3612 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3613 Don't set deprecated_call_dummy_words.
3614 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3615 Don't set remote_translate_xfer_address.
3616 (avr_io_reg_read_command): Remove commented out debug printf.
3617 Wrap a long line.
3618
3619 2003-06-14 Theodore A. Roth <troth@openavr.org>
3620
3621 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3622 causes gdb to seg fault.
3623
3624 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3625
3626 * sparc-nat.c (fetch_inferior_registers): Correct
3627 a reference to "registers".
3628
3629 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3630
3631 * Makefile.in (exc_request_U_h): Define
3632 (exc_request_S_h): Likewise.
3633 (msg_reply_S_h): Likewise.
3634 (msg_U_h): Likewise.
3635 (notify_S_h): Likewise.
3636 (process_reply_S_h): Likewise.
3637 (gnu-nat.o): Depend on gdb_obstack_h
3638 * gnu-nat.c: Include "gdb_obstack.h".
3639
3640 2003-06-13 Andrew Cagney <cagney@redhat.com>
3641
3642 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3643 * gdbarch.h, gdbarch.c: Re-generate.
3644
3645 2003-06-13 Andrew Cagney <cagney@redhat.com>
3646
3647 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3648 when deprecated REGISTER macros can be deleted.
3649 * gdbarch.h, gdbarch.c: Re-generate.
3650
3651 2003-06-13 Jim Blandy <jimb@redhat.com>
3652
3653 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3654 Linux entry point symbols for _dl_debug_state, too.
3655
3656 2003-06-13 Andrew Cagney <cagney@redhat.com>
3657
3658 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3659 available, do not use the FP register, and always save the TOS.
3660 * dummy-frame.c (dummy_frame_this_id): Do not assert
3661 SAVE_DUMMY_FRAME_TOS.
3662 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3663 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3664 (i386_push_dummy_call): Add 8 to the returned SP.
3665 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3666 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3667 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3668 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3669 (x86_64_push_dummy_call): Return "sp + 16".
3670 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3671 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3672 save_dummy_frame_tos.
3673
3674 2003-06-13 Jim Blandy <jimb@redhat.com>
3675
3676 * frv-tdep.c (frv_use_struct_convention): Delete static
3677 declaration for function deleted in my change of 2003-06-12.
3678
3679 2003-06-13 Theodore A. Roth <troth@openavr.org>
3680
3681 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3682 (avr_pointer_to_address): Shift code addrs left 1 bit.
3683 (avr_convert_from_func_ptr_addr): Delete function since operation is
3684 better handled by avr_address_to_pointer and avr_pointer_to_address.
3685 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3686
3687 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3688
3689 From Kelley Cook <kelleycook@wideopenwest.com>:
3690 * configure.host: Accept i[34567]86 variants.
3691 * configure.tgt: Likewise.
3692 * nlm/configure.in: Likewise.
3693 * nlm/configure: Regenerated.
3694
3695 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3696
3697 * arm-tdep.c (solib-svr4.h): Dont' include it.
3698 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3699 * arm-linux-tdep.c: ... here. Make static.
3700 (arm_linux_init_abi): Register it.
3701 (solib-svr4.h): Include it.
3702 * Makefile.in: Update dependencies.
3703 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3704 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3705
3706 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3707
3708 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3709 indicate registers used for return values.
3710 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3711 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3712 members.
3713 (h8300_init_extra_frame_info): Ditto.
3714 (h8300_frame_locals_address): Removed.
3715 (h8300_frame_args_address): Removed.
3716 (h8300_extract_return_value): Use new regcache structure. Only care
3717 for 16 bit CPUs.
3718 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3719 (h8300_store_return_value): Use new regcache structure. Only care
3720 for 16 bit CPUs.
3721 (h8300h_store_return_value): Same function for 32 bit CPUs.
3722 (h8300_store_struct_return): Removed.
3723 (h8300_extract_struct_value_address): Use new regcache structure.
3724 (h8300h_extract_struct_value_address): Removed.
3725 (h8300_push_dummy_code): New function.
3726 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3727 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3728 set_gdbarch_store_return_value architecture dependent.
3729 Call set_gdbarch_push_dummy_code and
3730 set_gdbarch_extract_struct_value_address.
3731 Remove calls to set_gdbarch_frame_args_address,
3732 set_gdbarch_frame_locals_address,
3733 set_gdbarch_deprecated_store_struct_return,
3734 set_gdbarch_deprecated_extract_return_value,
3735 set_gdbarch_deprecated_extract_struct_value_address,
3736 set_gdbarch_deprecated_call_dummy_words and
3737 set_gdbarch_deprecated_sizeof_call_dummy_words.
3738
3739 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3740
3741 * h8300-tdep.c (h8300_register_byte): Remove.
3742 (h8300h_register_byte): Remove.
3743 (h8300_register_virtual_type): Remove. Substitute by...
3744 (h8300_register_type): New function.
3745 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3746 (h8300h_extract_struct_value_address): Ditto.
3747 (h8300_gdbarch_init): Drop calls to
3748 set_gdbarch_deprecated_register_byte and
3749 set_gdbarch_deprecated_register_virtual_type.
3750 Add call to set_gdbarch_register_type.
3751
3752 2003-06-13 Andrew Cagney <cagney@redhat.com>
3753
3754 * gdbarch.sh: Update comments on registers.
3755 (deprecated_register_byte): Rename register_byte.
3756 (deprecated_register_raw_size): Rename register_raw_size.
3757 (deprecated_register_virtual_size): Rename register_virtual_size.
3758 (deprecated_register_virtual_type): Rename register_virtual_type.
3759 * gdbarch.h, gdbarch.c: Re-generate.
3760 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3761 * vax-tdep.c (vax_gdbarch_init): Update.
3762 * v850-tdep.c (v850_gdbarch_init): Update.
3763 * sparc-tdep.c (sparc_gdbarch_init): Update.
3764 * sh-tdep.c (sh_gdbarch_init): Update.
3765 * s390-tdep.c (s390_gdbarch_init): Update.
3766 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3767 * ns32k-tdep.c: Update.
3768 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3769 * mips-tdep.c (mips_gdbarch_init): Update.
3770 * mcore-tdep.c (mcore_gdbarch_init): Update.
3771 * m68k-tdep.c (m68k_gdbarch_init): Update.
3772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3773 * ia64-tdep.c (ia64_gdbarch_init): Update.
3774 * hppa-tdep.c (hppa_gdbarch_init): Update.
3775 * h8300-tdep.c (h8300_gdbarch_init): Update.
3776 * frv-tdep.c (frv_gdbarch_init): Update.
3777 * cris-tdep.c (cris_gdbarch_init): Update.
3778 * avr-tdep.c (avr_gdbarch_init): Update.
3779 * alpha-tdep.c (alpha_gdbarch_init): Update.
3780 * arm-tdep.c (arm_gdbarch_init): Update.
3781
3782 2003-06-13 Andrew Cagney <cagney@redhat.com>
3783
3784 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3785 mips_o32_use_struct_convention with always_use_struct_convention.
3786
3787 2003-06-12 David Carlton <carlton@kealia.com>
3788
3789 * cp-namespace.c (cp_set_block_scope): Comment out
3790 processing_has_namespace_info branch.
3791
3792 2003-06-12 Jim Blandy <jimb@redhat.com>
3793
3794 Recognize and skip 64-bit PowerPC Linux linkage functions.
3795 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3796 insn_pattern, insns_match_pattern, d_field, ds_field): New
3797 functions, macros, and types for working with PPC instructions.
3798 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3799 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3800 ppc64_skip_trampoline_code): New functions, variables, and macros
3801 for recognizing and skipping linkage functions.
3802 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3803 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3804
3805 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3806 register offsets for both the 32- and 64-bit interfaces.
3807
3808 Actually finish the job started by my change of 2003-05-29.
3809 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3810 other #definition of this.
3811 (ppc_linux_skip_trampoline_code): Remove declaration.
3812 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3813 static.
3814 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3815 method for GDBARCH.
3816
3817 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3818 'long' on ppc64-*-linux*.
3819
3820 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3821 isn't #defined, assume the register doesn't exist: act as if
3822 tdep->ppc_mq_regnum were -1.
3823
3824 * configure.host, configure.tgt: Add entries for
3825 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3826 powerpc/linux.mt.
3827 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3828 New files.
3829
3830 * arch-utils.c (always_use_struct_convention): New function.
3831 * arch-utils.h (always_use_struct_convention): New prototype.
3832 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3833 (alpha_gdbarch_init): Register always_use_struct_convention,
3834 instead of alpha_use_struct_convention.
3835 * cris-tdep.c (cris_use_struct_convention): Delete.
3836 (cris_gdbarch_init): Register always_use_struct_convention,
3837 instead of cris_use_struct_convention.
3838 * frv-tdep.c (frv_use_struct_convention): Delete.
3839 (frv_gdbarch_init): Register always_use_struct_convention,
3840 instead of frv_use_struct_convention.
3841 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3842 (h8300_gdbarch_init): Register always_use_struct_convention,
3843 instead of h8300_use_struct_convention.
3844 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3845 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3846 instead of mips_o32_use_struct_convention.
3847
3848 2003-06-12 Andrew Cagney <cagney@redhat.com>
3849
3850 * wince.c: Include "mips-tdep.h".
3851 * mips-tdep.h (mips_next_pc): Declare.
3852 * mcore-tdep.c: Make more local functions static.
3853 * Makefile.in (wince.o): Update dependencies.
3854
3855 2003-06-12 David Carlton <carlton@kealia.com>
3856
3857 * symtab.c (lookup_symbol_aux_minsyms): Replace
3858 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3859 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3860 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3861 SYMBOL_NATURAL_NAME.
3862
3863 2003-06-12 Andreas Schwab <schwab@suse.de>
3864
3865 * Makefile.in (tuiDisassem.o): Update dependencies.
3866
3867 2003-06-12 David Carlton <carlton@bactrian.org>
3868
3869 * symtab.h: Delete declaration of make_symbol_overload_list.
3870 Add declaration of lookup_partial_symbol.
3871 * symtab.c (remove_params): Move to cp-support.c.
3872 (overload_list_add_symbol, make_symbol_overload_list)
3873 (sym_return_val_size, sym_return_val_index): Ditto.
3874 (lookup_partial_symbol): Make extern.
3875 * cp-support.h: Add declaration of make_symbol_overload_list.
3876 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3877 symtab.h, and block.h.
3878 (remove_params): Move here from symtab.c.
3879 (overload_list_add_symbol, make_symbol_overload_list)
3880 (sym_return_val_size, sym_return_val_index): Ditto.
3881 * valops.c: Include cp-support.h.
3882 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3883 frame_h, and block_h.
3884 (valops.o): Depend on cp_support_h.
3885
3886 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3887
3888 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3889 substitute by NUM_REGS throughout.
3890 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3891 (h8300s_register_name): New function for H8S registers.
3892 (h8300sx_register_name): Ditto for H8SX registers.
3893 (h8300_print_register): Revise register printing, avoid depending
3894 on 32 bit long.
3895 (h8300_register_byte): Only care for H8/300 registers.
3896 (h8300h_register_byte): New function for any other architecture.
3897 (h8300_register_raw_size): Remove.
3898 (h8300_register_virtual_type): Revise to return actually useful
3899 type.
3900 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3901 (h8300h_extract_struct_value_address): New function for any other
3902 architecture.
3903 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3904 set_gdbarch_register_name, set_gdbarch_register_byte,
3905 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3906 Remove calls to set_gdbarch_deprecated_register_size,
3907 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3908 set_gdbarch_deprecated_max_register_raw_size,
3909 set_gdbarch_register_virtual_size and
3910 set_gdbarch_deprecated_max_register_virtual_size entirely.
3911 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3912 set_gdbarch_long_double_bit.
3913
3914 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3915
3916 * doublest.c (convert_doublest_to_floatformat): When dealing
3917 with the implied integer bit, only alter mant_bits if we are
3918 processing a full 32 bits of mantissa.
3919
3920 2003-06-11 David Carlton <carlton@bactrian.org>
3921
3922 * dictionary.h: New.
3923 * dictionary.c: New.
3924 * block.h: Add opaque declaration for struct dictionary.
3925 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3926 'sym' members.
3927 (BLOCK_DICT): New macro.
3928 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3929 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3930 BLOCK_SHOULD_SORT.
3931 (ALL_BLOCK_SYMBOLS): Update definition.
3932 * Makefile.in (SFILES): Add dictionary.c.
3933 (dictionary_h): New.
3934 (COMMON_OBS): Add dictionary.o.
3935 (dictionary.o): New.
3936 (ada-lang.o): Depend on dictionary_h.
3937 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3938 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3939 (mi-cmd-stack.o): Ditto.
3940 (gdbtk-cmds.o): Update dependencies.
3941 (gdbtk-stack.o): Ditto.
3942 * ada-lang.c: Include dictionary.h.
3943 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3944 (fill_in_ada_prototype, debug_print_block): Ditto.
3945 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3946 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3947 'is_sorted'.
3948 * mdebugread.c: Include dictionary.h.
3949 (struct parse_stack): Delete 'maxsyms' member.
3950 (parse_symbol): Update calls to new_block. Delete calls to
3951 shrink_block. Use dictionary methods.
3952 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3953 Update calls to new_symtab. Don't maintain maxsyms data.
3954 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3955 (add_symbol): Just call dict_add_symbol.
3956 (new_symtab): Delete 'maxsyms' argument.
3957 (new_symtab): Update calls to new_block.
3958 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3959 (shrink_block): Delete function.
3960 (fixup_sigtramp): Update call to new_block. Add symbol via
3961 dict_add_symbol.
3962 * jv-lang.c: Include dictionary.h.
3963 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3964 appropriately. Set class_symtab->free_func. Make sure the
3965 blockvector is big enough to hold two blocks.
3966 (add_class_symtab_symbol): Use dictionary methods.
3967 (free_class_block): New function.
3968 (type_from_class): Replace explicit iteration by
3969 ALL_BLOCK_SYMBOLS.
3970 * symtab.h (struct symtab): Replace 'free_ptr' method by
3971 'free_func'.
3972 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3973 sort_symtab_syms.
3974 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3975 sort_symtab_syms.
3976 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3977 Include dictionary.h.
3978 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3979 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3980 sort_symtab_syms.
3981 * objfiles.c: Include dictionary.h.
3982 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3983 * buildsym.c: Include dictionary.h.
3984 (finish_block): Use dictionary methods.
3985 (end_symtab): Set free_func to NULL, not free_ptr.
3986 * tracepoint.c: Include dictionary.h.
3987 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3988 (scope_info): Ditto.
3989 * stack.c: Include dictionary.h.
3990 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3991 (print_block_frame_labels, print_frame_arg_vars)
3992 (print_frame_args): Ditto.
3993 * symmisc.c (free_symtab_block): Use dictionary methods.
3994 (dump_symtab): Ditto.
3995 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3996 Include dictionary.h.
3997 * symfile.h: Delete declarations of sort_block_syms,
3998 sort_symtab_syms.
3999 * symfile.c (sort_block_syms): Delete.
4000 (sort_symtab_syms): Delete.
4001 * symtab.c: Include dictionary.h.
4002 (lookup_block_symbol): Use dictionary iterators.
4003 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4004 (search_symbols, make_symbol_completion_list): Ditto.
4005 (make_symbol_overload_list): Ditto.
4006 * valops.c (value_of_local): Use dict_empty.
4007 Include dictionary.h.
4008
4009 2003-06-11 J. Brobecker <brobecker@gnat.com>
4010
4011 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4012
4013 2003-06-11 David Carlton <carlton@bactrian.org>
4014
4015 * block.h (BLOCK_SHOULD_SORT): Delete.
4016 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4017 blocks.
4018 * ada-lang.c (ada_add_block_symbols): Ditto.
4019 * symfile.c (sort_block_syms): Delete.
4020 (sort_symtab_syms): Ditto.
4021 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4022 declarations.
4023 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4024 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4025 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4026 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4027 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4028 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4029 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4030
4031 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4032
4033 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4034 bits to 128.
4035
4036 2003-06-11 Andrew Cagney <cagney@redhat.com>
4037
4038 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4039 REGISTER_CONVERTIBLE.
4040 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4041 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4042 * gdbarch.h, gdbarch.c: Re-generate.
4043 * arch-utils.h (deprecated_register_convertible_not): Rename
4044 generic_register_convertible_not.
4045 * arch-utils.c (deprecated_register_convertible_not): Rename
4046 generic_register_convertible.
4047 (legacy_convert_register_p, legacy_register_to_value): Update.
4048 * sh-tdep.c (sh64_push_arguments): Update.
4049 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4050 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4051 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4052 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4053 * arch-utils.c (legacy_value_to_register): Update.
4054 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4055 (rs6000_register_convert_to_raw): Make parameter "from" const.
4056 * mips-tdep.c (mips_gdbarch_init): Update.
4057 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4058 * infcmd.c (default_print_registers_info): Update.
4059 * ia64-tdep.c (ia64_gdbarch_init): Update.
4060 (ia64_register_convert_to_raw): Make parameter "from" const.
4061 * i386-tdep.c (i386_gdbarch_init): Update.
4062 (i386_register_convert_to_raw): Update.
4063
4064 2003-06-11 Andrew Cagney <cagney@redhat.com>
4065
4066 * remote-fileio.c: Include "remote-fileio.h".
4067 * Makefile.in (remote-fileio.o): Update dependencies.
4068 (remote_fileio_h): Fix typo.
4069
4070 2003-06-11 Andrew Cagney <cagney@redhat.com>
4071
4072 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4073 (xstormy16_save_dummy_frame_tos): Make static.
4074 (_initialize_xstormy16_tdep): Add declaration.
4075 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4076 * v850-tdep.c: Make local functions static.
4077 (_initialize_v850_tdep): Add declaration.
4078 * sparc-tdep.c: Make local functions static.
4079 (_initialize_sparc_tdep): Add declaration.
4080 * sh-tdep.c: Make local functions static.
4081 (_initialize_sh_tdep): Add declaration.
4082 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4083 * s390-tdep.c: Make local functions static.
4084 (_initialize_s390_tdep): Add declaration.
4085 * dbxread.c (find_stab_function_addr): Make static.
4086 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4087 * ocd.c (_initialize_remote_ocd): Add declaration.
4088 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4089 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4090 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4091 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4092 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4093 * remote-array.c (_initialize_array): Add declaration.
4094 (_initialize_remote_monitors): Add declaration.
4095 * remote-mips.c: Make local functions static.
4096 (_initialize_remote_mips): Add declaration.
4097 * mcore-tdep.c: Make all local functions static.
4098 (_initialize_mcore_tdep): Add declaration.
4099 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4100 * abug-rom.c (_initialize_abug_rom): Add declaration.
4101 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4102 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4103 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4104 * remote-est.c (_initialize_est): Add declaration.
4105 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4106 (m68hc11_call_dummy_address): Make static.
4107 * ia64-tdep.c: Make local functions static.
4108 (_initialize_ia64_tdep): Add declaration.
4109 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4110 * monitor.c (monitor_wait_filter): Make static.
4111 (_initialize_remote_monitors): Add declaration.
4112 * remote-hms.c (_initialize_remote_hms): Add declaration.
4113 * remote-e7000.c (fetch_regs_from_dump): Make static.
4114 (expect_n): Make static.
4115 (_initialize_remote_e7000): Add declaration.
4116 * ser-e7kpc.c: Always include "defs.h".
4117 (_initialize_ser_e7000pc): Add declaration.
4118 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4119 * cris-tdep.c: Make all but one function static.
4120 (_initialize_cris_tdep): Add declaration.
4121 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4122 * solib.c (update_solib_list): Make static.
4123 (_initialize_solib): Add declaration.
4124 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4125 (_initialize_avr_tdep): Add declaration.
4126 * remote-rdi.c (voiddummy): Make static.
4127 (_initialize_remote_rdi): Add declaration.
4128 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4129 * remote-rdp.c (send_rdp): Make static.
4130 (_initialize_remote_rdp): Add declaration.
4131 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4132
4133 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4134
4135 * remote-fileio.c: Make ari happy.
4136
4137 2003-06-10 J. Brobecker <brobecker@gnat.com>
4138
4139 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4140 fetching the trailing bytes of the buffer we are about to write.
4141
4142 2003-06-10 Andrew Cagney <cagney@redhat.com>
4143
4144 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4145 * Makefile.in (remote-fileio.o): Update dependencies.
4146 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4147 include <setjmp.h>, or <sys/types.h> conditional on USG.
4148 (remote_fio_jmp_buf): Delete global variable.
4149
4150 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4151 Martin M. Hunt <hunt@redhat.com>
4152
4153 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4154 (SFILES): Add remote-fileio.c.
4155 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4156 dependencies for building remote.o.
4157 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4158 * remote-fileio.h: New header file defining remote File-I/O interface.
4159 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4160 static storage class.
4161 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4162 'F' packet.
4163 (_initialize_remote): Call initialize_remote_fileio().
4164 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4165 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4166 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4167 (captured_main): Initialize new ui_files.
4168 * ui-file.c: Add read and fgets input functions.
4169 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4170 (null_file_read): New function.
4171 (ui_file_read): New function.
4172 (set_ui_file_read): New function.
4173 (stdio_file_read): New function.
4174 * ui-file.h: New type ui_file_read_ftype.
4175 (set_ui_file_read): Declare.
4176 (ui_file_read): Declare.
4177
4178 2003-06-09 Andrew Cagney <cagney@redhat.com>
4179
4180 * frame.h (deprecated_unwind_get_saved_register): Rename
4181 generic_unwind_get_saved_register, update comments.
4182 * mips-tdep.c (mips_get_saved_register): Update.
4183 * frame.c (deprecated_unwind_get_saved_register): Update.
4184
4185 2003-06-09 Andrew Cagney <cagney@redhat.com>
4186
4187 * vax-tdep.c (vax_frame_locals_address): Delete function.
4188 (vax_gdbarch_init): Do not set frame_locals_address.
4189 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4190 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4191 * s390-tdep.c (s390_frame_args_address): Delete function.
4192 (s390_gdbarch_init): Do not set frame_args_address or
4193 frame_locals_address.
4194 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4195 (ns32k_gdbarch_init): Do not set frame_locals_address.
4196 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4197 (hppa_frame_locals_address): Delete function.
4198 (hppa_gdbarch_init): Do not set frame_args_address, or
4199 frame_locals_address.
4200 * arm-tdep.c (arm_frame_args_address): Delete.
4201 (arm_frame_locals_address): Delete.
4202 (arm_gdbarch_init): Do not set frame_args_address, or
4203 frame_locals_address.
4204
4205 2003-06-09 Andrew Cagney <cagney@redhat.com>
4206
4207 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4208 * gdbarch.h, gdbarch.c: Re-generate.
4209 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4210 * arch-utils.c (frame_num_args_unknown): Delete function.
4211 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4212 (frame_info): Use FRAME_NUM_ARGS_P.
4213 * arm-tdep.c (arm_frame_num_args): Delete function.
4214 (arm_gdbarch_init): Do not set frame_num_args.
4215 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4216 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4217 (hppa_gdbarch_init): Do not set frame_num_args.
4218 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4220 frame_num_args to default frame_num_args_unknown.
4221 * v850-tdep.c (v850_gdbarch_init): Ditto.
4222 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4223 * sh-tdep.c (sh_gdbarch_init): Ditto.
4224 * s390-tdep.c (s390_gdbarch_init): Ditto.
4225 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4226 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4227 * mips-tdep.c (mips_gdbarch_init): Ditto.
4228 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4229 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4231 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4232 * i386-tdep.c (i386_gdbarch_init): Ditto.
4233 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4234 * frv-tdep.c (frv_gdbarch_init): Ditto.
4235 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4236 * cris-tdep.c (cris_gdbarch_init): Ditto.
4237 * avr-tdep.c (avr_gdbarch_init): Ditto.
4238 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4239
4240 2003-06-09 Andrew Cagney <cagney@redhat.com>
4241
4242 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4243 (print_frame_args): Moved to "stack.c".
4244 * stack.c: Include "gdb_assert.h".
4245 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4246 (print_frame_args): Moved from "printcmd.c".
4247 * frame.h (print_frame_args): Delete declaration.
4248 * Makefile.in (stack.o): Update dependencies.
4249
4250 2003-06-08 Andrew Cagney <cagney@redhat.com>
4251
4252 * frame.c (get_prev_frame): Remove reference to
4253 frame_args_address_correct in comments.
4254 * frame-base.c (default_frame_args_address): Delete code
4255 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4256 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4257 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4258 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4259 (vax_frame_args_address_correct): Delete declaration.
4260
4261 2003-06-08 Andrew Cagney <cagney@redhat.com>
4262
4263 * gdbarch.sh (UNWIND_SP): Add.
4264 * gdbarch.h, gdbarch.c: Re-generate.
4265 * frame.c (frame_sp_unwind): New function.
4266 (get_frame_sp): New function.
4267 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4268 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4269 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4270 value.
4271 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4272 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4273
4274 2003-06-08 Andrew Cagney <cagney@redhat.com>
4275
4276 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4277 REMOTE_BREAKPOINT.
4278 * remote.c: Update.
4279 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4280 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4281 * config/m68k/tm-sun3.h: Update.
4282 * config/m68k/tm-m68klynx.h: Update.
4283 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4284
4285 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4286 trad_frame". Update comments.
4287 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4288 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4289 (trad_frame_register_value, trad_frame_prev_register): Update.
4290
4291 2003-06-08 Andrew Cagney <cagney@redhat.com>
4292
4293 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4294 from GCC's acinclude.m4.
4295 * configure.in: Check for getopt's delcaration.
4296 * aclocal.m4, config.in, configure: Re-generate.
4297 * main.c (error_init): Delete declaration.
4298 * defs.h (error_init): Declare.
4299 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4300 (rs6000_convert_from_func_ptr_addr): Make static.
4301 (_initialize_rs6000_tdep): Add declaration.
4302 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4303 (show_commands, set_verbose, show_history): Delete declaration.
4304 * top.h (set_verbose): Add declaration.
4305 (show_history, set_history, show_commands): Add declaration.
4306 (do_restore_instream_cleanup): Add declaration.
4307 * objc-lang.c (specialcmp): Make static.
4308 (print_object_command): Make static.
4309 (find_objc_msgsend): Make static.
4310 (find_objc_msgcall_submethod_helper): Make static.
4311 (find_objc_msgcall_submethod): Make static.
4312 (_initialize_objc_language): Add declaration.
4313 (find_implementation_from_class): Make static.
4314 (find_implementation): Make static.
4315 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4316 * objc-lang.h (lookup_struct_typedef): Add declaration.
4317 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4318 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4319 (do_restore_user_call_depth): Make static.
4320 (do_restore_instream_cleanup): Delete declaration.
4321 (dont_repeat): Delete declaration.
4322 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4323 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4324 * reggroups.c (_initialize_reggroup): Add declaration.
4325 * cp-support.c (_initialize_cp_support): Add declaration.
4326 * cp-abi.c (_initialize_cp_abi): Add declaration.
4327 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4328 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4329 (_initialize_gnu_v3_abi): Add declaration.
4330 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4331 (_initialize_gnu_v2_abi): Add declaration.
4332 * frame-base.c (_initialize_frame_base): Add declaration.
4333 * doublest.c (floatformat_from_length): Make static.
4334 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4335 * frame.c (create_sentinel_frame): Make static.
4336 (_initialize_frame): Add declaration.
4337 * top.c (do_catch_errors): Make static.
4338 (gdb_rl_operate_and_get_next_completion): Make static.
4339 * typeprint.c: Include "typeprint.h".
4340 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4341 (sentinel_frame_this_id): Make static.
4342 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4343 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4344 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4345 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4346 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4347 * maint.c (maintenance_print_architecture): Make static.
4348 * signals/signals.c (_initialize_signals): Add declaration.
4349 * std-regs.c (_initialize_frame_reg): Add declaration.
4350 * jv-exp.y (push_variable): ISO C definition.
4351 (push_qualified_expression_name): Ditto.
4352 * memattr.c (_initialize_mem): Add declaration.
4353 * remote.c (remote_check_watch_resources): Make static.
4354 (remote_stopped_by_watchpoint): Make static.
4355 (remote_stopped_data_address): Make static.
4356 * d10v-tdep.c (nr_dmap_regs): Make static.
4357 (a0_regnum): Make static.
4358 (d10v_frame_unwind_cache): Make static.
4359 (d10v_frame_p): Make static.
4360 * osabi.c (show_osabi): Make static.
4361 (_initialize_gdb_osabi): Add extern declaration.
4362 * gdbtypes.c (make_qualified_type): Make static.
4363 (safe_parse_type): Make static.
4364 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4365 * macrotab.c (macro_bcache_free): Make static.
4366 * interps.c (interp_set_quiet): Make static.
4367 (interpreter_exec_cmd): Make static.
4368 * stack.h (select_frame_command): New file.
4369 * stack.c: Include "stack.h".
4370 (select_frame_command_wrapper): Delete function.
4371 (select_frame_command): Make global.
4372 * infcall.c: Include "infcall.h".
4373 * linespec.c: Include "linespec.h".
4374 * symfile.c (sections_overlap): Make static.
4375 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4376 * charset.c (_initialize_charset): Add missing prototype.
4377 * regcache.c (init_legacy_regcache_descr): Make static.
4378 (do_regcache_xfree): Make static.
4379 (regcache_xfer_part): Make static.
4380 (_initialize_regcache): Add missing prototype.
4381 * breakpoint.c (parse_breakpoint_sals): Make static.
4382 (breakpoint_sals_to_pc): Make static.
4383 * interps.h (clear_interpreter_hooks): ISO C declaration.
4384 * Makefile.in (stack_h): Define.
4385 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4386 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4387
4388 2003-06-08 Andrew Cagney <cagney@redhat.com>
4389
4390 * Makefile.in (d10v-tdep.o): Update dependencies.
4391 (SFILES): Add trad-frame.c.
4392 (trad_frame_h): Define.
4393 (COMMON_OBS): Add trad-frame.o.
4394 (trad-frame.o): Specify dependencies.
4395 * d10v-tdep.c: Include "trad-frame.h".
4396 (saved_regs_unwinder): Delete function.
4397 (d10v_frame_prev_register): Use trad_frame_prev_register.
4398 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4399 trad_frame", delete "regs" and "prev_sp".
4400 (prologue_find_regs): Use trad-frame.
4401 * trad-frame.h, trad-frame.c: New files.
4402
4403 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4404
4405 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4406
4407 2003-06-07 Adam Fedor <fedor@gnu.org>
4408
4409 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4410 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4411 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4412 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4413 resolve_msgsend_super, resolve_msgsend_super_stret):
4414 Use it.
4415
4416 2003-06-07 Andrew Cagney <cagney@redhat.com>
4417
4418 * symfile.h: Re-indent, clean up comments.
4419
4420 2003-06-07 Andrew Cagney <cagney@redhat.com>
4421
4422 * inferior.h (deprecated_write_sp): Replace
4423 generic_target_write_sp.
4424 * regcache.c (deprecated_write_sp): Replace
4425 generic_target_write_sp.
4426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4427 * vax-tdep.c (vax_gdbarch_init): Update.
4428 * v850-tdep.c (v850_gdbarch_init): Update.
4429 * sparc-tdep.c (sparc_gdbarch_init): Update.
4430 * sh-tdep.c (sh_gdbarch_init): Update.
4431 * s390-tdep.c (s390_gdbarch_init): Update.
4432 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4433 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4434 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4435 * mcore-tdep.c (mcore_gdbarch_init): Update.
4436 * m68k-tdep.c (m68k_gdbarch_init): Update.
4437 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4438 * ia64-tdep.c (ia64_gdbarch_init): Update.
4439 * h8300-tdep.c (h8300_gdbarch_init): Update.
4440 * frv-tdep.c (frv_gdbarch_init): Update.
4441 * cris-tdep.c (cris_gdbarch_init): Update.
4442 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4443
4444 2003-06-07 Andrew Cagney <cagney@redhat.com>
4445
4446 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4447 Assert that PC_REGNUM is valid.
4448 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4449
4450 2003-06-07 Andrew Cagney <cagney@redhat.com>
4451
4452 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4453 * gdbarch.h, gdbarch.c: Regenerate.
4454 * mn10300-tdep.c: Include "gdb_assert.h".
4455 (mn10300_read_fp): New function.
4456 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4457 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4458 * ia64-tdep.c: Include "gdb_assert.h".
4459 (ia64_read_fp): New function.
4460 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4461 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4462 * regcache.c (generic_target_read_sp): Delete function.
4463 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4464 * inferior.h (generic_target_read_sp): Delete declaration.
4465 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4466 generic_target_read_sp.
4467 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4468 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4469 * sh-tdep.c (sh_gdbarch_init): Ditto.
4470 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4471 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4472
4473 2003-06-07 Andrew Cagney <cagney@redhat.com>
4474
4475 * gdbarch.sh: Comment each field of startup_gdbarch.
4476 * gdbarch.h, gdbarch.c: Re-generate.
4477
4478 2003-06-07 Andrew Cagney <cagney@redhat.com>
4479
4480 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4481 * gdbarch.h, gdbarch.c: Re-generate.
4482 * regcache.c: Update comments on read_pc et.al.
4483 (generic_target_read_pc): Delete function.
4484 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4485 * inferior.h (generic_target_read_pc): Delete declaration.
4486 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4487 generic_target_read_pc.
4488 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4489 * sh-tdep.c (sh_gdbarch_init): Ditto.
4490 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4492
4493 2003-06-07 Andrew Cagney <cagney@redhat.com>
4494
4495 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4496 "index" with "special_local_sect". Use strcmp instead of STREQ.
4497 Append period to coments.
4498
4499 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4500
4501 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4502 (elfstab_offset_sections): Likewise.
4503 * gdb-stabs.h (stab_section_info): Likewise.
4504 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4505 * objfiles.c (objfile_relocate): Likewise.
4506 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4507 * remote.c (get_offsets): Likewise.
4508 (remote_cisco_objfile_relocate): Likewise.
4509 * somread.c (som_symfile_offsets): Likewise.
4510 * symfile.c (alloc_section_addr_info): New function.
4511 (build_section_addr_info_from_section_tab): Use it.
4512 (free_section_addr_info): Adjust.
4513 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4514 (syms_from_objfile): Allocate local_addr dynamically.
4515 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4516 dynamically.
4517 (add_symbol_file_command): Allocate sect_opts dynamically.
4518 (reread_symbols): Avoid use of SECT_OFF_MAX.
4519 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4520 (alloc_section_addr_info): Declare it.
4521 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4522 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4523 dynamically.
4524 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4525
4526 2003-06-06 Andrew Cagney <cagney@redhat.com>
4527
4528 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4529 (d10v_frame_unwind_cache): Do not set "return_pc".
4530
4531 2003-06-06 Michael Snyder <msnyder@redhat.com>
4532
4533 * h8300-tdep.c: Make tidy (long lines).
4534
4535 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4536
4537 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4538 to regcache_collect().
4539
4540 2003-06-05 J. Brobecker <brobecker@gnat.com>
4541
4542 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4543 pc_in_sigtramp multiarch method.
4544 (hppa_hpux_som_init_abi): Use it.
4545 (hppa_hpux_elf_init_abi): Likewise.
4546 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4547 macro has been multiarched.
4548 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4549 macro here, as hppa64 isn't multiarched yet.
4550
4551 2003-06-05 Andrew Cagney <cagney@redhat.com>
4552
4553 * Makefile.in (value_h): Add $(frame_h).
4554 * value.h: Include "frame.h".
4555 (struct value): Replace "frame_addr" with "frame_id".
4556 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4557 * values.c (allocate_value): Use VALUE_FRAME_ID.
4558 (value_copy): Use VALUE_FRAME_ID.
4559 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4560 * valops.c (value_assign): Update. Use frame_find_by_id.
4561
4562 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4563
4564 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4565 in each pass.
4566
4567 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4568
4569 * thread-db.c (check_event): For create/death event breakpoints,
4570 loop through all messages to ensure that we read the message
4571 corresponding to the breakpoint we are at.
4572
4573 2003-06-04 Michael Snyder <msnyder@redhat.com>
4574
4575 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4576
4577 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4578
4579 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4580 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4581 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4582 when handling .eh_frame sections.
4583
4584 2003-06-04 J. Brobecker <brobecker@gnat.com>
4585
4586 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4587 prepare_to_proceed procedure instead of the hppa-specific one.
4588 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4589
4590 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4591
4592 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4593 * config.in: Regenerated.
4594 * configure.in: Add test for syscall function and check for
4595 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4596 * configure: Regenerated.
4597 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4598 <sys/syscall.h>.
4599 (kill_lwp): New function that uses tkill syscall or
4600 uses kill, depending on whether threading model is nptl or not.
4601 All callers of kill() changed to use kill_lwp().
4602 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4603 see if all threads have already exited in the nptl model.
4604 (stop_and_resume_callback): New callback function used by the
4605 lin_lwp_wait thread exit handling code.
4606 (stop_wait_callback): Check for threads already having exited and
4607 delete such threads fromt the lwp list when discovered.
4608 (stop_callback): Don't assert retcode of kill call.
4609
4610 Roland McGrath <roland@redhat.com>
4611 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4612 nptl libthread_db.
4613
4614 2003-06-03 Richard Henderson <rth@redhat.com>
4615
4616 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4617 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4618 (alpha_sigtramp_frame_prev_register): Likewise.
4619 (alpha_heuristic_frame_prev_register): Likewise.
4620 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4621
4622 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4623 alpha-specific register id names.
4624 (alpha_mdebug_frame_unwind_cache): Likewise.
4625 (alpha_mdebug_frame_prev_register): Likewise.
4626
4627 2003-06-03 Richard Henderson <rth@redhat.com>
4628
4629 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4630 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4631 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4632 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4633 unwind routines.
4634 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4635 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4636 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4637
4638 * alpha-linux-tdep.c: Remove unnecessary includes.
4639 * Makefile.in (alpha-linux-tdep.o): Update.
4640
4641 2003-06-03 Richard Henderson <rth@redhat.com>
4642
4643 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4644 (alphabsd_fill_fpreg): Likewise.
4645
4646 2003-06-03 J. Brobecker <brobecker@gnat.com>
4647
4648 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4649 references to struct frame_info fields by calls to the equivalent
4650 accessors. Necessary now that frame_info is opaque.
4651
4652 2003-06-03 J. Brobecker <brobecker@gnat.com>
4653
4654 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4655 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4656 structure, field no longer exists.
4657
4658 2003-06-03 J. Brobecker <brobecker@gnat.com>
4659
4660 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4661 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4662
4663 2003-06-03 J. Brobecker <brobecker@gnat.com>
4664
4665 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4666 references to struct frame_info fields by calls to the equivalent
4667 accessors. Necessary now that frame_info is opaque.
4668
4669 2003-06-03 J. Brobecker <brobecker@gnat.com>
4670
4671 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4672 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4673 structure, field no longer exists.
4674
4675 2003-06-03 Theodore A. Roth <troth@openavr.org>
4676
4677 * remote.c (init_remote_state): Compute sizeof_g_packet by
4678 accumulation of the size of all registers instead of blindly using
4679 DEPRECATED_REGISTER_BYTES.
4680
4681 2003-06-03 Michael Snyder <msnyder@redhat.com>
4682
4683 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4684 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4685 for h8300sx.
4686
4687 2003-06-03 J. Brobecker <brobecker@gnat.com>
4688
4689 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4690 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4691
4692 2003-06-03 Andrew Cagney <cagney@redhat.com>
4693
4694 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4695 (sparc_convert_to_raw): Delete function.
4696 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4697 register_convert_to_virtual.
4698
4699 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4700
4701 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4702 layer if not dealing with a statically-linked threaded program.
4703
4704 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4705
4706 * solib.c (solib_open): Update comment to reflect actual search order.
4707
4708 2003-06-03 Andrew Cagney <cagney@redhat.com>
4709
4710 * frame.c (get_frame_memory_signed): New function.
4711 (get_frame_memory, get_frame_memory_unsigned): New function.
4712 (get_frame_arch): New function.
4713 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4714 (get_frame_memory, get_frame_unsigned_memory): Declare.
4715 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4716 get_frame_memory_unsigned and get_frame_arch.
4717 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4718
4719 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4720
4721 * MAINTAINERS (write after approval): Add myself.
4722
4723 2003-06-03 Jim Blandy <jimb@redhat.com>
4724
4725 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4726 elements of gregset_t are 64 bits each, but access registers
4727 are still 32 bits, so they're packed two per gregset_t
4728 element. Unpack/pack them properly.
4729
4730 2003-06-02 David Carlton <carlton@bactrian.org>
4731
4732 * linespec.c (find_methods): Break out code into
4733 add_matching_methods and add_constructors.
4734 (add_matching_methods): New.
4735 (add_constructors): Ditto.
4736
4737 2003-06-02 Andrew Cagney <cagney@redhat.com>
4738
4739 * sparc-tdep.c (sparc_print_registers): Delete call to
4740 REGISTER_CONVERTIBLE.
4741 (sparc_gdbarch_init): Do not set register_convertible.
4742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4743 * frv-tdep.c (frv_gdbarch_init): Ditto.
4744 * cris-tdep.c (cris_gdbarch_init): Ditto.
4745
4746 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4747
4748 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4749 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4750 (syms_from_objfile): Ditto.
4751
4752 2003-06-03 Andreas Schwab <schwab@suse.de>
4753
4754 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4755 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4756
4757 2003-06-02 Richard Henderson <rth@redhat.com>
4758
4759 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4760 a member of all_reggroup.
4761
4762 2003-06-02 Richard Henderson <rth@redhat.com>
4763
4764 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4765 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4766 (alpha_lds, alpha_sts): New.
4767 (alpha_convert_register_p): Change from _register_convertible.
4768 (alpha_register_to_value): Change from _convert_to_virtual;
4769 restructure and fail for type sizes other than 4 or 8.
4770 (alpha_value_to_register): Similarly.
4771 (alpha_extract_return_value): Use alpha_sts.
4772 (alpha_store_return_value): Use alpha_lds.
4773 (alpha_gdbarch_init): Update hooks.
4774
4775 2003-06-02 Richard Henderson <rth@redhat.com>
4776
4777 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4778 regnum identifiers.
4779 (alpha_sigtramp_register_address): Likewise.
4780
4781 2003-06-02 Richard Henderson <rth@redhat.com>
4782
4783 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4784 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4785 * alpha-tdep.h: Declare them.
4786
4787 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4788 Remove zerobuf. Don't error on UNIQUE.
4789 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4790 (ALPHA_REGSET_UNIQUE): Provide default.
4791 (supply_gregset): Use alpha_supply_int_regs.
4792 (fill_gregset): Use alpha_fill_int_regs.
4793 (supply_fpregset): Use alpha_supply_fp_regs.
4794 (fill_fpregset): Use alpha_fill_fp_regs.
4795 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4796 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4797 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4798 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4799 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4800 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4801
4802 2003-06-02 Richard Henderson <rth@redhat.com>
4803
4804 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4805
4806 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4807 (alpha_store_return_value): Likewise.
4808
4809 2003-06-02 David Carlton <carlton@math.stanford.edu>
4810
4811 * block.c (contained_in): Add 'const' to arguments.
4812 (block_function): Ditto.
4813 * block.h: Update declarations for block_function and
4814 contained_in.
4815
4816 2003-06-02 David Carlton <carlton@math.stanford.edu>
4817
4818 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4819 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4820 * p-valprint.c (pascal_val_print): Ditto.
4821 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4822
4823 2003-06-02 Richard Henderson <rth@redhat.com>
4824
4825 * alpha-tdep.c (alpha_push_dummy_call): Use
4826 builtin_type_ieee_double_little instead of builtin_type_double.
4827
4828 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4829 sign-extension of 32-bit values.
4830 (alpha_store_return_value): Similarly.
4831
4832 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4833 (alpha_extract_return_value): Likewise.
4834 (alpha_store_return_value): Likewise.
4835
4836 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4837 (alpha_store_return_value): Error on IEEE Quad floats.
4838
4839 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4840 (alpha_extract_struct_value_address): Likewise.
4841 (alpha_store_return_value): Likewise.
4842 (alpha_store_struct_return): Remove.
4843 (alpha_gdbarch_init): Update hook registration to match.
4844
4845 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4846 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4847 macros where appropriate.
4848 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4849 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4850
4851 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4852 for SP, GP; void_func_ptr for PC; non-language-specific types
4853 for all others.
4854 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4855
4856 2003-06-02 Richard Henderson <rth@redhat.com>
4857
4858 * top.h (lim_at_start): Declare.
4859 * main.c (captured_main): Set it.
4860 * top.c (lim_at_start): Define.
4861 (command_loop): Use it instead of &environ.
4862 * event-top.c (command_handler): Likewise.
4863
4864 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4865
4866 * mipsnbsd-tdep.c: Update copyright years.
4867 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4868
4869 2003-06-01 Richard Henderson <rth@redhat.com>
4870
4871 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4872 (alpha-linux-tdep.o): Update dependencies.
4873 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4874 * alpha-mdebug-tdep.c: Remove unneeded includes.
4875
4876 2003-06-01 Richard Henderson <rth@redhat.com>
4877
4878 * alpha-tdep.c (alpha_register_reggroup_p): New.
4879 (alpha_gdbarch_init): Register it.
4880
4881 2003-06-02 Andrew Cagney <cagney@redhat.com>
4882
4883 * dwarfread.c: Eliminate "register"
4884 (decode_die_type): Eliminate assignment within "if".
4885 (struct_type, decode_array_element_type): Ditto.
4886 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4887 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4888 (decode_modified_type, completedieinfo): Ditto.
4889 * block.c: Eliminate "register".
4890 (blockvector_for_pc_sect): Eliminate assignment within "if".
4891 * cp-support.h (struct symbol): Opaque declaration.
4892 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4893
4894 2003-06-01 Richard Henderson <rth@redhat.com>
4895
4896 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4897 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4898
4899 2003-06-01 Adam Fedor <fedor@gnu.org>
4900
4901 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4902 * gdbarch.[ch]: Regenerate.
4903 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4904 (hppa_gdbarch_init): Set it in the gdbarch vector.
4905 * i386-tdep.c (i386_fetch_pointer_argument): New
4906 (i386_gdbarch_init): Set it into gdbarch.
4907 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4908 (rs6000_gdbarch_init): Set it in gdbarch.
4909 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4910 (sparc_gdbarch_init): Set it in gdbarch.
4911
4912 2003-06-01 Andrew Cagney <cagney@redhat.com>
4913
4914 * defs.h (extract_address): Delete declaration.
4915 * findvar.c (extract_address): Delete function.
4916 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4917 extract_address with the inline equivalent,
4918 extract_unsigned_integer.
4919 (xstormy16_extract_struct_value_address): Ditto.
4920 (xstormy16_pointer_to_address): Ditto.
4921 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4922 * v850-tdep.c (v850_push_arguments): Ditto.
4923 (v850_extract_return_value): Ditto.
4924 (v850_extract_struct_value_address): Ditto.
4925 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4926 (sparcnbsd_get_longjmp_target_64): Ditto.
4927 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4928 (get_longjmp_target): Ditto.
4929 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4930 (sh64_extract_struct_value_address): Ditto.
4931 (sh_push_arguments): Ditto.
4932 (sh64_push_arguments): Ditto.
4933 * remote-vxsparc.c (vx_read_register): Ditto.
4934 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4935 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4936 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4937 * mipsv4-nat.c (get_longjmp_target): Ditto.
4938 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4939 * mips-nat.c (get_longjmp_target): Ditto.
4940 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4941 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4942 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4943 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4944 * irix5-nat.c (get_longjmp_target): Ditto.
4945 * irix4-nat.c (get_longjmp_target): Ditto.
4946 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4947 (ia64_push_arguments): Ditto.
4948 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4949 * h8300-tdep.c (h8300_push_arguments): Ditto.
4950 (h8300_store_return_value): Ditto.
4951 (h8300_extract_struct_value_address): Ditto.
4952 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4953 (frv_push_arguments): Ditto.
4954 * avr-tdep.c (avr_pointer_to_address): Ditto.
4955 (avr_push_arguments): Ditto.
4956 * arm-tdep.c (arm_push_dummy_call): Ditto.
4957 (arm_get_longjmp_target): Ditto.
4958 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4959 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4960 (alpha_get_longjmp_target): Ditto.
4961
4962 * solib-irix.c (extract_mips_address): Inline extract_address,
4963 replacing it with extract_signed_integer.
4964 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4965 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4966 (first_link_map_member, open_symbol_file_object): Ditto.
4967 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4968 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4969 (LM_NEXT, LM_NAME): Ditto.
4970
4971 2003-06-01 Richard Henderson <rth@redhat.com>
4972
4973 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4974 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4975 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4976 (alpha_cannot_store_register): Likewise.
4977 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4978 * alpha-nat.c (supply_gregset): Likewise.
4979 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4980
4981 2003-06-01 Andrew Cagney <cagney@redhat.com>
4982
4983 * infcall.c (call_function_by_hand): Update comment on
4984 DEPRECATED_DUMMY_WRITE_SP.
4985
4986 * mips-tdep.c (mips_gdbarch_init): Do not set
4987 deprecated_dummy_write_sp.
4988 (mips_eabi_push_dummy_call): Set the SP register.
4989 (mips_o64_push_dummy_call): Set the SP register.
4990 (mips_o32_push_dummy_call): Set the SP register.
4991 (mips_n32n64_push_dummy_call): Set the SP register.
4992
4993 2003-06-01 Richard Henderson <rth@redhat.com>
4994
4995 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4996 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4997 (supply_gregset): Likewise.
4998 * alpha-tdep.c (alpha_store_return_value): Likewise.
4999 (alpha_get_longjmp_target): Likewise.
5000 (alpha_register_name): Constify array.
5001 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5002 deprecated_register_size, deprecated_register_bytes,
5003 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5004 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5005 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5006
5007 2003-06-01 Richard Henderson <rth@redhat.com>
5008
5009 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5010 from arg_reg_buffer to regcache to avoid double conversion.
5011
5012 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5013
5014 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5015 SP_REGNUM.
5016 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5017 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5018
5019 2003-06-01 Richard Henderson <rth@redhat.com>
5020
5021 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5022 (decode_frame_entry): Set it. Skip FDE augmentation.
5023
5024 2003-06-01 Richard Henderson <rth@redhat.com>
5025
5026 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5027 not overlapping PC_REGNUM.
5028
5029 2003-06-01 Richard Henderson <rth@redhat.com>
5030
5031 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5032 alpha_push_arguments. Don't dump argument register data to
5033 the target stack. Fix float and 128-bit long double semantics.
5034 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5035 (alpha_fix_call_dummy): Remove.
5036 (alpha_call_dummy_words): Remove.
5037 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5038
5039 2003-06-01 Richard Henderson <rth@redhat.com>
5040
5041 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5042
5043 2003-06-01 Andrew Cagney <cagney@redhat.com>
5044
5045 * mips-tdep.c (is_mips16_addr): New function.
5046 (make_mips16_addr, unmake_mips16_addr): New functions.
5047 (pc_is_mips16, mips_fetch_instruction): Use.
5048 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5049 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5050 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5051 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5052 TARGET_MIPS.
5053 * config/mips/tm-mips.h: Update copyright.
5054 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5055 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5056 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5057 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5058 (TM_PRINT_INSN_MACH): Delete.
5059 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5060
5061 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5062 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5063 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5064 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5065 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5066 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5067 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5068 mips*-*-riscos* and mips*-*-sysv* onto mips.
5069 * config/mips/mips64.mt: New file.
5070 * config/mips/mips.mt: New file.
5071 * config/mips/littlemips.mt: Delete file.
5072 * config/mips/decstation.mt: Delete file.
5073 * config/mips/vr4300el.mt: Delete file.
5074 * config/mips/vr5000el.mt: Delete file.
5075 * config/mips/vr5000.mt: Delete file.
5076 * config/mips/vr4100.mt: Delete file.
5077 * config/mips/vr4xxxel.mt: Delete file.
5078 * config/mips/vr4300.mt: Delete file.
5079 * config/mips/vr4xxx.mt: Delete file.
5080 * config/mips/bigmips.mt: Delete file.
5081 * config/mips/bigmips64.mt: Delete file.
5082 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5083 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5084 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5085 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5086 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5087 "tm-bigmips.h".
5088 * config/mips/tm-irix3.h: Ditto.
5089 * config/mips/tm-mipsv4.h: Ditto.
5090 * config/mips/tm-embed.h: Ditto.
5091 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5092 "tm-bigmips64.h".
5093 * config/mips/tm-vr5000el.h: Delete file.
5094 * config/mips/tm-tx39l.h: Delete file.
5095 * config/mips/tm-vr4300el.h: Delete file.
5096 * config/mips/tm-vr4xxxel.h: Delete file.
5097 * config/mips/tm-vr4300.h: Delete file.
5098 * config/mips/tm-vr4100.h: Delete file.
5099 * config/mips/tm-vr4xxx.h: Delete file.
5100 * config/mips/tm-vr5000.h: Delete file.
5101 * config/mips/tm-embedl64.h: Delete file.
5102 * config/mips/tm-embedl.h: Delete file.
5103 * config/mips/tm-embed64.h: Delete file.
5104 * config/mips/tm-bigmips64.h: Delete file.
5105 * config/mips/tm-bigmips.h: Delete file.
5106
5107 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5108
5109 Fix gdb/1216.
5110 * shnbsd-nat.c: Include "sh-tdep.h".
5111
5112 From Richard Henderson <rth@redhat.com>:
5113 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5114
5115 2003-05-31 Andrew Cagney <cagney@redhat.com>
5116
5117 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5118 forward declaration.
5119 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5120 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5121 (mips_find_saved_regs): Use set_reg_offset.
5122 (mips_frame_init_saved_regs): Delete function.
5123 (mips_pop_frame): Call mips_find_saved_regs instead of
5124 DEPRECATED_FRAME_INIT_SAVED_REGS.
5125
5126 2003-05-31 Andrew Cagney <cagney@redhat.com>
5127
5128 * mips-tdep.c (mips_gdbarch_init): Do not set
5129 deprecated_max_register_raw_size, register_virtual_size, and
5130 deprecated_max_register_virtual_size.
5131
5132 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5133
5134 * i386-tdep.c: Include "dwarf2-frame.h".
5135 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5136 * Makefile.in (i386-tdep.o): Update dependencies.
5137
5138 * dwarf2-frame.c, dwarf2-frame.h: New files.
5139 * Makefile.in (SFILES): Add dwarf2-frame.c.
5140 (dwarf2_frame_h): Define.
5141 (COMMON_OBS): Add dwarf2-frame.o.
5142 (dwarf2-frame.o): Add dependencies.
5143
5144 2003-05-31 Andreas Jaeger <aj@suse.de>
5145
5146 * x86-64-linux-nat.c: Fix comment.
5147
5148 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5149
5150 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5151 function signature.
5152
5153 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5154 have a sigcontext_addr handler.
5155 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5156 sigcontext_addr handler.
5157
5158 2003-05-31 Andrew Cagney <cagney@redhat.com>
5159
5160 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5161 (print_fp_register_row): Replace do_fp_register_row.
5162 (mips_print_fp_register): Add "file" and "frame" parameters.
5163 (mips_print_register): Add "file" and "frame" parameters.
5164 (mips_print_registers_info): Replace mips_do_registers_info.
5165 (mips_gdbarch_init): Set print_registers_info instead of
5166 deprecated_do_registers_info.
5167 (mips_read_fp_register_single): Add "frame" parameter.
5168 (mips_read_fp_register_double): Add "frame" parameter.
5169
5170 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5171
5172 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5173 Fixes a bug where GDB would print the wrong register names for
5174 targets without SSE.
5175
5176 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5177 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5178 registers.
5179
5180 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5181 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5182 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5183 TDEP->sc_sp_offset.
5184
5185 From Michal Ludvig <mludvig@suse.cz>:
5186 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5187 and `sc_num_regs'.
5188 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5189 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5190 I386_ST0_REGNUM): Move here from...
5191 * i386-tdep.c: ... here.
5192 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5193 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5194 registers if possible.
5195 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5196 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5197 Remove variables.
5198 (i386bsd_sc_reg_offset): New variable.
5199 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5200 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5201 TDEP->sc_sp_offset.
5202 (i386fbsd_sc_reg_offset): New variable.
5203 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5204 TDEP->sc_num_regs.
5205 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5206 variables.
5207 (i386fbsd4_sc_reg_offset): New variable.
5208 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5209 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5210 TDEP->sc_sp_offset.
5211 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5212 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5213 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5214 Remove variables.
5215 (i386nbsd_sc_reg_offset): New variable.
5216 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5217 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5218 TDEP->sc_sp_offset.
5219 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5220 Remove variables.
5221 (i386obsd_sc_reg_offset): New variable.
5222 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5223 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5224 TDEP->sc_sp_offset.
5225 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5226 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5227 for frame pointer offset in `struct sigcontext'.
5228
5229 2003-05-31 Andrew Cagney <cagney@redhat.com>
5230
5231 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5232 architecture methods call_dummy_words, sizeof_call_dummy_words,
5233 push_return_address, store_struct_return, and fix_call_dummy. Set
5234 push_dummy_call instead of deprecated_push_arguments.
5235 (mips_store_struct_return): Delete function.
5236 (mips_fix_call_dummy): Delete function.
5237 (mips_push_return_address): Delete function.
5238 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5239 RA_REGNUM and T9_REGNUM.
5240 (mips_n32n64_push_dummy_call): Ditto for
5241 mips_n32n64_push_arguments.
5242 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5243 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5244
5245 2003-05-31 Andrew Cagney <cagney@redhat.com>
5246
5247 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5248 "dummy_addr" to "bp_addr".
5249 * infcall.c (call_function_by_hand): Pass "funaddr" to
5250 gdbarch_push_dummy_call.
5251 * gdbarch.h, gdbarch.c: Re-generate.
5252 * i386-tdep.c (i386_push_dummy_call): Update.
5253 * arm-tdep.c (arm_push_dummy_call): Update.
5254 * d10v-tdep.c (d10v_push_dummy_call): Update.
5255
5256 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5257
5258 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5259 variable declarations.
5260 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5261 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5262 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5263 x86_64_init_frame_pc, x86_64_init_frame_pc,
5264 x86_64_function_has_prologue): Remove prototypes.
5265 (X86_64_NUM_GREGS): New define.
5266 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5267 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5268 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5269 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5270 XMM1_REGNUM): Remove defines.
5271 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5272 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5273 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5274 X86_64_XMM1_REGNUM): New defines.
5275 (struct x86_64_register_info): Renamed from `struct
5276 register_info'. Remove `size' member.
5277 (x86_64_register_info_table): Remove variable.
5278 (x86_64_register_info): New variable.
5279 (X86_64_NUM_REGS): New define.
5280 (X86_64_NUM_GREGS): Remove define.
5281 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5282 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5283 Remove variables.
5284 (x86_54_dwarf2_reg_to_regnum): Remove function.
5285 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5286 (x86_64_dwarf_reg_to_regnum): New function.
5287 (x86_64_register_name): Rewrite.
5288 (x86_64_register_raw_size): Remove function.
5289 (x86_64_register_byte_table): Remove variable.
5290 (x86_64_register_byte): Remove function.
5291 (x86_64_register_virtual_type): Remove function.
5292 (x86_64_register_type): New function.
5293 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5294 x86_64_register_convert_to_raw): Remove functions.
5295 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5296 (x86_64_use_struct_convention): Make static. Adjust for renamed
5297 defines.
5298 (x86_64_frame_init_saved_regs): Remove function.
5299 (x86_64_push_arguments): Make static. Change to accept a regcache
5300 as argument.
5301 (x86_64_store_return_value, x86_64_extract_return_value): Make
5302 static. Rewrite based on i386 counterparts.
5303 (x86_64_push_dummy_call): New function.
5304 (X86_64_NUM_SAVED_REGS): New define.
5305 (x86_64_register_number): Remove function.
5306 (x86_64_store_struct_return): Remove function.
5307 (x86_64_frameless_function_invocation,
5308 x86_64_function_has_prologue): Remove functions.
5309 (PROLOG_BUFSIZE): Remove define.
5310 (struct x86_64_frame_cache): New structure.
5311 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5312 x86_64_frame_cache, x86_64_frame_this_id,
5313 x86_64_frame_prev_register, x86_64_frame_p,
5314 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5315 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5316 functions.
5317 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5318 variables.
5319 (x86_64_skip_prologue): Rewrite in terms of
5320 x86_64_analyze_prologue.
5321 (x86_64_frame_base_address): New function.
5322 (x86_64_frame_base): New variable.
5323 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5324 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5325 set deprecated_fp_regnum, deprecated_register_size,
5326 deprecated_register_bytes, register_raw_size, register_byte,
5327 register_virtual_type, register_convertiable,
5328 register_convert_to_virtual, convert_to_raw,
5329 deprecated_get_saved_register, deprecated_target_read_fp,
5330 deprecated_push_arguments, deprecated_push_return_address,
5331 deprecated_pop_frame, deprecated_store_struct_return,
5332 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5333 frameless_function_invocation, deprecated_frame_saved_pc,
5334 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5335 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5336 deprecated_init_frame_pc and virtual_frame_pointer. Call
5337 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5338 and x86_64_frame_p. Call frame_base_set_default to register
5339 x86_64_frame_base.
5340 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5341 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5342 (_initialize_x86_64_tdep): Remove function.
5343 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5344 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5345 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5346 define.
5347 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5348 (x86_64_linux_sigcontext_addr): Rewrite.
5349 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5350 x86_64_linux_frame_saved_pc): Remove functions.
5351 (x86_64_linux_pc_in_sigtramp): Renamed from
5352 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5353 trampoline.
5354 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5355 Remove_functions.
5356 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5357 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5358 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5359 (x86_64_regmap): Rename to regmap.
5360 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5361 x86_64_num_gregs.
5362 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5363 x86_64_regmap.
5364 (x86_64_fxsave_offset): Remove function.
5365 (supply_fpregset): Simply call x86_64_supply_fxsave.
5366 (fill_fpregset): Simply call x86_64_fill_fxsave.
5367 (fetch_inferior_registers, store_inferior_registers): Avoid
5368 asignment in if-statement.
5369 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5370 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5371 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5372 (fetch_core_registers): Remove function.
5373 (linux_elf_core_fns): Remove.
5374 (offsetoff): Don't define.
5375 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5376 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5377 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5378 add core-regset.o.
5379 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5380 protection against multiple includes instead of NM_X86_64_h. Add
5381 various comments. Include "config/nm-linux.h". Don't include
5382 <signal.h>.
5383 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5384 GET_THREAD_SIGNALS): Remove defines.
5385 (x86_64_register_u_addr, kernel_u_size,
5386 lin_thread_get_thread_signals): Remove prototypes.
5387 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5388 [HAVE_LINK_H]: Don't include "solib.h".
5389 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5390 * config/i386/tm-x86-64linux.h: Fix comments.
5391 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5392 x86-64-tdep.o): Update dependencies.
5393
5394 2003-05-30 Andrew Cagney <cagney@redhat.com>
5395
5396 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5397 Change parameter type to a "struct regcache *".
5398
5399 * gdbarch.sh: Regardless of the multi-arch level, always define
5400 the macro when not already defined.
5401 * gdbarch.h, gdbarch.c: Re-generate.
5402
5403 2003-05-30 Richard Henderson <rth@redhat.com>
5404
5405 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5406 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5407 (alpha_mdebug_frame_this_id): Likewise.
5408 (alpha_mdebug_frame_prev_register): Likewise.
5409 (alpha_mdebug_frame_base_address): Likewise.
5410 (alpha_mdebug_frame_locals_address): Likewise.
5411 (alpha_mdebug_frame_args_address): Likewise.
5412 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5413 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5414 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5415 loop increment.
5416 (alpha_heuristic_frame_this_id): Make static.
5417 (alpha_heuristic_frame_prev_register): Likewise.
5418 (alpha_heuristic_frame_base_address): Likewise.
5419 * alpha-tdep.h: Update.
5420
5421 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5422
5423 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5424 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5425 defenitions.
5426 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5427 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5428 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5429 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5430 I386_ST0_REGNUM): New defines.
5431 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5432 codestream_get): Remove define.
5433 (codestream_next_addr, condestream_addr, condestream_buf,
5434 codestream_off, codestream_cnt): Remove variables.
5435 (codestream_fill, codestream_seek, codestream_read): Remove
5436 functions.
5437 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5438 functionality.
5439 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5440 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5441 i386_frame_saved_pc, i386_saved_pc_after_call,
5442 i386_frame_num_args, i386_frame_init_saved_regs,
5443 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5444 i386_push_arguments): Remove functions.
5445 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5446 functionality. Use i386_analyze_prologue instead of
5447 i386_get_frame_setup.
5448 (I386_NUM_SAVED_REGS): New define.
5449 (struct i386_frame_cache): New structure.
5450 (i386_alloc_frame_cache, i386_analyze_struct_return,
5451 i386_skip_probe, i386_analyze_frame_setup,
5452 i386_analyze_register_saves, i386_analyze_prologue,
5453 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5454 i386_frame_prev_register, i386_sigtramp_frame_cache,
5455 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5456 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5457 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5458 New functions.
5459 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5460 New variables.
5461 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5462 I386_EAX_REGNUM and I386_EDX_REGNUM.
5463 (i386_extract_return_value, i386_store_return_value): Use
5464 I386_ST0_REGNUM where appropriate.
5465 (i386_extract_struct_value_address): Rewrite to use extract_address.
5466 (i386_svr4_pc_in_sigtramp): Add comment.
5467 (i386_svr4_sigcontext_addr): Rewrite.
5468 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5469 TDEP->sc_sp_offset.
5470 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5471 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5472 of new defines. Set push_dummy_call, don't set
5473 deprecated_push_arguments, deprecated_push_return_address,
5474 deprecated_pop_frame. Don't set parm_boundary. Don't set
5475 deprecated_frame_chain, deprecated_frame_saved_pc,
5476 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5477 save_dummy_frame_tos, unwind_pc. Call
5478 frame_unwind_append_predicate and frame_base_set_default. Don't
5479 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5480 Don't set frameless_function_invocation. Don't set
5481 deprecated_register_bytes, deprecated_register_size,
5482 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5483 * i386-linux-tdep.c: Fix formatting in some comments.
5484 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5485 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5486 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5487 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5488 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5489 redundant parentheses.
5490 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5491 (i386_linux_sigcontext_addr): Use it. Rewrite.
5492 (find_minsym_and_objfile): Change name of second argument.
5493 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5494 changed. Use frame_pc_unwind instead of
5495 DEPRECATED_SAVED_PC_AFTER_CALL.
5496 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5497 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5498 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5499 unwinder.
5500 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5501 "dummy-frame.h".
5502 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5503 (_initialize_i386_cygwin_tdep): New prototype.
5504 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5505 deprecated_frame_chain_valid.
5506 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5507 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5508 Rely on the SVR4 defaults.
5509 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5510 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5511
5512 2003-05-30 Andrew Cagney <cagney@redhat.com>
5513
5514 * infcall.c (call_function_by_hand): Always call
5515 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5516
5517 2003-05-30 Richard Henderson <rth@redhat.com>
5518
5519 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5520 increment.
5521
5522 2003-05-29 Jim Blandy <jimb@redhat.com>
5523
5524 Use gdbarch methods for solib stuff on PowerPC Linux.
5525 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5526 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5527 show through.
5528 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5529 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5530 giving the same effect as the #definitions above.
5531
5532 2003-05-29 Adam Fedor <fedor@gnu.org>
5533
5534 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5535 (find_implementation_from_class): Replace it with the standard
5536 case i.e. do nothing.
5537
5538 2003-05-29 Richard Henderson <rth@redhat.com>
5539
5540 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5541 (alpha_linux_sigtramp_offset): Use it. Make static.
5542 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5543 update for new frame model.
5544 * alpha-mdebug-tdep.c: New file.
5545 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5546 (alpha_osf1_init_abi): Install it.
5547 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5548 (linked_proc_desc_table): Remove.
5549 (alpha_frame_past_sigtramp_frame): Remove.
5550 (alpha_dynamic_sigtramp_offset): Remove.
5551 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5552 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5553 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5554 (push_sigtramp_desc): Remove.
5555 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5556 (alpha_cannot_store_register): Likewise.
5557 (alpha_sigcontext_addr): Remove.
5558 (alpha_find_saved_regs): Remove.
5559 (alpha_frame_init_saved_regs): Remove.
5560 (alpha_init_frame_pc_first): Remove.
5561 (read_next_frame_reg): Remove.
5562 (alpha_frame_saved_pc): Remove.
5563 (alpha_saved_pc_after_call): Remove.
5564 (temp_proc_desc, temp_saved_regs): Remove.
5565 (alpha_about_to_return): Remove.
5566 (cached_proc_desc): Remove.
5567 (alpha_frame_chain): Remove.
5568 (alpha_print_extra_frame_info): Remove.
5569 (alpha_init_extra_frame_info): Remove.
5570 (alpha_frame_locals_address): Remove.
5571 (alpha_frame_args_address): Remove.
5572 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5573 (alpha_push_dummy_frame): Remove.
5574 (alpha_pop_frame): Remove.
5575 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5576 (alpha_read_insn): New.
5577 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5578 for different insn encodings.
5579 (alpha_in_lenient_prologue): Remove.
5580 (struct alpha_sigtramp_unwind_cache): New.
5581 (alpha_sigtramp_frame_unwind_cache): New.
5582 (alpha_sigtramp_register_address): New.
5583 (alpha_sigtramp_frame_this_id): New.
5584 (alpha_sigtramp_frame_prev_register): New.
5585 (alpha_sigtramp_frame_unwind): New.
5586 (alpha_sigtramp_frame_p): New.
5587 (struct alpha_heuristic_unwind_cache): New.
5588 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5589 don't count nop insns that occur between functions.
5590 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5591 heuristic_proc_desc, but without the mdebug wrapping.
5592 (alpha_heuristic_frame_this_id): New.
5593 (alpha_heuristic_frame_prev_register): New.
5594 (alpha_heuristic_frame_unwind): New.
5595 (alpha_heuristic_frame_p): New.
5596 (alpha_heuristic_frame_base_address): New.
5597 (alpha_heuristic_frame_base): New.
5598 (alpha_unwind_dummy_id): New.
5599 (alpha_unwind_pc): New.
5600 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5601 frame related deprecated initializations; install replacements.
5602 (alpha_dump_tdep): Remove.
5603 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5604 (alpha_read_insn, alpha_after_prologue,
5605 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5606 alpha_heuristic_frame_prev_register,
5607 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5608 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5609 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5610 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5611
5612 2003-05-29 Andrew Cagney <cagney@redhat.com>
5613
5614 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5615 dependant on the availability of ASSERT_FUNCTION.
5616 (ASSERT_FUNCTION): Do not define when there is no function name.
5617
5618 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5619
5620 From Jimi X <jimix@watson.ibm.com>:
5621 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5622
5623 2003-05-28 Jim Blandy <jimb@redhat.com>
5624
5625 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5626 argument to ptrace to int; the system headers should give it the
5627 right type, and pointers don't fit in ints on powerpc64-*-*.
5628
5629 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5630
5631 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5632 DW_TAG_catch_block.
5633
5634 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5635
5636 * stabsread.c (dbx_lookup_type): Make static.
5637 (read_type): Ditto.
5638 (add_undefined_type): Ditto.
5639 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5640 not export.
5641
5642 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5643
5644 * hpread.c (hpread_has_name): Make static.
5645 (hpread_psymtab_to_symtab): Ditto.
5646 (file_exists): Ditto.
5647 (hpread_call_pxdb): Ditto.
5648 (hpread_pxdb_needed): Ditto.
5649 (hpread_quick_traverse): Ditto.
5650 (hpread_get_header): Ditto.
5651 (hpread_get_lntt): Ditto.
5652 (hpread_get_slt): Ditto.
5653 (class_of): Ditto.
5654
5655 2003-05-25 Andreas Schwab <schwab@suse.de>
5656
5657 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5658 stack_align and deprecated_extra_stack_alignment_needed.
5659 (m68k_stack_align): Delete.
5660
5661 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5662 (m68k_register_virtual_size): Likewise.
5663 (altos_skip_prologue): Remove obsolete function.
5664 (isi_frame_num_args): Likewise.
5665 (news_frame_num_args): Likewise.
5666 (m68k_fix_call_dummy): Make static.
5667 (m68k_push_dummy_frame): Likewise.
5668 (m68k_pop_frame): Likewise.
5669 (m68k_skip_prologue): Likewise.
5670 (m68k_frame_init_saved_regs): Likewise.
5671 (m68k_saved_pc_after_call): Likewise.
5672 (m68k_get_longjmp_target): Make multi-arch.
5673 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5674 structure. Register m68k_get_longjmp_target if enabled.
5675 * m68k-tdep.h (struct gdbarch_tdep): Define.
5676 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5677
5678 * Makefile.in (config.status): Also depend on configure.tgt
5679 and configure.host.
5680 (m68klinux-tdep.o): Update dependencies.
5681 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5682 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5683 (M68K_LINUX_JB_PC): Define.
5684 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5685 and take additional parameter.
5686 (m68k_linux_sigtramp_saved_pc): Update.
5687 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5688 m68k_linux_pc_in_sigtramp, in_plt_section,
5689 find_solib_trampoline_target.
5690 * config/m68k/tm-linux.h: Don't include any tm headers.
5691 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5692 (JB_ELEMENT_SIZE): Likewise.
5693 (JB_PC): Likewise.
5694 (GET_LONGJMP_TARGET): Likewise.
5695 (IN_SIGTRAMP): Likewise.
5696 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5697
5698 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5699
5700 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5701 (sparc32_push_arguments): Re-implement by calling
5702 sparc32_do_push_arguments.
5703
5704 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5705
5706 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5707 SPARC_O1_REGNUM): New defines.
5708 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5709 (sparc32_store_return_value): New function.
5710 (sparc_extract_struct_value_address): Rewrite to operate on a
5711 regcache.
5712 (sparc_gdbarch_init): Don't set
5713 deprecated_extract_struct_value_address. Set
5714 extract_struct_value_address instead. Don't set
5715 deprecated_extract_return_value and deprecated_store_return_value
5716 for 32-bit targets. Set extract_return_value and
5717 store_return_value instead.
5718 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5719 DEPRECTAED_EXTRACT_RETURN_VALUE,
5720 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5721 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5722 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5723 (sparc_store_return_value): Remove prototype.
5724 (sparc32_store_return_value): New prototype.
5725 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5726 Adjust prototypes.
5727
5728 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5729
5730 * sparcnbsd-tdep.c: Include "gdb_string.h".
5731
5732 2003-05-23 Andrew Cagney <cagney@redhat.com>
5733
5734 * p-valprint.c (pascal_val_print): Replace extract_address with
5735 the inline equivalent extract_unsigned_integer.
5736 * jv-valprint.c (java_value_print): Ditto.
5737 * ada-valprint.c (ada_val_print_1): Ditto.
5738 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5739
5740 2003-05-23 Theodore A. Roth <troth@openavr.org>
5741
5742 * blockframe.c (frameless_look_for_prologue): Remove unused
5743 after_prologue variable.
5744
5745 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5746
5747 * blockframe.c (get_pc_function_start): Rewrite to avoid
5748 asignments in if-statements.
5749
5750 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5751
5752 Committed by Elena Zannoni <ezannoni@redhat.com>.
5753 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5754 files, don't relocate absolute symbols (and do use mst_abs).
5755
5756 2003-05-23 Andrew Cagney <cagney@redhat.com>
5757
5758 * objc-lang.c: Include "gdb_assert.h".
5759 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5760 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5761 (gdb_check, gdb_check_fatal): Delete functions.
5762 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5763 gdb_assert.
5764 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5765 * Makefile.in (objc-lang.o): Update dependencies.
5766
5767 2003-05-22 Ian Lance Taylor <ian@airs.com>
5768
5769 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5770 with fprintf_filtered, not fprintf_unfiltered.
5771
5772 2003-05-22 Andrew Cagney <cagney@redhat.com>
5773
5774 * stack.c (frame_info): Inline extract_address, replacing it with
5775 extract_unsigned_integer.
5776 * findvar.c (unsigned_pointer_to_address): Ditto.
5777 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5778 * dwarf2expr.c (dwarf2_read_address): Ditto.
5779 * frame.c (frame_pc_unwind): Update comment.
5780 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5781
5782 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5783
5784 * infptrace.c (detach): Call print_sys_errmsg rather than
5785 perror_with_name to issue warning message when errno is non-zero
5786 after calling ptrace detach.
5787
5788 2003-05-21 J. Brobecker <brobecker@gnat.com>
5789
5790 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5791 macro definitions from here...
5792 * hppa-tdep.c: ...to there.
5793
5794 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5795
5796 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5797 register_ptrace_addr(). Fix all callers.
5798
5799 2003-05-21 Andreas Schwab <schwab@suse.de>
5800
5801 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5802 dependencies.
5803 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5804 end.
5805 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5806 (_initialize_m68k_linux_tdep): New function.
5807 (m68k_linux_frame_saved_pc): Make static.
5808 (m68k_linux_extract_return_value): Likewise.
5809 (m68k_linux_store_return_value): Likewise.
5810 (m68k_linux_extract_struct_value_address): Likewise.
5811 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5812 Remove.
5813 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5814 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5815 (DEPRECATED_FRAME_SAVED_PC): Remove.
5816
5817 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5818
5819 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5820 regset numbering rather than our own.
5821
5822 2003-05-19 David Carlton <carlton@bactrian.org>
5823
5824 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5825
5826 2003-05-19 David Carlton <carlton@bactrian.org>
5827
5828 Partial fix for PR c++/827.
5829 * cp-support.h: Include symtab.h.
5830 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5831 * cp-namespace.c: Update contributors.
5832 (cp_lookup_symbol_nonlocal): New.
5833 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5834 (lookup_symbol_file): Ditto.
5835 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5836 * block.h: Declare block_scope, block_using, block_global_block.
5837 * block.c (block_scope): New.
5838 (block_using, block_global_block): Ditto.
5839 * Makefile.in (cp_support_h): Depend on symtab_h.
5840 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5841
5842 2003-05-19 David Carlton <carlton@bactrian.org>
5843
5844 * language.h (struct language_defn): Add 'la_value_of_this'
5845 and 'la_lookup_symbol_nonlocal' members.
5846 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5847 lookup_symbol_static, lookup_symbol_global,
5848 lookup_symbol_aux_block.
5849 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5850 if we should search fields of this and how to do static/global
5851 lookup.
5852 (lookup_symbol_aux_block): Make extern.
5853 (basic_lookup_symbol_nonlocal): New.
5854 (lookup_symbol_static, lookup_symbol_global): Ditto.
5855 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5856 'la_lookup_symbol_nonlocal' members.
5857 * c-lang.c (c_language_defn, cplus_language_defn)
5858 (asm_language_defn, minimal_language_defn): Ditto.
5859 * jv-lang.c (java_language_defn): Ditto.
5860 * language.c (unknown_language_defn, auto_language_defn)
5861 (local_language_defn): Ditto.
5862 * m2-lang.c (m2_language_defn): Ditto.
5863 * objc-lang.c (objc_language_defn): Ditto.
5864 * scm-lang.c (scm_language_defn): Ditto.
5865 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5866 * p-lang.c (pascal_language_defn): Ditto for both.
5867 * Makefile.in (f-lang.o): Depend on value_h.
5868 (p-lang.o): Ditto.
5869
5870 2003-05-19 David Carlton <carlton@bactrian.org>
5871
5872 * block.h: Declare block_static_block.
5873 * block.c (block_static_block): New.
5874 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5875 lookup_symbol_aux_local, calling block_static_block instead.
5876 (lookup_symbol_aux_local): Delete 'static_block' argument.
5877
5878 2003-05-19 David Carlton <carlton@bactrian.org>
5879
5880 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5881
5882 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5883
5884 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5885 register numbers mapping.
5886
5887 2003-05-18 Adam Fedor <fedor@gnu.org>
5888
5889 * symtab.c (completion_list_objc_symbol): New function.
5890 (make_symbol_completion_list): Use it to add ObjC symbols
5891 when looking though the list.
5892 (language_search_unquoted_string): New function.
5893 (make_file_symbol_completion_list): Use it.
5894
5895 2003-05-18 Andreas Schwab <schwab@suse.de>
5896
5897 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5898 dependencies.
5899 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5900 as m68k_linux_extract_return_value.
5901 (DEPRECATED_STORE_RETURN_VALUE): Define as
5902 m68k_linux_store_return_value.
5903 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5904 m68k_linux_extract_struct_value_address.
5905 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5906 get_next_frame, get_frame_base, get_frame_pc.
5907 (m68k_linux_frame_saved_pc): Use get_frame_base.
5908 (m68k_linux_extract_return_value): New function.
5909 (m68k_linux_store_return_value): New function.
5910 (m68k_linux_extract_struct_value_address): New function.
5911 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5912
5913 * c-exp.y (typebase): Remove duplicate occurence of
5914 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5915 of lookup_signed_typename.
5916
5917 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5918
5919 * dwarf2loc.c (find_location_expression): Change type of second
5920 argument to `size_t *'.
5921 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5922 for size variable.
5923
5924 2003-05-18 David Carlton <carlton@bactrian.org>
5925
5926 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5927 'linkage_name'. Add comment.
5928 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5929 'linkage_name'.
5930 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5931 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5932 (lookup_block_symbol): Ditto.
5933
5934 2003-05-16 Andrew Cagney <cagney@redhat.com>
5935
5936 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5937 * gdbarch.h, gdbarch.c: Re-generate.
5938 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5939 * TODO (REGISTER_BYTES): Delete reference.
5940 * alpha-tdep.c (alpha_gdbarch_init): Update.
5941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5942 * x86-64-tdep.c (x86_64_init_abi): Update.
5943 * vax-tdep.c (vax_gdbarch_init): Update.
5944 * v850-tdep.c (v850_gdbarch_init): Update.
5945 * sparc-tdep.c (sparc_gdbarch_init): Update.
5946 * sh-tdep.c (sh_gdbarch_init): Update.
5947 * s390-tdep.c (s390_gdbarch_init): Update.
5948 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5949 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5950 (ns32k_gdbarch_init_32382): Update.
5951 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5952 * mcore-tdep.c (mcore_gdbarch_init): Update.
5953 * m68k-tdep.c (m68k_gdbarch_init): Update.
5954 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5955 * ia64-tdep.c (ia64_gdbarch_init): Update.
5956 * i386-tdep.c (i386_gdbarch_init): Update.
5957 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5958 * hppa-tdep.c (hppa_gdbarch_init): Update.
5959 * h8300-tdep.c (h8300_gdbarch_init): Update.
5960 * frv-tdep.c (frv_gdbarch_init): Update.
5961 * cris-tdep.c (cris_gdbarch_init): Update.
5962 * avr-tdep.c (avr_gdbarch_init): Update.
5963 * arm-tdep.c (arm_gdbarch_init): Update.
5964 * sparc-tdep.c (sparc_pop_frame): Update.
5965 * rs6000-tdep.c (rs6000_pop_frame): Update.
5966 * remote.c (init_remote_state): Update.
5967 (remote_prepare_to_store): Update.
5968 * remote-vx.c (vx_prepare_to_store): Update.
5969 * remote-sds.c (sds_fetch_registers): Update.
5970 (sds_prepare_to_store): Update.
5971 * remote-array.c: Update.
5972 * regcache.c (init_legacy_regcache_descr): Update.
5973 (init_regcache_descr): Update.
5974 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5975 (mips_o64_extract_return_value): Update.
5976 * irix5-nat.c (fetch_core_registers): Update.
5977 * irix4-nat.c (fetch_core_registers): Update.
5978 * i386-tdep.h: Update.
5979 * hppa-tdep.c (pa_do_registers_info): Update.
5980 (pa_do_strcat_registers_info): Update.
5981 * cris-tdep.c (cris_register_bytes_ok): Update.
5982 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5983 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5984 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5985 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5986 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5987 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5988 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5989 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5990 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5991 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5992 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5993 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5994 (REGISTER_BYTES_OK): Update.
5995 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5996 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5997
5998 2003-05-16 Ian Lance Taylor <ian@airs.com>
5999
6000 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6001 (vax_print_insn, print_insn_arg): Remove static functions.
6002 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6003 print_insn_vax from opcodes library.
6004 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6005
6006 2003-05-15 Andrew Cagney <cagney@redhat.com>
6007
6008 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6009 * target.h (memory_breakpoint_from_pc): Delete declaration.
6010 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6011 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6012 * monitor.c (monitor_insert_breakpoint): Use
6013 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6014 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6015 * gdbarch.h, gdbarch.c: Re-generate.
6016 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6017 (sparc_gdbarch_init): Set breakpoint_from_pc to
6018 sparc_breakpoint_from_pc.
6019 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6020 (BREAKPOINT_FROM_PC): Define.
6021 (sparc_breakpoint_from_pc): Declare.
6022 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6023 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6024 (BREAKPOINT_FROM_PC): Define.
6025 (BREAKPOINT): Delete macro.
6026 * target.h: Update comment.
6027 * s390-tdep.c (s390_gdbarch_init): Update comments.
6028 * remote.c: Update comments.
6029 * remote-mips.c: Update comments.
6030 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6031 * mem-break.c: Update comment.
6032 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6033 (ia64_memory_insert_breakpoint): Update.
6034 * config/sparc/tm-sparc.h: Update comment.
6035 * config/pa/tm-hppa64.h: Update comment.
6036 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6037 (rs6000_breakpoint_from_pc): Update.
6038 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6039 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6040 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6041 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6042 (mips_breakpoint_from_pc): Update.
6043 (mips_dump_tdep): Update.
6044
6045 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6046 * minsyms.c (lookup_minimal_symbol): Inline
6047 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6048
6049 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6050 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6051 * p-lang.c (pascal_printstr): Ditto.
6052 * objc-lang.c (objc_printstr): Ditto.
6053 * m2-lang.c (m2_printstr): Ditto.
6054 * jv-valprint.c (java_print_value_fields): Ditto.
6055 * f-lang.c (f_printstr): Ditto.
6056 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6057 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6058 for repeat_count_threshold.
6059 * Makefile.in (cp-valprint.o): Update dependencies.
6060
6061 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6062
6063 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6064 (examine_prologue): Support looking through leaf functions, knowing
6065 they start with mov r2,r12. Support skipping over indirect stores
6066 of the input registers. Upon hitting a non-nop branch instruction
6067 or predicated instruction, bail out by setting lim_pc to the current
6068 pc value in the loop. At the end, if the lim_pc value is still
6069 beyond our calculated value and we have trust_limit set,
6070 use the lim_pc value.
6071
6072 2003-05-15 Andrew Cagney <cagney@redhat.com>
6073
6074 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6075 generic_find_dummy_frame.
6076 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6077 (deprecated_generic_find_dummy_frame): Update.
6078 (deprecated_read_register_dummy): Update.
6079 * frame.c (deprecated_generic_get_saved_register): Update.
6080
6081 2003-05-15 Theodore A. Roth <troth@openavr.org>
6082
6083 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6084 (avr_gdbarch_init): Set breakpoint_from_pc method.
6085
6086 2003-05-15 Andrew Cagney <cagney@redhat.com>
6087
6088 * regcache.c (build_regcache): Set deprecated_register_valid
6089 directly.
6090 (deprecated_grub_regcache_for_register_valid): Delete function.
6091 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6092 declaration.
6093
6094 2003-05-15 David Carlton <carlton@bactrian.org>
6095
6096 Committed by Elena Zannoni <ezannoni@redhat.com>
6097 * symtab.c (lookup_symbol_aux): Delete calls to
6098 lookup_symbol_aux_minsyms.
6099 (lookup_symbol_aux_minsyms): Comment out function and
6100 prototype. Delete lookup by mangled name.
6101
6102 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6103
6104 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6105 correctly indicate an empty stack and ``stack_allocated'' to the
6106 indicate the number of elements initially allocated.
6107 (dwarf_expr_grow_stack): Simplify method for computing new
6108 stack size. Don't loop infinitely if ``stack_len'' is zero.
6109 (execute_stack_op): Move ``ctx->in_reg'' initialization
6110 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6111 be used in conjuction with DW_OP_piece. Revise error message
6112 accordingly.
6113
6114 2003-05-14 Theodore A. Roth <troth@openavr.org>
6115
6116 * MAINTAINERS: Update my email address.
6117 * avr-tdep.c: Ditto.
6118
6119 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6120
6121 * symtab.h (enum domain_enum): Rename from namespace_enum.
6122 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6123 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6124 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6125 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6126 TYPES_NAMESPACE, METHODS_NAMESPACE.
6127 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6128 (struct symbol, struct partial_symbol): Rename field
6129 'namespace_enum namespace' to 'domain_enum domain'.
6130 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6131 Delete old define kludge for namespace.
6132
6133 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6134 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6135 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6136 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6137 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6138 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6139 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6140 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6141 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6142 occurrences of the above.
6143
6144 2003-05-14 Ian Lance Taylor <ian@airs.com>
6145
6146 * Makefile.in (install-only): Use $(SHELL) when running
6147 mkinstalldirs.
6148
6149 2003-05-13 Ian Lance Taylor <ian@airs.com>
6150
6151 * MAINTAINERS (write after approval): Add myself.
6152
6153 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6154 second and third arguments.
6155 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6156 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6157
6158 2003-05-13 Andrew Cagney <cagney@redhat.com>
6159
6160 * defs.h (store_address): Delete declaration.
6161 findvar.c (store_address): Delete function.
6162 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6163 store_unsigned_integer.
6164 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6165 * v850-tdep.c (v850_push_arguments): Ditto.
6166 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6167 * sh-tdep.c (sh64_get_saved_register): Ditto.
6168 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6169 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6170 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6171 (mips_get_saved_register): Ditto.
6172 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6173 (find_func_descr, ia64_push_arguments): Ditto.
6174 * i386-tdep.c (i386_push_arguments): Ditto.
6175 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6176 * frv-tdep.c (frv_push_arguments): Ditto.
6177 * frame.c (legacy_saved_regs_prev_register): Ditto.
6178 (deprecated_generic_get_saved_register): Ditto.
6179 * findvar.c (unsigned_address_to_pointer): Ditto.
6180 * dwarf2read.c (dwarf2_const_value): Ditto.
6181 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6182 * alpha-tdep.c (alpha_push_arguments): Ditto.
6183
6184 2003-05-12 J. Brobecker <brobecker@gnat.com>
6185
6186 * NEWS: Mention that the hppa-hpux port has been partially
6187 multiarched (32bit ABIT only, so far).
6188
6189 2003-05-11 Andrew Cagney <cagney@redhat.com>
6190
6191 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6192 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6193 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6194 sim/testsuite/sim/arm/misaligned2.ms, and
6195 sim/testsuite/sim/arm/misaligned3.ms.
6196 * disasm.h (struct ui_file): Add opaque struct declaration.
6197 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6198 * frame.h (struct ui_file): Ditto.
6199
6200 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6201
6202 * value.h: Pretty print.
6203
6204 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6205
6206 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6207
6208 2003-05-08 Andrew Cagney <cagney@redhat.com>
6209
6210 * regcache.h (max_register_size): Delete declaration.
6211 * regcache.c (max_register_size): Delete function.
6212 (struct regcache_descr): Delete field "max_register_size".
6213 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6214 registers fit in MAX_REGISTER_SIZE.
6215 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6216 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6217 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6218 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6219 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6220 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6221 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6222 * dve3900-rom.c, hppa-tdep.c: Ditto.
6223
6224 2003-05-08 David Carlton <carlton@math.stanford.edu>
6225
6226 * valops.c (push_word): Fix typo.
6227
6228 2003-05-08 Andrew Cagney <cagney@redhat.com>
6229
6230 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6231 * gdbarch.h: Re-generate.
6232 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6233 (legacy_max_register_raw_size): Delete declaration.
6234 * regcache.c (legacy_max_register_raw_size): Delete function.
6235 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6236 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6237 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6238 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6239 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6240 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6241 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6242 * findvar.c, dwarf2cfi.c: Ditto.
6243
6244 2003-05-08 Andrew Cagney <cagney@redhat.com>
6245
6246 * mips-tdep.c (read_signed_register): New function, moved to here
6247 from "regcache.c".
6248 (read_signed_register_pid): Ditto.
6249 * regcache.c (read_signed_register_pid): Delete function, moved to
6250 "mips-tdep.c".
6251 (read_signed_register): Ditto.
6252 * regcache.h (read_signed_register): Delete declaration.
6253 (read_signed_register_pid): Delete declaration.
6254
6255 2003-05-08 Andrew Cagney <cagney@redhat.com>
6256
6257 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6258 * gdbarch.h: Re-generate.
6259 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6260 (legacy_max_register_virtual_size): Delete declaration.
6261 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6262 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6263 * tracepoint.c (memrange_sortmerge): Ditto.
6264 * sparc-tdep.c (sparc_print_registers): Ditto.
6265 * regcache.c (legacy_max_register_virtual_size): Delete function.
6266
6267 2002-05-08 J. Brobecker <brobecker@gnat.com>
6268
6269 * fork-child.c (escape_bang_in_quoted_argument): New function.
6270 (fork_inferior): Escape '!' characters in quoted arguments
6271 only when needed.
6272
6273 2003-05-08 J. Brobecker <brobecker@gnat.com>
6274
6275 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6276 the language of the CU is not currently supported by GDB.
6277
6278 2003-05-08 J. Brobecker <brobecker@gnat.com>
6279
6280 * defs.h (language): Add language_minimal enum value.
6281 * c-lang.c (minimal_language_defn): New language definition.
6282 (_initialize_c_language): Add the new minimal language to the list
6283 of languages known to GDB.
6284
6285 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6286
6287 * frame.c (get_frame_type): Don't attempt to lazily initialize
6288 frame's unwinder for legacy frames.
6289
6290 2003-05-07 Andrew Cagney <cagney@redhat.com>
6291
6292 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6293 and "regcache" parameters.
6294 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6295
6296 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6297
6298 * dwarf2read.c (dwarf_decode_lines): Only use output of
6299 check_cu_functions() when calling record_line(). Do not update
6300 the current address.
6301
6302 2003-05-07 Andrew Cagney <cagney@redhat.com>
6303
6304 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6305 code.
6306
6307 2003-05-07 Jim Blandy <jimb@redhat.com>
6308
6309 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6310 'maint info symtabs' and 'maint info psymtabs'.
6311 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6312 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6313 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6314 Declarations updated.
6315 * maint.c (maintenance_list_command): Delete.
6316 (_initialize_maint_cmds): Update calls to add_cmd.
6317 * gdbcmd.h (maintenancelistlist): Delete declaration.
6318 * cli/cli-cmds.c (maintenancelistlist): Delete.
6319 (init_cmd_lists): Don't initialize it.
6320 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6321
6322 2003-05-07 Andrew Cagney <cagney@redhat.com>
6323
6324 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6325 "regcache".
6326 (d10v_print_registers_info): Update.
6327 (d10v_dmap_register, d10v_imap_register): Delete functions.
6328 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6329 and "imap_register".
6330 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6331 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6332 * arch-utils.c (generic_remote_translate_xfer_address): Add
6333 "regcache" and "gdbarch" parameters.
6334 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6335 parameter. Change class to multi-arch.
6336 * gdbarch.h, gdbarch.c: Re-generate.
6337 * remote.c (remote_xfer_memory): Use
6338 gdbarch_remote_translate_xfer_address.
6339
6340 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6341
6342 * infrun.c (prev_pc): Move declaration ahead of proceed().
6343 (proceed): Refresh prev_pc value before resuming.
6344 (stop_stepping): Remove code to refresh prev_pc.
6345
6346 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6347
6348 * nto-tdep.c: Removed stray comment.
6349
6350 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6351
6352 * i386-nto-tdep.c: Fix old K&R function definitions.
6353 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6354 Also change add_show_from_set() call to add_setshow_cmd().
6355 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6356
6357 2003-05-05 Andrew Cagney <cagney@redhat.com>
6358
6359 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6360 (fprint_dummy_frames): New function.
6361 (maintenance_print_dummy_frames): New function.
6362 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6363 * frame.c (fprint_frame_id): Make global.
6364 * frame.h (fprint_frame_id): Declare.
6365 * Makefile.in (dummy-frame.o): Update dependencies.
6366
6367 2003-05-05 Andrew Cagney <cagney@redhat.com>
6368
6369 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6370 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6371 SIZEOF_CALL_DUMMY_WORDS.
6372 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6373 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6374 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6375 CALL_DUMMY_BREAKPOINT_OFFSET.
6376 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6377 CALL_DUMMY_START_OFFSET.
6378 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6379 * gdbarch.h, gdbarch.c: Re-generate.
6380 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6381 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6382 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6383 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6384 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6385 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6386 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6387 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6388 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6389 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6390 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6391 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6392 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6393 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6394 * config/sparc/tm-sparc.h: Update.
6395
6396 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6397
6398 * configure.tgt: Add i[3456]86-*-nto*.
6399 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6400 * nto-tdep.c: New file. Neutrino target support routines.
6401 * nto-tdep.h: New file. Neutrino target header.
6402 * config/tm-qnxnto.h: New file.
6403 * config/i386/i386nto.mt: New file.
6404 * config/i386/tm-i386nto.h: New file.
6405
6406 2003-05-04 Andrew Cagney <cagney@redhat.com>
6407
6408 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6409 (load_infrun_state): Ditto.
6410 (struct thread_info): Drop "prev_func_name" field.
6411 * thread.c (load_infrun_state): Update.
6412 (save_infrun_state): Update.
6413 * infrun.c (prev_func_name): Delete variable.
6414 (init_wait_for_inferior): Do not clear prev_func_name.
6415 (stop_stepping, keep_going, context_switch): Do not swap
6416 prev_func_name.
6417 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6418 instead of PC_IN_SIGTRAMP.
6419
6420 2003-05-04 Andrew Cagney <cagney@redhat.com>
6421
6422 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6423 REGISTER_BYTE with register_offset_hack.
6424 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6425 that REGISTER_BYTE is consistent with the regcache.
6426 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6427 * gdbarch.h, gdbarch.c: Regenerate.
6428
6429 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6430
6431 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6432 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6433
6434 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6435
6436 2003-05-03 J. Brobecker <brobecker@gnat.com>
6437
6438 From Thierry Schneider <tpschneider1@yahoo.com>
6439 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6440 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6441 (mi-cmd-symbol.o): Add rule.
6442
6443 2003-05-03 Andrew Cagney <cagney@redhat.com>
6444
6445 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6446 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6447 * gdbarch.h, gdbarch.c: Re-generate.
6448 * d10v-tdep.c (d10v_push_dummy_code): New function.
6449 (d10v_gdbarch_init): Set push_dummy_code.
6450 * infcall.c (legacy_push_dummy_code): New function.
6451 (generic_push_dummy_code): New function.
6452 (push_dummy_code): New function.
6453 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6454 instead of dummy_addr, to push_dummy_call. Move call to
6455 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6456 switch.
6457 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6458
6459 2003-05-03 Andrew Cagney <cagney@redhat.com>
6460
6461 * disasm.h (print_insn): Declare.
6462 * disasm.c (init_gdb_disassemble_info): New function.
6463 (gdb_disassembly): Call init_gdb_disassemble_info.
6464 (gdb_print_insn): New function.
6465 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6466 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6467 * mcore-tdep.c: Include "disasm.h"
6468 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6469 * d10v-tdep.c: Include "disasm.h".
6470 (display_trace): Call gdb_print_insn, instead of print_insn.
6471 (print_insn): Delete function.
6472 * printcmd.c: Include "disasm.h".
6473 (print_insn): Delete function.
6474 (print_formatted): Call gdb_print_insn, instead of print_insn.
6475 * Makefile.in (printcmd.o): Update dependencies.
6476 (mcore-tdep.o, d10v-tdep.o): Ditto.
6477
6478 2003-05-02 Andrew Cagney <cagney@redhat.com>
6479
6480 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6481 PC_REGNUM, re-indent.
6482 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6483 PC_REGNUM isn't set.
6484
6485 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6486 * gdbarch.h, gdbarch.c: Re-generate.
6487 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6488 register_virtual_size, pc_regnum, or register_bytes.
6489 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6490 (d10v_register_type): Use D10V_PC_REGNUM.
6491 (d10v_print_registers_info, d10v_read_pc): Ditto.
6492 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6493 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6494
6495 2003-05-02 David Carlton <carlton@bactrian.org>
6496
6497 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6498 the name with mstrsave.
6499
6500 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6501
6502 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6503 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6504 (host_charset_name, target_charset_name): New vars for use by
6505 set/show commands.
6506 (host_charset_enum, target_charset_enum): New enums for set/show
6507 commands.
6508 (set_charset_sfunc, set_host_charset_sfunc,
6509 set_target_charset_sfunc): New functions.
6510 (set_host_charset, set_target_charset): Make static.
6511 (list_charsets, set_host_charset_command,
6512 set_target_charset_command): Delete functions.
6513 (show_charset_command): Rewrite as....
6514 (show_charset): Hook this up with the set/show command mechanism.
6515 (_initialize_charset): Change names of charsets to match the
6516 set/show enums. Use host_charset_name and target_charset_name.
6517 Use set/show mechanism for charset, host-charset, target-charset
6518 commands. Do not make 'show host-charset' and 'show
6519 target-charset' be aliases of 'show charset'.
6520
6521 * charset.h (set_host_charset, set_target_charset): Don't export,
6522 they are not used outside the file.
6523
6524 2003-05-01 Andrew Cagney <cagney@redhat.com>
6525
6526 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6527 (gdb_disassembly): Make "di" non static, always initialize and
6528 cleanup. Always use dis_asm_read_memory.
6529 (gdb_dis_asm_read_memory): Delete function.
6530
6531 2003-05-01 Andrew Cagney <cagney@redhat.com>
6532
6533 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6534 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6535
6536 2003-04-30 Andrew Cagney <cagney@redhat.com>
6537
6538 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6539 "tm_print_insn_info".
6540 (TARGET_PRINT_INSN_INFO): Delete macro.
6541 (dis_asm_read_memory): Delete function declaration.
6542 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6543 (tm_print_insn_info): Delete variable definition.
6544 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6545 * gdbarch.h, gdbarch.c: Re-generate.
6546 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6547 "deprecated_tm_print_insn_info".
6548 * mcore-tdep.c (mcore_dump_insn): Ditto.
6549 * mips-tdep.c (mips_gdbarch_init): Ditto.
6550 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6551 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6552 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6553 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6554 instead of TARGET_PRINT_INSN_INFO, add comment.
6555 * s390-tdep.c (s390_get_frame_info): Instead of
6556 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6557 (s390_check_function_end, s390_is_sigreturn): Ditto.
6558 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6559 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6560 * disasm.c: Include "gdbcore.h".
6561 (_initialize_disasm): New function, initialize
6562 "deprecated_tm_print_insn_info".
6563 (deprecated_tm_print_insn_info): New variable.
6564 (dis_asm_read_memory): Moved from "corefile.c", made static.
6565 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6566 * Makefile.in (disasm.o): Update dependencies.
6567
6568 2003-04-30 Andrew Cagney <cagney@redhat.com>
6569
6570 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6571
6572 2003-04-29 Adam Fedor <fedor@gnu.org>
6573
6574 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6575 * infcall.c (find_function_addr): Make non-static.
6576 * infcall.h (find_function_addr): Declare.
6577 * Makefile.in (eval.o): Update dependencies.
6578
6579 2003-04-28 Adam Fedor <fedor@gnu.org>
6580
6581 * symtab.c (symbol_find_demangled_name): Check for and demangle
6582 ObjC symbols.
6583 (symbol_init_demangled_name): Init for language_objc as well.
6584
6585 2003-04-28 Andrew Cagney <cagney@redhat.com>
6586
6587 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6588 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6589 * gdbarch.h, gdbarch.c: Re-generate.
6590 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6591 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6592 * inferior.h (deprecated_read_fp): Rename read_fp.
6593 (generic_target_read_fp): Delete declaration.
6594 * regcache.c (generic_target_read_fp): Delete function.
6595 (deprecated_read_fp): Replace read_fp, use
6596 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6597 * d10v-tdep.c (d10v_read_fp): Delete function.
6598 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6599
6600 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6601 deprecated_target_read_fp to generic_target_read_fp.
6602 * sh-tdep.c (sh_gdbarch_init): Ditto.
6603 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6604 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6605 * frv-tdep.c (frv_gdbarch_init): Ditto.
6606
6607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6608 deprecated_fp_regnum.
6609 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6610 * vax-tdep.c (vax_gdbarch_init): Ditto.
6611 * v850-tdep.c (v850_gdbarch_init): Ditto.
6612 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6613 * sh-tdep.c (sh_gdbarch_init): Ditto.
6614 * s390-tdep.c (s390_gdbarch_init): Ditto.
6615 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6616 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6617 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6618 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6619 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6620 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6621 * i386-tdep.c (i386_gdbarch_init): Ditto.
6622 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6623 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6624 * frv-tdep.c (frv_gdbarch_init): Ditto.
6625 * cris-tdep.c (cris_gdbarch_init): Ditto.
6626 * avr-tdep.c (avr_gdbarch_init): Ditto.
6627 * arm-tdep.c (arm_gdbarch_init): Ditto.
6628 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6629
6630 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6631 * v850-tdep.c (v850_gdbarch_init): Ditto.
6632 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6633 * sh-tdep.c (sh_gdbarch_init): Ditto.
6634 * s390-tdep.c (s390_gdbarch_init): Ditto.
6635 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6636 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6637 * mips-tdep.c (mips_gdbarch_init): Ditto.
6638 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6639 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6640 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6641 * frv-tdep.c (frv_gdbarch_init): Ditto.
6642 * avr-tdep.c (avr_gdbarch_init): Ditto.
6643 * arm-tdep.c (arm_gdbarch_init): Ditto.
6644
6645 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6646 DEPRECATED_FP_REGNUM.
6647 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6648 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6649 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6650 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6651 (sparc32_register_virtual_type): Ditto.
6652 * sh-tdep.c (sh64_frame_chain): Ditto.
6653 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6654 (sh_nofp_frame_init_saved_regs): Ditto.
6655 (sh64_nofp_frame_init_saved_regs): Ditto.
6656 (sh_fp_frame_init_saved_regs): Ditto.
6657 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6658 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6659 * procfs.c (procfs_fetch_registers): Ditto.
6660 (procfs_store_registers): Ditto.
6661 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6662 (store_inferior_registers, fetch_core_registers): Ditto.
6663 (fetch_kcore_registers, clear_regs): Ditto.
6664 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6665 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6666 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6667 * nlm/i386.c (do_status): Ditto.
6668 * mipsv4-nat.c (supply_gregset): Ditto.
6669 * mips-tdep.c: Ditto for comments.
6670 * mips-nat.c (fetch_inferior_registers): Ditto.
6671 (store_inferior_registers, fetch_core_registers): Ditto.
6672 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6673 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6674 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6675 (i386_do_pop_frame, i386_register_type): Ditto.
6676 * hppa-tdep.c (hppa_frame_chain): Ditto.
6677 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6678 (hppa_pop_frame, hppa_read_fp): Ditto.
6679 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6680 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6681 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6682 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6683 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6684 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6685 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6686 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6687 * blockframe.c: Ditto for comments.
6688 * arch-utils.h: Ditto for comments.
6689 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6690 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6691 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6692 * alpha-tdep.h: Ditto for comments.
6693 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6694 (alpha_cannot_store_register): Ditto.
6695 (alpha_push_dummy_frame): Ditto.
6696 * alpha-nat.c (supply_gregset): Ditto.
6697
6698 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6699 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6700 * config/sparc/tm-sparc.h: Update comment.
6701
6702 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6703 deprecated_read_fp instead of TARGET_READ_FP.
6704 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6705 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6706 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6707 deprecated_read_fp instead of read_fp.
6708 * s390-tdep.c (s390_push_arguments): Ditto.
6709 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6710 * frame.h: Ditto in comments.
6711 * frame.c (legacy_get_prev_frame): Ditto.
6712 * dummy-frame.c (dummy_frame_this_id): Ditto.
6713 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6714
6715 2003-04-28 Andrew Cagney <cagney@redhat.com>
6716
6717 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6718 * gdbarch.h, gdbarch.c: Re-generate.
6719 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6720 * vax-tdep.c (_initialize_vax_tdep): Update.
6721 * v850-tdep.c (_initialize_v850_tdep): Update.
6722 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6723 * s390-tdep.c (_initialize_s390_tdep): Update.
6724 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6725 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6726 * mips-tdep.c (_initialize_mips_tdep): Update.
6727 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6728 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6729 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6730 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6731 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6732 * frv-tdep.c (_initialize_frv_tdep): Update.
6733 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6734 (_initialize_cris_tdep): Update.
6735 * arch-utils.c (legacy_print_insn): Update.
6736 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6737
6738 2003-04-26 Adam Fedor <fedor@gnu.org>
6739
6740 * linespec.c (decode_objc): New function to decode ObjC calls
6741 (decode_line_1): Check for ObjC calls (using decode_objc)
6742 * Makefile (linespec.o): Update dependencies.
6743
6744 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6745
6746 * breakpoint.h (struct breakpoint_ops): New.
6747 (struct breakpoint): Add ops member.
6748
6749 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6750 (mention): Use new breakpoint ops member.
6751 (set_raw_breakpoint): Initialize ops field to NULL.
6752 (print_exception_catchpoint, print_one_exception_catchpoint)
6753 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6754 (gnu_v3_exception_catchpoint_ops): New.
6755 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6756
6757 2003-04-25 Adam Fedor <fedor@gnu.org>
6758
6759 * Makefile.in (COMMON_OBS): Add objc-lang.o
6760
6761 2003-04-25 Andrew Cagney <cagney@redhat.com>
6762
6763 * d10v-tdep.c (print_insn): Delete function.
6764 (display_trace): Use TARGET_PRINT_INSN.
6765 (_initialize_d10v_tdep): Do not set tm_print_insn.
6766 (d10v_gdbarch_init): Set print_insn.
6767
6768 2003-04-25 Andrew Cagney <cagney@redhat.com>
6769
6770 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6771 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6772 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6773 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6774 (nr_dmap_regs, a0_regnum): ... new functions.
6775 (d10v_print_registers_info): Use a0_regnum, use register_size.
6776 (d10v_register_byte): Delete function.
6777 (d10v_register_raw_size): Delete function.
6778 (d10v_register_type): Use a0_regnum.
6779 (d10v_print_registers_info): Use a0_regnum.
6780 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6781 (d10v_gdbarch_init): Do not set register_byte or
6782 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6783 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6784 extract_address.
6785 (trace_command): Use XCALLOC.
6786 (print_insn): Delete reference to tm_print_insn.
6787 (saved_regs_unwinder): Use store_unsigned_integer instead of
6788 store_address.
6789 * frame.h (FRAME_OBSTACK_CALLOC): Define
6790
6791 2003-04-25 David Carlton <carlton@bactrian.org>
6792
6793 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6794
6795 2003-04-24 Adam Fedor <fedor@gnu.org>
6796
6797 * objc-lang.c: Include "valprint.h"
6798 * Makefile.in (objc-lang.o): Update dependencies.
6799
6800 2003-04-24 Adam Fedor <fedor@gnu.org>
6801
6802 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6803 architecture dependant compilation and mark as unimplemented
6804 (until they get put in the gdbarch vector).
6805
6806 2003-04-23 David Carlton <carlton@bactrian.org>
6807
6808 * cp-support.c (cp_find_first_component): Accept 'operator' in
6809 more locations.
6810
6811 2003-04-23 Andrew Cagney <cagney@redhat.com>
6812
6813 * infcall.c (call_function_by_hand): Eliminate redundant
6814 indentation. Move "saved_async" and "old_cleanups" to where they
6815 are needed.
6816
6817 2003-04-23 Andrew Cagney <cagney@redhat.com>
6818
6819 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6820 and "buffer". Move the "name" code to where it is needed.
6821
6822 2003-04-23 Andrew Cagney <cagney@redhat.com>
6823
6824 * infcall.c (call_function_by_hand): Move variables "start_sp",
6825 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6826 code to ON_STACK switch branch.
6827
6828 2003-04-23 Andrew Cagney <cagney@redhat.com>
6829
6830 * infcall.c (call_function_by_hand): Make declaration of "i",
6831 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6832 lint.
6833
6834 2003-04-23 Andrew Cagney <cagney@redhat.com>
6835
6836 * infcall.c (call_function_by_hand): Delete variable
6837 "n_method_args". Localize "param_type"'s declaration to the loop
6838 that it is used. Reinstate code assigning to said variable -
6839 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6840 Rationalize code using "param_type".
6841
6842 2003-04-22 Andrew Cagney <cagney@redhat.com>
6843
6844 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6845 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6846 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6847 to DEPRECATED_PUSH_RETURN_ADDRESS.
6848
6849 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6850
6851 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6852 on the DWARF2 register number prior to fetching a register.
6853
6854 2003-04-22 J. Brobecker <brobecker@gnat.com>
6855
6856 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6857 Update all the tests using SOFT_FLOAT considering the fact that
6858 this macro was always set to 0.
6859 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6860 considering the fact that this macro was always set to 0.
6861 * hppa-tdep.h (hppa_store_return_value): Likewise.
6862 (hppa_extract_return_value): Likewise.
6863
6864 2003-04-22 J. Brobecker <brobecker@gnat.com>
6865
6866 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6867 the hppa-pro target only.
6868
6869 2003-04-21 J. Brobecker <brobecker@gnat.com>
6870
6871 Ongoing multi-arch conversion effort for HP/UX:
6872 * config/pa/tm-hppa.h: Move all macro that are no longer
6873 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6874 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6875
6876 2003-04-21 J. Brobecker <brobecker@gnat.com>
6877
6878 * config/pa/tm-hppa.h: Obsolete a section that was only used
6879 for hppa-pro.
6880
6881 2003-04-21 J. Brobecker <brobecker@gnat.com>
6882
6883 Ongoing multi-arch conversion for HP/UX.
6884 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6885 if already defined (allows hppa64 to stay non-multiarched for now).
6886 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6887
6888 2003-04-21 Andrew Cagney <cagney@redhat.com>
6889
6890 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6891
6892 2003-04-21 Andrew Cagney <cagney@redhat.com>
6893
6894 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6895 "i386_num_mmx_regs".
6896
6897 2003-04-21 Andrew Cagney <cagney@redhat.com>
6898
6899 * infcall.c: New file.
6900 * infcall.h: New file.
6901 * valarith.c: Include "infcall.h".
6902 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6903 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6904 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6905 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6906 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6907 (SFILES): Add "infcall.c"
6908 (COMMON_OBS): Add "infcall.o".
6909 (infcall.o): Specify dependencies.
6910 * value.h (call_function_by_hand): Delete declaration.
6911 * inferior.h (run_stack_dummy): Delete declaration.
6912 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6913 (run_stack_dummy): Move to "infcall.c", merged into
6914 call_function_by_hand.
6915 * valops.c (call_function_by_hand): Moved to "infcall.c".
6916 (find_function_addr, value_arg_coerce): Ditto.
6917 (unwindonsignal_p, coerce_float_to_double): Ditto.
6918 (_initialize_valops): Move "set/show coerce-float-to-double", and
6919 "set/show unwindonsignal" commands to "infcall.c".
6920 * v850-tdep.c, target.h: Update comments.
6921 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6922 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6923 (sh64_init_extra_frame_info): Update comments.
6924 * mn10300-tdep.c: Update comments.
6925 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6926 * config/sparc/tm-sparc.h: Update comments.
6927 * breakpoint.h: Update comments.
6928 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6929 * arm-tdep.c: Update comment.
6930
6931 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6932
6933 * i386-tdep.c (i386_num_register_names): New variable.
6934 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6935 (MM0_REGNUM): Remove redundant parentheses in define.
6936 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6937 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6938 i386_mxcsr_regnum_p): Remove redundant parentheses.
6939 (i386_register_name): Use i386_num_register_names.
6940
6941 * i386-tdep.c (i386_extract_return_value,
6942 i386_store_return_value): Correct check for availability of
6943 floating-point registers.
6944
6945 * i386-tdep.c (i386_frame_num_args): Remove function.
6946 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6947
6948 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6949 mmx_regnum_to_fp_regnum. Adjust all callers.
6950
6951 * i386-tdep.c (i386_get_longjmp_target): Use
6952 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6953 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6954 extract_address.
6955
6956 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6957
6958 * core-regset.c: Update comments to reflect reality. Re-order
6959 includes.
6960 (fetch_core_registers): Use switch instead of if. Remove
6961 redundant prototype.
6962
6963 2003-04-18 Jim Blandy <jimb@redhat.com>
6964
6965 * s390-tdep.c (s390_frame_align): New function.
6966 (s390_gdbarch_init): Register it with the gdbarch object.
6967
6968 2003-04-17 Richard Henderson <rth@redhat.com>
6969
6970 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6971
6972 2003-04-17 Michael Snyder <msnyder@redhat.com>
6973 Karen Bennet <bennet@redhat.com>
6974
6975 Committed by Elena Zannoni <ezannoni@redhat.com>
6976 * gdb_gcore.sh: New script to create a core dump of a process.
6977
6978 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6979
6980 * values.c (value_being_returned): Don't fetch the return
6981 value if the return type is void.
6982
6983 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6984
6985 * thread-db.c: Reindented.
6986
6987 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6988
6989 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6990 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6991 as types.
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7018
7019 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7020 the size of ``long double'' to 16, instead of 8.
7021
7022 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7023
7024 * i386-linux-nat.c: Add some whitespace to make things more
7025 readable.
7026 (fetch_register, store_register, fetch_inferior_registers,
7027 store_inferior_registers): Get rid of assignment in if-statement.
7028 (store_register): Fix typo in error message.
7029
7030 2003-04-16 Andrew Cagney <cagney@redhat.com>
7031
7032 * utils.c (xmmalloc): Always allocate something, matches
7033 libiberty/xmalloc's semantics.
7034 (xmrealloc, xmcalloc): Ditto.
7035
7036 2003-04-16 Andrew Cagney <cagney@redhat.com>
7037
7038 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7039 update comments.
7040 (get_frame_type): Initialize unwind and type when needed.
7041 (get_frame_id, frame_register_unwind): Ditto.
7042
7043 2003-04-16 Andrew Cagney <cagney@redhat.com>
7044
7045 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7046 obsolete.
7047 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7048 * sparcl-stub.c: Obsolete file.
7049 * config/sparc/tm-sparclet.h: Obsolete file.
7050 * sparclet-stub.c: Obsolete file.
7051 * sparclet-rom.c: Obsolete file.
7052 * sparcl-tdep.c: Obsolete file.
7053 * config/sparc/tm-sparclite.h: Obsolete file.
7054 * config/sparc/sparclite.mt: Obsolete file.
7055 * config/sparc/sparclet.mt: Obsolete file.
7056 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7057 sparc86x-*-* obsolete.
7058
7059 2003-04-15 David Carlton <carlton@math.stanford.edu>
7060
7061 * Makefile.in (SFILES): Add cp-namespace.c.
7062 (COMMON_OBS): Add cp-namespace.o.
7063 (block.o): Depend on gdb_obstack_h and cp_support_h.
7064 (buildsym.o): Depend on cp_support_h.
7065 (cp-namespace.o): New.
7066 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7067 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7068 (dwarf2read.o): Depend on cp_support_h.
7069 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7070 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7071 processing_current_namespace.
7072 (read_namespace): Update processing_current_namespace; check for
7073 anonymous namespaces.
7074 (dwarf2_name): New function.
7075 (dwarf2_extension): Ditto.
7076 * cp-support.h: Update copyright, contributors.
7077 Add inclusion guards.
7078 Add opaque declaration for structs obstack, block, symbol.
7079 (struct using_direct): New struct.
7080 Add declarations for cp_find_first_component,
7081 cp_entire_prefix_len, processing_has_namespace_info,
7082 processing_current_namespace, cp_is_anonymous,
7083 cp_add_using_directive, cp_initialize_namespace,
7084 cp_finalize_namespace, cp_set_block_scope,
7085 cp_scan_for_anonymous_namespaces.
7086 * cp-namespace.c: New file.
7087 * cp-support.c: Update copyright.
7088 Include ctype.h, gdb_assert.h, gdbcmd.h.
7089 New variable maint_cplus_cmd_list.
7090 (cp_find_first_component): New function.
7091 (cp_entire_prefix_len, maint_cplus_command)
7092 (first_component_command, _initialize_cp_support): Ditto.
7093 * buildsym.c: Include cp-support.h.
7094 New variable using_list.
7095 (add_symbol_to_list): Check for anonymous namespaces.
7096 (finish_block): Set block's scope.
7097 (start_symtab): Initialize C++ namespace support.
7098 (end_symtab): Finalize C++ namespace support.
7099 * block.h: Add opaque declarations for structs
7100 block_namespace_info, using_direct, and obstack.
7101 Add declarations for block_set_scope and block_set_using.
7102 (struct block): Add 'language_specific' member.
7103 (BLOCK_NAMESPACE): New macro.
7104 * block.c: Include gdb_obstack.h and cp-support.h.
7105 (struct block_namespace_info): New struct.
7106 (block_set_scope): New function.
7107 (block_set_using, block_initialize_namespace): Ditto.
7108
7109 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7110
7111 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7112 (locate_base): Return early if there aren't any link map offsets.
7113 (svr4_solib_create_inferior_hook): Warn if shared library support
7114 is unavailable.
7115
7116 2003-04-14 David Carlton <carlton@math.stanford.edu>
7117
7118 * symtab.c (symbol_set_names): Add prefix when storing Java names
7119 in hash table. Fix for PR java/1039.
7120
7121 2003-04-14 David Carlton <carlton@math.stanford.edu>
7122
7123 * symtab.c (symbol_set_names): Rename 'name' arg to
7124 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7125 * symtab.h: Change 'name' argument in declaration of
7126 symbol_set_names to 'linkage_name'.
7127 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7128
7129 2003-04-14 Andrew Cagney <cagney@redhat.com>
7130
7131 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7132 return the fully sign-extended register value.
7133 (get_frame_pointer): Ditto.
7134 (mips_pop_frame): Initialize "proc_desc" after checking for a
7135 dummy frame.
7136
7137 2003-04-14 Andrew Cagney <cagney@redhat.com>
7138
7139 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7140 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7141 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7142 (mips_push_register): Delete function.
7143 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7144 PUSH_FP_REGNUM.
7145
7146 2003-04-14 Jim Blandy <jimb@redhat.com>
7147
7148 * symmisc.c: #include "gdb_regex.h".
7149 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7150 functions.
7151 * maint.c (maintenance_list_command): New function.
7152 (_initialize_maint_cmds): Register the above as commands.
7153 * symtab.h (maintenance_list_symtabs,
7154 maintenance_list_psymtabs): New declarations.
7155 * cli/cli-cmds.c (maintenancelistlist): New variable.
7156 (init_cmd_lists): Initialize it.
7157 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7158 * gdbcmd.h (maintenancelistlist): New declaration.
7159 * Makefile.in (symmisc.o): Update dependencies.
7160
7161 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7162
7163 * s390-nat.c: Include asm/types.h for addr_t.
7164
7165 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7166
7167 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7168 actually incoming type.
7169
7170 2003-04-13 Andrew Cagney <cagney@redhat.com>
7171
7172 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7173 get_next_frame and get_frame_saved_regs.
7174
7175 2003-04-13 Andrew Cagney <cagney@redhat.com>
7176
7177 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7178 of gdbarch_num_regs.
7179
7180 2003-04-13 Andrew Cagney <cagney@redhat.com>
7181
7182 * frame.h: Mention what replaced what in "struct frame_info".
7183 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7184 deprecated_update_frame_base_hack and
7185 deprecated_update_frame_pc_hack.
7186 * hppa-tdep.c: Ditto.
7187
7188 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7189
7190 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7191 to read_reg and update its comment. Remove regnum member.
7192 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7193 Don't call read_reg when setting in_reg. Call read_reg to get
7194 the frame base if it's in a register. Return the register number
7195 on the stack instead of in the context. Remove extra arguments
7196 to read_reg.
7197 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7198 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7199 the register number on the expression stack.
7200 (needs_frame_read_reg): Remove extra arguments.
7201
7202 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7203
7204 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7205 made non-static.
7206 (execute_stack_op): All callers updated.
7207 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7208 * dwarf2loc.c (find_location_expression): New function.
7209 (dwarf_expr_frame_base): Call it.
7210 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7211 (dwarf2_tracepoint_var_ref): New function, broken out from
7212 locexpr_tracepoint_var_ref.
7213 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7214 Make static.
7215 (loclist_read_variable, loclist_read_needs_frame): New functions.
7216 (loclist_describe_location, loclist_tracepoint_var_ref): New
7217 functions.
7218 (dwarf2_loclist_funcs): New struct location_funcs.
7219 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7220 (struct dwarf2_locexpr_baton): Add comments.
7221 (dwarf2_loclist_funcs): New extern.
7222 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7223 base_address and base_known.
7224 (dwarf_loc_buffer): New variable.
7225 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7226 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7227 (dwarf2_has_info): Initialize dwarf_loc_offset.
7228 (dwarf2_build_psymtabs): Read in .debug_loc.
7229 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7230 DWARF_LOC_SIZE.
7231 (psymtab_to_symtab_1): Likewise. Move base address calculation
7232 here, from...
7233 (dwarf2_get_pc_bounds): ... here. Use the base address from
7234 cu_header.
7235 (dwarf2_symbol_mark_computed): Handle location lists.
7236
7237 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7238
7239 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7240 if the linkage name demangled successfully.
7241
7242 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7243
7244 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7245 disassmbly_flavour): Removed.
7246
7247 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7248
7249 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7250
7251 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7252
7253 2003-04-12 Andrew Cagney <cagney@redhat.com>
7254
7255 * frame.h (struct frame_info): Move definition from here ...
7256 * frame.c (struct frame_info): ... to here.
7257
7258 2003-04-12 Andrew Cagney <cagney@redhat.com>
7259
7260 * gdbthread.h (save_infrun_state): Delete parameter
7261 "prev_func_start".
7262 (struct thread_info): Delete field "prev_func_start".
7263 (load_infrun_state): Ditto.
7264 * thread.c (load_infrun_state, save_infrun_state): Update.
7265 * infrun.c (prev_func_start): Delete variable.
7266 (context_switch, init_wait_for_inferior): Update.
7267 (stop_stepping, keep_going): Update.
7268
7269 2003-04-12 Andrew Cagney <cagney@redhat.com>
7270
7271 * gdbarch.sh: Add missing opaque declarations.
7272 * gdbarch.h: Regnerate.
7273 * symtab.h: Add missing opaque declarations.
7274 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7275 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7276 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7277 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7278 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7279 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7280 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7281 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7282 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7283 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7284 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7285 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7286 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7287
7288 2003-04-11 Andrew Cagney <cagney@redhat.com>
7289
7290 * frame.c (get_frame_id): Return this frame's "id".
7291 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7292 function start.
7293 (legacy_saved_regs_this_id): Replace function body with
7294 internal-error.
7295 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7296 FRAME_OBSTACK_ZALLOC.
7297 (create_new_frame): Mark the frame ID as valid.
7298
7299 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7300
7301 * Makefile.in (libbfd_h): Added missing setting.
7302 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7303 according to the selected ABI.
7304
7305 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7306
7307 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7308
7309 2003-04-11 Andrew Cagney <cagney@redhat.com>
7310
7311 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7312 SAVED_PC_AFTER_CALL.
7313 * gdbarch.h, gdbarch.c: Regenerate.
7314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7315 * x86-64-tdep.c (x86_64_init_abi): Update.
7316 * vax-tdep.c (vax_gdbarch_init): Update.
7317 * v850-tdep.c (v850_gdbarch_init): Update.
7318 * sparc-tdep.c (sparc_gdbarch_init): Update.
7319 * sh-tdep.c (sh_gdbarch_init): Update.
7320 * s390-tdep.c (s390_gdbarch_init): Update.
7321 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7322 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7323 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7324 * mips-tdep.c (mips_gdbarch_init): Update.
7325 * mcore-tdep.c (mcore_gdbarch_init): Update.
7326 * m68k-tdep.c (m68k_gdbarch_init): Update.
7327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7328 * ia64-tdep.c (ia64_gdbarch_init): Update.
7329 (ia64_saved_pc_after_call): Update declaration.
7330 * i386ly-tdep.c (i386lynx_init_abi): Update.
7331 * i386-tdep.c (i386_gdbarch_init): Update.
7332 * hppa-tdep.c (hppa_gdbarch_init): Update.
7333 * h8300-tdep.c (h8300_gdbarch_init): Update.
7334 * frv-tdep.c (frv_gdbarch_init): Update.
7335 * cris-tdep.c (cris_gdbarch_init): Update.
7336 * avr-tdep.c (avr_gdbarch_init): Update.
7337 * arm-tdep.c (arm_gdbarch_init): Update.
7338 * alpha-tdep.c (alpha_gdbarch_init): Update.
7339 * ns32knbsd-nat.c (frame_num_args): Update.
7340 * ns32k-tdep.c (umax_frame_num_args): Update.
7341 * mips-tdep.c (mips_init_frame_pc_first): Update.
7342 * infrun.c (step_over_function): Update.
7343 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7344 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7345 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7346 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7347 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7348 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7349 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7350 * arch-utils.c (init_frame_pc_default): Update.
7351 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7352 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7353 declaration.
7354
7355 2003-04-11 Andrew Cagney <cagney@redhat.com>
7356
7357 * i387-tdep.c: Update copyright.
7358 (i387_to_double): Delete function.
7359 (double_to_i387): Delete function.
7360
7361 2003-04-10 Andrew Cagney <cagney@redhat.com>
7362
7363 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7364 frame's function's address. Simplify.
7365 (d10v_frame_unwind_cache): Check that the frame's function is
7366 non-zero.
7367
7368 2003-04-10 Jim Blandy <jimb@redhat.com>
7369
7370 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7371 call to set_gdbarch_deprecated_push_arguments.
7372
7373 2003-04-10 Andrew Cagney <cagney@redhat.com>
7374
7375 * frame.c (fprint_frame_id): New function.
7376 (fprint_frame_type, fprint_frame): New function.
7377 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7378 (create_sentinel_frame, get_frame_id): Ditto.
7379 (frame_id_p, frame_id_eq): Ditto.
7380 (frame_id_inner, create_new_frame): Ditto.
7381 (legacy_get_prev_frame, get_prev_frame): Ditto.
7382 (deprecated_update_frame_pc_hack): Ditto.
7383 (frame_register_unwind): Ditto.
7384 (deprecated_update_frame_base_hack): Ditto.
7385
7386 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7387
7388 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7389 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7390 frame_chain function.
7391 * Makefile.in: Add dependencies due to above change.
7392
7393 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7394
7395 * blockframe.c (legacy_frame_chain_valid): Move call to
7396 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7397 inside_entry_file.
7398
7399 2003-04-09 Andrew Cagney <cagney@redhat.com>
7400
7401 * frame.h (struct frame_id): Replace "pc" and "base" with
7402 "stack_addr" and "code_addr". Update comments.
7403 (frame_id_build): Update parameter names and comment.
7404 (struct frame_info): Replace "id_p" and "id" with "this_id".
7405 * dummy-frame.c (dummy_frame_this_id): Update.
7406 * breakpoint.c (print_one_breakpoint): Update.
7407 * frame.c (get_frame_id): Update.
7408 (get_frame_base, frame_id_build): Update.
7409 (create_sentinel_frame, legacy_get_prev_frame): Update.
7410 (deprecated_update_frame_base_hack): Update.
7411 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7412 (frame_id_inner): Ditto.
7413
7414 2003-04-09 Andrew Cagney <cagney@redhat.com>
7415
7416 * defs.h (gdb_print_host_address): Make "addr" parameter a
7417 pointer constant.
7418 * utils.c (gdb_print_host_address): Update.
7419
7420 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7421
7422 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7423 register number for R0 is 0.
7424
7425 2003-04-09 J. Brobecker <brobecker@gnat.com>
7426
7427 * frame.h (struct gdbarch): Add opaque structure definition
7428 to avoid a compilation warning on LynxOS 4.0.
7429
7430 2003-04-09 Andrew Cagney <cagney@redhat.com>
7431
7432 * frame.h (struct frame_info): Delete field "pc". Replace
7433 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7434 structure.
7435 * frame.c (frame_pc_unwind): Update.
7436 (create_sentinel_frame): Do not set "pc".
7437 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7438 (get_frame_pc): Call frame_pc_unwind.
7439 (deprecated_update_frame_pc_hack): Update.
7440 (create_new_frame): Use "pc" not "->pc".
7441
7442 2003-04-09 Andrew Cagney <cagney@redhat.com>
7443
7444 * frame.c (get_frame_id): Eliminate code updating "frame".
7445 (legacy_get_prev_frame): Ditto.
7446 (get_frame_base): Return id.base directly.
7447 (deprecated_update_frame_base_hack): Update "id.base".
7448 * frame.h (struct frame_info): Delete field "frame".
7449
7450 2003-04-09 Andrew Cagney <cagney@redhat.com>
7451
7452 * NEWS: Mention that the "Sequent family" is obsolete.
7453 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7454 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7455 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7456 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7457 * config/i386/tm-ptx4.h: Obsolete file.
7458 * config/i386/tm-ptx.h: Obsolete file.
7459 * symm-tdep.c: Obsolete file.
7460 * config/i386/symmetry.mt: Obsolete file.
7461 * config/i386/tm-symmetry.h: Obsolete file.
7462 * symm-nat.c: Obsolete file.
7463 * config/i386/nm-symmetry.h: Obsolete file.
7464 * config/i386/xm-symmetry.h: Obsolete file.
7465 * config/i386/symmetry.mh: Obsolete file.
7466 * config/i386/nm-ptx4.h: Obsolete file.
7467 * config/i386/ptx4.mh: Obsolete file.
7468 * config/i386/ptx.mt: Obsolete file.
7469 * config/i386/ptx.mh: Obsolete file.
7470 * config/i386/xm-ptx4.h: Obsolete file.
7471 * config/i386/xm-ptx.h: Obsolete file.
7472
7473 2003-04-09 Andrew Cagney <cagney@redhat.com>
7474
7475 Obsolete mips*-*-mach3*.
7476 * NEWS: Mention that mips*-*-mach3* is obsolete.
7477 * m3-nat.c: Obsolete file.
7478 * config/nm-m3.h: Obsolete file.
7479 * config/mips/tm-mipsm3.h: Obsolete file.
7480 * config/mips/mipsm3.mt: Obsolete file.
7481 * config/mips/mipsm3.mh: Obsolete file.
7482 * config/mips/xm-mipsm3.h: Obsolete file.
7483 * mipsm3-nat.c: Obsolete file.
7484 * configure.host: Obsolete mips-dec-mach3*.
7485 * configure.tgt: Obsolete mips*-*-mach3*.
7486
7487 2003-04-09 Andrew Cagney <cagney@redhat.com>
7488
7489 * doublest.h: Update copyright.
7490 (deprecated_store_floating, deprecated_extract_floating): Rename
7491 store_floating and extract_floating. Update comments.
7492 * doublest.c: Update copyright.
7493 (extract_floating_by_length): Replace extract_floating.
7494 (store_floating_by_length): Replace store_floating.
7495 (deprecated_extract_floating): New function.
7496 (deprecated_store_floating): New function.
7497 (extract_typed_floating): Call extract_floating_by_length.
7498 (store_typed_floating): Call store_floating_by_length.
7499 * x86-64-tdep.c (x86_64_store_return_value): Update.
7500 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7501 (sh64_extract_return_value): Update.
7502 (sh_sh4_register_convert_to_virtual): Update.
7503 (sh_sh64_register_convert_to_virtual): Update.
7504 (sh_sh4_register_convert_to_raw): Update.
7505 (sh_sh64_register_convert_to_raw): Update.
7506 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7507 (rs6000_register_convert_to_raw): Update.
7508 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7509 (ia64_register_convert_to_raw): Update.
7510 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7511 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7512 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7513 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7514 (alpha_register_convert_to_raw): Update.
7515
7516 2003-04-08 Andrew Cagney <cagney@redhat.com>
7517
7518 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7519 * gdbarch.h, gdbarch.c: Re-generate.
7520 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7521 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7522 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7523 conditionally, use frame_pc_unwind as an alternative. Add
7524 comments.
7525 * arch-utils.c (init_frame_pc_default): Only call
7526 SAVED_PC_AFTER_CALL when available.
7527
7528 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7529
7530 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7531 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7532 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7533 (start_remote): Ditto.
7534 (handle_inferior_event): Ditto.
7535 (save_inferior_status): Ditto.
7536 (restore_inferior_status): Ditto.
7537 * infcmd.c (attach_command): Ditto.
7538 * fork-child.c (startup_inferior): Ditto.
7539 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7540 * alpha-tdep.c (heuristic_proc_start): Ditto.
7541 * mips-tdep.c (heuristic_proc_start): Ditto.
7542 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7543 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7544 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7545 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7546 * remote-vx.c (vx_create_inferior): Ditto.
7547
7548 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7549
7550 * infrun.c (stop_soon_quietly): Make it an enum, to better
7551 override the default behavior of handle_inferior_event.
7552 (clear_proceed_status): Update uses of stop_soon_quietly to
7553 reflect that it is now an enum.
7554 (start_remote): Ditto.
7555 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7556 is set to handle the new GNU/Linux kernel behavior for
7557 attach/sigstop. Update uses of stop_soon_quietly.
7558 * inferior.h (enum stop_kind): New enum.
7559 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7560 Reset normal handle_inferior_event behavior, afterwards.
7561 * fork-child.c (startup_inferior): Update.
7562 * alpha-tdep.c (heuristic_proc_start): Update.
7563 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7564 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7565 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7566 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7567 * remote-vx.c (vx_create_inferior): Update.
7568 * mips-tdep.c (heuristic_proc_start): Update.
7569
7570 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7571
7572 * disasm.c (dump_insns): Move variables inside loop, or they will
7573 be freed more than once, causing wild memory corruptions.
7574 (gdb_disassembly): Look for the substring "-thread",
7575 instead of "-threads" in the target name, to make sure to find
7576 the 'multi-thread' target. Also, make sure we do the right thing
7577 with the "core" target.
7578
7579 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7580
7581 * mips-tdep.c (mips_print_fp_register): New function, created from
7582 do_fp_register_row(). Registers are now (also) printed as hex.
7583 Only one register is printed per row.
7584 (mips_print_register, do_fp_register_row): Print floating point
7585 registers with mips_print_fp_register().
7586
7587 2003-04-06 Andrew Cagney <cagney@redhat.com>
7588
7589 * valprint.h (inspect_it): Add extern declaration.
7590 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7591 (selectors_info, classes_info): Ditto.
7592 (find_objc_msgcall): Fix indentation.
7593 (objc_printstr): Delete extern declarations.
7594
7595 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7596
7597 2003-04-06 Andrew Cagney <cagney@redhat.com>
7598
7599 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7600 Update comment.
7601 * frame.c (legacy_saved_regs_this_id): Update.
7602 (legacy_get_prev_frame): Update.
7603 * xstormy16-tdep.c: Update comment.
7604 * sparc-tdep.c (sparc_frame_chain): Update comment.
7605 * blockframe.c (legacy_frame_chain_valid): Update.
7606
7607 2003-04-06 Andrew Cagney <cagney@redhat.com>
7608
7609 * valprint.c (val_print_type_code_int): Delete #ifdef
7610 PRINT_TYPELESS_INTEGER code.
7611
7612 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7613 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7614 multi-arch definition.
7615 * gdbarch.h: Re-generate.
7616
7617 2003-04-05 Andrew Cagney <cagney@redhat.com>
7618
7619 Eliminate FRAME_FIND_SAVED_REGS.
7620 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7621 Change FSR parameter to a pointer.
7622 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7623 Assume FSR parameter is a pointer.
7624 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7625 Make fsr a pointer.
7626 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7627 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7628 saved_regs a pointer.
7629 (hppa_frame_saved_pc): Ditto.
7630 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7631 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7632 pointer.
7633 (restore_pc_queue): Make fsr a pointer.
7634 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7635 (hppa_frame_chain): Make saved_regs a pointer, call
7636 hppa_frame_init_saved_regs.
7637 * sparc-tdep.c: Include "gdb_assert.h".
7638 (sparc_frame_find_saved_regs): Replace internal_error with
7639 gdb_assert.
7640 * remote-vxsparc.c (vx_read_register): Delete reference to
7641 FRAME_FIND_SAVED_REGS.
7642 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7643 * gdbarch.h: Regenerate.
7644 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7645 (deprecated_get_frame_saved_regs): Delete declaration.
7646 (struct frame_saved_regs): Delete definition.
7647 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7648 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7649 (hppa_frame_find_saved_regs): Delete declaration.
7650 (FRAME_FIND_SAVED_REGS): Delete macro.
7651 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7652 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7653 FRAME_FIND_SAVED_REGS in comment.
7654
7655 2003-04-05 Andrew Cagney <cagney@redhat.com>
7656
7657 * frame.c (frame_func_unwind, get_frame_func): New functions.
7658 * frame.h (get_frame_func, frame_func_unwind): Declare.
7659 (struct frame_info): Add field "prev_func" for caching the
7660 previous frame's function address.
7661 * arm-tdep.c (arm_frameless_function_invocation): Combine
7662 get_pc_function_start and get_frame_pc into get_frame_func.
7663 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7664 (sh64_nofp_frame_init_saved_regs): Ditto.
7665 * s390-tdep.c (s390_function_start): Ditto.
7666 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7667 (rs6000_frameless_function_invocation): Ditto.
7668 (rs6000_frame_saved_pc): Ditto.
7669 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7670 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7671 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7672 (i386_frame_init_saved_regs): Ditto.
7673 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7674 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7675 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7676 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7677 * blockframe.c (frameless_look_for_prologue): Ditto.
7678
7679 2003-04-05 Andrew Cagney <cagney@redhat.com>
7680
7681 * frame.c (legacy_get_prev_frame): Link prev to next at the
7682 function start. Update comments.
7683
7684 2003-04-05 Andrew Cagney <cagney@redhat.com>
7685
7686 * frame.c (get_frame_id): Update comment.
7687 (legacy_get_prev_frame): Update comment.
7688 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7689 * gdbarch.h: Regenerate.
7690 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7691 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7692
7693 2003-04-05 Andrew Cagney <cagney@redhat.com>
7694
7695 * stack.c (print_frame_info): Use get_frame_pc.
7696
7697 2003-04-04 Andrew Cagney <cagney@redhat.com>
7698
7699 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7700 the frame's type from the unwinder.
7701 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7702 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7703 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7704 (get_frame_base_address): Use get_frame_type.
7705 (get_frame_locals_address, get_frame_args_address): Ditto.
7706 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7707 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7708 (struct frame_info): Add comment explaining why the frame contains
7709 a "type" field.
7710 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7711 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7712 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7713 NORMAL_FRAME.
7714 * frame-unwind.h: Include "frame.h".
7715 (struct frame_unwind): Add "type" field.
7716 * Makefile.in (frame_unwind_h): Add $(frame_h).
7717
7718 2003-04-04 Andrew Cagney <cagney@redhat.com>
7719
7720 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7721 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7722 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7723 get_frame_base.
7724 (d10v_unwind_dummy_id): Use frame_id_build.
7725 * frame.c (find_frame_sal): Use get_frame_pc.
7726 (create_new_frame): Use deprecated_update_frame_pc_hack and
7727 deprecated_update_frame_base_hack.
7728 (create_sentinel_frame): Add comment about ->pc going away.
7729 (get_prev_frame): Add comment about ->pc going away.
7730 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7731 frame_id_build, deprecated_update_frame_pc_hack and
7732 deprecated_update_frame_base_hack.
7733 (select_frame): Use get_frame_pc.
7734 (legacy_saved_regs_this_id): Use frame_id_build.
7735
7736 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7737
7738 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7739 signed integer case.
7740 (classify_argument): Handle enumerations and references.
7741
7742 2003-04-04 Andrew Cagney <cagney@redhat.com>
7743
7744 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7745 ID to NULL.
7746
7747 2003-04-01 Adam Fedor <fedor@gnu.org>
7748
7749 * gdb/objc-lang.c (selectors_info): Replace calls to
7750 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7751 SYMBOL_NATURAL_NAME.
7752 (classes_info, find_methods): Likewise.
7753
7754 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7755
7756 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7757 ``mach'' to the value determined by bfd_default_set_arch_mach().
7758
7759 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7760
7761 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7762 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7763 (mi-cmd-file.o): Update dependencies.
7764
7765 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7766
7767 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7768 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7769
7770 2003-04-01 Adam Fedor <fedor@gnu.org>
7771
7772 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7773 * language.h (struct language_defn): Add la_demangle.
7774 (language_demangle): Declare.
7775 * language.c (language_demangle): New function.
7776 (unk_lang_demangle): Likewise.
7777 (unknown_language_defn, auto_language_defn, local_language_defn):
7778 Add ukn_lang_demangle.
7779 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7780 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7781 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7782 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7783 * jv-lang.c (java_demangle): New function
7784 (java_language_defn): Use it for la_demangle element.
7785 * objc-lang.c (objc_demangle): Add options argument
7786 (objc_language_defn): Use objc_demangle for la_demangle element.
7787 * maint.c (maintenance_demangle): Replace switch with
7788 call to language_demangle.
7789 * utils.c (fprintf_symbol_filtered): Likewise.
7790
7791 2003-04-01 Andrew Cagney <cagney@redhat.com>
7792
7793 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7794 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7795 PRINT_TYPELESS_INTEGER.
7796 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7797 PUSH_RETURN_ADDRESS.
7798
7799 2003-04-01 Andrew Cagney <cagney@redhat.com>
7800
7801 * Makefile.in (d10v-tdep.o): Update dependencies.
7802 * d10v-tdep.c: Include "frame-base.h".
7803 (d10v_frame_unwind): Make constant.
7804 (d10v_frame_base_address): New function.
7805 (d10v_frame_base): New variable.
7806 (d10v_gdbarch_init): Set frame_base default.
7807 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7808 comment for base.
7809 (d10v_frame_unwind_cache): Set and use "prev_sp".
7810 (d10v_frame_this_id): Use the previous frame's inner most stack
7811 address and this frame's func address for the frame ID. Use
7812 frame_id_build. Don't analyze beyond the current instruction.
7813
7814 2003-04-01 Andrew Cagney <cagney@redhat.com>
7815
7816 * frame.h (get_frame_locals_address, get_frame_args_address):
7817 Refer to the base address, instead of the address of the first
7818 local or parameter.
7819
7820 2003-04-01 Andrew Cagney <cagney@redhat.com>
7821
7822 Add frame debug info addresses:
7823 * frame-base.c: New file.
7824 * frame-base.h: New file.
7825 * frame.h (struct frame_base): Add opaque declaration.
7826 (get_frame_base): Update comment.
7827 (get_frame_base_address): Declare.
7828 (get_frame_locals_address): Declare.
7829 (get_frame_args_address): Declare.
7830 (struct frame_info): Add "base" and "base_cache". Update
7831 comments on the unwinder.
7832 * frame.c: Include "frame-base.h".
7833 (get_frame_locals_address): New function.
7834 (get_frame_base_address): New function.
7835 (get_frame_args_address): New function.
7836 * findvar.c (read_var_value): Use get_frame_locals_address and
7837 get_frame_args_address.
7838 * stack.c (frame_info): Use get_frame_locals_address and
7839 get_frame_args_address.
7840 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7841 moved to "frame-base.c".
7842 * printcmd.c (print_frame_nameless_args): Ditto.
7843 * symtab.h (address_class): Update comments.
7844 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7845 get_frame_base_address.
7846 * dwarf2expr.c (execute_stack_op): Ditto.
7847 * Makefile.in (frame_base_h): Define.
7848 (frame.o): Update dependencies.
7849 (frame-base.o): Add dependencies.
7850 (SFILES): Add frame-base.c.
7851 (COMMON_OBS): Add frame-base.o.
7852
7853 2003-04-01 Andrew Cagney <cagney@redhat.com>
7854
7855 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7856 CALL_DUMMY_LENGTH): Ditto.
7857 * gdbarch.c: Re-generate.
7858 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7859 (CALL_DUMMY_LENGTH): Delete macro.
7860 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7861 * arm-tdep.c (arm_gdbarch_init): Ditto.
7862 * avr-tdep.c (avr_gdbarch_init): Ditto.
7863 * cris-tdep.c (cris_gdbarch_init): Ditto.
7864 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7865 * frv-tdep.c (frv_gdbarch_init): Ditto.
7866 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7867 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7868 * i386-tdep.c (i386_gdbarch_init): Ditto.
7869 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7870 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7871 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7872 * mips-tdep.c (mips_gdbarch_init): Ditto.
7873 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7874 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7875 * s390-tdep.c (s390_gdbarch_init): Ditto.
7876 * sh-tdep.c (sh_gdbarch_init): Ditto.
7877 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7878 * v850-tdep.c (v850_gdbarch_init): Ditto.
7879 * vax-tdep.c (vax_gdbarch_init): Ditto.
7880 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7881
7882 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7883
7884 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7885
7886 2003-04-01 Andrew Cagney <cagney@redhat.com>
7887
7888 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7889 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7890 * gdbarch.h, gdbarch.c: Re-generate.
7891 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7892 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7893 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7894 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7895 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7896 * infcmd.c (run_stack_dummy): Simplify assuming
7897 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7898 * infrun.c (handle_inferior_event): Ditto.
7899 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7900 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7901 * arm-tdep.c (arm_gdbarch_init): Ditto.
7902 * avr-tdep.c (avr_gdbarch_init): Ditto.
7903 * cris-tdep.c (cris_gdbarch_init): Ditto.
7904 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7905 * frv-tdep.c (frv_gdbarch_init): Ditto.
7906 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7907 * i386-tdep.c (i386_gdbarch_init): Ditto.
7908 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7909 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7910 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7911 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7912 * mips-tdep.c (mips_gdbarch_init): Ditto.
7913 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7914 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7915 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7916 * s390-tdep.c (s390_gdbarch_init): Ditto.
7917 * sh-tdep.c (sh_gdbarch_init): Ditto.
7918 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7919 * v850-tdep.c (v850_gdbarch_init): Ditto.
7920 * vax-tdep.c (vax_gdbarch_init): Ditto.
7921 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7922
7923 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7924
7925 * symfile.c (symfile_relocate_debug_section): Update call to
7926 bfd_simple_get_relocated_section_contents.
7927
7928 2003-03-31 Andrew Cagney <cagney@redhat.com>
7929
7930 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7931 * gdbarch.h, gdbarch.c: Regenerate.
7932 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7933 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7934 available.
7935 * frame.h (generic_fix_call_dummy): Delete declaration.
7936 * dummy-frame.h: Update comment.
7937 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7938 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7939 fix_call_dummy.
7940 * sh-tdep.c (sh_gdbarch_init): Ditto.
7941 * s390-tdep.c (s390_gdbarch_init): Ditto.
7942 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7943 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7944 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7945 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7946 * i386-tdep.c (i386_gdbarch_init): Ditto.
7947 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7948 * frv-tdep.c (frv_gdbarch_init): Ditto.
7949 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7950 * cris-tdep.c (cris_gdbarch_init): Ditto.
7951 * avr-tdep.c (avr_gdbarch_init): Ditto.
7952 * arm-tdep.c (arm_gdbarch_init): Ditto.
7953
7954 2003-03-31 J. Brobecker <brobecker@gnat.com>
7955
7956 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7957 (INIT_FRAME_AP): Likewise.
7958 (EXTRA_FRAME_INFO): Likewise.
7959
7960 2003-03-31 Andrew Cagney <cagney@redhat.com>
7961
7962 * gdbarch.sh: Include "symfile.h".
7963 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7964 * gdbarch.h, gdbarch.c: Re-generate.
7965 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7966 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7967 call_dummy_address, the default is at entry_point_address.
7968 * v850-tdep.c (v850_gdbarch_init): Ditto.
7969 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7970 * sh-tdep.c (sh_gdbarch_init): Ditto.
7971 * s390-tdep.c (s390_gdbarch_init): Ditto.
7972 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7973 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7974 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7975 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7976 * i386-tdep.c (i386_gdbarch_init): Ditto.
7977 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7978 * frv-tdep.c (frv_gdbarch_init): Ditto.
7979 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7980 * cris-tdep.c (cris_gdbarch_init): Ditto.
7981 * arm-tdep.c (arm_gdbarch_init): Ditto.
7982
7983 2003-03-31 Andrew Cagney <cagney@redhat.com>
7984
7985 * gdbarch.sh (CALL_DUMMY_P): Delete.
7986 * gdbarch.h, gdbarch.c: Re-generate.
7987 * inferior.h (CALL_DUMMY_P): Delete macro.
7988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7989 * vax-tdep.c (vax_gdbarch_init): Update.
7990 * v850-tdep.c (v850_gdbarch_init): Update.
7991 * sparc-tdep.c (sparc_gdbarch_init): Update.
7992 * sh-tdep.c (sh_gdbarch_init): Update.
7993 * s390-tdep.c (s390_gdbarch_init): Update.
7994 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7995 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7996 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7997 * mips-tdep.c (mips_gdbarch_init): Update.
7998 * mcore-tdep.c (mcore_gdbarch_init): Update.
7999 * m68k-tdep.c (m68k_gdbarch_init): Update.
8000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8001 * ia64-tdep.c (ia64_gdbarch_init): Update.
8002 * i386-tdep.c (i386_gdbarch_init): Update.
8003 * h8300-tdep.c (h8300_gdbarch_init): Update.
8004 * frv-tdep.c (frv_gdbarch_init): Update.
8005 * d10v-tdep.c (d10v_gdbarch_init): Update.
8006 * cris-tdep.c (cris_gdbarch_init): Update.
8007 * breakpoint.c (deprecated_frame_in_dummy): Update.
8008 * avr-tdep.c (avr_gdbarch_init): Update.
8009 * alpha-tdep.c (alpha_gdbarch_init): Update.
8010 * arm-tdep.c (arm_gdbarch_init): Update.
8011 * dummy-frame.c (dummy_frame_this_id): Update comments.
8012 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8013 * frame.c (legacy_get_prev_frame): Ditto.
8014 * valops.c (call_function_by_hand): Delete function.
8015 (hand_function_call): Rename to call_function_by_hand
8016
8017 2003-03-30 Andrew Cagney <cagney@redhat.com>
8018
8019 2002-11-10 Klee Dienes <kdienes@apple.com>
8020 * value.h (struct value): Update comment.
8021
8022 2003-03-30 Andrew Cagney <cagney@redhat.com>
8023
8024 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8025 D10V_FP_REGNUM.
8026 (d10v_gdbarch_init): Do not set fp_regnum.
8027
8028 * frame.c (get_frame_base): Force ID initialization.
8029 (get_prev_frame): Move computation of the frame ID from here ...
8030 (get_frame_id): ... to here.
8031 (legacy_get_prev_frame): Mark the frame ID as valid.
8032 * frame.h (struct frame_info): Add field "id_p".
8033
8034 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8035
8036 * i386-tdep.c (i386_store_struct_return): Removed.
8037 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8038
8039 2003-03-30 Andrew Cagney <cagney@redhat.com>
8040
8041 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8042 * gdbarch.h, gdbarch.c: Regenerate.
8043 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8045 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8046 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8047 * i386-tdep.c (i386_gdbarch_init): Ditto.
8048 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8049 * cris-tdep.c (cris_gdbarch_init): Ditto.
8050 * vax-tdep.c (vax_gdbarch_init): Ditto.
8051 * s390-tdep.c (s390_gdbarch_init): Ditto.
8052 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8053 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8054 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8055 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8056 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8057 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8058 * sparc-tdep.c (sparc_gdbarch_init): Update.
8059 * sh-tdep.c (sh_gdbarch_init): Update.
8060 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8061 * mips-tdep.c (mips_gdbarch_init): Update.
8062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8063 * ia64-tdep.c (ia64_gdbarch_init): Update.
8064 * frv-tdep.c (frv_gdbarch_init): Update.
8065 * avr-tdep.c (avr_gdbarch_init): Update.
8066 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8067 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8068 instead of when push_dummy_call is not available.
8069
8070 2003-03-30 Andrew Cagney <cagney@redhat.com>
8071
8072 * infttrace.c: Include "gdbthread.h".
8073 (parent_attach_all): Fix function signature.
8074 (call_ptrace): Update call.
8075 * Makefile.in (infttrace.o): Update dependencies.
8076
8077 2003-03-30 Andrew Cagney <cagney@redhat.com>
8078
8079 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8080 PUSH_RETURN_ADDRESS.
8081 * gdbarch.h, gdbarch.c: Regenerate.
8082 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8083 * x86-64-tdep.c (x86_64_init_abi): Update.
8084 * v850-tdep.c (v850_gdbarch_init): Update.
8085 * sparc-tdep.c (sparc_gdbarch_init): Update.
8086 * sh-tdep.c (sh_gdbarch_init): Update.
8087 * s390-tdep.c (s390_gdbarch_init): Update.
8088 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8089 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8090 * mips-tdep.c (mips_gdbarch_init): Update.
8091 * mcore-tdep.c (mcore_gdbarch_init): Update.
8092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8093 * ia64-tdep.c (ia64_gdbarch_init): Update.
8094 * i386-tdep.c (i386_gdbarch_init): Update.
8095 * h8300-tdep.c (h8300_gdbarch_init): Update.
8096 * frv-tdep.c (frv_gdbarch_init): Update.
8097 * cris-tdep.c (cris_gdbarch_init): Update.
8098 * avr-tdep.c (avr_gdbarch_init): Update.
8099 * arm-tdep.c (arm_gdbarch_init): Update.
8100 * valops.c (hand_function_call): Update.
8101
8102 2003-03-29 Andrew Cagney <cagney@redhat.com>
8103
8104 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8105 sizeof_call_dummy_words.
8106 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8107 define.
8108 * gdbarch.h: Regenerate.
8109
8110 2003-03-29 Andrew Cagney <cagney@redhat.com>
8111
8112 * infttrace.h: New file.
8113 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8114 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8115 (hpread_read_doc_function_type): Detect an initialized type1.
8116 (hpread_quick_traverse): Initialize mod_name_string.
8117 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8118 (som_solib_get_solib_by_pc): Declare.
8119 (so_lib_thread_start_addr): Declare.
8120 (no_shared_libraries): Declare.
8121 * somread.c (init_import_symbols): Make static. Add forward
8122 declaration.
8123 * config/pa/nm-hppah.h: Include "infttrace.h" for
8124 parent_attach_all.
8125 (hppa_insert_hw_watchpoint): Declare.
8126 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8127 * hppah-nat.c: Include "gdb_string.h".
8128 (parent_attach_all): Delete extern declaration, moved to
8129 "infttrace.h".
8130 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8131 int.
8132 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8133 * Makefile.in (infttrace_h): Define.
8134 (hpread.o): Update dependencies.
8135 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8136 * hppa-hpux-tdep.c: Include "gdb_string.h".
8137 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8138 * infrun.c (handle_inferior_event): Always initialize
8139 stepped_after_stopped_by_watchpoint. Add default and remove
8140 fallthrough in switch statement.
8141 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8142 parameter to int.
8143 (hppa_remove_hw_watchpoint): Ditto.
8144
8145 2003-03-29 Andrew Cagney <cagney@redhat.com>
8146
8147 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8148 offset.
8149
8150 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8151
8152 * arm-tdep.c (arm_push_arguments): Delete.
8153 (struct stack_item): New type.
8154 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8155 (arm_store_struct_return): Delte.
8156 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8157 arm_push_arguments or arm_store_struct_return.
8158
8159 2003-03-28 Andrew Cagney <cagney@redhat.com>
8160
8161 * Makefile.in (d10v-tdep.o): Update dependencies.
8162 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8163 * d10v-tdep.c: Include "remote.h".
8164 (target_resume_hook): Delete extern declaration.
8165 (target_wait_loop_hook): Ditto.
8166 (tdisassemble_command): Eliminate assignment in "if" conditional.
8167 (d10v_ts2_register_sim_regno): Eliminate call to
8168 legacy_register_sim_regno.
8169 (d10v_ts3_register_sim_regno): Ditto.
8170
8171 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8172
8173 * thread.c: Reindented.
8174 * lin-lwp.c: Ditto.
8175 * linux-proc.c: Ditto.
8176
8177 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8178
8179 * MAINTAINERS (write after approval): Add myself.
8180
8181 2003-03-27 Theodore A. Roth <troth@openavr.org>
8182
8183 * objc-exp.y: Add missing semi-colons.
8184
8185 2003-03-27 Andrew Cagney <cagney@redhat.com>
8186
8187 * regcache.c (write_sp): Delete function and references.
8188 * inferior.h (write_sp): Delete declaration.
8189 * valops.c (hand_function_call): Replace write_sp with
8190 TARGET_WRITE_SP.
8191 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8192 (sparc_pop_frame): Ditto.
8193
8194 2003-03-27 Andrew Cagney <cagney@redhat.com>
8195
8196 * NEWS: Mention removal of support for hppa*-*-bsd* and
8197 hppa*-*-osf* natives, and hppa*-*-pro* target.
8198 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8199 * config/pa/xm-pa.h: Obsolete file.
8200 * config/pa/xm-hppab.h: Obsolete file.
8201 * config/pa/nm-hppab.h: Obsolete file.
8202 * config/pa/tm-hppab.h: Obsolete file.
8203 * config/pa/tm-hppao.h: Obsolete file.
8204 * config/pa/nm-hppao.h: Obsolete file.
8205 * config/pa/tm-pro.h: Obsolete file.
8206 * config/pa/hppaosf.mt: Obsolete file.
8207 * config/pa/hppaosf.mh: Obsolete file.
8208 * config/pa/hppapro.mt: Obsolete file.
8209 * config/pa/hppabsd.mt: Obsolete file.
8210 * config/pa/hppabsd.mh: Obsolete file.
8211 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8212 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8213 hppa*-*-osf*.
8214
8215 2003-03-27 Andrew Cagney <cagney@redhat.com>
8216
8217 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8218 push_arguments. Don't set push_return_address or write_sp.
8219 (d10v_push_dummy_call): Replace d10v_push_arguments.
8220 (d10v_push_return_address, d10v_write_sp): Delete function,
8221 handled by push_dummy_call.
8222
8223 2003-03-26 Andrew Cagney <cagney@redhat.com>
8224
8225 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8226 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8227 regcache and dummy_addr parameters.
8228 * gdbarch.h, gdbarch.c: Re-generate.
8229 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8230 available; assume it will handle stack alignment and return
8231 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8232 legacy_push_arguments.
8233 (legacy_push_arguments): Rename default_push_arguments.
8234 * value.h (legacy_push_arguments): Rename default_push_arguments.
8235 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8236 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8237 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8238 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8239 * config/i386/tm-symmetry.h: Update.
8240 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8241 * x86-64-tdep.c (x86_64_init_abi): Update.
8242 * v850-tdep.c (v850_gdbarch_init): Update.
8243 * sparc-tdep.c (sparc_gdbarch_init): Update.
8244 * sh-tdep.c (sh_gdbarch_init): Update.
8245 * s390-tdep.c (s390_gdbarch_init): Update.
8246 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8247 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8248 * mips-tdep.c (mips_gdbarch_init): Update.
8249 * mcore-tdep.c (mcore_gdbarch_init): Update.
8250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8251 * ia64-tdep.c (ia64_gdbarch_init): Update.
8252 * i386-tdep.c (i386_gdbarch_init): Update.
8253 * hppa-tdep.c (hppa_gdbarch_init): Update.
8254 * h8300-tdep.c (h8300_gdbarch_init): Update.
8255 * frv-tdep.c (frv_gdbarch_init): Update.
8256 * d10v-tdep.c (d10v_gdbarch_init): Update.
8257 * cris-tdep.c (cris_gdbarch_init): Update.
8258 * avr-tdep.c (avr_gdbarch_init): Update.
8259 * arm-tdep.c (arm_gdbarch_init): Update.
8260 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8261 * alpha-tdep.c (alpha_gdbarch_init): Update.
8262
8263 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8264
8265 * signals/signals.c (do_target_signal_to_host): Correct realtime
8266 signal range test.
8267
8268 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8269
8270 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8271 (struct sal_chain, map_catch_names): Remove.
8272 (catch_exception_command_1): Don't call
8273 handle_gnu_4_16_catch_command.
8274
8275 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8276
8277 From Mark Dettinger <dettinge@de.ibm.com>:
8278 * dwarf2cfi.c (read_2u): Increment pointer by two.
8279
8280 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8281
8282 * signals/signals.c: Fix typos in last change.
8283
8284 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8285
8286 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8287 not already defined. Use __SIGRTMIN if available.
8288 (target_signal_from_host): Remove SIGRTMIN block.
8289 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8290 the signal is within the realtime range.
8291
8292 2003-03-25 Adam Fedor <fedor@gnu.org>
8293
8294 * Makefile.in (infrun.o): Add $(language_h)
8295 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8296 for language specific trampolines.
8297 * language.h (struct language_defn): Add skip_trampoline.
8298 (skip_language_trampoline): Declare.
8299 * language.c (unk_lang_trampoline, skip_language_trampoline):
8300 New functions.
8301 (unknown_language_defn, auto_language_defn, local_language_defn):
8302 Add ukn_lang_trampoline.
8303 * ada-lang.c (ada_language_defn): Add NULL for language
8304 specific skip_trampoline.
8305 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8306 scm-lang.c: Likewise.
8307 * objc-lang.c (objc_skip_trampoline): New function.
8308 (objc_language_defn): Add objc_skip_trampoline.
8309
8310 2003-03-25 Andrew Cagney <cagney@redhat.com>
8311
8312 * frame.c (get_prev_frame): Delay validating a frame's ID -
8313 non-NULL, didn't go backwards - until an attempt to unwind it to
8314 the previous frame.
8315
8316 2003-03-25 Andrew Cagney <cagney@redhat.com>
8317
8318 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8319 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8320 * gdbarch.h, gdbarch.c: Re-generate.
8321 * config/sparc/tm-sparc.h
8322 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8323 * sparc-tdep.c (sparc_gdbarch_init): Set
8324 deprecated_extra_stack_alignment_needed.
8325 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8327 extra_stack_alignment_needed.
8328 * v850-tdep.c (v850_gdbarch_init): Ditto.
8329 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8330 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8331 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8332 * cris-tdep.c (cris_gdbarch_init): Ditto.
8333 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8335
8336 2003-03-25 Andrew Cagney <cagney@redhat.com>
8337
8338 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8339 STORE_STRUCT_RETURN.
8340 * gdbarch.h, gdbarch.c: Regenerate.
8341 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8342 (d10v_push_arguments): Set the struct return register.
8343 (d10v_gdbarch_init): Update.
8344 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8345 * x86-64-tdep.c (x86_64_init_abi): Update.
8346 * vax-tdep.c (vax_gdbarch_init): Update.
8347 * v850-tdep.c (v850_gdbarch_init): Update.
8348 * sparc-tdep.c (sparc_gdbarch_init): Update.
8349 * sh-tdep.c (sh_gdbarch_init): Update.
8350 * s390-tdep.c (s390_gdbarch_init): Update.
8351 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8352 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8353 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8354 * mips-tdep.c (mips_gdbarch_init): Update.
8355 * mcore-tdep.c (mcore_gdbarch_init): Update.
8356 * m68k-tdep.c (m68k_gdbarch_init): Update.
8357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8358 * ia64-tdep.c (ia64_gdbarch_init): Update.
8359 * i386-tdep.c (i386_gdbarch_init): Update.
8360 * hppa-tdep.c (hppa_gdbarch_init): Update.
8361 * h8300-tdep.c (h8300_gdbarch_init): Update.
8362 * frv-tdep.c (frv_gdbarch_init): Update.
8363 * cris-tdep.c (cris_gdbarch_init): Update.
8364 * avr-tdep.c (avr_gdbarch_init): Update.
8365 * arm-tdep.c (arm_gdbarch_init): Update.
8366 * alpha-tdep.c (alpha_gdbarch_init): Update.
8367
8368 2003-03-25 Andrew Cagney <cagney@redhat.com>
8369
8370 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8371 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8372 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8373 * gdbarch.h, gdbarch.c: Regenerate.
8374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8375 call_dummy_stack_adjust_p.
8376 * vax-tdep.c (vax_gdbarch_init): Ditto.
8377 * v850-tdep.c (v850_gdbarch_init): Ditto.
8378 * sh-tdep.c (sh_gdbarch_init): Ditto.
8379 * s390-tdep.c (s390_gdbarch_init): Ditto.
8380 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8381 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8382 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8383 * mips-tdep.c (mips_gdbarch_init): Ditto.
8384 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8385 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8386 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8387 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8388 * i386-tdep.c (i386_gdbarch_init): Ditto.
8389 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8390 * frv-tdep.c (frv_gdbarch_init): Ditto.
8391 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8392 * cris-tdep.c (cris_gdbarch_init): Ditto.
8393 * avr-tdep.c (avr_gdbarch_init): Ditto.
8394 * arm-tdep.c (arm_gdbarch_init): Ditto.
8395 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8396 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8397 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8398 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8399 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8400 call_dummy_stack_adjust_p.
8401 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8402 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8403 * sparc-tdep.c (sparc32_push_arguments): Update.
8404 * valops.c (hand_function_call): Update.
8405
8406 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8407
8408 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8409 set_gdbarch_char_signed.
8410
8411 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8412
8413 PR cli/548
8414 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8415
8416 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8417
8418 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8419 (_initialize_arm_tdep): Don't set tm_print_insn.
8420
8421 2003-03-24 Adam Fedor <fedor@gnu.org>
8422
8423 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8424 * objc-lang.h: Add multiple inclusion protection.
8425 (start_msglist, add_msglist, end_msglist): Additional declarations.
8426
8427 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8428
8429 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8430 value was renamed to ARM_FLOAT_SOFT_FPA.
8431
8432 2003-03-23 Andrew Cagney <cagney@redhat.com>
8433
8434 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8435 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8436 * gdbarch.h, gdbarch.c: Regenerate.
8437 * valops.c (hand_function_call): Update.
8438 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8439 * frame.c (legacy_saved_regs_this_id): Update.
8440 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8441 * dummy-frame.h: Update.
8442 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8443 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8444 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8445 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8446 * config/m68k/tm-sun3.h: Update.
8447 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8449 * x86-64-tdep.c (x86_64_init_abi): Update.
8450 * vax-tdep.c (vax_gdbarch_init): Update.
8451 * v850-tdep.c (v850_gdbarch_init): Update.
8452 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8453 * sh-tdep.c (sh_gdbarch_init): Update.
8454 * s390-tdep.c (s390_gdbarch_init): Update.
8455 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8456 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8457 (frame_get_saved_regs): Update.
8458 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8459 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8460 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8461 * mips-tdep.c (mips_gdbarch_init): Update.
8462 * mcore-tdep.c (mcore_gdbarch_init): Update.
8463 * m68k-tdep.c (m68k_gdbarch_init): Update.
8464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8465 * ia64-tdep.c (ia64_gdbarch_init): Update.
8466 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8467 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8468 (i386_interix_back_one_frame): Update.
8469 * hppa-tdep.c (hppa_gdbarch_init): Update.
8470 (hppa_init_extra_frame_info): Update.
8471 * h8300-tdep.c (h8300_gdbarch_init): Update.
8472 * frv-tdep.c (frv_gdbarch_init): Update.
8473 * cris-tdep.c (cris_gdbarch_init): Update.
8474 * avr-tdep.c (avr_gdbarch_init): Update.
8475 * arm-tdep.c (arm_gdbarch_init): Update.
8476 * alpha-tdep.c (alpha_gdbarch_init): Update.
8477
8478 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8479
8480 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8481 (arm_get_fp_model): Declare.
8482 * arm-tdep.c (fp_model_strings): New string array.
8483 (arm_fp_model, current_fp_model): New variables.
8484 (arm_get_fp_model): New function.
8485 (arm_set_fp): New function.
8486 (set_fp_model_sfunc): New function.
8487 (show_fp_model): New function.
8488 (_initialize_arm_tdep): Add new command to set/show the FPU.
8489 (arm_extract_return_value): Use arm_get_fp_model.
8490 (arm_store_return_value): Likewise.
8491 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8492 to initialize the floating-point data types.
8493 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8494 model is FPA.
8495
8496 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8497
8498 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8499 the current setting of each value.
8500 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8501 new_set and new_show. Use add_setshow_cmd_full and
8502 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8503 commands and add new version as subcommands of "set/show arm".
8504
8505 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8506
8507 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8508 (set_arm_command, show_arm_command): New functions.
8509 (_initialize_arm_tdep): Add them.
8510 (num_disassembly_options): Renamed from num_flavor_options.
8511 (valid_disassembly_styles): Renamed from valid_flavors.
8512 (disassembly_style): Renamed from disassembly_flavor.
8513 (set_disassembly_style_sfunc): Renamed from
8514 set_disassembly_flavor_sfunc.
8515 (set_disassembly_style): Renamed from set_disassembly_flavor.
8516 (arm_othernames): Updated.
8517 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8518 command. Add "set/show arm disassembly" commands. Deprecate
8519 "othernames" command.
8520
8521 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8522
8523 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8524 (arm-tdep.o): Depend on elf_arm_h.
8525
8526 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8527
8528 * Makefile.in (coff_internal_h): Define.
8529 (arm-tdep.o): Update dependencies.
8530
8531 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8532
8533 * arm-tdep.c (prologue_cache): Delete.
8534 (check_prologue_cache, save_prologue_cache): Delete.
8535 (arm_scan_prologue): Don't check or update the prologue_cache.
8536 (arm_gdb_arch_init): Don't initialize it.
8537 (_initialize_arm_tdep): Likewise.
8538
8539 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8540
8541 * MAINTAINERS (tui): Maintainer of tui code.
8542
8543 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8544
8545 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8546 (i386-cygwin-tdep.o): Add dependencies.
8547 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8548 * i386-cygwin-tdep.c: New file.
8549 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8550 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8551
8552 2003-03-20 Andrew Cagney <cagney@redhat.com>
8553
8554 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8555 (handle_inferior_event): Remove code calling
8556 DYNAMIC_TRAMPOLINE_NEXTPC.
8557
8558 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8559 already has a full path.
8560
8561 * main.c (gdb_main): Return 1.
8562 (captured_main): Call error to report an invalid interpreter.
8563
8564 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8565 * alpha-osf1-tdep.c: Include "gdb_string.h".
8566
8567 2003-03-19 J. Brobecker <brobecker@gnat.com>
8568
8569 Continuing work to convert the hppa targets to multiarch partial.
8570
8571 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8572 method, now that hppa_push_dummy_frame has a conformant prototype.
8573 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8574 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8575 for the switch to multiarch partial.
8576
8577 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8578
8579 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8580 when iss is issNull.
8581
8582 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8583
8584 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8585 NUM_REGS bounds check.
8586
8587 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8588
8589 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8590 * mips-tdep.c (gdb_assert.h): Include.
8591 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8592 (mips_register_name): Handle integer registers explicitly. Add
8593 bounds checking.
8594 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8595 (mips_lsi33k_reg_names): Don't list integer registers; they're
8596 handled by mips_register_name() now.
8597 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8598 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8599 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8600 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8601 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8602
8603 2003-03-18 Andrew Cagney <cagney@redhat.com>
8604
8605 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8606 a void pointer.
8607 * gdbtypes.h (print_scalar_formatted): Update declaration.
8608 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8609
8610 2003-03-18 J. Brobecker <brobecker@gnat.com>
8611
8612 * infrun.c (observer.h): Add #include.
8613 (normal_stop): Add call to observer_notify_normal_stop.
8614 * Makefile.in (infrun.o): Add dependency on observer.h.
8615
8616 2003-03-18 J. Brobecker <brobecker@gnat.com>
8617
8618 Continuing work to convert the hppa targets to multiarch partial.
8619 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8620 parameter. Reformat comment.
8621 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8622 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8623 to match new profile.
8624
8625 2003-03-18 J. Brobecker <brobecker@gnat.com>
8626
8627 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8628 appear to be working in any case.
8629
8630 2003-03-18 J. Brobecker <brobecker@gnat.com>
8631
8632 * observer.c (observer_test_first_observer): New static variable.
8633 (observer_test_second_observer): Likewise.
8634 (observer_test_third_observer): Likewise.
8635 (observer_test_first_notification_function): New static function.
8636 (observer_test_second_notification_function): Likewise.
8637 (observer_test_third_notification_function): Likewise.
8638
8639 2003-03-17 J. Brobecker <brobecker@gnat.com>
8640
8641 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8642 * somsolib.c (gdb_assert.h): Likewise.
8643 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8644 (somsolib.o): Likewise.
8645
8646 2003-03-17 Andrew Cagney <cagney@redhat.com>
8647
8648 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8649 BFD. Simplify setting of di.endian.
8650
8651 2003-03-17 Andrew Cagney <cagney@redhat.com>
8652
8653 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8654 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8655
8656 From Elena Zannoni <ezannoni@redhat.com>
8657 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8658 vector and floating-point parameters.
8659 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8660 convention.
8661 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8662
8663 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8664
8665 * MAINTAINERS: Remove my name from several maintainership roles.
8666
8667 2003-03-17 Andrew Cagney <cagney@redhat.com>
8668
8669 Fix frame off-by-one bug.
8670 * frame-unwind.h (frame_this_id_ftype): Replace
8671 frame_unwind_id_ftype.
8672 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8673 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8674 with "prev_register".
8675 * frame-unwind.c (frame_unwind_find_by_pc): Return
8676 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8677 comment.
8678 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8679 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8680 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8681 (dummy_frame_unwind): Update.
8682 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8683 sentinel_frame_register_unwind.
8684 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8685 (sentinel_frame_unwinder): Update.
8686 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8687 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8688 * frame.c (create_sentinel_frame): Update. Initialize
8689 "prologue_cache" instead of "unwind_cache".
8690 (frame_register_unwind): Call this frame's prev_register with the
8691 next frame and this frame's prologue cache.
8692 (get_prev_frame): Simplify. Always call prev frame's this_id with
8693 this frame and prev frame's prologue cache. Document that this
8694 call is shifted one to the left when compared to the
8695 frame_register_unwind call.
8696 (legacy_saved_regs_prev_register): Replace
8697 frame_saved_regs_register_unwind.
8698 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8699 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8700 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8701 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8702 (d10v_frame_unwind): Update.
8703 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8704 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8705 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8706 "saved_regs" with "this_saved_regs".
8707
8708 2003-03-16 Andrew Cagney <cagney@redhat.com>
8709
8710 * frame.c (frame_pop): Don't call target_store_registers. Fix
8711 problem reported by Mark Kettenis.
8712
8713 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8714
8715 * i386-tdep.c (i386_register_type): Renamed from
8716 i386_register_virtual_type. Adjust function signature.
8717 (i386_gdbarch_init): Set register_type instead of
8718 deprecated_max_register_raw_size,
8719 deprecated_max_register_virtual_size and register_virtual_type.
8720
8721 2003-03-14 Andrew Cagney <cagney@redhat.com>
8722
8723 * frame.c (get_prev_frame): When a legacy frame, always call
8724 legacy_get_prev_frame. Simplify unwind code using assumption that
8725 the unwinder is new.
8726 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8727 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8728 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8729
8730 2003-03-14 Andrew Cagney <cagney@redhat.com>
8731
8732 * frame.c (get_saved_register): Delete function.
8733 * frame.h (get_saved_register): Delete declaration.
8734 * xstormy16-tdep.c: Update comment.
8735 * regcache.h: Update comments.
8736 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8737 get_saved_register and extract_address, use
8738 frame_read_unsigned_register.
8739 (sparc_frame_saved_pc): Ditto.
8740 (sparc_get_saved_register): Instead of get_saved_register, use
8741 frame_register.
8742 (sparc_pop_frame): Ditto.
8743 * findvar.c: Update comments.
8744 (value_of_register): Call frame_register instead of
8745 get_saved_register.
8746 (value_from_register): Ditto.
8747 * config/sparc/tm-sparc.h: Update comment.
8748 * breakpoint.c: Update comment.
8749
8750 2003-03-14 Andrew Cagney <cagney@redhat.com>
8751
8752 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8753 GET_SAVED_REGISTER.
8754 * gdbarch.h, gdbarch.c: Re-generate.
8755 * frame.h: Update comments.
8756 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8757 * x86-64-tdep.c (x86_64_init_abi): Update.
8758 * sparc-tdep.c (sparc_gdbarch_init): Update.
8759 * sh-tdep.c (sh_gdbarch_init): Update.
8760 * mips-tdep.c (mips_gdbarch_init): Update.
8761 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8762 * cris-tdep.c (cris_gdbarch_init): Update.
8763 * ia64-tdep.c (ia64_gdbarch_init): Update.
8764 * frame.c (frame_register): Update.
8765 (get_saved_register): Update.
8766 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8767
8768 2003-03-13 Andrew Cagney <cagney@redhat.com>
8769
8770 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8771 * gdbarch.h, gdbarch.c: Regenerate.
8772 * valops.c (hand_function_call): Update comment.
8773 * stack.c (return_command): Update comment.
8774 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8775 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8776 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8777 * x86-64-tdep.c (x86_64_init_abi): Update.
8778 * vax-tdep.c (vax_gdbarch_init): Update.
8779 * v850-tdep.c (v850_gdbarch_init): Update.
8780 * sparc-tdep.c (sparc_gdbarch_init): Update.
8781 * sh-tdep.c (sh_gdbarch_init): Update.
8782 * s390-tdep.c (s390_gdbarch_init): Update.
8783 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8784 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8785 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8786 * mips-tdep.c (mips_gdbarch_init): Update.
8787 * mcore-tdep.c (mcore_gdbarch_init): Update.
8788 * m68k-tdep.c (m68k_gdbarch_init): Update.
8789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8790 * ia64-tdep.c (ia64_gdbarch_init): Update.
8791 * i386-tdep.c (i386_gdbarch_init): Update.
8792 * hppa-tdep.c (hppa_gdbarch_init): Update.
8793 * h8300-tdep.c (h8300_gdbarch_init): Update.
8794 * frv-tdep.c (frv_gdbarch_init): Update.
8795 * cris-tdep.c (cris_gdbarch_init): Update.
8796 * avr-tdep.c (avr_gdbarch_init): Update.
8797 * arm-tdep.c (arm_gdbarch_init): Update.
8798 * alpha-tdep.c (alpha_gdbarch_init): Update.
8799
8800 2003-03-13 Andrew Cagney <cagney@redhat.com>
8801
8802 * frame.c (legacy_frame_p): New function.
8803 (get_prev_frame): Use legacy_frame_p.
8804 * frame.h (legacy_frame_p): Declare.
8805
8806 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8807
8808 * MAINTAINERS (write after approval): Alphabetically
8809 listing corrected.
8810
8811 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8812
8813 * MAINTAINERS (write after approval): Add myself.
8814
8815 2003-03-12 Andrew Cagney <cagney@redhat.com>
8816
8817 * frame.c (get_prev_frame): Rename the frame parameter to
8818 "this_frame".
8819 (get_next_frame, legacy_get_prev_frame): Ditto.
8820
8821 2003-03-12 Andrew Cagney <cagney@redhat.com>
8822
8823 * frame.c (get_current_frame): Check target_has_registers before
8824 checking target_has_stack.
8825 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8826 instead of deprecated_selected_frame.
8827 * findvar.c (value_of_register): Pass "frame", not
8828 deprecated_selected_frame, to value_of_builtin_reg.
8829
8830 2003-03-12 Andrew Cagney <cagney@redhat.com>
8831
8832 * regcache.c (regcache_cooked_write_signed): New function.
8833 (regcache_cooked_write_unsigned): New function.
8834 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8835 (regcache_cooked_read_signed): Fix regnum in range assertion.
8836 * regcache.h (regcache_cooked_write_signed): Declare.
8837 (regcache_cooked_write_unsigned): Declare.
8838
8839 2003-03-12 Andrew Cagney <cagney@redhat.com>
8840
8841 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8842 * gdbarch.h, gdbarch.c: Re-generate.
8843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8844 * x86-64-tdep.h: Update.
8845 * x86-64-tdep.c (x86_64_init_abi): Update.
8846 * v850-tdep.c (v850_gdbarch_init): Update.
8847 * sparc-tdep.c (sparc_gdbarch_init): Update.
8848 * sh-tdep.c (sh_gdbarch_init): Update.
8849 * s390-tdep.c (s390_gdbarch_init): Update.
8850 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8851 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8852 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8853 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8854 * mips-tdep.c (mips_gdbarch_init): Update.
8855 * mcore-tdep.c (mcore_gdbarch_init): Update.
8856 * m68k-tdep.c (m68k_gdbarch_init): Update.
8857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8858 * ia64-tdep.c (ia64_gdbarch_init): Update.
8859 * i386-tdep.c (i386_gdbarch_init): Update.
8860 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8861 * hppa-tdep.c (hppa_gdbarch_init): Update.
8862 * h8300-tdep.c (h8300_gdbarch_init): Update.
8863 * frv-tdep.c (frv_gdbarch_init): Update.
8864 * cris-tdep.c (cris_gdbarch_init): Update.
8865 * avr-tdep.c (avr_gdbarch_init): Update.
8866 * arm-tdep.c (arm_gdbarch_init): Update.
8867 * alpha-tdep.c (alpha_gdbarch_init): Update.
8868 * sh-tdep.c (sh_init_extra_frame_info): Update.
8869 (sh64_init_extra_frame_info): Update.
8870 * ns32knbsd-nat.c (frame_num_args): Update.
8871 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8872 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8873 (xstormy16_frame_chain_valid): Update.
8874 * vax-tdep.c (vax_saved_pc_after_call): Update.
8875 * v850-tdep.c (v850_frame_chain): Update.
8876 (v850_pop_frame): Update.
8877 (v850_init_extra_frame_info): Update.
8878 * sparc-tdep.c (setup_arbitrary_frame): Update.
8879 * ns32k-tdep.c (umax_frame_num_args): Update.
8880 * s390-tdep.c (s390_pop_frame_regular): Update.
8881 * mn10300-tdep.c (mn10300_frame_chain): Update.
8882 (mn10300_pop_frame_regular): Update.
8883 (mn10300_init_extra_frame_info): Update.
8884 * mips-tdep.c (mips_init_frame_pc_first): Update.
8885 (mips_frame_chain): Update.
8886 (mips_pop_frame): Update.
8887 * mcore-tdep.c (mcore_frame_chain): Update.
8888 (mcore_pop_frame): Update.
8889 (mcore_init_extra_frame_info): Update.
8890 * arch-utils.c (init_frame_pc_default): Update.
8891 * m68k-tdep.c (isi_frame_num_args): Update.
8892 (delta68_frame_num_args): Update.
8893 (news_frame_num_args): Update.
8894 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8895 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8896 (alpha_frame_chain): Update.
8897 (alpha_pop_frame): Update.
8898 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8899 (hppa_init_extra_frame_info): Update.
8900 (hppa_frame_chain): Update.
8901 (hppa_frame_chain_valid): Update.
8902 * cris-tdep.c (cris_init_extra_frame_info): Update.
8903 * avr-tdep.c (avr_init_extra_frame_info): Update.
8904 * arm-tdep.c (arm_frame_chain_valid): Update.
8905 (arm_init_extra_frame_info): Update.
8906 (arm_pop_frame): Update.
8907 * frame.c (frame_pc_unwind): Update.
8908 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8909 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8910 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8911 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8912 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8913 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8914
8915 2003-03-12 Andrew Cagney <cagney@redhat.com>
8916
8917 Eliminate the need for POP_FRAME.
8918 * frame.c (do_frame_unwind_register): New function.
8919 (frame_pop): When no POP_FRAME, pop the frame using register
8920 unwind and a scratch regcache.
8921 (frame_saved_regs_pop): Delete function.
8922 (trad_frame_unwinder): Update.
8923 * d10v-tdep.c (d10v_frame_pop): Delete function.
8924 (d10v_frame_unwind): Update.
8925 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8926 (sentinel_frame_unwinder): Update.
8927 * dummy-frame.c (dummy_frame_pop): Delete function.
8928 (dummy_frame_unwind): Update.
8929 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8930 (struct frame_unwind): Update.
8931
8932 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8933
8934 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8935 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8936 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8937 Do range checks on register number obtained from debugging info.
8938 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8939 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8940 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8941 mapping function.
8942 (do_fp_register_row): Fix typo which caused double type to be
8943 used when attempting to unpack a float.
8944
8945 2003-03-11 J. Brobecker <brobecker@gnat.com>
8946
8947 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8948
8949 2003-03-11 Andrew Cagney <cagney@redhat.com>
8950
8951 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8952 frame. Problem found by Corinna Vinschen.
8953
8954 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8955
8956 * doublest.c (floatformat_from_length): Accept also
8957 the real size of 'long double' type.
8958
8959 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8960
8961 From Klee Dienes <kdienes@apple.com>:
8962 * breakpoint.c (bpstat_copy): Copy the command lines as well
8963 as the old value, to match what is freed in bpstat_clear.
8964
8965 2003-03-10 David Carlton <carlton@math.stanford.edu>
8966
8967 * minsyms.c (add_minsym_to_hash_table): Replace
8968 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8969 (compare_minimal_symbols, compact_minimal_symbols)
8970 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8971 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8972 of DEPRECATED_SYMBOL_MATCHES_NAME.
8973 (lookup_minimal_symbol_solib_trampoline): Ditto.
8974
8975 2003-03-10 Andrew Cagney <cagney@redhat.com>
8976
8977 * regcache.h (regcache_cooked_read_ftype): Define.
8978 (regcache_save, regcache_restore): Add a cooked_read parameter.
8979 * regcache.c (regcache_save, regcache_restore): Update.
8980 (do_cooked_read): New function.
8981 (regcache_cpy): Pass do_cooked_read to regcache_save and
8982 regcache_restore.
8983
8984 2003-03-10 Andrew Cagney <cagney@redhat.com>
8985
8986 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8987 * gdbarch.h, gdbarch.c: Re-generate.
8988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8989 * x86-64-tdep.h: Update.
8990 * x86-64-tdep.c (x86_64_init_abi): Update.
8991 * v850-tdep.c (v850_gdbarch_init): Update.
8992 * sparc-tdep.c (sparc_gdbarch_init): Update.
8993 * sh-tdep.c (sh_gdbarch_init): Update.
8994 * s390-tdep.c (s390_gdbarch_init): Update.
8995 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8996 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8997 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8998 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8999 * mips-tdep.c (mips_gdbarch_init): Update.
9000 * mcore-tdep.c (mcore_gdbarch_init): Update.
9001 * m68k-tdep.c (m68k_gdbarch_init): Update.
9002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9003 * ia64-tdep.c (ia64_gdbarch_init): Update.
9004 * i386-tdep.c (i386_gdbarch_init): Update.
9005 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9006 * hppa-tdep.c (hppa_gdbarch_init): Update.
9007 * h8300-tdep.c (h8300_gdbarch_init): Update.
9008 * frv-tdep.c (frv_gdbarch_init): Update.
9009 * cris-tdep.c (cris_gdbarch_init): Update.
9010 * avr-tdep.c (avr_gdbarch_init): Update.
9011 * arm-tdep.c (arm_gdbarch_init): Update.
9012 * alpha-tdep.c (alpha_gdbarch_init): Update.
9013 * sh-tdep.c (sh_init_extra_frame_info): Update.
9014 (sh64_init_extra_frame_info): Update.
9015 * ns32knbsd-nat.c (frame_num_args): Update.
9016 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9017 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9018 (xstormy16_frame_chain_valid): Update.
9019 * vax-tdep.c (vax_saved_pc_after_call): Update.
9020 * v850-tdep.c (v850_frame_chain): Update.
9021 (v850_pop_frame): Update.
9022 (v850_init_extra_frame_info): Update.
9023 * sparc-tdep.c (setup_arbitrary_frame): Update.
9024 * ns32k-tdep.c (umax_frame_num_args): Update.
9025 * s390-tdep.c (s390_pop_frame_regular): Update.
9026 * mn10300-tdep.c (mn10300_frame_chain): Update.
9027 (mn10300_pop_frame_regular): Update.
9028 (mn10300_init_extra_frame_info): Update.
9029 * mips-tdep.c (mips_init_frame_pc_first): Update.
9030 (mips_frame_chain): Update.
9031 (mips_pop_frame): Update.
9032 * mcore-tdep.c (mcore_frame_chain): Update.
9033 (mcore_pop_frame): Update.
9034 (mcore_init_extra_frame_info): Update.
9035 * arch-utils.c (init_frame_pc_default): Update.
9036 * m68k-tdep.c (isi_frame_num_args): Update.
9037 (delta68_frame_num_args): Update.
9038 (news_frame_num_args): Update.
9039 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9040 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9041 (alpha_frame_chain): Update.
9042 (alpha_pop_frame): Update.
9043 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9044 (hppa_init_extra_frame_info): Update.
9045 (hppa_frame_chain): Update.
9046 (hppa_frame_chain_valid): Update.
9047 * cris-tdep.c (cris_init_extra_frame_info): Update.
9048 * avr-tdep.c (avr_init_extra_frame_info): Update.
9049 * arm-tdep.c (arm_frame_chain_valid): Update.
9050 (arm_init_extra_frame_info): Update.
9051 (arm_pop_frame): Update.
9052 * frame.c (frame_pc_unwind): Update.
9053 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9054 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9055 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9056 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9057 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9058 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9059
9060 2003-03-10 Andrew Cagney <cagney@redhat.com>
9061
9062 * gdbarch.sh (gdbarch_unwind_pc): New method.
9063 * gdbarch.h, gdbarch.c: Regenerate.
9064 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9065 but use read_pc and FRAME_SAVED_PC as fall backs.
9066 (frame_saved_regs_pc_unwind): Delete function.
9067 (trad_frame_unwinder): Update.
9068 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9069 (struct frame_unwind): Update.
9070 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9071 (dummy_frame_unwind): Update.
9072 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9073 (sentinel_frame_unwinder): Update.
9074 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9075 (d10v_frame_unwind): Update.
9076 (d10v_unwind_pc): New function.
9077 (d10v_gdbarch_init): Set unwind_pc.
9078
9079 2003-03-10 Andrew Cagney <cagney@redhat.com>
9080
9081 * gdbarch.h: Re-generate.
9082
9083 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9084 PC.
9085 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9086 the PC register.
9087
9088 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9089
9090 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9091
9092 2003-03-08 Andrew Cagney <cagney@redhat.com>
9093
9094 * cli-out.c: Update copyright.
9095 (cli_out_data): Define typedef. Use instead of ui_out_data.
9096
9097 2003-03-08 Andrew Cagney <cagney@redhat.com>
9098
9099 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9100 the result.
9101
9102 2003-03-07 Andrew Cagney <cagney@redhat.com>
9103
9104 * gdbarch.sh: Don't generate two macro definitions when an
9105 undefined macro taking no arguments.
9106 * gdbarch.h: Regenerate.
9107
9108 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9109
9110 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9111 (x86_64_unwind_dummy_id): New functions.
9112 (x86_64_init_abi): Register these two new functions.
9113
9114 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9115
9116 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9117 (x86_64_skip_prologue): Move prologue detection to
9118 separate function.
9119 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9120
9121 2003-03-05 Andrew Cagney <cagney@redhat.com>
9122
9123 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9124 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9125 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9126 to use unwind_dummy_id when a dummy frame.
9127 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9128 predicate.
9129 * gdbarch.h, gdbarch.c: Regneerate.
9130
9131 2003-03-05 Andrew Cagney <cagney@redhat.com>
9132
9133 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9134 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9135 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9136 values.
9137
9138 2003-03-05 Andrew Cagney <cagney@redhat.com>
9139
9140 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9141 (struct d10v_unwind_cache): Delete field "frameless". Replace
9142 "next_addr" with "sp_offset". Add "r11_offset".
9143 (d10v_frame_unwind_cache): Update.
9144 (prologue_find_regs): Update. When "mv r11, sp", save the
9145 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9146 RN was saved in r11_offset.
9147
9148 2003-03-05 Andrew Cagney <cagney@redhat.com>
9149
9150 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9151 cached PC value in the next frame.
9152
9153 2003-03-05 Andrew Cagney <cagney@redhat.com>
9154
9155 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9156 "id_unwind_cache" with "id".
9157 (frame_id_unwind): Delete declaration.
9158 * frame.c (frame_id_unwind): Delete function.
9159 (get_prev_frame): Call the frame id unwind method directly. Store
9160 the returned next frame's ID value in NEXT_FRAME. Note that there
9161 is a problem with the wrong unwind ID being called with the wrong
9162 unwind cache.
9163
9164 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9165
9166 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9167
9168 2003-03-05 James Ingham <jingham@apple.com>
9169 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9172 (auto_cp_abi): New variable.
9173 (current_cp_abi, num_cp_abis): Make static.
9174 (CP_ABI_MAX): Define.
9175 (cp_abis): Turn into an array.
9176 (value_virtual_fn_field): Fix formatting.
9177 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9178 takes a pointer.
9179 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9180 (list_cp_abis, _initialize_cp_abi): New functions.
9181 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9182 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9183 switch_to_cp_abi. Update prototype for register_cp_abi.
9184 * Makefile.in (cp-abi.o): Update dependencies.
9185 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9186 instead of switch_to_cp_abi.
9187 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9188 register_cp_abi.
9189 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9190 register_cp_abi.
9191 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9192
9193 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9194
9195 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9196 * dwarf2loc.c: Include "regcache.h".
9197 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9198 register_size.
9199 * Makefile.in (dwarf2loc.o): Update dependencies.
9200
9201 2003-03-04 Theodore A. Roth <troth@openavr.org>
9202
9203 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9204 number of io registers reported by remote target is not a multiple of
9205 step.
9206
9207 2003-03-04 David Carlton <carlton@math.stanford.edu>
9208
9209 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9210 (lookup_symbol_aux_psymtabs): Update call to
9211 lookup_partial_symbol.
9212 (lookup_transparent_type, find_main_psymtab)
9213 (make_symbol_overload_list): Ditto.
9214
9215 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9216
9217 * MAINTAINERS (Write after approval): Update my email address.
9218
9219 2003-03-03 Andrew Cagney <cagney@redhat.com>
9220
9221 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9222 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9223 predicate. Replace MAX_REGISTER_RAW_SIZE.
9224 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9225 MAX_REGISTER_VIRTUAL_SIZE.
9226 * regcache.c (legacy_max_register_raw_size): New function.
9227 (legacy_max_register_virtual_size): New function.
9228 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9229 (MAX_REGISTER_RAW_SIZE): Define.
9230 (legacy_max_register_raw_size): Declare.
9231 (legacy_max_register_virtual_size): Declare.
9232 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9233 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9234 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9235 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9236 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9237 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9238 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9239 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9240 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9242 * vax-tdep.c (vax_gdbarch_init): Update.
9243 * v850-tdep.c (v850_gdbarch_init): Update.
9244 * sparc-tdep.c (sparc_gdbarch_init): Update.
9245 * sh-tdep.c (sh_gdbarch_init): Update.
9246 * s390-tdep.c (s390_gdbarch_init): Update.
9247 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9248 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9249 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9250 * mips-tdep.c (mips_gdbarch_init): Update.
9251 * mcore-tdep.c (mcore_gdbarch_init): Update.
9252 * m68k-tdep.c (m68k_gdbarch_init): Update.
9253 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9254 * ia64-tdep.c (ia64_gdbarch_init): Update.
9255 * i386-tdep.c (i386_gdbarch_init): Update.
9256 * hppa-tdep.c (hppa_gdbarch_init): Update.
9257 * h8300-tdep.c (h8300_gdbarch_init): Update.
9258 * frv-tdep.c (frv_gdbarch_init): Update.
9259 * cris-tdep.c (cris_gdbarch_init): Update.
9260 * avr-tdep.c (avr_gdbarch_init): Update.
9261 * arm-tdep.c (arm_gdbarch_init): Update.
9262 * alpha-tdep.c (alpha_gdbarch_init): Update.
9263 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9264 max_register_raw_size or max_register_virtual_size.
9265
9266 2003-03-03 David Carlton <carlton@math.stanford.edu>
9267
9268 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9269 SYMBOL_MATCHES_NAME, add comment.
9270 (SYMBOL_MATCHES_NATURAL_NAME): New.
9271 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9272 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9273 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9274 * symtab.c (lookup_partial_symbol): Use
9275 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9276 unhelpful comment.
9277 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9278 SYMBOL_MATCHES_NAME.
9279 Fix for PR c++/33.
9280
9281 2003-03-03 David Carlton <carlton@math.stanford.edu>
9282
9283 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9284 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9285 by regexp matching against SYMBOL_NATURAL_NAME.
9286
9287 2003-03-03 David Carlton <carlton@math.stanford.edu>
9288
9289 * linespec.c (find_method): Extract code into collect_methods.
9290 (collect_methods): New.
9291
9292 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9293
9294 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9295 get_frame_base.
9296
9297 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9298 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9299
9300 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9301
9302 * arch-utils.c (generic_register_byte): Fix to use the loop index
9303 and not regnum when summing the size of all registers up to regnum.
9304
9305 2003-03-01 Andrew Cagney <cagney@redhat.com>
9306
9307 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9308 FRAME_INIT_SAVED_REGS.
9309 * gdbarch.h, gdbarch.c: Regenerate.
9310 * stack.c (frame_info): Update.
9311 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9312 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9313 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9314 * ns32k-tdep.c (ns32k_pop_frame): Update.
9315 * mips-tdep.c (mips_pop_frame): Update.
9316 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9317 * ia64-tdep.c (ia64_frame_chain): Update.
9318 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9319 (ia64_frameless_function_invocation): Update.
9320 (ia64_init_extra_frame_info): Update.
9321 (ia64_pop_frame_regular): Update.
9322 * frame.h (struct frame_info): Update comment.
9323 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9324 * frame.c (frame_saved_regs_register_unwind): Update.
9325 (frame_saved_regs_register_unwind): Update.
9326 (deprecated_generic_get_saved_register): Update.
9327 * cris-tdep.c: Update comment.
9328 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9329 Rename macro.
9330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9331 * x86-64-tdep.c (x86_64_init_abi): Update.
9332 * vax-tdep.c (vax_gdbarch_init): Update.
9333 * v850-tdep.c (v850_gdbarch_init): Update.
9334 * sparc-tdep.c (sparc_gdbarch_init): Update.
9335 * sh-tdep.c (sh_gdbarch_init): Update.
9336 * s390-tdep.c (s390_gdbarch_init): Update.
9337 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9338 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9339 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9340 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9341 * mips-tdep.c (mips_gdbarch_init): Update.
9342 * mcore-tdep.c (mcore_gdbarch_init): Update.
9343 * m68k-tdep.c (m68k_gdbarch_init): Update.
9344 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9345 * ia64-tdep.c (ia64_gdbarch_init): Update.
9346 * i386-tdep.c (i386_gdbarch_init): Update.
9347 * frv-tdep.c (frv_gdbarch_init): Update.
9348 * avr-tdep.c (avr_gdbarch_init): Update.
9349 * arm-tdep.c (arm_gdbarch_init): Update.
9350 * alpha-tdep.c (alpha_gdbarch_init): Update.
9351
9352 2003-03-01 Andrew Cagney <cagney@redhat.com>
9353
9354 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9355 option enum and switch. When no windows, set the interpreter to
9356 INTERP_CONSOLE.
9357
9358 2003-03-01 Andrew Cagney <cagney@redhat.com>
9359
9360 * main.c (captured_main): Replace magic option characters with an
9361 enum.
9362
9363 2003-03-01 Andrew Cagney <cagney@redhat.com>
9364
9365 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9366 INIT_EXTRA_FRAME_INFO.
9367 * gdbarch.h, gdbarch.c: Regenerate.
9368 * arm-tdep.c: Update comments.
9369 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9370 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9371 * frame.h, avr-tdep.c: Ditto.
9372 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9373 (create_new_frame, legacy_get_prev_frame): Ditto.
9374 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9375 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9377 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9378 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9379 * v850-tdep.c (v850_gdbarch_init): Ditto.
9380 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9381 * sh-tdep.c (sh_gdbarch_init): Ditto.
9382 * s390-tdep.c (s390_gdbarch_init): Ditto.
9383 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9384 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9385 * mips-tdep.c (mips_gdbarch_init): Ditto.
9386 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9388 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9389 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9390 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9391 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9392 * frv-tdep.c (frv_gdbarch_init): Ditto.
9393 * cris-tdep.c (cris_gdbarch_init): Ditto.
9394 * avr-tdep.c (avr_gdbarch_init): Ditto.
9395 * arm-tdep.c (arm_gdbarch_init): Ditto.
9396 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9397 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9398
9399 2003-03-01 Andrew Cagney <cagney@redhat.com>
9400
9401 * gdbarch.sh (register_type): New function with predicate.
9402 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9403 * gdbarch.h, gdbarch.c: Re-generate.
9404 * arch-utils.c (generic_register_byte): Use generic_register_size.
9405 (generic_register_size): When available, use
9406 gdbarch_register_type.
9407 * regcache.c (init_regcache_descr): When available, initialize the
9408 register type array using gdbarch_register_type. If the
9409 architecture supplies gdbarch_register_type, do not use the legacy
9410 regcache layout.
9411 * d10v-tdep.c (d10v_register_type): Replace
9412 d10v_register_virtual_type.
9413 (d10v_gdbarch_init): Set register_type instead of
9414 register_virtual_type.
9415
9416 2003-03-01 Andrew Cagney <cagney@redhat.com>
9417
9418 * Makefile.in (ax-gdb.o): Update dependencies.
9419 * ax-gdb.c: Include "regcache.h".
9420 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9421 * findvar.c (value_of_register): Ditto.
9422 * infcmd.c (default_print_registers_info): Ditto.
9423
9424 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9425
9426 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9427 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9428
9429 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9430
9431 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9432 of STREQ.
9433
9434 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9435
9436 * Makefile.in (dwarf2loc.o): Update dependencies.
9437 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9438 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9439 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9440 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9441 (locexpr_tracepoint_var_ref): New function.
9442 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9443
9444 2003-02-28 Andrew Cagney <cagney@redhat.com>
9445
9446 * regcache.c (register_size): New function.
9447 * regcache.h (register_size): Declare
9448 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9449 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9450
9451 2003-02-28 David Carlton <carlton@math.stanford.edu>
9452
9453 * linespec.c (decode_compound): Extract code into find_method.
9454 (find_method): New.
9455
9456 2003-02-28 J. Brobecker <brobecker@gnat.com>
9457
9458 * Makefile.in: Add rules to build and link in observer.o.
9459
9460 2003-02-27 J. Brobecker <brobecker@gnat.com>
9461
9462 * observer.c: Minor comments edits.
9463
9464 2003-02-27 J. Brobecker <brobecker@gnat.com>
9465
9466 * observer.h, observer.c: New file.
9467
9468 2003-02-27 Andrew Cagney <cagney@redhat.com>
9469
9470 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9471
9472 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9473
9474 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9475 (M6812_OP_STS_EXT): Likewise.
9476 (m6811_prologue): Use the above to recognize prologue.
9477 (m6812_prologue): Likewise.
9478
9479 2003-02-27 David Carlton <carlton@math.stanford.edu>
9480
9481 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9482 SYMBOL_PRINT_NAME.
9483 (compare_psymbols): Ditto.
9484 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9485
9486 2003-02-27 Michael Snyder <msnyder@redhat.com>
9487
9488 * f-lang.c (build_fortran_types): New function.
9489 (_initialize_f_language): Gdbarch-register built-in fortran types.
9490 * doublest.c (extract_floating): Fix warning text.
9491
9492 2003-02-27 Andrew Cagney <cagney@redhat.com>
9493
9494 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9495 predicate. Replaces PUSH_DUMMY_FRAME.
9496 * gdbarch.h, gdbarch.c: Regnerate.
9497 * valops.c (hand_function_call): Update. Call
9498 generic_push_dummy_frame directly.
9499 * vax-tdep.c (vax_gdbarch_init): Update.
9500 * sparc-tdep.c (sparc_gdbarch_init): Update.
9501 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9502 * m68k-tdep.c (m68k_gdbarch_init): Update.
9503 * hppa-tdep.c (hppa_gdbarch_init): Update.
9504 * alpha-tdep.c (alpha_gdbarch_init): Update.
9505 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9506 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9507 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9508 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9509 push_dummy_frame to generic_push_dummy_frame.
9510 * v850-tdep.c (v850_gdbarch_init): Ditto.
9511 * sh-tdep.c (sh_gdbarch_init): Ditto.
9512 * s390-tdep.c (s390_gdbarch_init): Ditto.
9513 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9514 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9515 * mips-tdep.c (mips_gdbarch_init): Ditto.
9516 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9518 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9519 * i386-tdep.c (i386_gdbarch_init): Ditto.
9520 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9521 * frv-tdep.c (frv_gdbarch_init): Ditto.
9522 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9523 * cris-tdep.c (cris_gdbarch_init): Ditto.
9524 * avr-tdep.c (avr_gdbarch_init): Ditto.
9525 * arm-tdep.c (arm_gdbarch_init): Ditto.
9526
9527 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9528
9529 * mips-tdep.c (show_mips_abi): New function.
9530 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9531 command ``show mips abi''.
9532
9533 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9534
9535 From Elena Zannoni <ezannoni@redhat.com>
9536 * dbxread.c (process_one_symbol): Only record line 0 if one or
9537 more sline entries have been seen for the function.
9538
9539 2003-02-26 Michael Chastain <mec@shout.net>
9540
9541 * configure: Regenerate with autoconf 000227.
9542
9543 2003-02-26 Michael Chastain <mec@shout.net>
9544
9545 Close PR build/660.
9546 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9547 for old libc5/glibc.
9548 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9549
9550 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9551
9552 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9553 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9554
9555 2003-02-26 Michael Chastain <mec@shout.net>
9556
9557 * configure.in: New variable HAVE_UINTPTR_T.
9558 * configure, config.in: Regenerated.
9559
9560 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9561
9562 Fix PR build/1097.
9563 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9564
9565 2003-02-25 Andrew Cagney <cagney@redhat.com>
9566
9567 * frame.c (get_prev_frame): Add comment on check for
9568 inside_entry_func. Only check for inside_entry_file when not a
9569 dummy and not a sentinel. Check that the new frame is not inner
9570 to the old frame.
9571
9572 2003-02-25 Andrew Cagney <cagney@redhat.com>
9573
9574 * frame.c (frame_debug): New variable.
9575 (_initialize_frame): Add "set/show debug frame" command.
9576 (get_prev_frame): When frame_debug, print reason why unwind
9577 failed.
9578
9579 2003-02-25 Michael Chastain <mec@shout.net>
9580
9581 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9582 to avoid uintptr_t definition problems.
9583
9584 2003-02-25 David Carlton <carlton@math.stanford.edu>
9585
9586 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9587 (SYMBOL_LINKAGE_NAME): Ditto.
9588 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9589 SYMBOL_LINKAGE_NAME.
9590 (struct general_symbol_info): Expand comment.
9591 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9592 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9593 (SYMBOL_MATCHES_REGEXP): Ditto.
9594 * symtab.c (symbol_natural_name): New function.
9595 * objfiles.h: Replace all uses of SYMBOL_NAME by
9596 DEPRECATED_SYMBOL_NAME.
9597 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9598 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9599 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9600 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9601 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9602 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9603 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9604 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9605 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9606 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9607 * ada-exp.y: Ditto.
9608 * ada-exp.y: Update copyright.
9609 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9610 * cp-valprint.c: Ditto.
9611
9612 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9613
9614 * infptrace.c (detach): Do not flag error if ptrace detach fails
9615 and errno is set to ESRCH.
9616
9617 2003-02-24 Andrew Cagney <cagney@redhat.com>
9618
9619 * infptrace.c (udot_info): Change type of udot_off to long. Use
9620 paddr when printing udot_off's value.
9621
9622 2003-02-24 David Carlton <carlton@math.stanford.edu>
9623
9624 * symtab.c (make_symbol_overload_list): Only read in partial
9625 symtabs containing a matching partial symbol.
9626
9627 2003-02-24 David Carlton <carlton@math.stanford.edu>
9628
9629 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9630 do the comparison, not strcmp.
9631 * symfile.c (compare_psymbols): Ditto.
9632 * defs.h: Declare strcmp_iw_ordered.
9633 * utils.c (strcmp_iw_ordered): New function.
9634
9635 2003-02-24 Jim Blandy <jimb@redhat.com>
9636
9637 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9638 support, shared libs): Remove my name from here, to better reflect
9639 reality.
9640
9641 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9642
9643 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9644 (target_ops): Add to_have_continuable_watchpoint.
9645 * target.c (update_current_target): Add INHERIT line for
9646 to_have_continuable_watchpoint.
9647 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9648 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9649 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9650 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9651
9652 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9653
9654 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9655 maintainership.
9656
9657 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9658
9659 * solib.c (solib_open): Call target defined search function after
9660 failing with solib-search-path.
9661 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9662 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9663
9664 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9665
9666 * MAINTAINERS: Add myself to Write After section.
9667
9668 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9669
9670 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9671
9672 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9673
9674 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9675 (m68hc11_add_reggroups): New function.
9676 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9677 (m68hc11_gdbarch_init): Install the reggroups.
9678 (_initialize_m68hc11_tdep): Initialize them.
9679
9680 2003-02-21 James E Wilson <wilson@tuliptree.org>
9681
9682 * MAINTAINERS: Update my email address.
9683
9684 2003-02-21 David Carlton <carlton@math.stanford.edu>
9685
9686 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9687
9688 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9689
9690 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9691 * symtab.h: Add opaque declarations of struct axs_value and
9692 struct agent_expr.
9693 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9694 (struct location_funcs): New type.
9695 (struct symbol): Add "loc" to aux_value.
9696 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9697 * dwarf2read.c: Include "dwarf2expr.h".
9698 (dwarf2_symbol_mark_computed): New function.
9699 (read_func_scope): Use it.
9700 (var_decode_location): New function.
9701 (new_symbol): Use it.
9702 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9703
9704 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9705 (dwarf2expr_h, dwarf2loc_h): New variables.
9706 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9707 (dwarf2expr.o, dwarf2loc.o): New rules.
9708 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9709 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9710 LOC_COMPUTED_ARG.
9711 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9712 * m2-exp.y (yylex): Likewise.
9713 * printcmd.c (address_info, print_frame_args): Likewise.
9714 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9715 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9716 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9717 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9718 * symtab.c (lookup_block_symbol): Likewise.
9719
9720 2003-02-20 Adam Fedor <fedor@gnu.org>
9721
9722 * symtab.h: Remove objc_specific struct
9723 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9724 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9725 Have language_objc use cplus_specific struct.
9726
9727 2003-02-20 Tom Tromey <tromey@redhat.com>
9728
9729 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9730 TYPE_NAME, when printing a String value. PR java/1075.
9731
9732 2003-02-20 Adam Fedor <fedor@gnu.org>
9733
9734 * objc-lang.h (find_methods): Remove declaration.
9735 * objc-lang.c (find_methods): Make static.
9736
9737 2003-02-20 Christopher Faylor <cgf@redhat.com>
9738
9739 * win32-nat.c (get_image_name): Check return value from
9740 ReadProcessMemory.
9741 (child_xfer_memory): Ditto.
9742
9743 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9744
9745 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9746 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9747 '${exec_prefix}' (in addition to the expansion thereof) as
9748 relocatable.
9749 * configure: Rebuilt.
9750
9751 2003-02-20 David Carlton <carlton@math.stanford.edu>
9752
9753 * symtab.c (search_symbols): Revert the search_symbols part of my
9754 2002-12-23 patch. Add comment.
9755
9756 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9757
9758 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9759 * dbxread.c (elfstab_build_psymtabs): Don't call
9760 install_minimal_symbols.
9761 (stabsect_build_psymtabs): Likewise.
9762 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9763 earlier.
9764 * somread.c (som_symfile_read): Call install_minimal_symbols
9765 and do_cleanups earlier.
9766 * nlmread.c (nlm_symfile_read): Likewise.
9767 * mdebugread.c (elfmdebug_build_psymtabs): Call
9768 install_minimal_symbols and make appropriate cleanups.
9769
9770 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9771
9772 * solib.c (reload_shared_libraries): New function.
9773 (_initialize_solib): Add callbacks for ``set solib-search-path''
9774 and ``set solib-absolute-prefix''.
9775
9776 2003-02-20 David Carlton <carlton@math.stanford.edu>
9777
9778 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9779 expand comment.
9780 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9781 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9782 * ada-typeprint.c (ada_typedef_print): Ditto.
9783 * ax-gdb.c (gen_var_ref): Ditto.
9784 * breakpoint.c (print_one_breakpoint): Ditto.
9785 * buildsym.c (finish_block): Ditto.
9786 * c-valprint.c (c_val_print): Ditto.
9787 * expprint.c (print_subexp): Ditto.
9788 * findvar.c (locate_var_value): Ditto.
9789 * infcmd.c (jump_command): Ditto.
9790 * linespec.c (decode_line_2, decode_compound): Ditto.
9791 * maint.c (maintenance_translate_address): Ditto.
9792 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9793 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9794 Ditto.
9795 * p-valprint.c (pascal_val_print): Ditto.
9796 * stabsread.c (define_symbol): Ditto.
9797 * stack.c (print_frame, frame_info, print_block_frame_locals)
9798 (print_frame_arg_vars, return_command): Ditto.
9799 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9800 * symmisc.c (print_symbol): Ditto.
9801 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9802 (compare_search_syms, print_symbol_info, print_msymbol_info)
9803 (rbreak_command): Ditto.
9804 * tracepoint.c (tracepoints_info): Ditto.
9805 * typeprint.c (typedef_print): Ditto.
9806 * valops.c (value_of_variable, hand_function_call): Ditto.
9807 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9808 * ada-typeprint.c: Update Copyright.
9809 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9810 * tracepoint.c, cli/cli-cmds.c: Ditto.
9811
9812 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9813
9814 * frame.c (generic_unwind_get_saved_register): Make non-static.
9815 * frame.h (generic_unwind_get_saved_register): Declare.
9816 * mips-tdep.c (read_next_frame_reg): Fetch register from
9817 current regcache when frame is NULL.
9818 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9819 that must be NULL.
9820 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9821 instead of frame_register_unwind().
9822
9823 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9824
9825 * remote-sim.c (gdbsim_insert_breakpoint)
9826 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9827 code.
9828
9829 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9830
9831 * remote.c (_initialize_remote): Add commands "set/show remote
9832 hardware-watchpoint-limit" and "set/show remote
9833 hardware-breakpoint-limit".
9834 (remote_hw_watchpoint_limit): Initialize to -1.
9835 (remote_hw_breakpoint_limit): Ditto.
9836 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9837
9838 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9839
9840 * coff-pe-read.c: New file - support reading of minimal symbols from a
9841 portable executable using the export table.
9842 * coff-pe-read.h: New file.
9843 * coffread.c: Include coff-pe-read.h.
9844 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9845 debugging symbols found.
9846 * Makefile.in (SFILES): Add coff-pe-read.o.
9847 (coff_pe_read_h): Define.
9848 (COMMON_OBS): Add coff-pe-read.o.
9849 (coffread.o): Add coff_pe_read_h dependency.
9850 (coff-pe-read.o): New target.
9851
9852 2003-02-19 David Carlton <carlton@math.stanford.edu>
9853
9854 * Makefile.in (SFILES): Add block.c.
9855 (block_h): New.
9856 (COMMON_OBS): Add block.o.
9857 (block.o): New.
9858 (x86-64-tdep.o): Add $(block_h).
9859 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9860 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9861 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9862 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9863 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9864 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9865 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9866 * value.h: Add opaque declaration for struct block.
9867 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9868 * ada-lang.h: Ditto.
9869 * x86-64-tdep.c: #include "block.h"
9870 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9871 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9872 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9873 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9874 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9875 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9876 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9877 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9878 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9879 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9880 * symtab.c (block_function): Ditto.
9881 (contained_in): Ditto.
9882 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9883 block.h. Add opaque declaration for struct block.
9884 * symtab.h: Move block_function and contained_in declarations to
9885 block.h. Add opaque declarations for struct block, struct
9886 blockvector.
9887 (struct block): Move to block.h.
9888 (struct blockvector): Ditto.
9889 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9890 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9891 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9892 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9893 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9894 Ditto.
9895 * block.c: New file.
9896 * block.h: New file.
9897
9898 2003-02-19 Theodore A. Roth <troth@openavr.org>
9899
9900 * avr-tdep.c (avr_extract_return_value): Remove function.
9901 (avr_store_return_value): Remove function.
9902 (avr_extract_struct_value_address): Remove function.
9903 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9904
9905 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9906
9907 * rs6000-tdep.c: Include "gdb_assert.h".
9908 (registers_e500): Add "acc" and "spefscr".
9909 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9910 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9911 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9912 really is "r0".
9913 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9914
9915 2003-02-18 Keith Seitz <keiths@redhat.com>
9916
9917 * Makefile.in: Add gdbtk-interps.c.
9918
9919 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9920
9921 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9922 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9923
9924 2003-02-18 Andrew Cagney <cagney@redhat.com>
9925
9926 * symtab.h (struct objfile): Add opaque declaration.
9927
9928 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9929
9930 From Jim Ingham <jingham@apple.com>:
9931 * dbxread.c (process_one_symbol): Use last_function_start rather
9932 than function_start_offset to find the real beginning of the
9933 current function. The latter is just the text section offset on
9934 some systems, the former is always the real function start.
9935
9936 2003-02-17 Andrew Cagney <cagney@redhat.com>
9937
9938 * configure.in: Revert ${target} != ${host}.
9939
9940 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9941
9942 * configure.in (Makefile): Use the test ${target} != ${host},
9943 instead of the absence of the "nm.h" file, to determine of the
9944 configuration non-native.
9945 * configure: Regenerate.
9946
9947 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9948
9949 From Brian Ford <ford@vss.fsi.com>
9950
9951 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9952 conditionalize tui_active test.
9953 (lookup_cmd_1): Ditto.
9954
9955 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9956
9957 * configure.in: Add check for _etext.
9958 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9959 available.
9960 * config.in, configure: regenerated.
9961
9962 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9963
9964 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9965
9966 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9967
9968 * main.c (tui_version): Delete variable.
9969 (captured_main): When --tui, set interpreter_p to "tui" instead of
9970 enabling tui_version.
9971 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9972 tui_version.
9973 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9974 * cli/cli-cmds.c (disassemble_command): Ditto.
9975 * defs.h (tui_version): Delete declaration.
9976 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9977 (tui-interp.o): Add rules.
9978 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9979
9980 2003-02-14 Christopher Faylor <cgf@redhat.com>
9981
9982 * win32-nat.c (register_loaded_dll): Correctly set address range for
9983 just-loaded dll.
9984
9985 2003-02-12 Jason Molenda (jmolenda@apple.com)
9986
9987 * symmisc.c (print_objfile_statistics): Include information about
9988 the number of psymtabs and symtabs in each object file.
9989
9990 2003-02-13 Keith R Seitz <keiths@redhat.com>
9991
9992 * main.h (struct captured_main_args): Add interpreter_p.
9993 * main.c (captured_main): Initialize interpreter_p from context.
9994 * gdb.c (main): Set interpreter_p argument.
9995 * Makefile.in (gdb.o): Add dependency for interps.h.
9996
9997 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9998
9999 * event-top.c (cli_command_loop): Delete declaration.
10000 (_initialize_event_loop): Delete function setting event_loop_hook.
10001 * event-top.h (cli_command_loop): Declare. Update copyright.
10002 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10003 * interps.c (current_interp_command_loop): When event_loop_p, call
10004 cli_command_loop.
10005
10006 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10007
10008 * interps.h (interp_command_loop_ftype): Change return type to
10009 void.
10010
10011 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10012
10013 * x86-64-tdep.c (x86_64_extract_return_value)
10014 (x86_64_store_return_value): Use regcache instead of regbuf.
10015 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10016 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10017
10018 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10019
10020 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10021 * aclocal.m4: Regenerate.
10022 * configure: Regenerate.
10023
10024 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10025 TCL_LD_SEARCH_FLAGS.
10026
10027 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10028
10029 * dwarf2cfi.c: Reindented.
10030
10031 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10032
10033 * interps.c (clear_interpreter_hooks): Convert function definition
10034 to ISO C.
10035
10036 2003-02-07 David Carlton <carlton@math.stanford.edu>
10037
10038 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10039
10040 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10041
10042 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10043 (struct type): ...to here.
10044 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10045 field.
10046 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10047 (replace_type): Set length on all type variants for a given type.
10048
10049 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10050
10051 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10052 <sys/stat.h>.
10053 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10054
10055 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10056
10057 * Makefile.in (symm-nat.o): Update dependencies.
10058 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10059 (lynx-nat.o, ia64-linux-nat.): Ditto.
10060 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10061 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10062 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10063
10064 * Makefile.in (inflow_h): Define.
10065 (procfs.o, inflow.o, procfs.o): Update dependencies.
10066 * inftarg.c (child_stop): Delete extern declaration of
10067 inferior_process_group. Include "inflow.h".
10068 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10069 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10070 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10071 (our_process_group, inferior_process_group): Extern declarations.
10072
10073 * procfs.c: Include "gdb_assert.h".
10074
10075 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10076 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10077 * jv-typeprint.c (java_type_print_base): Ditto.
10078 * typeprint.c (typedef_print): Eliminate STREQ.
10079 * cli/cli-script.c (define_command, define_command): Ditto.
10080 * main.c (captured_main): Ditto.
10081 * values.c (lookup_internalvar): Ditto.
10082 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10083 within `if' conditional.
10084 * linespec.c (decode_line_2): Ditto.
10085 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10086 (bfd_openw_with_cleanup): Ditto.
10087
10088 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10089
10090 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10091 legacy_extract_return_value and store_return_value to
10092 legacy_return_value.
10093
10094 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10095
10096 * win32-nat.c (get_relocated_section_addrs): New function. Find
10097 section load addresses for symbol handling in relocated DLLs.
10098 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10099
10100 2003-02-05 Fred Fish <fnf@intrinsity.com>
10101
10102 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10103 '=' and '!='.
10104 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10105 with '&' and '=='.
10106 (angel_RDI_info): Ditto.
10107 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10108 with '&' and '!='.
10109 (threads_continue_all_with_signals): Ditto.
10110
10111 2003-02-05 Jim Ingham <jingham@apple.com>
10112 Keith Seitz <keiths@redhat.com>
10113 Elena Zannoni <ezannoni@redhat.com>
10114 Andrew Cagney <ac131313@redhat.com>
10115
10116 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10117 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10118 (SUBDIR_MI_OBS): Add "mi-interp.o".
10119 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10120 (SFILES): Add "interps.c".
10121 (COMMON_OBS): Add "interps.o".
10122 (interps_h, mi_main_h): Define.
10123 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10124 (mi-main.o, main.o, event-top.o): Update dependencies.
10125 * cli/cli-interp.c: New file.
10126 * interps.h, interps.c: New files.
10127 * top.c: (gdb_init): Don't install the default interpreter, handed
10128 by captured_main.
10129 * main.c: Include "interps.h".
10130 (interpreter_p): Note that it should malloc'ed.
10131 (captured_command_loop): Call current_interp_command_loop.
10132 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10133 xfree and xstrdup when updating interpreter_p. Install the
10134 default interpreter. Add hack to stop mi1's copyright notice
10135 being encoded.
10136 * event-top.h (gdb_setup_readline): Declare.
10137 (gdb_disable_readline): Declare.
10138 * event-top.c: Include "interps.h".
10139 (display_gdb_prompt): Call current_interp_display_prompt_p.
10140 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10141 gdb_stdlog, and gdb_stdtarg.
10142 (_initialize_event_loop): Don't call gdb_setup_readline.
10143 * cli-out.c (cli_out_set_stream): New function.
10144 * cli-out.h (cli_out_set_stream): Declare.
10145
10146 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10147
10148 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10149 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10150 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10151 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10152 config/i386/i386v42mp.mt: Removed.
10153
10154 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10155
10156 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10157 GDB_OSABI_SOLARIS.
10158
10159 2003-02-05 Michael Chastain <mec@shout.net>
10160
10161 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10162 2.12.1 and earlier versions.
10163
10164 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10165
10166 Remove orphaned hosts, targets and files.
10167 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10168 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10169 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10170 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10171 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10172 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10173 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10174 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10175 * config/sparc/tm-sp64sim.h: Delete.
10176 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10177 hosts.
10178 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10179 mips*-dec-mach3* targets.
10180
10181 2003-02-04 Michael Chastain <mec@shout.net>
10182
10183 * NEWS: Fix typo: sepcifying -> specifying.
10184
10185 2003-02-04 Michael Chastain <mec@shout.net>
10186
10187 * dwarfread.c: Add documentation on the state of dwarf-1,
10188 looking towards obsoletion.
10189
10190 2003-02-03 Michael Chastain <mec@shout.net>
10191
10192 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10193 gdb/testsuite/gdb.c++/pr-1023.exp.
10194
10195 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10196
10197 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10198 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10199
10200 * utils.c (init_page_info): Delete reference to MPW in comments.
10201 * main.c (captured_main): Delete #ifdef MPW.
10202
10203 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10204
10205 * NEWS: Note that the m32r-*-elf* is obsolete.
10206 * monitor.c (monitor_expect): Obsolete reference to m32r.
10207 * configure.tgt: Mark m32r-*-elf* as obsolete.
10208 * MAINTAINERS: Mark m32k as obsolete.
10209 * m32r-rom.c: Obsolete file.
10210 * config/m32r/m32r.mt: Obsolete file.
10211 * config/m32r/tm-m32r.h: Obsolete file.
10212 * m32r-stub.c: Obsolete file.
10213 * m32r-tdep.c: Obsolete file.
10214
10215 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10216
10217 * NEWS: Mention that the z8k-zilog-none is obsolete.
10218 * MAINTAINERS: Mark z8k as obsolete.
10219 * configure.tgt: Obsolete the z8k-*-coff* target.
10220 * config/z8k/z8k.mt: Obsolete file.
10221 * config/z8k/tm-z8k.h: Obsolete file.
10222 * z8k-tdep.c: Obsolete file.
10223
10224 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10225
10226 * NEWS: Mention that the mn10200-elf is obsolete.
10227 * configure.tgt: Obsolete mn10200-*-* target.
10228 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10229 mention that the mn10200 is obsolete.
10230 * breakpoint.h: Ditto.
10231 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10232 * config/mn10200/mn10200.mt: Obsolete file.
10233 * config/mn10200/tm-mn10200.h: Obsolete file.
10234 * mn10200-tdep.c: Obsolete file.
10235
10236 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10237
10238 * MAINTAINERS: Mark h8500 as obsolete.
10239 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10240 * findvar.c (value_from_register): Ditto.
10241 * h8500-tdep.c: Mark file as obsolete.
10242 * config/h8500/h8500.mt: Ditto.
10243 * config/h8500/tm-h8500.h: Ditto.
10244 * NEWS: Mention that h8500 is obsolete.
10245
10246 2003-02-04 David Carlton <carlton@math.stanford.edu>
10247
10248 * objfiles.c (allocate_objfile): Always set name. Add comment at
10249 start of function.
10250 * jv-lang.c (get_dynamics_objfile): Add comment.
10251
10252 2003-02-04 David Carlton <carlton@math.stanford.edu>
10253
10254 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10255 * printcmd.c (build_address_symbolic): Replace uses of
10256 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10257 SYMBOL_NAME, and asm_demangle.
10258 Update copyright.
10259
10260 2003-02-04 David Carlton <carlton@math.stanford.edu>
10261
10262 * linespec.c (decode_compound): Extract code into
10263 lookup_prefix_sym.
10264 (lookup_prefix_sym): New function.
10265
10266 2003-02-04 David Carlton <carlton@math.stanford.edu>
10267
10268 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10269 FLOAT_COERCION_BADNESS.
10270 * gdbtypes.c (rank_one_type): Replace all uses of
10271 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10272
10273 2003-02-04 Jim Blandy <jimb@redhat.com>
10274
10275 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10276 section, let dwarf_macinfo_section point to it, not
10277 dwarf_loc_section.
10278
10279 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10280
10281 Pointed out by Anton Blanchard <anton@samba.org>.
10282 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10283 (ppc_linux_at_sigtramp_return_path): Use it.
10284
10285 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10286
10287 * defs.h (streq): Add prototype.
10288 * utils.c (streq): New function.
10289
10290 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10291 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10292 * mdebugread.c (new_symbol): Likewise.
10293 * stabsread.c (define_symbol): Likewise.
10294 * coffread.c (process_coff_symbol): Likewise.
10295 * dwarfread.c (new_symbol): Likewise.
10296
10297 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10298 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10299 here.
10300 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10301 SYMBOL_INIT_DEMANGLED_NAME.
10302 * objfiles.c: Include "hashtab.h".
10303 (allocate_objfile): Call htab_set_functions_ex for the
10304 demangled_names_hash.
10305 (free_objfile): Call htab_delete for the demangled_names_hash.
10306 * objfiles.h (struct htab): Add declaration.
10307 (struct objfile): Add demangled_names_hash.
10308 * symfile.c: Include "hashtab.h".
10309 (reread_symbols): Call htab_delete for the demangled_names_hash.
10310 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10311 SYMBOL_NAME in the bcache.
10312 * symtab.c: Include "hashtab.h". Update comments.
10313 (create_demangled_names_hash, symbol_set_names): New functions.
10314 (symbol_find_demangled_name): New function, broken out from
10315 symbol_init_demangled_names.
10316 (symbol_init_demangled_names): Use it.
10317 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10318 (SYMBOL_SET_NAMES): New macro.
10319 (symbol_set_names): Add prototype.
10320
10321 2003-02-03 Jim Blandy <jimb@redhat.com>
10322
10323 Use a single, consistent representation for an empty minimal
10324 symbol table in an objfile.
10325 * objfiles.c (terminate_minimal_symbol_table): New function.
10326 (allocate_objfile): Call it.
10327 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10328 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10329 non-NULL.
10330 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10331 objfile has minimal symbols, compare minimal_symbol_count to zero,
10332 instead of comparing msymbols with NULL.
10333 * objfiles.c (have_minimal_symbols): Same.
10334 * solib-sunos.c (solib_add_common_symbols): Call
10335 terminate_minimal_symbol_table.
10336 * symfile.c (reread_symbols): Same.
10337
10338 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10339
10340 * s390-tdep.c (s390_address_class_type_flags)
10341 (s390_address_class_type_flags_to_name)
10342 (s390_address_class_name_to_type_flags): New functions.
10343 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10344 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10345
10346 2003-02-03 Michael Snyder <msnyder@redhat.com>
10347
10348 * arm-tdep.c: Fix spell-o in comment.
10349
10350 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10351
10352 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10353 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10354 error messages to contain BFD filename.
10355
10356 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10357
10358 Fix PR gdb/742 gdb/743 gdb/877
10359 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10360 (do_mixed_source_and_assembly): Use
10361 make_cleanup_ui_out_tuple_begin_end and
10362 make_cleanup_ui_out_tuple_begin_end.
10363 (do_mixed_source_and_assembly): Ditto.
10364 * thread.c (do_captured_list_thread_ids): Ditto.
10365 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10366 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10367 ui_out_tuple_end): Delete prototypes.
10368 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10369 ui_out_list_end, ui_out_tuple_end): Delete.
10370
10371 From Kevin Buettner <kevinb@redhat.com>:
10372 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10373 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10374 (do_cleanup_table_end): New functions.
10375 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10376 Use cleanups to invoke_ui_out_tuple_end().
10377 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10378 * cli/cli-setshow.c (cmd_show_list): Use
10379 make_cleanup_ui_out_tuple_begin_end.
10380
10381 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10382
10383 * frame.c (frame_unwind_register): New function.
10384 (frame_unwind_unsigned_register): Use.
10385 (frame_unwind_signed_register): Use.
10386 (frame_read_register): New function.
10387 * frame.h (frame_unwind_register): Declare.
10388 (frame_read_register): Declare.
10389
10390 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10391 and frame_unwind_register instead of read_memory, write_register
10392 and deprecated_write_register_bytes.
10393
10394 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10395
10396 * frame.h: Note that namelen can be negative.
10397 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10398 NAME's length.
10399
10400 * NEWS: Mention that the d10v's `regs' command is deprecated.
10401 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10402 (d10v_print_registers_info): New function.
10403 (show_regs): Call d10v_print_registers_info.
10404 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10405
10406 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10407
10408 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10409 lost in the previous patch.
10410
10411 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10412
10413 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10414 * stack.c (print_frame_info_base): Output complete FRAME tuple
10415 for synthesized frames.
10416
10417 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10418
10419 * mips-nat.c (zerobuf): Delete.
10420 (fetch_inferior_registers): Alloc local zerobuf.
10421 (fetch_core_registers): Alloc local zerobuf.
10422 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10423 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10424 * thread-db.c (thread_db_store_registers): Ditto.
10425 * sh-tdep.c (sh_do_register): Ditto.
10426 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10427 * remote-sim.c (gdbsim_store_register): Ditto.
10428 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10429 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10430 * monitor.c (monitor_supply_register): Ditto.
10431 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10432 * mips-nat.c (fetch_inferior_registers): Ditto.
10433 * m68klinux-nat.c (fetch_register): Ditto.
10434 * lynx-nat.c (fetch_inferior_registers): Ditto.
10435 (fetch_inferior_registers): Ditto.
10436 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10437 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10438 (hpux_thread_store_registers): Ditto.
10439 * hppah-nat.c (fetch_register): Ditto.
10440 * hppab-nat.c (fetch_register): Ditto.
10441 * hppa-tdep.c (pa_register_look_aside): Ditto.
10442 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10443 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10444
10445 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10446
10447 * gdbarch.sh: Explictly specify all method levels. When a
10448 variable with an empty level, provide a non-multi-arch default.
10449 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10450 * gdbarch.h: Re-generate.
10451 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10452 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10453
10454 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10455
10456 * defs.h (host_pointer_to_address): Delete declaration.
10457 (address_to_host_pointer): Delete declaration.
10458 * utils.c (host_pointer_to_address): Delete function.
10459 (address_to_host_pointer): Delete function.
10460 * procfs.c (procfs_address_to_host_pointer): New function.
10461 * procfs.c (proc_set_watchpoint): Use.
10462 (procfs_can_use_hw_breakpoint): Update comments.
10463 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10464 (som_solib_add): Use.
10465 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10466 * hppa-tdep.c (unwind_command): Use.
10467
10468 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10469
10470 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10471 strlen d_name.
10472
10473 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10474 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10475 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10476 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10477 (define_symbol): Update.
10478 * symfile.c (generic_load): Remove references to nindy.
10479 * symtab.c: Remove references to nindy.
10480
10481 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10482
10483 * infcmd.c (print_float_info): Delete code conditional on
10484 FLOAT_INFO.
10485 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10486 * config/m68k/nm-apollo68b.h: Ditto.
10487 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10488 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10489 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10490
10491 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10492
10493 * config/i386/tm-i386os9k.h: Removed.
10494
10495 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10496 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10497 they're identical to i[3456]86-*-sysv* now.
10498 * config/i386/i386v32.mh: Removed.
10499 * config/i386/xm-i386v32.h: Removed.
10500 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10501
10502 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10503
10504 * config/i386/i386dgux.mh: Removed.
10505 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10506
10507 * configure.in: Fix typo.
10508 * configure: Regenerated.
10509
10510 2003-01-31 David Carlton <carlton@math.stanford.edu>
10511
10512 * dwarf2read.c (dwarf2_locate_sections): Set
10513 dwarf_ranges_section.
10514
10515 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10516
10517 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10518 * utils.c: Update comments documenting legitimate uses of PTR.
10519
10520 * utils.c: Re-indent.
10521
10522 * config/djgpp/fnchange.lst: Delete nindy files.
10523 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10524 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10525 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10526 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10527 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10528 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10529 * Makefile.in (init.c): Remove nindy references.
10530 (saber_gdb): Delete rule.
10531 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10532 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10533 and a68v-nat.c.
10534 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10535 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10536 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10537 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10538 nindy-share/stop.h.
10539 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10540 * saber.suppress: Delete file.
10541
10542 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10543
10544 * dbxread.c (stabs_data): New static variable.
10545 (fill_symbuf): Support an in-memory buffer for stabs data.
10546 (stabs_seek): New function.
10547 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10548 (read_ofile_symtab): Use stabs_seek.
10549 (elfstab_build_psymtabs): Take an asection* instead of
10550 an offset and size. Relocate the stabs data if necessary.
10551 Save the section* for dbx_psymtab_to_symtab.
10552 * dwarf2read.c: Add section variables for each debug section.
10553 (dwarf2_locate_sections): Fill them in.
10554 (dwarf2_read_section): Take an asection* argument.
10555 Relocate the section contents if necessary.
10556 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10557 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10558 it to dwarf2_read_section.
10559 (dwarf2_build_frame_info): Update callers.
10560 * elfread.c (elf_symfile_read): Update call to
10561 elfstab_build_psymtabs.
10562 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10563 (DBX_STAB_SECTION): New macro.
10564 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10565 * symfile.c (symfile_dummy_outputs): New function.
10566 (symfile_relocate_debug_section): New function.
10567 * symfile.h (symfile_relocate_debug_section): Add prototype.
10568
10569 2003-01-31 Richard Henderson <rth@redhat.com>
10570
10571 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10572 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10573 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10574 * alpha-tdep.c (alpha_register_name): Add "unique".
10575 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10576 (ALPHA_UNIQUE_REGNUM): New.
10577 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10578
10579 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10580
10581 * README: Remove reference to Ericsson 1800 monitor.
10582 * Makefile.in (remote-es.o): Delete rule.
10583 (ALLDEPFILES): Delete remote-es.c.
10584 * remote-es.c: Delete file.
10585 * config/m68k/es1800.mt: Delete file.
10586 * config/djgpp/fnchange.lst: Update.
10587 * configure.tgt: Delete m68*-ericsson-* target.
10588
10589 2003-01-31 Adam Fedor <fedor@gnu.org>
10590
10591 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10592 Remove duplicate/shadowing variable of same name.
10593
10594 2003-01-30 Jim Blandy <jimb@redhat.com>
10595
10596 * symfile.c (find_separate_debug_file): Assert that the objfile's
10597 directory name we compute ends with a slash, and then assume that
10598 that's so everywhere we use it.
10599
10600 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10601
10602 * valops.c (value_assign): Flush frame cache after stores to memory
10603 also.
10604
10605 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10606
10607 * Makefile.in (mon960-rom.o): Delete rule.
10608 * mon960-rom.c: Delete file.
10609
10610 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10611
10612 * d10v-tdep.c: Include "frame-unwind.h".
10613 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10614 list.
10615 (next_addr, uses_frame): Delete.
10616 (struct d10v_unwind_cache): Define.
10617 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10618 Use info instead of next_addr and uses_frame globals.
10619 (d10v_frame_init_saved_regs): Delete function.
10620 (d10v_init_extra_frame_info): Delete function.
10621 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10622 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10623 init_frame_pc or frame_saved_pc.
10624 (d10v_pop_frame): Delete function.
10625 (do_d10v_pop_frame): Delete function.
10626 (d10v_frame_chain): Delete function.
10627 (d10v_frame_chain_valid): Delete function.
10628 (d10v_frame_pc_unwind): New function.
10629 (d10v_frame_id_unwind): New function.
10630 (saved_regs_unwinder): New function.
10631 (d10v_frame_register_unwind): New function.
10632 (d10v_frame_pop): New function.
10633 (d10v_frame_unwind): New variable.
10634 (d10v_frame_p): New function.
10635 (d10v_frame_saved_pc): Delete function.
10636 * Makefile.in (d10v-tdep.o): Update dependencies.
10637
10638 2003-01-30 J. Brobecker <brobecker@gnat.com>
10639
10640 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10641 causing some regressions due to a change in the default value
10642 for this macro.
10643
10644 2003-01-29 Richard Henderson <rth@redhat.com>
10645 Elena Zannoni <ezannoni@redhat.com>
10646 Daniel Jacobowitz <drow@mvista.com>
10647
10648 Fix PR gdb/961.
10649 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10650 variables.
10651 (RANGES_SECTION): New.
10652 (dwarf_ranges_buffer): New variable.
10653 (struct comp_unit_head): Add member "die".
10654 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10655 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10656 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10657 (dwarf2_locate_sections): Likewise.
10658 (dwarf2_build_psymtabs): Read .debug_ranges.
10659 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10660 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10661 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10662 Look for DW_AT_ranges and return the bounding box.
10663
10664 2003-01-29 Brian Ford <ford@vss.fsi.com>
10665
10666 * win32-nat.c (cygwin_pid): Removed as unused.
10667 (child_attach): Try fall back to Cygwin pid.
10668
10669 2003-01-29 Jim Blandy <jimb@redhat.com>
10670
10671 * objfiles.h (struct objfile): Doc fix.
10672
10673 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10674
10675 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10676 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10677 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10678 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10679 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10680 (FRAME_SAVED_PC): Change to a function with predicate.
10681 * gdbarch.h, gdbarch.c: Re-generate.
10682
10683 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10684
10685 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10686
10687 * complaints.c (complain): Delete function.
10688 * complaints.h (struct deprecated_complaint): Delete definition.
10689 (complain): Delete declaration.
10690
10691 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10692
10693 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10694 dummy frames.
10695
10696 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10697
10698 * sentinel-frame.h, sentinel-frame.c: New files.
10699 * Makefile.in (frame.o): Update dependencies.
10700 (SFILES): Add sentinel-frame.c.
10701 (sentinel_frame_h): Define.
10702 (COMMON_OBS): Add sentinel-frame.o.
10703 (sentinel-frame.o): Specify dependencies.
10704 * frame.c: Include "sentinel-frame.h".
10705 (frame_register_unwind): Rewrite assuming that there is always a a
10706 ->next frame.
10707 (frame_register, generic_unwind_get_saved_register): Ditto.
10708 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10709 (create_sentinel_frame, unwind_to_current_frame): New functions.
10710 (get_current_frame): Rewrite using create_sentinel_frame and
10711 unwind_to_current_frame. When possible, always create a frame.
10712 (create_new_frame): Set next to the sentinel frame.
10713 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10714 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10715 ID cache when necessary.
10716 (frame_saved_regs_id_unwind): Use frame_relative_level.
10717 (deprecated_generic_get_saved_register): Use frame_relative_level,
10718 get_frame_saved_regs, get_frame_pc, get_frame_base and
10719 get_next_frame.
10720 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10721 frame_register.
10722
10723 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10724
10725 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10726
10727 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10730 (maintenance_set_profile_cmd): Use error () instead of warning ().
10731
10732 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10733
10734 * configure.in: Check that -pg works if using --enable-profiling.
10735 Check for monstartup and _mcleanup regardless of --enable-profiling.
10736 * maint.c: Check for monstartup and _mcleanup before using them.
10737 * config.in: Regenerated.
10738 * configure: Regenerated.
10739
10740 2003-01-24 Nick Clifton <nickc@redhat.com>
10741
10742 * Add sh2e support:
10743
10744 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10745
10746 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10747 (sh2e_show_regs): New.
10748 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10749 * config/sh/tm-sh.h: Added sh2e to comments.
10750
10751 2003-01-23 Jim Blandy <jimb@redhat.com>
10752
10753 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10754 symbols found)" message here; we haven't checked for a separate
10755 debug info file yet, so we don't know yet.
10756 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10757 we've looked everywhere. Also, there's no need to print a special
10758 message when we're loading the separate debug info file: the one
10759 symbol_file_add prints is fine.
10760
10761 2003-01-23 Alexander Larsson <alexl@redhat.com>
10762 Jim Blandy <jimb@redhat.com>
10763
10764 Add support for executables whose debug info has been separated
10765 out into a separate file, leaving only a link behind.
10766 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10767 and separate_debug_objfile_backlink.
10768 (put_objfile_before): New declaration.
10769 * symfile.c: #include "filenames.h".
10770 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10771 debug info in a separate file, read that, too. Save the addrs
10772 argument, so we can use it again to read the separated debug info;
10773 syms_from_objfile modifies the table we pass it.
10774 (reread_symbols): After re-reading an objfile, call
10775 reread_separate_symbols to refresh its separate debug info
10776 objfile, if it has one.
10777 (reread_separate_symbols, find_separate_debug_file,
10778 get_debug_link_info, separate_debug_file_exists): New functions.
10779 (debug_file_directory): New global var.
10780 (_initialize_symfile): Initialize debug_file_directory, and
10781 provide the new `set debug-file-directory' command to let the user
10782 change it.
10783 * objfiles.c (free_objfile): If this objfile has its debug info in
10784 a separate objfile, free that one too. If this is itself a
10785 separate debug info objfile, clear our parent's backlink.
10786 (put_objfile_before): New function.
10787 * utils.c (gnu_debuglink_crc32): New function.
10788 * defs.h (gnu_debuglink_crc32): New declaration.
10789 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10790 * configure.in: Handle --with-separate-debug-dir config option.
10791 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10792 * acconfig.h (DEBUGDIR): New macro.
10793 * configure, aclocal.m4, config.in: Regenerated.
10794
10795 2003-01-22 Jim Blandy <jimb@redhat.com>
10796
10797 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10798 like the old symbol_file_add, but taking new arguments: you can
10799 now pass in either a `struct section_addr_info' list to say where
10800 each section is loaded, or a `struct section_offsets' table. Pass
10801 these new arguments through to syms_from_objfile as appropriate.
10802 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10803 with the appropriate quiescent values for the new arguments.
10804
10805 * symfile.c: #include "gdb_assert.h".
10806 (syms_from_objfile): Add the ability to pass in a section offset
10807 table directly, as an alternative to the section_addr_info table.
10808 Document arguments better.
10809 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10810 * symfile.h (syms_from_objfile): Update declaration.
10811 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10812 syms_from_objfile.
10813 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10814
10815 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10816
10817 Original patch by Tom Tromey <tromey@cygnus.com> and
10818 Jason Molenda <jmolenda@apple.com>.
10819 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10820 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10821 * NEWS: Mention profiling.
10822 * configure.in (--enable-gdbtk): Fix typo.
10823 (--enable-profiling): New. Set PROFILE_CFLAGS.
10824 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10825 Fill in function.
10826 (profiling_state): New variable.
10827 (mcleanup_wrapper): New function.
10828 (_initialize_maint): Remove NOTYET, fix call to
10829 add_setshow_boolean_cmd for "maint set profile".
10830 * configure: Regenerated.
10831
10832 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10833
10834 * Makefile.in (install-gdbtk): Install PNG images too.
10835
10836 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10837
10838 * exec.c (text_start): Delete global variable.
10839 (exec_file_attach): Make text_start local to the function.
10840 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10841 * valops.c (hand_function_call): Delete code that handles
10842 BEFORE_TEXT_END and AFTER_TEXT_END.
10843 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10844 of CALL_DUMMY_LOCATION.
10845 * gdbarch.c: Regenerate.
10846 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10847 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10848 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10849 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10850 (text_end): Delete extern declaration.
10851
10852 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10853
10854 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10855 * blockframe.c (backtrace_below_main): Move to "frame.c".
10856 (frame_chain_valid): Delete check for backtrace_below_main.
10857 (_initialize_blockframe): Delete initialization, move ``set
10858 backtrace-below-main'' command to "frame.c".
10859 (do_flush_frames_sfunc): Delete function.
10860 * frame.c: Include "command.h" and "gdbcmd.h".
10861 (frame_type_from_pc): New function.
10862 (create_new_frame): Use frame_type_from_pc.
10863 (legacy_get_prev_frame): New function.
10864 (get_prev_frame): Rewrite. When an old style frame, call
10865 legacy_get_prev_frame. Otherwize, unwind the PC first.
10866 (_initialize_frame): Add ``set backtrace-below-main'' command.
10867 * Makefile.in (frame.o): Update dependencies.
10868
10869 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10870
10871 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10872 DEPRECATED_REGISTERS_INFO.
10873
10874 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10875
10876 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10877 Maintainers'. Update `Various Maintainers'.
10878
10879 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10880
10881 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10882 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10883 Suppress actual parameters when `-'.
10884 * gdbarch.h, gdbarch.c: Regenerate.
10885
10886 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10887
10888 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10889 code handling dummy frames.
10890
10891 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10892
10893 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10894 (struct frame_unwind): Add field pop.
10895 * frame.h (frame_pop): Declare.
10896 * frame.c (frame_saved_regs_pop): New function.
10897 (trad_frame_unwinder): Add frame_saved_regs_pop.
10898 (frame_pop): New function.
10899 * dummy-frame.c (dummy_frame_pop): New function.
10900 (discard_innermost_dummy): New function.
10901 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10902 (dummy_frame_unwind): Add dummy_frame_pop.
10903 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10904 * valops.c (hand_function_call): Ditto.
10905 * stack.c (return_command): Ditto.
10906
10907 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10908
10909 * cris-tdep.c: Fix function declaration indentation.
10910 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10911 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10912 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10913 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10914 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10915 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10916
10917 2003-01-18 Michael Chastain <mec@shout.net>
10918
10919 * README (Unpacking and Installation -- quick overview):
10920 Warn against ".../gdb-5.3/gdb/configure".
10921
10922 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10923
10924 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10925 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10926 (struct frame_unwind): Declare opaque.
10927 (dummy_frame_p): Declare function.
10928 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10929 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10930 * dummy-frame.c: Include "frame-unwind.h".
10931 (dummy_frame_p): New function.
10932 (dummy_frame_unwind): New variable.
10933 * frame.c: Include "frame-unwind.h".
10934 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10935 to use the new unwind field.
10936 (set_unwind_by_pc): Delete function.
10937 (create_new_frame, get_prev_frame): Set unwind field using
10938 frame_unwind_find_by_pc.
10939 (trad_frame_unwind, trad_frame_unwinder): New variables.
10940 * frame.h (trad_frame_unwind): Declare variable.
10941 (frame_id_unwind_ftype): Delete declaration.
10942 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10943 (struct frame_unwind): Declare opaque.
10944 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10945 register_unwind with a single unwind pointer.
10946 * frame-unwind.h, frame-unwind.c: New files.
10947 * Makefile.in (SFILES): Add frame-unwind.c.
10948 (frame_unwind_h): Define.
10949 (COMMON_OBS): Add frame-unwind.o.
10950 (frame-unwind.o): Specify dependencies.
10951 (frame.o, dummy-frame.o): Update dependencies.
10952
10953 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10954
10955 * ada-valprint.c: Eliminate PTR.
10956 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10957 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10958 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10959 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10960 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10961 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10962 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10963
10964 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10965
10966 * main.c (captured_main): Don't use PTR.
10967 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10968 * gdbtypes.c (lookup_primitive_typename): Ditto.
10969 (lookup_struct_elt_type): Ditto.
10970 * f-valprint.c (info_common_command): Ditto.
10971 (list_all_visible_commons): Ditto.
10972 * jv-typeprint.c (java_type_print_base): Ditto.
10973
10974 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10975 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10976 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10977 i386-interix-nat.c and i386-interix-tdep.c. Rename
10978 m68klinux-nat.c and m68klinux-tdep.c. Rename
10979 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10980 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10981 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10982 * main.c (captured_main): Use xfree, not free.
10983
10984 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10985
10986 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10987 ID back using a parameter.
10988 * frame.c (frame_id_unwind): Update call.
10989 (frame_saved_regs_id_unwind): Update.
10990 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10991 * dummy-frame.h (struct frame_id): Add opaque declaration.
10992 (dummy_frame_id_unwind): Update declaration.
10993
10994 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10995
10996 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10997
10998 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10999
11000 * MAINTAINERS (Stephen P. Smith): Updated email address.
11001
11002 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11003
11004 Fix PR gdb/898
11005 * breakpoint.c (until_break_command): Add new argument. Use it to
11006 decide whether to stop only at the current frame or not.
11007 * breakpoint.h (until_break_command): Update prototype.
11008 * infcmd.c (until_command): Add new argument to until_break_command
11009 call.
11010 (advance_command): New function.
11011 (_initialize_infcmd): Update help string for 'until' command.
11012 Add new 'advance' command.
11013
11014 2003-01-14 David Carlton <carlton@math.stanford.edu>
11015
11016 * linespec.c (decode_line_1): Normalize comments.
11017 (set_flags): Ditto.
11018 (locate_first_half): Ditto.
11019 (decode_compound): Ditto.
11020 (symtab_from_filename): Ditto.
11021 (decode_all_digits): Ditto.
11022 (decode_dollar): Ditto.
11023 (find_methods): Ditto.
11024 (find_toplevel_char): Ditto.
11025
11026 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11027
11028 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11029 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11030 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11031 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11032 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11033 * language.c, language.h, m32r-tdep.c: Update copyright.
11034 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11035 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11036 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11037 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11038 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11039 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11040
11041 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11042
11043 * stabsread.h (process_later, resolve_cfront_continuation):
11044 Obsolete.
11045 Update copyright years.
11046 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11047 Update copyright year.
11048 * dbxread.c(struct cont_elem): Obsolete.
11049 (process_later, process_now): Obsolete functions.
11050 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11051 Update copyright year.
11052 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11053 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11054 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11055 (parse_partial_symbols): Obsolete cfront support.
11056 * stabsread.c
11057 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11058 macros.
11059 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11060 read_cfront_baseclasses, read_cfront_member_functions,
11061 resolve_cfront_continuation,read_cfront_static_fields,
11062 copy_cfront_struct_fields): Obsolete functions.
11063 (define_symbol, read_one_struct_field): Obsolete cfront support.
11064 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11065 Update Copyright year.
11066
11067 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11068
11069 * stack.c (print_frame_info, print_stack_frame_base_stub,
11070 print_stack_frame_base, show_and_print_stack_frame_stub,
11071 show_and_print_stack_frame, print_only_stack_frame_stub,
11072 print_only_stack_frame): Delete functions.
11073 (print_stack_frame_stub): Call print_frame_info instead of
11074 print_frame_info_base.
11075 (print_frame_info_base): Rename to print_frame_info.
11076 (backtrace_command_1): Call print_frame_info, instead of
11077 print_frame_info_base.
11078 (current_frame_command): Call print_stack_frame, instead of
11079 print_only_stack_frame.
11080 (frame_command): Call print_stack_frame, instead of
11081 show_and_print_stack_frame.
11082 (up_command): Ditto.
11083 (down_command): Ditto.
11084 * frame.h (print_only_stack_frame): Delete prototype.
11085 * infrun.c (normal_stop): Call print_stack_frame, instead of
11086 show_and_print_stack_frame.
11087 * thread.c (info_threads_command): Call print_stack_frame, instead
11088 of print_only_stack_frame.
11089
11090 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11091
11092 * README (Graphical interface to GDB): Update URL. Point at
11093 gdb/links/.
11094
11095 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11096 version match.
11097
11098 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11099
11100 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11101 lines.
11102
11103 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11104
11105 * thread-db.c (attach_thread): Prototype.
11106 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11107 thread information (ti), and valid flags (th_valid, ti_valid).
11108 (attach_thread): Move target_pid_to_str call to after the thread
11109 is added to GDB's list. Initialize the cache.
11110 (thread_get_info_callback, thread_db_map_id2thr)
11111 (thread_db_get_info): New functions.
11112 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11113 (thread_db_store_registers, thread_db_thread_alive)
11114 (thread_db_get_thread_local_address): Use them.
11115 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11116 of calling error() for threads in unknown state.
11117
11118 (clear_lwpid_callback): New function.
11119 (thread_db_resume): Use it to clear the cache.
11120
11121 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11122
11123 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11124 (resume_callback): Remove dead code.
11125
11126 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11127
11128 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11129 predicate.
11130 * gdbarch.h, gdbarch.c: Regenerate.
11131 * stack.c (frame_info): Only initialize the saved registers when
11132 FRAME_INIT_SAVED_REGS_P.
11133 * frame.c (frame_saved_regs_register_unwind): Assert
11134 FRAME_INIT_SAVED_REGS_P.
11135 (deprecated_generic_get_saved_register): Ditto.
11136
11137 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11138
11139 * source.c (openp): Squelch warning about "filename".
11140
11141 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11142
11143 * source.c (openp): If the file does not exist don't necessarily
11144 search the path.
11145
11146 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11147
11148 Fix PR gdb/872.
11149 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11150 (integer_types_same_name_p): New function.
11151 (rank_one_type): Use it.
11152 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11153
11154 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11155
11156 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11157 variables.
11158 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11159 * configure.in: Add --with-sysroot.
11160 * configure: Regenerated.
11161 * main.c (gdb_sysroot): New variable.
11162 (captured_main): Initialize gdb_sysroot.
11163 * defs.h (gdb_sysroot): New extern declaration.
11164 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11165
11166 2003-01-12 Michael Chastain <mec@shout.net>
11167
11168 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11169
11170 2003-01-12 Michael Chastain <mec@shout.net>
11171
11172 * top.c (print_gdb_version): Bump copyright year to 2003.
11173
11174 2003-01-12 David Carlton <carlton@bactrian.org>
11175
11176 * linespec.c (symtab_from_filename): Rename variable 's' to
11177 'file_symtab'.
11178
11179 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11180
11181 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11182 dummy frame.
11183 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11184
11185 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11186
11187 * d10v-tdep.c: Include "gdb_assert.h".
11188 (d10v_store_return_value): Rewrite to match current interface.
11189 (d10v_extract_struct_value_address): Ditto.
11190 (d10v_extract_return_value): Ditto.
11191 (d10v_gdbarch_init): Set store_restore_value,
11192 extract_struct_value_address and extract_return_value.
11193
11194 2003-01-12 J. Brobecker <brobecker@gnat.com>
11195
11196 * hpread.c (set_namestring): New procedure replacing the
11197 SET_NAMESTRING macro.
11198 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11199 by calls to set_namestring.
11200
11201 2003-01-11 J. Brobecker <brobecker@gnat.com>
11202
11203 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11204 a compilation warning.
11205 (hpread_process_one_debug_symbol): Likewise.
11206
11207 2003-01-10 David Carlton <carlton@math.stanford.edu>
11208
11209 * linespec.c (decode_line_1): Rename variable 's' to
11210 'file_symtab'.
11211 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11212 (decode_dollar): Ditto.
11213 (decode_variable): Ditto.
11214 (symbol_found): Ditto.
11215
11216 2003-01-09 Michael Chastain <mec@shout.net>
11217
11218 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11219
11220 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11221
11222 * win32-nat.c (set_process_privilege): New function.
11223 (child_attach): Call set_process_privilege() to enable the
11224 SE_DEBUG_NAME user privilege if available in process token.
11225
11226 2003-01-10 J. Brobecker <brobecker@gnat.com>
11227
11228 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11229 compilation error in the previous revision.
11230
11231 2003-01-09 David Carlton <carlton@math.stanford.edu>
11232
11233 * linespec.c: Update copyright.
11234
11235 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11236
11237 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11238 than inferior_ptid.
11239 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11240
11241 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11242
11243 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11244 Update comments.
11245 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11246 (frame_saved_regs_zalloc): Update.
11247 (frame_saved_regs_register_unwind): Update.
11248 (create_new_frame): Update.
11249 (get_prev_frame): Update.
11250 (frame_extra_info_zalloc): Update.
11251 (deprecated_get_frame_saved_regs): Update.
11252 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11253 * cris-tdep.c: Update comment.
11254
11255 * somsolib.h: Fix function indentation.
11256 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11257 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11258 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11259 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11260 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11261
11262 * infrun.c (follow_fork): Use ISO C definition.
11263 * expprint.c (print_subexp): Use xfree instead of free.
11264 * charset.c: Include "gdb_string.h" instead of <string.h>.
11265 (register_iconv_charsets): Use ISO C definition.
11266 (host_charset, target_charset): Ditto.
11267 * Makefile.in (charset.o): Update dependencies.
11268 (mi-cmd-env.o): Update dependencies.
11269
11270 2003-01-08 Andrew Cagney <cagney@redhat.com>
11271
11272 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11273 get_frame_base.
11274
11275 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11276
11277 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11278 build directories. Save edited gdb output in Mbuild.log. If a
11279 build fails, remove any final GDB executable.
11280
11281 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11282
11283 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11284 replacing hex constants with function names and stripping leading
11285 file name directory prefixes.
11286
11287 2003-01-08 Andrew Cagney <cagney@redhat.com>
11288
11289 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11290 get_frame_base.
11291
11292 2003-01-08 David Carlton <carlton@math.stanford.edu>
11293
11294 * linespec.c (decode_line_1): Move code into decode_variable.
11295 (decode_variable): New function.
11296
11297 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11298
11299 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11300
11301 2003-01-08 Andrew Cagney <cagney@redhat.com>
11302
11303 * cris-tdep.c (cris_frame_init_saved_regs): Use
11304 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11305 saved_regs buffer.
11306 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11307 (sh64_nofp_frame_init_saved_regs): Ditto.
11308 (sh_fp_frame_init_saved_regs): Ditto.
11309 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11310 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11311 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11312 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11313
11314 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11315
11316 * minsyms.c (lookup_minimal_symbol): Update comment.
11317 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11318 (lookup_minimal_symbol_solib_trampoline): Likewise.
11319
11320 2003-01-08 Andrew Cagney <cagney@redhat.com>
11321
11322 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11323 frame_relative_level.
11324
11325 * alpha-tdep.c: Use get_frame_extra_info.
11326 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11327 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11328 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11329 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11330
11331 * alpha-tdep.c: Use get_next_frame.
11332 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11333 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11334 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11335 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11336 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11337 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11338 * xstormy16-tdep.c: Ditto.
11339
11340 2003-01-07 Andrew Cagney <cagney@redhat.com>
11341
11342 * alpha-tdep.c: Use get_frame_base.
11343 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11344 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11345 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11346 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11347 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11348 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11349 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11350 * config/sparc/tm-sparc.h: Ditto.
11351
11352 2003-01-07 Andrew Cagney <cagney@redhat.com>
11353
11354 * frame.c (deprecated_get_frame_context): New function.
11355 (deprecated_set_frame_context): New function.
11356 * frame.h (deprecated_get_frame_context): Declare.
11357 (deprecated_set_frame_context): Declare.
11358 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11359 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11360
11361 2003-01-07 Andrew Cagney <cagney@redhat.com>
11362
11363 * frame.c (deprecated_set_frame_next_hack): New function.
11364 (deprecated_set_frame_prev_hack): New function.
11365 * frame.h (deprecated_set_frame_next_hack): Declare.
11366 (deprecated_set_frame_prev_hack): Declare.
11367 * mcore-tdep.c (analyze_dummy_frame): Use
11368 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11369 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11370
11371 2003-01-07 David Carlton <carlton@math.stanford.edu>
11372
11373 * linespec.c (decode_line_1): Move code into decode_dollar.
11374 (decode_dollar): New function.
11375
11376 2003-01-07 Andrew Cagney <cagney@redhat.com>
11377
11378 * arm-tdep.c (arm_init_extra_frame_info): Use
11379 deprecated_update_frame_base_hack.
11380 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11381 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11382 (fix_frame_pointer): Ditto.
11383 (mn10300_analyze_prologue): Ditto.
11384
11385 2003-01-07 Andrew Cagney <cagney@redhat.com>
11386
11387 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11388 extra_info using frame_extra_info_zalloc.
11389 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11390 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11391 (sh64_init_extra_frame_info): Ditto.
11392 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11393 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11394 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11395 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11396 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11397 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11398 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11399 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11400 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11401 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11402 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11403 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11404
11405 * mn10300-tdep.c (analyze_dummy_frame): Use
11406 deprecated_set_frame_extra_info_hack.
11407 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11408
11409 2003-01-07 J. Brobecker <brobecker@gnat.com>
11410
11411 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11412 class is not scText. These do not define "real" procedures.
11413 (parse_partial_symbols): Likewise.
11414
11415 2003-01-06 Michael Snyder <msnyder@redhat.com>
11416
11417 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11418
11419 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11420
11421 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11422 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11423 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11424 deprecated_frame_xmalloc_with_cleanup.
11425 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11426 deprecated_frame_xmalloc.
11427 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11428 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11429
11430 2003-01-06 Andrew Cagney <cagney@redhat.com>
11431
11432 * x86-64-linux-tdep.c: Include "osabi.h".
11433 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11434
11435 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11436
11437 2003-01-06 Andrew Cagney <cagney@redhat.com>
11438
11439 * MAINTAINERS (Target Instruction Set Architectures): Update
11440 arm-elf. Can be built with -Werror, has been multiarched.
11441
11442 * value.h (unpack_long): Make buffer parameter constant.
11443 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11444 * scm-lang.h (scm_parse): Ditto.
11445 * defs.h (extract_typed_address, extract_address): Ditto.
11446 (extract_long_unsigned_integer): Ditto.
11447 * inferior.h (unsigned_pointer_to_address): Ditto.
11448 (signed_pointer_to_address): Ditto.
11449 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11450 * gdbarch.h, gdbarch.c: Regenerate.
11451 * findvar.c (extract_long_unsigned_integer): Update.
11452 (extract_address): Update.
11453 (extract_typed_address): Update.
11454 (unsigned_pointer_to_address): Update.
11455 * values.c (unpack_long): Update.
11456 (unpack_double): Update.
11457 (unpack_pointer): Update.
11458 (unpack_field_as_long): Update.
11459 * d10v-tdep.c (d10v_pointer_to_address): Update.
11460 * avr-tdep.c (avr_pointer_to_address): Update.
11461 * scm-lang.c (scm_unpack): Update.
11462 * findvar.c (signed_pointer_to_address): Update.
11463
11464 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11465
11466 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11467 since it is in i386-tdep.c.
11468
11469 2003-01-06 J. Brobecker <brobecker@gnat.com>
11470
11471 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11472 failure introduced in the previous change.
11473
11474 2003-01-05 Michael Chastain <mec@shout.net>
11475
11476 * README: Remove references to deleted remote-*.c files:
11477 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11478 remote-nrom.c, remote-os9k.c, remote-udi.c.
11479
11480 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11481
11482 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11483 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11484 i386_get_longjmp_target.
11485
11486 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11487
11488 * arm-tdep.c (prologue_cache): Change to a pointer.
11489 (_initialize_arm_tdep): Allocate prologue_cache.
11490 (check_prologue_cache): Update.
11491 (save_prologue_cache): Update.
11492 (arm_gdbarch_init): Update.
11493
11494 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11495
11496 * stabsread.c (update_method_name_from_physname): Call complaint()
11497 instead of error.
11498
11499 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11500
11501 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11502 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11503 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11504
11505 * blockframe.c: Include "gdbcmd.h" and "command.h".
11506 (backtrace_below_main): New variable.
11507 (file_frame_chain_valid, func_frame_chain_valid)
11508 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11509 (generic_func_frame_chain_valid): Remove functions.
11510 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11511 (_initialize_blockframe): New function.
11512 * Makefile.in (blockframe.o): Update dependencies.
11513 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11514 comment. Call frame_chain_valid ().
11515 * frame.h: Remove old prototypes. Add prototype for
11516 frame_chain_valid and update comments to match.
11517 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11518 Remove old comment.
11519 * gdbarch.h: Regenerated.
11520 * gdbarch.c: Regenerated.
11521
11522 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11523 set_gdbarch_frame_chain_valid.
11524 * avr-tdep.c (avr_gdbarch_init): Likewise.
11525 * cris-tdep.c (cris_gdbarch_init): Likewise.
11526 * frv-tdep.c (frv_gdbarch_init): Likewise.
11527 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11528 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11529 (i386_nw_init_abi): Likewise.
11530 (i386_gdbarch_init): Likewise.
11531 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11533 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11534 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11535 * mips-tdep.c (mips_gdbarch_init): Likewise.
11536 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11537 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11538 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11539 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11540 * s390-tdep.c (s390_gdbarch_init): Likewise.
11541 * sh-tdep.c (sh_gdbarch_init): Likewise.
11542 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11543 * v850-tdep.c (v850_gdbarch_init): Likewise.
11544 * vax-tdep.c (vax_gdbarch_init): Likewise.
11545 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11546
11547 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11548 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11549 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11550 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11551 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11552 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11553 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11554 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11555
11556 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11557
11558 * Makefile.in (acconfig_h): Remove incorrect macro.
11559 (config_h): Define.
11560 (osabi.o): Update dependencies.
11561 * configure.tgt: Set gdb_osabi based on target triplet.
11562 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11563 * configure: Regenerated.
11564 * config.in: Regenerated.
11565 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11566 (GDB_OSABI_DEFAULT): Define if not already defined.
11567 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11568 (set_osabi_string): New variables.
11569 (gdbarch_register_osabi): Add new OS ABI to
11570 gdb_osabi_available_names.
11571 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11572 (set_osabi, show_osabi): New functions.
11573 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11574
11575 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11576
11577 * arch-utils.c (gdbarch_info_init): Set osabi to
11578 GDB_OSABI_UNINITIALIZED.
11579 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11580 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11581 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11582 * gdbarch.c: Regenerated.
11583 * gdbarch.h: Regenerated.
11584 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11585 there's no BFD.
11586 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11587 * osabi.h (enum gdb_osabi): Move to defs.h.
11588 (gdbarch_init_osabi): Update prototype.
11589 * defs.h (enum gdb_osabi): Moved here.
11590 * Makefile.in: Update dependencies.
11591
11592 * alpha-tdep.h: Don't include "osabi.h".
11593 (struct gdbarch_tdep): Remove osabi member.
11594 * alpha-tdep.c: Include "osabi.h".
11595 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11596 iterate over arches. Update call to gdbarch_init_osabi.
11597 (alpha_dump_tdep): Don't dump osabi.
11598 * alpha-linux-tdep.c: Include "osabi.h".
11599 * alpha-osf1-tdep.c: Include "osabi.h".
11600 * alphafbsd-tdep.c: Include "osabi.h".
11601 * alphanbsd-tdep.c: Include "osabi.h".
11602
11603 * arm-tdep.h: Don't include "osabi.h".
11604 (struct gdbarch_tdep): Remove osabi member.
11605 * arm-tdep.c: Include "osabi.h".
11606 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11607 iterate over arches. Update call to gdbarch_init_osabi.
11608 (arm_dump_tdep): Don't dump osabi.
11609 * arm-linux-tdep.c: Include "osabi.h".
11610 * armnbsd-tdep.c: Include "osabi.h".
11611
11612 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11613 Update call to gdbarch_init_osabi.
11614
11615 * i386-tdep.h: Don't include "osabi.h".
11616 (struct gdbarch_tdep): Remove osabi member.
11617 * i386-tdep.c: Include "osabi.h".
11618 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11619 iterate over arches. Update call to gdbarch_init_osabi.
11620 (i386_dump_tdep): Don't dump osabi.
11621 * i386-linux-tdep.c: Include "osabi.h".
11622 * i386-sol2-tdep.c: Include "osabi.h".
11623 * i386bsd-tdep.c: Include "osabi.h".
11624 * i386gnu-tdep.c: Include "osabi.h".
11625 * i386ly-tdep.c: Include "osabi.h".
11626 * i386nbsd-tdep.c: Include "osabi.h".
11627 * i386obsd-tdep.c: Include "osabi.h".
11628
11629 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11630 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11631 check osabi when iterating over arches. Update call to
11632 gdbarch_init_osabi.
11633 (mips_dump_tdep): Don't dump osabi.
11634
11635 * ns32k-tdep.h: Don't include "osabi.h".
11636 (struct gdbarch_tdep): Remove.
11637 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11638 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11639 allocate tdep. Update call to gdbarch_init_osabi.
11640 (ns32k_dump_tdep): Remove.
11641 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11642 * ns32knbsd-tdep.c: Include "osabi.h".
11643
11644 * ppc-tdep.h: Don't include "osabi.h".
11645 (struct gdbarch_tdep): Remove osabi member.
11646 * rs6000-tdep.c: Include "osabi.h".
11647 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11648 osabi when iterating over arches. Update call to
11649 gdbarch_init_osabi.
11650 (rs6000_dump_tdep): Don't dump osabi.
11651 * ppc-linux-tdep.c: Include "osabi.h".
11652 * ppcnbsd-tdep.c: Include "osabi.h".
11653
11654 * sh-tdep.h: Don't include "osabi.h".
11655 (struct gdbarch_tdep): Remove osabi member.
11656 * sh-tdep.c: Include "osabi.h".
11657 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11658 iterate over arches. Update call to gdbarch_init_osabi.
11659 (sh_dump_tdep): Don't dump osabi.
11660 * shnbsd-tdep.c: Include "osabi.h".
11661
11662 * sparc-tdep.c: Include "osabi.h".
11663 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11664 iterate over arches. Update call to gdbarch_init_osabi.
11665 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11666 tdep structure.
11667
11668 * vax-tdep.h: Don't include "osabi.h".
11669 (struct gdbarch_tdep): Remove.
11670 * vax-tdep.c: Include "osabi.h".
11671 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11672 iterate over arches. Don't allocate tdep. Update call
11673 to gdbarch_init_osabi.
11674 (vax_dump_tdep): Remove.
11675 (_initialize_vax_tdep): Update call to gdbarch_register.
11676
11677 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11678
11679 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11680 entirely.
11681 (breakpoint_re_set_one): Don't fetch the value for a disabled
11682 watchpoint.
11683
11684 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11685
11686 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11687 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11688 (COERCE_FLOAT_TO_DOUBLE): Remove.
11689 * gdbarch.c: Regenerate.
11690 * gdbarch.h: Regenerate.
11691 * Makefile.in: Remove value_h from gdbarch_h.
11692 * valops.c (coerce_float_to_double): New variable.
11693 (default_coerce_float_to_double): Remove.
11694 (standard_coerce_float_to_double): Remove.
11695 (value_arg_coerce): Use coerce_float_to_double.
11696 (_initialize_valops): Add "set coerce-float-to-double".
11697 * value.h (default_coerce_float_to_double): Remove prototype.
11698 (standard_coerce_float_to_double): Remove prototype.
11699
11700 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11701 prototyped.
11702 * mdebugread.c (parse_symbol): Likewise.
11703 * stabsread.c (define_symbol): Mark all functions as prototyped.
11704
11705 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11706 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11707 set_gdbarch_coerce_float_to_double.
11708 * arm-tdep.c (arm_gdbarch_init): Likewise.
11709 * frv-tdep.c (frv_gdbarch_init): Likewise.
11710 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11711 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11712 * mips-tdep.c (mips_gdbarch_init): Likewise.
11713 (mips_coerce_float_to_double): Remove.
11714 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11715 (rs6000_coerce_float_to_double): Remove.
11716 * s390-tdep.c (s390_gdbarch_init): Likewise.
11717 * sh-tdep.c (sh_gdbarch_init): Likewise.
11718 (sh_coerce_float_to_double): Remove.
11719 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11720 (sparc_coerce_float_to_double): Remove.
11721 * v850-tdep.c (v850_gdbarch_init): Likewise.
11722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11723 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11724 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11725 (hppa_coerce_float_to_double): Remove prototype.
11726 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11727
11728 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11729
11730 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11731
11732 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11733
11734 Suggested by Stewart Brown <sb24@avaya.com>:
11735 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11736 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11737 (c_type_print_varspec_suffix): Likewise.
11738
11739 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11740
11741 * configure.in: Don't set and AC_SUBST SUBDIRS.
11742 * configure: Regenerated.
11743
11744 * configure.in: Remove code dealing with shared libraries.
11745 * Makefile.in: Remove HLDFLAGS and HLDENV.
11746 * configure: Regenerated.
11747
11748 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11749
11750 * frame.c (deprecated_frame_xmalloc): New function.
11751 (deprecated_set_frame_saved_regs_hack): New function.
11752 (deprecated_set_frame_extra_info_hack): New function.
11753 * frame.h (deprecated_frame_xmalloc): Declare.
11754 (deprecated_set_frame_saved_regs_hack): Declare.
11755 (deprecated_set_frame_extra_info_hack): Declare.
11756
11757 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11758
11759 * configure.in: Move code that provides the --enable-gdbtk option
11760 right after the code that handles the --enable-tui option, and
11761 polish it somewhat.
11762 * configure: Regenerated.
11763
11764 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11765 AC_CHECK_FUNCS and remove the old check for pread64.
11766 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11767 * acconfig.h (_GNU_SOURCE): Add.
11768 (HAVE_PREAD64): Remove.
11769 * configure, aclocal.m4, config.in: Regenerated.
11770
11771 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11772
11773 * alpha-tdep.c: Use get_frame_saved_regs.
11774 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11775 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11776 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11777 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11778 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11779
11780 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11781
11782 * configure.in: Remove all use of the SUBDIRS variable; add
11783 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11784 code providing the --enable-multi-ice option, and move it right in
11785 front of the code that checks whether gdbserver is supported.
11786 Polish that too.
11787 * configure: Regenerated.
11788 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11789 @SUBDIRS@.
11790
11791 2003-01-03 Andrew Cagney <cagney@redhat.com>
11792
11793 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11794 * avr-tdep.c, cris-tdep.c: Ditto.
11795 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11796 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11797
11798 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11799
11800 * configure.in: Remove --enable-netrom option.
11801 * configure: Regenerated.
11802
11803 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11804
11805 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11806 declaration for `struct re_pattern_buffer' instead.
11807 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11808
11809 2003-01-03 J. Brobecker <brobecker@gnat.com>
11810
11811 * mdebugread.c (parse_symbol): Count until the stEnd matching
11812 the structure name.
11813
11814 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11815
11816 * configure.in: Remove --with-cpu option.
11817 subscripts. Remove evil changequotes here.
11818 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11819 * config.in, configure: Regenerated.
11820
11821 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11822 * configure.in: Cleanup section that sources GDB and BFD configure
11823 subscripts. Remove evil changequotes here.
11824 * config.in, configure: Regenerated.
11825
11826 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11827
11828 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11829 frame accessor methods.
11830 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11831 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11832 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11833 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11834 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11835 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11836 * z8k-tdep.c: Ditto.
11837
11838 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11839
11840 * configure.in: Remove UI_OUT configuration code.
11841 * ada-lang.c: Update assuming UI_OUT is always true.
11842 * Makefile.in (UIOUT_CFLAGS): Remove.
11843 * configure: Regenerated.
11844 * TODO: Remove blurb about elimination of -DUI_OUT.
11845
11846 * configure.in: Move code that provides the --enable-gdbcli,
11847 --enable-gdbmi options right before the code that handles the
11848 --enable-tui option. Polish a bit.
11849 * configure: Regenerated.
11850
11851 * configure.in: Rewrite check for GNU regex and the
11852 --without-included regex option, and move it into the "Checks for
11853 library functions" section. This makes us use the system regex
11854 again by default on systems with version 2 of the GNU C library.
11855 This was apparently broken.
11856 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11857 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11858 * config.in, configure: Regenerated.
11859
11860 * configure.in: Move code that provides the --enable-tui option
11861 before the "Checks for libraries" section. Polish the code
11862 somewhat and set need_curses to yes if we build the TUI. Rewrite
11863 code that looks for a library providing termcap functionality to
11864 match more closely what's done in the Readline library, and move
11865 it into to the "Checks for libraries" section.
11866 * configure: Regenerated.
11867 * Makefile.in (TERMCAP): Remove variable.
11868 * config/i386/go32.mh (TERMCAP): Remove variable.
11869
11870 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11871
11872 * MAINTAINERS: Mention gdb_mbuild.sh.
11873 * gdb_mbuild.sh: Rewrite.
11874
11875 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11876
11877 * configure.in: Fix typo in last change.
11878 * config.in, configure: Regenerated.
11879
11880 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11881
11882 * valarith.c (value_binop): Delete obsolete code and comments.
11883 * configure.host: Ditto.
11884 * buildsym.h (make_blockvector): Ditto.
11885 * buildsym.c (make_blockvector): Ditto.
11886 * defs.h (enum language): Ditto.
11887 (chill_demangle): Ditto.
11888 * elfread.c (elf_symtab_read): Ditto.
11889 * dwarfread.c (CHILL_PRODUCER): Ditto.
11890 (set_cu_language): Ditto.
11891 (handle_producer): Ditto.
11892 * expprint.c (print_subexp): Ditto.
11893 * gdbtypes.c (chill_varying_type): Ditto.
11894 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11895 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11896 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11897 (chill_varying_type): Ditto.
11898 * language.h (_LANG_chill): Ditto.
11899 * language.c (binop_result_type, integral_type): Ditto.
11900 (character_type, string_type, structured_type): Ditto.
11901 (lang_bool_type, binop_type_check): Ditto.
11902 * stabsread.h (os9k_stabs): Ditto.
11903 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11904 (define_symbol, read_type, read_struct_fields): Ditto.
11905 (read_array_type, read_enum_type, read_huge_number): Ditto.
11906 (read_range_type, start_stabs): Ditto.
11907 * symfile.c (init_filename_language_table): Ditto.
11908 (add_psymbol_with_dem_name_to_list): Ditto.
11909 * symtab.c (symbol_init_language_specific): Ditto.
11910 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11911 * symtab.h (struct general_symbol_info): Ditto.
11912 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11913 * typeprint.c (typedef_print): Ditto.
11914 * utils.c (fprintf_symbol_filtered): Ditto.
11915 * valops.c (value_cast, search_struct_field, value_slice): Delete
11916 obsolete code.
11917 (varying_to_slice): Delete function.
11918 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11919 (varying_to_slice): Delete declaration.
11920 * MAINTAINERS: Update.
11921
11922 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11923
11924 * configure.in: Reorganize "Checks for library functions section"
11925 a bit. Remove check for `btowc' and `isascii' functions.
11926 * configure: Regenerated.
11927
11928 * acconfig.h (_MSE_INT_H): Remove.
11929 * configure.in: Create "Checks for header files" section, and move
11930 appropriate tests there. Don't check for objlist.h, wchar.h,
11931 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11932 misdetection fix. Also add "Checks for types", "Checks for
11933 compiler characteristics" and "Checks for library functions"
11934 sections.
11935 * config.in, configure: Regenerated.
11936
11937 * configure.in: Create "Checks for programs" section, and move
11938 appropriate tests there.
11939
11940 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11941
11942 * configure.in: Create "Checks for libraries" section, and move
11943 appropriate tests there. Cleanup check for wctype in libw. Use
11944 AC_SEARCH_LIBS to see whether we need libsocket.
11945 * configure: Regenerated.
11946
11947 For older changes see ChangeLog-2002
11948 \f
11949 Local Variables:
11950 mode: change-log
11951 left-margin: 8
11952 fill-column: 74
11953 version-control: never
11954 End: