* dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2
3 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
4 associated with DW_AT_ranges attribute is out of bounds.
5
6 2003-09-15 David Lecomber <dsl@sources.redhat.com>
7
8 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
9
10 2003-09-14 Michael Chastain <mec@shout.net>
11
12 * config/m68k/nm-apollo68v.h: Delete.
13 * config/m68k/xm-apollo68v.h: Delete.
14
15 2003-09-14 Andrew Cagney <cagney@redhat.com>
16
17 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
18 * dcache.c: Update copyrights and descriptions.
19 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
20
21 2003-09-14 Andrew Cagney <cagney@redhat.com>
22
23 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
24 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
25
26 2003-09-14 Andrew Cagney <cagney@redhat.com>
27
28 * alpha-nat.c: Remove some occurances of "register".
29 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
30 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
31 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
32 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
33 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
34 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
35 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
36 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
37 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
38 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
39 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
40 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
41 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
42 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
43 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
44 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
45 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
46 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
47 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
48 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
49 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
50 * values.c, vax-tdep.c, xcoffread.c: Ditto.
51
52 2003-09-13 Andrew Cagney <cagney@redhat.com>
53
54 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
55 * ppc-tdep.h (struct regcache): Declare opaque.
56 * objfiles.h (struct objfile_data): Declare opaque.
57 * cp-support.h (struct objfile): Declare opaque.
58 * linux-nat.h (target_waitstatus): Declare opaque.
59
60 2003-09-14 Mark Kettenis <kettenis@gnu.org>
61
62 * cris-tdep.c (cris_gdbarch_init): Set
63 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
64 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
65 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
66 * mips-tdep.c (mips_gdbarch_init): Likewise.
67 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
68 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
69
70 2003-09-13 Andrew Cagney <cagney@redhat.com>
71
72 * values.c (using_struct_return): Delete "function" and "funcaddr"
73 parameters.
74 * value.h (using_struct_return): Update declaration.
75 * infcmd.c (finish_command_continuation): Update.
76 (finish_command): Update.
77 * infcall.c (call_function_by_hand): Update.
78 * eval.c (evaluate_subexp_standard): Update.
79
80 2003-09-13 Christopher Faylor <cgf@redhat.com>
81
82 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
83 SSE registers since gdb will not operate correctly without this.
84 Restore include file ordering munged in previous change.
85 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
86
87 2003-09-13 Mark Kettenis <kettenis@gnu.org>
88
89 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
90 REG_STRUCT_HAS_ADDR.
91 * gdbarch.c, gdbarch.h: Updated.
92 * infcall.c (call_function_by_hand): Update.
93 * stabsread.c (define_symbol): Updated.
94
95 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
96
97 2003-09-12 Christopher Faylor <cgf@redhat.com>
98
99 * win32-nat.c: Reorganize so that defines used by target headers are
100 actually defined by the system headers.
101 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
102 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
103
104 2003-09-12 Jim Blandy <jimb@redhat.com>
105
106 * dbxread.c (read_dbx_symtab): Don't report an internal error if
107 the file has no .data, .bss, or .rodata sections. Instead wait
108 until we see a variable alleged to live in one of those sections.
109
110 * dbxread.c (read_dbx_symtab): If we have no .data section and no
111 .bss section, presume that any variables we find live in the
112 .rodata section.
113
114 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
115 offsets for global and static variables.
116
117 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
118 symbol types are, by definition, in the .data section, so it is
119 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
120 If there is no .data section, there should be no N_DATA or N_DATA
121 | N_EXT symbols.
122
123 2003-09-12 Mark Kettenis <kettenis@gnu.org>
124
125 * amd64fbsd-tdep.c: Fix sigtramp recognition.
126 (amd64fbsd_sigcontext_addr): Rewrite.
127 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
128 with correct values.
129 (amd64fbsd_sc_reg_offset): Initialize with correct values.
130 (amd64fbsd_init_abi): Fix typo.
131
132 2003-09-12 Andrew Cagney <cagney@redhat.com>
133
134 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
135 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
136
137 2003-09-12 Andrew Cagney <cagney@redhat.com>
138
139 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
140 "entry_file_highpc". Update comments.
141 * defs.h (deprecated_inside_entry_file): Rename
142 "inside_entry_file".
143 * blockframe.c (deprecated_inside_entry_file): Rename
144 "inside_entry_file".
145 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
146 * vax-tdep.c (vax_frame_chain): Update.
147 * sh64-tdep.c (sh64_frame_chain): Update.
148 * sh-tdep.c (sh_frame_chain): Update.
149 * rs6000-tdep.c (rs6000_frame_chain): Update.
150 * ns32k-tdep.c (ns32k_frame_chain): Update.
151 * mips-tdep.c (mips_frame_chain): Update.
152 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
153 * m32r-tdep.c (m32r_frame_this_id): Update.
154 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
155 * frv-tdep.c (frv_frame_this_id): Update.
156 * d10v-tdep.c (d10v_frame_this_id): Update.
157 * cris-tdep.c (cris_frame_chain): Update.
158 * blockframe.c (legacy_frame_chain_valid): Update.
159 * avr-tdep.c (avr_frame_this_id): Update.
160 * arm-tdep.c (arm_prologue_this_id): Update.
161 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
162 * objfiles.c (objfile_relocate): Update.
163 * mipsread.c (mipscoff_symfile_read): Update.
164 (mipscoff_symfile_read): Update.
165 * mdebugread.c (parse_partial_symbols): Update.
166 * dwarfread.c (read_file_scope): Update.
167 * dwarf2read.c (read_file_scope): Update.
168 * dbxread.c (read_dbx_symtab): Update.
169 (read_dbx_symtab): Update.
170 * coffread.c (complete_symtab): Update.
171
172 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
173
174 * top.c (quit_target): New static helper function.
175 (quit_force): Moved code to quit_target(). Call quit_target()
176 via catch_errors() to catch errors during quit.
177
178 2003-09-11 David Carlton <carlton@kealia.com>
179
180 * buildsym.c (finish_block): Use allocate_block to allocate the
181 block.
182 * mdebugread.c (new_block): Add FIXME.
183
184 2003-09-11 David Carlton <carlton@kealia.com>
185
186 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
187 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
188 (recursive_dump_type): Ditto.
189 * printcmd.c (print_formatted): Ditto.
190 * typeprint.c (print_type_scalar): Ditto.
191 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
192 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
193 * cp-support.h: Declare cp_check_possible_namespace_symbols,
194 maint_cplus_cmd_list.
195 * cp-support.c: Make maint_cplus_cmd_list extern.
196 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
197 command.h.
198 (lookup_symbol_file): Look in possible namespace blocks when
199 appropriate.
200 (initialize_namespace_symtab): New.
201 (get_possible_namespace_block, free_namespace_block)
202 (check_possible_namespace_symbols)
203 (check_possible_namespace_symbols_loop)
204 (check_one_possible_namespace_symbol)
205 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
206 (_initialize_cp_namespace): Ditto.
207 * block.h: Declare allocate_block.
208 * block.c (allocate_block): New.
209 * jv-lang.c (get_java_class_symtab): Allocate blocks via
210 allocate_block.
211 * symfile.h: Update declaration of add_psymbol_to_list.
212 * symfile.c (add_psymbol_to_list): Return the partial symbol in
213 question.
214 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
215 scan_partial_symbols_call.
216 (scan_partial_symbols): Add NAMESPACE argument; update calls to
217 helper functions.
218 (add_partial_symbol): If necessary, scan mangled names for names
219 of namespaces.
220 (add_partial_namespace): Add NAMESPACE argument; generate partial
221 symbols associated to namespaces.
222 (add_partial_enumeration): Add NAMESPACE argument.
223 (new_symbol): Allow namespace syms.
224 (read_namespace): Generate namespace syms.
225 * objfiles.h: Add opaque declaration of struct symtab.
226 (struct objfile): Add cp_namespace_symtab member.
227 * objfiles.c (allocate_objfile): Set
228 objfile->cp_namespace_symtab.
229 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
230 dictionary_h, command_h.
231
232 2003-09-11 Andrew Cagney <cagney@redhat.com>
233
234 * rs6000-tdep.c (rs6000_push_dummy_call): Use
235 regcache_raw_write_signed to set SP_REGNUM, move the operation to
236 near the function's end.
237 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
238 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
239 regcache_raw_write_signed to set SP_REGNUM.
240
241 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
242
243 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
244 orig_addrs is set up properly.
245
246 2003-09-11 Andrew Cagney <cagney@redhat.com>
247
248 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
249 * gdbarch.h, gdbarch.c: Re-generate.
250 * infcall.c (call_function_by_hand): Update.
251 * hppa-tdep.c (hppa_push_arguments): Update.
252 * ada-lang.c (place_on_stack): Update.
253 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
254 * sparc-tdep.c (sparc_gdbarch_init): Update.
255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
256 * hppa-tdep.c (hppa_gdbarch_init): Update.
257 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
258 stack_align.
259
260 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
261
262 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
263 register do need a frame.
264
265 2003-09-11 Andrew Cagney <cagney@redhat.com>
266
267 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
268 buildable since GDB 5.0.
269 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
270 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
271 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
272 * irix4-nat.c: Delete file.
273 * config/mips/irix4.mh: Delete file.
274 * config/mips/irix3.mh: Delete file.
275 * config/mips/irix3.mt: Delete file.
276 * config/mips/tm-irix3.h: Delete file.
277 * config/mips/nm-irix3.h: Delete file.
278 * config/mips/xm-irix3.h: Delete file.
279 * config/mips/nm-irix4.h: Delete file.
280 * config/mips/xm-irix4.h: Delete file.
281 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
282
283 2003-09-10 J. Brobecker <brobecker@gnat.com>
284
285 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
286 * Makefile.in (hppa-tdep.o): Update dependencies.
287
288 2003-09-10 James E Wilson <wilson@specifixinc.com>
289
290 * MAINTAINERS: Change my e-mail address. Move to paper trail
291 section.
292
293 2003-09-10 Kevin Buettner <kevinb@redhat.com>
294
295 * MAINTAINERS (frv): New ISA entry.
296
297 2003-09-10 Kevin Buettner <kevinb@redhat.com>
298
299 * frv-tdep.c (dis-asm.h): Include.
300 * Makefile.in (frv-tdep.o): Update dependencies.
301
302 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
303
304 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
305 Fix typo for high range of floating registers.
306
307 2003-09-09 David Carlton <carlton@kealia.com>
308
309 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
310 highpc initialization here out of scan_partial_symbols.
311 (scan_partial_symbols): Restructure into a recursive version,
312 calling add_partial_namespace and add_partial_enumeration when
313 appropriate.
314 (add_partial_namespace): New.
315 (add_partial_enumeration, locate_pdi_sibling): Ditto.
316
317 2003-09-09 Andrew Cagney <cagney@redhat.com>
318
319 * rs6000-tdep.c (ppc_push_return_address): Delete function.
320 (rs6000_push_dummy_call): Set LR to BP_ADDR.
321 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
322 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
323
324 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
325 (rs6000_push_dummy_call): Set the "TOC" register.
326
327 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
328 methods "max_register_raw_size", "max_register_virtual_size" or
329 "register_virtual_size".
330
331 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
332
333 * MAINTAINERS: Update my e-mail address.
334
335 2003-09-09 Andrew Cagney <cagney@redhat.com>
336
337 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
338 (rs6000_push_dummy_call): Store the struct return address.
339 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
340
341 2003-09-09 Andrew Cagney <cagney@redhat.com>
342
343 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
344 "ppc_sysv_abi_push_arguments".
345 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
346 "ppc_sysv_abi_push_arguments".
347 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
348 instead of "push_arguments".
349 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
350
351 2003-09-09 Andrew Cagney <cagney@redhat.com>
352
353 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
354 instead of CALL_DUMMY_ADDRESS.
355
356 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
357
358 * p-lang.c: Eliminate "register".
359 * c-lang.c: Ditto.
360 * expprint.c: Ditto.
361 * f-lang.c: Ditto.
362 * jv-lang.c: Ditto.
363 * language.c: Ditto.
364 * m2-lang.c: Ditto.
365 * parse.c: Ditto.
366 * scm-lang.c: Ditto.
367 * objc-lang.c: Ditto.
368
369 2003-09-09 Nick Clifton <nickc@redhat.com>
370
371 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
372
373 2003-09-04 Andrew Cagney <cagney@redhat.com>
374
375 * avr-tdep.c: Include "dis-asm.h".
376 * cris-tdep.c: Include "dis-asm.h".
377 (cris_delayed_get_disassembler): Use "struct disassemble_info"
378 instead of corresponding typedef.
379 * h8300-tdep.c: Include "dis-asm.h".
380 * ia64-tdep.c: Include "dis-asm.h".
381 * i386-tdep.c: Include "dis-asm.h".
382 (i386_print_insn): Use "struct disassemble_info" instead of
383 corresponding typedef.
384 * m68k-tdep.c: Include "dis-asm.h".
385 * mcore-tdep.c: Include "dis-asm.h".
386 * mips-tdep.c: Include "dis-asm.h".
387 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
388 instead of corresponding typedef.
389 * ns32k-tdep.c: Include "dis-asm.h".
390 * s390-tdep.c: Include "dis-asm.h".
391 * sparc-tdep.c: Include "dis-asm.h".
392 * vax-tdep.c: Include "dis-asm.h".
393 * v850-tdep.c: Include "dis-asm.h".
394 * mn10300-tdep.c: Include "dis-asm.h".
395 * rs6000-tdep.c: Include "dis-asm.h".
396 * xstormy16-tdep.c: Include "dis-asm.h".
397 (_initialize_xstormy16_tdep): Delete "extern" declaration of
398 print_insn_xstormy16.
399 * Makefile.in (v850-tdep.o): Update dependencies.
400 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
401 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
402 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
403 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
404 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
405 (gdbarch_h): Remove $(dis_asm_h).
406 * disasm.c: Include "dis-asm.h".
407 (dis_asm_read_memory): Use "struct disassemble_info" instead of
408 corresponding typedef.
409 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
410 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
411 * gdbarch.sh: Do not include "dis-asm.h".
412 (struct disassemble_info): Declare opaque.
413 (TARGET_PRINT_INSN): Update declaration.
414 * gdbarch.h, gdbarch.c: Re-generate.
415
416 2003-09-08 Andrew Cagney <cagney@redhat.com>
417
418 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
419 CALL_DUMMY_ADDRESS, change to a predicate.
420 * gdbarch.h, gdbarch.c: Re-generate.
421 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
422 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
423 * infcall.c (call_function_by_hand): Ditto.
424 * sparc-tdep.c (sparc_push_return_address): Ditto.
425 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
426 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
427 CALL_DUMMY_ADDRESS with entry_point_address.
428 * v850-tdep.c (v850_push_return_address): Ditto.
429 * s390-tdep.c (s390_push_return_address): Ditto.
430 * rs6000-tdep.c (ppc_push_return_address): Ditto.
431 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
432 * mcore-tdep.c (mcore_push_return_address): Ditto.
433 * cris-tdep.c (cris_push_return_address): Ditto.
434 * arm-tdep.c (arm_push_return_address): Ditto.
435
436 2003-09-08 Andrew Cagney <cagney@redhat.com>
437
438 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
439 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
440 and REG_UNMODIFIED to REG_SAME_VALUE.
441 (execute_cfa_program): Update.
442 (dwarf2_frame_cache): Update. Initialize table to
443 REG_UNSPECIFIED, complain if CFI fails to specify a register's
444 location.
445 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
446
447 2003-09-08 Andrew Cagney <cagney@redhat.com>
448
449 * gnu-nat.c: Remove "inline" function attribute.
450 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
451
452 2003-09-08 Kevin Buettner <kevinb@redhat.com>
453
454 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
455 target.
456
457 2003-09-08 Kevin Buettner <kevinb@redhat.com>
458
459 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
460 (frame_extra_info): Rename this struct to frv_unwind_cache.
461 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
462 Add fields ``prev_sp'' and ``base''.
463 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
464 (frv_saved_pc_after_call, frv_init_extra_frame_info)
465 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
466 Delete.
467 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
468 Revise all callers. Fill in the unwind cache argument and make
469 other adjustments to account for new frame mechanisms.
470 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
471 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
472 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
473 (frv_frame_unwind, frv_frame_base): New structs.
474 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
475 additional arguments expected by this method and adjust function
476 body accordingly.
477 (frv_gdbarch_init): Remove calls to the following functions:
478 set_gdbarch_deprecated_init_frame_pc(),
479 set_gdbarch_deprecated_saved_pc_after_call(),
480 set_gdbarch_deprecated_frame_chain(),
481 set_gdbarch_deprecated_frame_saved_pc(),
482 set_gdbarch_deprecated_frame_init_saved_regs(),
483 set_gdbarch_deprecated_push_arguments(),
484 set_gdbarch_deprecated_push_return_address(),
485 set_gdbarch_deprecated_pop_frame(),
486 set_gdbarch_deprecated_call_dummy_words(),
487 set_gdbarch_deprecated_sizeof_call_dummy_words(),
488 set_gdbarch_deprecated_init_extra_frame_info(),
489 set_gdbarch_deprecated_dummy_write_sp(), and
490 set_gdbarch_deprecated_pc_in_call_dummy().
491 Add calls to the following functions:
492 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
493 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
494 frame_base_set_default().
495 * Makefile.in (frv-tdep.o): Update dependencies.
496
497 2003-09-09 Mark Kettenis <kettenis@gnu.org>
498
499 * dwarf2-frame.c (read_encoded_value): Add support for
500 DW_EH_PE_aligned encoding.
501
502 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
503
504 * infrun.c (normal_stop): Don't print a message if the inferior
505 has exited.
506
507 2003-09-08 Jim Blandy <jimb@redhat.com>
508
509 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
510 * dbxread.c: #include "gdb_assert.h".
511 (read_dbx_symtab): If the objfile has no .data section, use the
512 section index for the .bss section instead.
513
514 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
515
516 * frame.c (deprecated_safe_get_selected_frame): New function.
517 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
518 * findvar.c (read_var_value): Call it.
519
520 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
521
522 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
523 (sh64-tdep.o): Add dependencies.
524 * configure.tgt: Add FIXME to sh-*-linux*.
525 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
526 (sh_gdbarch_init): Always set correct sh_show_regs function
527 pointer. Call sh64_gdbarch_init() if machine type is sh5.
528 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
529 * sh64-tdep.c: New file, containing all sh64 related code from
530 sh-tdep.c.
531 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
532 * config/sh/linux.mt (TDEPFILES): Ditto.
533 * config/sh/nbsd.mt (TDEPFILES): Ditto.
534 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
535 * config/sh/wince.mt (TDEPFILES): Ditto.
536
537 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
538
539 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
540 (stop_wait_callback): Handle !lp->signalled also.
541 (lin_lwp_has_pending, flush_callback): New functions.
542 (lin_lwp_wait): Call flush_callback.
543 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
544 (linux_proc_pending_signals): New function.
545 * linux-nat.h (linux_proc_pending_signals): Add prototype.
546
547 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
548
549 From Nick Kelsey <nickk@ubicom.com>:
550 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
551 when the stop PC is at the beginning of a function also.
552
553 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
554
555 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
556 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
557
558 2003-09-06 Mark Kettenis <kettenis@gnu.org>
559
560 * sol-thread.c: Include "gdb_string.h".
561
562 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
563
564 * gcore.c: Reorder include files in alphabetical order. Include
565 "gdb_assert.h". Various coding style fixes.
566 (derive_stack_segment, derive_heap_segment): Replace check for
567 non-null BOTTOM and TOP with gdb_assert.
568 (derive_heap_segment): Replace check for successful creation of
569 ZERO with gdb_assert.
570 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
571
572 2003-09-04 Andrew Cagney <cagney@redhat.com>
573
574 * thread-db.c (verbose_dlsym): New function.
575 (thread_db_load): Use verbose_dlsym
576 (thread_db_new_objfile): Print that libthread_db was loaded, and
577 that thread debugging was enabled.
578
579 2003-09-04 Andrew Cagney <cagney@redhat.com>
580
581 * configure.tgt: Add "mips64*-*-*" target. Delete
582 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
583 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
584 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
585 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
586 mips*-sony-*, and mips64*-*-elf* targets.
587 * config/mips/embedl.mt: Delete file.
588 * config/mips/embedl64.mt: Delete file.
589 * config/mips/mips.mt: Delete file.
590 * config/mips/mips64.mt: Delete file.
591 * config/mips/tm-embed.h: Delete file.
592 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
593 * config/mips/embed64.mt: Delete out-of-date comment.
594
595 2003-09-04 Andrew Cagney <cagney@redhat.com>
596
597 * hppa-tdep.c (hppa_gdbarch_init): Set
598 "have_nonsteppable_watchpoint".
599 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
600 * mips-tdep.c (mips_dump_tdep): Do not print
601 HAVE_NONSTEPPABLE_WATCHPOINT.
602 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
603 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
604 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
605 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
606
607 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
608
609 * breakpoint.c (watchpoint_check): Remove accidentally checked in
610 unused code. Add comment.
611
612 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
613
614 * breakpoint.c (watchpoint_check): Check for pc being in an
615 epilogue if watchpoint frame couldn't be found.
616
617 2003-09-04 Andrew Cagney <cagney@redhat.com>
618
619 * Makefile.in: Re-generate all dependencies.
620
621 2003-09-03 Andrew Cagney <cagney@redhat.com>
622
623 * arch-utils.h (legacy_print_insn): Delete declaration.
624 * arch-utils.c (legacy_print_insn): Delete function.
625 * disasm.c (deprecated_tm_print_insn_info): Delete.
626 (_initialize_disasm): Delete function, contained code initializing
627 deprecated_tm_print_insn_info.
628 * gdbarch.sh (deprecated_tm_print_insn): Delete.
629 (deprecated_tm_print_insn_info): Delete.
630 (TARGET_PRINT_INSN): Do not provide a default.
631 * gdbarch.h, gdbarch.c: Re-generate.
632
633 2003-09-03 Andrew Cagney <cagney@redhat.com>
634
635 * disasm.c (fprintf_disasm): New function.
636 (gdb_disassemble_info): Call "init_disassemble_info", instead of
637 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
638 reverts 2003-08-14 change.
639 (_initialize_disasm): Call "init_disassemble_info", instead of
640 INIT_DISASSEMBLE_INFO_NO_ARCH.
641
642 2003-09-03 Michael Snyder <msnyder@redhat.com>
643
644 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
645
646 2003-09-03 Andrew Cagney <cagney@redhat.com>
647
648 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
649 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
650 * symfile.c (syms_from_objfile): Update.
651 (reread_symbols): `Update
652 * exec.c (exec_file_attach): Update.
653 (exec_file_attach): Update.
654 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
655 2003-08-29 change.
656 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
657
658 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
659
660 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
661 trad-frame.h.
662 (arm_get_cache): Delete macro.
663 (struct arm_prologue_cache): Update comments. Make saved_regs into
664 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
665 to prev_sp.
666 (thumb_scan_prologue): Update for cache changes. Don't call
667 DEPRECATED_PC_IN_CALL_DUMMY.
668 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
669 argument and use it in desperation search for our prologue. Do not
670 search past the specified PC.
671 (arm_make_prologue_cache): Simplify.
672
673 (arm_prologue_this_id, arm_prologue_prev_register)
674 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
675 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
676 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
677 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
678 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
679
680 (arm_frame_chain_valid, arm_find_callers_reg)
681 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
682 (arm_pop_frame): Delete obsolete methods.
683 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
684
685 (arm_gdbarch_init): Update for new frame methods. Register prologue
686 and sigtramp unwinders. Set the default frame base method.
687
688 * Makefile.in (arm-tdep.o): Update dependencies.
689 * varobj.c (find_frame_addr_in_frame_chain): Call
690 get_frame_base_address.
691 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
692
693 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
694
695 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
696 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
697 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
698 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
699 Take NEXT_FRAME and CACHE arguments. Call
700 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
701 Set unwound_pc in CACHE instead of modifying the frame argument.
702 Don't bother checking the frame type when looking for sigtramp
703 frames.
704 (arm_make_prologue_cache, arm_frame_chain)
705 (arm_init_extra_frame_info): New functions.
706
707 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
708
709 * arm-tdep.c (arm_get_cache): Define.
710 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
711 unwound_sp, unwound_pc, and saved_regs.
712 (thumb_scan_prologue): Take a cache instead of the frame.
713 (arm_scan_prologue): Likewise.
714 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
715 instead of a temporary frame.
716 (arm_init_extra_frame_info): Allocate and use a cache.
717 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
718
719 2003-09-03 Andrew Cagney <cagney@redhat.com>
720
721 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
722 * config/mips/wince.mt (TM_CLIBS): Ditto.
723 * config/sh/wince.mt (TM_CLIBS): Ditto.
724 * config/pa/hppa64.mt (TM_CLIBS): Delete.
725 * config/sparc/sp64.mt (CC): Delete.
726
727 2003-09-03 Andrew Cagney <cagney@redhat.com>
728
729 * defs.h: Do not include "arch-utils.h".
730 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
731 GDB_MULTI_ARCH_PURE.
732 * configure.in (GDB_MULTI_ARCH): Do not define.
733 * configure, config.in: Regenerate.
734 * configure.tgt: Do not set variable "gdb_multi_arch".
735 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
736 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
737 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
738 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
739 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
740 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
741 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
742 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
743 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
744 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
745 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
746 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
747 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
748 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
749 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
750 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
751 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
752 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
753
754 2003-08-30 Michael Chastain <mec@shout.net>
755
756 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
757 * config/m68k/nm-hp300hpux.h: Delete.
758 * config/m68k/tm-hp300hpux.h: Delete.
759 * config/m68k/xm-hp300hpux.h: Delete.
760 * config/m68k/xm-hp300bsd.h: Delete.
761 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
762 tm-hp300hpux.h, xm-hp300hpux.h.
763 * somsolib.c: Remove comment about hp300 shared libraries.
764
765 2003-08-31 Mark Kettenis <kettenis@gnu.org>
766
767 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
768 Only define PTRACE_GET_THREAD_AREA is not already defined.
769 Various style fixes in code and comments and some additional
770 spelling fixes in comments. Move after functions dealing with
771 debug registers.
772 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
773 Fix coding-style.
774
775 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
776 frame_unwind_register_unsigned instead of
777 frame_unwind_unsigned_register.
778
779 2003-08-30 Mark Kettenis <kettenis@gnu.org>
780
781 * configure.in: Search for gethostbyname in libnsl.
782 * configure: Regenerated.
783
784 2003-08-29 Mark Kettenis <kettenis@gnu.org>
785
786 * configure.in: Remove redundant AC_MSG_RESULT in check for
787 uintptr_t in stdint.h.
788 * configure: Regenerated.
789
790 * amd64-nat.h (struct regcache): Add opaque declaration.
791
792 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
793 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
794 Change "register array" to "register cache" in comments.
795 (x86_64_linux_gregset64_reg_offset): New variable.
796 (GETREGS_SUPPLIES): Remove macro.
797 (supply_gregset): Call amd64_supply_native_gregset instead of
798 x86_64_linux_supply_gregset.
799 (fill_gregset): Rename `regno' to `regnum'. Call
800 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
801 (store_regs): Rename `regno' to `regnum'.
802 (store_fpregs): Rename `regno' to `regnum'.
803 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
804 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
805 Reorganize function a bit.
806 (store_inferior_registers): Rename `regno' to `regnum'. Use
807 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
808 Reorganize function a bit.
809 (_initialize_x86_64_linux_nat): New function.
810 * config/i386/x86-64linux.mh.
811
812 2003-08-29 Andrew Cagney <cagney@redhat.com>
813
814 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
815 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
816 (target_remove_watchpoint): Delete macro.
817 (target_insert_watchpoint): Delete macro.
818 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
819 (remote_mips_stopped_by_watchpoint): Delete declaration.
820 (remote_mips_remove_watchpoint): Delete declaration.
821 (remote_mips_set_watchpoint): Delete declaration.
822 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
823 * remote-mips.c (_initialize_remote_mips): Set
824 "to_insert_watchpoint", "to_stopped_by_watchpoint",
825 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
826 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
827 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
828 (mips_stopped_by_watchpoint): Rename
829 remote_mips_stopped_by_watchpoint.
830 (mips_can_hardware_watchpoint): Rename
831 remote_mips_can_use_hardware_watchpoint, update function
832 signature.
833
834 2003-08-29 Mark Kettenis <kettenis@gnu.org>
835
836 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
837 USER_DS. We haven't given them a register number yet.
838
839 * amd64-nat.h: New file.
840 * amd64-nat.c: New file.
841 * amd64fbsd-nat.c: Include "amd64-nat.h".
842 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
843 (amd64fbsd32_r_reg_offset): New variable.
844 (supply_gregset): Simply call amd64_supply_native_gregset.
845 (fill_gregset): Rename `regno' to `regnum'. Simply call
846 amd64_collect_native_gregset.
847 (fill_fpregset): Rename `regno' to `regnum'.
848 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
849 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
850 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
851 `fpregset_t'. Call amd64_supply_native_gregset instead of
852 supply_gregset. Call x86_64_supply_fxsave instead of
853 supply_fpregset.
854 (store_inferior_registers): Rename `regno' to `regnum'. Replace
855 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
856 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
857 `fpregset_t'. Call amd64_collect_native_gregset instead of
858 fill_gregset. Call x86_64_collect_fxsave instead of
859 fill_fpregset.
860 (_initialize_am64fbsd_nat): Initialize
861 amd64_native_gregset32_reg_offset and
862 amd64_native_gregset64_reg_offset.
863 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
864
865 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
866 null pointer. Fix typo in comment.
867
868 * regcache.c (supply_register): Reimplement to call
869 regcache_raw_supply.
870 (regcache_collect): Reimplement by calling regcache_raw_collect.
871
872 2003-08-28 Mark Kettenis <kettenis@gnu.org>
873
874 * regcache.c (register_buffer): Consitify first argument.
875 (regcache_raw_supply, regcache_raw_collect): New
876 functions.
877
878 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
879
880 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
881 by Nathan J. Williams.
882
883 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
884
885 * lin-lwp.c (wait_lwp): New function, copied from
886 stop_wait_callback. Clean up.
887 (stop_wait_callback): Use wait_lwp.
888
889 2003-08-28 Andrew Cagney <cagney@redhat.com>
890
891 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
892 flavour and disassembler options.
893 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
894 (mips_gdbarch_init): Set "print_insn". Delete initialization of
895 deprecated_tm_print_insn_info.
896
897 2003-08-27 Andrew Cagney <cagney@redhat.com>
898
899 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
900 Use target_read_memory.
901 (s390_get_frame_info): Update. Do not reference
902 deprecated_tm_print_insn_info.
903 (s390_check_function_end, s390_is_sigreturn): Ditto.
904
905 2003-08-27 Andrew Cagney <cagney@redhat.com>
906
907 * Makefile.in (cris-tdep.o): Update dependencies.
908 * cris-tdep.c: Include "gdb_assert.h".
909 (cris_gdbarch_init): Set print_insn.
910 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
911 (cris_delayed_get_disassembler): Simplify, directly call the
912 disassembler returned by cris_get_disassembler.
913 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
914 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
915 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
916 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
917 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
918 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
919 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
920 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
921 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
922 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
923 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
924 (gdb_print_insn_sparc): Delete function.
925 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
926 deprecated_tm_print_insn_info.
927 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
928 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
929 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
930 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
931 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
932 * s390-tdep.c (gdb_print_insn_s390): Delete function.
933 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
934 (s390_gdbarch_init): Set print_insn.
935
936 2003-08-27 Andrew Cagney <cagney@redhat.com>
937
938 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
939 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
940 * infcall.c (call_function_by_hand): Convert the entry point
941 address into a code address.
942
943 2003-08-27 Andrew Cagney <cagney@redhat.com>
944
945 * dsrec.c: Include "gdb_string.h".
946 * Makefile.in (dsrec.o): Update dependencies.
947
948 2003-08-27 Michael Chastain <mec@shout.net>
949
950 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
951
952 2003-08-27 Andrew Cagney <cagney@redhat.com>
953
954 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
955 (alpha_osf1_init_abi): Do not set call_dummy_address.
956
957 2003-08-27 David Carlton <carlton@kealia.com>
958
959 From Randolph Chung <tausq@debian.org>:
960 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
961 compiles with -Wformat-nonliteral -Werror.
962
963 2003-08-26 Jim Blandy <jimb@redhat.com>
964
965 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
966 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
967 bfd_lookup_symbol, since we only want symbols in code sections.
968 (look_for_base): Pass zero as the SECT_FLAGS argument to
969 bfd_lookup_symbol, since we're not concerned about which section
970 the symbol is in.
971
972 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
973
974 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
975 we are frameless or the return address register is already known.
976
977 2003-08-26 Andrew Cagney <cagney@redhat.com>
978
979 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
980 in size. Add comments.
981
982 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
983
984 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
985 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
986
987 2003-08-26 Jason Merrill <jason@redhat.com>
988
989 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
990 case out of #ifdef MIPS block.
991
992 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
993
994 PR java/1322
995 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
996 available before calling SECT_OFF_TEXT.
997 * PROBLEMS: Remove description of java/1322.
998
999 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1000
1001 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1002 bof, and nat0-nat127 as pseudo-registers.
1003 (ia64_frame_cache): New struct used to cache frame info.
1004 (ia64_register_reggroup_p): New routine used to override default
1005 register grouping so registers without names are still saved and
1006 restored.
1007 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1008 pseudo values.
1009 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1010 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1011 (ia64_alloc_frame_cache): New routine to create a new
1012 ia64_frame_cache.
1013 (examine_prologue): Change prototype to add next_frame pointer.
1014 Assume frameless until otherwise proven. Verify that the cfm for
1015 current frame matches the cfm that should occur for the prologues
1016 alloc insn and if equal, mark as not frameless. At end of routine,
1017 if not frameless, calculate registers for the previous frame and store
1018 in the cache, if a cache is provided.
1019 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1020 and pass 0 for next_frame.
1021 (ia64_store_return_value): Change to use convert_typed_floating()
1022 instead of calling ia64_convert_to_raw().
1023 (ia64_extract_return_value): Change to use convert_typed_floating()
1024 instead of calling ia64_convert_to_virtual().
1025 (ia64_frame_cache): New routine to support new frame model.
1026 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1027 (ia64_frame_sniffer): Ditto.
1028 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1029 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1030 (ia64_sigtramp_frame_prev_register): Ditto.
1031 (ia64_sigtramp_frame_sniffer): Ditto.
1032 (ia64_frame_base_address): Ditto.
1033 (ia64_extract_struct_value_address): Change to issue error message.
1034 (ia64_frame_align): New routine to align sp.
1035 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1036 (ia64_push_arguments): Removed. Logic moved to
1037 ia64_push_dummy_call().
1038 (ia64_push_return_address): Ditto.
1039 (ia64_unwind_dummy_id): New function.
1040 (ia64_unwind_pc): Ditto.
1041 (ia64_convert_register_p): Ditto.
1042 (ia64_register_to_value): Ditto.
1043 (ia64_value_to_register): Ditto.
1044 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1045 (ia64_register_byte, ia64_register_raw_size): Ditto.
1046 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1047 (ia64_saved_pc_after_call): Ditto.
1048 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1049 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1050 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1051 (ia64_register_convert_to_raw): Ditto.
1052 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1053 (ia64_init_extra_frame_info): Ditto.
1054 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1055 (ia64_gdbarch_init): Remove registering of deprecated functions that
1056 are no longer used. Add registration of new gdbarch functions.
1057 Remove registering deprecated_write_sp. Replace
1058 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1059 Delete set_gdbarch_deprecated_register_convertible(),
1060 set_gdbarch_deprecated_register_convert_to_virtual(), and
1061 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1062 set_gdbarch_deprecated_register_size(),
1063 set_gdbarch_deprecated_register_bytes(),
1064 set_gdbarch_pcregnum(),
1065 set_gdbarch_deprecated_register_byte(),
1066 set_gdbarch_deprecated_register_raw_size(),
1067 set_gdbarch_deprecated_max_register_raw_size(),
1068 set_gdbarch_deprecated_register_virtual_size(),
1069 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1070 Replace set_gdbarch_deprecated_extract_return_value() with
1071 set_gdbarch_extract_return_value(). Remove calls to:
1072 set_gdbarch_deprecated_saved_pc_after_call();
1073 set_gdbarch_deprecated_frame_chain(),
1074 set_gdbarch_deprecated_frame_saved_pc(),
1075 set_gdbarch_deprecated_frame_init_saved_regs(),
1076 set_gdbarch_deprecated_get_saved_register(),
1077 set_gdbarch_deprecated_call_dummy_words(),
1078 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1079 set_gdbarch_deprecated_init_extra_frame_info(),
1080 set_gdbarch_deprecated_frame_args_address(),
1081 set_gdbarch_deprecated_frame_locals_address(),
1082 and set_gdbarch_deprecated_dummy_write_sp().
1083 Add set_gdbarch_convert_register_p(),
1084 set_gdbarch_register_to_value(),
1085 set_gdbarch_value_to_register(),
1086 set_gdbarch_push_dummy_call(),
1087 set_gdbarch_frame_align(),
1088 set_gdbarch_unwind_dummy_id(),
1089 set_gdbarch_unwind_pc(),
1090 frame_unwind_append_sniffer(),
1091 frame_unwind_append_sniffer(),
1092 and frame_base_set_default().
1093
1094 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1095
1096 * configure.tgt: Document need for special "mipsisa64" handling.
1097 (mipsisa64*-*-linux64): Handle as target linux64.
1098 (mipsisa64*-*-*): Handle as target embed64.
1099
1100 2003-08-18 Michael Chastain <mec@shout.net>
1101
1102 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1103 objfile bug.
1104
1105 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1106
1107 * i387-tdep.h: Update copyright date.
1108 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1109
1110 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1111 CFLAGS games to reflect reality.
1112
1113 2003-08-24 Andrew Cagney <cagney@redhat.com>
1114
1115 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1116 GDB_MULTI_ARCH is always non-zero.
1117 * osabi.c (_initialize_gdb_osabi): Ditto.
1118 (gdbarch_init_osabi): Ditto.
1119 * sparc-tdep.c: Ditto for #if code.
1120
1121 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1122
1123 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1124 Update comments.
1125 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1126 comments.
1127 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1128 x86_64_supply_fxsave.
1129 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1130 x86_64_supply_fxsave.
1131 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1132 x86_64_supply_fxsave.
1133
1134 2003-08-23 Andreas Jaeger <aj@suse.de>
1135
1136 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1137 i387_supply_fxsave.
1138
1139 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1140
1141 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1142 i387_supply_register.
1143 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1144 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1145 i387_supply_fsave.
1146 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1147 i387_supply_fxsave.
1148 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1149 i387_supply_fsave.
1150 * i386bsd-nat.c (supply_fpregset): Adjust call to
1151 i387_supply_fsave.
1152 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1153 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1154 supply_fpregset.
1155 (store_inferior_registers): Remove extraneous whitespace. Call
1156 i387_fill_fsave instead of fill_fpregset.
1157 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1158 (supply_fpregset): Likewise.
1159 * i386v4-nat.c (supply_fpregset): Adjust call to
1160 i387_supply_fsave.
1161 * i386-interix-nat.c (supply_fpregset): Adjust call to
1162 i387_supply_fsave.
1163 * i386-linux-nat.c (supply_fpregset): Adjust call to
1164 i387_supply_fsave.
1165 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1166 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1167 i387supply_fsave and i387_supply_fxsave.
1168 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1169 Incorporate code from `i387_supply_register.
1170 (i387_supply_register): Remove.
1171 (i387_supply_fxsave): Add `regnum' argument.
1172 Update comments.
1173 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1174 prototype.
1175 (i387_supply_register): remove prototype.
1176 Update comments.
1177
1178 2003-08-22 Michael Chastain <mec@shout.net>
1179
1180 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1181 Add lines for files in gdb/testsuite/gdb.cp/* that are
1182 still not 8.3 unique.
1183
1184 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1185
1186 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1187 TYPE_VPTR_FIELDNO is valid.
1188
1189 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1190
1191 * utils.c (set_width_command): Remove prototypes.
1192 (set_screen_size): New prototype.
1193 (init_page_info): Simplify by fetching the screen size from
1194 Readline. Call set_screen_size.
1195 (set_screen_size): New function.
1196 (set_width): Add missing whitespace in comment.
1197 (set_width_command): Call set_screen_size.
1198 (set_height_command): New function.
1199 (initialize_utils): Fix formatting. Make "set height" command
1200 call set_height_command. Remove redundant code that turns off
1201 pagination if output isn't a terminal. Remove redundant call to
1202 set_width_command.
1203
1204 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1205
1206 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1207 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1208 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1209 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1210 `case' keyword.
1211 (sparc64_register_info): Give the reister with number
1212 SPARC64_STATE_REGNUM a name.
1213 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1214 %asi and %ccr.
1215 (sparc64_push_dummy_call): Take BIAS into account when checking
1216 stcak alignment.
1217 (sparc_software_single_step): Remove assertions that check whether
1218 NPC and NNPC were zero.
1219 (sparc_supply_rwindow): Make public. Merge functionality with
1220 sparc64_supply_rwindow.
1221 (sparc_fill_rwindow): Make public. Merge functionality with
1222 sparc64_fill_rwindow.
1223 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1224 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1225 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1226 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1227 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1228
1229 * reggroups.c: Add whitespace after declarations of local
1230 variables in functions.
1231
1232 2003-08-21 Michael Chastain <mec@shout.net>
1233
1234 * gdbtypes.h: Change array bound type from an int to enum.
1235
1236 2003-08-21 Andrew Cagney <cagney@redhat.com>
1237
1238 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1239 * config/sparc/tm-sparc.h: Ditto.
1240 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1241 unconditionally.
1242 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1243
1244 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1245
1246 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1247 (register_objfile_data, set_objfile_data, objfile_data): New
1248 prototypes.
1249 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1250 prototypes.
1251 (allocate_objfile): Call objfile_alloc_data.
1252 (free_objfile): Call objfile_free_data.
1253 (struct objfile_data): New.
1254 (struct objfile_data_registration): New.
1255 (struct objfile_data_registry): New.
1256 (objfile_data_registry): New variable.
1257 (register_objfile_data): New function.
1258 (objfile_alloc_data, objfile_free_data): New functions.
1259 (set_objfile_data, objfile_data): New functions.
1260 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1261 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1262 (_initialize_dwarf2_frame): New function and prototype.
1263
1264 2003-08-21 Andrew Cagney <cagney@redhat.com>
1265
1266 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1267 a specific architecture.
1268 * arch-utils.h (set_architecture_from_arch_mach): Delete
1269 declaration.
1270 (target_architecture_hook): Delete declaration.
1271 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1272 (default_float_format): Assume GDB_MULTI_ARCH.
1273 (default_double_format): Assume GDB_MULTI_ARCH.
1274 (set_endian_from_file): Delete function.
1275 (arch_ok): Delete function.
1276 (set_arch): Delete function.
1277 (set_architecture_from_arch_mach): Delete function.
1278 (set_architecture_from_file): Delete function.
1279 (set_architecture): Assume GDB_MULTI_ARCH.
1280 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1281
1282 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1283
1284 Rewrite FreeBSD/sparc64 native configuration.
1285 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1286 * sparc64fbsd-nat.c: New file.
1287 * sparc64fbsd-tdep.c: New file.
1288 * sparc64-tdep.c sparc64-tdep.h: New files.
1289 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1290 sparc64fbsd-tdep.o): New dependencies.
1291 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1292 and sparc64fbsd-tdep.c.
1293 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1294 * config/sparc/fbsd.mh: Remove copyright notice.
1295 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1296 sparcbsd-nat.o.
1297 * config/sparc/fbsd.mt: Remove copyright notice.
1298 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1299 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1300 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1301 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1302 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1303 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1304 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1305 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1306 "sparc/tm-sp64.h".
1307 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1308 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1309
1310 2003-08-21 Michael Chastain <mec@shout.net>
1311
1312 * symtab.h: Add doco on the space critical structures and
1313 some measurements of space usage.
1314
1315 2003-08-21 Michael Snyder <msnyder@redhat.com>
1316
1317 * tracepoint.c (trace_dump_command): Trace break address
1318 is subject to DECR_PC_AFTER_BREAK.
1319 (set_traceframe_context): Make "trace_line" an int.
1320 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1321
1322 2003-08-20 Michael Snyder <msnyder@redhat.com>
1323
1324 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1325 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1326 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1327 argument passing.
1328 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1329 functions, replace sh_push_dummy_call.
1330 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1331
1332 2003-08-20 Michael Chastain <mec@shout.net>
1333
1334 * gdbtypes.h (struct main_type): Rearrange to save space.
1335
1336 2003-08-20 Michael Snyder <msnyder@redhat.com>
1337
1338 * trad-frame.c: Comment typo fix.
1339
1340 2003-08-20 Michael Snyder <msnyder@redhat.com>
1341 Kevin Buettner <kevinb@redhat.com>
1342
1343 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1344 (frv_frame_init_saved_regs): Add declaration.
1345 (frame_extra_info): Add new field ``saved_regs''.
1346 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1347 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1348 Update frame related code.
1349 (frv_extract_struct_value_address): Adjust formatting.
1350 * Makefile.in (frv-tdep.o): Update dependencies.
1351 * config/frv/tm-frv.h (target_insert_watchpoint)
1352 (target_remove_watchpoint, target_insert_hw_breakpoint)
1353 (target_remove_hw_breakpoint): Delete these macros.
1354 (remote_insert_watchpoint, remote_remove_watchpoint)
1355 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1356 these declarations.
1357
1358 2003-08-20 Michael Chastain <mec@shout.net>
1359
1360 * defs.h (ENUM_BITFIELD): New macro.
1361 * symtab.h (ENUM_BITFIELD): Use it.
1362 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1363
1364 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1365
1366 * MAINTAINERS (write after approval): Add myself.
1367
1368 2003-08-18 Andrew Cagney <cagney@redhat.com>
1369
1370 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1371 * gdbarch.h, gdbarch.c: Re-generate.
1372 * infcall.c (call_function_by_hand): Adjust the SP by
1373 frame_red_zone_size before allocating any stack space.
1374 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1375 * x86-64-tdep.c (x86_64_frame_align): New function.
1376 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1377
1378 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1379 Remove code adjusting SP so that it skips over the Red Zone.
1380
1381 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1382
1383 * NEWS (New native configurations): Mention FreeBSD/amd64.
1384
1385 2003-08-18 Andrew Cagney <cagney@redhat.com>
1386
1387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1388 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1389 "m68k_frame_p".
1390 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1391
1392 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1393
1394 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1395
1396 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1397
1398 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1399 Define.
1400 * i386-linux-nat.c: Include "linux-nat.h".
1401 (child_post_startup_inferior): New function.
1402
1403 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1404
1405 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1406 at the start of a frameless function. This probably fixes PR
1407 backtrace/1338.
1408
1409 2003-08-17 Michael Chastain <mec@shout.net>
1410
1411 * symfile.c (find_sym_fns): Remove special case for apollo target.
1412
1413 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1414
1415 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1416 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1417 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1418 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1419 (linux_supports_tracevforkdone): New function.
1420 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1421 TRACEVFORKDONE.
1422 (child_follow_fork): Handle vfork.
1423 (linux_handle_extended_wait): Likewise. Also handle exec.
1424 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1425 * NEWS: Mention fork tracing.
1426
1427 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1428
1429 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1430
1431 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1432
1433 * Makefile.in (i386-linux-nat.o): Update dependencies.
1434 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1435 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1436 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1437 * i386-linux-nat.c: Include "linux-nat.h".
1438 (child_post_startup_inferior): New function.
1439 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1440 * infptrace.c (kill_inferior): Wrap in #ifdef.
1441 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1442 attaching to each LWP.
1443 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1444 (init_lin_lwp_ops): Fill in some more operations.
1445 * linux-nat.h (linux_enable_event_reporting)
1446 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1447 prototypes.
1448 * linux-nat.c (linux_enable_event_reporting): New function.
1449 (child_post_attach, linux_child_post_startup_inferior)
1450 (child_post_startup_inferior, child_follow_fork)
1451 (linux_handle_extended_wait, kill_inferior): New functions.
1452
1453 2003-08-16 Andrew Cagney <cagney@redhat.com>
1454
1455 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1456 * gdbarch.h, gdbarch.c: Re-generate.
1457
1458 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1459
1460 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1461
1462 2003-08-16 Andrew Cagney <cagney@redhat.com>
1463
1464 * NEWS: Mention that "set prompt-escape-char" was deleted.
1465 * top.c (get_prompt_1): Delete function.
1466 (gdb_prompt_escape):
1467 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1468 prompt-escape-char" command.
1469 (MAX_PROMPT_SIZE): Delete macro.
1470 (get_prompt): Simplify, do not call get_prompt_1.
1471
1472 2003-08-16 Andrew Cagney <cagney@redhat.com>
1473
1474 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1475 -Werror. -Wformat-nonliteral problems.
1476
1477 2003-08-15 J. Brobecker <brobecker@gnat.com>
1478
1479 Further multiarching work mostly for hppa64-*-hpux11:
1480 * hppa-tdep.h: New file.
1481 * hppa-tdep.c: #include hppa-tdep.c.
1482 (hppa32_num_regs): Renamed from hppa_num_regs.
1483 (hppa64_num_regs): New constant.
1484 (hppa64_call_dummy_breakpoint_offset): New constant.
1485 (hppa32_call_dummy_length): New constant.
1486 (hppa64_call_dummy_length): New constant.
1487 (hppa32_stack_align): Make name 32bit explicit.
1488 (hppa32_register_virtual_type): Likewise.
1489 (hppa32_extract_return_value): Likewise.
1490 (hppa32_use_struct_convention): Likewise.
1491 (hppa32_store_return_value): Likewise.
1492 (hppa64_register_virtual_type): New function.
1493 (hppa64_extract_return_value): New function.
1494 (hppa64_use_struct_convention): New function.
1495 (hppa64_store_return_value): New function.
1496 (hppa_frame_locals_address): Remove declaration, function does
1497 not exist anymore.
1498 (hppa_register_byte): Add support for PA64 ABI.
1499 (hppa_gdbarch_init): Add support for PA64 ABI.
1500 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1501 Make name 32bit explicit.
1502 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1503 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1504 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1505 (hppa64_hpux_frame_base_before_sigtramp): New function.
1506 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1507 * config/pa/tm-hppa64.h: Remove macros that are no longer
1508 necessary now that the gdbarch vector is properly setup.
1509 Transform some macros into function calls. Some minor cleanup.
1510 * config/pa/tm-hppah.h: Update function calls in macros
1511 following the function renaming in hppa-hpux-tdep.c.
1512 * Makefile.in (hppa_tdep_h): New variable.
1513 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1514
1515 2003-08-14 Michael Snyder <msnyder@redhat.com>
1516
1517 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1518
1519 2003-08-13 J. Brobecker <brobecker@gnat.com>
1520
1521 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1522 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1523 routine.
1524
1525 2003-08-13 Michael Snyder <msnyder@redhat.com>
1526
1527 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1528 (frv_saved_pc_after_call): Use deprecated ftype.
1529 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1530 (frv_remote_translate_xfer_address): Remove.
1531 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1532
1533 2003-08-13 J. Brobecker <brobecker@gnat.com>
1534
1535 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1536 initialization after the common gdbarch initialization, not before.
1537
1538 2003-08-13 J. Brobecker <brobecker@gnat.com>
1539
1540 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1541 (ADDR_BITS_REMOVE): Remove, redundant.
1542
1543 2003-08-13 J. Brobecker <brobecker@gnat.com>
1544
1545 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1546 gdbarch method to clear the 2 low bits of text addresses.
1547
1548 2003-08-12 Andrew Cagney <cagney@redhat.com>
1549
1550 * Makefile.in (dsrec.o): Update dependencies.
1551 * dsrec.c: Include "gdb_assert.h".
1552 (make_srec): Use snprintf instead of sprintf, use a literal format
1553 string.
1554
1555 2003-08-12 Andrew Cagney <cagney@redhat.com>
1556
1557 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1558 FRAME_OBSTACK_ZALLOC.
1559
1560 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1561
1562 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1563 SSE registers.
1564
1565 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1566
1567 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1568 amd64fbsd_sc_reg_offset): Add extern declarations.
1569 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1570 declarations.
1571
1572 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1573
1574 * MAINTAINERS (write after approval): Update my mail address.
1575
1576 2003-08-10 Andrew Cagney <cagney@redhat.com>
1577
1578 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1579
1580 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1581
1582 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1583 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1584 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1585 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1586 i386bsd_sc_reg_offset): Add extern declarations.
1587 * i386obsd-nat.c: Include "i386-tdep.h"
1588 (_initialize_i386obsd_nat): Remove extern declarations.
1589 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1590 declarations.
1591 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1592 declarations.
1593
1594 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1595 instead of frame_read_register.
1596 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1597 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1598 SP_REGNUM.
1599 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1600 instead of frame_unwind_unsigned_register. Use
1601 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1602 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1603 instead of read_register. Use builtin_type_void_data_ptr instead
1604 of builtin_type_void_func_ptr when extracting the address of the
1605 jmp_buf.
1606 (i386_extract_return_value, i386_store_return_value,
1607 i386_pseudo_register_read, i386_pseudo_register_write): Use
1608 register_size instead REGISTER_RAW_SIZE.
1609
1610 2003-08-10 Andrew Cagney <cagney@redhat.com>
1611
1612 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1613 sprintf. Make "name" constant.
1614
1615 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1616
1617 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1618 instead of frame_read_register.
1619 (i387_print_float_info): Use get_frame_register and
1620 get_frame_register_unsigned instead of frame_register_read.
1621
1622 * i386fbsd-nat.c: Include "i386-tdep.h".
1623 (child_resume): Make `eflags' an ULONGEST. Use
1624 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1625 instead of register_read and register_write.
1626
1627 * i386bsd-nat.c (fetch_inferior_registers,
1628 store_inferior_registers): Don't use && at the end of a line.
1629 (_initialize_i386bsd_nat): Fix typo.
1630
1631 * frame.c (_initialize_frame): Add missing backslash.
1632
1633 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1634 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1635 and supply_register instead of manipulating the register buffer
1636 directly.
1637
1638 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1639 * config/i386/nm-i386sol2.h
1640 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1641
1642 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1643 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1644 instructions that GCC likes to mingle into the prologue. Fixes
1645 gdb/1253 and gdb/1255.
1646
1647 2003-08-09 Andrew Cagney <cagney@redhat.com>
1648
1649 Fix GDB PR cli/926.
1650 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1651 * command.h (add_setshow_uinteger_cmd): Declare.
1652 * frame.c (set_backtrace_cmd): New function.
1653 (show_backtrace_cmd): New function.
1654 * frame.c (_initialize_frame): Replace "set/show
1655 backtrace-below-main" with "set/show backtrace past-main". Add
1656 command "set/show backtrace limit".
1657 (backtrace_past_main): Rename "backtrace_below_main".
1658 (backtrace_limit): New variable.
1659 (get_prev_frame): Update. Check the backtrace_limit.
1660
1661 2003-08-09 Andrew Cagney <cagney@redhat.com>
1662
1663 * defs.h (xstrprintf): Declare.
1664 * utils.c (xstrprintf): New function.
1665 * breakpoint.c (insert_breakpoints): Replace sprintf and
1666 non-literal format strings, with xstrprintf and cleanups.
1667 (delete_breakpoint,breakpoint_re_set): Ditto.
1668 (commands_command, insert_breakpoints): Ditto.
1669 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1670 (break_at_finish_command_1): Ditto.
1671
1672 2003-08-09 Andrew Cagney <cagney@redhat.com>
1673
1674 * MAINTAINERS (language support): List Adam Fedor as Objective C
1675 maintainer.
1676
1677 2003-08-08 J. Brobecker <brobecker@gnat.com>
1678
1679 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1680 are now multiarched.
1681
1682 2003-08-08 J. Brobecker <brobecker@gnat.com>
1683
1684 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1685 longer necessary now that hppa64 is partially multiarch'ed.
1686
1687 2003-08-08 Andrew Cagney <cagney@redhat.com>
1688
1689 * interps.c (interp_set): Check for a NULL "old_interp".
1690
1691 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1692
1693 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1694 (install-only): Support DESTDIR.
1695 (uninstall): Likewise.
1696 (install-gdbtk): Likewise.
1697
1698 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1699
1700 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1701 contains something meaningful at all times.
1702
1703 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1704
1705 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1706
1707 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1708
1709 * MAINTAINERS (write after approval): Added self.
1710
1711 2003-08-07 Andrew Cagney <cagney@redhat.com>
1712
1713 * inferior.h (AT_SYMBOL): Define.
1714 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1715 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1716 * mips-tdep.c (mips_call_dummy_address): Delete function.
1717 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1718 set call_dummy_address.
1719
1720 2003-08-07 Andrew Cagney <cagney@redhat.com>
1721
1722 * language.c (op_error): Delete function.
1723 (binop_type_check): Delete function.
1724 * language.h (type_op_error, range_op_error): Delete macros.
1725 (op_error): Delete declaration.
1726
1727 2003-08-07 Andrew Cagney <cagney@redhat.com>
1728
1729 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1730
1731 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1732
1733 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1734 (x86_64_push_arguments): Skip the red zone.
1735
1736 2003-08-05 Andrew Cagney <cagney@redhat.com>
1737
1738 * reggroups.c (reggroup_next): Check for the final entry.
1739
1740 2003-08-04 Andrew Cagney <cagney@redhat.com>
1741
1742 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1743 * cli/cli-script.c (define_command): Call query directly, instead
1744 of passing it a buffer.
1745 * ocd.c (ocd_error): Pass error a constant format string.
1746 * remote-mips.c (mips_error): Use fputs_filtered.
1747
1748 * solib-svr4.c (_initialize_svr4_solib): Update
1749 register_gdbarch_data call.
1750 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1751
1752 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1753 (register_gdbarch_data): Delete "free" parameter. Update
1754 comments.
1755 * gdbarch.h, gdbarch.c: Re-generate.
1756 * reggroups.c (_initialize_reggroup): Update.
1757 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1758 * frame-base.c (_initialize_frame_base): Update.
1759 * frame-unwind.c (_initialize_frame_unwind): Update.
1760 * user-regs.c (_initialize_user_regs): Update.
1761 * remote.c (_initialize_remote): Update.
1762 * regcache.c (_initialize_regcache): Update.
1763
1764 * regcache.c (xfree_regcache_descr): Delete function.
1765 (_initialize_regcache): Update call to register_gdbarch_data.
1766 (init_regcache_descr, init_legacy_regcache_descr): Use
1767 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1768
1769 * remote.c (free_remote_state): Delete function.
1770 (_initialize_remote): Update register_gdbarch_data.
1771 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1772 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1773
1774 2003-08-04 Andrew Cagney <cagney@redhat.com>
1775
1776 * reggroups.c (struct reggroup_el): Define.
1777 (struct reggroups): Delete field "nr_group". Replace array
1778 "group" with a "first" to "last" linked list.
1779 (reggroups_init): Update. Allocate using gdbarch's obstack.
1780 (reggroups_free): Delete function.
1781 (add_group): Update. Add "el" parameter.
1782 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1783 (default_groups): Update.
1784 (reggroup_next): Replace reggroups.
1785 (reggroups_dump): Update.
1786 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1787 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1788 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1789
1790 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1791
1792 * Makefile.in (tui-interp.o): Update dependencies.
1793
1794 2003-08-04 David Carlton <carlton@kealia.com>
1795
1796 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1797 to internal_error call.
1798 * source.c (forward_search_command): Add "%s" format argument.
1799 (reverse_search_command): Ditto.
1800 * top.c (quit_confirm): Ditto.
1801 * cli/cli-setshow.c (do_setshow_command): Ditto.
1802 * cp-valprint.c (cp_print_class_method): Replace
1803 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1804 (cp_print_class_member): Ditto.
1805 * event-top.c (command_line_handler): Ditto.
1806 * linux-proc.c (linux_info_proc_cmd): Ditto.
1807 * p-typeprint.c (pascal_type_print_base): Ditto.
1808 * p-valprint.c (pascal_object_print_class_method): Ditto.
1809 (pascal_object_print_class_member): Ditto.
1810 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1811 * remote.c (remote_cisco_section_offsets): Ditto.
1812 * top.c (command_line_input): Ditto.
1813 * utils.c (vwarning,error_stream,quit): Ditto.
1814 * valprint.c (print_floating,print_binary_chars)
1815 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1816
1817 2003-08-04 Andrew Cagney <cagney@redhat.com>
1818
1819 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1820
1821 2003-08-02 Andrew Cagney <cagney@redhat.com>
1822
1823 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1824 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1825 amd64fbsd-nat.c.
1826
1827 2003-08-02 Andrew Cagney <cagney@redhat.com>
1828
1829 * Makefile.in: Update all dependencies and definitions.
1830
1831 2003-08-02 Adam Fedor <fedor@gnu.org>
1832
1833 * linespec.c (is_objc_method_format): New function
1834 (decode_line_1, locate_first_half): Use it.
1835 Fixes PR objc/1298
1836
1837 2003-08-01 Andrew Cagney <cagney@redhat.com>
1838
1839 * NEWS: Mention that m32r is multi-arch.
1840 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1841 * configure.tgt: Recognize m32r-*-*.
1842 * config/m32r/tm-m32r.h: Delete file.
1843 * config/m32r/m32r.mt: New file.
1844 * m32r-rom.c (m32r_upload_command): Use hostent only when
1845 gethostname succeeds, in order to avoid a compilation
1846 warning.
1847 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1848 compiler warning.
1849
1850 2003-08-01 Michael Snyder <msnyder@redhat.com>
1851
1852 * sh-tdep.c (sh_frame_align): New gdbarch method.
1853 (sh_gdbarch_init): Set up frame_align method.
1854
1855 2003-07-31 Michael Snyder <msnyder@redhat.com>
1856
1857 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1858 which is already covered by the new frames infrastructure.
1859
1860 2003-07-31 Andrew Cagney <cagney@redhat.com>
1861
1862 * user-regs.c (struct user_reg): Add "next" link.
1863 (struct user_regs): Replace "user" with "first" and "last" links.
1864 (append_user_reg): Add pre-allocated "reg" parameter.
1865 (builtin_user_regs): Provide initial value for "last".
1866 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1867 (user_regs_init): Allocate memory from the gdbarch obstack.
1868 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1869 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1870 linked list.
1871 (usernum_to_user_reg): New function.
1872 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1873 (value_of_user_reg): Use usernum_to_user_reg.
1874 (user_regs_free): Delete function.
1875 (_initialize_user_regs): Update register_gdbarch_data call.
1876
1877 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1878
1879 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1880
1881 2003-07-30 Michael Snyder <msnyder@redhat.com>
1882
1883 * value.h (value_being_returned): Add a struct_addr argument.
1884 * infcall.c (call_function_by_hand): Pass struct_addr to
1885 value_being_returned.
1886 * infcmd.c (print_return_value): Pass zero as struct_addr.
1887 * values.c (value_being_returned): If struct_addr is passed,
1888 use it instead of trying to recover it from the inferior.
1889
1890 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1891
1892 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1893 the prologue analyzer won't need to attempt to extract the pc
1894 value from the woefully incomplete dummy frame.
1895 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1896 possible. Disable code which modifies the frame.
1897
1898 2003-07-28 Andrew Cagney <cagney@redhat.com>
1899
1900 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1901 to level 2.
1902 (annotate_breakpoints_table, annotate_record): Ditto.
1903 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1904 (annotate_field_name_end, annotate_field_value): Ditto.
1905 (annotate_field_end, annotate_frame_source_begin): Ditto.
1906 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1907 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1908 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1909 (annotate_frame_address_end, annotate_frame_address): Ditto.
1910 (annotate_frame_args, annotate_frame_end): Ditto.
1911 (annotate_frame_where, annotate_arg_begin): Ditto.
1912 (annotate_arg_name_end, annotate_arg_value): Ditto.
1913 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1914 (annotate_function_call, annotate_signal_name): Ditto.
1915 (annotate_signal_string, annotate_signal_name_end): Ditto.
1916 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1917 (annotate_value_begin, annotate_value_history_value): Ditto.
1918 (annotate_value_history_end, annotate_value_end): Ditto.
1919 (annotate_display_begin, annotate_display_number_end): Ditto.
1920 (annotate_display_format, annotate_display_expression): Ditto.
1921 (annotate_display_expression_end, annotate_display_value): Ditto.
1922 (annotate_display_end, annotate_array_section_begin): Ditto.
1923 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1924 (annotate_elt, annotate_array_section_end): Ditto.
1925
1926 2003-07-28 Andrew Cagney <cagney@redhat.com>
1927
1928 * regcache.c (struct regcache_descr): Update comments on
1929 nr_raw_registers.
1930 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1931 sizeof_raw_register_valid_p.
1932 (init_regcache_descr): Set nr_raw_registers and
1933 sizeof_raw_register_valid_p before calling
1934 init_legacy_regcache_descr.
1935
1936 2003-07-28 Andrew Cagney <cagney@redhat.com>
1937
1938 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1939 MOD NUM_REGS.
1940
1941 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1942
1943 * thread.c (info_threads_command): Use get_selected_frame ().
1944 Check that there is at least one non-sentinel frame.
1945
1946 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1947
1948 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1949 (m68hc11_pop_frame): Remove.
1950 (m68hc11_frame_saved_pc): Remove.
1951 (m68hc11_frame_chain): Remove.
1952 (m68hc11_frame_init_saved_regs): Remove.
1953 (m68hc11_init_extra_frame_info): Remove.
1954 (m68hc11_store_struct_return): Remove.
1955 (m68hc11_saved_pc_after_call): Remove.
1956
1957 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1958
1959 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1960 frame unwind information.
1961 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1962 and adapted for frame unwinding.
1963 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1964 (m68hc11_unwind_pc): New function.
1965 (m68hc11_frame_unwind_cache): New function to analyze frames.
1966 (m68hc11_frame_this_id): New function to create new frame struct.
1967 (m68hc11_frame_prev_register): New function to unwind a register from
1968 the frame.
1969 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1970 (m68hc11_frame_p): New function for the above.
1971 (m68hc11_frame_base_address): New function to return fp of frame.
1972 (m68hc11_frame_args_address): Update for frame.
1973 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1974 (m68hc11_unwind_sp): New function.
1975 (m68hc11_unwind_dummy_id): New function.
1976 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1977 calls.
1978
1979 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1980
1981 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1982 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1983 when we are beyond the current pc.
1984
1985 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1986
1987 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1988 from m68hc11_push_arguments.
1989 (m68hc11_push_arguments): Remove.
1990 (m68hc11_push_return_address): Remove.
1991 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1992 handlers; remove deprecated_extra_stack_alignment_needed.
1993
1994 2003-07-27 Andrew Cagney <cagney@redhat.com>
1995
1996 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1997 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1998 REAL_PC and not the pointer.
1999 * hppa-hpux-tdep.c: Include frame.h
2000
2001 2003-07-27 Andrew Cagney <cagney@redhat.com>
2002
2003 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2004 GDB_MULTI_ACH_PARTIAL.
2005
2006 2003-07-27 Andrew Cagney <cagney@redhat.com>
2007
2008 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2009 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2010 operator at start and not end of line.
2011 (decode_prologue): Ditto.
2012 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2013 frame_unwind_register_unsigned instead of
2014 frame_unwind_unsigned_register.
2015 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2016 read_register.
2017 (m32r_push_dummy_call): Use register_size instead of
2018 REGISTER_RAW_SIZE.
2019 (m32r_frame_sniffer): Replace m32r_frame_p.
2020 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2021 * m32r-rom.c (report_transfer_performance): Delete extern
2022 declaration.
2023 (m32r_load, m32r_upload_command): Use print_transfer_performance
2024 instead of report_transfer_performance.
2025 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2026 / add_show_from_set.
2027
2028 2003-07-26 Andrew Cagney <cagney@redhat.com>
2029
2030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2031 store_return_value and extract_struct_value_address.
2032
2033 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2034
2035 PR c++/1267
2036 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2037 NULL, default to the section containing PC.
2038
2039 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2040
2041 * NEWS: Mention "regs" deprecated for m68hc11 too.
2042
2043 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2044 (m68hc11_print_register): New function to print out one register.
2045 (m68hc11_print_registers_info): New function to print registers.
2046 (show_regs): Deprecate and use the above.
2047 (m68hc11_gdbarch_init): Install the print_registers_info.
2048
2049 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2050
2051 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2052 that we have a SIGTRAP before returning non-zero.
2053
2054 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2055 Elena Zannoni <ezannoni@redhat.com>
2056
2057 * linespec.c (decode_line_2): Avoid crash if
2058 find_function_start_sal() returns empty record.
2059
2060 2003-07-23 Andreas Schwab <schwab@suse.de>
2061
2062 * ia64-tdep.c (ia64_print_insn): New function.
2063 (ia64_gdbarch_init): Set print_insn to it.
2064 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2065 deprecated_tm_print_insn_info.
2066
2067 2003-07-22 Michael Snyder <msnyder@redhat.com>
2068
2069 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2070 handle 8-bit returns (long long).
2071 (h8300h_extract_return_value): Ditto.
2072 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2073
2074 2003-07-22 Andrew Cagney <cagney@redhat.com>
2075
2076 * gdbarch.c Include "gdb_obstack.h".
2077 (struct gdbarch): Add an "obstack".
2078 (alloc_gdbarch_data): Allocate the gdbarch data using
2079 GDBARCH_OBSTACK_CALLOC.
2080 (free_gdbarch_data): Delete function.
2081 (gdbarch_obstack_zalloc): New function.
2082 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2083 Assert that the architecture is not initialized.
2084 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2085 vector from the obstack.
2086 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2087 architecture obstack.
2088 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2089 (set_gdbarch_data): Assert that the data is not initialized.
2090 (struct gdbarch_data): Delete member "free".
2091 (register_gdbarch_data): Do not initialize "free".
2092 * gdbarch.h, gdbarch.c: Re-generate.
2093
2094 2003-07-22 Andrew Cagney <cagney@redhat.com>
2095
2096 * configure.in (build_warnings): Add -Wformat-nonliteral.
2097 * configure: Re-generate.
2098
2099 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2100
2101 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2102
2103 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2104
2105 * findvar.c (read_var_value): Remove case for thread local storage
2106 variables. It is now entirely handled by the dwarf2 location
2107 expression code.
2108 * printcmd.c (address_info): Ditto.
2109 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2110 enumeration value.
2111 (struct symbol): Remove objfile field, which was used by
2112 LOC_THREAD_LOCAL_STATIC only.
2113 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2114 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2115 usage of objfile pointer.
2116 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2117 thread local variables.
2118 Add include of objfiles.h.
2119 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2120 storage variables.
2121 * Makefile.in (dwarf2loc.o): Update dependencies.
2122
2123 2003-07-22 Andrew Cagney <cagney@redhat.com>
2124
2125 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2126 get_frame_base.
2127 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2128 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2129 (struct value): Add opaque declaration.
2130 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2131
2132 2003-07-21 Andrew Cagney <cagney@redhat.com>
2133
2134 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2135 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2136
2137 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2138
2139 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2140 regcache_cooked_read_unsigned instead of read_register.
2141 (m68hc11_saved_pc_after_call): Likewise.
2142 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2143 instead of write_register.
2144 (m68hc11_register_type): New function.
2145 (m68hc11_register_virtual_type): Remove.
2146 (m68hc11_store_return_value): Convert to use the regcache.
2147 (m68hc11_extract_struct_value_address): Likewise.
2148 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2149 m68hc11_register_type; undeprecate store_return_value and
2150 extract_struct_value_address.
2151
2152 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2153
2154 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2155 and translate to use regcache.
2156 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2157
2158 2003-07-18 Andrew Cagney <cagney@redhat.com>
2159
2160 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2161 * gdbarch.h, gdbarch.c: Re-generate.
2162 * i386-tdep.c (i386_gdbarch_init): Do not set
2163 DWARF2_BUILD_FRAME_INFO.
2164 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2165 unconditionally.
2166 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2167 DWARF2_BUILD_FRAME_INFO.
2168
2169 2003-07-18 Andrew Cagney <cagney@redhat.com>
2170
2171 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2172 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2173
2174 2003-07-18 Andrew Cagney <cagney@redhat.com>
2175
2176 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2177 frame_unwind_address_in_block, instead of frame_pc_unwind.
2178 (dwarf2_frame_cache): Ditto.
2179
2180 2003-07-18 Andrew Cagney <cagney@redhat.com>
2181
2182 * user-regs.h (struct gdbarch): Declare opaque.
2183 * ui-out.h (struct ui_file): Declare opaque.
2184 * dwarf2-frame.h (struct frame_info): Declare opaque.
2185
2186 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2187
2188 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2189 #include "...".
2190 (procfs_meminfo): Change strerror to safe_strerror.
2191 (procfs_can_run): Remove K&R badness.
2192
2193 2003-07-17 Michael Snyder <msnyder@redhat.com>
2194
2195 * remote-sim.c: Comment typo fix.
2196
2197 2003-07-17 Andrew Cagney <cagney@redhat.com>
2198
2199 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2200 configure.
2201 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2202 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2203 GDB_MULTI_ARCH_PARTIAL.
2204
2205 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2206
2207 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2208 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2209 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2210
2211 2003-07-16 Theodore A. Roth <troth@openavr.org>
2212
2213 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2214 found.
2215 (avr_frame_unwind_cache): Don't unwind FP for main.
2216 Update a comment.
2217 Save the computed prev_sp.
2218 (avr_saved_regs_unwinder): Remove function.
2219 (avr_frame_prev_register): Use PC unwind logic from
2220 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2221
2222 2003-07-16 Andrew Cagney <cagney@redhat.com>
2223
2224 * frame-base.h (frame_base_p_ftype): Delete definition.
2225 (frame_base_append_predicate): Delete declaration.
2226 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2227 (frame_unwind_append_predicate): Delete declaration.
2228 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2229 (append_predicate): Delete parameter "p".
2230 (frame_unwind_append_predicate): Delete function.
2231 (frame_unwind_append_sniffer): Update call to append_predicate.
2232 (frame_unwind_free): Delete function.
2233 (_initialize_frame_unwind): Pass NULL as "free" to
2234 register_gdbarch_data.
2235 (frame_unwind_init): Append the dummy_frame_sniffer.
2236 (frame_unwind_find_by_frame): Simplify.
2237 * frame-base.c (struct frame_base_table): Delete field "p".
2238 (append_predicate): Delete parameter "p".
2239 (frame_base_append_predicate): Delete function.
2240 (frame_base_append_sniffer): Update call to append_predicate.
2241 (frame_base_free): Delete function.
2242 (frame_base_find_by_frame): Simplify.
2243 (_initialize_frame_base): Pass NULL as "free" to
2244 register_gdbarch_data.
2245 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2246 (x86_64_sigtramp_frame_sniffer): Replace
2247 "x86_64_sigtramp_frame_p".
2248 (x86_64_init_abi): Set the frame unwind sniffers.
2249 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2250 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2251 (m68k_gdbarch_init): Set the frame unwind sniffers.
2252 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2253 "i386_sigtramp_frame_p".
2254 (i386_frame_sniffer): Replace "i386_frame_p".
2255 (i386_gdbarch_init): Set the frame unwind sniffers.
2256 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2257 (avr_gdbarch_init): Set the frame unwind sniffers.
2258 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2259 "alpha_sigtramp_frame_p"
2260 (alpha_heuristic_frame_sniffer): Replace
2261 "alpha_heuristic_frame_p".
2262 (alpha_gdbarch_init): Set the frame unwind sniffers.
2263 (alpha_dwarf2_init_abi): Ditto.
2264 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2265 "alpha_debug_frame_p".
2266 (alpha_mdebug_frame_base_sniffer): Replace
2267 "alpha_mdebug_frame_base_p".
2268 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2269 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2270 (d10v_gdbarch_init): Set the frame unwind sniffer.
2271 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2272 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2273 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2274 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2275 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2276 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2277
2278 2003-07-16 Michael Snyder <msnyder@redhat.com>
2279
2280 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2281 should go thru sh_dsp_register_sim_regno, else the dsp regs
2282 will not get the right values.
2283
2284 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2285
2286 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2287 deprecated_store_floating by call to store_typed_floating.
2288 (sh_sh4_register_convert_to_raw): Substitute call to
2289 deprecated_extract_floating by call to extract_typed_floating.
2290
2291 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2292
2293 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2294
2295 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2296
2297 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2298 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2299 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2300 as possible.
2301 (do_pseudo_register): Remove.
2302 (sh_push_dummy_code): New function.
2303 (sh64_store_struct_return): Rename from sh_store_struct_return.
2304 Only called for sh64 now.
2305 (sh_extract_struct_value_address): Regcache'ify.
2306 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2307 and accomodate new tasks.
2308 (sh64_push_return_address): Rename from sh_push_return_address.
2309 Only called for sh64 now.
2310 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2311 Regcache'ify.
2312 (sh3e_sh4_extract_return_value): Regcache'ify.
2313 (sh_default_store_return_value): Ditto.
2314 (sh3e_sh4_store_return_value): Ditto.
2315 (sh_default_register_byte): Remove.
2316 (sh_sh4_register_byte): Remove.
2317 (sh_default_register_raw_size): Remove.
2318 (sh_sh4_register_raw_size): Remove.
2319 (sh_register_virtual_size): Remove.
2320 (sh_sh3e_register_virtual_type): Remove.
2321 (sh_sh3e_register_type): New function.
2322 (sh_sh4_register_virtual_type): Remove.
2323 (sh_sh4_register_type): New function.
2324 (sh_default_register_virtual_type): Remove.
2325 (sh_default_register_type): New function.
2326 (do_fv_register_info): Add parameters to accomodate call from
2327 sh_print_registers_info.
2328 (do_dr_register_info): Ditto.
2329 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2330 Add parameters to accomodate call from sh_print_registers_info.
2331 (sh_do_fp_register): Ditto.
2332 (sh64_do_pseudo_register): Call do_dr_register_info,
2333 do_fv_register_info and sh_do_fp_register with default parameters.
2334 (sh_do_register): Add parameters to accomodate call from
2335 sh_print_registers_info.
2336 (sh_print_register): Ditto.
2337 (sh_print_registers_info): Rename from sh_do_registers_info.
2338 Add parameters to be used as gdbarch_print_registers_info
2339 implementation. Accomodate removed do_pseudo_register function
2340 pointer.
2341 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2342 function pointer. Call sh_print_register with default parameters.
2343 (sh64_do_registers_info): Call sh_print_registers_info instead of
2344 sh_do_registers_info.
2345 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2346 detection of deprecated vs. non-deprecated functionality.
2347 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2348 function pointer assignments by direct function calls.
2349
2350 2003-07-15 Andrew Cagney <cagney@redhat.com>
2351
2352 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2353 (frame_register_unwind, create_new_frame): Ditto.
2354 (legacy_get_prev_frame, get_frame_type): Ditto.
2355 (get_frame_base_address): Use frame_base_find_by_frame.
2356 (get_frame_locals_address): Use frame_base_find_by_frame.
2357 (get_frame_args_address): Use frame_base_find_by_frame.
2358 * frame-base.h (frame_base_sniffer_ftype): Declare.
2359 (frame_base_append_sniffer): Declare.
2360 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2361 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2362 (frame_base_append_sniffer): New function.
2363 (frame_base_append_predicate): Add a NULL sniffer.
2364 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2365 (struct frame_base_table): Add "sniffer".
2366 (frame_base_free): Free the "sniffer" table.
2367 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2368 (frame_unwind_append_sniffer): Declare.
2369 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2370 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2371 (struct frame_unwind_table): Add "sniffer", delete "middle".
2372 (append_predicate): Add "sniffer" parameter, append the sniffer.
2373 (frame_unwind_init): Update append_predicate call.
2374 (frame_unwind_append_sniffer): New function.
2375 (frame_unwind_append_predicate): Update append_predicate call.
2376 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2377
2378 2003-07-15 Andrew Cagney <cagney@redhat.com>
2379
2380 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2381 before code inhibiting repeated unwind attempts. Add to
2382 commentary on that test's problems.
2383 * blockframe.c (inside_main_func): Look for "main" in the minimal
2384 symbol table.
2385 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2386 identical.
2387
2388 2003-07-15 Andrew Cagney <cagney@redhat.com>
2389
2390 * complaints.c (struct explanation): Define.
2391 (struct complaints): Change type of "explanation" to "struct
2392 explanation".
2393 (symfile_explanations): Convert to a "struct explanation" table.
2394 (vcomplaint): Update.
2395
2396 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2397
2398 * x86-64-linux-nat.c (regmap): Removed.
2399 (supply_gregset, fill_gregset): Call
2400 x86_64_linux_(fill,supply)_gregset functions.
2401 * x86-64-linux-tdep.c (USER_*): New defines.
2402 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2403 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2404 New functions.
2405 (fetch_core_registers): Ditto.
2406 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2407 * x86-64-linux-tdep.h: New file.
2408 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2409 and core-regset.o.
2410 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2411
2412 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2413
2414 * x86-64-tdep.c (x86_64_store_return_value): Use
2415 regcache_cooked_write_part instead of regcache_cooked_write.
2416
2417 * configure.host: Add x86_64-*-freebsd*.
2418 * configure.tgt: Add x86_64-*-freebsd*.
2419 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2420 * amd64fbsd-nat.c: New file.
2421 * amd64fbsd-tdep.c: New file.
2422 * config/i386/nm-fbsd64.h: New file.
2423 * config/i386/fbsd64.mh: New file.
2424 * config/i386/fbsd64.mt: New file.
2425
2426 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2427
2428 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2429 `sc_regs_offset' and `sc_fpregs_offset'.
2430 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2431 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2432 (alpha_sigtramp_register_address): Rewrite to use new members of
2433 `struct gdbarch_tdep'.
2434 (alpha_gdbarch_init): Initialize new members of struct
2435 gdbarch_tdep'.
2436 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2437 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2438 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2439 (alphafbsd_pc_in_sigtramp): Implement.
2440 (alphafbsd_sigtramp_offset): New function.
2441 (alphafbsd_sigcontext_addr): New function.
2442 (alphafbsd_init_abi): Initialize signal trampoline related members
2443 of `struct gdbarch_tdep'.
2444 (_initialize_alphafbsd_tdep): Add prototype.
2445
2446 2003-07-11 Theodore A. Roth <troth@openavr.org>
2447
2448 * Makefile.in (install-only): Quote sed expression when generating
2449 transformed_name.
2450
2451 2003-07-11 Richard Henderson <rth@redhat.com>
2452
2453 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2454 * dwarf2-frame.c: Include complaints.h.
2455 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2456 variable initialization; return NULL on error.
2457 (decode_frame_entry): New.
2458
2459 2003-07-11 Andrew Cagney <cagney@redhat.com>
2460
2461 * frame.h (frame_address_in_block): Delete declaration.
2462 * blockframe.c (frame_address_in_block): Delete function.
2463 (get_frame_block): Use get_frame_address_in_block.
2464 (block_innermost_frame): Ditto.
2465 * stack.c (print_frame, backtrace_command_1): Ditto.
2466
2467 * frame.h (get_frame_address_in_block): Declare.
2468 (frame_unwind_address_in_block): Declare.
2469 * frame.c (frame_unwind_address_in_block): New function.
2470 (get_frame_address_in_block): New function.
2471
2472 2003-07-10 Andrew Cagney <cagney@redhat.com>
2473
2474 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2475 pre-default. Note: re-generate has no effect.
2476
2477 2003-07-10 Andrew Cagney <cagney@redhat.com>
2478
2479 * gdbarch.sh: When a variable, but not a function, compare against
2480 0. Fix problem in previous patch.
2481 * gdbarch.c: Re-generate.
2482
2483 2003-07-10 Andrew Cagney <cagney@redhat.com>
2484
2485 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2486 functions against NULL, not 0.
2487 * gdbarch.c: Re-generate.
2488
2489 2003-07-10 Fred Fish <fnf@ninemoons.com>
2490
2491 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2492 null string instead of a null pointer.
2493 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2494
2495 2003-07-09 Michael Snyder <msnyder@redhat.com>
2496
2497 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2498
2499 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2500
2501 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2502 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2503 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2504 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2505 * x86-64-tdep.c: ... from here.
2506
2507 2003-07-09 Andreas Schwab <schwab@suse.de>
2508
2509 * m68k-tdep.h (enum struct_return): Define.
2510 (struct gdbarch_tdep): Add struct_return.
2511 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2512 bytes are padded to the right, not to the left. Pass struct value
2513 address in register %a1, not on stack.
2514 (m68k_use_struct_convention): New function.
2515 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2516 struct_return in tdep to pcc_struct_return.
2517 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2518 reg_struct_return.
2519
2520 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2521
2522 * somread.c (som_symfile_offsets): Fix compilation error.
2523
2524 2003-07-09 Andrew Cagney <cagney@redhat.com>
2525
2526 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2527 Add comments about the checks.
2528
2529 2003-07-08 Andrew Cagney <cagney@redhat.com>
2530
2531 * Makefile.in: Make dependency section headers consistent.
2532 (config_h): Move to $BUILD headers section.
2533 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2534 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2535 (ada-exp.tab.c): Move to YACC/LEX section.
2536 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2537 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2538
2539 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2540
2541 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2542 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2543 of strerror with safe_strerror, use ISO C function definitions,
2544 and replace instances of sprintf with snprintf.
2545
2546 2003-07-07 Andrew Cagney <cagney@redhat.com>
2547
2548 * frame.c (get_prev_frame): Enable check for identical frames.
2549 Update comments. Update error messages.
2550
2551 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2552
2553 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2554
2555 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2556
2557 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2558 sort_symtab_syms, no longer necessary.
2559
2560 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2561
2562 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2563
2564 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2565
2566 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2567 (mips_register_byte): Likewise.
2568
2569 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2570
2571 * Makefile.in (sparc_tdep_h): New.
2572 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2573 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2574 * sparc-linux-nat.c: Include "sparc-tdep.h".
2575 * sparc-nat.c: Likewise.
2576 * sparc-tdep.c: Likewise.
2577 * sparc64nbsd-nat.c: Likewise.
2578 * sparcnbsd-nat.c: Likewise.
2579 * sparcnbsd-tdep.c: Likewise.
2580 * sparc-tdep.h: New file.
2581 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2582 and sparc_npc_regnum.
2583
2584 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2585
2586 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2587 (mips_linux_cannot_store_register): List supported instead of
2588 unsupported registers.
2589
2590 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2591
2592 * disasm.c (dump_insns): Separate instructions from addresses.
2593
2594 2003-07-07 Andreas Schwab <schwab@suse.de>
2595
2596 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2597 dependencies.
2598 * m68k-tdep.c (NUM_FREGS): Delete.
2599 (SIG_PC_FP_OFFSET): Delete.
2600 (TARGET_M68K): Delete.
2601 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2602 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2603 P_MOVEL_SP, P_MOVEML_SP): Define.
2604 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2605 P_TRAP): Delete.
2606 (m68k_register_raw_size): Delete.
2607 (m68k_register_virtual_size): Delete.
2608 (m68k_register_type): Renamed from m68k_register_virtual_type and
2609 add gdbarch argument.
2610 (m68k_store_struct_return): Delete.
2611 (m68k_deprecated_extract_return_value): Delete.
2612 (m68k_deprecated_extract_struct_value_address): Delete.
2613 (m68k_frame_chain): Delete.
2614 (m68k_frame_saved_pc): Delete.
2615 (m68k_fix_call_dummy): Delete.
2616 (m68k_push_dummy_frame): Delete.
2617 (m68k_pop_frame): Delete.
2618 (m68k_extract_return_value): New function.
2619 (m68k_store_return_value): Rewrite using regcache.
2620 (m68k_extract_struct_value_address): Rewrite using regcache.
2621 (m68k_push_dummy_call): New function.
2622 (struct m68k_frame_cache): Define.
2623 (m68k_alloc_frame_cache): New function.
2624 (m68k_analyze_frame_setup): New function.
2625 (m68k_analyze_register_saves): New function.
2626 (m68k_analyze_prologue): New function.
2627 (m68k_skip_prologue): Rewrite using above functions.
2628 (m68k_unwind_pc): New function.
2629 (m68k_frame_cache): New function.
2630 (m68k_frame_this_id): New function.
2631 (m68k_frame_prev_register): New function.
2632 (m68k_frame_unwind): New variable.
2633 (m68k_frame_p): New function.
2634 (m68k_sigtramp_frame_cache): New function.
2635 (m68k_sigtramp_frame_this_id): New function.
2636 (m68k_sigtramp_frame_prev_register): New function.
2637 (m68k_sigtramp_frame_unwind): New variable.
2638 (m68k_sigtramp_frame_p): New function.
2639 (m68k_frame_base_address): New function.
2640 (m68k_frame_base): New function.
2641 (m68k_unwind_dummy_id): New function.
2642 (fill_gregset): Use regcache_collect.
2643 (fill_fpregset): Likewise.
2644 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2645 defined.
2646 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2647 deprecated_init_frame_pc, deprecated_store_struct_return,
2648 deprecated_extract_return_value, deprecated_store_return_value,
2649 deprecated_frame_chain, deprecated_frame_saved_pc,
2650 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2651 deprecated_register_virtual_size,
2652 deprecated_max_register_raw_size,
2653 deprecated_max_register_virtual_size,
2654 deprecated_register_virtual_type, deprecated_register_size,
2655 deprecated_register_byte, deprecated_register_bytes,
2656 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2657 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2658 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2659 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2660 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2661 deprecated_push_dummy_frame, deprecated_pop_frame,
2662 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2663 only if SYSCALL_TRAP is defined. Set extract_return_value,
2664 store_return_value, extract_struct_value_address, register_type,
2665 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2666 predicates.
2667 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2668 M68K_MAX_REGISTER_SIZE): Define.
2669 (struct m68k_sigtramp_info): Define.
2670 (struct gdbarch_tdep): Add get_sigtramp_info.
2671 * m68klinux-nat.c (fetch_register): Use register_size instead of
2672 REGISTER_RAW_SIZE. Don't put assignment in if.
2673 (store_register): Likewise.
2674 (fetch_inferior_registers): Likewise.
2675 (store_inferior_registers): Likewise.
2676 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2677 (m68k_linux_frame_saved_pc): Delete.
2678 (m68k_linux_sigcontext_reg_offset,
2679 m68k_linux_ucontext_reg_offset): Define.
2680 (m68k_linux_get_sigtramp_info): New function.
2681 (m68k_linux_extract_return_value): Rewrite using regcache.
2682 (m68k_linux_store_return_value): Likewise.
2683 (m68k_linux_extract_struct_value_address): Likewise.
2684 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2685 Don't set deprecated_frame_saved_pc,
2686 deprecated_extract_return_value, deprecated_store_return_value,
2687 deprecated_extract_struct_value_address. Set
2688 extract_return_value, store_return_value,
2689 extract_struct_value_address.
2690
2691 2003-07-07 Andrew Cagney <cagney@redhat.com>
2692
2693 * expprint.c: Include "user-regs.h" instead of "frame.h".
2694 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2695 frame_map_regnum_to_name.
2696 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2697 (frame_map_name_to_regnum): Simplify, call
2698 user_reg_map_name_to_regnum.
2699 (frame_map_regnum_to_name): Simplify, call
2700 user_reg_map_regnum_to_name.
2701 (frame_register_unwind): Update.
2702 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2703 (_initialize_frame_reg): Call user_reg_add_builtin.
2704 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2705 (value_of_register): Use value_of_user_reg.
2706 * eval.c (evaluate_subexp_standard): Update.
2707 * parse.c (write_dollar_variable): Update.
2708 * d10v-tdep.c (d10v_print_registers_info): Update.
2709 * infcmd.c (registers_info): Update.
2710 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2711 (builtin_regs_h): Delete macro.
2712 (user_regs_h): Define.
2713 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2714 (builtin-regs.o): Delete target.
2715 (user-regs.o): Specify dependencies.
2716 (expprint.o): Update dependencies.
2717 (findvar.o): Update dependencies.
2718 (frame.o): Update dependencies.
2719 (std-regs.o): Update dependencies.
2720
2721 2003-07-06 Christopher Faylor <cgf@redhat.com>
2722
2723 * win32-nat.c (solib_symbols_add): Use one variable for all section
2724 address stuff. Pass variable rather than address of variable to
2725 safe_symbol_file_add.
2726
2727 2003-07-06 Andreas Schwab <schwab@suse.de>
2728
2729 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2730
2731 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2732
2733 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2734
2735 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2736
2737 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2738
2739 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2740
2741 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2742 * config/i386/nto.mh: New file.
2743 * config/i386/nm-nto.h: New file.
2744 * configure.host: Add i[3456]86-*-nto*.
2745
2746 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2747
2748 * remote-vx.c (vx_add_symbols): Fix compilation error.
2749
2750 2003-07-03 Andrew Cagney <cagney@redhat.com>
2751
2752 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2753 * gdbarch.h, gdbarch.c: Re-generate.
2754 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2755 (legacy_register_name): Declare.
2756 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2757 (REGISTER_NAME): Define.
2758 * sparc-tdep.c (legacy_register_name): New function.
2759 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2760 (REGISTER_NAME): Define.
2761 (hppa64_register_name): Declare.
2762 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2763 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2764 (hppa64_register_name): New function.
2765 (hppa_register_name): New function.
2766 * arch-utils.c (legacy_register_name): Delete.
2767 * arch-utils.h (legacy_register_name): Delete.
2768
2769 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2770
2771 * cli/cli-interp.c (cli_interpreter_resume): Update the
2772 cli_uiout's stream to gdb_stdout.
2773
2774 2003-07-03 Andrew Cagney <cagney@redhat.com>
2775
2776 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2777 predicate.
2778 * gdbarch.h, gdbarch.c: Re-generate.
2779 * regcache.c (init_regcache_descr): Use legacy code when either
2780 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2781
2782 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2783
2784 * NEWS: Move "set logging" entry into GDB 6.0 section.
2785
2786 2003-07-02 Jim Blandy <jimb@redhat.com>
2787
2788 * s390-tdep.c (struct frame_extra_info): new member:
2789 'stack_bought_valid'.
2790 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2791 initialize fextra_info->stack_bought.
2792 (s390_frameless_function_invocation): Don't trust the value of
2793 fextra_info_ptr->stack_bought unless
2794 fextra_info->stack_bought_valid is set.
2795
2796 New S390 prologue analyzer.
2797 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2798 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2799 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2800 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2801 compute_x_addr, s390_on_stack, s390_store,
2802 s390_get_signal_frame_info): New functions.
2803 (S390_NUM_SPILL_SLOTS): New macro.
2804 (s390_get_frame_info): Rewritten.
2805 (is_arg_reg): Deleted.
2806
2807 Break out the decoding of S/390 instructions into separate
2808 functions, to make it more legible, and easier to check
2809 against the spec.
2810 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2811 is_rx, is_rxe): New functions.
2812 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2813 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2814 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2815 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2816 enums for opcode values. (Is this an improvement?)
2817
2818 2003-07-02 Andrew Cagney <cagney@redhat.com>
2819
2820 * i386-tdep.c: Revert change committed as part of trad-frame code
2821 below.
2822
2823 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2824
2825 * breakpoint.c (insert_catchpoint): Make static.
2826
2827 2003-07-02 Andreas Schwab <schwab@suse.de>
2828
2829 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2830 former ia64_push_arguments and ia64_push_return_address, and use
2831 regcache functions instead of read/write_register.
2832 (ia64_gdbarch_init): Set push_dummy_call instead of
2833 deprecated_push_arguments and deprecated_push_return_address.
2834
2835 2003-07-01 Andreas Jaeger <aj@suse.de>
2836
2837 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2838 before the call.
2839 Set %rax only to number of SSE registers used.
2840
2841 2003-07-01 Andrew Cagney <cagney@redhat.com>
2842
2843 * trad-frame.h: Update comments, a -1 .addr is reserved.
2844 (trad_frame_value_p, trad_frame_addr_p): Declare.
2845 (trad_frame_reg_p): Declare.
2846 (trad_frame_set_value): Rename trad_frame_register_value.
2847 (trad_frame_set_unknown): Declare.
2848 * trad-frame.c (trad_frame_realreg_p): New function.
2849 (trad_frame_addr_p, trad_frame_value_p): New function.
2850 (trad_frame_set_unknown): New function.
2851 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2852 (trad_frame_prev_register): Use trad_frame_realreg_p,
2853 trad_frame_addr_p and trad_frame_value_p.
2854 (trad_frame_set_value): Rename trad_frame_register_value.
2855 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2856 and trad_frame_set_value.
2857
2858 2003-06-30 Jim Blandy <jimb@redhat.com>
2859
2860 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2861 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2862 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2863 for 16 registers, and then 32 more bytes.
2864 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2865 New macros.
2866 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2867 Move up in the file, since it's now used by is_simple_arg.
2868 (is_simple_arg): Don't assume registers are four bytes long.
2869 Exclude all double arguments. Extended floats are not simple
2870 args.
2871 (is_power_of_two): New function.
2872 (pass_by_copy_ref): Call is_power_of_two, and check that the
2873 length fits in a register, rather than listing all the acceptable
2874 sizes. Extended floats are not passed by reference.
2875 (s390_push_arguments): Don't assume registers are four bytes long.
2876 Reserve an argument register to point to the buffer for structures
2877 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2878 S390_STACK_FRAME_OVERHEAD.
2879
2880 2003-06-30 Andreas Schwab <schwab@suse.de>
2881
2882 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2883 format error message.
2884
2885 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2886
2887 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2888
2889 2003-06-30 David Carlton <carlton@kealia.com>
2890
2891 Band-aid for PR c++/1245.
2892 * Makefile.in (cp-support.o): Depend on complaints_h.
2893 * cp-support.c: Include complaints.h. Add declaration for
2894 find_last_component.
2895 (cp_find_first_component): Separate code into
2896 cp_find_first_component_aux.
2897 (cp_find_first_component_aux): Call demangled_name_complaint.
2898 (demangled_name_complaint): New.
2899
2900 2003-06-30 Andrew Cagney <cagney@redhat.com>
2901
2902 * remote.c (remote_write_bytes): Explicitly compute and then use
2903 the payload size. Update comments to reflect. Fixes problem of
2904 GDB not sending small packets as found by Fred Fish.
2905
2906 2003-06-30 Andrew Cagney <cagney@redhat.com>
2907
2908 * remote.c (remote_async_wait): Fix -Wformat problem.
2909
2910 2003-06-29 Andrew Cagney <cagney@redhat.com>
2911
2912 * remote.c (remote_wait): Call error, and not warning, when the
2913 packet is corrupt.
2914 (remote_async_wait): Ditto.
2915
2916 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2917
2918 * sparc-tdep.c (sparc_y_regnum): Make external again.
2919
2920 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2921
2922 * cli/cli-logging.c (pop_output_files): Add void to function
2923 definition.
2924
2925 2003-06-29 Andrew Cagney <cagney@redhat.com>
2926
2927 * frame.c (frame_register_unwind): Use unsigned char when dumping
2928 the buffer contents.
2929
2930 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2931
2932 * cli/cli-logging.c: New file.
2933 * cli-out.c (struct ui_out_data): Add original_stream.
2934 (cli_redirect): New function.
2935 (cli_ui_out_impl): Add cli_redirect.
2936 (cli_out_new): Initialize original_stream.
2937 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2938 (uo_redirect, ui_out_redirect): New.
2939 * ui-out.h (struct ui_out_impl): Add redirect member.
2940 (redirect_ftype): New.
2941 (ui_out_redirect): Add prototype.
2942 * Makefile.in: Add rules for cli-logging.c.
2943 * NEWS: Mention "set logging".
2944
2945 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2946
2947 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2948
2949 2003-06-27 Andrew Cagney <cagney@redhat.com>
2950
2951 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2952 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2953 * avr-tdep.c (avr_call_dummy_address): Delete function.
2954 (avr_gdbarch_init): Do not set call_dummy_address.
2955
2956 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2957
2958 * symfile.c (syms_from_objfile): Move variables to inner block.
2959 Move the checks for the non-mainline case a bit earlier to avoid
2960 doing some useless computations.
2961
2962 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2963
2964 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2965
2966 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2967
2968 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2969 sections.
2970
2971 2003-06-26 Michael Chastain <mec@shout.net>
2972
2973 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2974 gdb/testsuite/gdb.c++/pr-1210.exp.
2975
2976 2003-06-26 Andrew Cagney <cagney@redhat.com>
2977
2978 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2979 altivec_expression.h and altivec_registers.h.
2980
2981 2003-06-26 Andrew Cagney <cagney@redhat.com>
2982
2983 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2984 info->mach when MIPS16. Patch suggested by Fred Fish.
2985
2986 2003-06-26 Andrew Cagney <cagney@redhat.com>
2987
2988 * utils.c (internal_vproblem): Print the problem to a reason
2989 buffer and then pass to query. Make the msg variable more local.
2990
2991 2003-06-26 Andrew Cagney <cagney@redhat.com>
2992
2993 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2994 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2995 * gdbarch.h, gdbarch.c: Re-generate.
2996 * frame-base.c (default_frame_args_address): Update. Use
2997 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2998 not available.
2999 (default_frame_locals_address): Ditto for
3000 DEPRECATED_FRAME_LOCALS_ADDRESS.
3001 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3002 (vax_frame_num_args): Update.
3003 (vax_gdbarch_init): Update.
3004 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3005 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3006 * mcore-tdep.c (mcore_gdbarch_init): Update.
3007 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3008 * ia64-tdep.c (ia64_gdbarch_init): Update.
3009 * symtab.h (address_class): Update comments.
3010 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3011 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3012 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3013 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3014 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3015 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3016 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3017 * alpha-mdebug-tdep.c: Update.
3018 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3019
3020 2003-06-26 Andreas Jaeger <aj@suse.de>
3021
3022 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3023 of SSE registers so that varargs functions work. Rework handling
3024 of passing arguments on the stack.
3025 (x86_64_store_return_value): Return double and float values in SSE
3026 register.
3027
3028 2003-06-24 Michael Chastain <mec@shout.net>
3029
3030 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3031 the "constructor breakpoints ignored" bug.
3032
3033 2003-06-25 David Carlton <carlton@kealia.com>
3034
3035 * MAINTAINERS: Update e-mail address.
3036
3037 2003-06-24 Jim Blandy <jimb@redhat.com>
3038
3039 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3040
3041 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3042 function.
3043 (ppc_linux_init_abi): Register it as the
3044 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3045
3046 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3047 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3048 method.
3049
3050 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3051 (ppc64_standard_linkage_target): Use it.
3052
3053 2003-06-23 Andrew Cagney <cagney@redhat.com>
3054
3055 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3056 for 0 "int0" and 4 "int32" sized registers.
3057 * gdbtypes.c (builtin_type_int0): Define.
3058 (build_gdbtypes): Initialize builtin_type_int0.
3059 * gdbtypes.h (builtin_type_int0): Declare.
3060
3061 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3062
3063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3064 as characters are unsigned.
3065
3066 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3067
3068 PR gdb/1179
3069 * dwarfread.c (struct_type): Skip static fields without crashing.
3070
3071 2003-06-22 Andrew Cagney <cagney@redhat.com>
3072
3073 GDB 6.0 branch created.
3074 * README: Update.
3075 * PROBLEMS: Update. Empty.
3076 * NEWS: Update.
3077
3078 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3079
3080 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3081 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3082
3083 2003-06-22 Andrew Cagney <cagney@redhat.com>
3084
3085 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3086 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3087 Velikov.
3088
3089 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3090
3091 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3092 compilers.
3093
3094 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3095
3096 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3097 argument of val_print.
3098 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3099 to the address argument of baseclass_offset or target_read_memory.
3100 Do add it to the argument of cp_print_value_fields.
3101
3102 2003-06-21 Andrew Cagney <cagney@redhat.com>
3103
3104 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3105 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3106 instead of 0..NUM_REGS.
3107 (mips_register_reggroup_p): New function.
3108 (mips_pseudo_register_write): New function.
3109 (mips_pseudo_register_read): New function.
3110 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3111 based on the register's type.
3112 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3113 cooked.
3114 (mips_get_saved_register): Simplify. Assert that REGNO is a
3115 pseudo / cooked.
3116 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3117 (mips_register_type): Replace mips_register_virtual_type. Map
3118 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3119 when available.
3120 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3121 that the register is cooked / virtual.
3122 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3123 Only get the extra info when needed.
3124 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3125 (mips32_heuristic_proc_desc): Fetch the cooked register.
3126 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3127 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3128 (mips_print_register): Use gdbarch_register_type, instead of
3129 REGISTER_VIRTUAL_TYPE.
3130 (print_gp_register_row): Use gdbarch_register_type, instead of
3131 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3132 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3133 Print the pseudo / cooked registers.
3134 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3135 Print the pseudo / cooked registers.
3136 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3137 REG_NUM is pseudo / cooked.
3138 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3139 (mips_n32n64_xfer_return_value): Ditto.
3140 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3141 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3142 (mips_register_sim_regno): New function.
3143 (mips_gdbarch_init): Set deprecated_register_byte,
3144 register_group_p, pseudo_register_write, pseudo_register_read,
3145 register_sim_regno, and num_pseudo_regs. Set register_type,
3146 instead of register_virtual_type.
3147 * Makefile.in (mips-tdep.o): Update dependencies.
3148 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3149 REGISTER_VIRTUAL_TYPE.
3150 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3151 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3152 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3153 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3154 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3155
3156 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3157
3158 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3159 * cli/cli-cmds.c: Include "gdb_vfork.h".
3160 (shell_escape): Use vfork.
3161
3162 2003-06-21 Andrew Cagney <cagney@redhat.com>
3163
3164 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3165 32 bit floating-point register saves.
3166
3167 * frame.h (deprecated_unwind_get_saved_register): Delete.
3168 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3169 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3170 and deprecated_get_next_frame_hack instead of
3171 deprecated_unwind_get_saved_register.
3172
3173 * mips-tdep.c (mips_dump_tdep): Do not print
3174 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3175
3176 * frame.c (get_frame_register): New function.
3177 (frame_unwind_register_signed): New function.
3178 (get_frame_register_signed): New function.
3179 (frame_unwind_register_unsigned): New function.
3180 (get_frame_register_unsigned): New function.
3181 * frame.h: Add comments on naming schema.
3182 (get_frame_register, frame_unwind_register_signed): Declare.
3183 (get_frame_register_signed, get_frame_register_signed): Declare.
3184 (frame_unwind_register_unsigned): Declare.
3185 (get_frame_register_unsigned): Declare.
3186
3187 2003-06-20 Theodore A. Roth <troth@openavr.org>
3188
3189 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3190
3191 2003-06-20 Theodore A. Roth <troth@openavr.org>
3192
3193 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3194 (avr_read_sp): Ditto.
3195
3196 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3197
3198 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3199 * config/arm/nm-linux.h: Likewise.
3200 * config/arm/tm-linux.h: Likewise.
3201 * config/ia64/nm-linux.h: Likewise.
3202 * config/ia64/tm-ia64.h: Likewise.
3203 * config/s390/tm-linux.h: Likewise.
3204 * config/s390/tm-s390.h: Likewise.
3205 * s390-nat.c: Likewise.
3206 * s390-tdep.c: Likewise.
3207
3208 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3209 * config/ia64/linux.mt: Likewise.
3210 * config/m68k/linux.mh: Likewise.
3211 * config/mips/linux.mt: Likewise.
3212 * config/powerpc/linux.mh: Likewise.
3213 * config/sh/linux.mt: Likewise.
3214
3215 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3216
3217 * solib.c (solib_open): Change tests for whether to search
3218 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3219 comments.
3220
3221 2003-06-19 Theodore A. Roth <troth@openavr.org>
3222
3223 * avr-tdep.c (avr_frame_address): Delete function.
3224 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3225 set_gdbarch_frame_args_address.
3226
3227 2003-06-19 Andrew Cagney <cagney@redhat.com>
3228
3229 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3230 (REGISTER_CONVERT_FROM_TYPE): Delete.
3231 (mips_register_convert_to_type): Delete declaration.
3232 (mips_register_convert_from_type): Delete declaration.
3233 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3234 kernel/.
3235
3236 2003-06-19 Michael Snyder <msnyder@redhat.com>
3237
3238 * linux-nat.h: New file.
3239 * linux-nat.c: Include linux-nat.h.
3240 * lin-lwp.c: Include linux-nat.h.
3241 Move struct lwp_info def to linux-nat.h.
3242 * linux-proc.c: Include linux-nat.h.
3243 (linux_make_note_section): Iterate over lwps instead of threads.
3244 (linux_do_thread_registers): Use lwp instead of merged pid.
3245 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3246 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3247 Add dependency on linux_nat_h.
3248
3249 2003-06-19 Theodore A. Roth <troth@openavr.org>
3250
3251 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3252
3253 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3254
3255 * varobj.c (get_type, get_target_type): Use check_typedef.
3256
3257 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3258
3259 * breakpoint.c (insert_catchpoint): Call internal_error.
3260
3261 2003-06-19 Theodore A. Roth <troth@openavr.org>
3262
3263 * avr-tdep.c (avr_push_dummy_code): Delete function.
3264 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3265
3266 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3267
3268 * arch-utils.c (default_prepare_to_proceed): Remove.
3269 (generic_prepare_to_proceed): Remove.
3270 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3271 (generic_prepare_to_proceed): Remove prototype.
3272 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3273 * gdbarch.c: Regenerate.
3274 * gdbarch.h: Regenerate.
3275 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3276 * hppah-nat.c (hppa_switched_threads): Remove.
3277 * infrun.c (prepare_to_proceed): New static function, copied from
3278 generic_prepare_to_proceed. Remove select_it argument.
3279 (proceed): Call prepare_to_proceed.
3280 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3281 variables.
3282 (ptrace_wait): Don't set the removed variables.
3283 (hppa_switched_threads): Remove.
3284 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3285 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3286 (lin_lwp_prepare_to_proceed): Remove prototype.
3287 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3288 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3289
3290 2003-06-18 Theodore A. Roth <troth@openavr.org>
3291
3292 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3293 trad-frame.h.
3294 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3295 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3296 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3297 (AVR_PROLOGUE_*): Enumerate prologue types.
3298 (struct frame_extra_info): Remove.
3299 (struct avr_unwind_cache): Define.
3300 (avr_write_sp): Delete function.
3301 (avr_read_fp): Ditto.
3302 (avr_init_extra_frame_info): Ditto.
3303 (avr_pop_frame): Ditto.
3304 (avr_frame_saved_pc): Ditto.
3305 (avr_saved_pc_after_call): Ditto.
3306 (avr_push_return_address): Ditto.
3307 (avr_frame_chain): Ditto.
3308 (avr_store_struct_return): Ditto.
3309 (avr_push_arguments): Ditto.
3310 (avr_scan_prologue): Update comments. Changed to set up the info for
3311 cache unwinding. Now returns end of prologue PC.
3312 (avr_skip_prologue): Better handling of functions lacking a prologue
3313 by using avr_scan_prologue.
3314 (avr_scan_arg_moves): New function.
3315 (avr_saved_regs_unwinder): Ditto.
3316 (avr_frame_unwind_cache): Ditto.
3317 (avr_unwind_pc): Ditto.
3318 (avr_frame_this_id): Ditto.
3319 (avr_frame_prev_register): Ditto.
3320 (avr_frame_p): Ditto.
3321 (avr_frame_base_address ): Ditto.
3322 (avr_unwind_dummy_id): Ditto.
3323 (avr_push_dummy_code): Ditto.
3324 (push_stack_item): Ditto.
3325 (pop_stack_item): Ditto.
3326 (avr_push_dummy_call): Ditto.
3327 (struct stack_item): Define.
3328 (avr_frame_unwind): Declare structure.
3329 (avr_frame_base): Ditto.
3330 (avr_gdbarch_init): Remove calls to
3331 set_gdbarch_deprecated_init_frame_pc,
3332 set_gdbarch_deprecated_target_read_fp,
3333 set_gdbarch_deprecated_dummy_write_sp,
3334 set_gdbarch_deprecated_fp_regnum,
3335 set_gdbarch_deprecated_push_arguments,
3336 set_gdbarch_deprecated_push_return_address,
3337 set_gdbarch_deprecated_pop_frame,
3338 set_gdbarch_deprecated_store_struct_return,
3339 set_gdbarch_deprecated_frame_init_saved_regs,
3340 set_gdbarch_deprecated_init_extra_frame_info,
3341 set_gdbarch_deprecated_frame_chain,
3342 set_gdbarch_deprecated_frame_saved_pc,
3343 set_gdbarch_deprecated_saved_pc_after_call.
3344 Add calls to set_gdbarch_push_dummy_call,
3345 set_gdbarch_push_dummy_code,
3346 frame_unwind_append_predicate,
3347 frame_base_set_default,
3348 set_gdbarch_unwind_dummy_id,
3349 set_gdbarch_unwind_pc.
3350 Wrap a long line.
3351
3352 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3353
3354 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3355 registers for H8/300S.
3356 (h8300_print_registers_info): Ditto.
3357 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3358
3359 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3360
3361 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3362 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3363 (lin_lwp_wait): Likewise. Update comments.
3364 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3365 (pull_pid_from_list, linux_record_stopped_pid): New.
3366
3367 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3368
3369 * ada-lang.c (scan_discrim_bound): Name first argument.
3370 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3371 declared by ALL_BLOCK_SYMBOLS.
3372
3373 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3374
3375 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3376 ("regcache.h"): Include it.
3377 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3378
3379 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3380
3381 * NEWS: Mention gdbserver detach change and "disconnect" command.
3382 * infcmd.c (disconnect_command): New function.
3383 (_initialize_infcmd): Add ``disconnect'' command.
3384 * remote.c (remote_async_detach): Delete.
3385 (remote_detach): Merge remote_async_detach.
3386 (remote_disconnect): New.
3387 (init_remote_ops): Set to_disconnect.
3388 (init_remote_cisco_ops): Likewise.
3389 (init_remote_async_ops): Likewise. Use remote_detach.
3390 * target.c (cleanup_target): Default to_disconnect.
3391 (update_current_target): Inherit to_disconnect.
3392 (target_disconnect, debug_to_disconnect): New functions.
3393 (setup_target_debug): Set to_disconnect.
3394 * target.h (struct target_ops): Add to_disconnect.
3395 (target_disconnect): Add prototype.
3396
3397 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3398
3399 * breakpoint.c (insert_catchpoint): New function.
3400 (insert_breakpoints): Use catch_exceptions to call
3401 insert_catchpoint. Disable catchpoints if they fail to insert.
3402
3403 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3404
3405 * symfile.c (reread_symbols): Clear sym_private.
3406
3407 2003-06-17 Andrew Cagney <cagney@redhat.com>
3408
3409 * trad-frame.h (struct frame_info): Add opaque declaration.
3410 * remote-fileio.h (struct cmd_list_element): Add opaque
3411 declaration.
3412 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3413 comments.
3414
3415 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3416
3417 * remote.c (remote_prepare_to_store): Replace call to
3418 deprecated_read_register_bytes with multiple regcache_raw_read
3419 calls.
3420
3421 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3422
3423 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3424 (nto_find_and_open_solib): Likewise.
3425 (nto_init_solib_absolute_prefix): Likewise.
3426 (_initialize_nto_tdep): Fix indentation.
3427
3428 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3429
3430 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3431
3432 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3433
3434 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3435
3436 2003-06-17 Jim Blandy <jimb@redhat.com>
3437
3438 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3439
3440 2003-06-16 Theodore A. Roth <troth@openavr.org>
3441
3442 * avr-tdep.c (avr_extract_return_value): New function.
3443 (avr_gdbarch_init): Set extract_return_value method.
3444
3445 2003-06-16 Andrew Cagney <cagney@redhat.com>
3446
3447 * frame.h (deprecated_get_next_frame_hack): Declare.
3448 * frame.c (legacy_saved_regs_prev_register): Only require
3449 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3450 there are always saved regs.
3451 (deprecated_generic_get_saved_register): Do not require
3452 DEPRECATED_FRAME_INIT_SAVED_REGS.
3453 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3454 use frame ID unwind instead.
3455 (deprecated_get_next_frame_hack): New function.
3456
3457 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3458
3459 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3460 (h8300_push_dummy_call): ...this function. Some minor optimization.
3461 (h8300_push_return_address): Remove.
3462 (h8300_gdbarch_init): Remove calls to
3463 set_gdbarch_deprecated_dummy_write_sp,
3464 set_gdbarch_deprecated_push_arguments and
3465 set_gdbarch_deprecated_push_return_address.
3466 Add call to set_gdbarch_push_dummy_call.
3467
3468 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3469
3470 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3471 (E_PSEUDO_EXR_REGNUM): Ditto.
3472 (h8300_is_argument_spill): Check for instructions moving argument
3473 registers into safe registers.
3474 (h8300_skip_prologue): Check for stm instruction to push registers
3475 used for register variables onto stack.
3476 (gdb_print_insn_h8300): Remove.
3477 (h8300_examine_prologue): Add a comment.
3478 (h8300_register_name): Take pseudo registers into account.
3479 (h8300s_register_name): Ditto.
3480 (h8300sx_register_name): Ditto.
3481 (h8300_print_register): Ditto.
3482 (h8300_print_registers_info): Define "nice" printing order.
3483 (h8300_saved_pc_after_call): Take pseudo registers into account.
3484 (h8300_register_type): Ditto. Return type used for remote connection
3485 when requesting real CCR or EXR register, return actual type when
3486 requesting pseudo CCR or EXR.
3487 (h8300_pseudo_register_read): New function.
3488 (h8300_pseudo_register_write): Ditto.
3489 (h8300_dbg_reg_to_regnum): Ditto.
3490 (h8300s_dbg_reg_to_regnum): Ditto.
3491 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3492 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3493 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3494 set_gdbarch_print_insn architecture dependent.
3495 Call set_gdbarch_pseudo_register_read and
3496 set_gdbarch_pseudo_register_write.
3497 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3498
3499 2003-06-16 Andrew Cagney <cagney@redhat.com>
3500
3501 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3502 * gdbarch.h, gdbarch.c: Re-generate.
3503 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3504 * s390-tdep.c (s390_gdbarch_init): Update.
3505 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3506 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3507 * mips-tdep.c (mips_gdbarch_init): Update.
3508 * mcore-tdep.c (mcore_gdbarch_init): Update.
3509 * cris-tdep.c (cris_gdbarch_init): Update.
3510 * infcall.c (call_function_by_hand): Update.
3511 * ia64-tdep.c (ia64_push_arguments): Update comment.
3512 * frame.c (legacy_get_prev_frame): Do not assume
3513 SAVE_DUMMY_FRAME_TOS_P.
3514 * dummy-frame.c (find_dummy_frame): Update comment.
3515
3516 2003-06-16 Andrew Cagney <cagney@redhat.com>
3517
3518 * regcache.c (do_cooked_read): Do not use register_valid_p.
3519
3520 2003-06-15 Theodore A. Roth <troth@openavr.org>
3521
3522 * avr-tdep.c (avr_register_type): Remove a blank line.
3523 (avr_scan_prologue): Correct some comments.
3524
3525 2003-06-15 Theodore A. Roth <troth@openavr.org>
3526
3527 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3528 prologue types.
3529 Properly scan prologues generated by gcc with the -mcall-prologues
3530 option.
3531 Add code to scan -mcall-prologues for mega devices.
3532
3533 2003-06-15 Theodore A. Roth <troth@openavr.org>
3534
3535 * avr-tdep.c (avr_register_byte): Delete function.
3536 (avr_register_raw_size): Delete function.
3537 (avr_register_virtual_size): Delete function.
3538 (avr_register_virtual_type): Delete function.
3539 (avr_register_type): New function.
3540 (avr_address_to_pointer): Remove unused code.
3541 (avr_read_fp): Need to read FP as two separate bytes due to change to
3542 avr_register_type() usage.
3543 (avr_gdbarch_init): Don't set deprecated_register_size.
3544 Don't set deprecated_register_bytes.
3545 Don't set deprecated_register_byte.
3546 Don't set deprecated_register_raw_size.
3547 Don't set deprecated_max_register_raw_size.
3548 Don't set deprecated_register_virtual_size.
3549 Don't set deprecated_max_register_virtual_size.
3550 Don't set deprecated_register_virtual_type.
3551 Set register_type method.
3552
3553 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3554
3555 * Makefile.in (linux-nat.o): Add rule.
3556 * linux-nat.c: New file.
3557 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3558 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3559 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3560 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3561 * config/arm/linux.mh (NATDEPFILES): Likewise.
3562 * config/i386/linux.mh (NATDEPFILES): Likewise.
3563 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3564 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3565 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3566 * config/mips/linux.mh (NATDEPFILES): Likewise.
3567 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3568 * config/s390/s390.mh (NATDEPFILES): Likewise.
3569 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3570
3571 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3572
3573 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3574 replace out-of-date comment.
3575
3576 2003-06-15 Andrew Cagney <cagney@redhat.com>
3577
3578 * rdi-share/host.h (Fail): Change to a varargs function.
3579 * remote-rdi.c (Fail): Update.
3580
3581 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3582
3583 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3584 (i386_convert_register_p, i386_register_to_value,
3585 i386_register_from_value): Handle types longer than 8 bytes.
3586
3587 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3588
3589 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3590 Move floating-point code to new function in i387-tdep.c.
3591 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3592 New functions containing code moved here from i386-tdep.c.
3593 * i387-tdep.h: Add opaque declaration for `struct type'.
3594 (i387_register_to_value, i387_value_to_register): New prototypes.
3595 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3596 (x86_64_init_abi): Set convert_register_p, register_to_value and
3597 value_to_register here.
3598
3599 2003-06-14 Andrew Cagney <cagney@redhat.com>
3600
3601 * mips-tdep.c (mips_register_to_value): Make static.
3602 (mips_value_to_register): Make static.
3603 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3604 * ia64-tdep.c (ia64_register_raw_size): Make static.
3605 (ia64_register_virtual_size): Make static.
3606 (ia64_register_byte): Make static.
3607 * i387-tdep.c: Include "i387-tdep.h".
3608 (print_387_control_word): Delete function.
3609 (print_387_status_word): Delete function.
3610 (print_387_status_bits): Delete function.
3611 (print_387_control_bits): Delete function.
3612 * Makefile.in (i387-tdep.o): Update dependencies.
3613 * rdi-share/host.h (Fail): Declare.
3614 * remote-rdi.c (Fail): Update to match declaration.
3615
3616 2003-06-14 Andrew Cagney <cagney@redhat.com>
3617
3618 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3619 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3620 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3621 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3622 * README: Delete reference to remote-array.
3623 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3624 (remote-array.o): Delete target.
3625 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3626 * remote-array.c: Delete file.
3627
3628 2003-06-14 Andrew Cagney <cagney@redhat.com>
3629 Mark Kettenis <kettenis@gnu.org>
3630
3631 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3632 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3633 parameter with "frame".
3634 * gdbarch.h, gdbarch.c: Re-generate.
3635 * frame.h (put_frame_register): Declare.
3636 * frame.c (put_frame_register): New function.
3637 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3638 (legacy_register_to_value): Rewrite, use "frame" to get the
3639 register value.
3640 (legacy_value_to_register): Rewrite, use "frame" to find the
3641 register's location before storing.
3642 * arch-utils.h (legacy_convert_register_p): Update.
3643 (legacy_register_to_value, legacy_value_to_register): Update.
3644 * findvar.c (value_from_register): Rewrite, eliminate use of
3645 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3646 "frame" to REGISTER_TO_VALUE.
3647 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3648 lval_reg_frame_relative + lval_register branch of the switch. Do
3649 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3650 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3651 I386_EDI_REGNUM): New defines.
3652 (i386_next_regnum, i386_convert_register_p,
3653 i386_register_to_value, i386_value_to_register): New functions.
3654 (i386_register_convertible, i386_register_convert_to_virtual,
3655 i386_convert_to_raw): Remove functions.
3656 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3657 value_to_register instead of register_convertible,
3658 register_convert_to_virtual and register_convert_to_raw.
3659 * mips-tdep.c (mips_convert_register_p): New function.
3660 (mips_value_to_register): Replace mips_register_convert_from_type.
3661 (mips_register_to_value): Replace mips_register_convert_to_type.
3662 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3663 register_to_value.
3664 * alpha-tdep.c (alpha_convert_register_p): Update.
3665 (alpha_value_to_register): Update, store the register.
3666 (alpha_register_to_value): Update, fetch the register.
3667
3668 2003-06-14 Theodore A. Roth <troth@openavr.org>
3669
3670 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3671 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3672 Don't set deprecated_call_dummy_words.
3673 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3674 Don't set remote_translate_xfer_address.
3675 (avr_io_reg_read_command): Remove commented out debug printf.
3676 Wrap a long line.
3677
3678 2003-06-14 Theodore A. Roth <troth@openavr.org>
3679
3680 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3681 causes gdb to seg fault.
3682
3683 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3684
3685 * sparc-nat.c (fetch_inferior_registers): Correct
3686 a reference to "registers".
3687
3688 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3689
3690 * Makefile.in (exc_request_U_h): Define
3691 (exc_request_S_h): Likewise.
3692 (msg_reply_S_h): Likewise.
3693 (msg_U_h): Likewise.
3694 (notify_S_h): Likewise.
3695 (process_reply_S_h): Likewise.
3696 (gnu-nat.o): Depend on gdb_obstack_h
3697 * gnu-nat.c: Include "gdb_obstack.h".
3698
3699 2003-06-13 Andrew Cagney <cagney@redhat.com>
3700
3701 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3702 * gdbarch.h, gdbarch.c: Re-generate.
3703
3704 2003-06-13 Andrew Cagney <cagney@redhat.com>
3705
3706 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3707 when deprecated REGISTER macros can be deleted.
3708 * gdbarch.h, gdbarch.c: Re-generate.
3709
3710 2003-06-13 Jim Blandy <jimb@redhat.com>
3711
3712 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3713 Linux entry point symbols for _dl_debug_state, too.
3714
3715 2003-06-13 Andrew Cagney <cagney@redhat.com>
3716
3717 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3718 available, do not use the FP register, and always save the TOS.
3719 * dummy-frame.c (dummy_frame_this_id): Do not assert
3720 SAVE_DUMMY_FRAME_TOS.
3721 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3722 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3723 (i386_push_dummy_call): Add 8 to the returned SP.
3724 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3725 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3726 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3727 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3728 (x86_64_push_dummy_call): Return "sp + 16".
3729 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3730 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3731 save_dummy_frame_tos.
3732
3733 2003-06-13 Jim Blandy <jimb@redhat.com>
3734
3735 * frv-tdep.c (frv_use_struct_convention): Delete static
3736 declaration for function deleted in my change of 2003-06-12.
3737
3738 2003-06-13 Theodore A. Roth <troth@openavr.org>
3739
3740 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3741 (avr_pointer_to_address): Shift code addrs left 1 bit.
3742 (avr_convert_from_func_ptr_addr): Delete function since operation is
3743 better handled by avr_address_to_pointer and avr_pointer_to_address.
3744 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3745
3746 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3747
3748 From Kelley Cook <kelleycook@wideopenwest.com>:
3749 * configure.host: Accept i[34567]86 variants.
3750 * configure.tgt: Likewise.
3751 * nlm/configure.in: Likewise.
3752 * nlm/configure: Regenerated.
3753
3754 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3755
3756 * arm-tdep.c (solib-svr4.h): Dont' include it.
3757 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3758 * arm-linux-tdep.c: ... here. Make static.
3759 (arm_linux_init_abi): Register it.
3760 (solib-svr4.h): Include it.
3761 * Makefile.in: Update dependencies.
3762 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3763 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3764
3765 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3766
3767 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3768 indicate registers used for return values.
3769 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3770 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3771 members.
3772 (h8300_init_extra_frame_info): Ditto.
3773 (h8300_frame_locals_address): Removed.
3774 (h8300_frame_args_address): Removed.
3775 (h8300_extract_return_value): Use new regcache structure. Only care
3776 for 16 bit CPUs.
3777 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3778 (h8300_store_return_value): Use new regcache structure. Only care
3779 for 16 bit CPUs.
3780 (h8300h_store_return_value): Same function for 32 bit CPUs.
3781 (h8300_store_struct_return): Removed.
3782 (h8300_extract_struct_value_address): Use new regcache structure.
3783 (h8300h_extract_struct_value_address): Removed.
3784 (h8300_push_dummy_code): New function.
3785 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3786 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3787 set_gdbarch_store_return_value architecture dependent.
3788 Call set_gdbarch_push_dummy_code and
3789 set_gdbarch_extract_struct_value_address.
3790 Remove calls to set_gdbarch_frame_args_address,
3791 set_gdbarch_frame_locals_address,
3792 set_gdbarch_deprecated_store_struct_return,
3793 set_gdbarch_deprecated_extract_return_value,
3794 set_gdbarch_deprecated_extract_struct_value_address,
3795 set_gdbarch_deprecated_call_dummy_words and
3796 set_gdbarch_deprecated_sizeof_call_dummy_words.
3797
3798 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3799
3800 * h8300-tdep.c (h8300_register_byte): Remove.
3801 (h8300h_register_byte): Remove.
3802 (h8300_register_virtual_type): Remove. Substitute by...
3803 (h8300_register_type): New function.
3804 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3805 (h8300h_extract_struct_value_address): Ditto.
3806 (h8300_gdbarch_init): Drop calls to
3807 set_gdbarch_deprecated_register_byte and
3808 set_gdbarch_deprecated_register_virtual_type.
3809 Add call to set_gdbarch_register_type.
3810
3811 2003-06-13 Andrew Cagney <cagney@redhat.com>
3812
3813 * gdbarch.sh: Update comments on registers.
3814 (deprecated_register_byte): Rename register_byte.
3815 (deprecated_register_raw_size): Rename register_raw_size.
3816 (deprecated_register_virtual_size): Rename register_virtual_size.
3817 (deprecated_register_virtual_type): Rename register_virtual_type.
3818 * gdbarch.h, gdbarch.c: Re-generate.
3819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3820 * vax-tdep.c (vax_gdbarch_init): Update.
3821 * v850-tdep.c (v850_gdbarch_init): Update.
3822 * sparc-tdep.c (sparc_gdbarch_init): Update.
3823 * sh-tdep.c (sh_gdbarch_init): Update.
3824 * s390-tdep.c (s390_gdbarch_init): Update.
3825 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3826 * ns32k-tdep.c: Update.
3827 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3828 * mips-tdep.c (mips_gdbarch_init): Update.
3829 * mcore-tdep.c (mcore_gdbarch_init): Update.
3830 * m68k-tdep.c (m68k_gdbarch_init): Update.
3831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3832 * ia64-tdep.c (ia64_gdbarch_init): Update.
3833 * hppa-tdep.c (hppa_gdbarch_init): Update.
3834 * h8300-tdep.c (h8300_gdbarch_init): Update.
3835 * frv-tdep.c (frv_gdbarch_init): Update.
3836 * cris-tdep.c (cris_gdbarch_init): Update.
3837 * avr-tdep.c (avr_gdbarch_init): Update.
3838 * alpha-tdep.c (alpha_gdbarch_init): Update.
3839 * arm-tdep.c (arm_gdbarch_init): Update.
3840
3841 2003-06-13 Andrew Cagney <cagney@redhat.com>
3842
3843 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3844 mips_o32_use_struct_convention with always_use_struct_convention.
3845
3846 2003-06-12 David Carlton <carlton@kealia.com>
3847
3848 * cp-namespace.c (cp_set_block_scope): Comment out
3849 processing_has_namespace_info branch.
3850
3851 2003-06-12 Jim Blandy <jimb@redhat.com>
3852
3853 Recognize and skip 64-bit PowerPC Linux linkage functions.
3854 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3855 insn_pattern, insns_match_pattern, d_field, ds_field): New
3856 functions, macros, and types for working with PPC instructions.
3857 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3858 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3859 ppc64_skip_trampoline_code): New functions, variables, and macros
3860 for recognizing and skipping linkage functions.
3861 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3862 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3863
3864 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3865 register offsets for both the 32- and 64-bit interfaces.
3866
3867 Actually finish the job started by my change of 2003-05-29.
3868 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3869 other #definition of this.
3870 (ppc_linux_skip_trampoline_code): Remove declaration.
3871 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3872 static.
3873 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3874 method for GDBARCH.
3875
3876 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3877 'long' on ppc64-*-linux*.
3878
3879 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3880 isn't #defined, assume the register doesn't exist: act as if
3881 tdep->ppc_mq_regnum were -1.
3882
3883 * configure.host, configure.tgt: Add entries for
3884 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3885 powerpc/linux.mt.
3886 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3887 New files.
3888
3889 * arch-utils.c (always_use_struct_convention): New function.
3890 * arch-utils.h (always_use_struct_convention): New prototype.
3891 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3892 (alpha_gdbarch_init): Register always_use_struct_convention,
3893 instead of alpha_use_struct_convention.
3894 * cris-tdep.c (cris_use_struct_convention): Delete.
3895 (cris_gdbarch_init): Register always_use_struct_convention,
3896 instead of cris_use_struct_convention.
3897 * frv-tdep.c (frv_use_struct_convention): Delete.
3898 (frv_gdbarch_init): Register always_use_struct_convention,
3899 instead of frv_use_struct_convention.
3900 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3901 (h8300_gdbarch_init): Register always_use_struct_convention,
3902 instead of h8300_use_struct_convention.
3903 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3904 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3905 instead of mips_o32_use_struct_convention.
3906
3907 2003-06-12 Andrew Cagney <cagney@redhat.com>
3908
3909 * wince.c: Include "mips-tdep.h".
3910 * mips-tdep.h (mips_next_pc): Declare.
3911 * mcore-tdep.c: Make more local functions static.
3912 * Makefile.in (wince.o): Update dependencies.
3913
3914 2003-06-12 David Carlton <carlton@kealia.com>
3915
3916 * symtab.c (lookup_symbol_aux_minsyms): Replace
3917 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3918 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3919 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3920 SYMBOL_NATURAL_NAME.
3921
3922 2003-06-12 Andreas Schwab <schwab@suse.de>
3923
3924 * Makefile.in (tuiDisassem.o): Update dependencies.
3925
3926 2003-06-12 David Carlton <carlton@bactrian.org>
3927
3928 * symtab.h: Delete declaration of make_symbol_overload_list.
3929 Add declaration of lookup_partial_symbol.
3930 * symtab.c (remove_params): Move to cp-support.c.
3931 (overload_list_add_symbol, make_symbol_overload_list)
3932 (sym_return_val_size, sym_return_val_index): Ditto.
3933 (lookup_partial_symbol): Make extern.
3934 * cp-support.h: Add declaration of make_symbol_overload_list.
3935 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3936 symtab.h, and block.h.
3937 (remove_params): Move here from symtab.c.
3938 (overload_list_add_symbol, make_symbol_overload_list)
3939 (sym_return_val_size, sym_return_val_index): Ditto.
3940 * valops.c: Include cp-support.h.
3941 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3942 frame_h, and block_h.
3943 (valops.o): Depend on cp_support_h.
3944
3945 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3946
3947 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3948 substitute by NUM_REGS throughout.
3949 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3950 (h8300s_register_name): New function for H8S registers.
3951 (h8300sx_register_name): Ditto for H8SX registers.
3952 (h8300_print_register): Revise register printing, avoid depending
3953 on 32 bit long.
3954 (h8300_register_byte): Only care for H8/300 registers.
3955 (h8300h_register_byte): New function for any other architecture.
3956 (h8300_register_raw_size): Remove.
3957 (h8300_register_virtual_type): Revise to return actually useful
3958 type.
3959 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3960 (h8300h_extract_struct_value_address): New function for any other
3961 architecture.
3962 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3963 set_gdbarch_register_name, set_gdbarch_register_byte,
3964 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3965 Remove calls to set_gdbarch_deprecated_register_size,
3966 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3967 set_gdbarch_deprecated_max_register_raw_size,
3968 set_gdbarch_register_virtual_size and
3969 set_gdbarch_deprecated_max_register_virtual_size entirely.
3970 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3971 set_gdbarch_long_double_bit.
3972
3973 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3974
3975 * doublest.c (convert_doublest_to_floatformat): When dealing
3976 with the implied integer bit, only alter mant_bits if we are
3977 processing a full 32 bits of mantissa.
3978
3979 2003-06-11 David Carlton <carlton@bactrian.org>
3980
3981 * dictionary.h: New.
3982 * dictionary.c: New.
3983 * block.h: Add opaque declaration for struct dictionary.
3984 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3985 'sym' members.
3986 (BLOCK_DICT): New macro.
3987 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3988 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3989 BLOCK_SHOULD_SORT.
3990 (ALL_BLOCK_SYMBOLS): Update definition.
3991 * Makefile.in (SFILES): Add dictionary.c.
3992 (dictionary_h): New.
3993 (COMMON_OBS): Add dictionary.o.
3994 (dictionary.o): New.
3995 (ada-lang.o): Depend on dictionary_h.
3996 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3997 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3998 (mi-cmd-stack.o): Ditto.
3999 (gdbtk-cmds.o): Update dependencies.
4000 (gdbtk-stack.o): Ditto.
4001 * ada-lang.c: Include dictionary.h.
4002 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4003 (fill_in_ada_prototype, debug_print_block): Ditto.
4004 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4005 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4006 'is_sorted'.
4007 * mdebugread.c: Include dictionary.h.
4008 (struct parse_stack): Delete 'maxsyms' member.
4009 (parse_symbol): Update calls to new_block. Delete calls to
4010 shrink_block. Use dictionary methods.
4011 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4012 Update calls to new_symtab. Don't maintain maxsyms data.
4013 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4014 (add_symbol): Just call dict_add_symbol.
4015 (new_symtab): Delete 'maxsyms' argument.
4016 (new_symtab): Update calls to new_block.
4017 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4018 (shrink_block): Delete function.
4019 (fixup_sigtramp): Update call to new_block. Add symbol via
4020 dict_add_symbol.
4021 * jv-lang.c: Include dictionary.h.
4022 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4023 appropriately. Set class_symtab->free_func. Make sure the
4024 blockvector is big enough to hold two blocks.
4025 (add_class_symtab_symbol): Use dictionary methods.
4026 (free_class_block): New function.
4027 (type_from_class): Replace explicit iteration by
4028 ALL_BLOCK_SYMBOLS.
4029 * symtab.h (struct symtab): Replace 'free_ptr' method by
4030 'free_func'.
4031 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4032 sort_symtab_syms.
4033 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4034 sort_symtab_syms.
4035 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4036 Include dictionary.h.
4037 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4038 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4039 sort_symtab_syms.
4040 * objfiles.c: Include dictionary.h.
4041 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4042 * buildsym.c: Include dictionary.h.
4043 (finish_block): Use dictionary methods.
4044 (end_symtab): Set free_func to NULL, not free_ptr.
4045 * tracepoint.c: Include dictionary.h.
4046 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4047 (scope_info): Ditto.
4048 * stack.c: Include dictionary.h.
4049 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4050 (print_block_frame_labels, print_frame_arg_vars)
4051 (print_frame_args): Ditto.
4052 * symmisc.c (free_symtab_block): Use dictionary methods.
4053 (dump_symtab): Ditto.
4054 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4055 Include dictionary.h.
4056 * symfile.h: Delete declarations of sort_block_syms,
4057 sort_symtab_syms.
4058 * symfile.c (sort_block_syms): Delete.
4059 (sort_symtab_syms): Delete.
4060 * symtab.c: Include dictionary.h.
4061 (lookup_block_symbol): Use dictionary iterators.
4062 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4063 (search_symbols, make_symbol_completion_list): Ditto.
4064 (make_symbol_overload_list): Ditto.
4065 * valops.c (value_of_local): Use dict_empty.
4066 Include dictionary.h.
4067
4068 2003-06-11 J. Brobecker <brobecker@gnat.com>
4069
4070 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4071
4072 2003-06-11 David Carlton <carlton@bactrian.org>
4073
4074 * block.h (BLOCK_SHOULD_SORT): Delete.
4075 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4076 blocks.
4077 * ada-lang.c (ada_add_block_symbols): Ditto.
4078 * symfile.c (sort_block_syms): Delete.
4079 (sort_symtab_syms): Ditto.
4080 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4081 declarations.
4082 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4083 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4084 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4085 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4086 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4087 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4088 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4089
4090 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4091
4092 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4093 bits to 128.
4094
4095 2003-06-11 Andrew Cagney <cagney@redhat.com>
4096
4097 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4098 REGISTER_CONVERTIBLE.
4099 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4100 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4101 * gdbarch.h, gdbarch.c: Re-generate.
4102 * arch-utils.h (deprecated_register_convertible_not): Rename
4103 generic_register_convertible_not.
4104 * arch-utils.c (deprecated_register_convertible_not): Rename
4105 generic_register_convertible.
4106 (legacy_convert_register_p, legacy_register_to_value): Update.
4107 * sh-tdep.c (sh64_push_arguments): Update.
4108 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4109 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4110 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4111 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4112 * arch-utils.c (legacy_value_to_register): Update.
4113 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4114 (rs6000_register_convert_to_raw): Make parameter "from" const.
4115 * mips-tdep.c (mips_gdbarch_init): Update.
4116 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4117 * infcmd.c (default_print_registers_info): Update.
4118 * ia64-tdep.c (ia64_gdbarch_init): Update.
4119 (ia64_register_convert_to_raw): Make parameter "from" const.
4120 * i386-tdep.c (i386_gdbarch_init): Update.
4121 (i386_register_convert_to_raw): Update.
4122
4123 2003-06-11 Andrew Cagney <cagney@redhat.com>
4124
4125 * remote-fileio.c: Include "remote-fileio.h".
4126 * Makefile.in (remote-fileio.o): Update dependencies.
4127 (remote_fileio_h): Fix typo.
4128
4129 2003-06-11 Andrew Cagney <cagney@redhat.com>
4130
4131 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4132 (xstormy16_save_dummy_frame_tos): Make static.
4133 (_initialize_xstormy16_tdep): Add declaration.
4134 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4135 * v850-tdep.c: Make local functions static.
4136 (_initialize_v850_tdep): Add declaration.
4137 * sparc-tdep.c: Make local functions static.
4138 (_initialize_sparc_tdep): Add declaration.
4139 * sh-tdep.c: Make local functions static.
4140 (_initialize_sh_tdep): Add declaration.
4141 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4142 * s390-tdep.c: Make local functions static.
4143 (_initialize_s390_tdep): Add declaration.
4144 * dbxread.c (find_stab_function_addr): Make static.
4145 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4146 * ocd.c (_initialize_remote_ocd): Add declaration.
4147 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4148 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4149 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4150 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4151 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4152 * remote-array.c (_initialize_array): Add declaration.
4153 (_initialize_remote_monitors): Add declaration.
4154 * remote-mips.c: Make local functions static.
4155 (_initialize_remote_mips): Add declaration.
4156 * mcore-tdep.c: Make all local functions static.
4157 (_initialize_mcore_tdep): Add declaration.
4158 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4159 * abug-rom.c (_initialize_abug_rom): Add declaration.
4160 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4161 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4162 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4163 * remote-est.c (_initialize_est): Add declaration.
4164 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4165 (m68hc11_call_dummy_address): Make static.
4166 * ia64-tdep.c: Make local functions static.
4167 (_initialize_ia64_tdep): Add declaration.
4168 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4169 * monitor.c (monitor_wait_filter): Make static.
4170 (_initialize_remote_monitors): Add declaration.
4171 * remote-hms.c (_initialize_remote_hms): Add declaration.
4172 * remote-e7000.c (fetch_regs_from_dump): Make static.
4173 (expect_n): Make static.
4174 (_initialize_remote_e7000): Add declaration.
4175 * ser-e7kpc.c: Always include "defs.h".
4176 (_initialize_ser_e7000pc): Add declaration.
4177 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4178 * cris-tdep.c: Make all but one function static.
4179 (_initialize_cris_tdep): Add declaration.
4180 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4181 * solib.c (update_solib_list): Make static.
4182 (_initialize_solib): Add declaration.
4183 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4184 (_initialize_avr_tdep): Add declaration.
4185 * remote-rdi.c (voiddummy): Make static.
4186 (_initialize_remote_rdi): Add declaration.
4187 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4188 * remote-rdp.c (send_rdp): Make static.
4189 (_initialize_remote_rdp): Add declaration.
4190 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4191
4192 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4193
4194 * remote-fileio.c: Make ari happy.
4195
4196 2003-06-10 J. Brobecker <brobecker@gnat.com>
4197
4198 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4199 fetching the trailing bytes of the buffer we are about to write.
4200
4201 2003-06-10 Andrew Cagney <cagney@redhat.com>
4202
4203 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4204 * Makefile.in (remote-fileio.o): Update dependencies.
4205 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4206 include <setjmp.h>, or <sys/types.h> conditional on USG.
4207 (remote_fio_jmp_buf): Delete global variable.
4208
4209 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4210 Martin M. Hunt <hunt@redhat.com>
4211
4212 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4213 (SFILES): Add remote-fileio.c.
4214 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4215 dependencies for building remote.o.
4216 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4217 * remote-fileio.h: New header file defining remote File-I/O interface.
4218 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4219 static storage class.
4220 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4221 'F' packet.
4222 (_initialize_remote): Call initialize_remote_fileio().
4223 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4224 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4225 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4226 (captured_main): Initialize new ui_files.
4227 * ui-file.c: Add read and fgets input functions.
4228 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4229 (null_file_read): New function.
4230 (ui_file_read): New function.
4231 (set_ui_file_read): New function.
4232 (stdio_file_read): New function.
4233 * ui-file.h: New type ui_file_read_ftype.
4234 (set_ui_file_read): Declare.
4235 (ui_file_read): Declare.
4236
4237 2003-06-09 Andrew Cagney <cagney@redhat.com>
4238
4239 * frame.h (deprecated_unwind_get_saved_register): Rename
4240 generic_unwind_get_saved_register, update comments.
4241 * mips-tdep.c (mips_get_saved_register): Update.
4242 * frame.c (deprecated_unwind_get_saved_register): Update.
4243
4244 2003-06-09 Andrew Cagney <cagney@redhat.com>
4245
4246 * vax-tdep.c (vax_frame_locals_address): Delete function.
4247 (vax_gdbarch_init): Do not set frame_locals_address.
4248 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4249 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4250 * s390-tdep.c (s390_frame_args_address): Delete function.
4251 (s390_gdbarch_init): Do not set frame_args_address or
4252 frame_locals_address.
4253 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4254 (ns32k_gdbarch_init): Do not set frame_locals_address.
4255 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4256 (hppa_frame_locals_address): Delete function.
4257 (hppa_gdbarch_init): Do not set frame_args_address, or
4258 frame_locals_address.
4259 * arm-tdep.c (arm_frame_args_address): Delete.
4260 (arm_frame_locals_address): Delete.
4261 (arm_gdbarch_init): Do not set frame_args_address, or
4262 frame_locals_address.
4263
4264 2003-06-09 Andrew Cagney <cagney@redhat.com>
4265
4266 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4267 * gdbarch.h, gdbarch.c: Re-generate.
4268 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4269 * arch-utils.c (frame_num_args_unknown): Delete function.
4270 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4271 (frame_info): Use FRAME_NUM_ARGS_P.
4272 * arm-tdep.c (arm_frame_num_args): Delete function.
4273 (arm_gdbarch_init): Do not set frame_num_args.
4274 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4275 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4276 (hppa_gdbarch_init): Do not set frame_num_args.
4277 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4279 frame_num_args to default frame_num_args_unknown.
4280 * v850-tdep.c (v850_gdbarch_init): Ditto.
4281 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4282 * sh-tdep.c (sh_gdbarch_init): Ditto.
4283 * s390-tdep.c (s390_gdbarch_init): Ditto.
4284 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4285 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4286 * mips-tdep.c (mips_gdbarch_init): Ditto.
4287 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4288 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4290 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4291 * i386-tdep.c (i386_gdbarch_init): Ditto.
4292 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4293 * frv-tdep.c (frv_gdbarch_init): Ditto.
4294 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4295 * cris-tdep.c (cris_gdbarch_init): Ditto.
4296 * avr-tdep.c (avr_gdbarch_init): Ditto.
4297 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4298
4299 2003-06-09 Andrew Cagney <cagney@redhat.com>
4300
4301 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4302 (print_frame_args): Moved to "stack.c".
4303 * stack.c: Include "gdb_assert.h".
4304 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4305 (print_frame_args): Moved from "printcmd.c".
4306 * frame.h (print_frame_args): Delete declaration.
4307 * Makefile.in (stack.o): Update dependencies.
4308
4309 2003-06-08 Andrew Cagney <cagney@redhat.com>
4310
4311 * frame.c (get_prev_frame): Remove reference to
4312 frame_args_address_correct in comments.
4313 * frame-base.c (default_frame_args_address): Delete code
4314 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4315 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4316 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4317 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4318 (vax_frame_args_address_correct): Delete declaration.
4319
4320 2003-06-08 Andrew Cagney <cagney@redhat.com>
4321
4322 * gdbarch.sh (UNWIND_SP): Add.
4323 * gdbarch.h, gdbarch.c: Re-generate.
4324 * frame.c (frame_sp_unwind): New function.
4325 (get_frame_sp): New function.
4326 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4327 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4328 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4329 value.
4330 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4331 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4332
4333 2003-06-08 Andrew Cagney <cagney@redhat.com>
4334
4335 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4336 REMOTE_BREAKPOINT.
4337 * remote.c: Update.
4338 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4339 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4340 * config/m68k/tm-sun3.h: Update.
4341 * config/m68k/tm-m68klynx.h: Update.
4342 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4343
4344 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4345 trad_frame". Update comments.
4346 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4347 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4348 (trad_frame_register_value, trad_frame_prev_register): Update.
4349
4350 2003-06-08 Andrew Cagney <cagney@redhat.com>
4351
4352 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4353 from GCC's acinclude.m4.
4354 * configure.in: Check for getopt's delcaration.
4355 * aclocal.m4, config.in, configure: Re-generate.
4356 * main.c (error_init): Delete declaration.
4357 * defs.h (error_init): Declare.
4358 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4359 (rs6000_convert_from_func_ptr_addr): Make static.
4360 (_initialize_rs6000_tdep): Add declaration.
4361 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4362 (show_commands, set_verbose, show_history): Delete declaration.
4363 * top.h (set_verbose): Add declaration.
4364 (show_history, set_history, show_commands): Add declaration.
4365 (do_restore_instream_cleanup): Add declaration.
4366 * objc-lang.c (specialcmp): Make static.
4367 (print_object_command): Make static.
4368 (find_objc_msgsend): Make static.
4369 (find_objc_msgcall_submethod_helper): Make static.
4370 (find_objc_msgcall_submethod): Make static.
4371 (_initialize_objc_language): Add declaration.
4372 (find_implementation_from_class): Make static.
4373 (find_implementation): Make static.
4374 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4375 * objc-lang.h (lookup_struct_typedef): Add declaration.
4376 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4377 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4378 (do_restore_user_call_depth): Make static.
4379 (do_restore_instream_cleanup): Delete declaration.
4380 (dont_repeat): Delete declaration.
4381 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4382 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4383 * reggroups.c (_initialize_reggroup): Add declaration.
4384 * cp-support.c (_initialize_cp_support): Add declaration.
4385 * cp-abi.c (_initialize_cp_abi): Add declaration.
4386 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4387 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4388 (_initialize_gnu_v3_abi): Add declaration.
4389 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4390 (_initialize_gnu_v2_abi): Add declaration.
4391 * frame-base.c (_initialize_frame_base): Add declaration.
4392 * doublest.c (floatformat_from_length): Make static.
4393 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4394 * frame.c (create_sentinel_frame): Make static.
4395 (_initialize_frame): Add declaration.
4396 * top.c (do_catch_errors): Make static.
4397 (gdb_rl_operate_and_get_next_completion): Make static.
4398 * typeprint.c: Include "typeprint.h".
4399 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4400 (sentinel_frame_this_id): Make static.
4401 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4402 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4403 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4404 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4405 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4406 * maint.c (maintenance_print_architecture): Make static.
4407 * signals/signals.c (_initialize_signals): Add declaration.
4408 * std-regs.c (_initialize_frame_reg): Add declaration.
4409 * jv-exp.y (push_variable): ISO C definition.
4410 (push_qualified_expression_name): Ditto.
4411 * memattr.c (_initialize_mem): Add declaration.
4412 * remote.c (remote_check_watch_resources): Make static.
4413 (remote_stopped_by_watchpoint): Make static.
4414 (remote_stopped_data_address): Make static.
4415 * d10v-tdep.c (nr_dmap_regs): Make static.
4416 (a0_regnum): Make static.
4417 (d10v_frame_unwind_cache): Make static.
4418 (d10v_frame_p): Make static.
4419 * osabi.c (show_osabi): Make static.
4420 (_initialize_gdb_osabi): Add extern declaration.
4421 * gdbtypes.c (make_qualified_type): Make static.
4422 (safe_parse_type): Make static.
4423 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4424 * macrotab.c (macro_bcache_free): Make static.
4425 * interps.c (interp_set_quiet): Make static.
4426 (interpreter_exec_cmd): Make static.
4427 * stack.h (select_frame_command): New file.
4428 * stack.c: Include "stack.h".
4429 (select_frame_command_wrapper): Delete function.
4430 (select_frame_command): Make global.
4431 * infcall.c: Include "infcall.h".
4432 * linespec.c: Include "linespec.h".
4433 * symfile.c (sections_overlap): Make static.
4434 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4435 * charset.c (_initialize_charset): Add missing prototype.
4436 * regcache.c (init_legacy_regcache_descr): Make static.
4437 (do_regcache_xfree): Make static.
4438 (regcache_xfer_part): Make static.
4439 (_initialize_regcache): Add missing prototype.
4440 * breakpoint.c (parse_breakpoint_sals): Make static.
4441 (breakpoint_sals_to_pc): Make static.
4442 * interps.h (clear_interpreter_hooks): ISO C declaration.
4443 * Makefile.in (stack_h): Define.
4444 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4445 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4446
4447 2003-06-08 Andrew Cagney <cagney@redhat.com>
4448
4449 * Makefile.in (d10v-tdep.o): Update dependencies.
4450 (SFILES): Add trad-frame.c.
4451 (trad_frame_h): Define.
4452 (COMMON_OBS): Add trad-frame.o.
4453 (trad-frame.o): Specify dependencies.
4454 * d10v-tdep.c: Include "trad-frame.h".
4455 (saved_regs_unwinder): Delete function.
4456 (d10v_frame_prev_register): Use trad_frame_prev_register.
4457 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4458 trad_frame", delete "regs" and "prev_sp".
4459 (prologue_find_regs): Use trad-frame.
4460 * trad-frame.h, trad-frame.c: New files.
4461
4462 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4463
4464 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4465
4466 2003-06-07 Adam Fedor <fedor@gnu.org>
4467
4468 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4469 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4470 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4471 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4472 resolve_msgsend_super, resolve_msgsend_super_stret):
4473 Use it.
4474
4475 2003-06-07 Andrew Cagney <cagney@redhat.com>
4476
4477 * symfile.h: Re-indent, clean up comments.
4478
4479 2003-06-07 Andrew Cagney <cagney@redhat.com>
4480
4481 * inferior.h (deprecated_write_sp): Replace
4482 generic_target_write_sp.
4483 * regcache.c (deprecated_write_sp): Replace
4484 generic_target_write_sp.
4485 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4486 * vax-tdep.c (vax_gdbarch_init): Update.
4487 * v850-tdep.c (v850_gdbarch_init): Update.
4488 * sparc-tdep.c (sparc_gdbarch_init): Update.
4489 * sh-tdep.c (sh_gdbarch_init): Update.
4490 * s390-tdep.c (s390_gdbarch_init): Update.
4491 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4492 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4493 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4494 * mcore-tdep.c (mcore_gdbarch_init): Update.
4495 * m68k-tdep.c (m68k_gdbarch_init): Update.
4496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4497 * ia64-tdep.c (ia64_gdbarch_init): Update.
4498 * h8300-tdep.c (h8300_gdbarch_init): Update.
4499 * frv-tdep.c (frv_gdbarch_init): Update.
4500 * cris-tdep.c (cris_gdbarch_init): Update.
4501 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4502
4503 2003-06-07 Andrew Cagney <cagney@redhat.com>
4504
4505 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4506 Assert that PC_REGNUM is valid.
4507 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4508
4509 2003-06-07 Andrew Cagney <cagney@redhat.com>
4510
4511 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4512 * gdbarch.h, gdbarch.c: Regenerate.
4513 * mn10300-tdep.c: Include "gdb_assert.h".
4514 (mn10300_read_fp): New function.
4515 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4516 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4517 * ia64-tdep.c: Include "gdb_assert.h".
4518 (ia64_read_fp): New function.
4519 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4520 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4521 * regcache.c (generic_target_read_sp): Delete function.
4522 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4523 * inferior.h (generic_target_read_sp): Delete declaration.
4524 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4525 generic_target_read_sp.
4526 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4527 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4528 * sh-tdep.c (sh_gdbarch_init): Ditto.
4529 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4530 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4531
4532 2003-06-07 Andrew Cagney <cagney@redhat.com>
4533
4534 * gdbarch.sh: Comment each field of startup_gdbarch.
4535 * gdbarch.h, gdbarch.c: Re-generate.
4536
4537 2003-06-07 Andrew Cagney <cagney@redhat.com>
4538
4539 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4540 * gdbarch.h, gdbarch.c: Re-generate.
4541 * regcache.c: Update comments on read_pc et.al.
4542 (generic_target_read_pc): Delete function.
4543 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4544 * inferior.h (generic_target_read_pc): Delete declaration.
4545 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4546 generic_target_read_pc.
4547 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4548 * sh-tdep.c (sh_gdbarch_init): Ditto.
4549 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4550 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4551
4552 2003-06-07 Andrew Cagney <cagney@redhat.com>
4553
4554 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4555 "index" with "special_local_sect". Use strcmp instead of STREQ.
4556 Append period to coments.
4557
4558 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4559
4560 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4561 (elfstab_offset_sections): Likewise.
4562 * gdb-stabs.h (stab_section_info): Likewise.
4563 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4564 * objfiles.c (objfile_relocate): Likewise.
4565 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4566 * remote.c (get_offsets): Likewise.
4567 (remote_cisco_objfile_relocate): Likewise.
4568 * somread.c (som_symfile_offsets): Likewise.
4569 * symfile.c (alloc_section_addr_info): New function.
4570 (build_section_addr_info_from_section_tab): Use it.
4571 (free_section_addr_info): Adjust.
4572 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4573 (syms_from_objfile): Allocate local_addr dynamically.
4574 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4575 dynamically.
4576 (add_symbol_file_command): Allocate sect_opts dynamically.
4577 (reread_symbols): Avoid use of SECT_OFF_MAX.
4578 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4579 (alloc_section_addr_info): Declare it.
4580 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4581 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4582 dynamically.
4583 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4584
4585 2003-06-06 Andrew Cagney <cagney@redhat.com>
4586
4587 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4588 (d10v_frame_unwind_cache): Do not set "return_pc".
4589
4590 2003-06-06 Michael Snyder <msnyder@redhat.com>
4591
4592 * h8300-tdep.c: Make tidy (long lines).
4593
4594 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4595
4596 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4597 to regcache_collect().
4598
4599 2003-06-05 J. Brobecker <brobecker@gnat.com>
4600
4601 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4602 pc_in_sigtramp multiarch method.
4603 (hppa_hpux_som_init_abi): Use it.
4604 (hppa_hpux_elf_init_abi): Likewise.
4605 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4606 macro has been multiarched.
4607 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4608 macro here, as hppa64 isn't multiarched yet.
4609
4610 2003-06-05 Andrew Cagney <cagney@redhat.com>
4611
4612 * Makefile.in (value_h): Add $(frame_h).
4613 * value.h: Include "frame.h".
4614 (struct value): Replace "frame_addr" with "frame_id".
4615 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4616 * values.c (allocate_value): Use VALUE_FRAME_ID.
4617 (value_copy): Use VALUE_FRAME_ID.
4618 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4619 * valops.c (value_assign): Update. Use frame_find_by_id.
4620
4621 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4622
4623 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4624 in each pass.
4625
4626 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4627
4628 * thread-db.c (check_event): For create/death event breakpoints,
4629 loop through all messages to ensure that we read the message
4630 corresponding to the breakpoint we are at.
4631
4632 2003-06-04 Michael Snyder <msnyder@redhat.com>
4633
4634 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4635
4636 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4637
4638 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4639 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4640 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4641 when handling .eh_frame sections.
4642
4643 2003-06-04 J. Brobecker <brobecker@gnat.com>
4644
4645 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4646 prepare_to_proceed procedure instead of the hppa-specific one.
4647 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4648
4649 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4650
4651 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4652 * config.in: Regenerated.
4653 * configure.in: Add test for syscall function and check for
4654 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4655 * configure: Regenerated.
4656 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4657 <sys/syscall.h>.
4658 (kill_lwp): New function that uses tkill syscall or
4659 uses kill, depending on whether threading model is nptl or not.
4660 All callers of kill() changed to use kill_lwp().
4661 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4662 see if all threads have already exited in the nptl model.
4663 (stop_and_resume_callback): New callback function used by the
4664 lin_lwp_wait thread exit handling code.
4665 (stop_wait_callback): Check for threads already having exited and
4666 delete such threads fromt the lwp list when discovered.
4667 (stop_callback): Don't assert retcode of kill call.
4668
4669 Roland McGrath <roland@redhat.com>
4670 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4671 nptl libthread_db.
4672
4673 2003-06-03 Richard Henderson <rth@redhat.com>
4674
4675 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4676 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4677 (alpha_sigtramp_frame_prev_register): Likewise.
4678 (alpha_heuristic_frame_prev_register): Likewise.
4679 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4680
4681 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4682 alpha-specific register id names.
4683 (alpha_mdebug_frame_unwind_cache): Likewise.
4684 (alpha_mdebug_frame_prev_register): Likewise.
4685
4686 2003-06-03 Richard Henderson <rth@redhat.com>
4687
4688 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4689 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4690 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4691 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4692 unwind routines.
4693 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4694 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4695 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4696
4697 * alpha-linux-tdep.c: Remove unnecessary includes.
4698 * Makefile.in (alpha-linux-tdep.o): Update.
4699
4700 2003-06-03 Richard Henderson <rth@redhat.com>
4701
4702 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4703 (alphabsd_fill_fpreg): Likewise.
4704
4705 2003-06-03 J. Brobecker <brobecker@gnat.com>
4706
4707 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4708 references to struct frame_info fields by calls to the equivalent
4709 accessors. Necessary now that frame_info is opaque.
4710
4711 2003-06-03 J. Brobecker <brobecker@gnat.com>
4712
4713 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4714 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4715 structure, field no longer exists.
4716
4717 2003-06-03 J. Brobecker <brobecker@gnat.com>
4718
4719 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4720 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4721
4722 2003-06-03 J. Brobecker <brobecker@gnat.com>
4723
4724 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4725 references to struct frame_info fields by calls to the equivalent
4726 accessors. Necessary now that frame_info is opaque.
4727
4728 2003-06-03 J. Brobecker <brobecker@gnat.com>
4729
4730 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4731 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4732 structure, field no longer exists.
4733
4734 2003-06-03 Theodore A. Roth <troth@openavr.org>
4735
4736 * remote.c (init_remote_state): Compute sizeof_g_packet by
4737 accumulation of the size of all registers instead of blindly using
4738 DEPRECATED_REGISTER_BYTES.
4739
4740 2003-06-03 Michael Snyder <msnyder@redhat.com>
4741
4742 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4743 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4744 for h8300sx.
4745
4746 2003-06-03 J. Brobecker <brobecker@gnat.com>
4747
4748 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4749 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4750
4751 2003-06-03 Andrew Cagney <cagney@redhat.com>
4752
4753 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4754 (sparc_convert_to_raw): Delete function.
4755 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4756 register_convert_to_virtual.
4757
4758 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4759
4760 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4761 layer if not dealing with a statically-linked threaded program.
4762
4763 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4764
4765 * solib.c (solib_open): Update comment to reflect actual search order.
4766
4767 2003-06-03 Andrew Cagney <cagney@redhat.com>
4768
4769 * frame.c (get_frame_memory_signed): New function.
4770 (get_frame_memory, get_frame_memory_unsigned): New function.
4771 (get_frame_arch): New function.
4772 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4773 (get_frame_memory, get_frame_unsigned_memory): Declare.
4774 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4775 get_frame_memory_unsigned and get_frame_arch.
4776 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4777
4778 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4779
4780 * MAINTAINERS (write after approval): Add myself.
4781
4782 2003-06-03 Jim Blandy <jimb@redhat.com>
4783
4784 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4785 elements of gregset_t are 64 bits each, but access registers
4786 are still 32 bits, so they're packed two per gregset_t
4787 element. Unpack/pack them properly.
4788
4789 2003-06-02 David Carlton <carlton@bactrian.org>
4790
4791 * linespec.c (find_methods): Break out code into
4792 add_matching_methods and add_constructors.
4793 (add_matching_methods): New.
4794 (add_constructors): Ditto.
4795
4796 2003-06-02 Andrew Cagney <cagney@redhat.com>
4797
4798 * sparc-tdep.c (sparc_print_registers): Delete call to
4799 REGISTER_CONVERTIBLE.
4800 (sparc_gdbarch_init): Do not set register_convertible.
4801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4802 * frv-tdep.c (frv_gdbarch_init): Ditto.
4803 * cris-tdep.c (cris_gdbarch_init): Ditto.
4804
4805 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4806
4807 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4808 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4809 (syms_from_objfile): Ditto.
4810
4811 2003-06-03 Andreas Schwab <schwab@suse.de>
4812
4813 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4814 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4815
4816 2003-06-02 Richard Henderson <rth@redhat.com>
4817
4818 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4819 a member of all_reggroup.
4820
4821 2003-06-02 Richard Henderson <rth@redhat.com>
4822
4823 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4824 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4825 (alpha_lds, alpha_sts): New.
4826 (alpha_convert_register_p): Change from _register_convertible.
4827 (alpha_register_to_value): Change from _convert_to_virtual;
4828 restructure and fail for type sizes other than 4 or 8.
4829 (alpha_value_to_register): Similarly.
4830 (alpha_extract_return_value): Use alpha_sts.
4831 (alpha_store_return_value): Use alpha_lds.
4832 (alpha_gdbarch_init): Update hooks.
4833
4834 2003-06-02 Richard Henderson <rth@redhat.com>
4835
4836 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4837 regnum identifiers.
4838 (alpha_sigtramp_register_address): Likewise.
4839
4840 2003-06-02 Richard Henderson <rth@redhat.com>
4841
4842 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4843 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4844 * alpha-tdep.h: Declare them.
4845
4846 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4847 Remove zerobuf. Don't error on UNIQUE.
4848 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4849 (ALPHA_REGSET_UNIQUE): Provide default.
4850 (supply_gregset): Use alpha_supply_int_regs.
4851 (fill_gregset): Use alpha_fill_int_regs.
4852 (supply_fpregset): Use alpha_supply_fp_regs.
4853 (fill_fpregset): Use alpha_fill_fp_regs.
4854 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4855 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4856 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4857 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4858 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4859 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4860
4861 2003-06-02 Richard Henderson <rth@redhat.com>
4862
4863 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4864
4865 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4866 (alpha_store_return_value): Likewise.
4867
4868 2003-06-02 David Carlton <carlton@math.stanford.edu>
4869
4870 * block.c (contained_in): Add 'const' to arguments.
4871 (block_function): Ditto.
4872 * block.h: Update declarations for block_function and
4873 contained_in.
4874
4875 2003-06-02 David Carlton <carlton@math.stanford.edu>
4876
4877 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4878 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4879 * p-valprint.c (pascal_val_print): Ditto.
4880 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4881
4882 2003-06-02 Richard Henderson <rth@redhat.com>
4883
4884 * alpha-tdep.c (alpha_push_dummy_call): Use
4885 builtin_type_ieee_double_little instead of builtin_type_double.
4886
4887 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4888 sign-extension of 32-bit values.
4889 (alpha_store_return_value): Similarly.
4890
4891 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4892 (alpha_extract_return_value): Likewise.
4893 (alpha_store_return_value): Likewise.
4894
4895 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4896 (alpha_store_return_value): Error on IEEE Quad floats.
4897
4898 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4899 (alpha_extract_struct_value_address): Likewise.
4900 (alpha_store_return_value): Likewise.
4901 (alpha_store_struct_return): Remove.
4902 (alpha_gdbarch_init): Update hook registration to match.
4903
4904 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4905 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4906 macros where appropriate.
4907 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4908 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4909
4910 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4911 for SP, GP; void_func_ptr for PC; non-language-specific types
4912 for all others.
4913 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4914
4915 2003-06-02 Richard Henderson <rth@redhat.com>
4916
4917 * top.h (lim_at_start): Declare.
4918 * main.c (captured_main): Set it.
4919 * top.c (lim_at_start): Define.
4920 (command_loop): Use it instead of &environ.
4921 * event-top.c (command_handler): Likewise.
4922
4923 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4924
4925 * mipsnbsd-tdep.c: Update copyright years.
4926 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4927
4928 2003-06-01 Richard Henderson <rth@redhat.com>
4929
4930 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4931 (alpha-linux-tdep.o): Update dependencies.
4932 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4933 * alpha-mdebug-tdep.c: Remove unneeded includes.
4934
4935 2003-06-01 Richard Henderson <rth@redhat.com>
4936
4937 * alpha-tdep.c (alpha_register_reggroup_p): New.
4938 (alpha_gdbarch_init): Register it.
4939
4940 2003-06-02 Andrew Cagney <cagney@redhat.com>
4941
4942 * dwarfread.c: Eliminate "register"
4943 (decode_die_type): Eliminate assignment within "if".
4944 (struct_type, decode_array_element_type): Ditto.
4945 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4946 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4947 (decode_modified_type, completedieinfo): Ditto.
4948 * block.c: Eliminate "register".
4949 (blockvector_for_pc_sect): Eliminate assignment within "if".
4950 * cp-support.h (struct symbol): Opaque declaration.
4951 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4952
4953 2003-06-01 Richard Henderson <rth@redhat.com>
4954
4955 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4956 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4957
4958 2003-06-01 Adam Fedor <fedor@gnu.org>
4959
4960 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4961 * gdbarch.[ch]: Regenerate.
4962 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4963 (hppa_gdbarch_init): Set it in the gdbarch vector.
4964 * i386-tdep.c (i386_fetch_pointer_argument): New
4965 (i386_gdbarch_init): Set it into gdbarch.
4966 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4967 (rs6000_gdbarch_init): Set it in gdbarch.
4968 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4969 (sparc_gdbarch_init): Set it in gdbarch.
4970
4971 2003-06-01 Andrew Cagney <cagney@redhat.com>
4972
4973 * defs.h (extract_address): Delete declaration.
4974 * findvar.c (extract_address): Delete function.
4975 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4976 extract_address with the inline equivalent,
4977 extract_unsigned_integer.
4978 (xstormy16_extract_struct_value_address): Ditto.
4979 (xstormy16_pointer_to_address): Ditto.
4980 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4981 * v850-tdep.c (v850_push_arguments): Ditto.
4982 (v850_extract_return_value): Ditto.
4983 (v850_extract_struct_value_address): Ditto.
4984 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4985 (sparcnbsd_get_longjmp_target_64): Ditto.
4986 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4987 (get_longjmp_target): Ditto.
4988 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4989 (sh64_extract_struct_value_address): Ditto.
4990 (sh_push_arguments): Ditto.
4991 (sh64_push_arguments): Ditto.
4992 * remote-vxsparc.c (vx_read_register): Ditto.
4993 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4994 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4995 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4996 * mipsv4-nat.c (get_longjmp_target): Ditto.
4997 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4998 * mips-nat.c (get_longjmp_target): Ditto.
4999 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5000 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5001 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5002 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5003 * irix5-nat.c (get_longjmp_target): Ditto.
5004 * irix4-nat.c (get_longjmp_target): Ditto.
5005 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5006 (ia64_push_arguments): Ditto.
5007 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5008 * h8300-tdep.c (h8300_push_arguments): Ditto.
5009 (h8300_store_return_value): Ditto.
5010 (h8300_extract_struct_value_address): Ditto.
5011 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5012 (frv_push_arguments): Ditto.
5013 * avr-tdep.c (avr_pointer_to_address): Ditto.
5014 (avr_push_arguments): Ditto.
5015 * arm-tdep.c (arm_push_dummy_call): Ditto.
5016 (arm_get_longjmp_target): Ditto.
5017 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5018 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5019 (alpha_get_longjmp_target): Ditto.
5020
5021 * solib-irix.c (extract_mips_address): Inline extract_address,
5022 replacing it with extract_signed_integer.
5023 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5024 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5025 (first_link_map_member, open_symbol_file_object): Ditto.
5026 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5027 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5028 (LM_NEXT, LM_NAME): Ditto.
5029
5030 2003-06-01 Richard Henderson <rth@redhat.com>
5031
5032 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5033 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5034 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5035 (alpha_cannot_store_register): Likewise.
5036 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5037 * alpha-nat.c (supply_gregset): Likewise.
5038 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5039
5040 2003-06-01 Andrew Cagney <cagney@redhat.com>
5041
5042 * infcall.c (call_function_by_hand): Update comment on
5043 DEPRECATED_DUMMY_WRITE_SP.
5044
5045 * mips-tdep.c (mips_gdbarch_init): Do not set
5046 deprecated_dummy_write_sp.
5047 (mips_eabi_push_dummy_call): Set the SP register.
5048 (mips_o64_push_dummy_call): Set the SP register.
5049 (mips_o32_push_dummy_call): Set the SP register.
5050 (mips_n32n64_push_dummy_call): Set the SP register.
5051
5052 2003-06-01 Richard Henderson <rth@redhat.com>
5053
5054 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5055 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5056 (supply_gregset): Likewise.
5057 * alpha-tdep.c (alpha_store_return_value): Likewise.
5058 (alpha_get_longjmp_target): Likewise.
5059 (alpha_register_name): Constify array.
5060 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5061 deprecated_register_size, deprecated_register_bytes,
5062 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5063 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5064 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5065
5066 2003-06-01 Richard Henderson <rth@redhat.com>
5067
5068 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5069 from arg_reg_buffer to regcache to avoid double conversion.
5070
5071 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5072
5073 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5074 SP_REGNUM.
5075 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5076 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5077
5078 2003-06-01 Richard Henderson <rth@redhat.com>
5079
5080 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5081 (decode_frame_entry): Set it. Skip FDE augmentation.
5082
5083 2003-06-01 Richard Henderson <rth@redhat.com>
5084
5085 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5086 not overlapping PC_REGNUM.
5087
5088 2003-06-01 Richard Henderson <rth@redhat.com>
5089
5090 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5091 alpha_push_arguments. Don't dump argument register data to
5092 the target stack. Fix float and 128-bit long double semantics.
5093 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5094 (alpha_fix_call_dummy): Remove.
5095 (alpha_call_dummy_words): Remove.
5096 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5097
5098 2003-06-01 Richard Henderson <rth@redhat.com>
5099
5100 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5101
5102 2003-06-01 Andrew Cagney <cagney@redhat.com>
5103
5104 * mips-tdep.c (is_mips16_addr): New function.
5105 (make_mips16_addr, unmake_mips16_addr): New functions.
5106 (pc_is_mips16, mips_fetch_instruction): Use.
5107 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5108 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5109 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5110 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5111 TARGET_MIPS.
5112 * config/mips/tm-mips.h: Update copyright.
5113 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5114 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5115 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5116 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5117 (TM_PRINT_INSN_MACH): Delete.
5118 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5119
5120 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5121 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5122 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5123 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5124 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5125 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5126 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5127 mips*-*-riscos* and mips*-*-sysv* onto mips.
5128 * config/mips/mips64.mt: New file.
5129 * config/mips/mips.mt: New file.
5130 * config/mips/littlemips.mt: Delete file.
5131 * config/mips/decstation.mt: Delete file.
5132 * config/mips/vr4300el.mt: Delete file.
5133 * config/mips/vr5000el.mt: Delete file.
5134 * config/mips/vr5000.mt: Delete file.
5135 * config/mips/vr4100.mt: Delete file.
5136 * config/mips/vr4xxxel.mt: Delete file.
5137 * config/mips/vr4300.mt: Delete file.
5138 * config/mips/vr4xxx.mt: Delete file.
5139 * config/mips/bigmips.mt: Delete file.
5140 * config/mips/bigmips64.mt: Delete file.
5141 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5142 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5143 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5144 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5145 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5146 "tm-bigmips.h".
5147 * config/mips/tm-irix3.h: Ditto.
5148 * config/mips/tm-mipsv4.h: Ditto.
5149 * config/mips/tm-embed.h: Ditto.
5150 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5151 "tm-bigmips64.h".
5152 * config/mips/tm-vr5000el.h: Delete file.
5153 * config/mips/tm-tx39l.h: Delete file.
5154 * config/mips/tm-vr4300el.h: Delete file.
5155 * config/mips/tm-vr4xxxel.h: Delete file.
5156 * config/mips/tm-vr4300.h: Delete file.
5157 * config/mips/tm-vr4100.h: Delete file.
5158 * config/mips/tm-vr4xxx.h: Delete file.
5159 * config/mips/tm-vr5000.h: Delete file.
5160 * config/mips/tm-embedl64.h: Delete file.
5161 * config/mips/tm-embedl.h: Delete file.
5162 * config/mips/tm-embed64.h: Delete file.
5163 * config/mips/tm-bigmips64.h: Delete file.
5164 * config/mips/tm-bigmips.h: Delete file.
5165
5166 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5167
5168 Fix gdb/1216.
5169 * shnbsd-nat.c: Include "sh-tdep.h".
5170
5171 From Richard Henderson <rth@redhat.com>:
5172 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5173
5174 2003-05-31 Andrew Cagney <cagney@redhat.com>
5175
5176 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5177 forward declaration.
5178 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5179 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5180 (mips_find_saved_regs): Use set_reg_offset.
5181 (mips_frame_init_saved_regs): Delete function.
5182 (mips_pop_frame): Call mips_find_saved_regs instead of
5183 DEPRECATED_FRAME_INIT_SAVED_REGS.
5184
5185 2003-05-31 Andrew Cagney <cagney@redhat.com>
5186
5187 * mips-tdep.c (mips_gdbarch_init): Do not set
5188 deprecated_max_register_raw_size, register_virtual_size, and
5189 deprecated_max_register_virtual_size.
5190
5191 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5192
5193 * i386-tdep.c: Include "dwarf2-frame.h".
5194 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5195 * Makefile.in (i386-tdep.o): Update dependencies.
5196
5197 * dwarf2-frame.c, dwarf2-frame.h: New files.
5198 * Makefile.in (SFILES): Add dwarf2-frame.c.
5199 (dwarf2_frame_h): Define.
5200 (COMMON_OBS): Add dwarf2-frame.o.
5201 (dwarf2-frame.o): Add dependencies.
5202
5203 2003-05-31 Andreas Jaeger <aj@suse.de>
5204
5205 * x86-64-linux-nat.c: Fix comment.
5206
5207 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5208
5209 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5210 function signature.
5211
5212 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5213 have a sigcontext_addr handler.
5214 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5215 sigcontext_addr handler.
5216
5217 2003-05-31 Andrew Cagney <cagney@redhat.com>
5218
5219 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5220 (print_fp_register_row): Replace do_fp_register_row.
5221 (mips_print_fp_register): Add "file" and "frame" parameters.
5222 (mips_print_register): Add "file" and "frame" parameters.
5223 (mips_print_registers_info): Replace mips_do_registers_info.
5224 (mips_gdbarch_init): Set print_registers_info instead of
5225 deprecated_do_registers_info.
5226 (mips_read_fp_register_single): Add "frame" parameter.
5227 (mips_read_fp_register_double): Add "frame" parameter.
5228
5229 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5230
5231 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5232 Fixes a bug where GDB would print the wrong register names for
5233 targets without SSE.
5234
5235 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5236 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5237 registers.
5238
5239 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5240 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5241 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5242 TDEP->sc_sp_offset.
5243
5244 From Michal Ludvig <mludvig@suse.cz>:
5245 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5246 and `sc_num_regs'.
5247 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5248 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5249 I386_ST0_REGNUM): Move here from...
5250 * i386-tdep.c: ... here.
5251 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5252 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5253 registers if possible.
5254 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5255 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5256 Remove variables.
5257 (i386bsd_sc_reg_offset): New variable.
5258 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5259 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5260 TDEP->sc_sp_offset.
5261 (i386fbsd_sc_reg_offset): New variable.
5262 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5263 TDEP->sc_num_regs.
5264 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5265 variables.
5266 (i386fbsd4_sc_reg_offset): New variable.
5267 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5268 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5269 TDEP->sc_sp_offset.
5270 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5271 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5272 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5273 Remove variables.
5274 (i386nbsd_sc_reg_offset): New variable.
5275 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5276 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5277 TDEP->sc_sp_offset.
5278 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5279 Remove variables.
5280 (i386obsd_sc_reg_offset): New variable.
5281 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5282 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5283 TDEP->sc_sp_offset.
5284 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5285 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5286 for frame pointer offset in `struct sigcontext'.
5287
5288 2003-05-31 Andrew Cagney <cagney@redhat.com>
5289
5290 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5291 architecture methods call_dummy_words, sizeof_call_dummy_words,
5292 push_return_address, store_struct_return, and fix_call_dummy. Set
5293 push_dummy_call instead of deprecated_push_arguments.
5294 (mips_store_struct_return): Delete function.
5295 (mips_fix_call_dummy): Delete function.
5296 (mips_push_return_address): Delete function.
5297 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5298 RA_REGNUM and T9_REGNUM.
5299 (mips_n32n64_push_dummy_call): Ditto for
5300 mips_n32n64_push_arguments.
5301 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5302 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5303
5304 2003-05-31 Andrew Cagney <cagney@redhat.com>
5305
5306 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5307 "dummy_addr" to "bp_addr".
5308 * infcall.c (call_function_by_hand): Pass "funaddr" to
5309 gdbarch_push_dummy_call.
5310 * gdbarch.h, gdbarch.c: Re-generate.
5311 * i386-tdep.c (i386_push_dummy_call): Update.
5312 * arm-tdep.c (arm_push_dummy_call): Update.
5313 * d10v-tdep.c (d10v_push_dummy_call): Update.
5314
5315 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5316
5317 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5318 variable declarations.
5319 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5320 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5321 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5322 x86_64_init_frame_pc, x86_64_init_frame_pc,
5323 x86_64_function_has_prologue): Remove prototypes.
5324 (X86_64_NUM_GREGS): New define.
5325 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5326 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5327 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5328 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5329 XMM1_REGNUM): Remove defines.
5330 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5331 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5332 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5333 X86_64_XMM1_REGNUM): New defines.
5334 (struct x86_64_register_info): Renamed from `struct
5335 register_info'. Remove `size' member.
5336 (x86_64_register_info_table): Remove variable.
5337 (x86_64_register_info): New variable.
5338 (X86_64_NUM_REGS): New define.
5339 (X86_64_NUM_GREGS): Remove define.
5340 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5341 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5342 Remove variables.
5343 (x86_54_dwarf2_reg_to_regnum): Remove function.
5344 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5345 (x86_64_dwarf_reg_to_regnum): New function.
5346 (x86_64_register_name): Rewrite.
5347 (x86_64_register_raw_size): Remove function.
5348 (x86_64_register_byte_table): Remove variable.
5349 (x86_64_register_byte): Remove function.
5350 (x86_64_register_virtual_type): Remove function.
5351 (x86_64_register_type): New function.
5352 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5353 x86_64_register_convert_to_raw): Remove functions.
5354 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5355 (x86_64_use_struct_convention): Make static. Adjust for renamed
5356 defines.
5357 (x86_64_frame_init_saved_regs): Remove function.
5358 (x86_64_push_arguments): Make static. Change to accept a regcache
5359 as argument.
5360 (x86_64_store_return_value, x86_64_extract_return_value): Make
5361 static. Rewrite based on i386 counterparts.
5362 (x86_64_push_dummy_call): New function.
5363 (X86_64_NUM_SAVED_REGS): New define.
5364 (x86_64_register_number): Remove function.
5365 (x86_64_store_struct_return): Remove function.
5366 (x86_64_frameless_function_invocation,
5367 x86_64_function_has_prologue): Remove functions.
5368 (PROLOG_BUFSIZE): Remove define.
5369 (struct x86_64_frame_cache): New structure.
5370 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5371 x86_64_frame_cache, x86_64_frame_this_id,
5372 x86_64_frame_prev_register, x86_64_frame_p,
5373 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5374 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5375 functions.
5376 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5377 variables.
5378 (x86_64_skip_prologue): Rewrite in terms of
5379 x86_64_analyze_prologue.
5380 (x86_64_frame_base_address): New function.
5381 (x86_64_frame_base): New variable.
5382 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5383 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5384 set deprecated_fp_regnum, deprecated_register_size,
5385 deprecated_register_bytes, register_raw_size, register_byte,
5386 register_virtual_type, register_convertiable,
5387 register_convert_to_virtual, convert_to_raw,
5388 deprecated_get_saved_register, deprecated_target_read_fp,
5389 deprecated_push_arguments, deprecated_push_return_address,
5390 deprecated_pop_frame, deprecated_store_struct_return,
5391 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5392 frameless_function_invocation, deprecated_frame_saved_pc,
5393 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5394 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5395 deprecated_init_frame_pc and virtual_frame_pointer. Call
5396 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5397 and x86_64_frame_p. Call frame_base_set_default to register
5398 x86_64_frame_base.
5399 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5400 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5401 (_initialize_x86_64_tdep): Remove function.
5402 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5403 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5404 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5405 define.
5406 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5407 (x86_64_linux_sigcontext_addr): Rewrite.
5408 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5409 x86_64_linux_frame_saved_pc): Remove functions.
5410 (x86_64_linux_pc_in_sigtramp): Renamed from
5411 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5412 trampoline.
5413 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5414 Remove_functions.
5415 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5416 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5417 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5418 (x86_64_regmap): Rename to regmap.
5419 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5420 x86_64_num_gregs.
5421 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5422 x86_64_regmap.
5423 (x86_64_fxsave_offset): Remove function.
5424 (supply_fpregset): Simply call x86_64_supply_fxsave.
5425 (fill_fpregset): Simply call x86_64_fill_fxsave.
5426 (fetch_inferior_registers, store_inferior_registers): Avoid
5427 asignment in if-statement.
5428 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5429 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5430 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5431 (fetch_core_registers): Remove function.
5432 (linux_elf_core_fns): Remove.
5433 (offsetoff): Don't define.
5434 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5435 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5436 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5437 add core-regset.o.
5438 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5439 protection against multiple includes instead of NM_X86_64_h. Add
5440 various comments. Include "config/nm-linux.h". Don't include
5441 <signal.h>.
5442 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5443 GET_THREAD_SIGNALS): Remove defines.
5444 (x86_64_register_u_addr, kernel_u_size,
5445 lin_thread_get_thread_signals): Remove prototypes.
5446 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5447 [HAVE_LINK_H]: Don't include "solib.h".
5448 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5449 * config/i386/tm-x86-64linux.h: Fix comments.
5450 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5451 x86-64-tdep.o): Update dependencies.
5452
5453 2003-05-30 Andrew Cagney <cagney@redhat.com>
5454
5455 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5456 Change parameter type to a "struct regcache *".
5457
5458 * gdbarch.sh: Regardless of the multi-arch level, always define
5459 the macro when not already defined.
5460 * gdbarch.h, gdbarch.c: Re-generate.
5461
5462 2003-05-30 Richard Henderson <rth@redhat.com>
5463
5464 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5465 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5466 (alpha_mdebug_frame_this_id): Likewise.
5467 (alpha_mdebug_frame_prev_register): Likewise.
5468 (alpha_mdebug_frame_base_address): Likewise.
5469 (alpha_mdebug_frame_locals_address): Likewise.
5470 (alpha_mdebug_frame_args_address): Likewise.
5471 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5472 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5473 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5474 loop increment.
5475 (alpha_heuristic_frame_this_id): Make static.
5476 (alpha_heuristic_frame_prev_register): Likewise.
5477 (alpha_heuristic_frame_base_address): Likewise.
5478 * alpha-tdep.h: Update.
5479
5480 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5481
5482 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5483 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5484 defenitions.
5485 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5486 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5487 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5488 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5489 I386_ST0_REGNUM): New defines.
5490 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5491 codestream_get): Remove define.
5492 (codestream_next_addr, condestream_addr, condestream_buf,
5493 codestream_off, codestream_cnt): Remove variables.
5494 (codestream_fill, codestream_seek, codestream_read): Remove
5495 functions.
5496 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5497 functionality.
5498 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5499 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5500 i386_frame_saved_pc, i386_saved_pc_after_call,
5501 i386_frame_num_args, i386_frame_init_saved_regs,
5502 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5503 i386_push_arguments): Remove functions.
5504 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5505 functionality. Use i386_analyze_prologue instead of
5506 i386_get_frame_setup.
5507 (I386_NUM_SAVED_REGS): New define.
5508 (struct i386_frame_cache): New structure.
5509 (i386_alloc_frame_cache, i386_analyze_struct_return,
5510 i386_skip_probe, i386_analyze_frame_setup,
5511 i386_analyze_register_saves, i386_analyze_prologue,
5512 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5513 i386_frame_prev_register, i386_sigtramp_frame_cache,
5514 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5515 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5516 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5517 New functions.
5518 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5519 New variables.
5520 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5521 I386_EAX_REGNUM and I386_EDX_REGNUM.
5522 (i386_extract_return_value, i386_store_return_value): Use
5523 I386_ST0_REGNUM where appropriate.
5524 (i386_extract_struct_value_address): Rewrite to use extract_address.
5525 (i386_svr4_pc_in_sigtramp): Add comment.
5526 (i386_svr4_sigcontext_addr): Rewrite.
5527 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5528 TDEP->sc_sp_offset.
5529 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5530 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5531 of new defines. Set push_dummy_call, don't set
5532 deprecated_push_arguments, deprecated_push_return_address,
5533 deprecated_pop_frame. Don't set parm_boundary. Don't set
5534 deprecated_frame_chain, deprecated_frame_saved_pc,
5535 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5536 save_dummy_frame_tos, unwind_pc. Call
5537 frame_unwind_append_predicate and frame_base_set_default. Don't
5538 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5539 Don't set frameless_function_invocation. Don't set
5540 deprecated_register_bytes, deprecated_register_size,
5541 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5542 * i386-linux-tdep.c: Fix formatting in some comments.
5543 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5544 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5545 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5546 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5547 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5548 redundant parentheses.
5549 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5550 (i386_linux_sigcontext_addr): Use it. Rewrite.
5551 (find_minsym_and_objfile): Change name of second argument.
5552 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5553 changed. Use frame_pc_unwind instead of
5554 DEPRECATED_SAVED_PC_AFTER_CALL.
5555 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5556 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5557 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5558 unwinder.
5559 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5560 "dummy-frame.h".
5561 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5562 (_initialize_i386_cygwin_tdep): New prototype.
5563 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5564 deprecated_frame_chain_valid.
5565 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5566 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5567 Rely on the SVR4 defaults.
5568 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5569 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5570
5571 2003-05-30 Andrew Cagney <cagney@redhat.com>
5572
5573 * infcall.c (call_function_by_hand): Always call
5574 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5575
5576 2003-05-30 Richard Henderson <rth@redhat.com>
5577
5578 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5579 increment.
5580
5581 2003-05-29 Jim Blandy <jimb@redhat.com>
5582
5583 Use gdbarch methods for solib stuff on PowerPC Linux.
5584 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5585 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5586 show through.
5587 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5588 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5589 giving the same effect as the #definitions above.
5590
5591 2003-05-29 Adam Fedor <fedor@gnu.org>
5592
5593 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5594 (find_implementation_from_class): Replace it with the standard
5595 case i.e. do nothing.
5596
5597 2003-05-29 Richard Henderson <rth@redhat.com>
5598
5599 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5600 (alpha_linux_sigtramp_offset): Use it. Make static.
5601 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5602 update for new frame model.
5603 * alpha-mdebug-tdep.c: New file.
5604 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5605 (alpha_osf1_init_abi): Install it.
5606 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5607 (linked_proc_desc_table): Remove.
5608 (alpha_frame_past_sigtramp_frame): Remove.
5609 (alpha_dynamic_sigtramp_offset): Remove.
5610 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5611 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5612 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5613 (push_sigtramp_desc): Remove.
5614 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5615 (alpha_cannot_store_register): Likewise.
5616 (alpha_sigcontext_addr): Remove.
5617 (alpha_find_saved_regs): Remove.
5618 (alpha_frame_init_saved_regs): Remove.
5619 (alpha_init_frame_pc_first): Remove.
5620 (read_next_frame_reg): Remove.
5621 (alpha_frame_saved_pc): Remove.
5622 (alpha_saved_pc_after_call): Remove.
5623 (temp_proc_desc, temp_saved_regs): Remove.
5624 (alpha_about_to_return): Remove.
5625 (cached_proc_desc): Remove.
5626 (alpha_frame_chain): Remove.
5627 (alpha_print_extra_frame_info): Remove.
5628 (alpha_init_extra_frame_info): Remove.
5629 (alpha_frame_locals_address): Remove.
5630 (alpha_frame_args_address): Remove.
5631 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5632 (alpha_push_dummy_frame): Remove.
5633 (alpha_pop_frame): Remove.
5634 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5635 (alpha_read_insn): New.
5636 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5637 for different insn encodings.
5638 (alpha_in_lenient_prologue): Remove.
5639 (struct alpha_sigtramp_unwind_cache): New.
5640 (alpha_sigtramp_frame_unwind_cache): New.
5641 (alpha_sigtramp_register_address): New.
5642 (alpha_sigtramp_frame_this_id): New.
5643 (alpha_sigtramp_frame_prev_register): New.
5644 (alpha_sigtramp_frame_unwind): New.
5645 (alpha_sigtramp_frame_p): New.
5646 (struct alpha_heuristic_unwind_cache): New.
5647 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5648 don't count nop insns that occur between functions.
5649 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5650 heuristic_proc_desc, but without the mdebug wrapping.
5651 (alpha_heuristic_frame_this_id): New.
5652 (alpha_heuristic_frame_prev_register): New.
5653 (alpha_heuristic_frame_unwind): New.
5654 (alpha_heuristic_frame_p): New.
5655 (alpha_heuristic_frame_base_address): New.
5656 (alpha_heuristic_frame_base): New.
5657 (alpha_unwind_dummy_id): New.
5658 (alpha_unwind_pc): New.
5659 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5660 frame related deprecated initializations; install replacements.
5661 (alpha_dump_tdep): Remove.
5662 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5663 (alpha_read_insn, alpha_after_prologue,
5664 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5665 alpha_heuristic_frame_prev_register,
5666 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5667 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5668 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5669 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5670
5671 2003-05-29 Andrew Cagney <cagney@redhat.com>
5672
5673 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5674 dependant on the availability of ASSERT_FUNCTION.
5675 (ASSERT_FUNCTION): Do not define when there is no function name.
5676
5677 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5678
5679 From Jimi X <jimix@watson.ibm.com>:
5680 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5681
5682 2003-05-28 Jim Blandy <jimb@redhat.com>
5683
5684 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5685 argument to ptrace to int; the system headers should give it the
5686 right type, and pointers don't fit in ints on powerpc64-*-*.
5687
5688 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5689
5690 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5691 DW_TAG_catch_block.
5692
5693 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5694
5695 * stabsread.c (dbx_lookup_type): Make static.
5696 (read_type): Ditto.
5697 (add_undefined_type): Ditto.
5698 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5699 not export.
5700
5701 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5702
5703 * hpread.c (hpread_has_name): Make static.
5704 (hpread_psymtab_to_symtab): Ditto.
5705 (file_exists): Ditto.
5706 (hpread_call_pxdb): Ditto.
5707 (hpread_pxdb_needed): Ditto.
5708 (hpread_quick_traverse): Ditto.
5709 (hpread_get_header): Ditto.
5710 (hpread_get_lntt): Ditto.
5711 (hpread_get_slt): Ditto.
5712 (class_of): Ditto.
5713
5714 2003-05-25 Andreas Schwab <schwab@suse.de>
5715
5716 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5717 stack_align and deprecated_extra_stack_alignment_needed.
5718 (m68k_stack_align): Delete.
5719
5720 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5721 (m68k_register_virtual_size): Likewise.
5722 (altos_skip_prologue): Remove obsolete function.
5723 (isi_frame_num_args): Likewise.
5724 (news_frame_num_args): Likewise.
5725 (m68k_fix_call_dummy): Make static.
5726 (m68k_push_dummy_frame): Likewise.
5727 (m68k_pop_frame): Likewise.
5728 (m68k_skip_prologue): Likewise.
5729 (m68k_frame_init_saved_regs): Likewise.
5730 (m68k_saved_pc_after_call): Likewise.
5731 (m68k_get_longjmp_target): Make multi-arch.
5732 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5733 structure. Register m68k_get_longjmp_target if enabled.
5734 * m68k-tdep.h (struct gdbarch_tdep): Define.
5735 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5736
5737 * Makefile.in (config.status): Also depend on configure.tgt
5738 and configure.host.
5739 (m68klinux-tdep.o): Update dependencies.
5740 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5741 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5742 (M68K_LINUX_JB_PC): Define.
5743 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5744 and take additional parameter.
5745 (m68k_linux_sigtramp_saved_pc): Update.
5746 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5747 m68k_linux_pc_in_sigtramp, in_plt_section,
5748 find_solib_trampoline_target.
5749 * config/m68k/tm-linux.h: Don't include any tm headers.
5750 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5751 (JB_ELEMENT_SIZE): Likewise.
5752 (JB_PC): Likewise.
5753 (GET_LONGJMP_TARGET): Likewise.
5754 (IN_SIGTRAMP): Likewise.
5755 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5756
5757 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5758
5759 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5760 (sparc32_push_arguments): Re-implement by calling
5761 sparc32_do_push_arguments.
5762
5763 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5764
5765 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5766 SPARC_O1_REGNUM): New defines.
5767 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5768 (sparc32_store_return_value): New function.
5769 (sparc_extract_struct_value_address): Rewrite to operate on a
5770 regcache.
5771 (sparc_gdbarch_init): Don't set
5772 deprecated_extract_struct_value_address. Set
5773 extract_struct_value_address instead. Don't set
5774 deprecated_extract_return_value and deprecated_store_return_value
5775 for 32-bit targets. Set extract_return_value and
5776 store_return_value instead.
5777 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5778 DEPRECTAED_EXTRACT_RETURN_VALUE,
5779 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5780 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5781 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5782 (sparc_store_return_value): Remove prototype.
5783 (sparc32_store_return_value): New prototype.
5784 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5785 Adjust prototypes.
5786
5787 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5788
5789 * sparcnbsd-tdep.c: Include "gdb_string.h".
5790
5791 2003-05-23 Andrew Cagney <cagney@redhat.com>
5792
5793 * p-valprint.c (pascal_val_print): Replace extract_address with
5794 the inline equivalent extract_unsigned_integer.
5795 * jv-valprint.c (java_value_print): Ditto.
5796 * ada-valprint.c (ada_val_print_1): Ditto.
5797 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5798
5799 2003-05-23 Theodore A. Roth <troth@openavr.org>
5800
5801 * blockframe.c (frameless_look_for_prologue): Remove unused
5802 after_prologue variable.
5803
5804 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5805
5806 * blockframe.c (get_pc_function_start): Rewrite to avoid
5807 asignments in if-statements.
5808
5809 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5810
5811 Committed by Elena Zannoni <ezannoni@redhat.com>.
5812 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5813 files, don't relocate absolute symbols (and do use mst_abs).
5814
5815 2003-05-23 Andrew Cagney <cagney@redhat.com>
5816
5817 * objc-lang.c: Include "gdb_assert.h".
5818 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5819 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5820 (gdb_check, gdb_check_fatal): Delete functions.
5821 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5822 gdb_assert.
5823 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5824 * Makefile.in (objc-lang.o): Update dependencies.
5825
5826 2003-05-22 Ian Lance Taylor <ian@airs.com>
5827
5828 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5829 with fprintf_filtered, not fprintf_unfiltered.
5830
5831 2003-05-22 Andrew Cagney <cagney@redhat.com>
5832
5833 * stack.c (frame_info): Inline extract_address, replacing it with
5834 extract_unsigned_integer.
5835 * findvar.c (unsigned_pointer_to_address): Ditto.
5836 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5837 * dwarf2expr.c (dwarf2_read_address): Ditto.
5838 * frame.c (frame_pc_unwind): Update comment.
5839 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5840
5841 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5842
5843 * infptrace.c (detach): Call print_sys_errmsg rather than
5844 perror_with_name to issue warning message when errno is non-zero
5845 after calling ptrace detach.
5846
5847 2003-05-21 J. Brobecker <brobecker@gnat.com>
5848
5849 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5850 macro definitions from here...
5851 * hppa-tdep.c: ...to there.
5852
5853 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5854
5855 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5856 register_ptrace_addr(). Fix all callers.
5857
5858 2003-05-21 Andreas Schwab <schwab@suse.de>
5859
5860 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5861 dependencies.
5862 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5863 end.
5864 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5865 (_initialize_m68k_linux_tdep): New function.
5866 (m68k_linux_frame_saved_pc): Make static.
5867 (m68k_linux_extract_return_value): Likewise.
5868 (m68k_linux_store_return_value): Likewise.
5869 (m68k_linux_extract_struct_value_address): Likewise.
5870 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5871 Remove.
5872 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5873 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5874 (DEPRECATED_FRAME_SAVED_PC): Remove.
5875
5876 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5877
5878 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5879 regset numbering rather than our own.
5880
5881 2003-05-19 David Carlton <carlton@bactrian.org>
5882
5883 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5884
5885 2003-05-19 David Carlton <carlton@bactrian.org>
5886
5887 Partial fix for PR c++/827.
5888 * cp-support.h: Include symtab.h.
5889 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5890 * cp-namespace.c: Update contributors.
5891 (cp_lookup_symbol_nonlocal): New.
5892 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5893 (lookup_symbol_file): Ditto.
5894 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5895 * block.h: Declare block_scope, block_using, block_global_block.
5896 * block.c (block_scope): New.
5897 (block_using, block_global_block): Ditto.
5898 * Makefile.in (cp_support_h): Depend on symtab_h.
5899 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5900
5901 2003-05-19 David Carlton <carlton@bactrian.org>
5902
5903 * language.h (struct language_defn): Add 'la_value_of_this'
5904 and 'la_lookup_symbol_nonlocal' members.
5905 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5906 lookup_symbol_static, lookup_symbol_global,
5907 lookup_symbol_aux_block.
5908 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5909 if we should search fields of this and how to do static/global
5910 lookup.
5911 (lookup_symbol_aux_block): Make extern.
5912 (basic_lookup_symbol_nonlocal): New.
5913 (lookup_symbol_static, lookup_symbol_global): Ditto.
5914 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5915 'la_lookup_symbol_nonlocal' members.
5916 * c-lang.c (c_language_defn, cplus_language_defn)
5917 (asm_language_defn, minimal_language_defn): Ditto.
5918 * jv-lang.c (java_language_defn): Ditto.
5919 * language.c (unknown_language_defn, auto_language_defn)
5920 (local_language_defn): Ditto.
5921 * m2-lang.c (m2_language_defn): Ditto.
5922 * objc-lang.c (objc_language_defn): Ditto.
5923 * scm-lang.c (scm_language_defn): Ditto.
5924 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5925 * p-lang.c (pascal_language_defn): Ditto for both.
5926 * Makefile.in (f-lang.o): Depend on value_h.
5927 (p-lang.o): Ditto.
5928
5929 2003-05-19 David Carlton <carlton@bactrian.org>
5930
5931 * block.h: Declare block_static_block.
5932 * block.c (block_static_block): New.
5933 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5934 lookup_symbol_aux_local, calling block_static_block instead.
5935 (lookup_symbol_aux_local): Delete 'static_block' argument.
5936
5937 2003-05-19 David Carlton <carlton@bactrian.org>
5938
5939 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5940
5941 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5942
5943 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5944 register numbers mapping.
5945
5946 2003-05-18 Adam Fedor <fedor@gnu.org>
5947
5948 * symtab.c (completion_list_objc_symbol): New function.
5949 (make_symbol_completion_list): Use it to add ObjC symbols
5950 when looking though the list.
5951 (language_search_unquoted_string): New function.
5952 (make_file_symbol_completion_list): Use it.
5953
5954 2003-05-18 Andreas Schwab <schwab@suse.de>
5955
5956 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5957 dependencies.
5958 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5959 as m68k_linux_extract_return_value.
5960 (DEPRECATED_STORE_RETURN_VALUE): Define as
5961 m68k_linux_store_return_value.
5962 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5963 m68k_linux_extract_struct_value_address.
5964 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5965 get_next_frame, get_frame_base, get_frame_pc.
5966 (m68k_linux_frame_saved_pc): Use get_frame_base.
5967 (m68k_linux_extract_return_value): New function.
5968 (m68k_linux_store_return_value): New function.
5969 (m68k_linux_extract_struct_value_address): New function.
5970 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5971
5972 * c-exp.y (typebase): Remove duplicate occurence of
5973 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5974 of lookup_signed_typename.
5975
5976 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5977
5978 * dwarf2loc.c (find_location_expression): Change type of second
5979 argument to `size_t *'.
5980 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5981 for size variable.
5982
5983 2003-05-18 David Carlton <carlton@bactrian.org>
5984
5985 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5986 'linkage_name'. Add comment.
5987 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5988 'linkage_name'.
5989 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5990 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5991 (lookup_block_symbol): Ditto.
5992
5993 2003-05-16 Andrew Cagney <cagney@redhat.com>
5994
5995 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5996 * gdbarch.h, gdbarch.c: Re-generate.
5997 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5998 * TODO (REGISTER_BYTES): Delete reference.
5999 * alpha-tdep.c (alpha_gdbarch_init): Update.
6000 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6001 * x86-64-tdep.c (x86_64_init_abi): Update.
6002 * vax-tdep.c (vax_gdbarch_init): Update.
6003 * v850-tdep.c (v850_gdbarch_init): Update.
6004 * sparc-tdep.c (sparc_gdbarch_init): Update.
6005 * sh-tdep.c (sh_gdbarch_init): Update.
6006 * s390-tdep.c (s390_gdbarch_init): Update.
6007 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6008 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6009 (ns32k_gdbarch_init_32382): Update.
6010 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6011 * mcore-tdep.c (mcore_gdbarch_init): Update.
6012 * m68k-tdep.c (m68k_gdbarch_init): Update.
6013 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6014 * ia64-tdep.c (ia64_gdbarch_init): Update.
6015 * i386-tdep.c (i386_gdbarch_init): Update.
6016 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6017 * hppa-tdep.c (hppa_gdbarch_init): Update.
6018 * h8300-tdep.c (h8300_gdbarch_init): Update.
6019 * frv-tdep.c (frv_gdbarch_init): Update.
6020 * cris-tdep.c (cris_gdbarch_init): Update.
6021 * avr-tdep.c (avr_gdbarch_init): Update.
6022 * arm-tdep.c (arm_gdbarch_init): Update.
6023 * sparc-tdep.c (sparc_pop_frame): Update.
6024 * rs6000-tdep.c (rs6000_pop_frame): Update.
6025 * remote.c (init_remote_state): Update.
6026 (remote_prepare_to_store): Update.
6027 * remote-vx.c (vx_prepare_to_store): Update.
6028 * remote-sds.c (sds_fetch_registers): Update.
6029 (sds_prepare_to_store): Update.
6030 * remote-array.c: Update.
6031 * regcache.c (init_legacy_regcache_descr): Update.
6032 (init_regcache_descr): Update.
6033 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6034 (mips_o64_extract_return_value): Update.
6035 * irix5-nat.c (fetch_core_registers): Update.
6036 * irix4-nat.c (fetch_core_registers): Update.
6037 * i386-tdep.h: Update.
6038 * hppa-tdep.c (pa_do_registers_info): Update.
6039 (pa_do_strcat_registers_info): Update.
6040 * cris-tdep.c (cris_register_bytes_ok): Update.
6041 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6042 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6043 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6044 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6045 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6046 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6047 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6048 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6049 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6050 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6051 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6052 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6053 (REGISTER_BYTES_OK): Update.
6054 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6055 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6056
6057 2003-05-16 Ian Lance Taylor <ian@airs.com>
6058
6059 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6060 (vax_print_insn, print_insn_arg): Remove static functions.
6061 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6062 print_insn_vax from opcodes library.
6063 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6064
6065 2003-05-15 Andrew Cagney <cagney@redhat.com>
6066
6067 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6068 * target.h (memory_breakpoint_from_pc): Delete declaration.
6069 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6070 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6071 * monitor.c (monitor_insert_breakpoint): Use
6072 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6073 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6074 * gdbarch.h, gdbarch.c: Re-generate.
6075 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6076 (sparc_gdbarch_init): Set breakpoint_from_pc to
6077 sparc_breakpoint_from_pc.
6078 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6079 (BREAKPOINT_FROM_PC): Define.
6080 (sparc_breakpoint_from_pc): Declare.
6081 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6082 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6083 (BREAKPOINT_FROM_PC): Define.
6084 (BREAKPOINT): Delete macro.
6085 * target.h: Update comment.
6086 * s390-tdep.c (s390_gdbarch_init): Update comments.
6087 * remote.c: Update comments.
6088 * remote-mips.c: Update comments.
6089 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6090 * mem-break.c: Update comment.
6091 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6092 (ia64_memory_insert_breakpoint): Update.
6093 * config/sparc/tm-sparc.h: Update comment.
6094 * config/pa/tm-hppa64.h: Update comment.
6095 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6096 (rs6000_breakpoint_from_pc): Update.
6097 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6098 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6099 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6100 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6101 (mips_breakpoint_from_pc): Update.
6102 (mips_dump_tdep): Update.
6103
6104 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6105 * minsyms.c (lookup_minimal_symbol): Inline
6106 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6107
6108 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6109 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6110 * p-lang.c (pascal_printstr): Ditto.
6111 * objc-lang.c (objc_printstr): Ditto.
6112 * m2-lang.c (m2_printstr): Ditto.
6113 * jv-valprint.c (java_print_value_fields): Ditto.
6114 * f-lang.c (f_printstr): Ditto.
6115 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6116 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6117 for repeat_count_threshold.
6118 * Makefile.in (cp-valprint.o): Update dependencies.
6119
6120 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6121
6122 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6123 (examine_prologue): Support looking through leaf functions, knowing
6124 they start with mov r2,r12. Support skipping over indirect stores
6125 of the input registers. Upon hitting a non-nop branch instruction
6126 or predicated instruction, bail out by setting lim_pc to the current
6127 pc value in the loop. At the end, if the lim_pc value is still
6128 beyond our calculated value and we have trust_limit set,
6129 use the lim_pc value.
6130
6131 2003-05-15 Andrew Cagney <cagney@redhat.com>
6132
6133 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6134 generic_find_dummy_frame.
6135 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6136 (deprecated_generic_find_dummy_frame): Update.
6137 (deprecated_read_register_dummy): Update.
6138 * frame.c (deprecated_generic_get_saved_register): Update.
6139
6140 2003-05-15 Theodore A. Roth <troth@openavr.org>
6141
6142 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6143 (avr_gdbarch_init): Set breakpoint_from_pc method.
6144
6145 2003-05-15 Andrew Cagney <cagney@redhat.com>
6146
6147 * regcache.c (build_regcache): Set deprecated_register_valid
6148 directly.
6149 (deprecated_grub_regcache_for_register_valid): Delete function.
6150 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6151 declaration.
6152
6153 2003-05-15 David Carlton <carlton@bactrian.org>
6154
6155 Committed by Elena Zannoni <ezannoni@redhat.com>
6156 * symtab.c (lookup_symbol_aux): Delete calls to
6157 lookup_symbol_aux_minsyms.
6158 (lookup_symbol_aux_minsyms): Comment out function and
6159 prototype. Delete lookup by mangled name.
6160
6161 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6162
6163 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6164 correctly indicate an empty stack and ``stack_allocated'' to the
6165 indicate the number of elements initially allocated.
6166 (dwarf_expr_grow_stack): Simplify method for computing new
6167 stack size. Don't loop infinitely if ``stack_len'' is zero.
6168 (execute_stack_op): Move ``ctx->in_reg'' initialization
6169 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6170 be used in conjuction with DW_OP_piece. Revise error message
6171 accordingly.
6172
6173 2003-05-14 Theodore A. Roth <troth@openavr.org>
6174
6175 * MAINTAINERS: Update my email address.
6176 * avr-tdep.c: Ditto.
6177
6178 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6179
6180 * symtab.h (enum domain_enum): Rename from namespace_enum.
6181 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6182 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6183 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6184 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6185 TYPES_NAMESPACE, METHODS_NAMESPACE.
6186 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6187 (struct symbol, struct partial_symbol): Rename field
6188 'namespace_enum namespace' to 'domain_enum domain'.
6189 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6190 Delete old define kludge for namespace.
6191
6192 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6193 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6194 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6195 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6196 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6197 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6198 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6199 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6200 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6201 occurrences of the above.
6202
6203 2003-05-14 Ian Lance Taylor <ian@airs.com>
6204
6205 * Makefile.in (install-only): Use $(SHELL) when running
6206 mkinstalldirs.
6207
6208 2003-05-13 Ian Lance Taylor <ian@airs.com>
6209
6210 * MAINTAINERS (write after approval): Add myself.
6211
6212 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6213 second and third arguments.
6214 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6215 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6216
6217 2003-05-13 Andrew Cagney <cagney@redhat.com>
6218
6219 * defs.h (store_address): Delete declaration.
6220 findvar.c (store_address): Delete function.
6221 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6222 store_unsigned_integer.
6223 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6224 * v850-tdep.c (v850_push_arguments): Ditto.
6225 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6226 * sh-tdep.c (sh64_get_saved_register): Ditto.
6227 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6228 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6229 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6230 (mips_get_saved_register): Ditto.
6231 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6232 (find_func_descr, ia64_push_arguments): Ditto.
6233 * i386-tdep.c (i386_push_arguments): Ditto.
6234 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6235 * frv-tdep.c (frv_push_arguments): Ditto.
6236 * frame.c (legacy_saved_regs_prev_register): Ditto.
6237 (deprecated_generic_get_saved_register): Ditto.
6238 * findvar.c (unsigned_address_to_pointer): Ditto.
6239 * dwarf2read.c (dwarf2_const_value): Ditto.
6240 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6241 * alpha-tdep.c (alpha_push_arguments): Ditto.
6242
6243 2003-05-12 J. Brobecker <brobecker@gnat.com>
6244
6245 * NEWS: Mention that the hppa-hpux port has been partially
6246 multiarched (32bit ABIT only, so far).
6247
6248 2003-05-11 Andrew Cagney <cagney@redhat.com>
6249
6250 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6251 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6252 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6253 sim/testsuite/sim/arm/misaligned2.ms, and
6254 sim/testsuite/sim/arm/misaligned3.ms.
6255 * disasm.h (struct ui_file): Add opaque struct declaration.
6256 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6257 * frame.h (struct ui_file): Ditto.
6258
6259 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6260
6261 * value.h: Pretty print.
6262
6263 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6264
6265 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6266
6267 2003-05-08 Andrew Cagney <cagney@redhat.com>
6268
6269 * regcache.h (max_register_size): Delete declaration.
6270 * regcache.c (max_register_size): Delete function.
6271 (struct regcache_descr): Delete field "max_register_size".
6272 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6273 registers fit in MAX_REGISTER_SIZE.
6274 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6275 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6276 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6277 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6278 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6279 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6280 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6281 * dve3900-rom.c, hppa-tdep.c: Ditto.
6282
6283 2003-05-08 David Carlton <carlton@math.stanford.edu>
6284
6285 * valops.c (push_word): Fix typo.
6286
6287 2003-05-08 Andrew Cagney <cagney@redhat.com>
6288
6289 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6290 * gdbarch.h: Re-generate.
6291 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6292 (legacy_max_register_raw_size): Delete declaration.
6293 * regcache.c (legacy_max_register_raw_size): Delete function.
6294 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6295 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6296 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6297 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6298 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6299 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6300 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6301 * findvar.c, dwarf2cfi.c: Ditto.
6302
6303 2003-05-08 Andrew Cagney <cagney@redhat.com>
6304
6305 * mips-tdep.c (read_signed_register): New function, moved to here
6306 from "regcache.c".
6307 (read_signed_register_pid): Ditto.
6308 * regcache.c (read_signed_register_pid): Delete function, moved to
6309 "mips-tdep.c".
6310 (read_signed_register): Ditto.
6311 * regcache.h (read_signed_register): Delete declaration.
6312 (read_signed_register_pid): Delete declaration.
6313
6314 2003-05-08 Andrew Cagney <cagney@redhat.com>
6315
6316 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6317 * gdbarch.h: Re-generate.
6318 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6319 (legacy_max_register_virtual_size): Delete declaration.
6320 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6321 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6322 * tracepoint.c (memrange_sortmerge): Ditto.
6323 * sparc-tdep.c (sparc_print_registers): Ditto.
6324 * regcache.c (legacy_max_register_virtual_size): Delete function.
6325
6326 2002-05-08 J. Brobecker <brobecker@gnat.com>
6327
6328 * fork-child.c (escape_bang_in_quoted_argument): New function.
6329 (fork_inferior): Escape '!' characters in quoted arguments
6330 only when needed.
6331
6332 2003-05-08 J. Brobecker <brobecker@gnat.com>
6333
6334 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6335 the language of the CU is not currently supported by GDB.
6336
6337 2003-05-08 J. Brobecker <brobecker@gnat.com>
6338
6339 * defs.h (language): Add language_minimal enum value.
6340 * c-lang.c (minimal_language_defn): New language definition.
6341 (_initialize_c_language): Add the new minimal language to the list
6342 of languages known to GDB.
6343
6344 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6345
6346 * frame.c (get_frame_type): Don't attempt to lazily initialize
6347 frame's unwinder for legacy frames.
6348
6349 2003-05-07 Andrew Cagney <cagney@redhat.com>
6350
6351 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6352 and "regcache" parameters.
6353 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6354
6355 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6356
6357 * dwarf2read.c (dwarf_decode_lines): Only use output of
6358 check_cu_functions() when calling record_line(). Do not update
6359 the current address.
6360
6361 2003-05-07 Andrew Cagney <cagney@redhat.com>
6362
6363 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6364 code.
6365
6366 2003-05-07 Jim Blandy <jimb@redhat.com>
6367
6368 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6369 'maint info symtabs' and 'maint info psymtabs'.
6370 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6371 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6372 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6373 Declarations updated.
6374 * maint.c (maintenance_list_command): Delete.
6375 (_initialize_maint_cmds): Update calls to add_cmd.
6376 * gdbcmd.h (maintenancelistlist): Delete declaration.
6377 * cli/cli-cmds.c (maintenancelistlist): Delete.
6378 (init_cmd_lists): Don't initialize it.
6379 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6380
6381 2003-05-07 Andrew Cagney <cagney@redhat.com>
6382
6383 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6384 "regcache".
6385 (d10v_print_registers_info): Update.
6386 (d10v_dmap_register, d10v_imap_register): Delete functions.
6387 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6388 and "imap_register".
6389 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6390 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6391 * arch-utils.c (generic_remote_translate_xfer_address): Add
6392 "regcache" and "gdbarch" parameters.
6393 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6394 parameter. Change class to multi-arch.
6395 * gdbarch.h, gdbarch.c: Re-generate.
6396 * remote.c (remote_xfer_memory): Use
6397 gdbarch_remote_translate_xfer_address.
6398
6399 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6400
6401 * infrun.c (prev_pc): Move declaration ahead of proceed().
6402 (proceed): Refresh prev_pc value before resuming.
6403 (stop_stepping): Remove code to refresh prev_pc.
6404
6405 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6406
6407 * nto-tdep.c: Removed stray comment.
6408
6409 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6410
6411 * i386-nto-tdep.c: Fix old K&R function definitions.
6412 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6413 Also change add_show_from_set() call to add_setshow_cmd().
6414 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6415
6416 2003-05-05 Andrew Cagney <cagney@redhat.com>
6417
6418 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6419 (fprint_dummy_frames): New function.
6420 (maintenance_print_dummy_frames): New function.
6421 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6422 * frame.c (fprint_frame_id): Make global.
6423 * frame.h (fprint_frame_id): Declare.
6424 * Makefile.in (dummy-frame.o): Update dependencies.
6425
6426 2003-05-05 Andrew Cagney <cagney@redhat.com>
6427
6428 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6429 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6430 SIZEOF_CALL_DUMMY_WORDS.
6431 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6432 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6433 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6434 CALL_DUMMY_BREAKPOINT_OFFSET.
6435 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6436 CALL_DUMMY_START_OFFSET.
6437 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6438 * gdbarch.h, gdbarch.c: Re-generate.
6439 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6440 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6441 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6442 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6443 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6444 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6445 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6446 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6447 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6448 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6449 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6450 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6451 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6452 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6453 * config/sparc/tm-sparc.h: Update.
6454
6455 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6456
6457 * configure.tgt: Add i[3456]86-*-nto*.
6458 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6459 * nto-tdep.c: New file. Neutrino target support routines.
6460 * nto-tdep.h: New file. Neutrino target header.
6461 * config/tm-qnxnto.h: New file.
6462 * config/i386/i386nto.mt: New file.
6463 * config/i386/tm-i386nto.h: New file.
6464
6465 2003-05-04 Andrew Cagney <cagney@redhat.com>
6466
6467 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6468 (load_infrun_state): Ditto.
6469 (struct thread_info): Drop "prev_func_name" field.
6470 * thread.c (load_infrun_state): Update.
6471 (save_infrun_state): Update.
6472 * infrun.c (prev_func_name): Delete variable.
6473 (init_wait_for_inferior): Do not clear prev_func_name.
6474 (stop_stepping, keep_going, context_switch): Do not swap
6475 prev_func_name.
6476 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6477 instead of PC_IN_SIGTRAMP.
6478
6479 2003-05-04 Andrew Cagney <cagney@redhat.com>
6480
6481 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6482 REGISTER_BYTE with register_offset_hack.
6483 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6484 that REGISTER_BYTE is consistent with the regcache.
6485 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6486 * gdbarch.h, gdbarch.c: Regenerate.
6487
6488 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6489
6490 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6491 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6492
6493 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6494
6495 2003-05-03 J. Brobecker <brobecker@gnat.com>
6496
6497 From Thierry Schneider <tpschneider1@yahoo.com>
6498 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6499 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6500 (mi-cmd-symbol.o): Add rule.
6501
6502 2003-05-03 Andrew Cagney <cagney@redhat.com>
6503
6504 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6505 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6506 * gdbarch.h, gdbarch.c: Re-generate.
6507 * d10v-tdep.c (d10v_push_dummy_code): New function.
6508 (d10v_gdbarch_init): Set push_dummy_code.
6509 * infcall.c (legacy_push_dummy_code): New function.
6510 (generic_push_dummy_code): New function.
6511 (push_dummy_code): New function.
6512 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6513 instead of dummy_addr, to push_dummy_call. Move call to
6514 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6515 switch.
6516 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6517
6518 2003-05-03 Andrew Cagney <cagney@redhat.com>
6519
6520 * disasm.h (print_insn): Declare.
6521 * disasm.c (init_gdb_disassemble_info): New function.
6522 (gdb_disassembly): Call init_gdb_disassemble_info.
6523 (gdb_print_insn): New function.
6524 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6525 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6526 * mcore-tdep.c: Include "disasm.h"
6527 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6528 * d10v-tdep.c: Include "disasm.h".
6529 (display_trace): Call gdb_print_insn, instead of print_insn.
6530 (print_insn): Delete function.
6531 * printcmd.c: Include "disasm.h".
6532 (print_insn): Delete function.
6533 (print_formatted): Call gdb_print_insn, instead of print_insn.
6534 * Makefile.in (printcmd.o): Update dependencies.
6535 (mcore-tdep.o, d10v-tdep.o): Ditto.
6536
6537 2003-05-02 Andrew Cagney <cagney@redhat.com>
6538
6539 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6540 PC_REGNUM, re-indent.
6541 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6542 PC_REGNUM isn't set.
6543
6544 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6545 * gdbarch.h, gdbarch.c: Re-generate.
6546 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6547 register_virtual_size, pc_regnum, or register_bytes.
6548 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6549 (d10v_register_type): Use D10V_PC_REGNUM.
6550 (d10v_print_registers_info, d10v_read_pc): Ditto.
6551 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6552 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6553
6554 2003-05-02 David Carlton <carlton@bactrian.org>
6555
6556 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6557 the name with mstrsave.
6558
6559 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6560
6561 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6562 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6563 (host_charset_name, target_charset_name): New vars for use by
6564 set/show commands.
6565 (host_charset_enum, target_charset_enum): New enums for set/show
6566 commands.
6567 (set_charset_sfunc, set_host_charset_sfunc,
6568 set_target_charset_sfunc): New functions.
6569 (set_host_charset, set_target_charset): Make static.
6570 (list_charsets, set_host_charset_command,
6571 set_target_charset_command): Delete functions.
6572 (show_charset_command): Rewrite as....
6573 (show_charset): Hook this up with the set/show command mechanism.
6574 (_initialize_charset): Change names of charsets to match the
6575 set/show enums. Use host_charset_name and target_charset_name.
6576 Use set/show mechanism for charset, host-charset, target-charset
6577 commands. Do not make 'show host-charset' and 'show
6578 target-charset' be aliases of 'show charset'.
6579
6580 * charset.h (set_host_charset, set_target_charset): Don't export,
6581 they are not used outside the file.
6582
6583 2003-05-01 Andrew Cagney <cagney@redhat.com>
6584
6585 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6586 (gdb_disassembly): Make "di" non static, always initialize and
6587 cleanup. Always use dis_asm_read_memory.
6588 (gdb_dis_asm_read_memory): Delete function.
6589
6590 2003-05-01 Andrew Cagney <cagney@redhat.com>
6591
6592 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6593 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6594
6595 2003-04-30 Andrew Cagney <cagney@redhat.com>
6596
6597 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6598 "tm_print_insn_info".
6599 (TARGET_PRINT_INSN_INFO): Delete macro.
6600 (dis_asm_read_memory): Delete function declaration.
6601 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6602 (tm_print_insn_info): Delete variable definition.
6603 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6604 * gdbarch.h, gdbarch.c: Re-generate.
6605 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6606 "deprecated_tm_print_insn_info".
6607 * mcore-tdep.c (mcore_dump_insn): Ditto.
6608 * mips-tdep.c (mips_gdbarch_init): Ditto.
6609 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6610 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6611 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6612 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6613 instead of TARGET_PRINT_INSN_INFO, add comment.
6614 * s390-tdep.c (s390_get_frame_info): Instead of
6615 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6616 (s390_check_function_end, s390_is_sigreturn): Ditto.
6617 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6618 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6619 * disasm.c: Include "gdbcore.h".
6620 (_initialize_disasm): New function, initialize
6621 "deprecated_tm_print_insn_info".
6622 (deprecated_tm_print_insn_info): New variable.
6623 (dis_asm_read_memory): Moved from "corefile.c", made static.
6624 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6625 * Makefile.in (disasm.o): Update dependencies.
6626
6627 2003-04-30 Andrew Cagney <cagney@redhat.com>
6628
6629 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6630
6631 2003-04-29 Adam Fedor <fedor@gnu.org>
6632
6633 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6634 * infcall.c (find_function_addr): Make non-static.
6635 * infcall.h (find_function_addr): Declare.
6636 * Makefile.in (eval.o): Update dependencies.
6637
6638 2003-04-28 Adam Fedor <fedor@gnu.org>
6639
6640 * symtab.c (symbol_find_demangled_name): Check for and demangle
6641 ObjC symbols.
6642 (symbol_init_demangled_name): Init for language_objc as well.
6643
6644 2003-04-28 Andrew Cagney <cagney@redhat.com>
6645
6646 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6647 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6648 * gdbarch.h, gdbarch.c: Re-generate.
6649 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6650 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6651 * inferior.h (deprecated_read_fp): Rename read_fp.
6652 (generic_target_read_fp): Delete declaration.
6653 * regcache.c (generic_target_read_fp): Delete function.
6654 (deprecated_read_fp): Replace read_fp, use
6655 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6656 * d10v-tdep.c (d10v_read_fp): Delete function.
6657 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6658
6659 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6660 deprecated_target_read_fp to generic_target_read_fp.
6661 * sh-tdep.c (sh_gdbarch_init): Ditto.
6662 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6664 * frv-tdep.c (frv_gdbarch_init): Ditto.
6665
6666 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6667 deprecated_fp_regnum.
6668 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6669 * vax-tdep.c (vax_gdbarch_init): Ditto.
6670 * v850-tdep.c (v850_gdbarch_init): Ditto.
6671 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6672 * sh-tdep.c (sh_gdbarch_init): Ditto.
6673 * s390-tdep.c (s390_gdbarch_init): Ditto.
6674 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6675 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6676 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6677 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6678 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6679 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6680 * i386-tdep.c (i386_gdbarch_init): Ditto.
6681 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6682 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6683 * frv-tdep.c (frv_gdbarch_init): Ditto.
6684 * cris-tdep.c (cris_gdbarch_init): Ditto.
6685 * avr-tdep.c (avr_gdbarch_init): Ditto.
6686 * arm-tdep.c (arm_gdbarch_init): Ditto.
6687 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6688
6689 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6690 * v850-tdep.c (v850_gdbarch_init): Ditto.
6691 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6692 * sh-tdep.c (sh_gdbarch_init): Ditto.
6693 * s390-tdep.c (s390_gdbarch_init): Ditto.
6694 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6695 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6696 * mips-tdep.c (mips_gdbarch_init): Ditto.
6697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6698 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6699 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6700 * frv-tdep.c (frv_gdbarch_init): Ditto.
6701 * avr-tdep.c (avr_gdbarch_init): Ditto.
6702 * arm-tdep.c (arm_gdbarch_init): Ditto.
6703
6704 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6705 DEPRECATED_FP_REGNUM.
6706 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6707 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6708 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6709 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6710 (sparc32_register_virtual_type): Ditto.
6711 * sh-tdep.c (sh64_frame_chain): Ditto.
6712 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6713 (sh_nofp_frame_init_saved_regs): Ditto.
6714 (sh64_nofp_frame_init_saved_regs): Ditto.
6715 (sh_fp_frame_init_saved_regs): Ditto.
6716 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6717 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6718 * procfs.c (procfs_fetch_registers): Ditto.
6719 (procfs_store_registers): Ditto.
6720 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6721 (store_inferior_registers, fetch_core_registers): Ditto.
6722 (fetch_kcore_registers, clear_regs): Ditto.
6723 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6724 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6725 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6726 * nlm/i386.c (do_status): Ditto.
6727 * mipsv4-nat.c (supply_gregset): Ditto.
6728 * mips-tdep.c: Ditto for comments.
6729 * mips-nat.c (fetch_inferior_registers): Ditto.
6730 (store_inferior_registers, fetch_core_registers): Ditto.
6731 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6732 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6733 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6734 (i386_do_pop_frame, i386_register_type): Ditto.
6735 * hppa-tdep.c (hppa_frame_chain): Ditto.
6736 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6737 (hppa_pop_frame, hppa_read_fp): Ditto.
6738 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6739 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6740 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6741 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6742 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6743 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6744 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6745 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6746 * blockframe.c: Ditto for comments.
6747 * arch-utils.h: Ditto for comments.
6748 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6749 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6750 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6751 * alpha-tdep.h: Ditto for comments.
6752 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6753 (alpha_cannot_store_register): Ditto.
6754 (alpha_push_dummy_frame): Ditto.
6755 * alpha-nat.c (supply_gregset): Ditto.
6756
6757 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6758 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6759 * config/sparc/tm-sparc.h: Update comment.
6760
6761 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6762 deprecated_read_fp instead of TARGET_READ_FP.
6763 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6764 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6765 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6766 deprecated_read_fp instead of read_fp.
6767 * s390-tdep.c (s390_push_arguments): Ditto.
6768 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6769 * frame.h: Ditto in comments.
6770 * frame.c (legacy_get_prev_frame): Ditto.
6771 * dummy-frame.c (dummy_frame_this_id): Ditto.
6772 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6773
6774 2003-04-28 Andrew Cagney <cagney@redhat.com>
6775
6776 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6777 * gdbarch.h, gdbarch.c: Re-generate.
6778 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6779 * vax-tdep.c (_initialize_vax_tdep): Update.
6780 * v850-tdep.c (_initialize_v850_tdep): Update.
6781 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6782 * s390-tdep.c (_initialize_s390_tdep): Update.
6783 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6784 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6785 * mips-tdep.c (_initialize_mips_tdep): Update.
6786 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6787 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6788 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6789 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6790 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6791 * frv-tdep.c (_initialize_frv_tdep): Update.
6792 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6793 (_initialize_cris_tdep): Update.
6794 * arch-utils.c (legacy_print_insn): Update.
6795 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6796
6797 2003-04-26 Adam Fedor <fedor@gnu.org>
6798
6799 * linespec.c (decode_objc): New function to decode ObjC calls
6800 (decode_line_1): Check for ObjC calls (using decode_objc)
6801 * Makefile (linespec.o): Update dependencies.
6802
6803 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6804
6805 * breakpoint.h (struct breakpoint_ops): New.
6806 (struct breakpoint): Add ops member.
6807
6808 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6809 (mention): Use new breakpoint ops member.
6810 (set_raw_breakpoint): Initialize ops field to NULL.
6811 (print_exception_catchpoint, print_one_exception_catchpoint)
6812 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6813 (gnu_v3_exception_catchpoint_ops): New.
6814 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6815
6816 2003-04-25 Adam Fedor <fedor@gnu.org>
6817
6818 * Makefile.in (COMMON_OBS): Add objc-lang.o
6819
6820 2003-04-25 Andrew Cagney <cagney@redhat.com>
6821
6822 * d10v-tdep.c (print_insn): Delete function.
6823 (display_trace): Use TARGET_PRINT_INSN.
6824 (_initialize_d10v_tdep): Do not set tm_print_insn.
6825 (d10v_gdbarch_init): Set print_insn.
6826
6827 2003-04-25 Andrew Cagney <cagney@redhat.com>
6828
6829 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6830 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6831 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6832 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6833 (nr_dmap_regs, a0_regnum): ... new functions.
6834 (d10v_print_registers_info): Use a0_regnum, use register_size.
6835 (d10v_register_byte): Delete function.
6836 (d10v_register_raw_size): Delete function.
6837 (d10v_register_type): Use a0_regnum.
6838 (d10v_print_registers_info): Use a0_regnum.
6839 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6840 (d10v_gdbarch_init): Do not set register_byte or
6841 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6842 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6843 extract_address.
6844 (trace_command): Use XCALLOC.
6845 (print_insn): Delete reference to tm_print_insn.
6846 (saved_regs_unwinder): Use store_unsigned_integer instead of
6847 store_address.
6848 * frame.h (FRAME_OBSTACK_CALLOC): Define
6849
6850 2003-04-25 David Carlton <carlton@bactrian.org>
6851
6852 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6853
6854 2003-04-24 Adam Fedor <fedor@gnu.org>
6855
6856 * objc-lang.c: Include "valprint.h"
6857 * Makefile.in (objc-lang.o): Update dependencies.
6858
6859 2003-04-24 Adam Fedor <fedor@gnu.org>
6860
6861 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6862 architecture dependant compilation and mark as unimplemented
6863 (until they get put in the gdbarch vector).
6864
6865 2003-04-23 David Carlton <carlton@bactrian.org>
6866
6867 * cp-support.c (cp_find_first_component): Accept 'operator' in
6868 more locations.
6869
6870 2003-04-23 Andrew Cagney <cagney@redhat.com>
6871
6872 * infcall.c (call_function_by_hand): Eliminate redundant
6873 indentation. Move "saved_async" and "old_cleanups" to where they
6874 are needed.
6875
6876 2003-04-23 Andrew Cagney <cagney@redhat.com>
6877
6878 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6879 and "buffer". Move the "name" code to where it is needed.
6880
6881 2003-04-23 Andrew Cagney <cagney@redhat.com>
6882
6883 * infcall.c (call_function_by_hand): Move variables "start_sp",
6884 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6885 code to ON_STACK switch branch.
6886
6887 2003-04-23 Andrew Cagney <cagney@redhat.com>
6888
6889 * infcall.c (call_function_by_hand): Make declaration of "i",
6890 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6891 lint.
6892
6893 2003-04-23 Andrew Cagney <cagney@redhat.com>
6894
6895 * infcall.c (call_function_by_hand): Delete variable
6896 "n_method_args". Localize "param_type"'s declaration to the loop
6897 that it is used. Reinstate code assigning to said variable -
6898 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6899 Rationalize code using "param_type".
6900
6901 2003-04-22 Andrew Cagney <cagney@redhat.com>
6902
6903 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6904 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6905 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6906 to DEPRECATED_PUSH_RETURN_ADDRESS.
6907
6908 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6909
6910 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6911 on the DWARF2 register number prior to fetching a register.
6912
6913 2003-04-22 J. Brobecker <brobecker@gnat.com>
6914
6915 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6916 Update all the tests using SOFT_FLOAT considering the fact that
6917 this macro was always set to 0.
6918 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6919 considering the fact that this macro was always set to 0.
6920 * hppa-tdep.h (hppa_store_return_value): Likewise.
6921 (hppa_extract_return_value): Likewise.
6922
6923 2003-04-22 J. Brobecker <brobecker@gnat.com>
6924
6925 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6926 the hppa-pro target only.
6927
6928 2003-04-21 J. Brobecker <brobecker@gnat.com>
6929
6930 Ongoing multi-arch conversion effort for HP/UX:
6931 * config/pa/tm-hppa.h: Move all macro that are no longer
6932 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6933 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6934
6935 2003-04-21 J. Brobecker <brobecker@gnat.com>
6936
6937 * config/pa/tm-hppa.h: Obsolete a section that was only used
6938 for hppa-pro.
6939
6940 2003-04-21 J. Brobecker <brobecker@gnat.com>
6941
6942 Ongoing multi-arch conversion for HP/UX.
6943 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6944 if already defined (allows hppa64 to stay non-multiarched for now).
6945 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6946
6947 2003-04-21 Andrew Cagney <cagney@redhat.com>
6948
6949 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6950
6951 2003-04-21 Andrew Cagney <cagney@redhat.com>
6952
6953 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6954 "i386_num_mmx_regs".
6955
6956 2003-04-21 Andrew Cagney <cagney@redhat.com>
6957
6958 * infcall.c: New file.
6959 * infcall.h: New file.
6960 * valarith.c: Include "infcall.h".
6961 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6962 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6963 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6964 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6965 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6966 (SFILES): Add "infcall.c"
6967 (COMMON_OBS): Add "infcall.o".
6968 (infcall.o): Specify dependencies.
6969 * value.h (call_function_by_hand): Delete declaration.
6970 * inferior.h (run_stack_dummy): Delete declaration.
6971 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6972 (run_stack_dummy): Move to "infcall.c", merged into
6973 call_function_by_hand.
6974 * valops.c (call_function_by_hand): Moved to "infcall.c".
6975 (find_function_addr, value_arg_coerce): Ditto.
6976 (unwindonsignal_p, coerce_float_to_double): Ditto.
6977 (_initialize_valops): Move "set/show coerce-float-to-double", and
6978 "set/show unwindonsignal" commands to "infcall.c".
6979 * v850-tdep.c, target.h: Update comments.
6980 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6981 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6982 (sh64_init_extra_frame_info): Update comments.
6983 * mn10300-tdep.c: Update comments.
6984 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6985 * config/sparc/tm-sparc.h: Update comments.
6986 * breakpoint.h: Update comments.
6987 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6988 * arm-tdep.c: Update comment.
6989
6990 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6991
6992 * i386-tdep.c (i386_num_register_names): New variable.
6993 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6994 (MM0_REGNUM): Remove redundant parentheses in define.
6995 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6996 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6997 i386_mxcsr_regnum_p): Remove redundant parentheses.
6998 (i386_register_name): Use i386_num_register_names.
6999
7000 * i386-tdep.c (i386_extract_return_value,
7001 i386_store_return_value): Correct check for availability of
7002 floating-point registers.
7003
7004 * i386-tdep.c (i386_frame_num_args): Remove function.
7005 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7006
7007 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7008 mmx_regnum_to_fp_regnum. Adjust all callers.
7009
7010 * i386-tdep.c (i386_get_longjmp_target): Use
7011 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7012 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7013 extract_address.
7014
7015 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7016
7017 * core-regset.c: Update comments to reflect reality. Re-order
7018 includes.
7019 (fetch_core_registers): Use switch instead of if. Remove
7020 redundant prototype.
7021
7022 2003-04-18 Jim Blandy <jimb@redhat.com>
7023
7024 * s390-tdep.c (s390_frame_align): New function.
7025 (s390_gdbarch_init): Register it with the gdbarch object.
7026
7027 2003-04-17 Richard Henderson <rth@redhat.com>
7028
7029 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7030
7031 2003-04-17 Michael Snyder <msnyder@redhat.com>
7032 Karen Bennet <bennet@redhat.com>
7033
7034 Committed by Elena Zannoni <ezannoni@redhat.com>
7035 * gdb_gcore.sh: New script to create a core dump of a process.
7036
7037 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7038
7039 * values.c (value_being_returned): Don't fetch the return
7040 value if the return type is void.
7041
7042 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7043
7044 * thread-db.c: Reindented.
7045
7046 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7047
7048 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7049 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7050 as types.
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7077
7078 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7079 the size of ``long double'' to 16, instead of 8.
7080
7081 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7082
7083 * i386-linux-nat.c: Add some whitespace to make things more
7084 readable.
7085 (fetch_register, store_register, fetch_inferior_registers,
7086 store_inferior_registers): Get rid of assignment in if-statement.
7087 (store_register): Fix typo in error message.
7088
7089 2003-04-16 Andrew Cagney <cagney@redhat.com>
7090
7091 * utils.c (xmmalloc): Always allocate something, matches
7092 libiberty/xmalloc's semantics.
7093 (xmrealloc, xmcalloc): Ditto.
7094
7095 2003-04-16 Andrew Cagney <cagney@redhat.com>
7096
7097 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7098 update comments.
7099 (get_frame_type): Initialize unwind and type when needed.
7100 (get_frame_id, frame_register_unwind): Ditto.
7101
7102 2003-04-16 Andrew Cagney <cagney@redhat.com>
7103
7104 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7105 obsolete.
7106 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7107 * sparcl-stub.c: Obsolete file.
7108 * config/sparc/tm-sparclet.h: Obsolete file.
7109 * sparclet-stub.c: Obsolete file.
7110 * sparclet-rom.c: Obsolete file.
7111 * sparcl-tdep.c: Obsolete file.
7112 * config/sparc/tm-sparclite.h: Obsolete file.
7113 * config/sparc/sparclite.mt: Obsolete file.
7114 * config/sparc/sparclet.mt: Obsolete file.
7115 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7116 sparc86x-*-* obsolete.
7117
7118 2003-04-15 David Carlton <carlton@math.stanford.edu>
7119
7120 * Makefile.in (SFILES): Add cp-namespace.c.
7121 (COMMON_OBS): Add cp-namespace.o.
7122 (block.o): Depend on gdb_obstack_h and cp_support_h.
7123 (buildsym.o): Depend on cp_support_h.
7124 (cp-namespace.o): New.
7125 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7126 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7127 (dwarf2read.o): Depend on cp_support_h.
7128 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7129 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7130 processing_current_namespace.
7131 (read_namespace): Update processing_current_namespace; check for
7132 anonymous namespaces.
7133 (dwarf2_name): New function.
7134 (dwarf2_extension): Ditto.
7135 * cp-support.h: Update copyright, contributors.
7136 Add inclusion guards.
7137 Add opaque declaration for structs obstack, block, symbol.
7138 (struct using_direct): New struct.
7139 Add declarations for cp_find_first_component,
7140 cp_entire_prefix_len, processing_has_namespace_info,
7141 processing_current_namespace, cp_is_anonymous,
7142 cp_add_using_directive, cp_initialize_namespace,
7143 cp_finalize_namespace, cp_set_block_scope,
7144 cp_scan_for_anonymous_namespaces.
7145 * cp-namespace.c: New file.
7146 * cp-support.c: Update copyright.
7147 Include ctype.h, gdb_assert.h, gdbcmd.h.
7148 New variable maint_cplus_cmd_list.
7149 (cp_find_first_component): New function.
7150 (cp_entire_prefix_len, maint_cplus_command)
7151 (first_component_command, _initialize_cp_support): Ditto.
7152 * buildsym.c: Include cp-support.h.
7153 New variable using_list.
7154 (add_symbol_to_list): Check for anonymous namespaces.
7155 (finish_block): Set block's scope.
7156 (start_symtab): Initialize C++ namespace support.
7157 (end_symtab): Finalize C++ namespace support.
7158 * block.h: Add opaque declarations for structs
7159 block_namespace_info, using_direct, and obstack.
7160 Add declarations for block_set_scope and block_set_using.
7161 (struct block): Add 'language_specific' member.
7162 (BLOCK_NAMESPACE): New macro.
7163 * block.c: Include gdb_obstack.h and cp-support.h.
7164 (struct block_namespace_info): New struct.
7165 (block_set_scope): New function.
7166 (block_set_using, block_initialize_namespace): Ditto.
7167
7168 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7169
7170 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7171 (locate_base): Return early if there aren't any link map offsets.
7172 (svr4_solib_create_inferior_hook): Warn if shared library support
7173 is unavailable.
7174
7175 2003-04-14 David Carlton <carlton@math.stanford.edu>
7176
7177 * symtab.c (symbol_set_names): Add prefix when storing Java names
7178 in hash table. Fix for PR java/1039.
7179
7180 2003-04-14 David Carlton <carlton@math.stanford.edu>
7181
7182 * symtab.c (symbol_set_names): Rename 'name' arg to
7183 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7184 * symtab.h: Change 'name' argument in declaration of
7185 symbol_set_names to 'linkage_name'.
7186 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7187
7188 2003-04-14 Andrew Cagney <cagney@redhat.com>
7189
7190 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7191 return the fully sign-extended register value.
7192 (get_frame_pointer): Ditto.
7193 (mips_pop_frame): Initialize "proc_desc" after checking for a
7194 dummy frame.
7195
7196 2003-04-14 Andrew Cagney <cagney@redhat.com>
7197
7198 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7199 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7200 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7201 (mips_push_register): Delete function.
7202 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7203 PUSH_FP_REGNUM.
7204
7205 2003-04-14 Jim Blandy <jimb@redhat.com>
7206
7207 * symmisc.c: #include "gdb_regex.h".
7208 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7209 functions.
7210 * maint.c (maintenance_list_command): New function.
7211 (_initialize_maint_cmds): Register the above as commands.
7212 * symtab.h (maintenance_list_symtabs,
7213 maintenance_list_psymtabs): New declarations.
7214 * cli/cli-cmds.c (maintenancelistlist): New variable.
7215 (init_cmd_lists): Initialize it.
7216 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7217 * gdbcmd.h (maintenancelistlist): New declaration.
7218 * Makefile.in (symmisc.o): Update dependencies.
7219
7220 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7221
7222 * s390-nat.c: Include asm/types.h for addr_t.
7223
7224 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7225
7226 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7227 actually incoming type.
7228
7229 2003-04-13 Andrew Cagney <cagney@redhat.com>
7230
7231 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7232 get_next_frame and get_frame_saved_regs.
7233
7234 2003-04-13 Andrew Cagney <cagney@redhat.com>
7235
7236 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7237 of gdbarch_num_regs.
7238
7239 2003-04-13 Andrew Cagney <cagney@redhat.com>
7240
7241 * frame.h: Mention what replaced what in "struct frame_info".
7242 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7243 deprecated_update_frame_base_hack and
7244 deprecated_update_frame_pc_hack.
7245 * hppa-tdep.c: Ditto.
7246
7247 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7248
7249 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7250 to read_reg and update its comment. Remove regnum member.
7251 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7252 Don't call read_reg when setting in_reg. Call read_reg to get
7253 the frame base if it's in a register. Return the register number
7254 on the stack instead of in the context. Remove extra arguments
7255 to read_reg.
7256 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7257 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7258 the register number on the expression stack.
7259 (needs_frame_read_reg): Remove extra arguments.
7260
7261 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7262
7263 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7264 made non-static.
7265 (execute_stack_op): All callers updated.
7266 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7267 * dwarf2loc.c (find_location_expression): New function.
7268 (dwarf_expr_frame_base): Call it.
7269 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7270 (dwarf2_tracepoint_var_ref): New function, broken out from
7271 locexpr_tracepoint_var_ref.
7272 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7273 Make static.
7274 (loclist_read_variable, loclist_read_needs_frame): New functions.
7275 (loclist_describe_location, loclist_tracepoint_var_ref): New
7276 functions.
7277 (dwarf2_loclist_funcs): New struct location_funcs.
7278 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7279 (struct dwarf2_locexpr_baton): Add comments.
7280 (dwarf2_loclist_funcs): New extern.
7281 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7282 base_address and base_known.
7283 (dwarf_loc_buffer): New variable.
7284 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7285 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7286 (dwarf2_has_info): Initialize dwarf_loc_offset.
7287 (dwarf2_build_psymtabs): Read in .debug_loc.
7288 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7289 DWARF_LOC_SIZE.
7290 (psymtab_to_symtab_1): Likewise. Move base address calculation
7291 here, from...
7292 (dwarf2_get_pc_bounds): ... here. Use the base address from
7293 cu_header.
7294 (dwarf2_symbol_mark_computed): Handle location lists.
7295
7296 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7297
7298 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7299 if the linkage name demangled successfully.
7300
7301 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7302
7303 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7304 disassmbly_flavour): Removed.
7305
7306 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7307
7308 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7309
7310 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7311
7312 2003-04-12 Andrew Cagney <cagney@redhat.com>
7313
7314 * frame.h (struct frame_info): Move definition from here ...
7315 * frame.c (struct frame_info): ... to here.
7316
7317 2003-04-12 Andrew Cagney <cagney@redhat.com>
7318
7319 * gdbthread.h (save_infrun_state): Delete parameter
7320 "prev_func_start".
7321 (struct thread_info): Delete field "prev_func_start".
7322 (load_infrun_state): Ditto.
7323 * thread.c (load_infrun_state, save_infrun_state): Update.
7324 * infrun.c (prev_func_start): Delete variable.
7325 (context_switch, init_wait_for_inferior): Update.
7326 (stop_stepping, keep_going): Update.
7327
7328 2003-04-12 Andrew Cagney <cagney@redhat.com>
7329
7330 * gdbarch.sh: Add missing opaque declarations.
7331 * gdbarch.h: Regnerate.
7332 * symtab.h: Add missing opaque declarations.
7333 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7334 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7335 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7336 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7337 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7338 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7339 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7340 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7341 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7342 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7343 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7344 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7345 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7346
7347 2003-04-11 Andrew Cagney <cagney@redhat.com>
7348
7349 * frame.c (get_frame_id): Return this frame's "id".
7350 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7351 function start.
7352 (legacy_saved_regs_this_id): Replace function body with
7353 internal-error.
7354 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7355 FRAME_OBSTACK_ZALLOC.
7356 (create_new_frame): Mark the frame ID as valid.
7357
7358 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7359
7360 * Makefile.in (libbfd_h): Added missing setting.
7361 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7362 according to the selected ABI.
7363
7364 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7365
7366 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7367
7368 2003-04-11 Andrew Cagney <cagney@redhat.com>
7369
7370 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7371 SAVED_PC_AFTER_CALL.
7372 * gdbarch.h, gdbarch.c: Regenerate.
7373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7374 * x86-64-tdep.c (x86_64_init_abi): Update.
7375 * vax-tdep.c (vax_gdbarch_init): Update.
7376 * v850-tdep.c (v850_gdbarch_init): Update.
7377 * sparc-tdep.c (sparc_gdbarch_init): Update.
7378 * sh-tdep.c (sh_gdbarch_init): Update.
7379 * s390-tdep.c (s390_gdbarch_init): Update.
7380 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7381 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7382 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7383 * mips-tdep.c (mips_gdbarch_init): Update.
7384 * mcore-tdep.c (mcore_gdbarch_init): Update.
7385 * m68k-tdep.c (m68k_gdbarch_init): Update.
7386 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7387 * ia64-tdep.c (ia64_gdbarch_init): Update.
7388 (ia64_saved_pc_after_call): Update declaration.
7389 * i386ly-tdep.c (i386lynx_init_abi): Update.
7390 * i386-tdep.c (i386_gdbarch_init): Update.
7391 * hppa-tdep.c (hppa_gdbarch_init): Update.
7392 * h8300-tdep.c (h8300_gdbarch_init): Update.
7393 * frv-tdep.c (frv_gdbarch_init): Update.
7394 * cris-tdep.c (cris_gdbarch_init): Update.
7395 * avr-tdep.c (avr_gdbarch_init): Update.
7396 * arm-tdep.c (arm_gdbarch_init): Update.
7397 * alpha-tdep.c (alpha_gdbarch_init): Update.
7398 * ns32knbsd-nat.c (frame_num_args): Update.
7399 * ns32k-tdep.c (umax_frame_num_args): Update.
7400 * mips-tdep.c (mips_init_frame_pc_first): Update.
7401 * infrun.c (step_over_function): Update.
7402 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7403 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7404 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7405 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7406 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7407 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7408 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7409 * arch-utils.c (init_frame_pc_default): Update.
7410 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7411 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7412 declaration.
7413
7414 2003-04-11 Andrew Cagney <cagney@redhat.com>
7415
7416 * i387-tdep.c: Update copyright.
7417 (i387_to_double): Delete function.
7418 (double_to_i387): Delete function.
7419
7420 2003-04-10 Andrew Cagney <cagney@redhat.com>
7421
7422 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7423 frame's function's address. Simplify.
7424 (d10v_frame_unwind_cache): Check that the frame's function is
7425 non-zero.
7426
7427 2003-04-10 Jim Blandy <jimb@redhat.com>
7428
7429 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7430 call to set_gdbarch_deprecated_push_arguments.
7431
7432 2003-04-10 Andrew Cagney <cagney@redhat.com>
7433
7434 * frame.c (fprint_frame_id): New function.
7435 (fprint_frame_type, fprint_frame): New function.
7436 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7437 (create_sentinel_frame, get_frame_id): Ditto.
7438 (frame_id_p, frame_id_eq): Ditto.
7439 (frame_id_inner, create_new_frame): Ditto.
7440 (legacy_get_prev_frame, get_prev_frame): Ditto.
7441 (deprecated_update_frame_pc_hack): Ditto.
7442 (frame_register_unwind): Ditto.
7443 (deprecated_update_frame_base_hack): Ditto.
7444
7445 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7446
7447 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7448 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7449 frame_chain function.
7450 * Makefile.in: Add dependencies due to above change.
7451
7452 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7453
7454 * blockframe.c (legacy_frame_chain_valid): Move call to
7455 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7456 inside_entry_file.
7457
7458 2003-04-09 Andrew Cagney <cagney@redhat.com>
7459
7460 * frame.h (struct frame_id): Replace "pc" and "base" with
7461 "stack_addr" and "code_addr". Update comments.
7462 (frame_id_build): Update parameter names and comment.
7463 (struct frame_info): Replace "id_p" and "id" with "this_id".
7464 * dummy-frame.c (dummy_frame_this_id): Update.
7465 * breakpoint.c (print_one_breakpoint): Update.
7466 * frame.c (get_frame_id): Update.
7467 (get_frame_base, frame_id_build): Update.
7468 (create_sentinel_frame, legacy_get_prev_frame): Update.
7469 (deprecated_update_frame_base_hack): Update.
7470 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7471 (frame_id_inner): Ditto.
7472
7473 2003-04-09 Andrew Cagney <cagney@redhat.com>
7474
7475 * defs.h (gdb_print_host_address): Make "addr" parameter a
7476 pointer constant.
7477 * utils.c (gdb_print_host_address): Update.
7478
7479 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7480
7481 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7482 register number for R0 is 0.
7483
7484 2003-04-09 J. Brobecker <brobecker@gnat.com>
7485
7486 * frame.h (struct gdbarch): Add opaque structure definition
7487 to avoid a compilation warning on LynxOS 4.0.
7488
7489 2003-04-09 Andrew Cagney <cagney@redhat.com>
7490
7491 * frame.h (struct frame_info): Delete field "pc". Replace
7492 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7493 structure.
7494 * frame.c (frame_pc_unwind): Update.
7495 (create_sentinel_frame): Do not set "pc".
7496 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7497 (get_frame_pc): Call frame_pc_unwind.
7498 (deprecated_update_frame_pc_hack): Update.
7499 (create_new_frame): Use "pc" not "->pc".
7500
7501 2003-04-09 Andrew Cagney <cagney@redhat.com>
7502
7503 * frame.c (get_frame_id): Eliminate code updating "frame".
7504 (legacy_get_prev_frame): Ditto.
7505 (get_frame_base): Return id.base directly.
7506 (deprecated_update_frame_base_hack): Update "id.base".
7507 * frame.h (struct frame_info): Delete field "frame".
7508
7509 2003-04-09 Andrew Cagney <cagney@redhat.com>
7510
7511 * NEWS: Mention that the "Sequent family" is obsolete.
7512 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7513 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7514 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7515 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7516 * config/i386/tm-ptx4.h: Obsolete file.
7517 * config/i386/tm-ptx.h: Obsolete file.
7518 * symm-tdep.c: Obsolete file.
7519 * config/i386/symmetry.mt: Obsolete file.
7520 * config/i386/tm-symmetry.h: Obsolete file.
7521 * symm-nat.c: Obsolete file.
7522 * config/i386/nm-symmetry.h: Obsolete file.
7523 * config/i386/xm-symmetry.h: Obsolete file.
7524 * config/i386/symmetry.mh: Obsolete file.
7525 * config/i386/nm-ptx4.h: Obsolete file.
7526 * config/i386/ptx4.mh: Obsolete file.
7527 * config/i386/ptx.mt: Obsolete file.
7528 * config/i386/ptx.mh: Obsolete file.
7529 * config/i386/xm-ptx4.h: Obsolete file.
7530 * config/i386/xm-ptx.h: Obsolete file.
7531
7532 2003-04-09 Andrew Cagney <cagney@redhat.com>
7533
7534 Obsolete mips*-*-mach3*.
7535 * NEWS: Mention that mips*-*-mach3* is obsolete.
7536 * m3-nat.c: Obsolete file.
7537 * config/nm-m3.h: Obsolete file.
7538 * config/mips/tm-mipsm3.h: Obsolete file.
7539 * config/mips/mipsm3.mt: Obsolete file.
7540 * config/mips/mipsm3.mh: Obsolete file.
7541 * config/mips/xm-mipsm3.h: Obsolete file.
7542 * mipsm3-nat.c: Obsolete file.
7543 * configure.host: Obsolete mips-dec-mach3*.
7544 * configure.tgt: Obsolete mips*-*-mach3*.
7545
7546 2003-04-09 Andrew Cagney <cagney@redhat.com>
7547
7548 * doublest.h: Update copyright.
7549 (deprecated_store_floating, deprecated_extract_floating): Rename
7550 store_floating and extract_floating. Update comments.
7551 * doublest.c: Update copyright.
7552 (extract_floating_by_length): Replace extract_floating.
7553 (store_floating_by_length): Replace store_floating.
7554 (deprecated_extract_floating): New function.
7555 (deprecated_store_floating): New function.
7556 (extract_typed_floating): Call extract_floating_by_length.
7557 (store_typed_floating): Call store_floating_by_length.
7558 * x86-64-tdep.c (x86_64_store_return_value): Update.
7559 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7560 (sh64_extract_return_value): Update.
7561 (sh_sh4_register_convert_to_virtual): Update.
7562 (sh_sh64_register_convert_to_virtual): Update.
7563 (sh_sh4_register_convert_to_raw): Update.
7564 (sh_sh64_register_convert_to_raw): Update.
7565 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7566 (rs6000_register_convert_to_raw): Update.
7567 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7568 (ia64_register_convert_to_raw): Update.
7569 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7570 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7571 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7572 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7573 (alpha_register_convert_to_raw): Update.
7574
7575 2003-04-08 Andrew Cagney <cagney@redhat.com>
7576
7577 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7578 * gdbarch.h, gdbarch.c: Re-generate.
7579 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7580 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7581 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7582 conditionally, use frame_pc_unwind as an alternative. Add
7583 comments.
7584 * arch-utils.c (init_frame_pc_default): Only call
7585 SAVED_PC_AFTER_CALL when available.
7586
7587 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7588
7589 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7590 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7591 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7592 (start_remote): Ditto.
7593 (handle_inferior_event): Ditto.
7594 (save_inferior_status): Ditto.
7595 (restore_inferior_status): Ditto.
7596 * infcmd.c (attach_command): Ditto.
7597 * fork-child.c (startup_inferior): Ditto.
7598 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7599 * alpha-tdep.c (heuristic_proc_start): Ditto.
7600 * mips-tdep.c (heuristic_proc_start): Ditto.
7601 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7602 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7603 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7604 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7605 * remote-vx.c (vx_create_inferior): Ditto.
7606
7607 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7608
7609 * infrun.c (stop_soon_quietly): Make it an enum, to better
7610 override the default behavior of handle_inferior_event.
7611 (clear_proceed_status): Update uses of stop_soon_quietly to
7612 reflect that it is now an enum.
7613 (start_remote): Ditto.
7614 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7615 is set to handle the new GNU/Linux kernel behavior for
7616 attach/sigstop. Update uses of stop_soon_quietly.
7617 * inferior.h (enum stop_kind): New enum.
7618 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7619 Reset normal handle_inferior_event behavior, afterwards.
7620 * fork-child.c (startup_inferior): Update.
7621 * alpha-tdep.c (heuristic_proc_start): Update.
7622 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7623 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7624 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7625 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7626 * remote-vx.c (vx_create_inferior): Update.
7627 * mips-tdep.c (heuristic_proc_start): Update.
7628
7629 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7630
7631 * disasm.c (dump_insns): Move variables inside loop, or they will
7632 be freed more than once, causing wild memory corruptions.
7633 (gdb_disassembly): Look for the substring "-thread",
7634 instead of "-threads" in the target name, to make sure to find
7635 the 'multi-thread' target. Also, make sure we do the right thing
7636 with the "core" target.
7637
7638 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7639
7640 * mips-tdep.c (mips_print_fp_register): New function, created from
7641 do_fp_register_row(). Registers are now (also) printed as hex.
7642 Only one register is printed per row.
7643 (mips_print_register, do_fp_register_row): Print floating point
7644 registers with mips_print_fp_register().
7645
7646 2003-04-06 Andrew Cagney <cagney@redhat.com>
7647
7648 * valprint.h (inspect_it): Add extern declaration.
7649 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7650 (selectors_info, classes_info): Ditto.
7651 (find_objc_msgcall): Fix indentation.
7652 (objc_printstr): Delete extern declarations.
7653
7654 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7655
7656 2003-04-06 Andrew Cagney <cagney@redhat.com>
7657
7658 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7659 Update comment.
7660 * frame.c (legacy_saved_regs_this_id): Update.
7661 (legacy_get_prev_frame): Update.
7662 * xstormy16-tdep.c: Update comment.
7663 * sparc-tdep.c (sparc_frame_chain): Update comment.
7664 * blockframe.c (legacy_frame_chain_valid): Update.
7665
7666 2003-04-06 Andrew Cagney <cagney@redhat.com>
7667
7668 * valprint.c (val_print_type_code_int): Delete #ifdef
7669 PRINT_TYPELESS_INTEGER code.
7670
7671 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7672 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7673 multi-arch definition.
7674 * gdbarch.h: Re-generate.
7675
7676 2003-04-05 Andrew Cagney <cagney@redhat.com>
7677
7678 Eliminate FRAME_FIND_SAVED_REGS.
7679 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7680 Change FSR parameter to a pointer.
7681 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7682 Assume FSR parameter is a pointer.
7683 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7684 Make fsr a pointer.
7685 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7686 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7687 saved_regs a pointer.
7688 (hppa_frame_saved_pc): Ditto.
7689 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7690 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7691 pointer.
7692 (restore_pc_queue): Make fsr a pointer.
7693 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7694 (hppa_frame_chain): Make saved_regs a pointer, call
7695 hppa_frame_init_saved_regs.
7696 * sparc-tdep.c: Include "gdb_assert.h".
7697 (sparc_frame_find_saved_regs): Replace internal_error with
7698 gdb_assert.
7699 * remote-vxsparc.c (vx_read_register): Delete reference to
7700 FRAME_FIND_SAVED_REGS.
7701 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7702 * gdbarch.h: Regenerate.
7703 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7704 (deprecated_get_frame_saved_regs): Delete declaration.
7705 (struct frame_saved_regs): Delete definition.
7706 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7707 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7708 (hppa_frame_find_saved_regs): Delete declaration.
7709 (FRAME_FIND_SAVED_REGS): Delete macro.
7710 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7711 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7712 FRAME_FIND_SAVED_REGS in comment.
7713
7714 2003-04-05 Andrew Cagney <cagney@redhat.com>
7715
7716 * frame.c (frame_func_unwind, get_frame_func): New functions.
7717 * frame.h (get_frame_func, frame_func_unwind): Declare.
7718 (struct frame_info): Add field "prev_func" for caching the
7719 previous frame's function address.
7720 * arm-tdep.c (arm_frameless_function_invocation): Combine
7721 get_pc_function_start and get_frame_pc into get_frame_func.
7722 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7723 (sh64_nofp_frame_init_saved_regs): Ditto.
7724 * s390-tdep.c (s390_function_start): Ditto.
7725 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7726 (rs6000_frameless_function_invocation): Ditto.
7727 (rs6000_frame_saved_pc): Ditto.
7728 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7729 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7730 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7731 (i386_frame_init_saved_regs): Ditto.
7732 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7733 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7734 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7735 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7736 * blockframe.c (frameless_look_for_prologue): Ditto.
7737
7738 2003-04-05 Andrew Cagney <cagney@redhat.com>
7739
7740 * frame.c (legacy_get_prev_frame): Link prev to next at the
7741 function start. Update comments.
7742
7743 2003-04-05 Andrew Cagney <cagney@redhat.com>
7744
7745 * frame.c (get_frame_id): Update comment.
7746 (legacy_get_prev_frame): Update comment.
7747 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7748 * gdbarch.h: Regenerate.
7749 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7750 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7751
7752 2003-04-05 Andrew Cagney <cagney@redhat.com>
7753
7754 * stack.c (print_frame_info): Use get_frame_pc.
7755
7756 2003-04-04 Andrew Cagney <cagney@redhat.com>
7757
7758 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7759 the frame's type from the unwinder.
7760 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7761 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7762 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7763 (get_frame_base_address): Use get_frame_type.
7764 (get_frame_locals_address, get_frame_args_address): Ditto.
7765 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7766 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7767 (struct frame_info): Add comment explaining why the frame contains
7768 a "type" field.
7769 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7770 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7771 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7772 NORMAL_FRAME.
7773 * frame-unwind.h: Include "frame.h".
7774 (struct frame_unwind): Add "type" field.
7775 * Makefile.in (frame_unwind_h): Add $(frame_h).
7776
7777 2003-04-04 Andrew Cagney <cagney@redhat.com>
7778
7779 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7780 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7781 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7782 get_frame_base.
7783 (d10v_unwind_dummy_id): Use frame_id_build.
7784 * frame.c (find_frame_sal): Use get_frame_pc.
7785 (create_new_frame): Use deprecated_update_frame_pc_hack and
7786 deprecated_update_frame_base_hack.
7787 (create_sentinel_frame): Add comment about ->pc going away.
7788 (get_prev_frame): Add comment about ->pc going away.
7789 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7790 frame_id_build, deprecated_update_frame_pc_hack and
7791 deprecated_update_frame_base_hack.
7792 (select_frame): Use get_frame_pc.
7793 (legacy_saved_regs_this_id): Use frame_id_build.
7794
7795 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7796
7797 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7798 signed integer case.
7799 (classify_argument): Handle enumerations and references.
7800
7801 2003-04-04 Andrew Cagney <cagney@redhat.com>
7802
7803 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7804 ID to NULL.
7805
7806 2003-04-01 Adam Fedor <fedor@gnu.org>
7807
7808 * gdb/objc-lang.c (selectors_info): Replace calls to
7809 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7810 SYMBOL_NATURAL_NAME.
7811 (classes_info, find_methods): Likewise.
7812
7813 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7814
7815 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7816 ``mach'' to the value determined by bfd_default_set_arch_mach().
7817
7818 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7819
7820 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7821 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7822 (mi-cmd-file.o): Update dependencies.
7823
7824 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7825
7826 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7827 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7828
7829 2003-04-01 Adam Fedor <fedor@gnu.org>
7830
7831 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7832 * language.h (struct language_defn): Add la_demangle.
7833 (language_demangle): Declare.
7834 * language.c (language_demangle): New function.
7835 (unk_lang_demangle): Likewise.
7836 (unknown_language_defn, auto_language_defn, local_language_defn):
7837 Add ukn_lang_demangle.
7838 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7839 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7840 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7841 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7842 * jv-lang.c (java_demangle): New function
7843 (java_language_defn): Use it for la_demangle element.
7844 * objc-lang.c (objc_demangle): Add options argument
7845 (objc_language_defn): Use objc_demangle for la_demangle element.
7846 * maint.c (maintenance_demangle): Replace switch with
7847 call to language_demangle.
7848 * utils.c (fprintf_symbol_filtered): Likewise.
7849
7850 2003-04-01 Andrew Cagney <cagney@redhat.com>
7851
7852 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7853 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7854 PRINT_TYPELESS_INTEGER.
7855 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7856 PUSH_RETURN_ADDRESS.
7857
7858 2003-04-01 Andrew Cagney <cagney@redhat.com>
7859
7860 * Makefile.in (d10v-tdep.o): Update dependencies.
7861 * d10v-tdep.c: Include "frame-base.h".
7862 (d10v_frame_unwind): Make constant.
7863 (d10v_frame_base_address): New function.
7864 (d10v_frame_base): New variable.
7865 (d10v_gdbarch_init): Set frame_base default.
7866 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7867 comment for base.
7868 (d10v_frame_unwind_cache): Set and use "prev_sp".
7869 (d10v_frame_this_id): Use the previous frame's inner most stack
7870 address and this frame's func address for the frame ID. Use
7871 frame_id_build. Don't analyze beyond the current instruction.
7872
7873 2003-04-01 Andrew Cagney <cagney@redhat.com>
7874
7875 * frame.h (get_frame_locals_address, get_frame_args_address):
7876 Refer to the base address, instead of the address of the first
7877 local or parameter.
7878
7879 2003-04-01 Andrew Cagney <cagney@redhat.com>
7880
7881 Add frame debug info addresses:
7882 * frame-base.c: New file.
7883 * frame-base.h: New file.
7884 * frame.h (struct frame_base): Add opaque declaration.
7885 (get_frame_base): Update comment.
7886 (get_frame_base_address): Declare.
7887 (get_frame_locals_address): Declare.
7888 (get_frame_args_address): Declare.
7889 (struct frame_info): Add "base" and "base_cache". Update
7890 comments on the unwinder.
7891 * frame.c: Include "frame-base.h".
7892 (get_frame_locals_address): New function.
7893 (get_frame_base_address): New function.
7894 (get_frame_args_address): New function.
7895 * findvar.c (read_var_value): Use get_frame_locals_address and
7896 get_frame_args_address.
7897 * stack.c (frame_info): Use get_frame_locals_address and
7898 get_frame_args_address.
7899 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7900 moved to "frame-base.c".
7901 * printcmd.c (print_frame_nameless_args): Ditto.
7902 * symtab.h (address_class): Update comments.
7903 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7904 get_frame_base_address.
7905 * dwarf2expr.c (execute_stack_op): Ditto.
7906 * Makefile.in (frame_base_h): Define.
7907 (frame.o): Update dependencies.
7908 (frame-base.o): Add dependencies.
7909 (SFILES): Add frame-base.c.
7910 (COMMON_OBS): Add frame-base.o.
7911
7912 2003-04-01 Andrew Cagney <cagney@redhat.com>
7913
7914 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7915 CALL_DUMMY_LENGTH): Ditto.
7916 * gdbarch.c: Re-generate.
7917 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7918 (CALL_DUMMY_LENGTH): Delete macro.
7919 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7920 * arm-tdep.c (arm_gdbarch_init): Ditto.
7921 * avr-tdep.c (avr_gdbarch_init): Ditto.
7922 * cris-tdep.c (cris_gdbarch_init): Ditto.
7923 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7924 * frv-tdep.c (frv_gdbarch_init): Ditto.
7925 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7926 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7927 * i386-tdep.c (i386_gdbarch_init): Ditto.
7928 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7930 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7931 * mips-tdep.c (mips_gdbarch_init): Ditto.
7932 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7933 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7934 * s390-tdep.c (s390_gdbarch_init): Ditto.
7935 * sh-tdep.c (sh_gdbarch_init): Ditto.
7936 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7937 * v850-tdep.c (v850_gdbarch_init): Ditto.
7938 * vax-tdep.c (vax_gdbarch_init): Ditto.
7939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7940
7941 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7942
7943 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7944
7945 2003-04-01 Andrew Cagney <cagney@redhat.com>
7946
7947 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7948 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7949 * gdbarch.h, gdbarch.c: Re-generate.
7950 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7951 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7952 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7953 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7954 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7955 * infcmd.c (run_stack_dummy): Simplify assuming
7956 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7957 * infrun.c (handle_inferior_event): Ditto.
7958 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7959 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7960 * arm-tdep.c (arm_gdbarch_init): Ditto.
7961 * avr-tdep.c (avr_gdbarch_init): Ditto.
7962 * cris-tdep.c (cris_gdbarch_init): Ditto.
7963 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7964 * frv-tdep.c (frv_gdbarch_init): Ditto.
7965 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7966 * i386-tdep.c (i386_gdbarch_init): Ditto.
7967 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7968 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7969 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7970 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7971 * mips-tdep.c (mips_gdbarch_init): Ditto.
7972 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7973 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7974 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7975 * s390-tdep.c (s390_gdbarch_init): Ditto.
7976 * sh-tdep.c (sh_gdbarch_init): Ditto.
7977 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7978 * v850-tdep.c (v850_gdbarch_init): Ditto.
7979 * vax-tdep.c (vax_gdbarch_init): Ditto.
7980 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7981
7982 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7983
7984 * symfile.c (symfile_relocate_debug_section): Update call to
7985 bfd_simple_get_relocated_section_contents.
7986
7987 2003-03-31 Andrew Cagney <cagney@redhat.com>
7988
7989 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7990 * gdbarch.h, gdbarch.c: Regenerate.
7991 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7992 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7993 available.
7994 * frame.h (generic_fix_call_dummy): Delete declaration.
7995 * dummy-frame.h: Update comment.
7996 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7998 fix_call_dummy.
7999 * sh-tdep.c (sh_gdbarch_init): Ditto.
8000 * s390-tdep.c (s390_gdbarch_init): Ditto.
8001 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8002 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8004 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8005 * i386-tdep.c (i386_gdbarch_init): Ditto.
8006 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8007 * frv-tdep.c (frv_gdbarch_init): Ditto.
8008 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8009 * cris-tdep.c (cris_gdbarch_init): Ditto.
8010 * avr-tdep.c (avr_gdbarch_init): Ditto.
8011 * arm-tdep.c (arm_gdbarch_init): Ditto.
8012
8013 2003-03-31 J. Brobecker <brobecker@gnat.com>
8014
8015 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8016 (INIT_FRAME_AP): Likewise.
8017 (EXTRA_FRAME_INFO): Likewise.
8018
8019 2003-03-31 Andrew Cagney <cagney@redhat.com>
8020
8021 * gdbarch.sh: Include "symfile.h".
8022 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8023 * gdbarch.h, gdbarch.c: Re-generate.
8024 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8025 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8026 call_dummy_address, the default is at entry_point_address.
8027 * v850-tdep.c (v850_gdbarch_init): Ditto.
8028 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8029 * sh-tdep.c (sh_gdbarch_init): Ditto.
8030 * s390-tdep.c (s390_gdbarch_init): Ditto.
8031 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8032 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8033 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8034 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8035 * i386-tdep.c (i386_gdbarch_init): Ditto.
8036 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8037 * frv-tdep.c (frv_gdbarch_init): Ditto.
8038 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8039 * cris-tdep.c (cris_gdbarch_init): Ditto.
8040 * arm-tdep.c (arm_gdbarch_init): Ditto.
8041
8042 2003-03-31 Andrew Cagney <cagney@redhat.com>
8043
8044 * gdbarch.sh (CALL_DUMMY_P): Delete.
8045 * gdbarch.h, gdbarch.c: Re-generate.
8046 * inferior.h (CALL_DUMMY_P): Delete macro.
8047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8048 * vax-tdep.c (vax_gdbarch_init): Update.
8049 * v850-tdep.c (v850_gdbarch_init): Update.
8050 * sparc-tdep.c (sparc_gdbarch_init): Update.
8051 * sh-tdep.c (sh_gdbarch_init): Update.
8052 * s390-tdep.c (s390_gdbarch_init): Update.
8053 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8054 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8055 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8056 * mips-tdep.c (mips_gdbarch_init): Update.
8057 * mcore-tdep.c (mcore_gdbarch_init): Update.
8058 * m68k-tdep.c (m68k_gdbarch_init): Update.
8059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8060 * ia64-tdep.c (ia64_gdbarch_init): Update.
8061 * i386-tdep.c (i386_gdbarch_init): Update.
8062 * h8300-tdep.c (h8300_gdbarch_init): Update.
8063 * frv-tdep.c (frv_gdbarch_init): Update.
8064 * d10v-tdep.c (d10v_gdbarch_init): Update.
8065 * cris-tdep.c (cris_gdbarch_init): Update.
8066 * breakpoint.c (deprecated_frame_in_dummy): Update.
8067 * avr-tdep.c (avr_gdbarch_init): Update.
8068 * alpha-tdep.c (alpha_gdbarch_init): Update.
8069 * arm-tdep.c (arm_gdbarch_init): Update.
8070 * dummy-frame.c (dummy_frame_this_id): Update comments.
8071 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8072 * frame.c (legacy_get_prev_frame): Ditto.
8073 * valops.c (call_function_by_hand): Delete function.
8074 (hand_function_call): Rename to call_function_by_hand
8075
8076 2003-03-30 Andrew Cagney <cagney@redhat.com>
8077
8078 2002-11-10 Klee Dienes <kdienes@apple.com>
8079 * value.h (struct value): Update comment.
8080
8081 2003-03-30 Andrew Cagney <cagney@redhat.com>
8082
8083 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8084 D10V_FP_REGNUM.
8085 (d10v_gdbarch_init): Do not set fp_regnum.
8086
8087 * frame.c (get_frame_base): Force ID initialization.
8088 (get_prev_frame): Move computation of the frame ID from here ...
8089 (get_frame_id): ... to here.
8090 (legacy_get_prev_frame): Mark the frame ID as valid.
8091 * frame.h (struct frame_info): Add field "id_p".
8092
8093 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8094
8095 * i386-tdep.c (i386_store_struct_return): Removed.
8096 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8097
8098 2003-03-30 Andrew Cagney <cagney@redhat.com>
8099
8100 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8101 * gdbarch.h, gdbarch.c: Regenerate.
8102 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8104 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8105 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8106 * i386-tdep.c (i386_gdbarch_init): Ditto.
8107 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8108 * cris-tdep.c (cris_gdbarch_init): Ditto.
8109 * vax-tdep.c (vax_gdbarch_init): Ditto.
8110 * s390-tdep.c (s390_gdbarch_init): Ditto.
8111 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8112 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8113 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8114 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8115 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8116 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8117 * sparc-tdep.c (sparc_gdbarch_init): Update.
8118 * sh-tdep.c (sh_gdbarch_init): Update.
8119 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8120 * mips-tdep.c (mips_gdbarch_init): Update.
8121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8122 * ia64-tdep.c (ia64_gdbarch_init): Update.
8123 * frv-tdep.c (frv_gdbarch_init): Update.
8124 * avr-tdep.c (avr_gdbarch_init): Update.
8125 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8126 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8127 instead of when push_dummy_call is not available.
8128
8129 2003-03-30 Andrew Cagney <cagney@redhat.com>
8130
8131 * infttrace.c: Include "gdbthread.h".
8132 (parent_attach_all): Fix function signature.
8133 (call_ptrace): Update call.
8134 * Makefile.in (infttrace.o): Update dependencies.
8135
8136 2003-03-30 Andrew Cagney <cagney@redhat.com>
8137
8138 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8139 PUSH_RETURN_ADDRESS.
8140 * gdbarch.h, gdbarch.c: Regenerate.
8141 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8142 * x86-64-tdep.c (x86_64_init_abi): Update.
8143 * v850-tdep.c (v850_gdbarch_init): Update.
8144 * sparc-tdep.c (sparc_gdbarch_init): Update.
8145 * sh-tdep.c (sh_gdbarch_init): Update.
8146 * s390-tdep.c (s390_gdbarch_init): Update.
8147 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8148 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8149 * mips-tdep.c (mips_gdbarch_init): Update.
8150 * mcore-tdep.c (mcore_gdbarch_init): Update.
8151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8152 * ia64-tdep.c (ia64_gdbarch_init): Update.
8153 * i386-tdep.c (i386_gdbarch_init): Update.
8154 * h8300-tdep.c (h8300_gdbarch_init): Update.
8155 * frv-tdep.c (frv_gdbarch_init): Update.
8156 * cris-tdep.c (cris_gdbarch_init): Update.
8157 * avr-tdep.c (avr_gdbarch_init): Update.
8158 * arm-tdep.c (arm_gdbarch_init): Update.
8159 * valops.c (hand_function_call): Update.
8160
8161 2003-03-29 Andrew Cagney <cagney@redhat.com>
8162
8163 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8164 sizeof_call_dummy_words.
8165 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8166 define.
8167 * gdbarch.h: Regenerate.
8168
8169 2003-03-29 Andrew Cagney <cagney@redhat.com>
8170
8171 * infttrace.h: New file.
8172 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8173 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8174 (hpread_read_doc_function_type): Detect an initialized type1.
8175 (hpread_quick_traverse): Initialize mod_name_string.
8176 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8177 (som_solib_get_solib_by_pc): Declare.
8178 (so_lib_thread_start_addr): Declare.
8179 (no_shared_libraries): Declare.
8180 * somread.c (init_import_symbols): Make static. Add forward
8181 declaration.
8182 * config/pa/nm-hppah.h: Include "infttrace.h" for
8183 parent_attach_all.
8184 (hppa_insert_hw_watchpoint): Declare.
8185 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8186 * hppah-nat.c: Include "gdb_string.h".
8187 (parent_attach_all): Delete extern declaration, moved to
8188 "infttrace.h".
8189 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8190 int.
8191 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8192 * Makefile.in (infttrace_h): Define.
8193 (hpread.o): Update dependencies.
8194 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8195 * hppa-hpux-tdep.c: Include "gdb_string.h".
8196 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8197 * infrun.c (handle_inferior_event): Always initialize
8198 stepped_after_stopped_by_watchpoint. Add default and remove
8199 fallthrough in switch statement.
8200 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8201 parameter to int.
8202 (hppa_remove_hw_watchpoint): Ditto.
8203
8204 2003-03-29 Andrew Cagney <cagney@redhat.com>
8205
8206 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8207 offset.
8208
8209 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8210
8211 * arm-tdep.c (arm_push_arguments): Delete.
8212 (struct stack_item): New type.
8213 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8214 (arm_store_struct_return): Delte.
8215 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8216 arm_push_arguments or arm_store_struct_return.
8217
8218 2003-03-28 Andrew Cagney <cagney@redhat.com>
8219
8220 * Makefile.in (d10v-tdep.o): Update dependencies.
8221 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8222 * d10v-tdep.c: Include "remote.h".
8223 (target_resume_hook): Delete extern declaration.
8224 (target_wait_loop_hook): Ditto.
8225 (tdisassemble_command): Eliminate assignment in "if" conditional.
8226 (d10v_ts2_register_sim_regno): Eliminate call to
8227 legacy_register_sim_regno.
8228 (d10v_ts3_register_sim_regno): Ditto.
8229
8230 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8231
8232 * thread.c: Reindented.
8233 * lin-lwp.c: Ditto.
8234 * linux-proc.c: Ditto.
8235
8236 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8237
8238 * MAINTAINERS (write after approval): Add myself.
8239
8240 2003-03-27 Theodore A. Roth <troth@openavr.org>
8241
8242 * objc-exp.y: Add missing semi-colons.
8243
8244 2003-03-27 Andrew Cagney <cagney@redhat.com>
8245
8246 * regcache.c (write_sp): Delete function and references.
8247 * inferior.h (write_sp): Delete declaration.
8248 * valops.c (hand_function_call): Replace write_sp with
8249 TARGET_WRITE_SP.
8250 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8251 (sparc_pop_frame): Ditto.
8252
8253 2003-03-27 Andrew Cagney <cagney@redhat.com>
8254
8255 * NEWS: Mention removal of support for hppa*-*-bsd* and
8256 hppa*-*-osf* natives, and hppa*-*-pro* target.
8257 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8258 * config/pa/xm-pa.h: Obsolete file.
8259 * config/pa/xm-hppab.h: Obsolete file.
8260 * config/pa/nm-hppab.h: Obsolete file.
8261 * config/pa/tm-hppab.h: Obsolete file.
8262 * config/pa/tm-hppao.h: Obsolete file.
8263 * config/pa/nm-hppao.h: Obsolete file.
8264 * config/pa/tm-pro.h: Obsolete file.
8265 * config/pa/hppaosf.mt: Obsolete file.
8266 * config/pa/hppaosf.mh: Obsolete file.
8267 * config/pa/hppapro.mt: Obsolete file.
8268 * config/pa/hppabsd.mt: Obsolete file.
8269 * config/pa/hppabsd.mh: Obsolete file.
8270 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8271 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8272 hppa*-*-osf*.
8273
8274 2003-03-27 Andrew Cagney <cagney@redhat.com>
8275
8276 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8277 push_arguments. Don't set push_return_address or write_sp.
8278 (d10v_push_dummy_call): Replace d10v_push_arguments.
8279 (d10v_push_return_address, d10v_write_sp): Delete function,
8280 handled by push_dummy_call.
8281
8282 2003-03-26 Andrew Cagney <cagney@redhat.com>
8283
8284 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8285 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8286 regcache and dummy_addr parameters.
8287 * gdbarch.h, gdbarch.c: Re-generate.
8288 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8289 available; assume it will handle stack alignment and return
8290 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8291 legacy_push_arguments.
8292 (legacy_push_arguments): Rename default_push_arguments.
8293 * value.h (legacy_push_arguments): Rename default_push_arguments.
8294 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8295 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8296 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8297 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8298 * config/i386/tm-symmetry.h: Update.
8299 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8300 * x86-64-tdep.c (x86_64_init_abi): Update.
8301 * v850-tdep.c (v850_gdbarch_init): Update.
8302 * sparc-tdep.c (sparc_gdbarch_init): Update.
8303 * sh-tdep.c (sh_gdbarch_init): Update.
8304 * s390-tdep.c (s390_gdbarch_init): Update.
8305 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8306 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8307 * mips-tdep.c (mips_gdbarch_init): Update.
8308 * mcore-tdep.c (mcore_gdbarch_init): Update.
8309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8310 * ia64-tdep.c (ia64_gdbarch_init): Update.
8311 * i386-tdep.c (i386_gdbarch_init): Update.
8312 * hppa-tdep.c (hppa_gdbarch_init): Update.
8313 * h8300-tdep.c (h8300_gdbarch_init): Update.
8314 * frv-tdep.c (frv_gdbarch_init): Update.
8315 * d10v-tdep.c (d10v_gdbarch_init): Update.
8316 * cris-tdep.c (cris_gdbarch_init): Update.
8317 * avr-tdep.c (avr_gdbarch_init): Update.
8318 * arm-tdep.c (arm_gdbarch_init): Update.
8319 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8320 * alpha-tdep.c (alpha_gdbarch_init): Update.
8321
8322 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8323
8324 * signals/signals.c (do_target_signal_to_host): Correct realtime
8325 signal range test.
8326
8327 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8328
8329 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8330 (struct sal_chain, map_catch_names): Remove.
8331 (catch_exception_command_1): Don't call
8332 handle_gnu_4_16_catch_command.
8333
8334 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8335
8336 From Mark Dettinger <dettinge@de.ibm.com>:
8337 * dwarf2cfi.c (read_2u): Increment pointer by two.
8338
8339 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8340
8341 * signals/signals.c: Fix typos in last change.
8342
8343 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8344
8345 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8346 not already defined. Use __SIGRTMIN if available.
8347 (target_signal_from_host): Remove SIGRTMIN block.
8348 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8349 the signal is within the realtime range.
8350
8351 2003-03-25 Adam Fedor <fedor@gnu.org>
8352
8353 * Makefile.in (infrun.o): Add $(language_h)
8354 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8355 for language specific trampolines.
8356 * language.h (struct language_defn): Add skip_trampoline.
8357 (skip_language_trampoline): Declare.
8358 * language.c (unk_lang_trampoline, skip_language_trampoline):
8359 New functions.
8360 (unknown_language_defn, auto_language_defn, local_language_defn):
8361 Add ukn_lang_trampoline.
8362 * ada-lang.c (ada_language_defn): Add NULL for language
8363 specific skip_trampoline.
8364 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8365 scm-lang.c: Likewise.
8366 * objc-lang.c (objc_skip_trampoline): New function.
8367 (objc_language_defn): Add objc_skip_trampoline.
8368
8369 2003-03-25 Andrew Cagney <cagney@redhat.com>
8370
8371 * frame.c (get_prev_frame): Delay validating a frame's ID -
8372 non-NULL, didn't go backwards - until an attempt to unwind it to
8373 the previous frame.
8374
8375 2003-03-25 Andrew Cagney <cagney@redhat.com>
8376
8377 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8378 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8379 * gdbarch.h, gdbarch.c: Re-generate.
8380 * config/sparc/tm-sparc.h
8381 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8382 * sparc-tdep.c (sparc_gdbarch_init): Set
8383 deprecated_extra_stack_alignment_needed.
8384 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8385 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8386 extra_stack_alignment_needed.
8387 * v850-tdep.c (v850_gdbarch_init): Ditto.
8388 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8389 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8390 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8391 * cris-tdep.c (cris_gdbarch_init): Ditto.
8392 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8394
8395 2003-03-25 Andrew Cagney <cagney@redhat.com>
8396
8397 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8398 STORE_STRUCT_RETURN.
8399 * gdbarch.h, gdbarch.c: Regenerate.
8400 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8401 (d10v_push_arguments): Set the struct return register.
8402 (d10v_gdbarch_init): Update.
8403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8404 * x86-64-tdep.c (x86_64_init_abi): Update.
8405 * vax-tdep.c (vax_gdbarch_init): Update.
8406 * v850-tdep.c (v850_gdbarch_init): Update.
8407 * sparc-tdep.c (sparc_gdbarch_init): Update.
8408 * sh-tdep.c (sh_gdbarch_init): Update.
8409 * s390-tdep.c (s390_gdbarch_init): Update.
8410 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8411 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8412 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8413 * mips-tdep.c (mips_gdbarch_init): Update.
8414 * mcore-tdep.c (mcore_gdbarch_init): Update.
8415 * m68k-tdep.c (m68k_gdbarch_init): Update.
8416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8417 * ia64-tdep.c (ia64_gdbarch_init): Update.
8418 * i386-tdep.c (i386_gdbarch_init): Update.
8419 * hppa-tdep.c (hppa_gdbarch_init): Update.
8420 * h8300-tdep.c (h8300_gdbarch_init): Update.
8421 * frv-tdep.c (frv_gdbarch_init): Update.
8422 * cris-tdep.c (cris_gdbarch_init): Update.
8423 * avr-tdep.c (avr_gdbarch_init): Update.
8424 * arm-tdep.c (arm_gdbarch_init): Update.
8425 * alpha-tdep.c (alpha_gdbarch_init): Update.
8426
8427 2003-03-25 Andrew Cagney <cagney@redhat.com>
8428
8429 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8430 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8431 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8432 * gdbarch.h, gdbarch.c: Regenerate.
8433 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8434 call_dummy_stack_adjust_p.
8435 * vax-tdep.c (vax_gdbarch_init): Ditto.
8436 * v850-tdep.c (v850_gdbarch_init): Ditto.
8437 * sh-tdep.c (sh_gdbarch_init): Ditto.
8438 * s390-tdep.c (s390_gdbarch_init): Ditto.
8439 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8440 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8441 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8442 * mips-tdep.c (mips_gdbarch_init): Ditto.
8443 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8444 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8446 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8447 * i386-tdep.c (i386_gdbarch_init): Ditto.
8448 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8449 * frv-tdep.c (frv_gdbarch_init): Ditto.
8450 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8451 * cris-tdep.c (cris_gdbarch_init): Ditto.
8452 * avr-tdep.c (avr_gdbarch_init): Ditto.
8453 * arm-tdep.c (arm_gdbarch_init): Ditto.
8454 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8455 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8456 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8457 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8458 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8459 call_dummy_stack_adjust_p.
8460 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8461 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8462 * sparc-tdep.c (sparc32_push_arguments): Update.
8463 * valops.c (hand_function_call): Update.
8464
8465 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8466
8467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8468 set_gdbarch_char_signed.
8469
8470 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8471
8472 PR cli/548
8473 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8474
8475 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8476
8477 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8478 (_initialize_arm_tdep): Don't set tm_print_insn.
8479
8480 2003-03-24 Adam Fedor <fedor@gnu.org>
8481
8482 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8483 * objc-lang.h: Add multiple inclusion protection.
8484 (start_msglist, add_msglist, end_msglist): Additional declarations.
8485
8486 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8487
8488 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8489 value was renamed to ARM_FLOAT_SOFT_FPA.
8490
8491 2003-03-23 Andrew Cagney <cagney@redhat.com>
8492
8493 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8494 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8495 * gdbarch.h, gdbarch.c: Regenerate.
8496 * valops.c (hand_function_call): Update.
8497 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8498 * frame.c (legacy_saved_regs_this_id): Update.
8499 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8500 * dummy-frame.h: Update.
8501 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8502 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8503 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8504 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8505 * config/m68k/tm-sun3.h: Update.
8506 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8507 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8508 * x86-64-tdep.c (x86_64_init_abi): Update.
8509 * vax-tdep.c (vax_gdbarch_init): Update.
8510 * v850-tdep.c (v850_gdbarch_init): Update.
8511 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8512 * sh-tdep.c (sh_gdbarch_init): Update.
8513 * s390-tdep.c (s390_gdbarch_init): Update.
8514 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8515 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8516 (frame_get_saved_regs): Update.
8517 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8518 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8519 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8520 * mips-tdep.c (mips_gdbarch_init): Update.
8521 * mcore-tdep.c (mcore_gdbarch_init): Update.
8522 * m68k-tdep.c (m68k_gdbarch_init): Update.
8523 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8524 * ia64-tdep.c (ia64_gdbarch_init): Update.
8525 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8526 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8527 (i386_interix_back_one_frame): Update.
8528 * hppa-tdep.c (hppa_gdbarch_init): Update.
8529 (hppa_init_extra_frame_info): Update.
8530 * h8300-tdep.c (h8300_gdbarch_init): Update.
8531 * frv-tdep.c (frv_gdbarch_init): Update.
8532 * cris-tdep.c (cris_gdbarch_init): Update.
8533 * avr-tdep.c (avr_gdbarch_init): Update.
8534 * arm-tdep.c (arm_gdbarch_init): Update.
8535 * alpha-tdep.c (alpha_gdbarch_init): Update.
8536
8537 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8538
8539 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8540 (arm_get_fp_model): Declare.
8541 * arm-tdep.c (fp_model_strings): New string array.
8542 (arm_fp_model, current_fp_model): New variables.
8543 (arm_get_fp_model): New function.
8544 (arm_set_fp): New function.
8545 (set_fp_model_sfunc): New function.
8546 (show_fp_model): New function.
8547 (_initialize_arm_tdep): Add new command to set/show the FPU.
8548 (arm_extract_return_value): Use arm_get_fp_model.
8549 (arm_store_return_value): Likewise.
8550 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8551 to initialize the floating-point data types.
8552 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8553 model is FPA.
8554
8555 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8556
8557 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8558 the current setting of each value.
8559 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8560 new_set and new_show. Use add_setshow_cmd_full and
8561 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8562 commands and add new version as subcommands of "set/show arm".
8563
8564 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8565
8566 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8567 (set_arm_command, show_arm_command): New functions.
8568 (_initialize_arm_tdep): Add them.
8569 (num_disassembly_options): Renamed from num_flavor_options.
8570 (valid_disassembly_styles): Renamed from valid_flavors.
8571 (disassembly_style): Renamed from disassembly_flavor.
8572 (set_disassembly_style_sfunc): Renamed from
8573 set_disassembly_flavor_sfunc.
8574 (set_disassembly_style): Renamed from set_disassembly_flavor.
8575 (arm_othernames): Updated.
8576 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8577 command. Add "set/show arm disassembly" commands. Deprecate
8578 "othernames" command.
8579
8580 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8581
8582 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8583 (arm-tdep.o): Depend on elf_arm_h.
8584
8585 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8586
8587 * Makefile.in (coff_internal_h): Define.
8588 (arm-tdep.o): Update dependencies.
8589
8590 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8591
8592 * arm-tdep.c (prologue_cache): Delete.
8593 (check_prologue_cache, save_prologue_cache): Delete.
8594 (arm_scan_prologue): Don't check or update the prologue_cache.
8595 (arm_gdb_arch_init): Don't initialize it.
8596 (_initialize_arm_tdep): Likewise.
8597
8598 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8599
8600 * MAINTAINERS (tui): Maintainer of tui code.
8601
8602 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8603
8604 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8605 (i386-cygwin-tdep.o): Add dependencies.
8606 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8607 * i386-cygwin-tdep.c: New file.
8608 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8609 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8610
8611 2003-03-20 Andrew Cagney <cagney@redhat.com>
8612
8613 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8614 (handle_inferior_event): Remove code calling
8615 DYNAMIC_TRAMPOLINE_NEXTPC.
8616
8617 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8618 already has a full path.
8619
8620 * main.c (gdb_main): Return 1.
8621 (captured_main): Call error to report an invalid interpreter.
8622
8623 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8624 * alpha-osf1-tdep.c: Include "gdb_string.h".
8625
8626 2003-03-19 J. Brobecker <brobecker@gnat.com>
8627
8628 Continuing work to convert the hppa targets to multiarch partial.
8629
8630 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8631 method, now that hppa_push_dummy_frame has a conformant prototype.
8632 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8633 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8634 for the switch to multiarch partial.
8635
8636 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8637
8638 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8639 when iss is issNull.
8640
8641 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8642
8643 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8644 NUM_REGS bounds check.
8645
8646 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8647
8648 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8649 * mips-tdep.c (gdb_assert.h): Include.
8650 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8651 (mips_register_name): Handle integer registers explicitly. Add
8652 bounds checking.
8653 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8654 (mips_lsi33k_reg_names): Don't list integer registers; they're
8655 handled by mips_register_name() now.
8656 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8657 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8658 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8659 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8660 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8661
8662 2003-03-18 Andrew Cagney <cagney@redhat.com>
8663
8664 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8665 a void pointer.
8666 * gdbtypes.h (print_scalar_formatted): Update declaration.
8667 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8668
8669 2003-03-18 J. Brobecker <brobecker@gnat.com>
8670
8671 * infrun.c (observer.h): Add #include.
8672 (normal_stop): Add call to observer_notify_normal_stop.
8673 * Makefile.in (infrun.o): Add dependency on observer.h.
8674
8675 2003-03-18 J. Brobecker <brobecker@gnat.com>
8676
8677 Continuing work to convert the hppa targets to multiarch partial.
8678 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8679 parameter. Reformat comment.
8680 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8681 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8682 to match new profile.
8683
8684 2003-03-18 J. Brobecker <brobecker@gnat.com>
8685
8686 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8687 appear to be working in any case.
8688
8689 2003-03-18 J. Brobecker <brobecker@gnat.com>
8690
8691 * observer.c (observer_test_first_observer): New static variable.
8692 (observer_test_second_observer): Likewise.
8693 (observer_test_third_observer): Likewise.
8694 (observer_test_first_notification_function): New static function.
8695 (observer_test_second_notification_function): Likewise.
8696 (observer_test_third_notification_function): Likewise.
8697
8698 2003-03-17 J. Brobecker <brobecker@gnat.com>
8699
8700 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8701 * somsolib.c (gdb_assert.h): Likewise.
8702 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8703 (somsolib.o): Likewise.
8704
8705 2003-03-17 Andrew Cagney <cagney@redhat.com>
8706
8707 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8708 BFD. Simplify setting of di.endian.
8709
8710 2003-03-17 Andrew Cagney <cagney@redhat.com>
8711
8712 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8713 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8714
8715 From Elena Zannoni <ezannoni@redhat.com>
8716 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8717 vector and floating-point parameters.
8718 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8719 convention.
8720 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8721
8722 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8723
8724 * MAINTAINERS: Remove my name from several maintainership roles.
8725
8726 2003-03-17 Andrew Cagney <cagney@redhat.com>
8727
8728 Fix frame off-by-one bug.
8729 * frame-unwind.h (frame_this_id_ftype): Replace
8730 frame_unwind_id_ftype.
8731 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8732 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8733 with "prev_register".
8734 * frame-unwind.c (frame_unwind_find_by_pc): Return
8735 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8736 comment.
8737 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8738 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8739 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8740 (dummy_frame_unwind): Update.
8741 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8742 sentinel_frame_register_unwind.
8743 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8744 (sentinel_frame_unwinder): Update.
8745 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8746 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8747 * frame.c (create_sentinel_frame): Update. Initialize
8748 "prologue_cache" instead of "unwind_cache".
8749 (frame_register_unwind): Call this frame's prev_register with the
8750 next frame and this frame's prologue cache.
8751 (get_prev_frame): Simplify. Always call prev frame's this_id with
8752 this frame and prev frame's prologue cache. Document that this
8753 call is shifted one to the left when compared to the
8754 frame_register_unwind call.
8755 (legacy_saved_regs_prev_register): Replace
8756 frame_saved_regs_register_unwind.
8757 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8758 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8759 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8760 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8761 (d10v_frame_unwind): Update.
8762 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8763 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8764 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8765 "saved_regs" with "this_saved_regs".
8766
8767 2003-03-16 Andrew Cagney <cagney@redhat.com>
8768
8769 * frame.c (frame_pop): Don't call target_store_registers. Fix
8770 problem reported by Mark Kettenis.
8771
8772 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8773
8774 * i386-tdep.c (i386_register_type): Renamed from
8775 i386_register_virtual_type. Adjust function signature.
8776 (i386_gdbarch_init): Set register_type instead of
8777 deprecated_max_register_raw_size,
8778 deprecated_max_register_virtual_size and register_virtual_type.
8779
8780 2003-03-14 Andrew Cagney <cagney@redhat.com>
8781
8782 * frame.c (get_prev_frame): When a legacy frame, always call
8783 legacy_get_prev_frame. Simplify unwind code using assumption that
8784 the unwinder is new.
8785 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8786 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8787 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8788
8789 2003-03-14 Andrew Cagney <cagney@redhat.com>
8790
8791 * frame.c (get_saved_register): Delete function.
8792 * frame.h (get_saved_register): Delete declaration.
8793 * xstormy16-tdep.c: Update comment.
8794 * regcache.h: Update comments.
8795 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8796 get_saved_register and extract_address, use
8797 frame_read_unsigned_register.
8798 (sparc_frame_saved_pc): Ditto.
8799 (sparc_get_saved_register): Instead of get_saved_register, use
8800 frame_register.
8801 (sparc_pop_frame): Ditto.
8802 * findvar.c: Update comments.
8803 (value_of_register): Call frame_register instead of
8804 get_saved_register.
8805 (value_from_register): Ditto.
8806 * config/sparc/tm-sparc.h: Update comment.
8807 * breakpoint.c: Update comment.
8808
8809 2003-03-14 Andrew Cagney <cagney@redhat.com>
8810
8811 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8812 GET_SAVED_REGISTER.
8813 * gdbarch.h, gdbarch.c: Re-generate.
8814 * frame.h: Update comments.
8815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8816 * x86-64-tdep.c (x86_64_init_abi): Update.
8817 * sparc-tdep.c (sparc_gdbarch_init): Update.
8818 * sh-tdep.c (sh_gdbarch_init): Update.
8819 * mips-tdep.c (mips_gdbarch_init): Update.
8820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8821 * cris-tdep.c (cris_gdbarch_init): Update.
8822 * ia64-tdep.c (ia64_gdbarch_init): Update.
8823 * frame.c (frame_register): Update.
8824 (get_saved_register): Update.
8825 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8826
8827 2003-03-13 Andrew Cagney <cagney@redhat.com>
8828
8829 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8830 * gdbarch.h, gdbarch.c: Regenerate.
8831 * valops.c (hand_function_call): Update comment.
8832 * stack.c (return_command): Update comment.
8833 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8834 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8836 * x86-64-tdep.c (x86_64_init_abi): Update.
8837 * vax-tdep.c (vax_gdbarch_init): Update.
8838 * v850-tdep.c (v850_gdbarch_init): Update.
8839 * sparc-tdep.c (sparc_gdbarch_init): Update.
8840 * sh-tdep.c (sh_gdbarch_init): Update.
8841 * s390-tdep.c (s390_gdbarch_init): Update.
8842 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8843 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8844 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8845 * mips-tdep.c (mips_gdbarch_init): Update.
8846 * mcore-tdep.c (mcore_gdbarch_init): Update.
8847 * m68k-tdep.c (m68k_gdbarch_init): Update.
8848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8849 * ia64-tdep.c (ia64_gdbarch_init): Update.
8850 * i386-tdep.c (i386_gdbarch_init): Update.
8851 * hppa-tdep.c (hppa_gdbarch_init): Update.
8852 * h8300-tdep.c (h8300_gdbarch_init): Update.
8853 * frv-tdep.c (frv_gdbarch_init): Update.
8854 * cris-tdep.c (cris_gdbarch_init): Update.
8855 * avr-tdep.c (avr_gdbarch_init): Update.
8856 * arm-tdep.c (arm_gdbarch_init): Update.
8857 * alpha-tdep.c (alpha_gdbarch_init): Update.
8858
8859 2003-03-13 Andrew Cagney <cagney@redhat.com>
8860
8861 * frame.c (legacy_frame_p): New function.
8862 (get_prev_frame): Use legacy_frame_p.
8863 * frame.h (legacy_frame_p): Declare.
8864
8865 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8866
8867 * MAINTAINERS (write after approval): Alphabetically
8868 listing corrected.
8869
8870 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8871
8872 * MAINTAINERS (write after approval): Add myself.
8873
8874 2003-03-12 Andrew Cagney <cagney@redhat.com>
8875
8876 * frame.c (get_prev_frame): Rename the frame parameter to
8877 "this_frame".
8878 (get_next_frame, legacy_get_prev_frame): Ditto.
8879
8880 2003-03-12 Andrew Cagney <cagney@redhat.com>
8881
8882 * frame.c (get_current_frame): Check target_has_registers before
8883 checking target_has_stack.
8884 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8885 instead of deprecated_selected_frame.
8886 * findvar.c (value_of_register): Pass "frame", not
8887 deprecated_selected_frame, to value_of_builtin_reg.
8888
8889 2003-03-12 Andrew Cagney <cagney@redhat.com>
8890
8891 * regcache.c (regcache_cooked_write_signed): New function.
8892 (regcache_cooked_write_unsigned): New function.
8893 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8894 (regcache_cooked_read_signed): Fix regnum in range assertion.
8895 * regcache.h (regcache_cooked_write_signed): Declare.
8896 (regcache_cooked_write_unsigned): Declare.
8897
8898 2003-03-12 Andrew Cagney <cagney@redhat.com>
8899
8900 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8901 * gdbarch.h, gdbarch.c: Re-generate.
8902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8903 * x86-64-tdep.h: Update.
8904 * x86-64-tdep.c (x86_64_init_abi): Update.
8905 * v850-tdep.c (v850_gdbarch_init): Update.
8906 * sparc-tdep.c (sparc_gdbarch_init): Update.
8907 * sh-tdep.c (sh_gdbarch_init): Update.
8908 * s390-tdep.c (s390_gdbarch_init): Update.
8909 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8910 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8911 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8912 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8913 * mips-tdep.c (mips_gdbarch_init): Update.
8914 * mcore-tdep.c (mcore_gdbarch_init): Update.
8915 * m68k-tdep.c (m68k_gdbarch_init): Update.
8916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8917 * ia64-tdep.c (ia64_gdbarch_init): Update.
8918 * i386-tdep.c (i386_gdbarch_init): Update.
8919 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8920 * hppa-tdep.c (hppa_gdbarch_init): Update.
8921 * h8300-tdep.c (h8300_gdbarch_init): Update.
8922 * frv-tdep.c (frv_gdbarch_init): Update.
8923 * cris-tdep.c (cris_gdbarch_init): Update.
8924 * avr-tdep.c (avr_gdbarch_init): Update.
8925 * arm-tdep.c (arm_gdbarch_init): Update.
8926 * alpha-tdep.c (alpha_gdbarch_init): Update.
8927 * sh-tdep.c (sh_init_extra_frame_info): Update.
8928 (sh64_init_extra_frame_info): Update.
8929 * ns32knbsd-nat.c (frame_num_args): Update.
8930 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8931 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8932 (xstormy16_frame_chain_valid): Update.
8933 * vax-tdep.c (vax_saved_pc_after_call): Update.
8934 * v850-tdep.c (v850_frame_chain): Update.
8935 (v850_pop_frame): Update.
8936 (v850_init_extra_frame_info): Update.
8937 * sparc-tdep.c (setup_arbitrary_frame): Update.
8938 * ns32k-tdep.c (umax_frame_num_args): Update.
8939 * s390-tdep.c (s390_pop_frame_regular): Update.
8940 * mn10300-tdep.c (mn10300_frame_chain): Update.
8941 (mn10300_pop_frame_regular): Update.
8942 (mn10300_init_extra_frame_info): Update.
8943 * mips-tdep.c (mips_init_frame_pc_first): Update.
8944 (mips_frame_chain): Update.
8945 (mips_pop_frame): Update.
8946 * mcore-tdep.c (mcore_frame_chain): Update.
8947 (mcore_pop_frame): Update.
8948 (mcore_init_extra_frame_info): Update.
8949 * arch-utils.c (init_frame_pc_default): Update.
8950 * m68k-tdep.c (isi_frame_num_args): Update.
8951 (delta68_frame_num_args): Update.
8952 (news_frame_num_args): Update.
8953 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8954 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8955 (alpha_frame_chain): Update.
8956 (alpha_pop_frame): Update.
8957 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8958 (hppa_init_extra_frame_info): Update.
8959 (hppa_frame_chain): Update.
8960 (hppa_frame_chain_valid): Update.
8961 * cris-tdep.c (cris_init_extra_frame_info): Update.
8962 * avr-tdep.c (avr_init_extra_frame_info): Update.
8963 * arm-tdep.c (arm_frame_chain_valid): Update.
8964 (arm_init_extra_frame_info): Update.
8965 (arm_pop_frame): Update.
8966 * frame.c (frame_pc_unwind): Update.
8967 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8968 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8969 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8970 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8971 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8972 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8973
8974 2003-03-12 Andrew Cagney <cagney@redhat.com>
8975
8976 Eliminate the need for POP_FRAME.
8977 * frame.c (do_frame_unwind_register): New function.
8978 (frame_pop): When no POP_FRAME, pop the frame using register
8979 unwind and a scratch regcache.
8980 (frame_saved_regs_pop): Delete function.
8981 (trad_frame_unwinder): Update.
8982 * d10v-tdep.c (d10v_frame_pop): Delete function.
8983 (d10v_frame_unwind): Update.
8984 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8985 (sentinel_frame_unwinder): Update.
8986 * dummy-frame.c (dummy_frame_pop): Delete function.
8987 (dummy_frame_unwind): Update.
8988 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8989 (struct frame_unwind): Update.
8990
8991 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8992
8993 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8994 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8995 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8996 Do range checks on register number obtained from debugging info.
8997 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8998 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8999 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9000 mapping function.
9001 (do_fp_register_row): Fix typo which caused double type to be
9002 used when attempting to unpack a float.
9003
9004 2003-03-11 J. Brobecker <brobecker@gnat.com>
9005
9006 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9007
9008 2003-03-11 Andrew Cagney <cagney@redhat.com>
9009
9010 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9011 frame. Problem found by Corinna Vinschen.
9012
9013 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9014
9015 * doublest.c (floatformat_from_length): Accept also
9016 the real size of 'long double' type.
9017
9018 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9019
9020 From Klee Dienes <kdienes@apple.com>:
9021 * breakpoint.c (bpstat_copy): Copy the command lines as well
9022 as the old value, to match what is freed in bpstat_clear.
9023
9024 2003-03-10 David Carlton <carlton@math.stanford.edu>
9025
9026 * minsyms.c (add_minsym_to_hash_table): Replace
9027 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9028 (compare_minimal_symbols, compact_minimal_symbols)
9029 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9030 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9031 of DEPRECATED_SYMBOL_MATCHES_NAME.
9032 (lookup_minimal_symbol_solib_trampoline): Ditto.
9033
9034 2003-03-10 Andrew Cagney <cagney@redhat.com>
9035
9036 * regcache.h (regcache_cooked_read_ftype): Define.
9037 (regcache_save, regcache_restore): Add a cooked_read parameter.
9038 * regcache.c (regcache_save, regcache_restore): Update.
9039 (do_cooked_read): New function.
9040 (regcache_cpy): Pass do_cooked_read to regcache_save and
9041 regcache_restore.
9042
9043 2003-03-10 Andrew Cagney <cagney@redhat.com>
9044
9045 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9046 * gdbarch.h, gdbarch.c: Re-generate.
9047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9048 * x86-64-tdep.h: Update.
9049 * x86-64-tdep.c (x86_64_init_abi): Update.
9050 * v850-tdep.c (v850_gdbarch_init): Update.
9051 * sparc-tdep.c (sparc_gdbarch_init): Update.
9052 * sh-tdep.c (sh_gdbarch_init): Update.
9053 * s390-tdep.c (s390_gdbarch_init): Update.
9054 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9055 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9056 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9057 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9058 * mips-tdep.c (mips_gdbarch_init): Update.
9059 * mcore-tdep.c (mcore_gdbarch_init): Update.
9060 * m68k-tdep.c (m68k_gdbarch_init): Update.
9061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9062 * ia64-tdep.c (ia64_gdbarch_init): Update.
9063 * i386-tdep.c (i386_gdbarch_init): Update.
9064 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9065 * hppa-tdep.c (hppa_gdbarch_init): Update.
9066 * h8300-tdep.c (h8300_gdbarch_init): Update.
9067 * frv-tdep.c (frv_gdbarch_init): Update.
9068 * cris-tdep.c (cris_gdbarch_init): Update.
9069 * avr-tdep.c (avr_gdbarch_init): Update.
9070 * arm-tdep.c (arm_gdbarch_init): Update.
9071 * alpha-tdep.c (alpha_gdbarch_init): Update.
9072 * sh-tdep.c (sh_init_extra_frame_info): Update.
9073 (sh64_init_extra_frame_info): Update.
9074 * ns32knbsd-nat.c (frame_num_args): Update.
9075 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9076 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9077 (xstormy16_frame_chain_valid): Update.
9078 * vax-tdep.c (vax_saved_pc_after_call): Update.
9079 * v850-tdep.c (v850_frame_chain): Update.
9080 (v850_pop_frame): Update.
9081 (v850_init_extra_frame_info): Update.
9082 * sparc-tdep.c (setup_arbitrary_frame): Update.
9083 * ns32k-tdep.c (umax_frame_num_args): Update.
9084 * s390-tdep.c (s390_pop_frame_regular): Update.
9085 * mn10300-tdep.c (mn10300_frame_chain): Update.
9086 (mn10300_pop_frame_regular): Update.
9087 (mn10300_init_extra_frame_info): Update.
9088 * mips-tdep.c (mips_init_frame_pc_first): Update.
9089 (mips_frame_chain): Update.
9090 (mips_pop_frame): Update.
9091 * mcore-tdep.c (mcore_frame_chain): Update.
9092 (mcore_pop_frame): Update.
9093 (mcore_init_extra_frame_info): Update.
9094 * arch-utils.c (init_frame_pc_default): Update.
9095 * m68k-tdep.c (isi_frame_num_args): Update.
9096 (delta68_frame_num_args): Update.
9097 (news_frame_num_args): Update.
9098 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9099 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9100 (alpha_frame_chain): Update.
9101 (alpha_pop_frame): Update.
9102 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9103 (hppa_init_extra_frame_info): Update.
9104 (hppa_frame_chain): Update.
9105 (hppa_frame_chain_valid): Update.
9106 * cris-tdep.c (cris_init_extra_frame_info): Update.
9107 * avr-tdep.c (avr_init_extra_frame_info): Update.
9108 * arm-tdep.c (arm_frame_chain_valid): Update.
9109 (arm_init_extra_frame_info): Update.
9110 (arm_pop_frame): Update.
9111 * frame.c (frame_pc_unwind): Update.
9112 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9113 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9114 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9115 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9116 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9117 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9118
9119 2003-03-10 Andrew Cagney <cagney@redhat.com>
9120
9121 * gdbarch.sh (gdbarch_unwind_pc): New method.
9122 * gdbarch.h, gdbarch.c: Regenerate.
9123 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9124 but use read_pc and FRAME_SAVED_PC as fall backs.
9125 (frame_saved_regs_pc_unwind): Delete function.
9126 (trad_frame_unwinder): Update.
9127 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9128 (struct frame_unwind): Update.
9129 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9130 (dummy_frame_unwind): Update.
9131 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9132 (sentinel_frame_unwinder): Update.
9133 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9134 (d10v_frame_unwind): Update.
9135 (d10v_unwind_pc): New function.
9136 (d10v_gdbarch_init): Set unwind_pc.
9137
9138 2003-03-10 Andrew Cagney <cagney@redhat.com>
9139
9140 * gdbarch.h: Re-generate.
9141
9142 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9143 PC.
9144 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9145 the PC register.
9146
9147 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9148
9149 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9150
9151 2003-03-08 Andrew Cagney <cagney@redhat.com>
9152
9153 * cli-out.c: Update copyright.
9154 (cli_out_data): Define typedef. Use instead of ui_out_data.
9155
9156 2003-03-08 Andrew Cagney <cagney@redhat.com>
9157
9158 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9159 the result.
9160
9161 2003-03-07 Andrew Cagney <cagney@redhat.com>
9162
9163 * gdbarch.sh: Don't generate two macro definitions when an
9164 undefined macro taking no arguments.
9165 * gdbarch.h: Regenerate.
9166
9167 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9168
9169 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9170 (x86_64_unwind_dummy_id): New functions.
9171 (x86_64_init_abi): Register these two new functions.
9172
9173 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9174
9175 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9176 (x86_64_skip_prologue): Move prologue detection to
9177 separate function.
9178 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9179
9180 2003-03-05 Andrew Cagney <cagney@redhat.com>
9181
9182 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9183 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9184 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9185 to use unwind_dummy_id when a dummy frame.
9186 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9187 predicate.
9188 * gdbarch.h, gdbarch.c: Regneerate.
9189
9190 2003-03-05 Andrew Cagney <cagney@redhat.com>
9191
9192 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9193 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9194 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9195 values.
9196
9197 2003-03-05 Andrew Cagney <cagney@redhat.com>
9198
9199 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9200 (struct d10v_unwind_cache): Delete field "frameless". Replace
9201 "next_addr" with "sp_offset". Add "r11_offset".
9202 (d10v_frame_unwind_cache): Update.
9203 (prologue_find_regs): Update. When "mv r11, sp", save the
9204 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9205 RN was saved in r11_offset.
9206
9207 2003-03-05 Andrew Cagney <cagney@redhat.com>
9208
9209 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9210 cached PC value in the next frame.
9211
9212 2003-03-05 Andrew Cagney <cagney@redhat.com>
9213
9214 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9215 "id_unwind_cache" with "id".
9216 (frame_id_unwind): Delete declaration.
9217 * frame.c (frame_id_unwind): Delete function.
9218 (get_prev_frame): Call the frame id unwind method directly. Store
9219 the returned next frame's ID value in NEXT_FRAME. Note that there
9220 is a problem with the wrong unwind ID being called with the wrong
9221 unwind cache.
9222
9223 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9224
9225 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9226
9227 2003-03-05 James Ingham <jingham@apple.com>
9228 Daniel Jacobowitz <drow@mvista.com>
9229
9230 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9231 (auto_cp_abi): New variable.
9232 (current_cp_abi, num_cp_abis): Make static.
9233 (CP_ABI_MAX): Define.
9234 (cp_abis): Turn into an array.
9235 (value_virtual_fn_field): Fix formatting.
9236 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9237 takes a pointer.
9238 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9239 (list_cp_abis, _initialize_cp_abi): New functions.
9240 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9241 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9242 switch_to_cp_abi. Update prototype for register_cp_abi.
9243 * Makefile.in (cp-abi.o): Update dependencies.
9244 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9245 instead of switch_to_cp_abi.
9246 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9247 register_cp_abi.
9248 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9249 register_cp_abi.
9250 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9251
9252 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9253
9254 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9255 * dwarf2loc.c: Include "regcache.h".
9256 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9257 register_size.
9258 * Makefile.in (dwarf2loc.o): Update dependencies.
9259
9260 2003-03-04 Theodore A. Roth <troth@openavr.org>
9261
9262 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9263 number of io registers reported by remote target is not a multiple of
9264 step.
9265
9266 2003-03-04 David Carlton <carlton@math.stanford.edu>
9267
9268 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9269 (lookup_symbol_aux_psymtabs): Update call to
9270 lookup_partial_symbol.
9271 (lookup_transparent_type, find_main_psymtab)
9272 (make_symbol_overload_list): Ditto.
9273
9274 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9275
9276 * MAINTAINERS (Write after approval): Update my email address.
9277
9278 2003-03-03 Andrew Cagney <cagney@redhat.com>
9279
9280 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9281 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9282 predicate. Replace MAX_REGISTER_RAW_SIZE.
9283 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9284 MAX_REGISTER_VIRTUAL_SIZE.
9285 * regcache.c (legacy_max_register_raw_size): New function.
9286 (legacy_max_register_virtual_size): New function.
9287 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9288 (MAX_REGISTER_RAW_SIZE): Define.
9289 (legacy_max_register_raw_size): Declare.
9290 (legacy_max_register_virtual_size): Declare.
9291 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9292 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9293 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9294 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9295 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9296 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9297 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9298 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9299 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9300 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9301 * vax-tdep.c (vax_gdbarch_init): Update.
9302 * v850-tdep.c (v850_gdbarch_init): Update.
9303 * sparc-tdep.c (sparc_gdbarch_init): Update.
9304 * sh-tdep.c (sh_gdbarch_init): Update.
9305 * s390-tdep.c (s390_gdbarch_init): Update.
9306 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9307 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9308 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9309 * mips-tdep.c (mips_gdbarch_init): Update.
9310 * mcore-tdep.c (mcore_gdbarch_init): Update.
9311 * m68k-tdep.c (m68k_gdbarch_init): Update.
9312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9313 * ia64-tdep.c (ia64_gdbarch_init): Update.
9314 * i386-tdep.c (i386_gdbarch_init): Update.
9315 * hppa-tdep.c (hppa_gdbarch_init): Update.
9316 * h8300-tdep.c (h8300_gdbarch_init): Update.
9317 * frv-tdep.c (frv_gdbarch_init): Update.
9318 * cris-tdep.c (cris_gdbarch_init): Update.
9319 * avr-tdep.c (avr_gdbarch_init): Update.
9320 * arm-tdep.c (arm_gdbarch_init): Update.
9321 * alpha-tdep.c (alpha_gdbarch_init): Update.
9322 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9323 max_register_raw_size or max_register_virtual_size.
9324
9325 2003-03-03 David Carlton <carlton@math.stanford.edu>
9326
9327 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9328 SYMBOL_MATCHES_NAME, add comment.
9329 (SYMBOL_MATCHES_NATURAL_NAME): New.
9330 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9331 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9332 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9333 * symtab.c (lookup_partial_symbol): Use
9334 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9335 unhelpful comment.
9336 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9337 SYMBOL_MATCHES_NAME.
9338 Fix for PR c++/33.
9339
9340 2003-03-03 David Carlton <carlton@math.stanford.edu>
9341
9342 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9343 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9344 by regexp matching against SYMBOL_NATURAL_NAME.
9345
9346 2003-03-03 David Carlton <carlton@math.stanford.edu>
9347
9348 * linespec.c (find_method): Extract code into collect_methods.
9349 (collect_methods): New.
9350
9351 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9352
9353 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9354 get_frame_base.
9355
9356 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9357 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9358
9359 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9360
9361 * arch-utils.c (generic_register_byte): Fix to use the loop index
9362 and not regnum when summing the size of all registers up to regnum.
9363
9364 2003-03-01 Andrew Cagney <cagney@redhat.com>
9365
9366 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9367 FRAME_INIT_SAVED_REGS.
9368 * gdbarch.h, gdbarch.c: Regenerate.
9369 * stack.c (frame_info): Update.
9370 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9371 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9372 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9373 * ns32k-tdep.c (ns32k_pop_frame): Update.
9374 * mips-tdep.c (mips_pop_frame): Update.
9375 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9376 * ia64-tdep.c (ia64_frame_chain): Update.
9377 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9378 (ia64_frameless_function_invocation): Update.
9379 (ia64_init_extra_frame_info): Update.
9380 (ia64_pop_frame_regular): Update.
9381 * frame.h (struct frame_info): Update comment.
9382 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9383 * frame.c (frame_saved_regs_register_unwind): Update.
9384 (frame_saved_regs_register_unwind): Update.
9385 (deprecated_generic_get_saved_register): Update.
9386 * cris-tdep.c: Update comment.
9387 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9388 Rename macro.
9389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9390 * x86-64-tdep.c (x86_64_init_abi): Update.
9391 * vax-tdep.c (vax_gdbarch_init): Update.
9392 * v850-tdep.c (v850_gdbarch_init): Update.
9393 * sparc-tdep.c (sparc_gdbarch_init): Update.
9394 * sh-tdep.c (sh_gdbarch_init): Update.
9395 * s390-tdep.c (s390_gdbarch_init): Update.
9396 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9397 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9398 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9399 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9400 * mips-tdep.c (mips_gdbarch_init): Update.
9401 * mcore-tdep.c (mcore_gdbarch_init): Update.
9402 * m68k-tdep.c (m68k_gdbarch_init): Update.
9403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9404 * ia64-tdep.c (ia64_gdbarch_init): Update.
9405 * i386-tdep.c (i386_gdbarch_init): Update.
9406 * frv-tdep.c (frv_gdbarch_init): Update.
9407 * avr-tdep.c (avr_gdbarch_init): Update.
9408 * arm-tdep.c (arm_gdbarch_init): Update.
9409 * alpha-tdep.c (alpha_gdbarch_init): Update.
9410
9411 2003-03-01 Andrew Cagney <cagney@redhat.com>
9412
9413 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9414 option enum and switch. When no windows, set the interpreter to
9415 INTERP_CONSOLE.
9416
9417 2003-03-01 Andrew Cagney <cagney@redhat.com>
9418
9419 * main.c (captured_main): Replace magic option characters with an
9420 enum.
9421
9422 2003-03-01 Andrew Cagney <cagney@redhat.com>
9423
9424 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9425 INIT_EXTRA_FRAME_INFO.
9426 * gdbarch.h, gdbarch.c: Regenerate.
9427 * arm-tdep.c: Update comments.
9428 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9429 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9430 * frame.h, avr-tdep.c: Ditto.
9431 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9432 (create_new_frame, legacy_get_prev_frame): Ditto.
9433 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9434 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9436 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9437 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9438 * v850-tdep.c (v850_gdbarch_init): Ditto.
9439 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9440 * sh-tdep.c (sh_gdbarch_init): Ditto.
9441 * s390-tdep.c (s390_gdbarch_init): Ditto.
9442 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9443 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9444 * mips-tdep.c (mips_gdbarch_init): Ditto.
9445 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9447 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9448 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9449 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9450 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9451 * frv-tdep.c (frv_gdbarch_init): Ditto.
9452 * cris-tdep.c (cris_gdbarch_init): Ditto.
9453 * avr-tdep.c (avr_gdbarch_init): Ditto.
9454 * arm-tdep.c (arm_gdbarch_init): Ditto.
9455 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9456 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9457
9458 2003-03-01 Andrew Cagney <cagney@redhat.com>
9459
9460 * gdbarch.sh (register_type): New function with predicate.
9461 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9462 * gdbarch.h, gdbarch.c: Re-generate.
9463 * arch-utils.c (generic_register_byte): Use generic_register_size.
9464 (generic_register_size): When available, use
9465 gdbarch_register_type.
9466 * regcache.c (init_regcache_descr): When available, initialize the
9467 register type array using gdbarch_register_type. If the
9468 architecture supplies gdbarch_register_type, do not use the legacy
9469 regcache layout.
9470 * d10v-tdep.c (d10v_register_type): Replace
9471 d10v_register_virtual_type.
9472 (d10v_gdbarch_init): Set register_type instead of
9473 register_virtual_type.
9474
9475 2003-03-01 Andrew Cagney <cagney@redhat.com>
9476
9477 * Makefile.in (ax-gdb.o): Update dependencies.
9478 * ax-gdb.c: Include "regcache.h".
9479 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9480 * findvar.c (value_of_register): Ditto.
9481 * infcmd.c (default_print_registers_info): Ditto.
9482
9483 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9484
9485 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9486 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9487
9488 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9489
9490 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9491 of STREQ.
9492
9493 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9494
9495 * Makefile.in (dwarf2loc.o): Update dependencies.
9496 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9497 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9498 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9499 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9500 (locexpr_tracepoint_var_ref): New function.
9501 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9502
9503 2003-02-28 Andrew Cagney <cagney@redhat.com>
9504
9505 * regcache.c (register_size): New function.
9506 * regcache.h (register_size): Declare
9507 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9508 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9509
9510 2003-02-28 David Carlton <carlton@math.stanford.edu>
9511
9512 * linespec.c (decode_compound): Extract code into find_method.
9513 (find_method): New.
9514
9515 2003-02-28 J. Brobecker <brobecker@gnat.com>
9516
9517 * Makefile.in: Add rules to build and link in observer.o.
9518
9519 2003-02-27 J. Brobecker <brobecker@gnat.com>
9520
9521 * observer.c: Minor comments edits.
9522
9523 2003-02-27 J. Brobecker <brobecker@gnat.com>
9524
9525 * observer.h, observer.c: New file.
9526
9527 2003-02-27 Andrew Cagney <cagney@redhat.com>
9528
9529 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9530
9531 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9532
9533 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9534 (M6812_OP_STS_EXT): Likewise.
9535 (m6811_prologue): Use the above to recognize prologue.
9536 (m6812_prologue): Likewise.
9537
9538 2003-02-27 David Carlton <carlton@math.stanford.edu>
9539
9540 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9541 SYMBOL_PRINT_NAME.
9542 (compare_psymbols): Ditto.
9543 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9544
9545 2003-02-27 Michael Snyder <msnyder@redhat.com>
9546
9547 * f-lang.c (build_fortran_types): New function.
9548 (_initialize_f_language): Gdbarch-register built-in fortran types.
9549 * doublest.c (extract_floating): Fix warning text.
9550
9551 2003-02-27 Andrew Cagney <cagney@redhat.com>
9552
9553 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9554 predicate. Replaces PUSH_DUMMY_FRAME.
9555 * gdbarch.h, gdbarch.c: Regnerate.
9556 * valops.c (hand_function_call): Update. Call
9557 generic_push_dummy_frame directly.
9558 * vax-tdep.c (vax_gdbarch_init): Update.
9559 * sparc-tdep.c (sparc_gdbarch_init): Update.
9560 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9561 * m68k-tdep.c (m68k_gdbarch_init): Update.
9562 * hppa-tdep.c (hppa_gdbarch_init): Update.
9563 * alpha-tdep.c (alpha_gdbarch_init): Update.
9564 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9565 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9566 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9567 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9568 push_dummy_frame to generic_push_dummy_frame.
9569 * v850-tdep.c (v850_gdbarch_init): Ditto.
9570 * sh-tdep.c (sh_gdbarch_init): Ditto.
9571 * s390-tdep.c (s390_gdbarch_init): Ditto.
9572 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9573 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9574 * mips-tdep.c (mips_gdbarch_init): Ditto.
9575 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9577 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9578 * i386-tdep.c (i386_gdbarch_init): Ditto.
9579 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9580 * frv-tdep.c (frv_gdbarch_init): Ditto.
9581 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9582 * cris-tdep.c (cris_gdbarch_init): Ditto.
9583 * avr-tdep.c (avr_gdbarch_init): Ditto.
9584 * arm-tdep.c (arm_gdbarch_init): Ditto.
9585
9586 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9587
9588 * mips-tdep.c (show_mips_abi): New function.
9589 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9590 command ``show mips abi''.
9591
9592 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9593
9594 From Elena Zannoni <ezannoni@redhat.com>
9595 * dbxread.c (process_one_symbol): Only record line 0 if one or
9596 more sline entries have been seen for the function.
9597
9598 2003-02-26 Michael Chastain <mec@shout.net>
9599
9600 * configure: Regenerate with autoconf 000227.
9601
9602 2003-02-26 Michael Chastain <mec@shout.net>
9603
9604 Close PR build/660.
9605 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9606 for old libc5/glibc.
9607 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9608
9609 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9610
9611 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9612 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9613
9614 2003-02-26 Michael Chastain <mec@shout.net>
9615
9616 * configure.in: New variable HAVE_UINTPTR_T.
9617 * configure, config.in: Regenerated.
9618
9619 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9620
9621 Fix PR build/1097.
9622 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9623
9624 2003-02-25 Andrew Cagney <cagney@redhat.com>
9625
9626 * frame.c (get_prev_frame): Add comment on check for
9627 inside_entry_func. Only check for inside_entry_file when not a
9628 dummy and not a sentinel. Check that the new frame is not inner
9629 to the old frame.
9630
9631 2003-02-25 Andrew Cagney <cagney@redhat.com>
9632
9633 * frame.c (frame_debug): New variable.
9634 (_initialize_frame): Add "set/show debug frame" command.
9635 (get_prev_frame): When frame_debug, print reason why unwind
9636 failed.
9637
9638 2003-02-25 Michael Chastain <mec@shout.net>
9639
9640 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9641 to avoid uintptr_t definition problems.
9642
9643 2003-02-25 David Carlton <carlton@math.stanford.edu>
9644
9645 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9646 (SYMBOL_LINKAGE_NAME): Ditto.
9647 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9648 SYMBOL_LINKAGE_NAME.
9649 (struct general_symbol_info): Expand comment.
9650 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9651 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9652 (SYMBOL_MATCHES_REGEXP): Ditto.
9653 * symtab.c (symbol_natural_name): New function.
9654 * objfiles.h: Replace all uses of SYMBOL_NAME by
9655 DEPRECATED_SYMBOL_NAME.
9656 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9657 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9658 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9659 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9660 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9661 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9662 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9663 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9664 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9665 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9666 * ada-exp.y: Ditto.
9667 * ada-exp.y: Update copyright.
9668 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9669 * cp-valprint.c: Ditto.
9670
9671 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9672
9673 * infptrace.c (detach): Do not flag error if ptrace detach fails
9674 and errno is set to ESRCH.
9675
9676 2003-02-24 Andrew Cagney <cagney@redhat.com>
9677
9678 * infptrace.c (udot_info): Change type of udot_off to long. Use
9679 paddr when printing udot_off's value.
9680
9681 2003-02-24 David Carlton <carlton@math.stanford.edu>
9682
9683 * symtab.c (make_symbol_overload_list): Only read in partial
9684 symtabs containing a matching partial symbol.
9685
9686 2003-02-24 David Carlton <carlton@math.stanford.edu>
9687
9688 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9689 do the comparison, not strcmp.
9690 * symfile.c (compare_psymbols): Ditto.
9691 * defs.h: Declare strcmp_iw_ordered.
9692 * utils.c (strcmp_iw_ordered): New function.
9693
9694 2003-02-24 Jim Blandy <jimb@redhat.com>
9695
9696 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9697 support, shared libs): Remove my name from here, to better reflect
9698 reality.
9699
9700 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9701
9702 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9703 (target_ops): Add to_have_continuable_watchpoint.
9704 * target.c (update_current_target): Add INHERIT line for
9705 to_have_continuable_watchpoint.
9706 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9707 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9708 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9709 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9710
9711 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9712
9713 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9714 maintainership.
9715
9716 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9717
9718 * solib.c (solib_open): Call target defined search function after
9719 failing with solib-search-path.
9720 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9721 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9722
9723 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9724
9725 * MAINTAINERS: Add myself to Write After section.
9726
9727 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9728
9729 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9730
9731 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9732
9733 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9734 (m68hc11_add_reggroups): New function.
9735 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9736 (m68hc11_gdbarch_init): Install the reggroups.
9737 (_initialize_m68hc11_tdep): Initialize them.
9738
9739 2003-02-21 James E Wilson <wilson@tuliptree.org>
9740
9741 * MAINTAINERS: Update my email address.
9742
9743 2003-02-21 David Carlton <carlton@math.stanford.edu>
9744
9745 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9746
9747 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9748
9749 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9750 * symtab.h: Add opaque declarations of struct axs_value and
9751 struct agent_expr.
9752 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9753 (struct location_funcs): New type.
9754 (struct symbol): Add "loc" to aux_value.
9755 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9756 * dwarf2read.c: Include "dwarf2expr.h".
9757 (dwarf2_symbol_mark_computed): New function.
9758 (read_func_scope): Use it.
9759 (var_decode_location): New function.
9760 (new_symbol): Use it.
9761 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9762
9763 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9764 (dwarf2expr_h, dwarf2loc_h): New variables.
9765 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9766 (dwarf2expr.o, dwarf2loc.o): New rules.
9767 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9768 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9769 LOC_COMPUTED_ARG.
9770 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9771 * m2-exp.y (yylex): Likewise.
9772 * printcmd.c (address_info, print_frame_args): Likewise.
9773 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9774 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9775 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9776 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9777 * symtab.c (lookup_block_symbol): Likewise.
9778
9779 2003-02-20 Adam Fedor <fedor@gnu.org>
9780
9781 * symtab.h: Remove objc_specific struct
9782 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9783 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9784 Have language_objc use cplus_specific struct.
9785
9786 2003-02-20 Tom Tromey <tromey@redhat.com>
9787
9788 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9789 TYPE_NAME, when printing a String value. PR java/1075.
9790
9791 2003-02-20 Adam Fedor <fedor@gnu.org>
9792
9793 * objc-lang.h (find_methods): Remove declaration.
9794 * objc-lang.c (find_methods): Make static.
9795
9796 2003-02-20 Christopher Faylor <cgf@redhat.com>
9797
9798 * win32-nat.c (get_image_name): Check return value from
9799 ReadProcessMemory.
9800 (child_xfer_memory): Ditto.
9801
9802 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9803
9804 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9805 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9806 '${exec_prefix}' (in addition to the expansion thereof) as
9807 relocatable.
9808 * configure: Rebuilt.
9809
9810 2003-02-20 David Carlton <carlton@math.stanford.edu>
9811
9812 * symtab.c (search_symbols): Revert the search_symbols part of my
9813 2002-12-23 patch. Add comment.
9814
9815 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9816
9817 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9818 * dbxread.c (elfstab_build_psymtabs): Don't call
9819 install_minimal_symbols.
9820 (stabsect_build_psymtabs): Likewise.
9821 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9822 earlier.
9823 * somread.c (som_symfile_read): Call install_minimal_symbols
9824 and do_cleanups earlier.
9825 * nlmread.c (nlm_symfile_read): Likewise.
9826 * mdebugread.c (elfmdebug_build_psymtabs): Call
9827 install_minimal_symbols and make appropriate cleanups.
9828
9829 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9830
9831 * solib.c (reload_shared_libraries): New function.
9832 (_initialize_solib): Add callbacks for ``set solib-search-path''
9833 and ``set solib-absolute-prefix''.
9834
9835 2003-02-20 David Carlton <carlton@math.stanford.edu>
9836
9837 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9838 expand comment.
9839 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9840 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9841 * ada-typeprint.c (ada_typedef_print): Ditto.
9842 * ax-gdb.c (gen_var_ref): Ditto.
9843 * breakpoint.c (print_one_breakpoint): Ditto.
9844 * buildsym.c (finish_block): Ditto.
9845 * c-valprint.c (c_val_print): Ditto.
9846 * expprint.c (print_subexp): Ditto.
9847 * findvar.c (locate_var_value): Ditto.
9848 * infcmd.c (jump_command): Ditto.
9849 * linespec.c (decode_line_2, decode_compound): Ditto.
9850 * maint.c (maintenance_translate_address): Ditto.
9851 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9852 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9853 Ditto.
9854 * p-valprint.c (pascal_val_print): Ditto.
9855 * stabsread.c (define_symbol): Ditto.
9856 * stack.c (print_frame, frame_info, print_block_frame_locals)
9857 (print_frame_arg_vars, return_command): Ditto.
9858 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9859 * symmisc.c (print_symbol): Ditto.
9860 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9861 (compare_search_syms, print_symbol_info, print_msymbol_info)
9862 (rbreak_command): Ditto.
9863 * tracepoint.c (tracepoints_info): Ditto.
9864 * typeprint.c (typedef_print): Ditto.
9865 * valops.c (value_of_variable, hand_function_call): Ditto.
9866 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9867 * ada-typeprint.c: Update Copyright.
9868 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9869 * tracepoint.c, cli/cli-cmds.c: Ditto.
9870
9871 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9872
9873 * frame.c (generic_unwind_get_saved_register): Make non-static.
9874 * frame.h (generic_unwind_get_saved_register): Declare.
9875 * mips-tdep.c (read_next_frame_reg): Fetch register from
9876 current regcache when frame is NULL.
9877 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9878 that must be NULL.
9879 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9880 instead of frame_register_unwind().
9881
9882 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9883
9884 * remote-sim.c (gdbsim_insert_breakpoint)
9885 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9886 code.
9887
9888 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9889
9890 * remote.c (_initialize_remote): Add commands "set/show remote
9891 hardware-watchpoint-limit" and "set/show remote
9892 hardware-breakpoint-limit".
9893 (remote_hw_watchpoint_limit): Initialize to -1.
9894 (remote_hw_breakpoint_limit): Ditto.
9895 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9896
9897 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9898
9899 * coff-pe-read.c: New file - support reading of minimal symbols from a
9900 portable executable using the export table.
9901 * coff-pe-read.h: New file.
9902 * coffread.c: Include coff-pe-read.h.
9903 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9904 debugging symbols found.
9905 * Makefile.in (SFILES): Add coff-pe-read.o.
9906 (coff_pe_read_h): Define.
9907 (COMMON_OBS): Add coff-pe-read.o.
9908 (coffread.o): Add coff_pe_read_h dependency.
9909 (coff-pe-read.o): New target.
9910
9911 2003-02-19 David Carlton <carlton@math.stanford.edu>
9912
9913 * Makefile.in (SFILES): Add block.c.
9914 (block_h): New.
9915 (COMMON_OBS): Add block.o.
9916 (block.o): New.
9917 (x86-64-tdep.o): Add $(block_h).
9918 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9919 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9920 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9921 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9922 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9923 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9924 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9925 * value.h: Add opaque declaration for struct block.
9926 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9927 * ada-lang.h: Ditto.
9928 * x86-64-tdep.c: #include "block.h"
9929 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9930 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9931 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9932 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9933 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9934 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9935 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9936 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9937 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9938 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9939 * symtab.c (block_function): Ditto.
9940 (contained_in): Ditto.
9941 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9942 block.h. Add opaque declaration for struct block.
9943 * symtab.h: Move block_function and contained_in declarations to
9944 block.h. Add opaque declarations for struct block, struct
9945 blockvector.
9946 (struct block): Move to block.h.
9947 (struct blockvector): Ditto.
9948 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9949 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9950 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9951 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9952 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9953 Ditto.
9954 * block.c: New file.
9955 * block.h: New file.
9956
9957 2003-02-19 Theodore A. Roth <troth@openavr.org>
9958
9959 * avr-tdep.c (avr_extract_return_value): Remove function.
9960 (avr_store_return_value): Remove function.
9961 (avr_extract_struct_value_address): Remove function.
9962 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9963
9964 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9965
9966 * rs6000-tdep.c: Include "gdb_assert.h".
9967 (registers_e500): Add "acc" and "spefscr".
9968 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9969 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9970 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9971 really is "r0".
9972 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9973
9974 2003-02-18 Keith Seitz <keiths@redhat.com>
9975
9976 * Makefile.in: Add gdbtk-interps.c.
9977
9978 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9979
9980 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9981 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9982
9983 2003-02-18 Andrew Cagney <cagney@redhat.com>
9984
9985 * symtab.h (struct objfile): Add opaque declaration.
9986
9987 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9988
9989 From Jim Ingham <jingham@apple.com>:
9990 * dbxread.c (process_one_symbol): Use last_function_start rather
9991 than function_start_offset to find the real beginning of the
9992 current function. The latter is just the text section offset on
9993 some systems, the former is always the real function start.
9994
9995 2003-02-17 Andrew Cagney <cagney@redhat.com>
9996
9997 * configure.in: Revert ${target} != ${host}.
9998
9999 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10000
10001 * configure.in (Makefile): Use the test ${target} != ${host},
10002 instead of the absence of the "nm.h" file, to determine of the
10003 configuration non-native.
10004 * configure: Regenerate.
10005
10006 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10007
10008 From Brian Ford <ford@vss.fsi.com>
10009
10010 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10011 conditionalize tui_active test.
10012 (lookup_cmd_1): Ditto.
10013
10014 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10015
10016 * configure.in: Add check for _etext.
10017 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10018 available.
10019 * config.in, configure: regenerated.
10020
10021 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10022
10023 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10024
10025 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10026
10027 * main.c (tui_version): Delete variable.
10028 (captured_main): When --tui, set interpreter_p to "tui" instead of
10029 enabling tui_version.
10030 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10031 tui_version.
10032 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10033 * cli/cli-cmds.c (disassemble_command): Ditto.
10034 * defs.h (tui_version): Delete declaration.
10035 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10036 (tui-interp.o): Add rules.
10037 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10038
10039 2003-02-14 Christopher Faylor <cgf@redhat.com>
10040
10041 * win32-nat.c (register_loaded_dll): Correctly set address range for
10042 just-loaded dll.
10043
10044 2003-02-12 Jason Molenda (jmolenda@apple.com)
10045
10046 * symmisc.c (print_objfile_statistics): Include information about
10047 the number of psymtabs and symtabs in each object file.
10048
10049 2003-02-13 Keith R Seitz <keiths@redhat.com>
10050
10051 * main.h (struct captured_main_args): Add interpreter_p.
10052 * main.c (captured_main): Initialize interpreter_p from context.
10053 * gdb.c (main): Set interpreter_p argument.
10054 * Makefile.in (gdb.o): Add dependency for interps.h.
10055
10056 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10057
10058 * event-top.c (cli_command_loop): Delete declaration.
10059 (_initialize_event_loop): Delete function setting event_loop_hook.
10060 * event-top.h (cli_command_loop): Declare. Update copyright.
10061 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10062 * interps.c (current_interp_command_loop): When event_loop_p, call
10063 cli_command_loop.
10064
10065 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10066
10067 * interps.h (interp_command_loop_ftype): Change return type to
10068 void.
10069
10070 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10071
10072 * x86-64-tdep.c (x86_64_extract_return_value)
10073 (x86_64_store_return_value): Use regcache instead of regbuf.
10074 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10075 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10076
10077 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10078
10079 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10080 * aclocal.m4: Regenerate.
10081 * configure: Regenerate.
10082
10083 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10084 TCL_LD_SEARCH_FLAGS.
10085
10086 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10087
10088 * dwarf2cfi.c: Reindented.
10089
10090 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10091
10092 * interps.c (clear_interpreter_hooks): Convert function definition
10093 to ISO C.
10094
10095 2003-02-07 David Carlton <carlton@math.stanford.edu>
10096
10097 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10098
10099 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10100
10101 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10102 (struct type): ...to here.
10103 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10104 field.
10105 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10106 (replace_type): Set length on all type variants for a given type.
10107
10108 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10109
10110 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10111 <sys/stat.h>.
10112 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10113
10114 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10115
10116 * Makefile.in (symm-nat.o): Update dependencies.
10117 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10118 (lynx-nat.o, ia64-linux-nat.): Ditto.
10119 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10120 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10121 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10122
10123 * Makefile.in (inflow_h): Define.
10124 (procfs.o, inflow.o, procfs.o): Update dependencies.
10125 * inftarg.c (child_stop): Delete extern declaration of
10126 inferior_process_group. Include "inflow.h".
10127 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10128 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10129 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10130 (our_process_group, inferior_process_group): Extern declarations.
10131
10132 * procfs.c: Include "gdb_assert.h".
10133
10134 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10135 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10136 * jv-typeprint.c (java_type_print_base): Ditto.
10137 * typeprint.c (typedef_print): Eliminate STREQ.
10138 * cli/cli-script.c (define_command, define_command): Ditto.
10139 * main.c (captured_main): Ditto.
10140 * values.c (lookup_internalvar): Ditto.
10141 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10142 within `if' conditional.
10143 * linespec.c (decode_line_2): Ditto.
10144 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10145 (bfd_openw_with_cleanup): Ditto.
10146
10147 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10148
10149 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10150 legacy_extract_return_value and store_return_value to
10151 legacy_return_value.
10152
10153 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10154
10155 * win32-nat.c (get_relocated_section_addrs): New function. Find
10156 section load addresses for symbol handling in relocated DLLs.
10157 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10158
10159 2003-02-05 Fred Fish <fnf@intrinsity.com>
10160
10161 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10162 '=' and '!='.
10163 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10164 with '&' and '=='.
10165 (angel_RDI_info): Ditto.
10166 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10167 with '&' and '!='.
10168 (threads_continue_all_with_signals): Ditto.
10169
10170 2003-02-05 Jim Ingham <jingham@apple.com>
10171 Keith Seitz <keiths@redhat.com>
10172 Elena Zannoni <ezannoni@redhat.com>
10173 Andrew Cagney <ac131313@redhat.com>
10174
10175 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10176 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10177 (SUBDIR_MI_OBS): Add "mi-interp.o".
10178 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10179 (SFILES): Add "interps.c".
10180 (COMMON_OBS): Add "interps.o".
10181 (interps_h, mi_main_h): Define.
10182 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10183 (mi-main.o, main.o, event-top.o): Update dependencies.
10184 * cli/cli-interp.c: New file.
10185 * interps.h, interps.c: New files.
10186 * top.c: (gdb_init): Don't install the default interpreter, handed
10187 by captured_main.
10188 * main.c: Include "interps.h".
10189 (interpreter_p): Note that it should malloc'ed.
10190 (captured_command_loop): Call current_interp_command_loop.
10191 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10192 xfree and xstrdup when updating interpreter_p. Install the
10193 default interpreter. Add hack to stop mi1's copyright notice
10194 being encoded.
10195 * event-top.h (gdb_setup_readline): Declare.
10196 (gdb_disable_readline): Declare.
10197 * event-top.c: Include "interps.h".
10198 (display_gdb_prompt): Call current_interp_display_prompt_p.
10199 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10200 gdb_stdlog, and gdb_stdtarg.
10201 (_initialize_event_loop): Don't call gdb_setup_readline.
10202 * cli-out.c (cli_out_set_stream): New function.
10203 * cli-out.h (cli_out_set_stream): Declare.
10204
10205 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10206
10207 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10208 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10209 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10210 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10211 config/i386/i386v42mp.mt: Removed.
10212
10213 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10214
10215 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10216 GDB_OSABI_SOLARIS.
10217
10218 2003-02-05 Michael Chastain <mec@shout.net>
10219
10220 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10221 2.12.1 and earlier versions.
10222
10223 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10224
10225 Remove orphaned hosts, targets and files.
10226 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10227 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10228 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10229 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10230 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10231 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10232 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10233 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10234 * config/sparc/tm-sp64sim.h: Delete.
10235 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10236 hosts.
10237 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10238 mips*-dec-mach3* targets.
10239
10240 2003-02-04 Michael Chastain <mec@shout.net>
10241
10242 * NEWS: Fix typo: sepcifying -> specifying.
10243
10244 2003-02-04 Michael Chastain <mec@shout.net>
10245
10246 * dwarfread.c: Add documentation on the state of dwarf-1,
10247 looking towards obsoletion.
10248
10249 2003-02-03 Michael Chastain <mec@shout.net>
10250
10251 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10252 gdb/testsuite/gdb.c++/pr-1023.exp.
10253
10254 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10255
10256 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10257 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10258
10259 * utils.c (init_page_info): Delete reference to MPW in comments.
10260 * main.c (captured_main): Delete #ifdef MPW.
10261
10262 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10263
10264 * NEWS: Note that the m32r-*-elf* is obsolete.
10265 * monitor.c (monitor_expect): Obsolete reference to m32r.
10266 * configure.tgt: Mark m32r-*-elf* as obsolete.
10267 * MAINTAINERS: Mark m32k as obsolete.
10268 * m32r-rom.c: Obsolete file.
10269 * config/m32r/m32r.mt: Obsolete file.
10270 * config/m32r/tm-m32r.h: Obsolete file.
10271 * m32r-stub.c: Obsolete file.
10272 * m32r-tdep.c: Obsolete file.
10273
10274 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10275
10276 * NEWS: Mention that the z8k-zilog-none is obsolete.
10277 * MAINTAINERS: Mark z8k as obsolete.
10278 * configure.tgt: Obsolete the z8k-*-coff* target.
10279 * config/z8k/z8k.mt: Obsolete file.
10280 * config/z8k/tm-z8k.h: Obsolete file.
10281 * z8k-tdep.c: Obsolete file.
10282
10283 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10284
10285 * NEWS: Mention that the mn10200-elf is obsolete.
10286 * configure.tgt: Obsolete mn10200-*-* target.
10287 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10288 mention that the mn10200 is obsolete.
10289 * breakpoint.h: Ditto.
10290 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10291 * config/mn10200/mn10200.mt: Obsolete file.
10292 * config/mn10200/tm-mn10200.h: Obsolete file.
10293 * mn10200-tdep.c: Obsolete file.
10294
10295 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10296
10297 * MAINTAINERS: Mark h8500 as obsolete.
10298 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10299 * findvar.c (value_from_register): Ditto.
10300 * h8500-tdep.c: Mark file as obsolete.
10301 * config/h8500/h8500.mt: Ditto.
10302 * config/h8500/tm-h8500.h: Ditto.
10303 * NEWS: Mention that h8500 is obsolete.
10304
10305 2003-02-04 David Carlton <carlton@math.stanford.edu>
10306
10307 * objfiles.c (allocate_objfile): Always set name. Add comment at
10308 start of function.
10309 * jv-lang.c (get_dynamics_objfile): Add comment.
10310
10311 2003-02-04 David Carlton <carlton@math.stanford.edu>
10312
10313 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10314 * printcmd.c (build_address_symbolic): Replace uses of
10315 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10316 SYMBOL_NAME, and asm_demangle.
10317 Update copyright.
10318
10319 2003-02-04 David Carlton <carlton@math.stanford.edu>
10320
10321 * linespec.c (decode_compound): Extract code into
10322 lookup_prefix_sym.
10323 (lookup_prefix_sym): New function.
10324
10325 2003-02-04 David Carlton <carlton@math.stanford.edu>
10326
10327 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10328 FLOAT_COERCION_BADNESS.
10329 * gdbtypes.c (rank_one_type): Replace all uses of
10330 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10331
10332 2003-02-04 Jim Blandy <jimb@redhat.com>
10333
10334 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10335 section, let dwarf_macinfo_section point to it, not
10336 dwarf_loc_section.
10337
10338 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10339
10340 Pointed out by Anton Blanchard <anton@samba.org>.
10341 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10342 (ppc_linux_at_sigtramp_return_path): Use it.
10343
10344 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10345
10346 * defs.h (streq): Add prototype.
10347 * utils.c (streq): New function.
10348
10349 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10350 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10351 * mdebugread.c (new_symbol): Likewise.
10352 * stabsread.c (define_symbol): Likewise.
10353 * coffread.c (process_coff_symbol): Likewise.
10354 * dwarfread.c (new_symbol): Likewise.
10355
10356 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10357 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10358 here.
10359 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10360 SYMBOL_INIT_DEMANGLED_NAME.
10361 * objfiles.c: Include "hashtab.h".
10362 (allocate_objfile): Call htab_set_functions_ex for the
10363 demangled_names_hash.
10364 (free_objfile): Call htab_delete for the demangled_names_hash.
10365 * objfiles.h (struct htab): Add declaration.
10366 (struct objfile): Add demangled_names_hash.
10367 * symfile.c: Include "hashtab.h".
10368 (reread_symbols): Call htab_delete for the demangled_names_hash.
10369 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10370 SYMBOL_NAME in the bcache.
10371 * symtab.c: Include "hashtab.h". Update comments.
10372 (create_demangled_names_hash, symbol_set_names): New functions.
10373 (symbol_find_demangled_name): New function, broken out from
10374 symbol_init_demangled_names.
10375 (symbol_init_demangled_names): Use it.
10376 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10377 (SYMBOL_SET_NAMES): New macro.
10378 (symbol_set_names): Add prototype.
10379
10380 2003-02-03 Jim Blandy <jimb@redhat.com>
10381
10382 Use a single, consistent representation for an empty minimal
10383 symbol table in an objfile.
10384 * objfiles.c (terminate_minimal_symbol_table): New function.
10385 (allocate_objfile): Call it.
10386 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10387 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10388 non-NULL.
10389 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10390 objfile has minimal symbols, compare minimal_symbol_count to zero,
10391 instead of comparing msymbols with NULL.
10392 * objfiles.c (have_minimal_symbols): Same.
10393 * solib-sunos.c (solib_add_common_symbols): Call
10394 terminate_minimal_symbol_table.
10395 * symfile.c (reread_symbols): Same.
10396
10397 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10398
10399 * s390-tdep.c (s390_address_class_type_flags)
10400 (s390_address_class_type_flags_to_name)
10401 (s390_address_class_name_to_type_flags): New functions.
10402 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10403 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10404
10405 2003-02-03 Michael Snyder <msnyder@redhat.com>
10406
10407 * arm-tdep.c: Fix spell-o in comment.
10408
10409 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10410
10411 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10412 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10413 error messages to contain BFD filename.
10414
10415 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10416
10417 Fix PR gdb/742 gdb/743 gdb/877
10418 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10419 (do_mixed_source_and_assembly): Use
10420 make_cleanup_ui_out_tuple_begin_end and
10421 make_cleanup_ui_out_tuple_begin_end.
10422 (do_mixed_source_and_assembly): Ditto.
10423 * thread.c (do_captured_list_thread_ids): Ditto.
10424 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10425 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10426 ui_out_tuple_end): Delete prototypes.
10427 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10428 ui_out_list_end, ui_out_tuple_end): Delete.
10429
10430 From Kevin Buettner <kevinb@redhat.com>:
10431 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10432 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10433 (do_cleanup_table_end): New functions.
10434 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10435 Use cleanups to invoke_ui_out_tuple_end().
10436 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10437 * cli/cli-setshow.c (cmd_show_list): Use
10438 make_cleanup_ui_out_tuple_begin_end.
10439
10440 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10441
10442 * frame.c (frame_unwind_register): New function.
10443 (frame_unwind_unsigned_register): Use.
10444 (frame_unwind_signed_register): Use.
10445 (frame_read_register): New function.
10446 * frame.h (frame_unwind_register): Declare.
10447 (frame_read_register): Declare.
10448
10449 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10450 and frame_unwind_register instead of read_memory, write_register
10451 and deprecated_write_register_bytes.
10452
10453 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10454
10455 * frame.h: Note that namelen can be negative.
10456 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10457 NAME's length.
10458
10459 * NEWS: Mention that the d10v's `regs' command is deprecated.
10460 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10461 (d10v_print_registers_info): New function.
10462 (show_regs): Call d10v_print_registers_info.
10463 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10464
10465 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10466
10467 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10468 lost in the previous patch.
10469
10470 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10471
10472 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10473 * stack.c (print_frame_info_base): Output complete FRAME tuple
10474 for synthesized frames.
10475
10476 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10477
10478 * mips-nat.c (zerobuf): Delete.
10479 (fetch_inferior_registers): Alloc local zerobuf.
10480 (fetch_core_registers): Alloc local zerobuf.
10481 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10482 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10483 * thread-db.c (thread_db_store_registers): Ditto.
10484 * sh-tdep.c (sh_do_register): Ditto.
10485 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10486 * remote-sim.c (gdbsim_store_register): Ditto.
10487 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10488 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10489 * monitor.c (monitor_supply_register): Ditto.
10490 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10491 * mips-nat.c (fetch_inferior_registers): Ditto.
10492 * m68klinux-nat.c (fetch_register): Ditto.
10493 * lynx-nat.c (fetch_inferior_registers): Ditto.
10494 (fetch_inferior_registers): Ditto.
10495 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10496 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10497 (hpux_thread_store_registers): Ditto.
10498 * hppah-nat.c (fetch_register): Ditto.
10499 * hppab-nat.c (fetch_register): Ditto.
10500 * hppa-tdep.c (pa_register_look_aside): Ditto.
10501 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10502 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10503
10504 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10505
10506 * gdbarch.sh: Explictly specify all method levels. When a
10507 variable with an empty level, provide a non-multi-arch default.
10508 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10509 * gdbarch.h: Re-generate.
10510 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10511 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10512
10513 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10514
10515 * defs.h (host_pointer_to_address): Delete declaration.
10516 (address_to_host_pointer): Delete declaration.
10517 * utils.c (host_pointer_to_address): Delete function.
10518 (address_to_host_pointer): Delete function.
10519 * procfs.c (procfs_address_to_host_pointer): New function.
10520 * procfs.c (proc_set_watchpoint): Use.
10521 (procfs_can_use_hw_breakpoint): Update comments.
10522 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10523 (som_solib_add): Use.
10524 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10525 * hppa-tdep.c (unwind_command): Use.
10526
10527 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10528
10529 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10530 strlen d_name.
10531
10532 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10533 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10534 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10535 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10536 (define_symbol): Update.
10537 * symfile.c (generic_load): Remove references to nindy.
10538 * symtab.c: Remove references to nindy.
10539
10540 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10541
10542 * infcmd.c (print_float_info): Delete code conditional on
10543 FLOAT_INFO.
10544 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10545 * config/m68k/nm-apollo68b.h: Ditto.
10546 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10547 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10548 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10549
10550 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10551
10552 * config/i386/tm-i386os9k.h: Removed.
10553
10554 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10555 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10556 they're identical to i[3456]86-*-sysv* now.
10557 * config/i386/i386v32.mh: Removed.
10558 * config/i386/xm-i386v32.h: Removed.
10559 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10560
10561 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10562
10563 * config/i386/i386dgux.mh: Removed.
10564 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10565
10566 * configure.in: Fix typo.
10567 * configure: Regenerated.
10568
10569 2003-01-31 David Carlton <carlton@math.stanford.edu>
10570
10571 * dwarf2read.c (dwarf2_locate_sections): Set
10572 dwarf_ranges_section.
10573
10574 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10575
10576 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10577 * utils.c: Update comments documenting legitimate uses of PTR.
10578
10579 * utils.c: Re-indent.
10580
10581 * config/djgpp/fnchange.lst: Delete nindy files.
10582 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10583 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10584 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10585 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10586 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10587 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10588 * Makefile.in (init.c): Remove nindy references.
10589 (saber_gdb): Delete rule.
10590 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10591 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10592 and a68v-nat.c.
10593 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10594 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10595 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10596 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10597 nindy-share/stop.h.
10598 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10599 * saber.suppress: Delete file.
10600
10601 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10602
10603 * dbxread.c (stabs_data): New static variable.
10604 (fill_symbuf): Support an in-memory buffer for stabs data.
10605 (stabs_seek): New function.
10606 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10607 (read_ofile_symtab): Use stabs_seek.
10608 (elfstab_build_psymtabs): Take an asection* instead of
10609 an offset and size. Relocate the stabs data if necessary.
10610 Save the section* for dbx_psymtab_to_symtab.
10611 * dwarf2read.c: Add section variables for each debug section.
10612 (dwarf2_locate_sections): Fill them in.
10613 (dwarf2_read_section): Take an asection* argument.
10614 Relocate the section contents if necessary.
10615 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10616 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10617 it to dwarf2_read_section.
10618 (dwarf2_build_frame_info): Update callers.
10619 * elfread.c (elf_symfile_read): Update call to
10620 elfstab_build_psymtabs.
10621 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10622 (DBX_STAB_SECTION): New macro.
10623 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10624 * symfile.c (symfile_dummy_outputs): New function.
10625 (symfile_relocate_debug_section): New function.
10626 * symfile.h (symfile_relocate_debug_section): Add prototype.
10627
10628 2003-01-31 Richard Henderson <rth@redhat.com>
10629
10630 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10631 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10632 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10633 * alpha-tdep.c (alpha_register_name): Add "unique".
10634 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10635 (ALPHA_UNIQUE_REGNUM): New.
10636 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10637
10638 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10639
10640 * README: Remove reference to Ericsson 1800 monitor.
10641 * Makefile.in (remote-es.o): Delete rule.
10642 (ALLDEPFILES): Delete remote-es.c.
10643 * remote-es.c: Delete file.
10644 * config/m68k/es1800.mt: Delete file.
10645 * config/djgpp/fnchange.lst: Update.
10646 * configure.tgt: Delete m68*-ericsson-* target.
10647
10648 2003-01-31 Adam Fedor <fedor@gnu.org>
10649
10650 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10651 Remove duplicate/shadowing variable of same name.
10652
10653 2003-01-30 Jim Blandy <jimb@redhat.com>
10654
10655 * symfile.c (find_separate_debug_file): Assert that the objfile's
10656 directory name we compute ends with a slash, and then assume that
10657 that's so everywhere we use it.
10658
10659 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10660
10661 * valops.c (value_assign): Flush frame cache after stores to memory
10662 also.
10663
10664 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10665
10666 * Makefile.in (mon960-rom.o): Delete rule.
10667 * mon960-rom.c: Delete file.
10668
10669 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10670
10671 * d10v-tdep.c: Include "frame-unwind.h".
10672 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10673 list.
10674 (next_addr, uses_frame): Delete.
10675 (struct d10v_unwind_cache): Define.
10676 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10677 Use info instead of next_addr and uses_frame globals.
10678 (d10v_frame_init_saved_regs): Delete function.
10679 (d10v_init_extra_frame_info): Delete function.
10680 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10681 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10682 init_frame_pc or frame_saved_pc.
10683 (d10v_pop_frame): Delete function.
10684 (do_d10v_pop_frame): Delete function.
10685 (d10v_frame_chain): Delete function.
10686 (d10v_frame_chain_valid): Delete function.
10687 (d10v_frame_pc_unwind): New function.
10688 (d10v_frame_id_unwind): New function.
10689 (saved_regs_unwinder): New function.
10690 (d10v_frame_register_unwind): New function.
10691 (d10v_frame_pop): New function.
10692 (d10v_frame_unwind): New variable.
10693 (d10v_frame_p): New function.
10694 (d10v_frame_saved_pc): Delete function.
10695 * Makefile.in (d10v-tdep.o): Update dependencies.
10696
10697 2003-01-30 J. Brobecker <brobecker@gnat.com>
10698
10699 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10700 causing some regressions due to a change in the default value
10701 for this macro.
10702
10703 2003-01-29 Richard Henderson <rth@redhat.com>
10704 Elena Zannoni <ezannoni@redhat.com>
10705 Daniel Jacobowitz <drow@mvista.com>
10706
10707 Fix PR gdb/961.
10708 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10709 variables.
10710 (RANGES_SECTION): New.
10711 (dwarf_ranges_buffer): New variable.
10712 (struct comp_unit_head): Add member "die".
10713 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10714 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10715 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10716 (dwarf2_locate_sections): Likewise.
10717 (dwarf2_build_psymtabs): Read .debug_ranges.
10718 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10719 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10720 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10721 Look for DW_AT_ranges and return the bounding box.
10722
10723 2003-01-29 Brian Ford <ford@vss.fsi.com>
10724
10725 * win32-nat.c (cygwin_pid): Removed as unused.
10726 (child_attach): Try fall back to Cygwin pid.
10727
10728 2003-01-29 Jim Blandy <jimb@redhat.com>
10729
10730 * objfiles.h (struct objfile): Doc fix.
10731
10732 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10733
10734 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10735 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10736 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10737 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10738 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10739 (FRAME_SAVED_PC): Change to a function with predicate.
10740 * gdbarch.h, gdbarch.c: Re-generate.
10741
10742 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10743
10744 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10745
10746 * complaints.c (complain): Delete function.
10747 * complaints.h (struct deprecated_complaint): Delete definition.
10748 (complain): Delete declaration.
10749
10750 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10751
10752 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10753 dummy frames.
10754
10755 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10756
10757 * sentinel-frame.h, sentinel-frame.c: New files.
10758 * Makefile.in (frame.o): Update dependencies.
10759 (SFILES): Add sentinel-frame.c.
10760 (sentinel_frame_h): Define.
10761 (COMMON_OBS): Add sentinel-frame.o.
10762 (sentinel-frame.o): Specify dependencies.
10763 * frame.c: Include "sentinel-frame.h".
10764 (frame_register_unwind): Rewrite assuming that there is always a a
10765 ->next frame.
10766 (frame_register, generic_unwind_get_saved_register): Ditto.
10767 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10768 (create_sentinel_frame, unwind_to_current_frame): New functions.
10769 (get_current_frame): Rewrite using create_sentinel_frame and
10770 unwind_to_current_frame. When possible, always create a frame.
10771 (create_new_frame): Set next to the sentinel frame.
10772 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10773 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10774 ID cache when necessary.
10775 (frame_saved_regs_id_unwind): Use frame_relative_level.
10776 (deprecated_generic_get_saved_register): Use frame_relative_level,
10777 get_frame_saved_regs, get_frame_pc, get_frame_base and
10778 get_next_frame.
10779 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10780 frame_register.
10781
10782 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10783
10784 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10785
10786 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10787
10788 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10789 (maintenance_set_profile_cmd): Use error () instead of warning ().
10790
10791 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10792
10793 * configure.in: Check that -pg works if using --enable-profiling.
10794 Check for monstartup and _mcleanup regardless of --enable-profiling.
10795 * maint.c: Check for monstartup and _mcleanup before using them.
10796 * config.in: Regenerated.
10797 * configure: Regenerated.
10798
10799 2003-01-24 Nick Clifton <nickc@redhat.com>
10800
10801 * Add sh2e support:
10802
10803 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10804
10805 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10806 (sh2e_show_regs): New.
10807 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10808 * config/sh/tm-sh.h: Added sh2e to comments.
10809
10810 2003-01-23 Jim Blandy <jimb@redhat.com>
10811
10812 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10813 symbols found)" message here; we haven't checked for a separate
10814 debug info file yet, so we don't know yet.
10815 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10816 we've looked everywhere. Also, there's no need to print a special
10817 message when we're loading the separate debug info file: the one
10818 symbol_file_add prints is fine.
10819
10820 2003-01-23 Alexander Larsson <alexl@redhat.com>
10821 Jim Blandy <jimb@redhat.com>
10822
10823 Add support for executables whose debug info has been separated
10824 out into a separate file, leaving only a link behind.
10825 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10826 and separate_debug_objfile_backlink.
10827 (put_objfile_before): New declaration.
10828 * symfile.c: #include "filenames.h".
10829 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10830 debug info in a separate file, read that, too. Save the addrs
10831 argument, so we can use it again to read the separated debug info;
10832 syms_from_objfile modifies the table we pass it.
10833 (reread_symbols): After re-reading an objfile, call
10834 reread_separate_symbols to refresh its separate debug info
10835 objfile, if it has one.
10836 (reread_separate_symbols, find_separate_debug_file,
10837 get_debug_link_info, separate_debug_file_exists): New functions.
10838 (debug_file_directory): New global var.
10839 (_initialize_symfile): Initialize debug_file_directory, and
10840 provide the new `set debug-file-directory' command to let the user
10841 change it.
10842 * objfiles.c (free_objfile): If this objfile has its debug info in
10843 a separate objfile, free that one too. If this is itself a
10844 separate debug info objfile, clear our parent's backlink.
10845 (put_objfile_before): New function.
10846 * utils.c (gnu_debuglink_crc32): New function.
10847 * defs.h (gnu_debuglink_crc32): New declaration.
10848 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10849 * configure.in: Handle --with-separate-debug-dir config option.
10850 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10851 * acconfig.h (DEBUGDIR): New macro.
10852 * configure, aclocal.m4, config.in: Regenerated.
10853
10854 2003-01-22 Jim Blandy <jimb@redhat.com>
10855
10856 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10857 like the old symbol_file_add, but taking new arguments: you can
10858 now pass in either a `struct section_addr_info' list to say where
10859 each section is loaded, or a `struct section_offsets' table. Pass
10860 these new arguments through to syms_from_objfile as appropriate.
10861 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10862 with the appropriate quiescent values for the new arguments.
10863
10864 * symfile.c: #include "gdb_assert.h".
10865 (syms_from_objfile): Add the ability to pass in a section offset
10866 table directly, as an alternative to the section_addr_info table.
10867 Document arguments better.
10868 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10869 * symfile.h (syms_from_objfile): Update declaration.
10870 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10871 syms_from_objfile.
10872 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10873
10874 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10875
10876 Original patch by Tom Tromey <tromey@cygnus.com> and
10877 Jason Molenda <jmolenda@apple.com>.
10878 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10879 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10880 * NEWS: Mention profiling.
10881 * configure.in (--enable-gdbtk): Fix typo.
10882 (--enable-profiling): New. Set PROFILE_CFLAGS.
10883 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10884 Fill in function.
10885 (profiling_state): New variable.
10886 (mcleanup_wrapper): New function.
10887 (_initialize_maint): Remove NOTYET, fix call to
10888 add_setshow_boolean_cmd for "maint set profile".
10889 * configure: Regenerated.
10890
10891 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10892
10893 * Makefile.in (install-gdbtk): Install PNG images too.
10894
10895 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10896
10897 * exec.c (text_start): Delete global variable.
10898 (exec_file_attach): Make text_start local to the function.
10899 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10900 * valops.c (hand_function_call): Delete code that handles
10901 BEFORE_TEXT_END and AFTER_TEXT_END.
10902 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10903 of CALL_DUMMY_LOCATION.
10904 * gdbarch.c: Regenerate.
10905 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10906 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10907 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10908 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10909 (text_end): Delete extern declaration.
10910
10911 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10912
10913 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10914 * blockframe.c (backtrace_below_main): Move to "frame.c".
10915 (frame_chain_valid): Delete check for backtrace_below_main.
10916 (_initialize_blockframe): Delete initialization, move ``set
10917 backtrace-below-main'' command to "frame.c".
10918 (do_flush_frames_sfunc): Delete function.
10919 * frame.c: Include "command.h" and "gdbcmd.h".
10920 (frame_type_from_pc): New function.
10921 (create_new_frame): Use frame_type_from_pc.
10922 (legacy_get_prev_frame): New function.
10923 (get_prev_frame): Rewrite. When an old style frame, call
10924 legacy_get_prev_frame. Otherwize, unwind the PC first.
10925 (_initialize_frame): Add ``set backtrace-below-main'' command.
10926 * Makefile.in (frame.o): Update dependencies.
10927
10928 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10929
10930 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10931 DEPRECATED_REGISTERS_INFO.
10932
10933 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10934
10935 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10936 Maintainers'. Update `Various Maintainers'.
10937
10938 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10939
10940 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10941 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10942 Suppress actual parameters when `-'.
10943 * gdbarch.h, gdbarch.c: Regenerate.
10944
10945 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10946
10947 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10948 code handling dummy frames.
10949
10950 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10951
10952 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10953 (struct frame_unwind): Add field pop.
10954 * frame.h (frame_pop): Declare.
10955 * frame.c (frame_saved_regs_pop): New function.
10956 (trad_frame_unwinder): Add frame_saved_regs_pop.
10957 (frame_pop): New function.
10958 * dummy-frame.c (dummy_frame_pop): New function.
10959 (discard_innermost_dummy): New function.
10960 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10961 (dummy_frame_unwind): Add dummy_frame_pop.
10962 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10963 * valops.c (hand_function_call): Ditto.
10964 * stack.c (return_command): Ditto.
10965
10966 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10967
10968 * cris-tdep.c: Fix function declaration indentation.
10969 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10970 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10971 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10972 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10973 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10974 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10975
10976 2003-01-18 Michael Chastain <mec@shout.net>
10977
10978 * README (Unpacking and Installation -- quick overview):
10979 Warn against ".../gdb-5.3/gdb/configure".
10980
10981 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10982
10983 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10984 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10985 (struct frame_unwind): Declare opaque.
10986 (dummy_frame_p): Declare function.
10987 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10988 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10989 * dummy-frame.c: Include "frame-unwind.h".
10990 (dummy_frame_p): New function.
10991 (dummy_frame_unwind): New variable.
10992 * frame.c: Include "frame-unwind.h".
10993 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10994 to use the new unwind field.
10995 (set_unwind_by_pc): Delete function.
10996 (create_new_frame, get_prev_frame): Set unwind field using
10997 frame_unwind_find_by_pc.
10998 (trad_frame_unwind, trad_frame_unwinder): New variables.
10999 * frame.h (trad_frame_unwind): Declare variable.
11000 (frame_id_unwind_ftype): Delete declaration.
11001 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11002 (struct frame_unwind): Declare opaque.
11003 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11004 register_unwind with a single unwind pointer.
11005 * frame-unwind.h, frame-unwind.c: New files.
11006 * Makefile.in (SFILES): Add frame-unwind.c.
11007 (frame_unwind_h): Define.
11008 (COMMON_OBS): Add frame-unwind.o.
11009 (frame-unwind.o): Specify dependencies.
11010 (frame.o, dummy-frame.o): Update dependencies.
11011
11012 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11013
11014 * ada-valprint.c: Eliminate PTR.
11015 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11016 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11017 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11018 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11019 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11020 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11021 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11022
11023 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11024
11025 * main.c (captured_main): Don't use PTR.
11026 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11027 * gdbtypes.c (lookup_primitive_typename): Ditto.
11028 (lookup_struct_elt_type): Ditto.
11029 * f-valprint.c (info_common_command): Ditto.
11030 (list_all_visible_commons): Ditto.
11031 * jv-typeprint.c (java_type_print_base): Ditto.
11032
11033 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11034 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11035 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11036 i386-interix-nat.c and i386-interix-tdep.c. Rename
11037 m68klinux-nat.c and m68klinux-tdep.c. Rename
11038 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11039 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11040 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11041 * main.c (captured_main): Use xfree, not free.
11042
11043 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11044
11045 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11046 ID back using a parameter.
11047 * frame.c (frame_id_unwind): Update call.
11048 (frame_saved_regs_id_unwind): Update.
11049 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11050 * dummy-frame.h (struct frame_id): Add opaque declaration.
11051 (dummy_frame_id_unwind): Update declaration.
11052
11053 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11054
11055 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11056
11057 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11058
11059 * MAINTAINERS (Stephen P. Smith): Updated email address.
11060
11061 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11062
11063 Fix PR gdb/898
11064 * breakpoint.c (until_break_command): Add new argument. Use it to
11065 decide whether to stop only at the current frame or not.
11066 * breakpoint.h (until_break_command): Update prototype.
11067 * infcmd.c (until_command): Add new argument to until_break_command
11068 call.
11069 (advance_command): New function.
11070 (_initialize_infcmd): Update help string for 'until' command.
11071 Add new 'advance' command.
11072
11073 2003-01-14 David Carlton <carlton@math.stanford.edu>
11074
11075 * linespec.c (decode_line_1): Normalize comments.
11076 (set_flags): Ditto.
11077 (locate_first_half): Ditto.
11078 (decode_compound): Ditto.
11079 (symtab_from_filename): Ditto.
11080 (decode_all_digits): Ditto.
11081 (decode_dollar): Ditto.
11082 (find_methods): Ditto.
11083 (find_toplevel_char): Ditto.
11084
11085 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11086
11087 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11088 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11089 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11090 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11091 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11092 * language.c, language.h, m32r-tdep.c: Update copyright.
11093 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11094 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11095 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11096 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11097 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11098 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11099
11100 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11101
11102 * stabsread.h (process_later, resolve_cfront_continuation):
11103 Obsolete.
11104 Update copyright years.
11105 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11106 Update copyright year.
11107 * dbxread.c(struct cont_elem): Obsolete.
11108 (process_later, process_now): Obsolete functions.
11109 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11110 Update copyright year.
11111 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11112 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11113 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11114 (parse_partial_symbols): Obsolete cfront support.
11115 * stabsread.c
11116 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11117 macros.
11118 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11119 read_cfront_baseclasses, read_cfront_member_functions,
11120 resolve_cfront_continuation,read_cfront_static_fields,
11121 copy_cfront_struct_fields): Obsolete functions.
11122 (define_symbol, read_one_struct_field): Obsolete cfront support.
11123 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11124 Update Copyright year.
11125
11126 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11127
11128 * stack.c (print_frame_info, print_stack_frame_base_stub,
11129 print_stack_frame_base, show_and_print_stack_frame_stub,
11130 show_and_print_stack_frame, print_only_stack_frame_stub,
11131 print_only_stack_frame): Delete functions.
11132 (print_stack_frame_stub): Call print_frame_info instead of
11133 print_frame_info_base.
11134 (print_frame_info_base): Rename to print_frame_info.
11135 (backtrace_command_1): Call print_frame_info, instead of
11136 print_frame_info_base.
11137 (current_frame_command): Call print_stack_frame, instead of
11138 print_only_stack_frame.
11139 (frame_command): Call print_stack_frame, instead of
11140 show_and_print_stack_frame.
11141 (up_command): Ditto.
11142 (down_command): Ditto.
11143 * frame.h (print_only_stack_frame): Delete prototype.
11144 * infrun.c (normal_stop): Call print_stack_frame, instead of
11145 show_and_print_stack_frame.
11146 * thread.c (info_threads_command): Call print_stack_frame, instead
11147 of print_only_stack_frame.
11148
11149 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11150
11151 * README (Graphical interface to GDB): Update URL. Point at
11152 gdb/links/.
11153
11154 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11155 version match.
11156
11157 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11158
11159 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11160 lines.
11161
11162 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11163
11164 * thread-db.c (attach_thread): Prototype.
11165 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11166 thread information (ti), and valid flags (th_valid, ti_valid).
11167 (attach_thread): Move target_pid_to_str call to after the thread
11168 is added to GDB's list. Initialize the cache.
11169 (thread_get_info_callback, thread_db_map_id2thr)
11170 (thread_db_get_info): New functions.
11171 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11172 (thread_db_store_registers, thread_db_thread_alive)
11173 (thread_db_get_thread_local_address): Use them.
11174 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11175 of calling error() for threads in unknown state.
11176
11177 (clear_lwpid_callback): New function.
11178 (thread_db_resume): Use it to clear the cache.
11179
11180 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11181
11182 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11183 (resume_callback): Remove dead code.
11184
11185 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11186
11187 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11188 predicate.
11189 * gdbarch.h, gdbarch.c: Regenerate.
11190 * stack.c (frame_info): Only initialize the saved registers when
11191 FRAME_INIT_SAVED_REGS_P.
11192 * frame.c (frame_saved_regs_register_unwind): Assert
11193 FRAME_INIT_SAVED_REGS_P.
11194 (deprecated_generic_get_saved_register): Ditto.
11195
11196 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11197
11198 * source.c (openp): Squelch warning about "filename".
11199
11200 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11201
11202 * source.c (openp): If the file does not exist don't necessarily
11203 search the path.
11204
11205 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11206
11207 Fix PR gdb/872.
11208 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11209 (integer_types_same_name_p): New function.
11210 (rank_one_type): Use it.
11211 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11212
11213 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11214
11215 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11216 variables.
11217 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11218 * configure.in: Add --with-sysroot.
11219 * configure: Regenerated.
11220 * main.c (gdb_sysroot): New variable.
11221 (captured_main): Initialize gdb_sysroot.
11222 * defs.h (gdb_sysroot): New extern declaration.
11223 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11224
11225 2003-01-12 Michael Chastain <mec@shout.net>
11226
11227 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11228
11229 2003-01-12 Michael Chastain <mec@shout.net>
11230
11231 * top.c (print_gdb_version): Bump copyright year to 2003.
11232
11233 2003-01-12 David Carlton <carlton@bactrian.org>
11234
11235 * linespec.c (symtab_from_filename): Rename variable 's' to
11236 'file_symtab'.
11237
11238 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11239
11240 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11241 dummy frame.
11242 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11243
11244 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11245
11246 * d10v-tdep.c: Include "gdb_assert.h".
11247 (d10v_store_return_value): Rewrite to match current interface.
11248 (d10v_extract_struct_value_address): Ditto.
11249 (d10v_extract_return_value): Ditto.
11250 (d10v_gdbarch_init): Set store_restore_value,
11251 extract_struct_value_address and extract_return_value.
11252
11253 2003-01-12 J. Brobecker <brobecker@gnat.com>
11254
11255 * hpread.c (set_namestring): New procedure replacing the
11256 SET_NAMESTRING macro.
11257 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11258 by calls to set_namestring.
11259
11260 2003-01-11 J. Brobecker <brobecker@gnat.com>
11261
11262 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11263 a compilation warning.
11264 (hpread_process_one_debug_symbol): Likewise.
11265
11266 2003-01-10 David Carlton <carlton@math.stanford.edu>
11267
11268 * linespec.c (decode_line_1): Rename variable 's' to
11269 'file_symtab'.
11270 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11271 (decode_dollar): Ditto.
11272 (decode_variable): Ditto.
11273 (symbol_found): Ditto.
11274
11275 2003-01-09 Michael Chastain <mec@shout.net>
11276
11277 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11278
11279 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11280
11281 * win32-nat.c (set_process_privilege): New function.
11282 (child_attach): Call set_process_privilege() to enable the
11283 SE_DEBUG_NAME user privilege if available in process token.
11284
11285 2003-01-10 J. Brobecker <brobecker@gnat.com>
11286
11287 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11288 compilation error in the previous revision.
11289
11290 2003-01-09 David Carlton <carlton@math.stanford.edu>
11291
11292 * linespec.c: Update copyright.
11293
11294 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11295
11296 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11297 than inferior_ptid.
11298 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11299
11300 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11301
11302 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11303 Update comments.
11304 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11305 (frame_saved_regs_zalloc): Update.
11306 (frame_saved_regs_register_unwind): Update.
11307 (create_new_frame): Update.
11308 (get_prev_frame): Update.
11309 (frame_extra_info_zalloc): Update.
11310 (deprecated_get_frame_saved_regs): Update.
11311 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11312 * cris-tdep.c: Update comment.
11313
11314 * somsolib.h: Fix function indentation.
11315 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11316 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11317 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11318 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11319 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11320
11321 * infrun.c (follow_fork): Use ISO C definition.
11322 * expprint.c (print_subexp): Use xfree instead of free.
11323 * charset.c: Include "gdb_string.h" instead of <string.h>.
11324 (register_iconv_charsets): Use ISO C definition.
11325 (host_charset, target_charset): Ditto.
11326 * Makefile.in (charset.o): Update dependencies.
11327 (mi-cmd-env.o): Update dependencies.
11328
11329 2003-01-08 Andrew Cagney <cagney@redhat.com>
11330
11331 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11332 get_frame_base.
11333
11334 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11335
11336 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11337 build directories. Save edited gdb output in Mbuild.log. If a
11338 build fails, remove any final GDB executable.
11339
11340 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11341
11342 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11343 replacing hex constants with function names and stripping leading
11344 file name directory prefixes.
11345
11346 2003-01-08 Andrew Cagney <cagney@redhat.com>
11347
11348 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11349 get_frame_base.
11350
11351 2003-01-08 David Carlton <carlton@math.stanford.edu>
11352
11353 * linespec.c (decode_line_1): Move code into decode_variable.
11354 (decode_variable): New function.
11355
11356 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11357
11358 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11359
11360 2003-01-08 Andrew Cagney <cagney@redhat.com>
11361
11362 * cris-tdep.c (cris_frame_init_saved_regs): Use
11363 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11364 saved_regs buffer.
11365 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11366 (sh64_nofp_frame_init_saved_regs): Ditto.
11367 (sh_fp_frame_init_saved_regs): Ditto.
11368 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11369 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11370 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11371 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11372
11373 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11374
11375 * minsyms.c (lookup_minimal_symbol): Update comment.
11376 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11377 (lookup_minimal_symbol_solib_trampoline): Likewise.
11378
11379 2003-01-08 Andrew Cagney <cagney@redhat.com>
11380
11381 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11382 frame_relative_level.
11383
11384 * alpha-tdep.c: Use get_frame_extra_info.
11385 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11386 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11387 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11388 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11389
11390 * alpha-tdep.c: Use get_next_frame.
11391 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11392 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11393 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11394 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11395 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11396 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11397 * xstormy16-tdep.c: Ditto.
11398
11399 2003-01-07 Andrew Cagney <cagney@redhat.com>
11400
11401 * alpha-tdep.c: Use get_frame_base.
11402 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11403 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11404 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11405 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11406 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11407 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11408 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11409 * config/sparc/tm-sparc.h: Ditto.
11410
11411 2003-01-07 Andrew Cagney <cagney@redhat.com>
11412
11413 * frame.c (deprecated_get_frame_context): New function.
11414 (deprecated_set_frame_context): New function.
11415 * frame.h (deprecated_get_frame_context): Declare.
11416 (deprecated_set_frame_context): Declare.
11417 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11418 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11419
11420 2003-01-07 Andrew Cagney <cagney@redhat.com>
11421
11422 * frame.c (deprecated_set_frame_next_hack): New function.
11423 (deprecated_set_frame_prev_hack): New function.
11424 * frame.h (deprecated_set_frame_next_hack): Declare.
11425 (deprecated_set_frame_prev_hack): Declare.
11426 * mcore-tdep.c (analyze_dummy_frame): Use
11427 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11428 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11429
11430 2003-01-07 David Carlton <carlton@math.stanford.edu>
11431
11432 * linespec.c (decode_line_1): Move code into decode_dollar.
11433 (decode_dollar): New function.
11434
11435 2003-01-07 Andrew Cagney <cagney@redhat.com>
11436
11437 * arm-tdep.c (arm_init_extra_frame_info): Use
11438 deprecated_update_frame_base_hack.
11439 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11440 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11441 (fix_frame_pointer): Ditto.
11442 (mn10300_analyze_prologue): Ditto.
11443
11444 2003-01-07 Andrew Cagney <cagney@redhat.com>
11445
11446 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11447 extra_info using frame_extra_info_zalloc.
11448 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11449 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11450 (sh64_init_extra_frame_info): Ditto.
11451 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11452 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11453 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11454 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11455 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11456 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11457 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11458 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11459 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11460 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11461 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11462 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11463
11464 * mn10300-tdep.c (analyze_dummy_frame): Use
11465 deprecated_set_frame_extra_info_hack.
11466 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11467
11468 2003-01-07 J. Brobecker <brobecker@gnat.com>
11469
11470 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11471 class is not scText. These do not define "real" procedures.
11472 (parse_partial_symbols): Likewise.
11473
11474 2003-01-06 Michael Snyder <msnyder@redhat.com>
11475
11476 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11477
11478 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11479
11480 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11481 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11482 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11483 deprecated_frame_xmalloc_with_cleanup.
11484 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11485 deprecated_frame_xmalloc.
11486 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11487 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11488
11489 2003-01-06 Andrew Cagney <cagney@redhat.com>
11490
11491 * x86-64-linux-tdep.c: Include "osabi.h".
11492 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11493
11494 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11495
11496 2003-01-06 Andrew Cagney <cagney@redhat.com>
11497
11498 * MAINTAINERS (Target Instruction Set Architectures): Update
11499 arm-elf. Can be built with -Werror, has been multiarched.
11500
11501 * value.h (unpack_long): Make buffer parameter constant.
11502 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11503 * scm-lang.h (scm_parse): Ditto.
11504 * defs.h (extract_typed_address, extract_address): Ditto.
11505 (extract_long_unsigned_integer): Ditto.
11506 * inferior.h (unsigned_pointer_to_address): Ditto.
11507 (signed_pointer_to_address): Ditto.
11508 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11509 * gdbarch.h, gdbarch.c: Regenerate.
11510 * findvar.c (extract_long_unsigned_integer): Update.
11511 (extract_address): Update.
11512 (extract_typed_address): Update.
11513 (unsigned_pointer_to_address): Update.
11514 * values.c (unpack_long): Update.
11515 (unpack_double): Update.
11516 (unpack_pointer): Update.
11517 (unpack_field_as_long): Update.
11518 * d10v-tdep.c (d10v_pointer_to_address): Update.
11519 * avr-tdep.c (avr_pointer_to_address): Update.
11520 * scm-lang.c (scm_unpack): Update.
11521 * findvar.c (signed_pointer_to_address): Update.
11522
11523 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11524
11525 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11526 since it is in i386-tdep.c.
11527
11528 2003-01-06 J. Brobecker <brobecker@gnat.com>
11529
11530 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11531 failure introduced in the previous change.
11532
11533 2003-01-05 Michael Chastain <mec@shout.net>
11534
11535 * README: Remove references to deleted remote-*.c files:
11536 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11537 remote-nrom.c, remote-os9k.c, remote-udi.c.
11538
11539 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11540
11541 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11542 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11543 i386_get_longjmp_target.
11544
11545 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11546
11547 * arm-tdep.c (prologue_cache): Change to a pointer.
11548 (_initialize_arm_tdep): Allocate prologue_cache.
11549 (check_prologue_cache): Update.
11550 (save_prologue_cache): Update.
11551 (arm_gdbarch_init): Update.
11552
11553 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11554
11555 * stabsread.c (update_method_name_from_physname): Call complaint()
11556 instead of error.
11557
11558 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11559
11560 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11561 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11562 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11563
11564 * blockframe.c: Include "gdbcmd.h" and "command.h".
11565 (backtrace_below_main): New variable.
11566 (file_frame_chain_valid, func_frame_chain_valid)
11567 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11568 (generic_func_frame_chain_valid): Remove functions.
11569 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11570 (_initialize_blockframe): New function.
11571 * Makefile.in (blockframe.o): Update dependencies.
11572 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11573 comment. Call frame_chain_valid ().
11574 * frame.h: Remove old prototypes. Add prototype for
11575 frame_chain_valid and update comments to match.
11576 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11577 Remove old comment.
11578 * gdbarch.h: Regenerated.
11579 * gdbarch.c: Regenerated.
11580
11581 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11582 set_gdbarch_frame_chain_valid.
11583 * avr-tdep.c (avr_gdbarch_init): Likewise.
11584 * cris-tdep.c (cris_gdbarch_init): Likewise.
11585 * frv-tdep.c (frv_gdbarch_init): Likewise.
11586 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11587 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11588 (i386_nw_init_abi): Likewise.
11589 (i386_gdbarch_init): Likewise.
11590 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11592 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11593 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11594 * mips-tdep.c (mips_gdbarch_init): Likewise.
11595 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11596 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11597 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11598 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11599 * s390-tdep.c (s390_gdbarch_init): Likewise.
11600 * sh-tdep.c (sh_gdbarch_init): Likewise.
11601 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11602 * v850-tdep.c (v850_gdbarch_init): Likewise.
11603 * vax-tdep.c (vax_gdbarch_init): Likewise.
11604 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11605
11606 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11607 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11608 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11609 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11610 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11611 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11612 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11613 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11614
11615 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11616
11617 * Makefile.in (acconfig_h): Remove incorrect macro.
11618 (config_h): Define.
11619 (osabi.o): Update dependencies.
11620 * configure.tgt: Set gdb_osabi based on target triplet.
11621 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11622 * configure: Regenerated.
11623 * config.in: Regenerated.
11624 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11625 (GDB_OSABI_DEFAULT): Define if not already defined.
11626 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11627 (set_osabi_string): New variables.
11628 (gdbarch_register_osabi): Add new OS ABI to
11629 gdb_osabi_available_names.
11630 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11631 (set_osabi, show_osabi): New functions.
11632 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11633
11634 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11635
11636 * arch-utils.c (gdbarch_info_init): Set osabi to
11637 GDB_OSABI_UNINITIALIZED.
11638 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11639 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11640 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11641 * gdbarch.c: Regenerated.
11642 * gdbarch.h: Regenerated.
11643 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11644 there's no BFD.
11645 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11646 * osabi.h (enum gdb_osabi): Move to defs.h.
11647 (gdbarch_init_osabi): Update prototype.
11648 * defs.h (enum gdb_osabi): Moved here.
11649 * Makefile.in: Update dependencies.
11650
11651 * alpha-tdep.h: Don't include "osabi.h".
11652 (struct gdbarch_tdep): Remove osabi member.
11653 * alpha-tdep.c: Include "osabi.h".
11654 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11655 iterate over arches. Update call to gdbarch_init_osabi.
11656 (alpha_dump_tdep): Don't dump osabi.
11657 * alpha-linux-tdep.c: Include "osabi.h".
11658 * alpha-osf1-tdep.c: Include "osabi.h".
11659 * alphafbsd-tdep.c: Include "osabi.h".
11660 * alphanbsd-tdep.c: Include "osabi.h".
11661
11662 * arm-tdep.h: Don't include "osabi.h".
11663 (struct gdbarch_tdep): Remove osabi member.
11664 * arm-tdep.c: Include "osabi.h".
11665 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11666 iterate over arches. Update call to gdbarch_init_osabi.
11667 (arm_dump_tdep): Don't dump osabi.
11668 * arm-linux-tdep.c: Include "osabi.h".
11669 * armnbsd-tdep.c: Include "osabi.h".
11670
11671 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11672 Update call to gdbarch_init_osabi.
11673
11674 * i386-tdep.h: Don't include "osabi.h".
11675 (struct gdbarch_tdep): Remove osabi member.
11676 * i386-tdep.c: Include "osabi.h".
11677 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11678 iterate over arches. Update call to gdbarch_init_osabi.
11679 (i386_dump_tdep): Don't dump osabi.
11680 * i386-linux-tdep.c: Include "osabi.h".
11681 * i386-sol2-tdep.c: Include "osabi.h".
11682 * i386bsd-tdep.c: Include "osabi.h".
11683 * i386gnu-tdep.c: Include "osabi.h".
11684 * i386ly-tdep.c: Include "osabi.h".
11685 * i386nbsd-tdep.c: Include "osabi.h".
11686 * i386obsd-tdep.c: Include "osabi.h".
11687
11688 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11689 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11690 check osabi when iterating over arches. Update call to
11691 gdbarch_init_osabi.
11692 (mips_dump_tdep): Don't dump osabi.
11693
11694 * ns32k-tdep.h: Don't include "osabi.h".
11695 (struct gdbarch_tdep): Remove.
11696 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11697 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11698 allocate tdep. Update call to gdbarch_init_osabi.
11699 (ns32k_dump_tdep): Remove.
11700 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11701 * ns32knbsd-tdep.c: Include "osabi.h".
11702
11703 * ppc-tdep.h: Don't include "osabi.h".
11704 (struct gdbarch_tdep): Remove osabi member.
11705 * rs6000-tdep.c: Include "osabi.h".
11706 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11707 osabi when iterating over arches. Update call to
11708 gdbarch_init_osabi.
11709 (rs6000_dump_tdep): Don't dump osabi.
11710 * ppc-linux-tdep.c: Include "osabi.h".
11711 * ppcnbsd-tdep.c: Include "osabi.h".
11712
11713 * sh-tdep.h: Don't include "osabi.h".
11714 (struct gdbarch_tdep): Remove osabi member.
11715 * sh-tdep.c: Include "osabi.h".
11716 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11717 iterate over arches. Update call to gdbarch_init_osabi.
11718 (sh_dump_tdep): Don't dump osabi.
11719 * shnbsd-tdep.c: Include "osabi.h".
11720
11721 * sparc-tdep.c: Include "osabi.h".
11722 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11723 iterate over arches. Update call to gdbarch_init_osabi.
11724 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11725 tdep structure.
11726
11727 * vax-tdep.h: Don't include "osabi.h".
11728 (struct gdbarch_tdep): Remove.
11729 * vax-tdep.c: Include "osabi.h".
11730 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11731 iterate over arches. Don't allocate tdep. Update call
11732 to gdbarch_init_osabi.
11733 (vax_dump_tdep): Remove.
11734 (_initialize_vax_tdep): Update call to gdbarch_register.
11735
11736 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11737
11738 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11739 entirely.
11740 (breakpoint_re_set_one): Don't fetch the value for a disabled
11741 watchpoint.
11742
11743 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11744
11745 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11746 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11747 (COERCE_FLOAT_TO_DOUBLE): Remove.
11748 * gdbarch.c: Regenerate.
11749 * gdbarch.h: Regenerate.
11750 * Makefile.in: Remove value_h from gdbarch_h.
11751 * valops.c (coerce_float_to_double): New variable.
11752 (default_coerce_float_to_double): Remove.
11753 (standard_coerce_float_to_double): Remove.
11754 (value_arg_coerce): Use coerce_float_to_double.
11755 (_initialize_valops): Add "set coerce-float-to-double".
11756 * value.h (default_coerce_float_to_double): Remove prototype.
11757 (standard_coerce_float_to_double): Remove prototype.
11758
11759 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11760 prototyped.
11761 * mdebugread.c (parse_symbol): Likewise.
11762 * stabsread.c (define_symbol): Mark all functions as prototyped.
11763
11764 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11765 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11766 set_gdbarch_coerce_float_to_double.
11767 * arm-tdep.c (arm_gdbarch_init): Likewise.
11768 * frv-tdep.c (frv_gdbarch_init): Likewise.
11769 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11770 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11771 * mips-tdep.c (mips_gdbarch_init): Likewise.
11772 (mips_coerce_float_to_double): Remove.
11773 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11774 (rs6000_coerce_float_to_double): Remove.
11775 * s390-tdep.c (s390_gdbarch_init): Likewise.
11776 * sh-tdep.c (sh_gdbarch_init): Likewise.
11777 (sh_coerce_float_to_double): Remove.
11778 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11779 (sparc_coerce_float_to_double): Remove.
11780 * v850-tdep.c (v850_gdbarch_init): Likewise.
11781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11782 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11783 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11784 (hppa_coerce_float_to_double): Remove prototype.
11785 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11786
11787 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11788
11789 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11790
11791 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11792
11793 Suggested by Stewart Brown <sb24@avaya.com>:
11794 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11795 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11796 (c_type_print_varspec_suffix): Likewise.
11797
11798 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11799
11800 * configure.in: Don't set and AC_SUBST SUBDIRS.
11801 * configure: Regenerated.
11802
11803 * configure.in: Remove code dealing with shared libraries.
11804 * Makefile.in: Remove HLDFLAGS and HLDENV.
11805 * configure: Regenerated.
11806
11807 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11808
11809 * frame.c (deprecated_frame_xmalloc): New function.
11810 (deprecated_set_frame_saved_regs_hack): New function.
11811 (deprecated_set_frame_extra_info_hack): New function.
11812 * frame.h (deprecated_frame_xmalloc): Declare.
11813 (deprecated_set_frame_saved_regs_hack): Declare.
11814 (deprecated_set_frame_extra_info_hack): Declare.
11815
11816 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11817
11818 * configure.in: Move code that provides the --enable-gdbtk option
11819 right after the code that handles the --enable-tui option, and
11820 polish it somewhat.
11821 * configure: Regenerated.
11822
11823 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11824 AC_CHECK_FUNCS and remove the old check for pread64.
11825 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11826 * acconfig.h (_GNU_SOURCE): Add.
11827 (HAVE_PREAD64): Remove.
11828 * configure, aclocal.m4, config.in: Regenerated.
11829
11830 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11831
11832 * alpha-tdep.c: Use get_frame_saved_regs.
11833 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11834 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11835 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11836 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11837 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11838
11839 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11840
11841 * configure.in: Remove all use of the SUBDIRS variable; add
11842 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11843 code providing the --enable-multi-ice option, and move it right in
11844 front of the code that checks whether gdbserver is supported.
11845 Polish that too.
11846 * configure: Regenerated.
11847 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11848 @SUBDIRS@.
11849
11850 2003-01-03 Andrew Cagney <cagney@redhat.com>
11851
11852 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11853 * avr-tdep.c, cris-tdep.c: Ditto.
11854 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11855 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11856
11857 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11858
11859 * configure.in: Remove --enable-netrom option.
11860 * configure: Regenerated.
11861
11862 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11863
11864 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11865 declaration for `struct re_pattern_buffer' instead.
11866 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11867
11868 2003-01-03 J. Brobecker <brobecker@gnat.com>
11869
11870 * mdebugread.c (parse_symbol): Count until the stEnd matching
11871 the structure name.
11872
11873 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11874
11875 * configure.in: Remove --with-cpu option.
11876 subscripts. Remove evil changequotes here.
11877 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11878 * config.in, configure: Regenerated.
11879
11880 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11881 * configure.in: Cleanup section that sources GDB and BFD configure
11882 subscripts. Remove evil changequotes here.
11883 * config.in, configure: Regenerated.
11884
11885 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11886
11887 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11888 frame accessor methods.
11889 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11890 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11891 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11892 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11893 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11894 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11895 * z8k-tdep.c: Ditto.
11896
11897 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11898
11899 * configure.in: Remove UI_OUT configuration code.
11900 * ada-lang.c: Update assuming UI_OUT is always true.
11901 * Makefile.in (UIOUT_CFLAGS): Remove.
11902 * configure: Regenerated.
11903 * TODO: Remove blurb about elimination of -DUI_OUT.
11904
11905 * configure.in: Move code that provides the --enable-gdbcli,
11906 --enable-gdbmi options right before the code that handles the
11907 --enable-tui option. Polish a bit.
11908 * configure: Regenerated.
11909
11910 * configure.in: Rewrite check for GNU regex and the
11911 --without-included regex option, and move it into the "Checks for
11912 library functions" section. This makes us use the system regex
11913 again by default on systems with version 2 of the GNU C library.
11914 This was apparently broken.
11915 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11916 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11917 * config.in, configure: Regenerated.
11918
11919 * configure.in: Move code that provides the --enable-tui option
11920 before the "Checks for libraries" section. Polish the code
11921 somewhat and set need_curses to yes if we build the TUI. Rewrite
11922 code that looks for a library providing termcap functionality to
11923 match more closely what's done in the Readline library, and move
11924 it into to the "Checks for libraries" section.
11925 * configure: Regenerated.
11926 * Makefile.in (TERMCAP): Remove variable.
11927 * config/i386/go32.mh (TERMCAP): Remove variable.
11928
11929 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11930
11931 * MAINTAINERS: Mention gdb_mbuild.sh.
11932 * gdb_mbuild.sh: Rewrite.
11933
11934 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11935
11936 * configure.in: Fix typo in last change.
11937 * config.in, configure: Regenerated.
11938
11939 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11940
11941 * valarith.c (value_binop): Delete obsolete code and comments.
11942 * configure.host: Ditto.
11943 * buildsym.h (make_blockvector): Ditto.
11944 * buildsym.c (make_blockvector): Ditto.
11945 * defs.h (enum language): Ditto.
11946 (chill_demangle): Ditto.
11947 * elfread.c (elf_symtab_read): Ditto.
11948 * dwarfread.c (CHILL_PRODUCER): Ditto.
11949 (set_cu_language): Ditto.
11950 (handle_producer): Ditto.
11951 * expprint.c (print_subexp): Ditto.
11952 * gdbtypes.c (chill_varying_type): Ditto.
11953 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11954 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11955 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11956 (chill_varying_type): Ditto.
11957 * language.h (_LANG_chill): Ditto.
11958 * language.c (binop_result_type, integral_type): Ditto.
11959 (character_type, string_type, structured_type): Ditto.
11960 (lang_bool_type, binop_type_check): Ditto.
11961 * stabsread.h (os9k_stabs): Ditto.
11962 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11963 (define_symbol, read_type, read_struct_fields): Ditto.
11964 (read_array_type, read_enum_type, read_huge_number): Ditto.
11965 (read_range_type, start_stabs): Ditto.
11966 * symfile.c (init_filename_language_table): Ditto.
11967 (add_psymbol_with_dem_name_to_list): Ditto.
11968 * symtab.c (symbol_init_language_specific): Ditto.
11969 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11970 * symtab.h (struct general_symbol_info): Ditto.
11971 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11972 * typeprint.c (typedef_print): Ditto.
11973 * utils.c (fprintf_symbol_filtered): Ditto.
11974 * valops.c (value_cast, search_struct_field, value_slice): Delete
11975 obsolete code.
11976 (varying_to_slice): Delete function.
11977 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11978 (varying_to_slice): Delete declaration.
11979 * MAINTAINERS: Update.
11980
11981 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11982
11983 * configure.in: Reorganize "Checks for library functions section"
11984 a bit. Remove check for `btowc' and `isascii' functions.
11985 * configure: Regenerated.
11986
11987 * acconfig.h (_MSE_INT_H): Remove.
11988 * configure.in: Create "Checks for header files" section, and move
11989 appropriate tests there. Don't check for objlist.h, wchar.h,
11990 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11991 misdetection fix. Also add "Checks for types", "Checks for
11992 compiler characteristics" and "Checks for library functions"
11993 sections.
11994 * config.in, configure: Regenerated.
11995
11996 * configure.in: Create "Checks for programs" section, and move
11997 appropriate tests there.
11998
11999 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12000
12001 * configure.in: Create "Checks for libraries" section, and move
12002 appropriate tests there. Cleanup check for wctype in libw. Use
12003 AC_SEARCH_LIBS to see whether we need libsocket.
12004 * configure: Regenerated.
12005
12006 For older changes see ChangeLog-2002
12007 \f
12008 Local Variables:
12009 mode: change-log
12010 left-margin: 8
12011 fill-column: 74
12012 version-control: never
12013 End:
This page took 0.29417 seconds and 4 git commands to generate.