* amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
[binutils-gdb.git] / gdb / ChangeLog
1 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2
3 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
4 _initialize_am64fbsd_nat.
5
6 2003-09-15 Kevin Buettner <kevinb@redhat.com>
7
8 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
9 associated with DW_AT_ranges attribute is out of bounds.
10
11 2003-09-15 David Lecomber <dsl@sources.redhat.com>
12
13 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
14
15 2003-09-14 Michael Chastain <mec@shout.net>
16
17 * config/m68k/nm-apollo68v.h: Delete.
18 * config/m68k/xm-apollo68v.h: Delete.
19
20 2003-09-14 Andrew Cagney <cagney@redhat.com>
21
22 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
23 * dcache.c: Update copyrights and descriptions.
24 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
25
26 2003-09-14 Andrew Cagney <cagney@redhat.com>
27
28 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
29 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
30
31 2003-09-14 Andrew Cagney <cagney@redhat.com>
32
33 * alpha-nat.c: Remove some occurances of "register".
34 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
35 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
36 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
37 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
38 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
39 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
40 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
41 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
42 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
43 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
44 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
45 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
46 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
47 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
48 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
49 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
50 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
51 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
52 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
53 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
54 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
55 * values.c, vax-tdep.c, xcoffread.c: Ditto.
56
57 2003-09-13 Andrew Cagney <cagney@redhat.com>
58
59 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
60 * ppc-tdep.h (struct regcache): Declare opaque.
61 * objfiles.h (struct objfile_data): Declare opaque.
62 * cp-support.h (struct objfile): Declare opaque.
63 * linux-nat.h (target_waitstatus): Declare opaque.
64
65 2003-09-14 Mark Kettenis <kettenis@gnu.org>
66
67 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
68 (stabs_argument_has_addr): New architecture method.
69 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
70 * arch-utils.c: Include "buildsym.h".
71 (default_stabs_argument_has_addr): New function.
72 * stabsread.c (define_symbol): Use stabs_argument_has_addr
73 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
74
75 * cris-tdep.c (cris_gdbarch_init): Set
76 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
77 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
78 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
79 * mips-tdep.c (mips_gdbarch_init): Likewise.
80 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
81 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
82
83 2003-09-13 Andrew Cagney <cagney@redhat.com>
84
85 * values.c (using_struct_return): Delete "function" and "funcaddr"
86 parameters.
87 * value.h (using_struct_return): Update declaration.
88 * infcmd.c (finish_command_continuation): Update.
89 (finish_command): Update.
90 * infcall.c (call_function_by_hand): Update.
91 * eval.c (evaluate_subexp_standard): Update.
92
93 2003-09-13 Christopher Faylor <cgf@redhat.com>
94
95 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
96 SSE registers since gdb will not operate correctly without this.
97 Restore include file ordering munged in previous change.
98 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
99
100 2003-09-13 Mark Kettenis <kettenis@gnu.org>
101
102 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
103 REG_STRUCT_HAS_ADDR.
104 * gdbarch.c, gdbarch.h: Updated.
105 * infcall.c (call_function_by_hand): Update.
106 * stabsread.c (define_symbol): Updated.
107
108 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
109
110 2003-09-12 Christopher Faylor <cgf@redhat.com>
111
112 * win32-nat.c: Reorganize so that defines used by target headers are
113 actually defined by the system headers.
114 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
115 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
116
117 2003-09-12 Jim Blandy <jimb@redhat.com>
118
119 * dbxread.c (read_dbx_symtab): Don't report an internal error if
120 the file has no .data, .bss, or .rodata sections. Instead wait
121 until we see a variable alleged to live in one of those sections.
122
123 * dbxread.c (read_dbx_symtab): If we have no .data section and no
124 .bss section, presume that any variables we find live in the
125 .rodata section.
126
127 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
128 offsets for global and static variables.
129
130 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
131 symbol types are, by definition, in the .data section, so it is
132 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
133 If there is no .data section, there should be no N_DATA or N_DATA
134 | N_EXT symbols.
135
136 2003-09-12 Mark Kettenis <kettenis@gnu.org>
137
138 * amd64fbsd-tdep.c: Fix sigtramp recognition.
139 (amd64fbsd_sigcontext_addr): Rewrite.
140 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
141 with correct values.
142 (amd64fbsd_sc_reg_offset): Initialize with correct values.
143 (amd64fbsd_init_abi): Fix typo.
144
145 2003-09-12 Andrew Cagney <cagney@redhat.com>
146
147 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
148 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
149
150 2003-09-12 Andrew Cagney <cagney@redhat.com>
151
152 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
153 "entry_file_highpc". Update comments.
154 * defs.h (deprecated_inside_entry_file): Rename
155 "inside_entry_file".
156 * blockframe.c (deprecated_inside_entry_file): Rename
157 "inside_entry_file".
158 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
159 * vax-tdep.c (vax_frame_chain): Update.
160 * sh64-tdep.c (sh64_frame_chain): Update.
161 * sh-tdep.c (sh_frame_chain): Update.
162 * rs6000-tdep.c (rs6000_frame_chain): Update.
163 * ns32k-tdep.c (ns32k_frame_chain): Update.
164 * mips-tdep.c (mips_frame_chain): Update.
165 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
166 * m32r-tdep.c (m32r_frame_this_id): Update.
167 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
168 * frv-tdep.c (frv_frame_this_id): Update.
169 * d10v-tdep.c (d10v_frame_this_id): Update.
170 * cris-tdep.c (cris_frame_chain): Update.
171 * blockframe.c (legacy_frame_chain_valid): Update.
172 * avr-tdep.c (avr_frame_this_id): Update.
173 * arm-tdep.c (arm_prologue_this_id): Update.
174 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
175 * objfiles.c (objfile_relocate): Update.
176 * mipsread.c (mipscoff_symfile_read): Update.
177 (mipscoff_symfile_read): Update.
178 * mdebugread.c (parse_partial_symbols): Update.
179 * dwarfread.c (read_file_scope): Update.
180 * dwarf2read.c (read_file_scope): Update.
181 * dbxread.c (read_dbx_symtab): Update.
182 (read_dbx_symtab): Update.
183 * coffread.c (complete_symtab): Update.
184
185 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
186
187 * top.c (quit_target): New static helper function.
188 (quit_force): Moved code to quit_target(). Call quit_target()
189 via catch_errors() to catch errors during quit.
190
191 2003-09-11 David Carlton <carlton@kealia.com>
192
193 * buildsym.c (finish_block): Use allocate_block to allocate the
194 block.
195 * mdebugread.c (new_block): Add FIXME.
196
197 2003-09-11 David Carlton <carlton@kealia.com>
198
199 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
200 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
201 (recursive_dump_type): Ditto.
202 * printcmd.c (print_formatted): Ditto.
203 * typeprint.c (print_type_scalar): Ditto.
204 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
205 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
206 * cp-support.h: Declare cp_check_possible_namespace_symbols,
207 maint_cplus_cmd_list.
208 * cp-support.c: Make maint_cplus_cmd_list extern.
209 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
210 command.h.
211 (lookup_symbol_file): Look in possible namespace blocks when
212 appropriate.
213 (initialize_namespace_symtab): New.
214 (get_possible_namespace_block, free_namespace_block)
215 (check_possible_namespace_symbols)
216 (check_possible_namespace_symbols_loop)
217 (check_one_possible_namespace_symbol)
218 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
219 (_initialize_cp_namespace): Ditto.
220 * block.h: Declare allocate_block.
221 * block.c (allocate_block): New.
222 * jv-lang.c (get_java_class_symtab): Allocate blocks via
223 allocate_block.
224 * symfile.h: Update declaration of add_psymbol_to_list.
225 * symfile.c (add_psymbol_to_list): Return the partial symbol in
226 question.
227 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
228 scan_partial_symbols_call.
229 (scan_partial_symbols): Add NAMESPACE argument; update calls to
230 helper functions.
231 (add_partial_symbol): If necessary, scan mangled names for names
232 of namespaces.
233 (add_partial_namespace): Add NAMESPACE argument; generate partial
234 symbols associated to namespaces.
235 (add_partial_enumeration): Add NAMESPACE argument.
236 (new_symbol): Allow namespace syms.
237 (read_namespace): Generate namespace syms.
238 * objfiles.h: Add opaque declaration of struct symtab.
239 (struct objfile): Add cp_namespace_symtab member.
240 * objfiles.c (allocate_objfile): Set
241 objfile->cp_namespace_symtab.
242 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
243 dictionary_h, command_h.
244
245 2003-09-11 Andrew Cagney <cagney@redhat.com>
246
247 * rs6000-tdep.c (rs6000_push_dummy_call): Use
248 regcache_raw_write_signed to set SP_REGNUM, move the operation to
249 near the function's end.
250 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
251 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
252 regcache_raw_write_signed to set SP_REGNUM.
253
254 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
255
256 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
257 orig_addrs is set up properly.
258
259 2003-09-11 Andrew Cagney <cagney@redhat.com>
260
261 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
262 * gdbarch.h, gdbarch.c: Re-generate.
263 * infcall.c (call_function_by_hand): Update.
264 * hppa-tdep.c (hppa_push_arguments): Update.
265 * ada-lang.c (place_on_stack): Update.
266 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
267 * sparc-tdep.c (sparc_gdbarch_init): Update.
268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
269 * hppa-tdep.c (hppa_gdbarch_init): Update.
270 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
271 stack_align.
272
273 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
274
275 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
276 register do need a frame.
277
278 2003-09-11 Andrew Cagney <cagney@redhat.com>
279
280 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
281 buildable since GDB 5.0.
282 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
283 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
284 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
285 * irix4-nat.c: Delete file.
286 * config/mips/irix4.mh: Delete file.
287 * config/mips/irix3.mh: Delete file.
288 * config/mips/irix3.mt: Delete file.
289 * config/mips/tm-irix3.h: Delete file.
290 * config/mips/nm-irix3.h: Delete file.
291 * config/mips/xm-irix3.h: Delete file.
292 * config/mips/nm-irix4.h: Delete file.
293 * config/mips/xm-irix4.h: Delete file.
294 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
295
296 2003-09-10 J. Brobecker <brobecker@gnat.com>
297
298 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
299 * Makefile.in (hppa-tdep.o): Update dependencies.
300
301 2003-09-10 James E Wilson <wilson@specifixinc.com>
302
303 * MAINTAINERS: Change my e-mail address. Move to paper trail
304 section.
305
306 2003-09-10 Kevin Buettner <kevinb@redhat.com>
307
308 * MAINTAINERS (frv): New ISA entry.
309
310 2003-09-10 Kevin Buettner <kevinb@redhat.com>
311
312 * frv-tdep.c (dis-asm.h): Include.
313 * Makefile.in (frv-tdep.o): Update dependencies.
314
315 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
316
317 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
318 Fix typo for high range of floating registers.
319
320 2003-09-09 David Carlton <carlton@kealia.com>
321
322 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
323 highpc initialization here out of scan_partial_symbols.
324 (scan_partial_symbols): Restructure into a recursive version,
325 calling add_partial_namespace and add_partial_enumeration when
326 appropriate.
327 (add_partial_namespace): New.
328 (add_partial_enumeration, locate_pdi_sibling): Ditto.
329
330 2003-09-09 Andrew Cagney <cagney@redhat.com>
331
332 * rs6000-tdep.c (ppc_push_return_address): Delete function.
333 (rs6000_push_dummy_call): Set LR to BP_ADDR.
334 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
335 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
336
337 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
338 (rs6000_push_dummy_call): Set the "TOC" register.
339
340 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
341 methods "max_register_raw_size", "max_register_virtual_size" or
342 "register_virtual_size".
343
344 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
345
346 * MAINTAINERS: Update my e-mail address.
347
348 2003-09-09 Andrew Cagney <cagney@redhat.com>
349
350 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
351 (rs6000_push_dummy_call): Store the struct return address.
352 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
353
354 2003-09-09 Andrew Cagney <cagney@redhat.com>
355
356 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
357 "ppc_sysv_abi_push_arguments".
358 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
359 "ppc_sysv_abi_push_arguments".
360 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
361 instead of "push_arguments".
362 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
363
364 2003-09-09 Andrew Cagney <cagney@redhat.com>
365
366 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
367 instead of CALL_DUMMY_ADDRESS.
368
369 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
370
371 * p-lang.c: Eliminate "register".
372 * c-lang.c: Ditto.
373 * expprint.c: Ditto.
374 * f-lang.c: Ditto.
375 * jv-lang.c: Ditto.
376 * language.c: Ditto.
377 * m2-lang.c: Ditto.
378 * parse.c: Ditto.
379 * scm-lang.c: Ditto.
380 * objc-lang.c: Ditto.
381
382 2003-09-09 Nick Clifton <nickc@redhat.com>
383
384 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
385
386 2003-09-04 Andrew Cagney <cagney@redhat.com>
387
388 * avr-tdep.c: Include "dis-asm.h".
389 * cris-tdep.c: Include "dis-asm.h".
390 (cris_delayed_get_disassembler): Use "struct disassemble_info"
391 instead of corresponding typedef.
392 * h8300-tdep.c: Include "dis-asm.h".
393 * ia64-tdep.c: Include "dis-asm.h".
394 * i386-tdep.c: Include "dis-asm.h".
395 (i386_print_insn): Use "struct disassemble_info" instead of
396 corresponding typedef.
397 * m68k-tdep.c: Include "dis-asm.h".
398 * mcore-tdep.c: Include "dis-asm.h".
399 * mips-tdep.c: Include "dis-asm.h".
400 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
401 instead of corresponding typedef.
402 * ns32k-tdep.c: Include "dis-asm.h".
403 * s390-tdep.c: Include "dis-asm.h".
404 * sparc-tdep.c: Include "dis-asm.h".
405 * vax-tdep.c: Include "dis-asm.h".
406 * v850-tdep.c: Include "dis-asm.h".
407 * mn10300-tdep.c: Include "dis-asm.h".
408 * rs6000-tdep.c: Include "dis-asm.h".
409 * xstormy16-tdep.c: Include "dis-asm.h".
410 (_initialize_xstormy16_tdep): Delete "extern" declaration of
411 print_insn_xstormy16.
412 * Makefile.in (v850-tdep.o): Update dependencies.
413 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
414 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
415 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
416 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
417 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
418 (gdbarch_h): Remove $(dis_asm_h).
419 * disasm.c: Include "dis-asm.h".
420 (dis_asm_read_memory): Use "struct disassemble_info" instead of
421 corresponding typedef.
422 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
423 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
424 * gdbarch.sh: Do not include "dis-asm.h".
425 (struct disassemble_info): Declare opaque.
426 (TARGET_PRINT_INSN): Update declaration.
427 * gdbarch.h, gdbarch.c: Re-generate.
428
429 2003-09-08 Andrew Cagney <cagney@redhat.com>
430
431 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
432 CALL_DUMMY_ADDRESS, change to a predicate.
433 * gdbarch.h, gdbarch.c: Re-generate.
434 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
435 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
436 * infcall.c (call_function_by_hand): Ditto.
437 * sparc-tdep.c (sparc_push_return_address): Ditto.
438 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
439 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
440 CALL_DUMMY_ADDRESS with entry_point_address.
441 * v850-tdep.c (v850_push_return_address): Ditto.
442 * s390-tdep.c (s390_push_return_address): Ditto.
443 * rs6000-tdep.c (ppc_push_return_address): Ditto.
444 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
445 * mcore-tdep.c (mcore_push_return_address): Ditto.
446 * cris-tdep.c (cris_push_return_address): Ditto.
447 * arm-tdep.c (arm_push_return_address): Ditto.
448
449 2003-09-08 Andrew Cagney <cagney@redhat.com>
450
451 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
452 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
453 and REG_UNMODIFIED to REG_SAME_VALUE.
454 (execute_cfa_program): Update.
455 (dwarf2_frame_cache): Update. Initialize table to
456 REG_UNSPECIFIED, complain if CFI fails to specify a register's
457 location.
458 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
459
460 2003-09-08 Andrew Cagney <cagney@redhat.com>
461
462 * gnu-nat.c: Remove "inline" function attribute.
463 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
464
465 2003-09-08 Kevin Buettner <kevinb@redhat.com>
466
467 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
468 target.
469
470 2003-09-08 Kevin Buettner <kevinb@redhat.com>
471
472 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
473 (frame_extra_info): Rename this struct to frv_unwind_cache.
474 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
475 Add fields ``prev_sp'' and ``base''.
476 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
477 (frv_saved_pc_after_call, frv_init_extra_frame_info)
478 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
479 Delete.
480 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
481 Revise all callers. Fill in the unwind cache argument and make
482 other adjustments to account for new frame mechanisms.
483 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
484 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
485 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
486 (frv_frame_unwind, frv_frame_base): New structs.
487 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
488 additional arguments expected by this method and adjust function
489 body accordingly.
490 (frv_gdbarch_init): Remove calls to the following functions:
491 set_gdbarch_deprecated_init_frame_pc(),
492 set_gdbarch_deprecated_saved_pc_after_call(),
493 set_gdbarch_deprecated_frame_chain(),
494 set_gdbarch_deprecated_frame_saved_pc(),
495 set_gdbarch_deprecated_frame_init_saved_regs(),
496 set_gdbarch_deprecated_push_arguments(),
497 set_gdbarch_deprecated_push_return_address(),
498 set_gdbarch_deprecated_pop_frame(),
499 set_gdbarch_deprecated_call_dummy_words(),
500 set_gdbarch_deprecated_sizeof_call_dummy_words(),
501 set_gdbarch_deprecated_init_extra_frame_info(),
502 set_gdbarch_deprecated_dummy_write_sp(), and
503 set_gdbarch_deprecated_pc_in_call_dummy().
504 Add calls to the following functions:
505 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
506 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
507 frame_base_set_default().
508 * Makefile.in (frv-tdep.o): Update dependencies.
509
510 2003-09-09 Mark Kettenis <kettenis@gnu.org>
511
512 * dwarf2-frame.c (read_encoded_value): Add support for
513 DW_EH_PE_aligned encoding.
514
515 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
516
517 * infrun.c (normal_stop): Don't print a message if the inferior
518 has exited.
519
520 2003-09-08 Jim Blandy <jimb@redhat.com>
521
522 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
523 * dbxread.c: #include "gdb_assert.h".
524 (read_dbx_symtab): If the objfile has no .data section, use the
525 section index for the .bss section instead.
526
527 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
528
529 * frame.c (deprecated_safe_get_selected_frame): New function.
530 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
531 * findvar.c (read_var_value): Call it.
532
533 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
534
535 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
536 (sh64-tdep.o): Add dependencies.
537 * configure.tgt: Add FIXME to sh-*-linux*.
538 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
539 (sh_gdbarch_init): Always set correct sh_show_regs function
540 pointer. Call sh64_gdbarch_init() if machine type is sh5.
541 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
542 * sh64-tdep.c: New file, containing all sh64 related code from
543 sh-tdep.c.
544 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
545 * config/sh/linux.mt (TDEPFILES): Ditto.
546 * config/sh/nbsd.mt (TDEPFILES): Ditto.
547 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
548 * config/sh/wince.mt (TDEPFILES): Ditto.
549
550 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
551
552 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
553 (stop_wait_callback): Handle !lp->signalled also.
554 (lin_lwp_has_pending, flush_callback): New functions.
555 (lin_lwp_wait): Call flush_callback.
556 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
557 (linux_proc_pending_signals): New function.
558 * linux-nat.h (linux_proc_pending_signals): Add prototype.
559
560 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
561
562 From Nick Kelsey <nickk@ubicom.com>:
563 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
564 when the stop PC is at the beginning of a function also.
565
566 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
567
568 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
569 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
570
571 2003-09-06 Mark Kettenis <kettenis@gnu.org>
572
573 * sol-thread.c: Include "gdb_string.h".
574
575 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
576
577 * gcore.c: Reorder include files in alphabetical order. Include
578 "gdb_assert.h". Various coding style fixes.
579 (derive_stack_segment, derive_heap_segment): Replace check for
580 non-null BOTTOM and TOP with gdb_assert.
581 (derive_heap_segment): Replace check for successful creation of
582 ZERO with gdb_assert.
583 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
584
585 2003-09-04 Andrew Cagney <cagney@redhat.com>
586
587 * thread-db.c (verbose_dlsym): New function.
588 (thread_db_load): Use verbose_dlsym
589 (thread_db_new_objfile): Print that libthread_db was loaded, and
590 that thread debugging was enabled.
591
592 2003-09-04 Andrew Cagney <cagney@redhat.com>
593
594 * configure.tgt: Add "mips64*-*-*" target. Delete
595 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
596 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
597 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
598 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
599 mips*-sony-*, and mips64*-*-elf* targets.
600 * config/mips/embedl.mt: Delete file.
601 * config/mips/embedl64.mt: Delete file.
602 * config/mips/mips.mt: Delete file.
603 * config/mips/mips64.mt: Delete file.
604 * config/mips/tm-embed.h: Delete file.
605 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
606 * config/mips/embed64.mt: Delete out-of-date comment.
607
608 2003-09-04 Andrew Cagney <cagney@redhat.com>
609
610 * hppa-tdep.c (hppa_gdbarch_init): Set
611 "have_nonsteppable_watchpoint".
612 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
613 * mips-tdep.c (mips_dump_tdep): Do not print
614 HAVE_NONSTEPPABLE_WATCHPOINT.
615 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
616 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
617 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
618 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
619
620 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
621
622 * breakpoint.c (watchpoint_check): Remove accidentally checked in
623 unused code. Add comment.
624
625 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
626
627 * breakpoint.c (watchpoint_check): Check for pc being in an
628 epilogue if watchpoint frame couldn't be found.
629
630 2003-09-04 Andrew Cagney <cagney@redhat.com>
631
632 * Makefile.in: Re-generate all dependencies.
633
634 2003-09-03 Andrew Cagney <cagney@redhat.com>
635
636 * arch-utils.h (legacy_print_insn): Delete declaration.
637 * arch-utils.c (legacy_print_insn): Delete function.
638 * disasm.c (deprecated_tm_print_insn_info): Delete.
639 (_initialize_disasm): Delete function, contained code initializing
640 deprecated_tm_print_insn_info.
641 * gdbarch.sh (deprecated_tm_print_insn): Delete.
642 (deprecated_tm_print_insn_info): Delete.
643 (TARGET_PRINT_INSN): Do not provide a default.
644 * gdbarch.h, gdbarch.c: Re-generate.
645
646 2003-09-03 Andrew Cagney <cagney@redhat.com>
647
648 * disasm.c (fprintf_disasm): New function.
649 (gdb_disassemble_info): Call "init_disassemble_info", instead of
650 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
651 reverts 2003-08-14 change.
652 (_initialize_disasm): Call "init_disassemble_info", instead of
653 INIT_DISASSEMBLE_INFO_NO_ARCH.
654
655 2003-09-03 Michael Snyder <msnyder@redhat.com>
656
657 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
658
659 2003-09-03 Andrew Cagney <cagney@redhat.com>
660
661 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
662 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
663 * symfile.c (syms_from_objfile): Update.
664 (reread_symbols): `Update
665 * exec.c (exec_file_attach): Update.
666 (exec_file_attach): Update.
667 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
668 2003-08-29 change.
669 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
670
671 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
672
673 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
674 trad-frame.h.
675 (arm_get_cache): Delete macro.
676 (struct arm_prologue_cache): Update comments. Make saved_regs into
677 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
678 to prev_sp.
679 (thumb_scan_prologue): Update for cache changes. Don't call
680 DEPRECATED_PC_IN_CALL_DUMMY.
681 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
682 argument and use it in desperation search for our prologue. Do not
683 search past the specified PC.
684 (arm_make_prologue_cache): Simplify.
685
686 (arm_prologue_this_id, arm_prologue_prev_register)
687 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
688 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
689 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
690 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
691 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
692
693 (arm_frame_chain_valid, arm_find_callers_reg)
694 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
695 (arm_pop_frame): Delete obsolete methods.
696 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
697
698 (arm_gdbarch_init): Update for new frame methods. Register prologue
699 and sigtramp unwinders. Set the default frame base method.
700
701 * Makefile.in (arm-tdep.o): Update dependencies.
702 * varobj.c (find_frame_addr_in_frame_chain): Call
703 get_frame_base_address.
704 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
705
706 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
707
708 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
709 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
710 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
711 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
712 Take NEXT_FRAME and CACHE arguments. Call
713 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
714 Set unwound_pc in CACHE instead of modifying the frame argument.
715 Don't bother checking the frame type when looking for sigtramp
716 frames.
717 (arm_make_prologue_cache, arm_frame_chain)
718 (arm_init_extra_frame_info): New functions.
719
720 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
721
722 * arm-tdep.c (arm_get_cache): Define.
723 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
724 unwound_sp, unwound_pc, and saved_regs.
725 (thumb_scan_prologue): Take a cache instead of the frame.
726 (arm_scan_prologue): Likewise.
727 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
728 instead of a temporary frame.
729 (arm_init_extra_frame_info): Allocate and use a cache.
730 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
731
732 2003-09-03 Andrew Cagney <cagney@redhat.com>
733
734 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
735 * config/mips/wince.mt (TM_CLIBS): Ditto.
736 * config/sh/wince.mt (TM_CLIBS): Ditto.
737 * config/pa/hppa64.mt (TM_CLIBS): Delete.
738 * config/sparc/sp64.mt (CC): Delete.
739
740 2003-09-03 Andrew Cagney <cagney@redhat.com>
741
742 * defs.h: Do not include "arch-utils.h".
743 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
744 GDB_MULTI_ARCH_PURE.
745 * configure.in (GDB_MULTI_ARCH): Do not define.
746 * configure, config.in: Regenerate.
747 * configure.tgt: Do not set variable "gdb_multi_arch".
748 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
749 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
750 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
751 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
752 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
753 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
754 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
755 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
756 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
757 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
758 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
759 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
760 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
761 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
762 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
763 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
764 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
765 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
766
767 2003-08-30 Michael Chastain <mec@shout.net>
768
769 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
770 * config/m68k/nm-hp300hpux.h: Delete.
771 * config/m68k/tm-hp300hpux.h: Delete.
772 * config/m68k/xm-hp300hpux.h: Delete.
773 * config/m68k/xm-hp300bsd.h: Delete.
774 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
775 tm-hp300hpux.h, xm-hp300hpux.h.
776 * somsolib.c: Remove comment about hp300 shared libraries.
777
778 2003-08-31 Mark Kettenis <kettenis@gnu.org>
779
780 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
781 Only define PTRACE_GET_THREAD_AREA is not already defined.
782 Various style fixes in code and comments and some additional
783 spelling fixes in comments. Move after functions dealing with
784 debug registers.
785 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
786 Fix coding-style.
787
788 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
789 frame_unwind_register_unsigned instead of
790 frame_unwind_unsigned_register.
791
792 2003-08-30 Mark Kettenis <kettenis@gnu.org>
793
794 * configure.in: Search for gethostbyname in libnsl.
795 * configure: Regenerated.
796
797 2003-08-29 Mark Kettenis <kettenis@gnu.org>
798
799 * configure.in: Remove redundant AC_MSG_RESULT in check for
800 uintptr_t in stdint.h.
801 * configure: Regenerated.
802
803 * amd64-nat.h (struct regcache): Add opaque declaration.
804
805 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
806 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
807 Change "register array" to "register cache" in comments.
808 (x86_64_linux_gregset64_reg_offset): New variable.
809 (GETREGS_SUPPLIES): Remove macro.
810 (supply_gregset): Call amd64_supply_native_gregset instead of
811 x86_64_linux_supply_gregset.
812 (fill_gregset): Rename `regno' to `regnum'. Call
813 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
814 (store_regs): Rename `regno' to `regnum'.
815 (store_fpregs): Rename `regno' to `regnum'.
816 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
817 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
818 Reorganize function a bit.
819 (store_inferior_registers): Rename `regno' to `regnum'. Use
820 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
821 Reorganize function a bit.
822 (_initialize_x86_64_linux_nat): New function.
823 * config/i386/x86-64linux.mh.
824
825 2003-08-29 Andrew Cagney <cagney@redhat.com>
826
827 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
828 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
829 (target_remove_watchpoint): Delete macro.
830 (target_insert_watchpoint): Delete macro.
831 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
832 (remote_mips_stopped_by_watchpoint): Delete declaration.
833 (remote_mips_remove_watchpoint): Delete declaration.
834 (remote_mips_set_watchpoint): Delete declaration.
835 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
836 * remote-mips.c (_initialize_remote_mips): Set
837 "to_insert_watchpoint", "to_stopped_by_watchpoint",
838 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
839 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
840 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
841 (mips_stopped_by_watchpoint): Rename
842 remote_mips_stopped_by_watchpoint.
843 (mips_can_hardware_watchpoint): Rename
844 remote_mips_can_use_hardware_watchpoint, update function
845 signature.
846
847 2003-08-29 Mark Kettenis <kettenis@gnu.org>
848
849 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
850 USER_DS. We haven't given them a register number yet.
851
852 * amd64-nat.h: New file.
853 * amd64-nat.c: New file.
854 * amd64fbsd-nat.c: Include "amd64-nat.h".
855 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
856 (amd64fbsd32_r_reg_offset): New variable.
857 (supply_gregset): Simply call amd64_supply_native_gregset.
858 (fill_gregset): Rename `regno' to `regnum'. Simply call
859 amd64_collect_native_gregset.
860 (fill_fpregset): Rename `regno' to `regnum'.
861 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
862 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
863 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
864 `fpregset_t'. Call amd64_supply_native_gregset instead of
865 supply_gregset. Call x86_64_supply_fxsave instead of
866 supply_fpregset.
867 (store_inferior_registers): Rename `regno' to `regnum'. Replace
868 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
869 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
870 `fpregset_t'. Call amd64_collect_native_gregset instead of
871 fill_gregset. Call x86_64_collect_fxsave instead of
872 fill_fpregset.
873 (_initialize_am64fbsd_nat): Initialize
874 amd64_native_gregset32_reg_offset and
875 amd64_native_gregset64_reg_offset.
876 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
877
878 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
879 null pointer. Fix typo in comment.
880
881 * regcache.c (supply_register): Reimplement to call
882 regcache_raw_supply.
883 (regcache_collect): Reimplement by calling regcache_raw_collect.
884
885 2003-08-28 Mark Kettenis <kettenis@gnu.org>
886
887 * regcache.c (register_buffer): Consitify first argument.
888 (regcache_raw_supply, regcache_raw_collect): New
889 functions.
890
891 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
892
893 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
894 by Nathan J. Williams.
895
896 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
897
898 * lin-lwp.c (wait_lwp): New function, copied from
899 stop_wait_callback. Clean up.
900 (stop_wait_callback): Use wait_lwp.
901
902 2003-08-28 Andrew Cagney <cagney@redhat.com>
903
904 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
905 flavour and disassembler options.
906 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
907 (mips_gdbarch_init): Set "print_insn". Delete initialization of
908 deprecated_tm_print_insn_info.
909
910 2003-08-27 Andrew Cagney <cagney@redhat.com>
911
912 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
913 Use target_read_memory.
914 (s390_get_frame_info): Update. Do not reference
915 deprecated_tm_print_insn_info.
916 (s390_check_function_end, s390_is_sigreturn): Ditto.
917
918 2003-08-27 Andrew Cagney <cagney@redhat.com>
919
920 * Makefile.in (cris-tdep.o): Update dependencies.
921 * cris-tdep.c: Include "gdb_assert.h".
922 (cris_gdbarch_init): Set print_insn.
923 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
924 (cris_delayed_get_disassembler): Simplify, directly call the
925 disassembler returned by cris_get_disassembler.
926 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
927 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
928 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
929 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
930 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
931 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
932 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
933 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
934 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
935 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
936 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
937 (gdb_print_insn_sparc): Delete function.
938 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
939 deprecated_tm_print_insn_info.
940 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
941 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
942 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
944 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
945 * s390-tdep.c (gdb_print_insn_s390): Delete function.
946 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
947 (s390_gdbarch_init): Set print_insn.
948
949 2003-08-27 Andrew Cagney <cagney@redhat.com>
950
951 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
952 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
953 * infcall.c (call_function_by_hand): Convert the entry point
954 address into a code address.
955
956 2003-08-27 Andrew Cagney <cagney@redhat.com>
957
958 * dsrec.c: Include "gdb_string.h".
959 * Makefile.in (dsrec.o): Update dependencies.
960
961 2003-08-27 Michael Chastain <mec@shout.net>
962
963 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
964
965 2003-08-27 Andrew Cagney <cagney@redhat.com>
966
967 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
968 (alpha_osf1_init_abi): Do not set call_dummy_address.
969
970 2003-08-27 David Carlton <carlton@kealia.com>
971
972 From Randolph Chung <tausq@debian.org>:
973 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
974 compiles with -Wformat-nonliteral -Werror.
975
976 2003-08-26 Jim Blandy <jimb@redhat.com>
977
978 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
979 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
980 bfd_lookup_symbol, since we only want symbols in code sections.
981 (look_for_base): Pass zero as the SECT_FLAGS argument to
982 bfd_lookup_symbol, since we're not concerned about which section
983 the symbol is in.
984
985 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
986
987 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
988 we are frameless or the return address register is already known.
989
990 2003-08-26 Andrew Cagney <cagney@redhat.com>
991
992 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
993 in size. Add comments.
994
995 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
996
997 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
998 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
999
1000 2003-08-26 Jason Merrill <jason@redhat.com>
1001
1002 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1003 case out of #ifdef MIPS block.
1004
1005 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1006
1007 PR java/1322
1008 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1009 available before calling SECT_OFF_TEXT.
1010 * PROBLEMS: Remove description of java/1322.
1011
1012 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1013
1014 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1015 bof, and nat0-nat127 as pseudo-registers.
1016 (ia64_frame_cache): New struct used to cache frame info.
1017 (ia64_register_reggroup_p): New routine used to override default
1018 register grouping so registers without names are still saved and
1019 restored.
1020 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1021 pseudo values.
1022 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1023 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1024 (ia64_alloc_frame_cache): New routine to create a new
1025 ia64_frame_cache.
1026 (examine_prologue): Change prototype to add next_frame pointer.
1027 Assume frameless until otherwise proven. Verify that the cfm for
1028 current frame matches the cfm that should occur for the prologues
1029 alloc insn and if equal, mark as not frameless. At end of routine,
1030 if not frameless, calculate registers for the previous frame and store
1031 in the cache, if a cache is provided.
1032 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1033 and pass 0 for next_frame.
1034 (ia64_store_return_value): Change to use convert_typed_floating()
1035 instead of calling ia64_convert_to_raw().
1036 (ia64_extract_return_value): Change to use convert_typed_floating()
1037 instead of calling ia64_convert_to_virtual().
1038 (ia64_frame_cache): New routine to support new frame model.
1039 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1040 (ia64_frame_sniffer): Ditto.
1041 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1042 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1043 (ia64_sigtramp_frame_prev_register): Ditto.
1044 (ia64_sigtramp_frame_sniffer): Ditto.
1045 (ia64_frame_base_address): Ditto.
1046 (ia64_extract_struct_value_address): Change to issue error message.
1047 (ia64_frame_align): New routine to align sp.
1048 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1049 (ia64_push_arguments): Removed. Logic moved to
1050 ia64_push_dummy_call().
1051 (ia64_push_return_address): Ditto.
1052 (ia64_unwind_dummy_id): New function.
1053 (ia64_unwind_pc): Ditto.
1054 (ia64_convert_register_p): Ditto.
1055 (ia64_register_to_value): Ditto.
1056 (ia64_value_to_register): Ditto.
1057 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1058 (ia64_register_byte, ia64_register_raw_size): Ditto.
1059 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1060 (ia64_saved_pc_after_call): Ditto.
1061 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1062 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1063 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1064 (ia64_register_convert_to_raw): Ditto.
1065 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1066 (ia64_init_extra_frame_info): Ditto.
1067 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1068 (ia64_gdbarch_init): Remove registering of deprecated functions that
1069 are no longer used. Add registration of new gdbarch functions.
1070 Remove registering deprecated_write_sp. Replace
1071 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1072 Delete set_gdbarch_deprecated_register_convertible(),
1073 set_gdbarch_deprecated_register_convert_to_virtual(), and
1074 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1075 set_gdbarch_deprecated_register_size(),
1076 set_gdbarch_deprecated_register_bytes(),
1077 set_gdbarch_pcregnum(),
1078 set_gdbarch_deprecated_register_byte(),
1079 set_gdbarch_deprecated_register_raw_size(),
1080 set_gdbarch_deprecated_max_register_raw_size(),
1081 set_gdbarch_deprecated_register_virtual_size(),
1082 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1083 Replace set_gdbarch_deprecated_extract_return_value() with
1084 set_gdbarch_extract_return_value(). Remove calls to:
1085 set_gdbarch_deprecated_saved_pc_after_call();
1086 set_gdbarch_deprecated_frame_chain(),
1087 set_gdbarch_deprecated_frame_saved_pc(),
1088 set_gdbarch_deprecated_frame_init_saved_regs(),
1089 set_gdbarch_deprecated_get_saved_register(),
1090 set_gdbarch_deprecated_call_dummy_words(),
1091 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1092 set_gdbarch_deprecated_init_extra_frame_info(),
1093 set_gdbarch_deprecated_frame_args_address(),
1094 set_gdbarch_deprecated_frame_locals_address(),
1095 and set_gdbarch_deprecated_dummy_write_sp().
1096 Add set_gdbarch_convert_register_p(),
1097 set_gdbarch_register_to_value(),
1098 set_gdbarch_value_to_register(),
1099 set_gdbarch_push_dummy_call(),
1100 set_gdbarch_frame_align(),
1101 set_gdbarch_unwind_dummy_id(),
1102 set_gdbarch_unwind_pc(),
1103 frame_unwind_append_sniffer(),
1104 frame_unwind_append_sniffer(),
1105 and frame_base_set_default().
1106
1107 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1108
1109 * configure.tgt: Document need for special "mipsisa64" handling.
1110 (mipsisa64*-*-linux64): Handle as target linux64.
1111 (mipsisa64*-*-*): Handle as target embed64.
1112
1113 2003-08-18 Michael Chastain <mec@shout.net>
1114
1115 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1116 objfile bug.
1117
1118 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1119
1120 * i387-tdep.h: Update copyright date.
1121 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1122
1123 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1124 CFLAGS games to reflect reality.
1125
1126 2003-08-24 Andrew Cagney <cagney@redhat.com>
1127
1128 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1129 GDB_MULTI_ARCH is always non-zero.
1130 * osabi.c (_initialize_gdb_osabi): Ditto.
1131 (gdbarch_init_osabi): Ditto.
1132 * sparc-tdep.c: Ditto for #if code.
1133
1134 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1135
1136 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1137 Update comments.
1138 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1139 comments.
1140 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1141 x86_64_supply_fxsave.
1142 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1143 x86_64_supply_fxsave.
1144 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1145 x86_64_supply_fxsave.
1146
1147 2003-08-23 Andreas Jaeger <aj@suse.de>
1148
1149 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1150 i387_supply_fxsave.
1151
1152 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1153
1154 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1155 i387_supply_register.
1156 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1157 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1158 i387_supply_fsave.
1159 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1160 i387_supply_fxsave.
1161 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1162 i387_supply_fsave.
1163 * i386bsd-nat.c (supply_fpregset): Adjust call to
1164 i387_supply_fsave.
1165 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1166 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1167 supply_fpregset.
1168 (store_inferior_registers): Remove extraneous whitespace. Call
1169 i387_fill_fsave instead of fill_fpregset.
1170 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1171 (supply_fpregset): Likewise.
1172 * i386v4-nat.c (supply_fpregset): Adjust call to
1173 i387_supply_fsave.
1174 * i386-interix-nat.c (supply_fpregset): Adjust call to
1175 i387_supply_fsave.
1176 * i386-linux-nat.c (supply_fpregset): Adjust call to
1177 i387_supply_fsave.
1178 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1179 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1180 i387supply_fsave and i387_supply_fxsave.
1181 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1182 Incorporate code from `i387_supply_register.
1183 (i387_supply_register): Remove.
1184 (i387_supply_fxsave): Add `regnum' argument.
1185 Update comments.
1186 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1187 prototype.
1188 (i387_supply_register): remove prototype.
1189 Update comments.
1190
1191 2003-08-22 Michael Chastain <mec@shout.net>
1192
1193 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1194 Add lines for files in gdb/testsuite/gdb.cp/* that are
1195 still not 8.3 unique.
1196
1197 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1198
1199 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1200 TYPE_VPTR_FIELDNO is valid.
1201
1202 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1203
1204 * utils.c (set_width_command): Remove prototypes.
1205 (set_screen_size): New prototype.
1206 (init_page_info): Simplify by fetching the screen size from
1207 Readline. Call set_screen_size.
1208 (set_screen_size): New function.
1209 (set_width): Add missing whitespace in comment.
1210 (set_width_command): Call set_screen_size.
1211 (set_height_command): New function.
1212 (initialize_utils): Fix formatting. Make "set height" command
1213 call set_height_command. Remove redundant code that turns off
1214 pagination if output isn't a terminal. Remove redundant call to
1215 set_width_command.
1216
1217 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1218
1219 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1220 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1221 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1222 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1223 `case' keyword.
1224 (sparc64_register_info): Give the reister with number
1225 SPARC64_STATE_REGNUM a name.
1226 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1227 %asi and %ccr.
1228 (sparc64_push_dummy_call): Take BIAS into account when checking
1229 stcak alignment.
1230 (sparc_software_single_step): Remove assertions that check whether
1231 NPC and NNPC were zero.
1232 (sparc_supply_rwindow): Make public. Merge functionality with
1233 sparc64_supply_rwindow.
1234 (sparc_fill_rwindow): Make public. Merge functionality with
1235 sparc64_fill_rwindow.
1236 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1237 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1238 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1239 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1240 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1241
1242 * reggroups.c: Add whitespace after declarations of local
1243 variables in functions.
1244
1245 2003-08-21 Michael Chastain <mec@shout.net>
1246
1247 * gdbtypes.h: Change array bound type from an int to enum.
1248
1249 2003-08-21 Andrew Cagney <cagney@redhat.com>
1250
1251 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1252 * config/sparc/tm-sparc.h: Ditto.
1253 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1254 unconditionally.
1255 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1256
1257 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1258
1259 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1260 (register_objfile_data, set_objfile_data, objfile_data): New
1261 prototypes.
1262 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1263 prototypes.
1264 (allocate_objfile): Call objfile_alloc_data.
1265 (free_objfile): Call objfile_free_data.
1266 (struct objfile_data): New.
1267 (struct objfile_data_registration): New.
1268 (struct objfile_data_registry): New.
1269 (objfile_data_registry): New variable.
1270 (register_objfile_data): New function.
1271 (objfile_alloc_data, objfile_free_data): New functions.
1272 (set_objfile_data, objfile_data): New functions.
1273 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1274 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1275 (_initialize_dwarf2_frame): New function and prototype.
1276
1277 2003-08-21 Andrew Cagney <cagney@redhat.com>
1278
1279 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1280 a specific architecture.
1281 * arch-utils.h (set_architecture_from_arch_mach): Delete
1282 declaration.
1283 (target_architecture_hook): Delete declaration.
1284 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1285 (default_float_format): Assume GDB_MULTI_ARCH.
1286 (default_double_format): Assume GDB_MULTI_ARCH.
1287 (set_endian_from_file): Delete function.
1288 (arch_ok): Delete function.
1289 (set_arch): Delete function.
1290 (set_architecture_from_arch_mach): Delete function.
1291 (set_architecture_from_file): Delete function.
1292 (set_architecture): Assume GDB_MULTI_ARCH.
1293 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1294
1295 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1296
1297 Rewrite FreeBSD/sparc64 native configuration.
1298 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1299 * sparc64fbsd-nat.c: New file.
1300 * sparc64fbsd-tdep.c: New file.
1301 * sparc64-tdep.c sparc64-tdep.h: New files.
1302 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1303 sparc64fbsd-tdep.o): New dependencies.
1304 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1305 and sparc64fbsd-tdep.c.
1306 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1307 * config/sparc/fbsd.mh: Remove copyright notice.
1308 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1309 sparcbsd-nat.o.
1310 * config/sparc/fbsd.mt: Remove copyright notice.
1311 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1312 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1313 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1314 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1315 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1316 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1317 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1318 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1319 "sparc/tm-sp64.h".
1320 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1321 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1322
1323 2003-08-21 Michael Chastain <mec@shout.net>
1324
1325 * symtab.h: Add doco on the space critical structures and
1326 some measurements of space usage.
1327
1328 2003-08-21 Michael Snyder <msnyder@redhat.com>
1329
1330 * tracepoint.c (trace_dump_command): Trace break address
1331 is subject to DECR_PC_AFTER_BREAK.
1332 (set_traceframe_context): Make "trace_line" an int.
1333 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1334
1335 2003-08-20 Michael Snyder <msnyder@redhat.com>
1336
1337 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1338 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1339 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1340 argument passing.
1341 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1342 functions, replace sh_push_dummy_call.
1343 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1344
1345 2003-08-20 Michael Chastain <mec@shout.net>
1346
1347 * gdbtypes.h (struct main_type): Rearrange to save space.
1348
1349 2003-08-20 Michael Snyder <msnyder@redhat.com>
1350
1351 * trad-frame.c: Comment typo fix.
1352
1353 2003-08-20 Michael Snyder <msnyder@redhat.com>
1354 Kevin Buettner <kevinb@redhat.com>
1355
1356 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1357 (frv_frame_init_saved_regs): Add declaration.
1358 (frame_extra_info): Add new field ``saved_regs''.
1359 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1360 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1361 Update frame related code.
1362 (frv_extract_struct_value_address): Adjust formatting.
1363 * Makefile.in (frv-tdep.o): Update dependencies.
1364 * config/frv/tm-frv.h (target_insert_watchpoint)
1365 (target_remove_watchpoint, target_insert_hw_breakpoint)
1366 (target_remove_hw_breakpoint): Delete these macros.
1367 (remote_insert_watchpoint, remote_remove_watchpoint)
1368 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1369 these declarations.
1370
1371 2003-08-20 Michael Chastain <mec@shout.net>
1372
1373 * defs.h (ENUM_BITFIELD): New macro.
1374 * symtab.h (ENUM_BITFIELD): Use it.
1375 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1376
1377 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1378
1379 * MAINTAINERS (write after approval): Add myself.
1380
1381 2003-08-18 Andrew Cagney <cagney@redhat.com>
1382
1383 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1384 * gdbarch.h, gdbarch.c: Re-generate.
1385 * infcall.c (call_function_by_hand): Adjust the SP by
1386 frame_red_zone_size before allocating any stack space.
1387 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1388 * x86-64-tdep.c (x86_64_frame_align): New function.
1389 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1390
1391 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1392 Remove code adjusting SP so that it skips over the Red Zone.
1393
1394 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1395
1396 * NEWS (New native configurations): Mention FreeBSD/amd64.
1397
1398 2003-08-18 Andrew Cagney <cagney@redhat.com>
1399
1400 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1401 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1402 "m68k_frame_p".
1403 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1404
1405 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1406
1407 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1408
1409 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1410
1411 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1412 Define.
1413 * i386-linux-nat.c: Include "linux-nat.h".
1414 (child_post_startup_inferior): New function.
1415
1416 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1417
1418 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1419 at the start of a frameless function. This probably fixes PR
1420 backtrace/1338.
1421
1422 2003-08-17 Michael Chastain <mec@shout.net>
1423
1424 * symfile.c (find_sym_fns): Remove special case for apollo target.
1425
1426 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1427
1428 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1429 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1430 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1431 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1432 (linux_supports_tracevforkdone): New function.
1433 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1434 TRACEVFORKDONE.
1435 (child_follow_fork): Handle vfork.
1436 (linux_handle_extended_wait): Likewise. Also handle exec.
1437 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1438 * NEWS: Mention fork tracing.
1439
1440 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1441
1442 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1443
1444 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1445
1446 * Makefile.in (i386-linux-nat.o): Update dependencies.
1447 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1448 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1449 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1450 * i386-linux-nat.c: Include "linux-nat.h".
1451 (child_post_startup_inferior): New function.
1452 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1453 * infptrace.c (kill_inferior): Wrap in #ifdef.
1454 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1455 attaching to each LWP.
1456 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1457 (init_lin_lwp_ops): Fill in some more operations.
1458 * linux-nat.h (linux_enable_event_reporting)
1459 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1460 prototypes.
1461 * linux-nat.c (linux_enable_event_reporting): New function.
1462 (child_post_attach, linux_child_post_startup_inferior)
1463 (child_post_startup_inferior, child_follow_fork)
1464 (linux_handle_extended_wait, kill_inferior): New functions.
1465
1466 2003-08-16 Andrew Cagney <cagney@redhat.com>
1467
1468 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1469 * gdbarch.h, gdbarch.c: Re-generate.
1470
1471 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1472
1473 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1474
1475 2003-08-16 Andrew Cagney <cagney@redhat.com>
1476
1477 * NEWS: Mention that "set prompt-escape-char" was deleted.
1478 * top.c (get_prompt_1): Delete function.
1479 (gdb_prompt_escape):
1480 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1481 prompt-escape-char" command.
1482 (MAX_PROMPT_SIZE): Delete macro.
1483 (get_prompt): Simplify, do not call get_prompt_1.
1484
1485 2003-08-16 Andrew Cagney <cagney@redhat.com>
1486
1487 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1488 -Werror. -Wformat-nonliteral problems.
1489
1490 2003-08-15 J. Brobecker <brobecker@gnat.com>
1491
1492 Further multiarching work mostly for hppa64-*-hpux11:
1493 * hppa-tdep.h: New file.
1494 * hppa-tdep.c: #include hppa-tdep.c.
1495 (hppa32_num_regs): Renamed from hppa_num_regs.
1496 (hppa64_num_regs): New constant.
1497 (hppa64_call_dummy_breakpoint_offset): New constant.
1498 (hppa32_call_dummy_length): New constant.
1499 (hppa64_call_dummy_length): New constant.
1500 (hppa32_stack_align): Make name 32bit explicit.
1501 (hppa32_register_virtual_type): Likewise.
1502 (hppa32_extract_return_value): Likewise.
1503 (hppa32_use_struct_convention): Likewise.
1504 (hppa32_store_return_value): Likewise.
1505 (hppa64_register_virtual_type): New function.
1506 (hppa64_extract_return_value): New function.
1507 (hppa64_use_struct_convention): New function.
1508 (hppa64_store_return_value): New function.
1509 (hppa_frame_locals_address): Remove declaration, function does
1510 not exist anymore.
1511 (hppa_register_byte): Add support for PA64 ABI.
1512 (hppa_gdbarch_init): Add support for PA64 ABI.
1513 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1514 Make name 32bit explicit.
1515 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1516 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1517 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1518 (hppa64_hpux_frame_base_before_sigtramp): New function.
1519 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1520 * config/pa/tm-hppa64.h: Remove macros that are no longer
1521 necessary now that the gdbarch vector is properly setup.
1522 Transform some macros into function calls. Some minor cleanup.
1523 * config/pa/tm-hppah.h: Update function calls in macros
1524 following the function renaming in hppa-hpux-tdep.c.
1525 * Makefile.in (hppa_tdep_h): New variable.
1526 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1527
1528 2003-08-14 Michael Snyder <msnyder@redhat.com>
1529
1530 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1531
1532 2003-08-13 J. Brobecker <brobecker@gnat.com>
1533
1534 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1535 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1536 routine.
1537
1538 2003-08-13 Michael Snyder <msnyder@redhat.com>
1539
1540 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1541 (frv_saved_pc_after_call): Use deprecated ftype.
1542 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1543 (frv_remote_translate_xfer_address): Remove.
1544 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1545
1546 2003-08-13 J. Brobecker <brobecker@gnat.com>
1547
1548 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1549 initialization after the common gdbarch initialization, not before.
1550
1551 2003-08-13 J. Brobecker <brobecker@gnat.com>
1552
1553 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1554 (ADDR_BITS_REMOVE): Remove, redundant.
1555
1556 2003-08-13 J. Brobecker <brobecker@gnat.com>
1557
1558 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1559 gdbarch method to clear the 2 low bits of text addresses.
1560
1561 2003-08-12 Andrew Cagney <cagney@redhat.com>
1562
1563 * Makefile.in (dsrec.o): Update dependencies.
1564 * dsrec.c: Include "gdb_assert.h".
1565 (make_srec): Use snprintf instead of sprintf, use a literal format
1566 string.
1567
1568 2003-08-12 Andrew Cagney <cagney@redhat.com>
1569
1570 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1571 FRAME_OBSTACK_ZALLOC.
1572
1573 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1574
1575 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1576 SSE registers.
1577
1578 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1579
1580 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1581 amd64fbsd_sc_reg_offset): Add extern declarations.
1582 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1583 declarations.
1584
1585 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1586
1587 * MAINTAINERS (write after approval): Update my mail address.
1588
1589 2003-08-10 Andrew Cagney <cagney@redhat.com>
1590
1591 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1592
1593 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1594
1595 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1596 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1597 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1598 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1599 i386bsd_sc_reg_offset): Add extern declarations.
1600 * i386obsd-nat.c: Include "i386-tdep.h"
1601 (_initialize_i386obsd_nat): Remove extern declarations.
1602 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1603 declarations.
1604 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1605 declarations.
1606
1607 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1608 instead of frame_read_register.
1609 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1610 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1611 SP_REGNUM.
1612 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1613 instead of frame_unwind_unsigned_register. Use
1614 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1615 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1616 instead of read_register. Use builtin_type_void_data_ptr instead
1617 of builtin_type_void_func_ptr when extracting the address of the
1618 jmp_buf.
1619 (i386_extract_return_value, i386_store_return_value,
1620 i386_pseudo_register_read, i386_pseudo_register_write): Use
1621 register_size instead REGISTER_RAW_SIZE.
1622
1623 2003-08-10 Andrew Cagney <cagney@redhat.com>
1624
1625 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1626 sprintf. Make "name" constant.
1627
1628 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1629
1630 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1631 instead of frame_read_register.
1632 (i387_print_float_info): Use get_frame_register and
1633 get_frame_register_unsigned instead of frame_register_read.
1634
1635 * i386fbsd-nat.c: Include "i386-tdep.h".
1636 (child_resume): Make `eflags' an ULONGEST. Use
1637 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1638 instead of register_read and register_write.
1639
1640 * i386bsd-nat.c (fetch_inferior_registers,
1641 store_inferior_registers): Don't use && at the end of a line.
1642 (_initialize_i386bsd_nat): Fix typo.
1643
1644 * frame.c (_initialize_frame): Add missing backslash.
1645
1646 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1647 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1648 and supply_register instead of manipulating the register buffer
1649 directly.
1650
1651 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1652 * config/i386/nm-i386sol2.h
1653 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1654
1655 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1656 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1657 instructions that GCC likes to mingle into the prologue. Fixes
1658 gdb/1253 and gdb/1255.
1659
1660 2003-08-09 Andrew Cagney <cagney@redhat.com>
1661
1662 Fix GDB PR cli/926.
1663 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1664 * command.h (add_setshow_uinteger_cmd): Declare.
1665 * frame.c (set_backtrace_cmd): New function.
1666 (show_backtrace_cmd): New function.
1667 * frame.c (_initialize_frame): Replace "set/show
1668 backtrace-below-main" with "set/show backtrace past-main". Add
1669 command "set/show backtrace limit".
1670 (backtrace_past_main): Rename "backtrace_below_main".
1671 (backtrace_limit): New variable.
1672 (get_prev_frame): Update. Check the backtrace_limit.
1673
1674 2003-08-09 Andrew Cagney <cagney@redhat.com>
1675
1676 * defs.h (xstrprintf): Declare.
1677 * utils.c (xstrprintf): New function.
1678 * breakpoint.c (insert_breakpoints): Replace sprintf and
1679 non-literal format strings, with xstrprintf and cleanups.
1680 (delete_breakpoint,breakpoint_re_set): Ditto.
1681 (commands_command, insert_breakpoints): Ditto.
1682 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1683 (break_at_finish_command_1): Ditto.
1684
1685 2003-08-09 Andrew Cagney <cagney@redhat.com>
1686
1687 * MAINTAINERS (language support): List Adam Fedor as Objective C
1688 maintainer.
1689
1690 2003-08-08 J. Brobecker <brobecker@gnat.com>
1691
1692 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1693 are now multiarched.
1694
1695 2003-08-08 J. Brobecker <brobecker@gnat.com>
1696
1697 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1698 longer necessary now that hppa64 is partially multiarch'ed.
1699
1700 2003-08-08 Andrew Cagney <cagney@redhat.com>
1701
1702 * interps.c (interp_set): Check for a NULL "old_interp".
1703
1704 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1705
1706 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1707 (install-only): Support DESTDIR.
1708 (uninstall): Likewise.
1709 (install-gdbtk): Likewise.
1710
1711 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1712
1713 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1714 contains something meaningful at all times.
1715
1716 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1717
1718 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1719
1720 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1721
1722 * MAINTAINERS (write after approval): Added self.
1723
1724 2003-08-07 Andrew Cagney <cagney@redhat.com>
1725
1726 * inferior.h (AT_SYMBOL): Define.
1727 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1728 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1729 * mips-tdep.c (mips_call_dummy_address): Delete function.
1730 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1731 set call_dummy_address.
1732
1733 2003-08-07 Andrew Cagney <cagney@redhat.com>
1734
1735 * language.c (op_error): Delete function.
1736 (binop_type_check): Delete function.
1737 * language.h (type_op_error, range_op_error): Delete macros.
1738 (op_error): Delete declaration.
1739
1740 2003-08-07 Andrew Cagney <cagney@redhat.com>
1741
1742 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1743
1744 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1745
1746 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1747 (x86_64_push_arguments): Skip the red zone.
1748
1749 2003-08-05 Andrew Cagney <cagney@redhat.com>
1750
1751 * reggroups.c (reggroup_next): Check for the final entry.
1752
1753 2003-08-04 Andrew Cagney <cagney@redhat.com>
1754
1755 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1756 * cli/cli-script.c (define_command): Call query directly, instead
1757 of passing it a buffer.
1758 * ocd.c (ocd_error): Pass error a constant format string.
1759 * remote-mips.c (mips_error): Use fputs_filtered.
1760
1761 * solib-svr4.c (_initialize_svr4_solib): Update
1762 register_gdbarch_data call.
1763 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1764
1765 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1766 (register_gdbarch_data): Delete "free" parameter. Update
1767 comments.
1768 * gdbarch.h, gdbarch.c: Re-generate.
1769 * reggroups.c (_initialize_reggroup): Update.
1770 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1771 * frame-base.c (_initialize_frame_base): Update.
1772 * frame-unwind.c (_initialize_frame_unwind): Update.
1773 * user-regs.c (_initialize_user_regs): Update.
1774 * remote.c (_initialize_remote): Update.
1775 * regcache.c (_initialize_regcache): Update.
1776
1777 * regcache.c (xfree_regcache_descr): Delete function.
1778 (_initialize_regcache): Update call to register_gdbarch_data.
1779 (init_regcache_descr, init_legacy_regcache_descr): Use
1780 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1781
1782 * remote.c (free_remote_state): Delete function.
1783 (_initialize_remote): Update register_gdbarch_data.
1784 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1785 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1786
1787 2003-08-04 Andrew Cagney <cagney@redhat.com>
1788
1789 * reggroups.c (struct reggroup_el): Define.
1790 (struct reggroups): Delete field "nr_group". Replace array
1791 "group" with a "first" to "last" linked list.
1792 (reggroups_init): Update. Allocate using gdbarch's obstack.
1793 (reggroups_free): Delete function.
1794 (add_group): Update. Add "el" parameter.
1795 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1796 (default_groups): Update.
1797 (reggroup_next): Replace reggroups.
1798 (reggroups_dump): Update.
1799 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1800 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1801 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1802
1803 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1804
1805 * Makefile.in (tui-interp.o): Update dependencies.
1806
1807 2003-08-04 David Carlton <carlton@kealia.com>
1808
1809 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1810 to internal_error call.
1811 * source.c (forward_search_command): Add "%s" format argument.
1812 (reverse_search_command): Ditto.
1813 * top.c (quit_confirm): Ditto.
1814 * cli/cli-setshow.c (do_setshow_command): Ditto.
1815 * cp-valprint.c (cp_print_class_method): Replace
1816 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1817 (cp_print_class_member): Ditto.
1818 * event-top.c (command_line_handler): Ditto.
1819 * linux-proc.c (linux_info_proc_cmd): Ditto.
1820 * p-typeprint.c (pascal_type_print_base): Ditto.
1821 * p-valprint.c (pascal_object_print_class_method): Ditto.
1822 (pascal_object_print_class_member): Ditto.
1823 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1824 * remote.c (remote_cisco_section_offsets): Ditto.
1825 * top.c (command_line_input): Ditto.
1826 * utils.c (vwarning,error_stream,quit): Ditto.
1827 * valprint.c (print_floating,print_binary_chars)
1828 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1829
1830 2003-08-04 Andrew Cagney <cagney@redhat.com>
1831
1832 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1833
1834 2003-08-02 Andrew Cagney <cagney@redhat.com>
1835
1836 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1837 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1838 amd64fbsd-nat.c.
1839
1840 2003-08-02 Andrew Cagney <cagney@redhat.com>
1841
1842 * Makefile.in: Update all dependencies and definitions.
1843
1844 2003-08-02 Adam Fedor <fedor@gnu.org>
1845
1846 * linespec.c (is_objc_method_format): New function
1847 (decode_line_1, locate_first_half): Use it.
1848 Fixes PR objc/1298
1849
1850 2003-08-01 Andrew Cagney <cagney@redhat.com>
1851
1852 * NEWS: Mention that m32r is multi-arch.
1853 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1854 * configure.tgt: Recognize m32r-*-*.
1855 * config/m32r/tm-m32r.h: Delete file.
1856 * config/m32r/m32r.mt: New file.
1857 * m32r-rom.c (m32r_upload_command): Use hostent only when
1858 gethostname succeeds, in order to avoid a compilation
1859 warning.
1860 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1861 compiler warning.
1862
1863 2003-08-01 Michael Snyder <msnyder@redhat.com>
1864
1865 * sh-tdep.c (sh_frame_align): New gdbarch method.
1866 (sh_gdbarch_init): Set up frame_align method.
1867
1868 2003-07-31 Michael Snyder <msnyder@redhat.com>
1869
1870 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1871 which is already covered by the new frames infrastructure.
1872
1873 2003-07-31 Andrew Cagney <cagney@redhat.com>
1874
1875 * user-regs.c (struct user_reg): Add "next" link.
1876 (struct user_regs): Replace "user" with "first" and "last" links.
1877 (append_user_reg): Add pre-allocated "reg" parameter.
1878 (builtin_user_regs): Provide initial value for "last".
1879 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1880 (user_regs_init): Allocate memory from the gdbarch obstack.
1881 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1882 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1883 linked list.
1884 (usernum_to_user_reg): New function.
1885 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1886 (value_of_user_reg): Use usernum_to_user_reg.
1887 (user_regs_free): Delete function.
1888 (_initialize_user_regs): Update register_gdbarch_data call.
1889
1890 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1891
1892 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1893
1894 2003-07-30 Michael Snyder <msnyder@redhat.com>
1895
1896 * value.h (value_being_returned): Add a struct_addr argument.
1897 * infcall.c (call_function_by_hand): Pass struct_addr to
1898 value_being_returned.
1899 * infcmd.c (print_return_value): Pass zero as struct_addr.
1900 * values.c (value_being_returned): If struct_addr is passed,
1901 use it instead of trying to recover it from the inferior.
1902
1903 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1904
1905 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1906 the prologue analyzer won't need to attempt to extract the pc
1907 value from the woefully incomplete dummy frame.
1908 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1909 possible. Disable code which modifies the frame.
1910
1911 2003-07-28 Andrew Cagney <cagney@redhat.com>
1912
1913 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1914 to level 2.
1915 (annotate_breakpoints_table, annotate_record): Ditto.
1916 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1917 (annotate_field_name_end, annotate_field_value): Ditto.
1918 (annotate_field_end, annotate_frame_source_begin): Ditto.
1919 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1920 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1921 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1922 (annotate_frame_address_end, annotate_frame_address): Ditto.
1923 (annotate_frame_args, annotate_frame_end): Ditto.
1924 (annotate_frame_where, annotate_arg_begin): Ditto.
1925 (annotate_arg_name_end, annotate_arg_value): Ditto.
1926 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1927 (annotate_function_call, annotate_signal_name): Ditto.
1928 (annotate_signal_string, annotate_signal_name_end): Ditto.
1929 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1930 (annotate_value_begin, annotate_value_history_value): Ditto.
1931 (annotate_value_history_end, annotate_value_end): Ditto.
1932 (annotate_display_begin, annotate_display_number_end): Ditto.
1933 (annotate_display_format, annotate_display_expression): Ditto.
1934 (annotate_display_expression_end, annotate_display_value): Ditto.
1935 (annotate_display_end, annotate_array_section_begin): Ditto.
1936 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1937 (annotate_elt, annotate_array_section_end): Ditto.
1938
1939 2003-07-28 Andrew Cagney <cagney@redhat.com>
1940
1941 * regcache.c (struct regcache_descr): Update comments on
1942 nr_raw_registers.
1943 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1944 sizeof_raw_register_valid_p.
1945 (init_regcache_descr): Set nr_raw_registers and
1946 sizeof_raw_register_valid_p before calling
1947 init_legacy_regcache_descr.
1948
1949 2003-07-28 Andrew Cagney <cagney@redhat.com>
1950
1951 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1952 MOD NUM_REGS.
1953
1954 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1955
1956 * thread.c (info_threads_command): Use get_selected_frame ().
1957 Check that there is at least one non-sentinel frame.
1958
1959 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1960
1961 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1962 (m68hc11_pop_frame): Remove.
1963 (m68hc11_frame_saved_pc): Remove.
1964 (m68hc11_frame_chain): Remove.
1965 (m68hc11_frame_init_saved_regs): Remove.
1966 (m68hc11_init_extra_frame_info): Remove.
1967 (m68hc11_store_struct_return): Remove.
1968 (m68hc11_saved_pc_after_call): Remove.
1969
1970 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1971
1972 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1973 frame unwind information.
1974 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1975 and adapted for frame unwinding.
1976 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1977 (m68hc11_unwind_pc): New function.
1978 (m68hc11_frame_unwind_cache): New function to analyze frames.
1979 (m68hc11_frame_this_id): New function to create new frame struct.
1980 (m68hc11_frame_prev_register): New function to unwind a register from
1981 the frame.
1982 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1983 (m68hc11_frame_p): New function for the above.
1984 (m68hc11_frame_base_address): New function to return fp of frame.
1985 (m68hc11_frame_args_address): Update for frame.
1986 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1987 (m68hc11_unwind_sp): New function.
1988 (m68hc11_unwind_dummy_id): New function.
1989 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1990 calls.
1991
1992 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1993
1994 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1995 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1996 when we are beyond the current pc.
1997
1998 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1999
2000 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2001 from m68hc11_push_arguments.
2002 (m68hc11_push_arguments): Remove.
2003 (m68hc11_push_return_address): Remove.
2004 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2005 handlers; remove deprecated_extra_stack_alignment_needed.
2006
2007 2003-07-27 Andrew Cagney <cagney@redhat.com>
2008
2009 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2010 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2011 REAL_PC and not the pointer.
2012 * hppa-hpux-tdep.c: Include frame.h
2013
2014 2003-07-27 Andrew Cagney <cagney@redhat.com>
2015
2016 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2017 GDB_MULTI_ACH_PARTIAL.
2018
2019 2003-07-27 Andrew Cagney <cagney@redhat.com>
2020
2021 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2022 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2023 operator at start and not end of line.
2024 (decode_prologue): Ditto.
2025 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2026 frame_unwind_register_unsigned instead of
2027 frame_unwind_unsigned_register.
2028 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2029 read_register.
2030 (m32r_push_dummy_call): Use register_size instead of
2031 REGISTER_RAW_SIZE.
2032 (m32r_frame_sniffer): Replace m32r_frame_p.
2033 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2034 * m32r-rom.c (report_transfer_performance): Delete extern
2035 declaration.
2036 (m32r_load, m32r_upload_command): Use print_transfer_performance
2037 instead of report_transfer_performance.
2038 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2039 / add_show_from_set.
2040
2041 2003-07-26 Andrew Cagney <cagney@redhat.com>
2042
2043 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2044 store_return_value and extract_struct_value_address.
2045
2046 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2047
2048 PR c++/1267
2049 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2050 NULL, default to the section containing PC.
2051
2052 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2053
2054 * NEWS: Mention "regs" deprecated for m68hc11 too.
2055
2056 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2057 (m68hc11_print_register): New function to print out one register.
2058 (m68hc11_print_registers_info): New function to print registers.
2059 (show_regs): Deprecate and use the above.
2060 (m68hc11_gdbarch_init): Install the print_registers_info.
2061
2062 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2063
2064 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2065 that we have a SIGTRAP before returning non-zero.
2066
2067 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2068 Elena Zannoni <ezannoni@redhat.com>
2069
2070 * linespec.c (decode_line_2): Avoid crash if
2071 find_function_start_sal() returns empty record.
2072
2073 2003-07-23 Andreas Schwab <schwab@suse.de>
2074
2075 * ia64-tdep.c (ia64_print_insn): New function.
2076 (ia64_gdbarch_init): Set print_insn to it.
2077 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2078 deprecated_tm_print_insn_info.
2079
2080 2003-07-22 Michael Snyder <msnyder@redhat.com>
2081
2082 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2083 handle 8-bit returns (long long).
2084 (h8300h_extract_return_value): Ditto.
2085 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2086
2087 2003-07-22 Andrew Cagney <cagney@redhat.com>
2088
2089 * gdbarch.c Include "gdb_obstack.h".
2090 (struct gdbarch): Add an "obstack".
2091 (alloc_gdbarch_data): Allocate the gdbarch data using
2092 GDBARCH_OBSTACK_CALLOC.
2093 (free_gdbarch_data): Delete function.
2094 (gdbarch_obstack_zalloc): New function.
2095 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2096 Assert that the architecture is not initialized.
2097 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2098 vector from the obstack.
2099 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2100 architecture obstack.
2101 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2102 (set_gdbarch_data): Assert that the data is not initialized.
2103 (struct gdbarch_data): Delete member "free".
2104 (register_gdbarch_data): Do not initialize "free".
2105 * gdbarch.h, gdbarch.c: Re-generate.
2106
2107 2003-07-22 Andrew Cagney <cagney@redhat.com>
2108
2109 * configure.in (build_warnings): Add -Wformat-nonliteral.
2110 * configure: Re-generate.
2111
2112 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2113
2114 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2115
2116 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2117
2118 * findvar.c (read_var_value): Remove case for thread local storage
2119 variables. It is now entirely handled by the dwarf2 location
2120 expression code.
2121 * printcmd.c (address_info): Ditto.
2122 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2123 enumeration value.
2124 (struct symbol): Remove objfile field, which was used by
2125 LOC_THREAD_LOCAL_STATIC only.
2126 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2127 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2128 usage of objfile pointer.
2129 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2130 thread local variables.
2131 Add include of objfiles.h.
2132 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2133 storage variables.
2134 * Makefile.in (dwarf2loc.o): Update dependencies.
2135
2136 2003-07-22 Andrew Cagney <cagney@redhat.com>
2137
2138 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2139 get_frame_base.
2140 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2141 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2142 (struct value): Add opaque declaration.
2143 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2144
2145 2003-07-21 Andrew Cagney <cagney@redhat.com>
2146
2147 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2148 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2149
2150 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2151
2152 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2153 regcache_cooked_read_unsigned instead of read_register.
2154 (m68hc11_saved_pc_after_call): Likewise.
2155 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2156 instead of write_register.
2157 (m68hc11_register_type): New function.
2158 (m68hc11_register_virtual_type): Remove.
2159 (m68hc11_store_return_value): Convert to use the regcache.
2160 (m68hc11_extract_struct_value_address): Likewise.
2161 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2162 m68hc11_register_type; undeprecate store_return_value and
2163 extract_struct_value_address.
2164
2165 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2166
2167 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2168 and translate to use regcache.
2169 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2170
2171 2003-07-18 Andrew Cagney <cagney@redhat.com>
2172
2173 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2174 * gdbarch.h, gdbarch.c: Re-generate.
2175 * i386-tdep.c (i386_gdbarch_init): Do not set
2176 DWARF2_BUILD_FRAME_INFO.
2177 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2178 unconditionally.
2179 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2180 DWARF2_BUILD_FRAME_INFO.
2181
2182 2003-07-18 Andrew Cagney <cagney@redhat.com>
2183
2184 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2185 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2186
2187 2003-07-18 Andrew Cagney <cagney@redhat.com>
2188
2189 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2190 frame_unwind_address_in_block, instead of frame_pc_unwind.
2191 (dwarf2_frame_cache): Ditto.
2192
2193 2003-07-18 Andrew Cagney <cagney@redhat.com>
2194
2195 * user-regs.h (struct gdbarch): Declare opaque.
2196 * ui-out.h (struct ui_file): Declare opaque.
2197 * dwarf2-frame.h (struct frame_info): Declare opaque.
2198
2199 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2200
2201 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2202 #include "...".
2203 (procfs_meminfo): Change strerror to safe_strerror.
2204 (procfs_can_run): Remove K&R badness.
2205
2206 2003-07-17 Michael Snyder <msnyder@redhat.com>
2207
2208 * remote-sim.c: Comment typo fix.
2209
2210 2003-07-17 Andrew Cagney <cagney@redhat.com>
2211
2212 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2213 configure.
2214 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2215 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2216 GDB_MULTI_ARCH_PARTIAL.
2217
2218 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2219
2220 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2221 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2222 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2223
2224 2003-07-16 Theodore A. Roth <troth@openavr.org>
2225
2226 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2227 found.
2228 (avr_frame_unwind_cache): Don't unwind FP for main.
2229 Update a comment.
2230 Save the computed prev_sp.
2231 (avr_saved_regs_unwinder): Remove function.
2232 (avr_frame_prev_register): Use PC unwind logic from
2233 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2234
2235 2003-07-16 Andrew Cagney <cagney@redhat.com>
2236
2237 * frame-base.h (frame_base_p_ftype): Delete definition.
2238 (frame_base_append_predicate): Delete declaration.
2239 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2240 (frame_unwind_append_predicate): Delete declaration.
2241 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2242 (append_predicate): Delete parameter "p".
2243 (frame_unwind_append_predicate): Delete function.
2244 (frame_unwind_append_sniffer): Update call to append_predicate.
2245 (frame_unwind_free): Delete function.
2246 (_initialize_frame_unwind): Pass NULL as "free" to
2247 register_gdbarch_data.
2248 (frame_unwind_init): Append the dummy_frame_sniffer.
2249 (frame_unwind_find_by_frame): Simplify.
2250 * frame-base.c (struct frame_base_table): Delete field "p".
2251 (append_predicate): Delete parameter "p".
2252 (frame_base_append_predicate): Delete function.
2253 (frame_base_append_sniffer): Update call to append_predicate.
2254 (frame_base_free): Delete function.
2255 (frame_base_find_by_frame): Simplify.
2256 (_initialize_frame_base): Pass NULL as "free" to
2257 register_gdbarch_data.
2258 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2259 (x86_64_sigtramp_frame_sniffer): Replace
2260 "x86_64_sigtramp_frame_p".
2261 (x86_64_init_abi): Set the frame unwind sniffers.
2262 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2263 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2264 (m68k_gdbarch_init): Set the frame unwind sniffers.
2265 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2266 "i386_sigtramp_frame_p".
2267 (i386_frame_sniffer): Replace "i386_frame_p".
2268 (i386_gdbarch_init): Set the frame unwind sniffers.
2269 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2270 (avr_gdbarch_init): Set the frame unwind sniffers.
2271 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2272 "alpha_sigtramp_frame_p"
2273 (alpha_heuristic_frame_sniffer): Replace
2274 "alpha_heuristic_frame_p".
2275 (alpha_gdbarch_init): Set the frame unwind sniffers.
2276 (alpha_dwarf2_init_abi): Ditto.
2277 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2278 "alpha_debug_frame_p".
2279 (alpha_mdebug_frame_base_sniffer): Replace
2280 "alpha_mdebug_frame_base_p".
2281 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2282 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2283 (d10v_gdbarch_init): Set the frame unwind sniffer.
2284 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2285 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2286 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2287 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2288 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2289 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2290
2291 2003-07-16 Michael Snyder <msnyder@redhat.com>
2292
2293 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2294 should go thru sh_dsp_register_sim_regno, else the dsp regs
2295 will not get the right values.
2296
2297 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2298
2299 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2300 deprecated_store_floating by call to store_typed_floating.
2301 (sh_sh4_register_convert_to_raw): Substitute call to
2302 deprecated_extract_floating by call to extract_typed_floating.
2303
2304 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2305
2306 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2307
2308 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2309
2310 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2311 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2312 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2313 as possible.
2314 (do_pseudo_register): Remove.
2315 (sh_push_dummy_code): New function.
2316 (sh64_store_struct_return): Rename from sh_store_struct_return.
2317 Only called for sh64 now.
2318 (sh_extract_struct_value_address): Regcache'ify.
2319 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2320 and accomodate new tasks.
2321 (sh64_push_return_address): Rename from sh_push_return_address.
2322 Only called for sh64 now.
2323 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2324 Regcache'ify.
2325 (sh3e_sh4_extract_return_value): Regcache'ify.
2326 (sh_default_store_return_value): Ditto.
2327 (sh3e_sh4_store_return_value): Ditto.
2328 (sh_default_register_byte): Remove.
2329 (sh_sh4_register_byte): Remove.
2330 (sh_default_register_raw_size): Remove.
2331 (sh_sh4_register_raw_size): Remove.
2332 (sh_register_virtual_size): Remove.
2333 (sh_sh3e_register_virtual_type): Remove.
2334 (sh_sh3e_register_type): New function.
2335 (sh_sh4_register_virtual_type): Remove.
2336 (sh_sh4_register_type): New function.
2337 (sh_default_register_virtual_type): Remove.
2338 (sh_default_register_type): New function.
2339 (do_fv_register_info): Add parameters to accomodate call from
2340 sh_print_registers_info.
2341 (do_dr_register_info): Ditto.
2342 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2343 Add parameters to accomodate call from sh_print_registers_info.
2344 (sh_do_fp_register): Ditto.
2345 (sh64_do_pseudo_register): Call do_dr_register_info,
2346 do_fv_register_info and sh_do_fp_register with default parameters.
2347 (sh_do_register): Add parameters to accomodate call from
2348 sh_print_registers_info.
2349 (sh_print_register): Ditto.
2350 (sh_print_registers_info): Rename from sh_do_registers_info.
2351 Add parameters to be used as gdbarch_print_registers_info
2352 implementation. Accomodate removed do_pseudo_register function
2353 pointer.
2354 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2355 function pointer. Call sh_print_register with default parameters.
2356 (sh64_do_registers_info): Call sh_print_registers_info instead of
2357 sh_do_registers_info.
2358 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2359 detection of deprecated vs. non-deprecated functionality.
2360 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2361 function pointer assignments by direct function calls.
2362
2363 2003-07-15 Andrew Cagney <cagney@redhat.com>
2364
2365 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2366 (frame_register_unwind, create_new_frame): Ditto.
2367 (legacy_get_prev_frame, get_frame_type): Ditto.
2368 (get_frame_base_address): Use frame_base_find_by_frame.
2369 (get_frame_locals_address): Use frame_base_find_by_frame.
2370 (get_frame_args_address): Use frame_base_find_by_frame.
2371 * frame-base.h (frame_base_sniffer_ftype): Declare.
2372 (frame_base_append_sniffer): Declare.
2373 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2374 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2375 (frame_base_append_sniffer): New function.
2376 (frame_base_append_predicate): Add a NULL sniffer.
2377 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2378 (struct frame_base_table): Add "sniffer".
2379 (frame_base_free): Free the "sniffer" table.
2380 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2381 (frame_unwind_append_sniffer): Declare.
2382 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2383 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2384 (struct frame_unwind_table): Add "sniffer", delete "middle".
2385 (append_predicate): Add "sniffer" parameter, append the sniffer.
2386 (frame_unwind_init): Update append_predicate call.
2387 (frame_unwind_append_sniffer): New function.
2388 (frame_unwind_append_predicate): Update append_predicate call.
2389 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2390
2391 2003-07-15 Andrew Cagney <cagney@redhat.com>
2392
2393 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2394 before code inhibiting repeated unwind attempts. Add to
2395 commentary on that test's problems.
2396 * blockframe.c (inside_main_func): Look for "main" in the minimal
2397 symbol table.
2398 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2399 identical.
2400
2401 2003-07-15 Andrew Cagney <cagney@redhat.com>
2402
2403 * complaints.c (struct explanation): Define.
2404 (struct complaints): Change type of "explanation" to "struct
2405 explanation".
2406 (symfile_explanations): Convert to a "struct explanation" table.
2407 (vcomplaint): Update.
2408
2409 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2410
2411 * x86-64-linux-nat.c (regmap): Removed.
2412 (supply_gregset, fill_gregset): Call
2413 x86_64_linux_(fill,supply)_gregset functions.
2414 * x86-64-linux-tdep.c (USER_*): New defines.
2415 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2416 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2417 New functions.
2418 (fetch_core_registers): Ditto.
2419 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2420 * x86-64-linux-tdep.h: New file.
2421 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2422 and core-regset.o.
2423 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2424
2425 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2426
2427 * x86-64-tdep.c (x86_64_store_return_value): Use
2428 regcache_cooked_write_part instead of regcache_cooked_write.
2429
2430 * configure.host: Add x86_64-*-freebsd*.
2431 * configure.tgt: Add x86_64-*-freebsd*.
2432 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2433 * amd64fbsd-nat.c: New file.
2434 * amd64fbsd-tdep.c: New file.
2435 * config/i386/nm-fbsd64.h: New file.
2436 * config/i386/fbsd64.mh: New file.
2437 * config/i386/fbsd64.mt: New file.
2438
2439 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2440
2441 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2442 `sc_regs_offset' and `sc_fpregs_offset'.
2443 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2444 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2445 (alpha_sigtramp_register_address): Rewrite to use new members of
2446 `struct gdbarch_tdep'.
2447 (alpha_gdbarch_init): Initialize new members of struct
2448 gdbarch_tdep'.
2449 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2450 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2451 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2452 (alphafbsd_pc_in_sigtramp): Implement.
2453 (alphafbsd_sigtramp_offset): New function.
2454 (alphafbsd_sigcontext_addr): New function.
2455 (alphafbsd_init_abi): Initialize signal trampoline related members
2456 of `struct gdbarch_tdep'.
2457 (_initialize_alphafbsd_tdep): Add prototype.
2458
2459 2003-07-11 Theodore A. Roth <troth@openavr.org>
2460
2461 * Makefile.in (install-only): Quote sed expression when generating
2462 transformed_name.
2463
2464 2003-07-11 Richard Henderson <rth@redhat.com>
2465
2466 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2467 * dwarf2-frame.c: Include complaints.h.
2468 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2469 variable initialization; return NULL on error.
2470 (decode_frame_entry): New.
2471
2472 2003-07-11 Andrew Cagney <cagney@redhat.com>
2473
2474 * frame.h (frame_address_in_block): Delete declaration.
2475 * blockframe.c (frame_address_in_block): Delete function.
2476 (get_frame_block): Use get_frame_address_in_block.
2477 (block_innermost_frame): Ditto.
2478 * stack.c (print_frame, backtrace_command_1): Ditto.
2479
2480 * frame.h (get_frame_address_in_block): Declare.
2481 (frame_unwind_address_in_block): Declare.
2482 * frame.c (frame_unwind_address_in_block): New function.
2483 (get_frame_address_in_block): New function.
2484
2485 2003-07-10 Andrew Cagney <cagney@redhat.com>
2486
2487 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2488 pre-default. Note: re-generate has no effect.
2489
2490 2003-07-10 Andrew Cagney <cagney@redhat.com>
2491
2492 * gdbarch.sh: When a variable, but not a function, compare against
2493 0. Fix problem in previous patch.
2494 * gdbarch.c: Re-generate.
2495
2496 2003-07-10 Andrew Cagney <cagney@redhat.com>
2497
2498 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2499 functions against NULL, not 0.
2500 * gdbarch.c: Re-generate.
2501
2502 2003-07-10 Fred Fish <fnf@ninemoons.com>
2503
2504 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2505 null string instead of a null pointer.
2506 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2507
2508 2003-07-09 Michael Snyder <msnyder@redhat.com>
2509
2510 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2511
2512 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2513
2514 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2515 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2516 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2517 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2518 * x86-64-tdep.c: ... from here.
2519
2520 2003-07-09 Andreas Schwab <schwab@suse.de>
2521
2522 * m68k-tdep.h (enum struct_return): Define.
2523 (struct gdbarch_tdep): Add struct_return.
2524 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2525 bytes are padded to the right, not to the left. Pass struct value
2526 address in register %a1, not on stack.
2527 (m68k_use_struct_convention): New function.
2528 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2529 struct_return in tdep to pcc_struct_return.
2530 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2531 reg_struct_return.
2532
2533 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2534
2535 * somread.c (som_symfile_offsets): Fix compilation error.
2536
2537 2003-07-09 Andrew Cagney <cagney@redhat.com>
2538
2539 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2540 Add comments about the checks.
2541
2542 2003-07-08 Andrew Cagney <cagney@redhat.com>
2543
2544 * Makefile.in: Make dependency section headers consistent.
2545 (config_h): Move to $BUILD headers section.
2546 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2547 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2548 (ada-exp.tab.c): Move to YACC/LEX section.
2549 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2550 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2551
2552 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2553
2554 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2555 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2556 of strerror with safe_strerror, use ISO C function definitions,
2557 and replace instances of sprintf with snprintf.
2558
2559 2003-07-07 Andrew Cagney <cagney@redhat.com>
2560
2561 * frame.c (get_prev_frame): Enable check for identical frames.
2562 Update comments. Update error messages.
2563
2564 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2565
2566 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2567
2568 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2569
2570 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2571 sort_symtab_syms, no longer necessary.
2572
2573 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2574
2575 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2576
2577 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2578
2579 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2580 (mips_register_byte): Likewise.
2581
2582 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2583
2584 * Makefile.in (sparc_tdep_h): New.
2585 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2586 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2587 * sparc-linux-nat.c: Include "sparc-tdep.h".
2588 * sparc-nat.c: Likewise.
2589 * sparc-tdep.c: Likewise.
2590 * sparc64nbsd-nat.c: Likewise.
2591 * sparcnbsd-nat.c: Likewise.
2592 * sparcnbsd-tdep.c: Likewise.
2593 * sparc-tdep.h: New file.
2594 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2595 and sparc_npc_regnum.
2596
2597 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2598
2599 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2600 (mips_linux_cannot_store_register): List supported instead of
2601 unsupported registers.
2602
2603 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2604
2605 * disasm.c (dump_insns): Separate instructions from addresses.
2606
2607 2003-07-07 Andreas Schwab <schwab@suse.de>
2608
2609 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2610 dependencies.
2611 * m68k-tdep.c (NUM_FREGS): Delete.
2612 (SIG_PC_FP_OFFSET): Delete.
2613 (TARGET_M68K): Delete.
2614 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2615 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2616 P_MOVEL_SP, P_MOVEML_SP): Define.
2617 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2618 P_TRAP): Delete.
2619 (m68k_register_raw_size): Delete.
2620 (m68k_register_virtual_size): Delete.
2621 (m68k_register_type): Renamed from m68k_register_virtual_type and
2622 add gdbarch argument.
2623 (m68k_store_struct_return): Delete.
2624 (m68k_deprecated_extract_return_value): Delete.
2625 (m68k_deprecated_extract_struct_value_address): Delete.
2626 (m68k_frame_chain): Delete.
2627 (m68k_frame_saved_pc): Delete.
2628 (m68k_fix_call_dummy): Delete.
2629 (m68k_push_dummy_frame): Delete.
2630 (m68k_pop_frame): Delete.
2631 (m68k_extract_return_value): New function.
2632 (m68k_store_return_value): Rewrite using regcache.
2633 (m68k_extract_struct_value_address): Rewrite using regcache.
2634 (m68k_push_dummy_call): New function.
2635 (struct m68k_frame_cache): Define.
2636 (m68k_alloc_frame_cache): New function.
2637 (m68k_analyze_frame_setup): New function.
2638 (m68k_analyze_register_saves): New function.
2639 (m68k_analyze_prologue): New function.
2640 (m68k_skip_prologue): Rewrite using above functions.
2641 (m68k_unwind_pc): New function.
2642 (m68k_frame_cache): New function.
2643 (m68k_frame_this_id): New function.
2644 (m68k_frame_prev_register): New function.
2645 (m68k_frame_unwind): New variable.
2646 (m68k_frame_p): New function.
2647 (m68k_sigtramp_frame_cache): New function.
2648 (m68k_sigtramp_frame_this_id): New function.
2649 (m68k_sigtramp_frame_prev_register): New function.
2650 (m68k_sigtramp_frame_unwind): New variable.
2651 (m68k_sigtramp_frame_p): New function.
2652 (m68k_frame_base_address): New function.
2653 (m68k_frame_base): New function.
2654 (m68k_unwind_dummy_id): New function.
2655 (fill_gregset): Use regcache_collect.
2656 (fill_fpregset): Likewise.
2657 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2658 defined.
2659 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2660 deprecated_init_frame_pc, deprecated_store_struct_return,
2661 deprecated_extract_return_value, deprecated_store_return_value,
2662 deprecated_frame_chain, deprecated_frame_saved_pc,
2663 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2664 deprecated_register_virtual_size,
2665 deprecated_max_register_raw_size,
2666 deprecated_max_register_virtual_size,
2667 deprecated_register_virtual_type, deprecated_register_size,
2668 deprecated_register_byte, deprecated_register_bytes,
2669 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2670 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2671 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2672 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2673 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2674 deprecated_push_dummy_frame, deprecated_pop_frame,
2675 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2676 only if SYSCALL_TRAP is defined. Set extract_return_value,
2677 store_return_value, extract_struct_value_address, register_type,
2678 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2679 predicates.
2680 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2681 M68K_MAX_REGISTER_SIZE): Define.
2682 (struct m68k_sigtramp_info): Define.
2683 (struct gdbarch_tdep): Add get_sigtramp_info.
2684 * m68klinux-nat.c (fetch_register): Use register_size instead of
2685 REGISTER_RAW_SIZE. Don't put assignment in if.
2686 (store_register): Likewise.
2687 (fetch_inferior_registers): Likewise.
2688 (store_inferior_registers): Likewise.
2689 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2690 (m68k_linux_frame_saved_pc): Delete.
2691 (m68k_linux_sigcontext_reg_offset,
2692 m68k_linux_ucontext_reg_offset): Define.
2693 (m68k_linux_get_sigtramp_info): New function.
2694 (m68k_linux_extract_return_value): Rewrite using regcache.
2695 (m68k_linux_store_return_value): Likewise.
2696 (m68k_linux_extract_struct_value_address): Likewise.
2697 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2698 Don't set deprecated_frame_saved_pc,
2699 deprecated_extract_return_value, deprecated_store_return_value,
2700 deprecated_extract_struct_value_address. Set
2701 extract_return_value, store_return_value,
2702 extract_struct_value_address.
2703
2704 2003-07-07 Andrew Cagney <cagney@redhat.com>
2705
2706 * expprint.c: Include "user-regs.h" instead of "frame.h".
2707 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2708 frame_map_regnum_to_name.
2709 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2710 (frame_map_name_to_regnum): Simplify, call
2711 user_reg_map_name_to_regnum.
2712 (frame_map_regnum_to_name): Simplify, call
2713 user_reg_map_regnum_to_name.
2714 (frame_register_unwind): Update.
2715 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2716 (_initialize_frame_reg): Call user_reg_add_builtin.
2717 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2718 (value_of_register): Use value_of_user_reg.
2719 * eval.c (evaluate_subexp_standard): Update.
2720 * parse.c (write_dollar_variable): Update.
2721 * d10v-tdep.c (d10v_print_registers_info): Update.
2722 * infcmd.c (registers_info): Update.
2723 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2724 (builtin_regs_h): Delete macro.
2725 (user_regs_h): Define.
2726 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2727 (builtin-regs.o): Delete target.
2728 (user-regs.o): Specify dependencies.
2729 (expprint.o): Update dependencies.
2730 (findvar.o): Update dependencies.
2731 (frame.o): Update dependencies.
2732 (std-regs.o): Update dependencies.
2733
2734 2003-07-06 Christopher Faylor <cgf@redhat.com>
2735
2736 * win32-nat.c (solib_symbols_add): Use one variable for all section
2737 address stuff. Pass variable rather than address of variable to
2738 safe_symbol_file_add.
2739
2740 2003-07-06 Andreas Schwab <schwab@suse.de>
2741
2742 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2743
2744 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2745
2746 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2747
2748 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2749
2750 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2751
2752 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2753
2754 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2755 * config/i386/nto.mh: New file.
2756 * config/i386/nm-nto.h: New file.
2757 * configure.host: Add i[3456]86-*-nto*.
2758
2759 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2760
2761 * remote-vx.c (vx_add_symbols): Fix compilation error.
2762
2763 2003-07-03 Andrew Cagney <cagney@redhat.com>
2764
2765 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2766 * gdbarch.h, gdbarch.c: Re-generate.
2767 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2768 (legacy_register_name): Declare.
2769 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2770 (REGISTER_NAME): Define.
2771 * sparc-tdep.c (legacy_register_name): New function.
2772 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2773 (REGISTER_NAME): Define.
2774 (hppa64_register_name): Declare.
2775 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2776 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2777 (hppa64_register_name): New function.
2778 (hppa_register_name): New function.
2779 * arch-utils.c (legacy_register_name): Delete.
2780 * arch-utils.h (legacy_register_name): Delete.
2781
2782 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2783
2784 * cli/cli-interp.c (cli_interpreter_resume): Update the
2785 cli_uiout's stream to gdb_stdout.
2786
2787 2003-07-03 Andrew Cagney <cagney@redhat.com>
2788
2789 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2790 predicate.
2791 * gdbarch.h, gdbarch.c: Re-generate.
2792 * regcache.c (init_regcache_descr): Use legacy code when either
2793 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2794
2795 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2796
2797 * NEWS: Move "set logging" entry into GDB 6.0 section.
2798
2799 2003-07-02 Jim Blandy <jimb@redhat.com>
2800
2801 * s390-tdep.c (struct frame_extra_info): new member:
2802 'stack_bought_valid'.
2803 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2804 initialize fextra_info->stack_bought.
2805 (s390_frameless_function_invocation): Don't trust the value of
2806 fextra_info_ptr->stack_bought unless
2807 fextra_info->stack_bought_valid is set.
2808
2809 New S390 prologue analyzer.
2810 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2811 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2812 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2813 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2814 compute_x_addr, s390_on_stack, s390_store,
2815 s390_get_signal_frame_info): New functions.
2816 (S390_NUM_SPILL_SLOTS): New macro.
2817 (s390_get_frame_info): Rewritten.
2818 (is_arg_reg): Deleted.
2819
2820 Break out the decoding of S/390 instructions into separate
2821 functions, to make it more legible, and easier to check
2822 against the spec.
2823 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2824 is_rx, is_rxe): New functions.
2825 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2826 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2827 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2828 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2829 enums for opcode values. (Is this an improvement?)
2830
2831 2003-07-02 Andrew Cagney <cagney@redhat.com>
2832
2833 * i386-tdep.c: Revert change committed as part of trad-frame code
2834 below.
2835
2836 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2837
2838 * breakpoint.c (insert_catchpoint): Make static.
2839
2840 2003-07-02 Andreas Schwab <schwab@suse.de>
2841
2842 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2843 former ia64_push_arguments and ia64_push_return_address, and use
2844 regcache functions instead of read/write_register.
2845 (ia64_gdbarch_init): Set push_dummy_call instead of
2846 deprecated_push_arguments and deprecated_push_return_address.
2847
2848 2003-07-01 Andreas Jaeger <aj@suse.de>
2849
2850 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2851 before the call.
2852 Set %rax only to number of SSE registers used.
2853
2854 2003-07-01 Andrew Cagney <cagney@redhat.com>
2855
2856 * trad-frame.h: Update comments, a -1 .addr is reserved.
2857 (trad_frame_value_p, trad_frame_addr_p): Declare.
2858 (trad_frame_reg_p): Declare.
2859 (trad_frame_set_value): Rename trad_frame_register_value.
2860 (trad_frame_set_unknown): Declare.
2861 * trad-frame.c (trad_frame_realreg_p): New function.
2862 (trad_frame_addr_p, trad_frame_value_p): New function.
2863 (trad_frame_set_unknown): New function.
2864 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2865 (trad_frame_prev_register): Use trad_frame_realreg_p,
2866 trad_frame_addr_p and trad_frame_value_p.
2867 (trad_frame_set_value): Rename trad_frame_register_value.
2868 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2869 and trad_frame_set_value.
2870
2871 2003-06-30 Jim Blandy <jimb@redhat.com>
2872
2873 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2874 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2875 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2876 for 16 registers, and then 32 more bytes.
2877 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2878 New macros.
2879 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2880 Move up in the file, since it's now used by is_simple_arg.
2881 (is_simple_arg): Don't assume registers are four bytes long.
2882 Exclude all double arguments. Extended floats are not simple
2883 args.
2884 (is_power_of_two): New function.
2885 (pass_by_copy_ref): Call is_power_of_two, and check that the
2886 length fits in a register, rather than listing all the acceptable
2887 sizes. Extended floats are not passed by reference.
2888 (s390_push_arguments): Don't assume registers are four bytes long.
2889 Reserve an argument register to point to the buffer for structures
2890 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2891 S390_STACK_FRAME_OVERHEAD.
2892
2893 2003-06-30 Andreas Schwab <schwab@suse.de>
2894
2895 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2896 format error message.
2897
2898 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2899
2900 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2901
2902 2003-06-30 David Carlton <carlton@kealia.com>
2903
2904 Band-aid for PR c++/1245.
2905 * Makefile.in (cp-support.o): Depend on complaints_h.
2906 * cp-support.c: Include complaints.h. Add declaration for
2907 find_last_component.
2908 (cp_find_first_component): Separate code into
2909 cp_find_first_component_aux.
2910 (cp_find_first_component_aux): Call demangled_name_complaint.
2911 (demangled_name_complaint): New.
2912
2913 2003-06-30 Andrew Cagney <cagney@redhat.com>
2914
2915 * remote.c (remote_write_bytes): Explicitly compute and then use
2916 the payload size. Update comments to reflect. Fixes problem of
2917 GDB not sending small packets as found by Fred Fish.
2918
2919 2003-06-30 Andrew Cagney <cagney@redhat.com>
2920
2921 * remote.c (remote_async_wait): Fix -Wformat problem.
2922
2923 2003-06-29 Andrew Cagney <cagney@redhat.com>
2924
2925 * remote.c (remote_wait): Call error, and not warning, when the
2926 packet is corrupt.
2927 (remote_async_wait): Ditto.
2928
2929 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2930
2931 * sparc-tdep.c (sparc_y_regnum): Make external again.
2932
2933 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2934
2935 * cli/cli-logging.c (pop_output_files): Add void to function
2936 definition.
2937
2938 2003-06-29 Andrew Cagney <cagney@redhat.com>
2939
2940 * frame.c (frame_register_unwind): Use unsigned char when dumping
2941 the buffer contents.
2942
2943 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2944
2945 * cli/cli-logging.c: New file.
2946 * cli-out.c (struct ui_out_data): Add original_stream.
2947 (cli_redirect): New function.
2948 (cli_ui_out_impl): Add cli_redirect.
2949 (cli_out_new): Initialize original_stream.
2950 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2951 (uo_redirect, ui_out_redirect): New.
2952 * ui-out.h (struct ui_out_impl): Add redirect member.
2953 (redirect_ftype): New.
2954 (ui_out_redirect): Add prototype.
2955 * Makefile.in: Add rules for cli-logging.c.
2956 * NEWS: Mention "set logging".
2957
2958 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2959
2960 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2961
2962 2003-06-27 Andrew Cagney <cagney@redhat.com>
2963
2964 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2965 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2966 * avr-tdep.c (avr_call_dummy_address): Delete function.
2967 (avr_gdbarch_init): Do not set call_dummy_address.
2968
2969 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2970
2971 * symfile.c (syms_from_objfile): Move variables to inner block.
2972 Move the checks for the non-mainline case a bit earlier to avoid
2973 doing some useless computations.
2974
2975 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2976
2977 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2978
2979 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2980
2981 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2982 sections.
2983
2984 2003-06-26 Michael Chastain <mec@shout.net>
2985
2986 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2987 gdb/testsuite/gdb.c++/pr-1210.exp.
2988
2989 2003-06-26 Andrew Cagney <cagney@redhat.com>
2990
2991 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2992 altivec_expression.h and altivec_registers.h.
2993
2994 2003-06-26 Andrew Cagney <cagney@redhat.com>
2995
2996 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2997 info->mach when MIPS16. Patch suggested by Fred Fish.
2998
2999 2003-06-26 Andrew Cagney <cagney@redhat.com>
3000
3001 * utils.c (internal_vproblem): Print the problem to a reason
3002 buffer and then pass to query. Make the msg variable more local.
3003
3004 2003-06-26 Andrew Cagney <cagney@redhat.com>
3005
3006 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3007 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3008 * gdbarch.h, gdbarch.c: Re-generate.
3009 * frame-base.c (default_frame_args_address): Update. Use
3010 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3011 not available.
3012 (default_frame_locals_address): Ditto for
3013 DEPRECATED_FRAME_LOCALS_ADDRESS.
3014 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3015 (vax_frame_num_args): Update.
3016 (vax_gdbarch_init): Update.
3017 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3018 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3019 * mcore-tdep.c (mcore_gdbarch_init): Update.
3020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3021 * ia64-tdep.c (ia64_gdbarch_init): Update.
3022 * symtab.h (address_class): Update comments.
3023 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3024 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3025 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3026 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3027 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3028 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3029 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3030 * alpha-mdebug-tdep.c: Update.
3031 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3032
3033 2003-06-26 Andreas Jaeger <aj@suse.de>
3034
3035 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3036 of SSE registers so that varargs functions work. Rework handling
3037 of passing arguments on the stack.
3038 (x86_64_store_return_value): Return double and float values in SSE
3039 register.
3040
3041 2003-06-24 Michael Chastain <mec@shout.net>
3042
3043 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3044 the "constructor breakpoints ignored" bug.
3045
3046 2003-06-25 David Carlton <carlton@kealia.com>
3047
3048 * MAINTAINERS: Update e-mail address.
3049
3050 2003-06-24 Jim Blandy <jimb@redhat.com>
3051
3052 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3053
3054 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3055 function.
3056 (ppc_linux_init_abi): Register it as the
3057 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3058
3059 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3060 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3061 method.
3062
3063 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3064 (ppc64_standard_linkage_target): Use it.
3065
3066 2003-06-23 Andrew Cagney <cagney@redhat.com>
3067
3068 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3069 for 0 "int0" and 4 "int32" sized registers.
3070 * gdbtypes.c (builtin_type_int0): Define.
3071 (build_gdbtypes): Initialize builtin_type_int0.
3072 * gdbtypes.h (builtin_type_int0): Declare.
3073
3074 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3075
3076 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3077 as characters are unsigned.
3078
3079 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3080
3081 PR gdb/1179
3082 * dwarfread.c (struct_type): Skip static fields without crashing.
3083
3084 2003-06-22 Andrew Cagney <cagney@redhat.com>
3085
3086 GDB 6.0 branch created.
3087 * README: Update.
3088 * PROBLEMS: Update. Empty.
3089 * NEWS: Update.
3090
3091 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3092
3093 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3094 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3095
3096 2003-06-22 Andrew Cagney <cagney@redhat.com>
3097
3098 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3099 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3100 Velikov.
3101
3102 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3103
3104 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3105 compilers.
3106
3107 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3108
3109 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3110 argument of val_print.
3111 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3112 to the address argument of baseclass_offset or target_read_memory.
3113 Do add it to the argument of cp_print_value_fields.
3114
3115 2003-06-21 Andrew Cagney <cagney@redhat.com>
3116
3117 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3118 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3119 instead of 0..NUM_REGS.
3120 (mips_register_reggroup_p): New function.
3121 (mips_pseudo_register_write): New function.
3122 (mips_pseudo_register_read): New function.
3123 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3124 based on the register's type.
3125 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3126 cooked.
3127 (mips_get_saved_register): Simplify. Assert that REGNO is a
3128 pseudo / cooked.
3129 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3130 (mips_register_type): Replace mips_register_virtual_type. Map
3131 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3132 when available.
3133 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3134 that the register is cooked / virtual.
3135 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3136 Only get the extra info when needed.
3137 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3138 (mips32_heuristic_proc_desc): Fetch the cooked register.
3139 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3140 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3141 (mips_print_register): Use gdbarch_register_type, instead of
3142 REGISTER_VIRTUAL_TYPE.
3143 (print_gp_register_row): Use gdbarch_register_type, instead of
3144 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3145 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3146 Print the pseudo / cooked registers.
3147 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3148 Print the pseudo / cooked registers.
3149 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3150 REG_NUM is pseudo / cooked.
3151 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3152 (mips_n32n64_xfer_return_value): Ditto.
3153 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3154 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3155 (mips_register_sim_regno): New function.
3156 (mips_gdbarch_init): Set deprecated_register_byte,
3157 register_group_p, pseudo_register_write, pseudo_register_read,
3158 register_sim_regno, and num_pseudo_regs. Set register_type,
3159 instead of register_virtual_type.
3160 * Makefile.in (mips-tdep.o): Update dependencies.
3161 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3162 REGISTER_VIRTUAL_TYPE.
3163 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3164 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3165 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3166 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3167 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3168
3169 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3170
3171 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3172 * cli/cli-cmds.c: Include "gdb_vfork.h".
3173 (shell_escape): Use vfork.
3174
3175 2003-06-21 Andrew Cagney <cagney@redhat.com>
3176
3177 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3178 32 bit floating-point register saves.
3179
3180 * frame.h (deprecated_unwind_get_saved_register): Delete.
3181 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3182 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3183 and deprecated_get_next_frame_hack instead of
3184 deprecated_unwind_get_saved_register.
3185
3186 * mips-tdep.c (mips_dump_tdep): Do not print
3187 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3188
3189 * frame.c (get_frame_register): New function.
3190 (frame_unwind_register_signed): New function.
3191 (get_frame_register_signed): New function.
3192 (frame_unwind_register_unsigned): New function.
3193 (get_frame_register_unsigned): New function.
3194 * frame.h: Add comments on naming schema.
3195 (get_frame_register, frame_unwind_register_signed): Declare.
3196 (get_frame_register_signed, get_frame_register_signed): Declare.
3197 (frame_unwind_register_unsigned): Declare.
3198 (get_frame_register_unsigned): Declare.
3199
3200 2003-06-20 Theodore A. Roth <troth@openavr.org>
3201
3202 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3203
3204 2003-06-20 Theodore A. Roth <troth@openavr.org>
3205
3206 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3207 (avr_read_sp): Ditto.
3208
3209 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3210
3211 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3212 * config/arm/nm-linux.h: Likewise.
3213 * config/arm/tm-linux.h: Likewise.
3214 * config/ia64/nm-linux.h: Likewise.
3215 * config/ia64/tm-ia64.h: Likewise.
3216 * config/s390/tm-linux.h: Likewise.
3217 * config/s390/tm-s390.h: Likewise.
3218 * s390-nat.c: Likewise.
3219 * s390-tdep.c: Likewise.
3220
3221 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3222 * config/ia64/linux.mt: Likewise.
3223 * config/m68k/linux.mh: Likewise.
3224 * config/mips/linux.mt: Likewise.
3225 * config/powerpc/linux.mh: Likewise.
3226 * config/sh/linux.mt: Likewise.
3227
3228 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3229
3230 * solib.c (solib_open): Change tests for whether to search
3231 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3232 comments.
3233
3234 2003-06-19 Theodore A. Roth <troth@openavr.org>
3235
3236 * avr-tdep.c (avr_frame_address): Delete function.
3237 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3238 set_gdbarch_frame_args_address.
3239
3240 2003-06-19 Andrew Cagney <cagney@redhat.com>
3241
3242 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3243 (REGISTER_CONVERT_FROM_TYPE): Delete.
3244 (mips_register_convert_to_type): Delete declaration.
3245 (mips_register_convert_from_type): Delete declaration.
3246 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3247 kernel/.
3248
3249 2003-06-19 Michael Snyder <msnyder@redhat.com>
3250
3251 * linux-nat.h: New file.
3252 * linux-nat.c: Include linux-nat.h.
3253 * lin-lwp.c: Include linux-nat.h.
3254 Move struct lwp_info def to linux-nat.h.
3255 * linux-proc.c: Include linux-nat.h.
3256 (linux_make_note_section): Iterate over lwps instead of threads.
3257 (linux_do_thread_registers): Use lwp instead of merged pid.
3258 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3259 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3260 Add dependency on linux_nat_h.
3261
3262 2003-06-19 Theodore A. Roth <troth@openavr.org>
3263
3264 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3265
3266 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3267
3268 * varobj.c (get_type, get_target_type): Use check_typedef.
3269
3270 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3271
3272 * breakpoint.c (insert_catchpoint): Call internal_error.
3273
3274 2003-06-19 Theodore A. Roth <troth@openavr.org>
3275
3276 * avr-tdep.c (avr_push_dummy_code): Delete function.
3277 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3278
3279 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3280
3281 * arch-utils.c (default_prepare_to_proceed): Remove.
3282 (generic_prepare_to_proceed): Remove.
3283 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3284 (generic_prepare_to_proceed): Remove prototype.
3285 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3286 * gdbarch.c: Regenerate.
3287 * gdbarch.h: Regenerate.
3288 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3289 * hppah-nat.c (hppa_switched_threads): Remove.
3290 * infrun.c (prepare_to_proceed): New static function, copied from
3291 generic_prepare_to_proceed. Remove select_it argument.
3292 (proceed): Call prepare_to_proceed.
3293 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3294 variables.
3295 (ptrace_wait): Don't set the removed variables.
3296 (hppa_switched_threads): Remove.
3297 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3298 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3299 (lin_lwp_prepare_to_proceed): Remove prototype.
3300 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3301 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3302
3303 2003-06-18 Theodore A. Roth <troth@openavr.org>
3304
3305 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3306 trad-frame.h.
3307 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3308 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3309 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3310 (AVR_PROLOGUE_*): Enumerate prologue types.
3311 (struct frame_extra_info): Remove.
3312 (struct avr_unwind_cache): Define.
3313 (avr_write_sp): Delete function.
3314 (avr_read_fp): Ditto.
3315 (avr_init_extra_frame_info): Ditto.
3316 (avr_pop_frame): Ditto.
3317 (avr_frame_saved_pc): Ditto.
3318 (avr_saved_pc_after_call): Ditto.
3319 (avr_push_return_address): Ditto.
3320 (avr_frame_chain): Ditto.
3321 (avr_store_struct_return): Ditto.
3322 (avr_push_arguments): Ditto.
3323 (avr_scan_prologue): Update comments. Changed to set up the info for
3324 cache unwinding. Now returns end of prologue PC.
3325 (avr_skip_prologue): Better handling of functions lacking a prologue
3326 by using avr_scan_prologue.
3327 (avr_scan_arg_moves): New function.
3328 (avr_saved_regs_unwinder): Ditto.
3329 (avr_frame_unwind_cache): Ditto.
3330 (avr_unwind_pc): Ditto.
3331 (avr_frame_this_id): Ditto.
3332 (avr_frame_prev_register): Ditto.
3333 (avr_frame_p): Ditto.
3334 (avr_frame_base_address ): Ditto.
3335 (avr_unwind_dummy_id): Ditto.
3336 (avr_push_dummy_code): Ditto.
3337 (push_stack_item): Ditto.
3338 (pop_stack_item): Ditto.
3339 (avr_push_dummy_call): Ditto.
3340 (struct stack_item): Define.
3341 (avr_frame_unwind): Declare structure.
3342 (avr_frame_base): Ditto.
3343 (avr_gdbarch_init): Remove calls to
3344 set_gdbarch_deprecated_init_frame_pc,
3345 set_gdbarch_deprecated_target_read_fp,
3346 set_gdbarch_deprecated_dummy_write_sp,
3347 set_gdbarch_deprecated_fp_regnum,
3348 set_gdbarch_deprecated_push_arguments,
3349 set_gdbarch_deprecated_push_return_address,
3350 set_gdbarch_deprecated_pop_frame,
3351 set_gdbarch_deprecated_store_struct_return,
3352 set_gdbarch_deprecated_frame_init_saved_regs,
3353 set_gdbarch_deprecated_init_extra_frame_info,
3354 set_gdbarch_deprecated_frame_chain,
3355 set_gdbarch_deprecated_frame_saved_pc,
3356 set_gdbarch_deprecated_saved_pc_after_call.
3357 Add calls to set_gdbarch_push_dummy_call,
3358 set_gdbarch_push_dummy_code,
3359 frame_unwind_append_predicate,
3360 frame_base_set_default,
3361 set_gdbarch_unwind_dummy_id,
3362 set_gdbarch_unwind_pc.
3363 Wrap a long line.
3364
3365 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3366
3367 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3368 registers for H8/300S.
3369 (h8300_print_registers_info): Ditto.
3370 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3371
3372 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3373
3374 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3375 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3376 (lin_lwp_wait): Likewise. Update comments.
3377 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3378 (pull_pid_from_list, linux_record_stopped_pid): New.
3379
3380 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3381
3382 * ada-lang.c (scan_discrim_bound): Name first argument.
3383 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3384 declared by ALL_BLOCK_SYMBOLS.
3385
3386 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3387
3388 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3389 ("regcache.h"): Include it.
3390 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3391
3392 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3393
3394 * NEWS: Mention gdbserver detach change and "disconnect" command.
3395 * infcmd.c (disconnect_command): New function.
3396 (_initialize_infcmd): Add ``disconnect'' command.
3397 * remote.c (remote_async_detach): Delete.
3398 (remote_detach): Merge remote_async_detach.
3399 (remote_disconnect): New.
3400 (init_remote_ops): Set to_disconnect.
3401 (init_remote_cisco_ops): Likewise.
3402 (init_remote_async_ops): Likewise. Use remote_detach.
3403 * target.c (cleanup_target): Default to_disconnect.
3404 (update_current_target): Inherit to_disconnect.
3405 (target_disconnect, debug_to_disconnect): New functions.
3406 (setup_target_debug): Set to_disconnect.
3407 * target.h (struct target_ops): Add to_disconnect.
3408 (target_disconnect): Add prototype.
3409
3410 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3411
3412 * breakpoint.c (insert_catchpoint): New function.
3413 (insert_breakpoints): Use catch_exceptions to call
3414 insert_catchpoint. Disable catchpoints if they fail to insert.
3415
3416 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3417
3418 * symfile.c (reread_symbols): Clear sym_private.
3419
3420 2003-06-17 Andrew Cagney <cagney@redhat.com>
3421
3422 * trad-frame.h (struct frame_info): Add opaque declaration.
3423 * remote-fileio.h (struct cmd_list_element): Add opaque
3424 declaration.
3425 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3426 comments.
3427
3428 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3429
3430 * remote.c (remote_prepare_to_store): Replace call to
3431 deprecated_read_register_bytes with multiple regcache_raw_read
3432 calls.
3433
3434 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3435
3436 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3437 (nto_find_and_open_solib): Likewise.
3438 (nto_init_solib_absolute_prefix): Likewise.
3439 (_initialize_nto_tdep): Fix indentation.
3440
3441 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3442
3443 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3444
3445 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3446
3447 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3448
3449 2003-06-17 Jim Blandy <jimb@redhat.com>
3450
3451 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3452
3453 2003-06-16 Theodore A. Roth <troth@openavr.org>
3454
3455 * avr-tdep.c (avr_extract_return_value): New function.
3456 (avr_gdbarch_init): Set extract_return_value method.
3457
3458 2003-06-16 Andrew Cagney <cagney@redhat.com>
3459
3460 * frame.h (deprecated_get_next_frame_hack): Declare.
3461 * frame.c (legacy_saved_regs_prev_register): Only require
3462 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3463 there are always saved regs.
3464 (deprecated_generic_get_saved_register): Do not require
3465 DEPRECATED_FRAME_INIT_SAVED_REGS.
3466 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3467 use frame ID unwind instead.
3468 (deprecated_get_next_frame_hack): New function.
3469
3470 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3471
3472 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3473 (h8300_push_dummy_call): ...this function. Some minor optimization.
3474 (h8300_push_return_address): Remove.
3475 (h8300_gdbarch_init): Remove calls to
3476 set_gdbarch_deprecated_dummy_write_sp,
3477 set_gdbarch_deprecated_push_arguments and
3478 set_gdbarch_deprecated_push_return_address.
3479 Add call to set_gdbarch_push_dummy_call.
3480
3481 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3482
3483 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3484 (E_PSEUDO_EXR_REGNUM): Ditto.
3485 (h8300_is_argument_spill): Check for instructions moving argument
3486 registers into safe registers.
3487 (h8300_skip_prologue): Check for stm instruction to push registers
3488 used for register variables onto stack.
3489 (gdb_print_insn_h8300): Remove.
3490 (h8300_examine_prologue): Add a comment.
3491 (h8300_register_name): Take pseudo registers into account.
3492 (h8300s_register_name): Ditto.
3493 (h8300sx_register_name): Ditto.
3494 (h8300_print_register): Ditto.
3495 (h8300_print_registers_info): Define "nice" printing order.
3496 (h8300_saved_pc_after_call): Take pseudo registers into account.
3497 (h8300_register_type): Ditto. Return type used for remote connection
3498 when requesting real CCR or EXR register, return actual type when
3499 requesting pseudo CCR or EXR.
3500 (h8300_pseudo_register_read): New function.
3501 (h8300_pseudo_register_write): Ditto.
3502 (h8300_dbg_reg_to_regnum): Ditto.
3503 (h8300s_dbg_reg_to_regnum): Ditto.
3504 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3505 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3506 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3507 set_gdbarch_print_insn architecture dependent.
3508 Call set_gdbarch_pseudo_register_read and
3509 set_gdbarch_pseudo_register_write.
3510 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3511
3512 2003-06-16 Andrew Cagney <cagney@redhat.com>
3513
3514 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3515 * gdbarch.h, gdbarch.c: Re-generate.
3516 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3517 * s390-tdep.c (s390_gdbarch_init): Update.
3518 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3519 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3520 * mips-tdep.c (mips_gdbarch_init): Update.
3521 * mcore-tdep.c (mcore_gdbarch_init): Update.
3522 * cris-tdep.c (cris_gdbarch_init): Update.
3523 * infcall.c (call_function_by_hand): Update.
3524 * ia64-tdep.c (ia64_push_arguments): Update comment.
3525 * frame.c (legacy_get_prev_frame): Do not assume
3526 SAVE_DUMMY_FRAME_TOS_P.
3527 * dummy-frame.c (find_dummy_frame): Update comment.
3528
3529 2003-06-16 Andrew Cagney <cagney@redhat.com>
3530
3531 * regcache.c (do_cooked_read): Do not use register_valid_p.
3532
3533 2003-06-15 Theodore A. Roth <troth@openavr.org>
3534
3535 * avr-tdep.c (avr_register_type): Remove a blank line.
3536 (avr_scan_prologue): Correct some comments.
3537
3538 2003-06-15 Theodore A. Roth <troth@openavr.org>
3539
3540 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3541 prologue types.
3542 Properly scan prologues generated by gcc with the -mcall-prologues
3543 option.
3544 Add code to scan -mcall-prologues for mega devices.
3545
3546 2003-06-15 Theodore A. Roth <troth@openavr.org>
3547
3548 * avr-tdep.c (avr_register_byte): Delete function.
3549 (avr_register_raw_size): Delete function.
3550 (avr_register_virtual_size): Delete function.
3551 (avr_register_virtual_type): Delete function.
3552 (avr_register_type): New function.
3553 (avr_address_to_pointer): Remove unused code.
3554 (avr_read_fp): Need to read FP as two separate bytes due to change to
3555 avr_register_type() usage.
3556 (avr_gdbarch_init): Don't set deprecated_register_size.
3557 Don't set deprecated_register_bytes.
3558 Don't set deprecated_register_byte.
3559 Don't set deprecated_register_raw_size.
3560 Don't set deprecated_max_register_raw_size.
3561 Don't set deprecated_register_virtual_size.
3562 Don't set deprecated_max_register_virtual_size.
3563 Don't set deprecated_register_virtual_type.
3564 Set register_type method.
3565
3566 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3567
3568 * Makefile.in (linux-nat.o): Add rule.
3569 * linux-nat.c: New file.
3570 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3571 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3572 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3573 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3574 * config/arm/linux.mh (NATDEPFILES): Likewise.
3575 * config/i386/linux.mh (NATDEPFILES): Likewise.
3576 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3577 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3578 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3579 * config/mips/linux.mh (NATDEPFILES): Likewise.
3580 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3581 * config/s390/s390.mh (NATDEPFILES): Likewise.
3582 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3583
3584 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3585
3586 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3587 replace out-of-date comment.
3588
3589 2003-06-15 Andrew Cagney <cagney@redhat.com>
3590
3591 * rdi-share/host.h (Fail): Change to a varargs function.
3592 * remote-rdi.c (Fail): Update.
3593
3594 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3595
3596 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3597 (i386_convert_register_p, i386_register_to_value,
3598 i386_register_from_value): Handle types longer than 8 bytes.
3599
3600 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3601
3602 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3603 Move floating-point code to new function in i387-tdep.c.
3604 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3605 New functions containing code moved here from i386-tdep.c.
3606 * i387-tdep.h: Add opaque declaration for `struct type'.
3607 (i387_register_to_value, i387_value_to_register): New prototypes.
3608 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3609 (x86_64_init_abi): Set convert_register_p, register_to_value and
3610 value_to_register here.
3611
3612 2003-06-14 Andrew Cagney <cagney@redhat.com>
3613
3614 * mips-tdep.c (mips_register_to_value): Make static.
3615 (mips_value_to_register): Make static.
3616 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3617 * ia64-tdep.c (ia64_register_raw_size): Make static.
3618 (ia64_register_virtual_size): Make static.
3619 (ia64_register_byte): Make static.
3620 * i387-tdep.c: Include "i387-tdep.h".
3621 (print_387_control_word): Delete function.
3622 (print_387_status_word): Delete function.
3623 (print_387_status_bits): Delete function.
3624 (print_387_control_bits): Delete function.
3625 * Makefile.in (i387-tdep.o): Update dependencies.
3626 * rdi-share/host.h (Fail): Declare.
3627 * remote-rdi.c (Fail): Update to match declaration.
3628
3629 2003-06-14 Andrew Cagney <cagney@redhat.com>
3630
3631 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3632 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3633 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3634 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3635 * README: Delete reference to remote-array.
3636 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3637 (remote-array.o): Delete target.
3638 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3639 * remote-array.c: Delete file.
3640
3641 2003-06-14 Andrew Cagney <cagney@redhat.com>
3642 Mark Kettenis <kettenis@gnu.org>
3643
3644 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3645 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3646 parameter with "frame".
3647 * gdbarch.h, gdbarch.c: Re-generate.
3648 * frame.h (put_frame_register): Declare.
3649 * frame.c (put_frame_register): New function.
3650 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3651 (legacy_register_to_value): Rewrite, use "frame" to get the
3652 register value.
3653 (legacy_value_to_register): Rewrite, use "frame" to find the
3654 register's location before storing.
3655 * arch-utils.h (legacy_convert_register_p): Update.
3656 (legacy_register_to_value, legacy_value_to_register): Update.
3657 * findvar.c (value_from_register): Rewrite, eliminate use of
3658 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3659 "frame" to REGISTER_TO_VALUE.
3660 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3661 lval_reg_frame_relative + lval_register branch of the switch. Do
3662 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3663 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3664 I386_EDI_REGNUM): New defines.
3665 (i386_next_regnum, i386_convert_register_p,
3666 i386_register_to_value, i386_value_to_register): New functions.
3667 (i386_register_convertible, i386_register_convert_to_virtual,
3668 i386_convert_to_raw): Remove functions.
3669 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3670 value_to_register instead of register_convertible,
3671 register_convert_to_virtual and register_convert_to_raw.
3672 * mips-tdep.c (mips_convert_register_p): New function.
3673 (mips_value_to_register): Replace mips_register_convert_from_type.
3674 (mips_register_to_value): Replace mips_register_convert_to_type.
3675 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3676 register_to_value.
3677 * alpha-tdep.c (alpha_convert_register_p): Update.
3678 (alpha_value_to_register): Update, store the register.
3679 (alpha_register_to_value): Update, fetch the register.
3680
3681 2003-06-14 Theodore A. Roth <troth@openavr.org>
3682
3683 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3684 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3685 Don't set deprecated_call_dummy_words.
3686 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3687 Don't set remote_translate_xfer_address.
3688 (avr_io_reg_read_command): Remove commented out debug printf.
3689 Wrap a long line.
3690
3691 2003-06-14 Theodore A. Roth <troth@openavr.org>
3692
3693 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3694 causes gdb to seg fault.
3695
3696 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3697
3698 * sparc-nat.c (fetch_inferior_registers): Correct
3699 a reference to "registers".
3700
3701 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3702
3703 * Makefile.in (exc_request_U_h): Define
3704 (exc_request_S_h): Likewise.
3705 (msg_reply_S_h): Likewise.
3706 (msg_U_h): Likewise.
3707 (notify_S_h): Likewise.
3708 (process_reply_S_h): Likewise.
3709 (gnu-nat.o): Depend on gdb_obstack_h
3710 * gnu-nat.c: Include "gdb_obstack.h".
3711
3712 2003-06-13 Andrew Cagney <cagney@redhat.com>
3713
3714 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3715 * gdbarch.h, gdbarch.c: Re-generate.
3716
3717 2003-06-13 Andrew Cagney <cagney@redhat.com>
3718
3719 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3720 when deprecated REGISTER macros can be deleted.
3721 * gdbarch.h, gdbarch.c: Re-generate.
3722
3723 2003-06-13 Jim Blandy <jimb@redhat.com>
3724
3725 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3726 Linux entry point symbols for _dl_debug_state, too.
3727
3728 2003-06-13 Andrew Cagney <cagney@redhat.com>
3729
3730 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3731 available, do not use the FP register, and always save the TOS.
3732 * dummy-frame.c (dummy_frame_this_id): Do not assert
3733 SAVE_DUMMY_FRAME_TOS.
3734 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3735 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3736 (i386_push_dummy_call): Add 8 to the returned SP.
3737 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3738 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3739 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3740 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3741 (x86_64_push_dummy_call): Return "sp + 16".
3742 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3743 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3744 save_dummy_frame_tos.
3745
3746 2003-06-13 Jim Blandy <jimb@redhat.com>
3747
3748 * frv-tdep.c (frv_use_struct_convention): Delete static
3749 declaration for function deleted in my change of 2003-06-12.
3750
3751 2003-06-13 Theodore A. Roth <troth@openavr.org>
3752
3753 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3754 (avr_pointer_to_address): Shift code addrs left 1 bit.
3755 (avr_convert_from_func_ptr_addr): Delete function since operation is
3756 better handled by avr_address_to_pointer and avr_pointer_to_address.
3757 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3758
3759 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3760
3761 From Kelley Cook <kelleycook@wideopenwest.com>:
3762 * configure.host: Accept i[34567]86 variants.
3763 * configure.tgt: Likewise.
3764 * nlm/configure.in: Likewise.
3765 * nlm/configure: Regenerated.
3766
3767 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3768
3769 * arm-tdep.c (solib-svr4.h): Dont' include it.
3770 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3771 * arm-linux-tdep.c: ... here. Make static.
3772 (arm_linux_init_abi): Register it.
3773 (solib-svr4.h): Include it.
3774 * Makefile.in: Update dependencies.
3775 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3776 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3777
3778 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3779
3780 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3781 indicate registers used for return values.
3782 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3783 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3784 members.
3785 (h8300_init_extra_frame_info): Ditto.
3786 (h8300_frame_locals_address): Removed.
3787 (h8300_frame_args_address): Removed.
3788 (h8300_extract_return_value): Use new regcache structure. Only care
3789 for 16 bit CPUs.
3790 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3791 (h8300_store_return_value): Use new regcache structure. Only care
3792 for 16 bit CPUs.
3793 (h8300h_store_return_value): Same function for 32 bit CPUs.
3794 (h8300_store_struct_return): Removed.
3795 (h8300_extract_struct_value_address): Use new regcache structure.
3796 (h8300h_extract_struct_value_address): Removed.
3797 (h8300_push_dummy_code): New function.
3798 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3799 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3800 set_gdbarch_store_return_value architecture dependent.
3801 Call set_gdbarch_push_dummy_code and
3802 set_gdbarch_extract_struct_value_address.
3803 Remove calls to set_gdbarch_frame_args_address,
3804 set_gdbarch_frame_locals_address,
3805 set_gdbarch_deprecated_store_struct_return,
3806 set_gdbarch_deprecated_extract_return_value,
3807 set_gdbarch_deprecated_extract_struct_value_address,
3808 set_gdbarch_deprecated_call_dummy_words and
3809 set_gdbarch_deprecated_sizeof_call_dummy_words.
3810
3811 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3812
3813 * h8300-tdep.c (h8300_register_byte): Remove.
3814 (h8300h_register_byte): Remove.
3815 (h8300_register_virtual_type): Remove. Substitute by...
3816 (h8300_register_type): New function.
3817 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3818 (h8300h_extract_struct_value_address): Ditto.
3819 (h8300_gdbarch_init): Drop calls to
3820 set_gdbarch_deprecated_register_byte and
3821 set_gdbarch_deprecated_register_virtual_type.
3822 Add call to set_gdbarch_register_type.
3823
3824 2003-06-13 Andrew Cagney <cagney@redhat.com>
3825
3826 * gdbarch.sh: Update comments on registers.
3827 (deprecated_register_byte): Rename register_byte.
3828 (deprecated_register_raw_size): Rename register_raw_size.
3829 (deprecated_register_virtual_size): Rename register_virtual_size.
3830 (deprecated_register_virtual_type): Rename register_virtual_type.
3831 * gdbarch.h, gdbarch.c: Re-generate.
3832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3833 * vax-tdep.c (vax_gdbarch_init): Update.
3834 * v850-tdep.c (v850_gdbarch_init): Update.
3835 * sparc-tdep.c (sparc_gdbarch_init): Update.
3836 * sh-tdep.c (sh_gdbarch_init): Update.
3837 * s390-tdep.c (s390_gdbarch_init): Update.
3838 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3839 * ns32k-tdep.c: Update.
3840 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3841 * mips-tdep.c (mips_gdbarch_init): Update.
3842 * mcore-tdep.c (mcore_gdbarch_init): Update.
3843 * m68k-tdep.c (m68k_gdbarch_init): Update.
3844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3845 * ia64-tdep.c (ia64_gdbarch_init): Update.
3846 * hppa-tdep.c (hppa_gdbarch_init): Update.
3847 * h8300-tdep.c (h8300_gdbarch_init): Update.
3848 * frv-tdep.c (frv_gdbarch_init): Update.
3849 * cris-tdep.c (cris_gdbarch_init): Update.
3850 * avr-tdep.c (avr_gdbarch_init): Update.
3851 * alpha-tdep.c (alpha_gdbarch_init): Update.
3852 * arm-tdep.c (arm_gdbarch_init): Update.
3853
3854 2003-06-13 Andrew Cagney <cagney@redhat.com>
3855
3856 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3857 mips_o32_use_struct_convention with always_use_struct_convention.
3858
3859 2003-06-12 David Carlton <carlton@kealia.com>
3860
3861 * cp-namespace.c (cp_set_block_scope): Comment out
3862 processing_has_namespace_info branch.
3863
3864 2003-06-12 Jim Blandy <jimb@redhat.com>
3865
3866 Recognize and skip 64-bit PowerPC Linux linkage functions.
3867 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3868 insn_pattern, insns_match_pattern, d_field, ds_field): New
3869 functions, macros, and types for working with PPC instructions.
3870 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3871 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3872 ppc64_skip_trampoline_code): New functions, variables, and macros
3873 for recognizing and skipping linkage functions.
3874 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3875 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3876
3877 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3878 register offsets for both the 32- and 64-bit interfaces.
3879
3880 Actually finish the job started by my change of 2003-05-29.
3881 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3882 other #definition of this.
3883 (ppc_linux_skip_trampoline_code): Remove declaration.
3884 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3885 static.
3886 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3887 method for GDBARCH.
3888
3889 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3890 'long' on ppc64-*-linux*.
3891
3892 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3893 isn't #defined, assume the register doesn't exist: act as if
3894 tdep->ppc_mq_regnum were -1.
3895
3896 * configure.host, configure.tgt: Add entries for
3897 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3898 powerpc/linux.mt.
3899 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3900 New files.
3901
3902 * arch-utils.c (always_use_struct_convention): New function.
3903 * arch-utils.h (always_use_struct_convention): New prototype.
3904 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3905 (alpha_gdbarch_init): Register always_use_struct_convention,
3906 instead of alpha_use_struct_convention.
3907 * cris-tdep.c (cris_use_struct_convention): Delete.
3908 (cris_gdbarch_init): Register always_use_struct_convention,
3909 instead of cris_use_struct_convention.
3910 * frv-tdep.c (frv_use_struct_convention): Delete.
3911 (frv_gdbarch_init): Register always_use_struct_convention,
3912 instead of frv_use_struct_convention.
3913 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3914 (h8300_gdbarch_init): Register always_use_struct_convention,
3915 instead of h8300_use_struct_convention.
3916 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3917 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3918 instead of mips_o32_use_struct_convention.
3919
3920 2003-06-12 Andrew Cagney <cagney@redhat.com>
3921
3922 * wince.c: Include "mips-tdep.h".
3923 * mips-tdep.h (mips_next_pc): Declare.
3924 * mcore-tdep.c: Make more local functions static.
3925 * Makefile.in (wince.o): Update dependencies.
3926
3927 2003-06-12 David Carlton <carlton@kealia.com>
3928
3929 * symtab.c (lookup_symbol_aux_minsyms): Replace
3930 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3931 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3932 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3933 SYMBOL_NATURAL_NAME.
3934
3935 2003-06-12 Andreas Schwab <schwab@suse.de>
3936
3937 * Makefile.in (tuiDisassem.o): Update dependencies.
3938
3939 2003-06-12 David Carlton <carlton@bactrian.org>
3940
3941 * symtab.h: Delete declaration of make_symbol_overload_list.
3942 Add declaration of lookup_partial_symbol.
3943 * symtab.c (remove_params): Move to cp-support.c.
3944 (overload_list_add_symbol, make_symbol_overload_list)
3945 (sym_return_val_size, sym_return_val_index): Ditto.
3946 (lookup_partial_symbol): Make extern.
3947 * cp-support.h: Add declaration of make_symbol_overload_list.
3948 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3949 symtab.h, and block.h.
3950 (remove_params): Move here from symtab.c.
3951 (overload_list_add_symbol, make_symbol_overload_list)
3952 (sym_return_val_size, sym_return_val_index): Ditto.
3953 * valops.c: Include cp-support.h.
3954 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3955 frame_h, and block_h.
3956 (valops.o): Depend on cp_support_h.
3957
3958 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3959
3960 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3961 substitute by NUM_REGS throughout.
3962 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3963 (h8300s_register_name): New function for H8S registers.
3964 (h8300sx_register_name): Ditto for H8SX registers.
3965 (h8300_print_register): Revise register printing, avoid depending
3966 on 32 bit long.
3967 (h8300_register_byte): Only care for H8/300 registers.
3968 (h8300h_register_byte): New function for any other architecture.
3969 (h8300_register_raw_size): Remove.
3970 (h8300_register_virtual_type): Revise to return actually useful
3971 type.
3972 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3973 (h8300h_extract_struct_value_address): New function for any other
3974 architecture.
3975 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3976 set_gdbarch_register_name, set_gdbarch_register_byte,
3977 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3978 Remove calls to set_gdbarch_deprecated_register_size,
3979 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3980 set_gdbarch_deprecated_max_register_raw_size,
3981 set_gdbarch_register_virtual_size and
3982 set_gdbarch_deprecated_max_register_virtual_size entirely.
3983 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3984 set_gdbarch_long_double_bit.
3985
3986 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3987
3988 * doublest.c (convert_doublest_to_floatformat): When dealing
3989 with the implied integer bit, only alter mant_bits if we are
3990 processing a full 32 bits of mantissa.
3991
3992 2003-06-11 David Carlton <carlton@bactrian.org>
3993
3994 * dictionary.h: New.
3995 * dictionary.c: New.
3996 * block.h: Add opaque declaration for struct dictionary.
3997 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3998 'sym' members.
3999 (BLOCK_DICT): New macro.
4000 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4001 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4002 BLOCK_SHOULD_SORT.
4003 (ALL_BLOCK_SYMBOLS): Update definition.
4004 * Makefile.in (SFILES): Add dictionary.c.
4005 (dictionary_h): New.
4006 (COMMON_OBS): Add dictionary.o.
4007 (dictionary.o): New.
4008 (ada-lang.o): Depend on dictionary_h.
4009 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4010 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4011 (mi-cmd-stack.o): Ditto.
4012 (gdbtk-cmds.o): Update dependencies.
4013 (gdbtk-stack.o): Ditto.
4014 * ada-lang.c: Include dictionary.h.
4015 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4016 (fill_in_ada_prototype, debug_print_block): Ditto.
4017 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4018 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4019 'is_sorted'.
4020 * mdebugread.c: Include dictionary.h.
4021 (struct parse_stack): Delete 'maxsyms' member.
4022 (parse_symbol): Update calls to new_block. Delete calls to
4023 shrink_block. Use dictionary methods.
4024 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4025 Update calls to new_symtab. Don't maintain maxsyms data.
4026 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4027 (add_symbol): Just call dict_add_symbol.
4028 (new_symtab): Delete 'maxsyms' argument.
4029 (new_symtab): Update calls to new_block.
4030 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4031 (shrink_block): Delete function.
4032 (fixup_sigtramp): Update call to new_block. Add symbol via
4033 dict_add_symbol.
4034 * jv-lang.c: Include dictionary.h.
4035 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4036 appropriately. Set class_symtab->free_func. Make sure the
4037 blockvector is big enough to hold two blocks.
4038 (add_class_symtab_symbol): Use dictionary methods.
4039 (free_class_block): New function.
4040 (type_from_class): Replace explicit iteration by
4041 ALL_BLOCK_SYMBOLS.
4042 * symtab.h (struct symtab): Replace 'free_ptr' method by
4043 'free_func'.
4044 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4045 sort_symtab_syms.
4046 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4047 sort_symtab_syms.
4048 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4049 Include dictionary.h.
4050 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4051 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4052 sort_symtab_syms.
4053 * objfiles.c: Include dictionary.h.
4054 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4055 * buildsym.c: Include dictionary.h.
4056 (finish_block): Use dictionary methods.
4057 (end_symtab): Set free_func to NULL, not free_ptr.
4058 * tracepoint.c: Include dictionary.h.
4059 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4060 (scope_info): Ditto.
4061 * stack.c: Include dictionary.h.
4062 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4063 (print_block_frame_labels, print_frame_arg_vars)
4064 (print_frame_args): Ditto.
4065 * symmisc.c (free_symtab_block): Use dictionary methods.
4066 (dump_symtab): Ditto.
4067 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4068 Include dictionary.h.
4069 * symfile.h: Delete declarations of sort_block_syms,
4070 sort_symtab_syms.
4071 * symfile.c (sort_block_syms): Delete.
4072 (sort_symtab_syms): Delete.
4073 * symtab.c: Include dictionary.h.
4074 (lookup_block_symbol): Use dictionary iterators.
4075 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4076 (search_symbols, make_symbol_completion_list): Ditto.
4077 (make_symbol_overload_list): Ditto.
4078 * valops.c (value_of_local): Use dict_empty.
4079 Include dictionary.h.
4080
4081 2003-06-11 J. Brobecker <brobecker@gnat.com>
4082
4083 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4084
4085 2003-06-11 David Carlton <carlton@bactrian.org>
4086
4087 * block.h (BLOCK_SHOULD_SORT): Delete.
4088 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4089 blocks.
4090 * ada-lang.c (ada_add_block_symbols): Ditto.
4091 * symfile.c (sort_block_syms): Delete.
4092 (sort_symtab_syms): Ditto.
4093 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4094 declarations.
4095 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4096 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4097 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4098 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4099 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4100 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4101 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4102
4103 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4104
4105 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4106 bits to 128.
4107
4108 2003-06-11 Andrew Cagney <cagney@redhat.com>
4109
4110 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4111 REGISTER_CONVERTIBLE.
4112 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4113 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4114 * gdbarch.h, gdbarch.c: Re-generate.
4115 * arch-utils.h (deprecated_register_convertible_not): Rename
4116 generic_register_convertible_not.
4117 * arch-utils.c (deprecated_register_convertible_not): Rename
4118 generic_register_convertible.
4119 (legacy_convert_register_p, legacy_register_to_value): Update.
4120 * sh-tdep.c (sh64_push_arguments): Update.
4121 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4122 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4123 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4124 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4125 * arch-utils.c (legacy_value_to_register): Update.
4126 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4127 (rs6000_register_convert_to_raw): Make parameter "from" const.
4128 * mips-tdep.c (mips_gdbarch_init): Update.
4129 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4130 * infcmd.c (default_print_registers_info): Update.
4131 * ia64-tdep.c (ia64_gdbarch_init): Update.
4132 (ia64_register_convert_to_raw): Make parameter "from" const.
4133 * i386-tdep.c (i386_gdbarch_init): Update.
4134 (i386_register_convert_to_raw): Update.
4135
4136 2003-06-11 Andrew Cagney <cagney@redhat.com>
4137
4138 * remote-fileio.c: Include "remote-fileio.h".
4139 * Makefile.in (remote-fileio.o): Update dependencies.
4140 (remote_fileio_h): Fix typo.
4141
4142 2003-06-11 Andrew Cagney <cagney@redhat.com>
4143
4144 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4145 (xstormy16_save_dummy_frame_tos): Make static.
4146 (_initialize_xstormy16_tdep): Add declaration.
4147 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4148 * v850-tdep.c: Make local functions static.
4149 (_initialize_v850_tdep): Add declaration.
4150 * sparc-tdep.c: Make local functions static.
4151 (_initialize_sparc_tdep): Add declaration.
4152 * sh-tdep.c: Make local functions static.
4153 (_initialize_sh_tdep): Add declaration.
4154 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4155 * s390-tdep.c: Make local functions static.
4156 (_initialize_s390_tdep): Add declaration.
4157 * dbxread.c (find_stab_function_addr): Make static.
4158 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4159 * ocd.c (_initialize_remote_ocd): Add declaration.
4160 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4161 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4162 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4163 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4164 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4165 * remote-array.c (_initialize_array): Add declaration.
4166 (_initialize_remote_monitors): Add declaration.
4167 * remote-mips.c: Make local functions static.
4168 (_initialize_remote_mips): Add declaration.
4169 * mcore-tdep.c: Make all local functions static.
4170 (_initialize_mcore_tdep): Add declaration.
4171 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4172 * abug-rom.c (_initialize_abug_rom): Add declaration.
4173 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4174 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4175 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4176 * remote-est.c (_initialize_est): Add declaration.
4177 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4178 (m68hc11_call_dummy_address): Make static.
4179 * ia64-tdep.c: Make local functions static.
4180 (_initialize_ia64_tdep): Add declaration.
4181 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4182 * monitor.c (monitor_wait_filter): Make static.
4183 (_initialize_remote_monitors): Add declaration.
4184 * remote-hms.c (_initialize_remote_hms): Add declaration.
4185 * remote-e7000.c (fetch_regs_from_dump): Make static.
4186 (expect_n): Make static.
4187 (_initialize_remote_e7000): Add declaration.
4188 * ser-e7kpc.c: Always include "defs.h".
4189 (_initialize_ser_e7000pc): Add declaration.
4190 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4191 * cris-tdep.c: Make all but one function static.
4192 (_initialize_cris_tdep): Add declaration.
4193 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4194 * solib.c (update_solib_list): Make static.
4195 (_initialize_solib): Add declaration.
4196 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4197 (_initialize_avr_tdep): Add declaration.
4198 * remote-rdi.c (voiddummy): Make static.
4199 (_initialize_remote_rdi): Add declaration.
4200 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4201 * remote-rdp.c (send_rdp): Make static.
4202 (_initialize_remote_rdp): Add declaration.
4203 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4204
4205 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4206
4207 * remote-fileio.c: Make ari happy.
4208
4209 2003-06-10 J. Brobecker <brobecker@gnat.com>
4210
4211 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4212 fetching the trailing bytes of the buffer we are about to write.
4213
4214 2003-06-10 Andrew Cagney <cagney@redhat.com>
4215
4216 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4217 * Makefile.in (remote-fileio.o): Update dependencies.
4218 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4219 include <setjmp.h>, or <sys/types.h> conditional on USG.
4220 (remote_fio_jmp_buf): Delete global variable.
4221
4222 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4223 Martin M. Hunt <hunt@redhat.com>
4224
4225 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4226 (SFILES): Add remote-fileio.c.
4227 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4228 dependencies for building remote.o.
4229 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4230 * remote-fileio.h: New header file defining remote File-I/O interface.
4231 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4232 static storage class.
4233 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4234 'F' packet.
4235 (_initialize_remote): Call initialize_remote_fileio().
4236 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4237 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4238 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4239 (captured_main): Initialize new ui_files.
4240 * ui-file.c: Add read and fgets input functions.
4241 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4242 (null_file_read): New function.
4243 (ui_file_read): New function.
4244 (set_ui_file_read): New function.
4245 (stdio_file_read): New function.
4246 * ui-file.h: New type ui_file_read_ftype.
4247 (set_ui_file_read): Declare.
4248 (ui_file_read): Declare.
4249
4250 2003-06-09 Andrew Cagney <cagney@redhat.com>
4251
4252 * frame.h (deprecated_unwind_get_saved_register): Rename
4253 generic_unwind_get_saved_register, update comments.
4254 * mips-tdep.c (mips_get_saved_register): Update.
4255 * frame.c (deprecated_unwind_get_saved_register): Update.
4256
4257 2003-06-09 Andrew Cagney <cagney@redhat.com>
4258
4259 * vax-tdep.c (vax_frame_locals_address): Delete function.
4260 (vax_gdbarch_init): Do not set frame_locals_address.
4261 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4262 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4263 * s390-tdep.c (s390_frame_args_address): Delete function.
4264 (s390_gdbarch_init): Do not set frame_args_address or
4265 frame_locals_address.
4266 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4267 (ns32k_gdbarch_init): Do not set frame_locals_address.
4268 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4269 (hppa_frame_locals_address): Delete function.
4270 (hppa_gdbarch_init): Do not set frame_args_address, or
4271 frame_locals_address.
4272 * arm-tdep.c (arm_frame_args_address): Delete.
4273 (arm_frame_locals_address): Delete.
4274 (arm_gdbarch_init): Do not set frame_args_address, or
4275 frame_locals_address.
4276
4277 2003-06-09 Andrew Cagney <cagney@redhat.com>
4278
4279 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4280 * gdbarch.h, gdbarch.c: Re-generate.
4281 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4282 * arch-utils.c (frame_num_args_unknown): Delete function.
4283 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4284 (frame_info): Use FRAME_NUM_ARGS_P.
4285 * arm-tdep.c (arm_frame_num_args): Delete function.
4286 (arm_gdbarch_init): Do not set frame_num_args.
4287 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4288 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4289 (hppa_gdbarch_init): Do not set frame_num_args.
4290 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4291 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4292 frame_num_args to default frame_num_args_unknown.
4293 * v850-tdep.c (v850_gdbarch_init): Ditto.
4294 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4295 * sh-tdep.c (sh_gdbarch_init): Ditto.
4296 * s390-tdep.c (s390_gdbarch_init): Ditto.
4297 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4298 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4299 * mips-tdep.c (mips_gdbarch_init): Ditto.
4300 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4301 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4303 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4304 * i386-tdep.c (i386_gdbarch_init): Ditto.
4305 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4306 * frv-tdep.c (frv_gdbarch_init): Ditto.
4307 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4308 * cris-tdep.c (cris_gdbarch_init): Ditto.
4309 * avr-tdep.c (avr_gdbarch_init): Ditto.
4310 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4311
4312 2003-06-09 Andrew Cagney <cagney@redhat.com>
4313
4314 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4315 (print_frame_args): Moved to "stack.c".
4316 * stack.c: Include "gdb_assert.h".
4317 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4318 (print_frame_args): Moved from "printcmd.c".
4319 * frame.h (print_frame_args): Delete declaration.
4320 * Makefile.in (stack.o): Update dependencies.
4321
4322 2003-06-08 Andrew Cagney <cagney@redhat.com>
4323
4324 * frame.c (get_prev_frame): Remove reference to
4325 frame_args_address_correct in comments.
4326 * frame-base.c (default_frame_args_address): Delete code
4327 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4328 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4329 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4330 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4331 (vax_frame_args_address_correct): Delete declaration.
4332
4333 2003-06-08 Andrew Cagney <cagney@redhat.com>
4334
4335 * gdbarch.sh (UNWIND_SP): Add.
4336 * gdbarch.h, gdbarch.c: Re-generate.
4337 * frame.c (frame_sp_unwind): New function.
4338 (get_frame_sp): New function.
4339 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4340 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4341 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4342 value.
4343 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4344 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4345
4346 2003-06-08 Andrew Cagney <cagney@redhat.com>
4347
4348 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4349 REMOTE_BREAKPOINT.
4350 * remote.c: Update.
4351 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4352 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4353 * config/m68k/tm-sun3.h: Update.
4354 * config/m68k/tm-m68klynx.h: Update.
4355 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4356
4357 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4358 trad_frame". Update comments.
4359 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4360 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4361 (trad_frame_register_value, trad_frame_prev_register): Update.
4362
4363 2003-06-08 Andrew Cagney <cagney@redhat.com>
4364
4365 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4366 from GCC's acinclude.m4.
4367 * configure.in: Check for getopt's delcaration.
4368 * aclocal.m4, config.in, configure: Re-generate.
4369 * main.c (error_init): Delete declaration.
4370 * defs.h (error_init): Declare.
4371 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4372 (rs6000_convert_from_func_ptr_addr): Make static.
4373 (_initialize_rs6000_tdep): Add declaration.
4374 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4375 (show_commands, set_verbose, show_history): Delete declaration.
4376 * top.h (set_verbose): Add declaration.
4377 (show_history, set_history, show_commands): Add declaration.
4378 (do_restore_instream_cleanup): Add declaration.
4379 * objc-lang.c (specialcmp): Make static.
4380 (print_object_command): Make static.
4381 (find_objc_msgsend): Make static.
4382 (find_objc_msgcall_submethod_helper): Make static.
4383 (find_objc_msgcall_submethod): Make static.
4384 (_initialize_objc_language): Add declaration.
4385 (find_implementation_from_class): Make static.
4386 (find_implementation): Make static.
4387 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4388 * objc-lang.h (lookup_struct_typedef): Add declaration.
4389 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4390 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4391 (do_restore_user_call_depth): Make static.
4392 (do_restore_instream_cleanup): Delete declaration.
4393 (dont_repeat): Delete declaration.
4394 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4395 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4396 * reggroups.c (_initialize_reggroup): Add declaration.
4397 * cp-support.c (_initialize_cp_support): Add declaration.
4398 * cp-abi.c (_initialize_cp_abi): Add declaration.
4399 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4400 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4401 (_initialize_gnu_v3_abi): Add declaration.
4402 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4403 (_initialize_gnu_v2_abi): Add declaration.
4404 * frame-base.c (_initialize_frame_base): Add declaration.
4405 * doublest.c (floatformat_from_length): Make static.
4406 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4407 * frame.c (create_sentinel_frame): Make static.
4408 (_initialize_frame): Add declaration.
4409 * top.c (do_catch_errors): Make static.
4410 (gdb_rl_operate_and_get_next_completion): Make static.
4411 * typeprint.c: Include "typeprint.h".
4412 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4413 (sentinel_frame_this_id): Make static.
4414 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4415 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4416 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4417 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4418 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4419 * maint.c (maintenance_print_architecture): Make static.
4420 * signals/signals.c (_initialize_signals): Add declaration.
4421 * std-regs.c (_initialize_frame_reg): Add declaration.
4422 * jv-exp.y (push_variable): ISO C definition.
4423 (push_qualified_expression_name): Ditto.
4424 * memattr.c (_initialize_mem): Add declaration.
4425 * remote.c (remote_check_watch_resources): Make static.
4426 (remote_stopped_by_watchpoint): Make static.
4427 (remote_stopped_data_address): Make static.
4428 * d10v-tdep.c (nr_dmap_regs): Make static.
4429 (a0_regnum): Make static.
4430 (d10v_frame_unwind_cache): Make static.
4431 (d10v_frame_p): Make static.
4432 * osabi.c (show_osabi): Make static.
4433 (_initialize_gdb_osabi): Add extern declaration.
4434 * gdbtypes.c (make_qualified_type): Make static.
4435 (safe_parse_type): Make static.
4436 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4437 * macrotab.c (macro_bcache_free): Make static.
4438 * interps.c (interp_set_quiet): Make static.
4439 (interpreter_exec_cmd): Make static.
4440 * stack.h (select_frame_command): New file.
4441 * stack.c: Include "stack.h".
4442 (select_frame_command_wrapper): Delete function.
4443 (select_frame_command): Make global.
4444 * infcall.c: Include "infcall.h".
4445 * linespec.c: Include "linespec.h".
4446 * symfile.c (sections_overlap): Make static.
4447 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4448 * charset.c (_initialize_charset): Add missing prototype.
4449 * regcache.c (init_legacy_regcache_descr): Make static.
4450 (do_regcache_xfree): Make static.
4451 (regcache_xfer_part): Make static.
4452 (_initialize_regcache): Add missing prototype.
4453 * breakpoint.c (parse_breakpoint_sals): Make static.
4454 (breakpoint_sals_to_pc): Make static.
4455 * interps.h (clear_interpreter_hooks): ISO C declaration.
4456 * Makefile.in (stack_h): Define.
4457 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4458 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4459
4460 2003-06-08 Andrew Cagney <cagney@redhat.com>
4461
4462 * Makefile.in (d10v-tdep.o): Update dependencies.
4463 (SFILES): Add trad-frame.c.
4464 (trad_frame_h): Define.
4465 (COMMON_OBS): Add trad-frame.o.
4466 (trad-frame.o): Specify dependencies.
4467 * d10v-tdep.c: Include "trad-frame.h".
4468 (saved_regs_unwinder): Delete function.
4469 (d10v_frame_prev_register): Use trad_frame_prev_register.
4470 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4471 trad_frame", delete "regs" and "prev_sp".
4472 (prologue_find_regs): Use trad-frame.
4473 * trad-frame.h, trad-frame.c: New files.
4474
4475 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4476
4477 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4478
4479 2003-06-07 Adam Fedor <fedor@gnu.org>
4480
4481 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4482 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4483 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4484 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4485 resolve_msgsend_super, resolve_msgsend_super_stret):
4486 Use it.
4487
4488 2003-06-07 Andrew Cagney <cagney@redhat.com>
4489
4490 * symfile.h: Re-indent, clean up comments.
4491
4492 2003-06-07 Andrew Cagney <cagney@redhat.com>
4493
4494 * inferior.h (deprecated_write_sp): Replace
4495 generic_target_write_sp.
4496 * regcache.c (deprecated_write_sp): Replace
4497 generic_target_write_sp.
4498 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4499 * vax-tdep.c (vax_gdbarch_init): Update.
4500 * v850-tdep.c (v850_gdbarch_init): Update.
4501 * sparc-tdep.c (sparc_gdbarch_init): Update.
4502 * sh-tdep.c (sh_gdbarch_init): Update.
4503 * s390-tdep.c (s390_gdbarch_init): Update.
4504 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4505 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4506 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4507 * mcore-tdep.c (mcore_gdbarch_init): Update.
4508 * m68k-tdep.c (m68k_gdbarch_init): Update.
4509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4510 * ia64-tdep.c (ia64_gdbarch_init): Update.
4511 * h8300-tdep.c (h8300_gdbarch_init): Update.
4512 * frv-tdep.c (frv_gdbarch_init): Update.
4513 * cris-tdep.c (cris_gdbarch_init): Update.
4514 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4515
4516 2003-06-07 Andrew Cagney <cagney@redhat.com>
4517
4518 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4519 Assert that PC_REGNUM is valid.
4520 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4521
4522 2003-06-07 Andrew Cagney <cagney@redhat.com>
4523
4524 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4525 * gdbarch.h, gdbarch.c: Regenerate.
4526 * mn10300-tdep.c: Include "gdb_assert.h".
4527 (mn10300_read_fp): New function.
4528 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4529 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4530 * ia64-tdep.c: Include "gdb_assert.h".
4531 (ia64_read_fp): New function.
4532 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4533 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4534 * regcache.c (generic_target_read_sp): Delete function.
4535 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4536 * inferior.h (generic_target_read_sp): Delete declaration.
4537 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4538 generic_target_read_sp.
4539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4540 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4541 * sh-tdep.c (sh_gdbarch_init): Ditto.
4542 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4543 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4544
4545 2003-06-07 Andrew Cagney <cagney@redhat.com>
4546
4547 * gdbarch.sh: Comment each field of startup_gdbarch.
4548 * gdbarch.h, gdbarch.c: Re-generate.
4549
4550 2003-06-07 Andrew Cagney <cagney@redhat.com>
4551
4552 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4553 * gdbarch.h, gdbarch.c: Re-generate.
4554 * regcache.c: Update comments on read_pc et.al.
4555 (generic_target_read_pc): Delete function.
4556 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4557 * inferior.h (generic_target_read_pc): Delete declaration.
4558 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4559 generic_target_read_pc.
4560 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4561 * sh-tdep.c (sh_gdbarch_init): Ditto.
4562 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4563 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4564
4565 2003-06-07 Andrew Cagney <cagney@redhat.com>
4566
4567 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4568 "index" with "special_local_sect". Use strcmp instead of STREQ.
4569 Append period to coments.
4570
4571 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4572
4573 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4574 (elfstab_offset_sections): Likewise.
4575 * gdb-stabs.h (stab_section_info): Likewise.
4576 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4577 * objfiles.c (objfile_relocate): Likewise.
4578 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4579 * remote.c (get_offsets): Likewise.
4580 (remote_cisco_objfile_relocate): Likewise.
4581 * somread.c (som_symfile_offsets): Likewise.
4582 * symfile.c (alloc_section_addr_info): New function.
4583 (build_section_addr_info_from_section_tab): Use it.
4584 (free_section_addr_info): Adjust.
4585 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4586 (syms_from_objfile): Allocate local_addr dynamically.
4587 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4588 dynamically.
4589 (add_symbol_file_command): Allocate sect_opts dynamically.
4590 (reread_symbols): Avoid use of SECT_OFF_MAX.
4591 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4592 (alloc_section_addr_info): Declare it.
4593 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4594 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4595 dynamically.
4596 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4597
4598 2003-06-06 Andrew Cagney <cagney@redhat.com>
4599
4600 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4601 (d10v_frame_unwind_cache): Do not set "return_pc".
4602
4603 2003-06-06 Michael Snyder <msnyder@redhat.com>
4604
4605 * h8300-tdep.c: Make tidy (long lines).
4606
4607 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4608
4609 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4610 to regcache_collect().
4611
4612 2003-06-05 J. Brobecker <brobecker@gnat.com>
4613
4614 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4615 pc_in_sigtramp multiarch method.
4616 (hppa_hpux_som_init_abi): Use it.
4617 (hppa_hpux_elf_init_abi): Likewise.
4618 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4619 macro has been multiarched.
4620 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4621 macro here, as hppa64 isn't multiarched yet.
4622
4623 2003-06-05 Andrew Cagney <cagney@redhat.com>
4624
4625 * Makefile.in (value_h): Add $(frame_h).
4626 * value.h: Include "frame.h".
4627 (struct value): Replace "frame_addr" with "frame_id".
4628 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4629 * values.c (allocate_value): Use VALUE_FRAME_ID.
4630 (value_copy): Use VALUE_FRAME_ID.
4631 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4632 * valops.c (value_assign): Update. Use frame_find_by_id.
4633
4634 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4635
4636 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4637 in each pass.
4638
4639 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4640
4641 * thread-db.c (check_event): For create/death event breakpoints,
4642 loop through all messages to ensure that we read the message
4643 corresponding to the breakpoint we are at.
4644
4645 2003-06-04 Michael Snyder <msnyder@redhat.com>
4646
4647 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4648
4649 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4650
4651 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4652 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4653 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4654 when handling .eh_frame sections.
4655
4656 2003-06-04 J. Brobecker <brobecker@gnat.com>
4657
4658 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4659 prepare_to_proceed procedure instead of the hppa-specific one.
4660 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4661
4662 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4663
4664 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4665 * config.in: Regenerated.
4666 * configure.in: Add test for syscall function and check for
4667 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4668 * configure: Regenerated.
4669 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4670 <sys/syscall.h>.
4671 (kill_lwp): New function that uses tkill syscall or
4672 uses kill, depending on whether threading model is nptl or not.
4673 All callers of kill() changed to use kill_lwp().
4674 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4675 see if all threads have already exited in the nptl model.
4676 (stop_and_resume_callback): New callback function used by the
4677 lin_lwp_wait thread exit handling code.
4678 (stop_wait_callback): Check for threads already having exited and
4679 delete such threads fromt the lwp list when discovered.
4680 (stop_callback): Don't assert retcode of kill call.
4681
4682 Roland McGrath <roland@redhat.com>
4683 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4684 nptl libthread_db.
4685
4686 2003-06-03 Richard Henderson <rth@redhat.com>
4687
4688 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4689 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4690 (alpha_sigtramp_frame_prev_register): Likewise.
4691 (alpha_heuristic_frame_prev_register): Likewise.
4692 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4693
4694 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4695 alpha-specific register id names.
4696 (alpha_mdebug_frame_unwind_cache): Likewise.
4697 (alpha_mdebug_frame_prev_register): Likewise.
4698
4699 2003-06-03 Richard Henderson <rth@redhat.com>
4700
4701 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4702 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4703 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4704 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4705 unwind routines.
4706 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4707 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4708 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4709
4710 * alpha-linux-tdep.c: Remove unnecessary includes.
4711 * Makefile.in (alpha-linux-tdep.o): Update.
4712
4713 2003-06-03 Richard Henderson <rth@redhat.com>
4714
4715 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4716 (alphabsd_fill_fpreg): Likewise.
4717
4718 2003-06-03 J. Brobecker <brobecker@gnat.com>
4719
4720 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4721 references to struct frame_info fields by calls to the equivalent
4722 accessors. Necessary now that frame_info is opaque.
4723
4724 2003-06-03 J. Brobecker <brobecker@gnat.com>
4725
4726 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4727 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4728 structure, field no longer exists.
4729
4730 2003-06-03 J. Brobecker <brobecker@gnat.com>
4731
4732 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4733 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4734
4735 2003-06-03 J. Brobecker <brobecker@gnat.com>
4736
4737 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4738 references to struct frame_info fields by calls to the equivalent
4739 accessors. Necessary now that frame_info is opaque.
4740
4741 2003-06-03 J. Brobecker <brobecker@gnat.com>
4742
4743 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4744 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4745 structure, field no longer exists.
4746
4747 2003-06-03 Theodore A. Roth <troth@openavr.org>
4748
4749 * remote.c (init_remote_state): Compute sizeof_g_packet by
4750 accumulation of the size of all registers instead of blindly using
4751 DEPRECATED_REGISTER_BYTES.
4752
4753 2003-06-03 Michael Snyder <msnyder@redhat.com>
4754
4755 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4756 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4757 for h8300sx.
4758
4759 2003-06-03 J. Brobecker <brobecker@gnat.com>
4760
4761 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4762 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4763
4764 2003-06-03 Andrew Cagney <cagney@redhat.com>
4765
4766 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4767 (sparc_convert_to_raw): Delete function.
4768 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4769 register_convert_to_virtual.
4770
4771 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4772
4773 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4774 layer if not dealing with a statically-linked threaded program.
4775
4776 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4777
4778 * solib.c (solib_open): Update comment to reflect actual search order.
4779
4780 2003-06-03 Andrew Cagney <cagney@redhat.com>
4781
4782 * frame.c (get_frame_memory_signed): New function.
4783 (get_frame_memory, get_frame_memory_unsigned): New function.
4784 (get_frame_arch): New function.
4785 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4786 (get_frame_memory, get_frame_unsigned_memory): Declare.
4787 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4788 get_frame_memory_unsigned and get_frame_arch.
4789 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4790
4791 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4792
4793 * MAINTAINERS (write after approval): Add myself.
4794
4795 2003-06-03 Jim Blandy <jimb@redhat.com>
4796
4797 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4798 elements of gregset_t are 64 bits each, but access registers
4799 are still 32 bits, so they're packed two per gregset_t
4800 element. Unpack/pack them properly.
4801
4802 2003-06-02 David Carlton <carlton@bactrian.org>
4803
4804 * linespec.c (find_methods): Break out code into
4805 add_matching_methods and add_constructors.
4806 (add_matching_methods): New.
4807 (add_constructors): Ditto.
4808
4809 2003-06-02 Andrew Cagney <cagney@redhat.com>
4810
4811 * sparc-tdep.c (sparc_print_registers): Delete call to
4812 REGISTER_CONVERTIBLE.
4813 (sparc_gdbarch_init): Do not set register_convertible.
4814 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4815 * frv-tdep.c (frv_gdbarch_init): Ditto.
4816 * cris-tdep.c (cris_gdbarch_init): Ditto.
4817
4818 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4819
4820 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4821 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4822 (syms_from_objfile): Ditto.
4823
4824 2003-06-03 Andreas Schwab <schwab@suse.de>
4825
4826 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4827 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4828
4829 2003-06-02 Richard Henderson <rth@redhat.com>
4830
4831 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4832 a member of all_reggroup.
4833
4834 2003-06-02 Richard Henderson <rth@redhat.com>
4835
4836 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4837 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4838 (alpha_lds, alpha_sts): New.
4839 (alpha_convert_register_p): Change from _register_convertible.
4840 (alpha_register_to_value): Change from _convert_to_virtual;
4841 restructure and fail for type sizes other than 4 or 8.
4842 (alpha_value_to_register): Similarly.
4843 (alpha_extract_return_value): Use alpha_sts.
4844 (alpha_store_return_value): Use alpha_lds.
4845 (alpha_gdbarch_init): Update hooks.
4846
4847 2003-06-02 Richard Henderson <rth@redhat.com>
4848
4849 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4850 regnum identifiers.
4851 (alpha_sigtramp_register_address): Likewise.
4852
4853 2003-06-02 Richard Henderson <rth@redhat.com>
4854
4855 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4856 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4857 * alpha-tdep.h: Declare them.
4858
4859 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4860 Remove zerobuf. Don't error on UNIQUE.
4861 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4862 (ALPHA_REGSET_UNIQUE): Provide default.
4863 (supply_gregset): Use alpha_supply_int_regs.
4864 (fill_gregset): Use alpha_fill_int_regs.
4865 (supply_fpregset): Use alpha_supply_fp_regs.
4866 (fill_fpregset): Use alpha_fill_fp_regs.
4867 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4868 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4869 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4870 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4871 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4872 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4873
4874 2003-06-02 Richard Henderson <rth@redhat.com>
4875
4876 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4877
4878 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4879 (alpha_store_return_value): Likewise.
4880
4881 2003-06-02 David Carlton <carlton@math.stanford.edu>
4882
4883 * block.c (contained_in): Add 'const' to arguments.
4884 (block_function): Ditto.
4885 * block.h: Update declarations for block_function and
4886 contained_in.
4887
4888 2003-06-02 David Carlton <carlton@math.stanford.edu>
4889
4890 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4891 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4892 * p-valprint.c (pascal_val_print): Ditto.
4893 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4894
4895 2003-06-02 Richard Henderson <rth@redhat.com>
4896
4897 * alpha-tdep.c (alpha_push_dummy_call): Use
4898 builtin_type_ieee_double_little instead of builtin_type_double.
4899
4900 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4901 sign-extension of 32-bit values.
4902 (alpha_store_return_value): Similarly.
4903
4904 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4905 (alpha_extract_return_value): Likewise.
4906 (alpha_store_return_value): Likewise.
4907
4908 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4909 (alpha_store_return_value): Error on IEEE Quad floats.
4910
4911 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4912 (alpha_extract_struct_value_address): Likewise.
4913 (alpha_store_return_value): Likewise.
4914 (alpha_store_struct_return): Remove.
4915 (alpha_gdbarch_init): Update hook registration to match.
4916
4917 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4918 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4919 macros where appropriate.
4920 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4921 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4922
4923 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4924 for SP, GP; void_func_ptr for PC; non-language-specific types
4925 for all others.
4926 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4927
4928 2003-06-02 Richard Henderson <rth@redhat.com>
4929
4930 * top.h (lim_at_start): Declare.
4931 * main.c (captured_main): Set it.
4932 * top.c (lim_at_start): Define.
4933 (command_loop): Use it instead of &environ.
4934 * event-top.c (command_handler): Likewise.
4935
4936 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4937
4938 * mipsnbsd-tdep.c: Update copyright years.
4939 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4940
4941 2003-06-01 Richard Henderson <rth@redhat.com>
4942
4943 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4944 (alpha-linux-tdep.o): Update dependencies.
4945 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4946 * alpha-mdebug-tdep.c: Remove unneeded includes.
4947
4948 2003-06-01 Richard Henderson <rth@redhat.com>
4949
4950 * alpha-tdep.c (alpha_register_reggroup_p): New.
4951 (alpha_gdbarch_init): Register it.
4952
4953 2003-06-02 Andrew Cagney <cagney@redhat.com>
4954
4955 * dwarfread.c: Eliminate "register"
4956 (decode_die_type): Eliminate assignment within "if".
4957 (struct_type, decode_array_element_type): Ditto.
4958 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4959 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4960 (decode_modified_type, completedieinfo): Ditto.
4961 * block.c: Eliminate "register".
4962 (blockvector_for_pc_sect): Eliminate assignment within "if".
4963 * cp-support.h (struct symbol): Opaque declaration.
4964 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4965
4966 2003-06-01 Richard Henderson <rth@redhat.com>
4967
4968 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4969 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4970
4971 2003-06-01 Adam Fedor <fedor@gnu.org>
4972
4973 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4974 * gdbarch.[ch]: Regenerate.
4975 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4976 (hppa_gdbarch_init): Set it in the gdbarch vector.
4977 * i386-tdep.c (i386_fetch_pointer_argument): New
4978 (i386_gdbarch_init): Set it into gdbarch.
4979 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4980 (rs6000_gdbarch_init): Set it in gdbarch.
4981 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4982 (sparc_gdbarch_init): Set it in gdbarch.
4983
4984 2003-06-01 Andrew Cagney <cagney@redhat.com>
4985
4986 * defs.h (extract_address): Delete declaration.
4987 * findvar.c (extract_address): Delete function.
4988 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4989 extract_address with the inline equivalent,
4990 extract_unsigned_integer.
4991 (xstormy16_extract_struct_value_address): Ditto.
4992 (xstormy16_pointer_to_address): Ditto.
4993 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4994 * v850-tdep.c (v850_push_arguments): Ditto.
4995 (v850_extract_return_value): Ditto.
4996 (v850_extract_struct_value_address): Ditto.
4997 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4998 (sparcnbsd_get_longjmp_target_64): Ditto.
4999 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5000 (get_longjmp_target): Ditto.
5001 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5002 (sh64_extract_struct_value_address): Ditto.
5003 (sh_push_arguments): Ditto.
5004 (sh64_push_arguments): Ditto.
5005 * remote-vxsparc.c (vx_read_register): Ditto.
5006 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5007 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5008 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5009 * mipsv4-nat.c (get_longjmp_target): Ditto.
5010 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5011 * mips-nat.c (get_longjmp_target): Ditto.
5012 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5013 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5014 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5015 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5016 * irix5-nat.c (get_longjmp_target): Ditto.
5017 * irix4-nat.c (get_longjmp_target): Ditto.
5018 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5019 (ia64_push_arguments): Ditto.
5020 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5021 * h8300-tdep.c (h8300_push_arguments): Ditto.
5022 (h8300_store_return_value): Ditto.
5023 (h8300_extract_struct_value_address): Ditto.
5024 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5025 (frv_push_arguments): Ditto.
5026 * avr-tdep.c (avr_pointer_to_address): Ditto.
5027 (avr_push_arguments): Ditto.
5028 * arm-tdep.c (arm_push_dummy_call): Ditto.
5029 (arm_get_longjmp_target): Ditto.
5030 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5031 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5032 (alpha_get_longjmp_target): Ditto.
5033
5034 * solib-irix.c (extract_mips_address): Inline extract_address,
5035 replacing it with extract_signed_integer.
5036 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5037 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5038 (first_link_map_member, open_symbol_file_object): Ditto.
5039 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5040 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5041 (LM_NEXT, LM_NAME): Ditto.
5042
5043 2003-06-01 Richard Henderson <rth@redhat.com>
5044
5045 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5046 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5047 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5048 (alpha_cannot_store_register): Likewise.
5049 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5050 * alpha-nat.c (supply_gregset): Likewise.
5051 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5052
5053 2003-06-01 Andrew Cagney <cagney@redhat.com>
5054
5055 * infcall.c (call_function_by_hand): Update comment on
5056 DEPRECATED_DUMMY_WRITE_SP.
5057
5058 * mips-tdep.c (mips_gdbarch_init): Do not set
5059 deprecated_dummy_write_sp.
5060 (mips_eabi_push_dummy_call): Set the SP register.
5061 (mips_o64_push_dummy_call): Set the SP register.
5062 (mips_o32_push_dummy_call): Set the SP register.
5063 (mips_n32n64_push_dummy_call): Set the SP register.
5064
5065 2003-06-01 Richard Henderson <rth@redhat.com>
5066
5067 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5068 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5069 (supply_gregset): Likewise.
5070 * alpha-tdep.c (alpha_store_return_value): Likewise.
5071 (alpha_get_longjmp_target): Likewise.
5072 (alpha_register_name): Constify array.
5073 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5074 deprecated_register_size, deprecated_register_bytes,
5075 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5076 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5077 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5078
5079 2003-06-01 Richard Henderson <rth@redhat.com>
5080
5081 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5082 from arg_reg_buffer to regcache to avoid double conversion.
5083
5084 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5085
5086 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5087 SP_REGNUM.
5088 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5089 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5090
5091 2003-06-01 Richard Henderson <rth@redhat.com>
5092
5093 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5094 (decode_frame_entry): Set it. Skip FDE augmentation.
5095
5096 2003-06-01 Richard Henderson <rth@redhat.com>
5097
5098 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5099 not overlapping PC_REGNUM.
5100
5101 2003-06-01 Richard Henderson <rth@redhat.com>
5102
5103 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5104 alpha_push_arguments. Don't dump argument register data to
5105 the target stack. Fix float and 128-bit long double semantics.
5106 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5107 (alpha_fix_call_dummy): Remove.
5108 (alpha_call_dummy_words): Remove.
5109 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5110
5111 2003-06-01 Richard Henderson <rth@redhat.com>
5112
5113 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5114
5115 2003-06-01 Andrew Cagney <cagney@redhat.com>
5116
5117 * mips-tdep.c (is_mips16_addr): New function.
5118 (make_mips16_addr, unmake_mips16_addr): New functions.
5119 (pc_is_mips16, mips_fetch_instruction): Use.
5120 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5121 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5122 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5123 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5124 TARGET_MIPS.
5125 * config/mips/tm-mips.h: Update copyright.
5126 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5127 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5128 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5129 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5130 (TM_PRINT_INSN_MACH): Delete.
5131 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5132
5133 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5134 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5135 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5136 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5137 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5138 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5139 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5140 mips*-*-riscos* and mips*-*-sysv* onto mips.
5141 * config/mips/mips64.mt: New file.
5142 * config/mips/mips.mt: New file.
5143 * config/mips/littlemips.mt: Delete file.
5144 * config/mips/decstation.mt: Delete file.
5145 * config/mips/vr4300el.mt: Delete file.
5146 * config/mips/vr5000el.mt: Delete file.
5147 * config/mips/vr5000.mt: Delete file.
5148 * config/mips/vr4100.mt: Delete file.
5149 * config/mips/vr4xxxel.mt: Delete file.
5150 * config/mips/vr4300.mt: Delete file.
5151 * config/mips/vr4xxx.mt: Delete file.
5152 * config/mips/bigmips.mt: Delete file.
5153 * config/mips/bigmips64.mt: Delete file.
5154 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5155 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5156 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5157 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5158 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5159 "tm-bigmips.h".
5160 * config/mips/tm-irix3.h: Ditto.
5161 * config/mips/tm-mipsv4.h: Ditto.
5162 * config/mips/tm-embed.h: Ditto.
5163 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5164 "tm-bigmips64.h".
5165 * config/mips/tm-vr5000el.h: Delete file.
5166 * config/mips/tm-tx39l.h: Delete file.
5167 * config/mips/tm-vr4300el.h: Delete file.
5168 * config/mips/tm-vr4xxxel.h: Delete file.
5169 * config/mips/tm-vr4300.h: Delete file.
5170 * config/mips/tm-vr4100.h: Delete file.
5171 * config/mips/tm-vr4xxx.h: Delete file.
5172 * config/mips/tm-vr5000.h: Delete file.
5173 * config/mips/tm-embedl64.h: Delete file.
5174 * config/mips/tm-embedl.h: Delete file.
5175 * config/mips/tm-embed64.h: Delete file.
5176 * config/mips/tm-bigmips64.h: Delete file.
5177 * config/mips/tm-bigmips.h: Delete file.
5178
5179 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5180
5181 Fix gdb/1216.
5182 * shnbsd-nat.c: Include "sh-tdep.h".
5183
5184 From Richard Henderson <rth@redhat.com>:
5185 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5186
5187 2003-05-31 Andrew Cagney <cagney@redhat.com>
5188
5189 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5190 forward declaration.
5191 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5192 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5193 (mips_find_saved_regs): Use set_reg_offset.
5194 (mips_frame_init_saved_regs): Delete function.
5195 (mips_pop_frame): Call mips_find_saved_regs instead of
5196 DEPRECATED_FRAME_INIT_SAVED_REGS.
5197
5198 2003-05-31 Andrew Cagney <cagney@redhat.com>
5199
5200 * mips-tdep.c (mips_gdbarch_init): Do not set
5201 deprecated_max_register_raw_size, register_virtual_size, and
5202 deprecated_max_register_virtual_size.
5203
5204 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5205
5206 * i386-tdep.c: Include "dwarf2-frame.h".
5207 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5208 * Makefile.in (i386-tdep.o): Update dependencies.
5209
5210 * dwarf2-frame.c, dwarf2-frame.h: New files.
5211 * Makefile.in (SFILES): Add dwarf2-frame.c.
5212 (dwarf2_frame_h): Define.
5213 (COMMON_OBS): Add dwarf2-frame.o.
5214 (dwarf2-frame.o): Add dependencies.
5215
5216 2003-05-31 Andreas Jaeger <aj@suse.de>
5217
5218 * x86-64-linux-nat.c: Fix comment.
5219
5220 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5221
5222 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5223 function signature.
5224
5225 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5226 have a sigcontext_addr handler.
5227 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5228 sigcontext_addr handler.
5229
5230 2003-05-31 Andrew Cagney <cagney@redhat.com>
5231
5232 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5233 (print_fp_register_row): Replace do_fp_register_row.
5234 (mips_print_fp_register): Add "file" and "frame" parameters.
5235 (mips_print_register): Add "file" and "frame" parameters.
5236 (mips_print_registers_info): Replace mips_do_registers_info.
5237 (mips_gdbarch_init): Set print_registers_info instead of
5238 deprecated_do_registers_info.
5239 (mips_read_fp_register_single): Add "frame" parameter.
5240 (mips_read_fp_register_double): Add "frame" parameter.
5241
5242 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5243
5244 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5245 Fixes a bug where GDB would print the wrong register names for
5246 targets without SSE.
5247
5248 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5249 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5250 registers.
5251
5252 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5253 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5254 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5255 TDEP->sc_sp_offset.
5256
5257 From Michal Ludvig <mludvig@suse.cz>:
5258 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5259 and `sc_num_regs'.
5260 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5261 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5262 I386_ST0_REGNUM): Move here from...
5263 * i386-tdep.c: ... here.
5264 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5265 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5266 registers if possible.
5267 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5268 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5269 Remove variables.
5270 (i386bsd_sc_reg_offset): New variable.
5271 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5272 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5273 TDEP->sc_sp_offset.
5274 (i386fbsd_sc_reg_offset): New variable.
5275 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5276 TDEP->sc_num_regs.
5277 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5278 variables.
5279 (i386fbsd4_sc_reg_offset): New variable.
5280 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5281 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5282 TDEP->sc_sp_offset.
5283 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5284 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5285 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5286 Remove variables.
5287 (i386nbsd_sc_reg_offset): New variable.
5288 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5289 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5290 TDEP->sc_sp_offset.
5291 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5292 Remove variables.
5293 (i386obsd_sc_reg_offset): New variable.
5294 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5295 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5296 TDEP->sc_sp_offset.
5297 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5298 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5299 for frame pointer offset in `struct sigcontext'.
5300
5301 2003-05-31 Andrew Cagney <cagney@redhat.com>
5302
5303 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5304 architecture methods call_dummy_words, sizeof_call_dummy_words,
5305 push_return_address, store_struct_return, and fix_call_dummy. Set
5306 push_dummy_call instead of deprecated_push_arguments.
5307 (mips_store_struct_return): Delete function.
5308 (mips_fix_call_dummy): Delete function.
5309 (mips_push_return_address): Delete function.
5310 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5311 RA_REGNUM and T9_REGNUM.
5312 (mips_n32n64_push_dummy_call): Ditto for
5313 mips_n32n64_push_arguments.
5314 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5315 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5316
5317 2003-05-31 Andrew Cagney <cagney@redhat.com>
5318
5319 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5320 "dummy_addr" to "bp_addr".
5321 * infcall.c (call_function_by_hand): Pass "funaddr" to
5322 gdbarch_push_dummy_call.
5323 * gdbarch.h, gdbarch.c: Re-generate.
5324 * i386-tdep.c (i386_push_dummy_call): Update.
5325 * arm-tdep.c (arm_push_dummy_call): Update.
5326 * d10v-tdep.c (d10v_push_dummy_call): Update.
5327
5328 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5329
5330 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5331 variable declarations.
5332 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5333 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5334 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5335 x86_64_init_frame_pc, x86_64_init_frame_pc,
5336 x86_64_function_has_prologue): Remove prototypes.
5337 (X86_64_NUM_GREGS): New define.
5338 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5339 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5340 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5341 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5342 XMM1_REGNUM): Remove defines.
5343 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5344 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5345 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5346 X86_64_XMM1_REGNUM): New defines.
5347 (struct x86_64_register_info): Renamed from `struct
5348 register_info'. Remove `size' member.
5349 (x86_64_register_info_table): Remove variable.
5350 (x86_64_register_info): New variable.
5351 (X86_64_NUM_REGS): New define.
5352 (X86_64_NUM_GREGS): Remove define.
5353 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5354 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5355 Remove variables.
5356 (x86_54_dwarf2_reg_to_regnum): Remove function.
5357 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5358 (x86_64_dwarf_reg_to_regnum): New function.
5359 (x86_64_register_name): Rewrite.
5360 (x86_64_register_raw_size): Remove function.
5361 (x86_64_register_byte_table): Remove variable.
5362 (x86_64_register_byte): Remove function.
5363 (x86_64_register_virtual_type): Remove function.
5364 (x86_64_register_type): New function.
5365 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5366 x86_64_register_convert_to_raw): Remove functions.
5367 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5368 (x86_64_use_struct_convention): Make static. Adjust for renamed
5369 defines.
5370 (x86_64_frame_init_saved_regs): Remove function.
5371 (x86_64_push_arguments): Make static. Change to accept a regcache
5372 as argument.
5373 (x86_64_store_return_value, x86_64_extract_return_value): Make
5374 static. Rewrite based on i386 counterparts.
5375 (x86_64_push_dummy_call): New function.
5376 (X86_64_NUM_SAVED_REGS): New define.
5377 (x86_64_register_number): Remove function.
5378 (x86_64_store_struct_return): Remove function.
5379 (x86_64_frameless_function_invocation,
5380 x86_64_function_has_prologue): Remove functions.
5381 (PROLOG_BUFSIZE): Remove define.
5382 (struct x86_64_frame_cache): New structure.
5383 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5384 x86_64_frame_cache, x86_64_frame_this_id,
5385 x86_64_frame_prev_register, x86_64_frame_p,
5386 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5387 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5388 functions.
5389 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5390 variables.
5391 (x86_64_skip_prologue): Rewrite in terms of
5392 x86_64_analyze_prologue.
5393 (x86_64_frame_base_address): New function.
5394 (x86_64_frame_base): New variable.
5395 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5396 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5397 set deprecated_fp_regnum, deprecated_register_size,
5398 deprecated_register_bytes, register_raw_size, register_byte,
5399 register_virtual_type, register_convertiable,
5400 register_convert_to_virtual, convert_to_raw,
5401 deprecated_get_saved_register, deprecated_target_read_fp,
5402 deprecated_push_arguments, deprecated_push_return_address,
5403 deprecated_pop_frame, deprecated_store_struct_return,
5404 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5405 frameless_function_invocation, deprecated_frame_saved_pc,
5406 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5407 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5408 deprecated_init_frame_pc and virtual_frame_pointer. Call
5409 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5410 and x86_64_frame_p. Call frame_base_set_default to register
5411 x86_64_frame_base.
5412 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5413 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5414 (_initialize_x86_64_tdep): Remove function.
5415 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5416 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5417 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5418 define.
5419 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5420 (x86_64_linux_sigcontext_addr): Rewrite.
5421 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5422 x86_64_linux_frame_saved_pc): Remove functions.
5423 (x86_64_linux_pc_in_sigtramp): Renamed from
5424 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5425 trampoline.
5426 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5427 Remove_functions.
5428 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5429 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5430 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5431 (x86_64_regmap): Rename to regmap.
5432 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5433 x86_64_num_gregs.
5434 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5435 x86_64_regmap.
5436 (x86_64_fxsave_offset): Remove function.
5437 (supply_fpregset): Simply call x86_64_supply_fxsave.
5438 (fill_fpregset): Simply call x86_64_fill_fxsave.
5439 (fetch_inferior_registers, store_inferior_registers): Avoid
5440 asignment in if-statement.
5441 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5442 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5443 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5444 (fetch_core_registers): Remove function.
5445 (linux_elf_core_fns): Remove.
5446 (offsetoff): Don't define.
5447 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5448 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5449 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5450 add core-regset.o.
5451 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5452 protection against multiple includes instead of NM_X86_64_h. Add
5453 various comments. Include "config/nm-linux.h". Don't include
5454 <signal.h>.
5455 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5456 GET_THREAD_SIGNALS): Remove defines.
5457 (x86_64_register_u_addr, kernel_u_size,
5458 lin_thread_get_thread_signals): Remove prototypes.
5459 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5460 [HAVE_LINK_H]: Don't include "solib.h".
5461 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5462 * config/i386/tm-x86-64linux.h: Fix comments.
5463 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5464 x86-64-tdep.o): Update dependencies.
5465
5466 2003-05-30 Andrew Cagney <cagney@redhat.com>
5467
5468 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5469 Change parameter type to a "struct regcache *".
5470
5471 * gdbarch.sh: Regardless of the multi-arch level, always define
5472 the macro when not already defined.
5473 * gdbarch.h, gdbarch.c: Re-generate.
5474
5475 2003-05-30 Richard Henderson <rth@redhat.com>
5476
5477 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5478 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5479 (alpha_mdebug_frame_this_id): Likewise.
5480 (alpha_mdebug_frame_prev_register): Likewise.
5481 (alpha_mdebug_frame_base_address): Likewise.
5482 (alpha_mdebug_frame_locals_address): Likewise.
5483 (alpha_mdebug_frame_args_address): Likewise.
5484 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5485 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5486 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5487 loop increment.
5488 (alpha_heuristic_frame_this_id): Make static.
5489 (alpha_heuristic_frame_prev_register): Likewise.
5490 (alpha_heuristic_frame_base_address): Likewise.
5491 * alpha-tdep.h: Update.
5492
5493 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5494
5495 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5496 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5497 defenitions.
5498 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5499 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5500 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5501 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5502 I386_ST0_REGNUM): New defines.
5503 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5504 codestream_get): Remove define.
5505 (codestream_next_addr, condestream_addr, condestream_buf,
5506 codestream_off, codestream_cnt): Remove variables.
5507 (codestream_fill, codestream_seek, codestream_read): Remove
5508 functions.
5509 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5510 functionality.
5511 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5512 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5513 i386_frame_saved_pc, i386_saved_pc_after_call,
5514 i386_frame_num_args, i386_frame_init_saved_regs,
5515 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5516 i386_push_arguments): Remove functions.
5517 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5518 functionality. Use i386_analyze_prologue instead of
5519 i386_get_frame_setup.
5520 (I386_NUM_SAVED_REGS): New define.
5521 (struct i386_frame_cache): New structure.
5522 (i386_alloc_frame_cache, i386_analyze_struct_return,
5523 i386_skip_probe, i386_analyze_frame_setup,
5524 i386_analyze_register_saves, i386_analyze_prologue,
5525 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5526 i386_frame_prev_register, i386_sigtramp_frame_cache,
5527 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5528 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5529 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5530 New functions.
5531 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5532 New variables.
5533 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5534 I386_EAX_REGNUM and I386_EDX_REGNUM.
5535 (i386_extract_return_value, i386_store_return_value): Use
5536 I386_ST0_REGNUM where appropriate.
5537 (i386_extract_struct_value_address): Rewrite to use extract_address.
5538 (i386_svr4_pc_in_sigtramp): Add comment.
5539 (i386_svr4_sigcontext_addr): Rewrite.
5540 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5541 TDEP->sc_sp_offset.
5542 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5543 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5544 of new defines. Set push_dummy_call, don't set
5545 deprecated_push_arguments, deprecated_push_return_address,
5546 deprecated_pop_frame. Don't set parm_boundary. Don't set
5547 deprecated_frame_chain, deprecated_frame_saved_pc,
5548 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5549 save_dummy_frame_tos, unwind_pc. Call
5550 frame_unwind_append_predicate and frame_base_set_default. Don't
5551 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5552 Don't set frameless_function_invocation. Don't set
5553 deprecated_register_bytes, deprecated_register_size,
5554 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5555 * i386-linux-tdep.c: Fix formatting in some comments.
5556 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5557 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5558 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5559 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5560 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5561 redundant parentheses.
5562 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5563 (i386_linux_sigcontext_addr): Use it. Rewrite.
5564 (find_minsym_and_objfile): Change name of second argument.
5565 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5566 changed. Use frame_pc_unwind instead of
5567 DEPRECATED_SAVED_PC_AFTER_CALL.
5568 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5569 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5570 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5571 unwinder.
5572 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5573 "dummy-frame.h".
5574 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5575 (_initialize_i386_cygwin_tdep): New prototype.
5576 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5577 deprecated_frame_chain_valid.
5578 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5579 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5580 Rely on the SVR4 defaults.
5581 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5582 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5583
5584 2003-05-30 Andrew Cagney <cagney@redhat.com>
5585
5586 * infcall.c (call_function_by_hand): Always call
5587 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5588
5589 2003-05-30 Richard Henderson <rth@redhat.com>
5590
5591 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5592 increment.
5593
5594 2003-05-29 Jim Blandy <jimb@redhat.com>
5595
5596 Use gdbarch methods for solib stuff on PowerPC Linux.
5597 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5598 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5599 show through.
5600 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5601 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5602 giving the same effect as the #definitions above.
5603
5604 2003-05-29 Adam Fedor <fedor@gnu.org>
5605
5606 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5607 (find_implementation_from_class): Replace it with the standard
5608 case i.e. do nothing.
5609
5610 2003-05-29 Richard Henderson <rth@redhat.com>
5611
5612 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5613 (alpha_linux_sigtramp_offset): Use it. Make static.
5614 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5615 update for new frame model.
5616 * alpha-mdebug-tdep.c: New file.
5617 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5618 (alpha_osf1_init_abi): Install it.
5619 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5620 (linked_proc_desc_table): Remove.
5621 (alpha_frame_past_sigtramp_frame): Remove.
5622 (alpha_dynamic_sigtramp_offset): Remove.
5623 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5624 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5625 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5626 (push_sigtramp_desc): Remove.
5627 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5628 (alpha_cannot_store_register): Likewise.
5629 (alpha_sigcontext_addr): Remove.
5630 (alpha_find_saved_regs): Remove.
5631 (alpha_frame_init_saved_regs): Remove.
5632 (alpha_init_frame_pc_first): Remove.
5633 (read_next_frame_reg): Remove.
5634 (alpha_frame_saved_pc): Remove.
5635 (alpha_saved_pc_after_call): Remove.
5636 (temp_proc_desc, temp_saved_regs): Remove.
5637 (alpha_about_to_return): Remove.
5638 (cached_proc_desc): Remove.
5639 (alpha_frame_chain): Remove.
5640 (alpha_print_extra_frame_info): Remove.
5641 (alpha_init_extra_frame_info): Remove.
5642 (alpha_frame_locals_address): Remove.
5643 (alpha_frame_args_address): Remove.
5644 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5645 (alpha_push_dummy_frame): Remove.
5646 (alpha_pop_frame): Remove.
5647 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5648 (alpha_read_insn): New.
5649 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5650 for different insn encodings.
5651 (alpha_in_lenient_prologue): Remove.
5652 (struct alpha_sigtramp_unwind_cache): New.
5653 (alpha_sigtramp_frame_unwind_cache): New.
5654 (alpha_sigtramp_register_address): New.
5655 (alpha_sigtramp_frame_this_id): New.
5656 (alpha_sigtramp_frame_prev_register): New.
5657 (alpha_sigtramp_frame_unwind): New.
5658 (alpha_sigtramp_frame_p): New.
5659 (struct alpha_heuristic_unwind_cache): New.
5660 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5661 don't count nop insns that occur between functions.
5662 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5663 heuristic_proc_desc, but without the mdebug wrapping.
5664 (alpha_heuristic_frame_this_id): New.
5665 (alpha_heuristic_frame_prev_register): New.
5666 (alpha_heuristic_frame_unwind): New.
5667 (alpha_heuristic_frame_p): New.
5668 (alpha_heuristic_frame_base_address): New.
5669 (alpha_heuristic_frame_base): New.
5670 (alpha_unwind_dummy_id): New.
5671 (alpha_unwind_pc): New.
5672 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5673 frame related deprecated initializations; install replacements.
5674 (alpha_dump_tdep): Remove.
5675 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5676 (alpha_read_insn, alpha_after_prologue,
5677 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5678 alpha_heuristic_frame_prev_register,
5679 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5680 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5681 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5682 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5683
5684 2003-05-29 Andrew Cagney <cagney@redhat.com>
5685
5686 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5687 dependant on the availability of ASSERT_FUNCTION.
5688 (ASSERT_FUNCTION): Do not define when there is no function name.
5689
5690 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5691
5692 From Jimi X <jimix@watson.ibm.com>:
5693 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5694
5695 2003-05-28 Jim Blandy <jimb@redhat.com>
5696
5697 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5698 argument to ptrace to int; the system headers should give it the
5699 right type, and pointers don't fit in ints on powerpc64-*-*.
5700
5701 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5702
5703 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5704 DW_TAG_catch_block.
5705
5706 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5707
5708 * stabsread.c (dbx_lookup_type): Make static.
5709 (read_type): Ditto.
5710 (add_undefined_type): Ditto.
5711 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5712 not export.
5713
5714 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5715
5716 * hpread.c (hpread_has_name): Make static.
5717 (hpread_psymtab_to_symtab): Ditto.
5718 (file_exists): Ditto.
5719 (hpread_call_pxdb): Ditto.
5720 (hpread_pxdb_needed): Ditto.
5721 (hpread_quick_traverse): Ditto.
5722 (hpread_get_header): Ditto.
5723 (hpread_get_lntt): Ditto.
5724 (hpread_get_slt): Ditto.
5725 (class_of): Ditto.
5726
5727 2003-05-25 Andreas Schwab <schwab@suse.de>
5728
5729 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5730 stack_align and deprecated_extra_stack_alignment_needed.
5731 (m68k_stack_align): Delete.
5732
5733 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5734 (m68k_register_virtual_size): Likewise.
5735 (altos_skip_prologue): Remove obsolete function.
5736 (isi_frame_num_args): Likewise.
5737 (news_frame_num_args): Likewise.
5738 (m68k_fix_call_dummy): Make static.
5739 (m68k_push_dummy_frame): Likewise.
5740 (m68k_pop_frame): Likewise.
5741 (m68k_skip_prologue): Likewise.
5742 (m68k_frame_init_saved_regs): Likewise.
5743 (m68k_saved_pc_after_call): Likewise.
5744 (m68k_get_longjmp_target): Make multi-arch.
5745 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5746 structure. Register m68k_get_longjmp_target if enabled.
5747 * m68k-tdep.h (struct gdbarch_tdep): Define.
5748 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5749
5750 * Makefile.in (config.status): Also depend on configure.tgt
5751 and configure.host.
5752 (m68klinux-tdep.o): Update dependencies.
5753 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5754 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5755 (M68K_LINUX_JB_PC): Define.
5756 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5757 and take additional parameter.
5758 (m68k_linux_sigtramp_saved_pc): Update.
5759 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5760 m68k_linux_pc_in_sigtramp, in_plt_section,
5761 find_solib_trampoline_target.
5762 * config/m68k/tm-linux.h: Don't include any tm headers.
5763 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5764 (JB_ELEMENT_SIZE): Likewise.
5765 (JB_PC): Likewise.
5766 (GET_LONGJMP_TARGET): Likewise.
5767 (IN_SIGTRAMP): Likewise.
5768 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5769
5770 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5771
5772 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5773 (sparc32_push_arguments): Re-implement by calling
5774 sparc32_do_push_arguments.
5775
5776 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5777
5778 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5779 SPARC_O1_REGNUM): New defines.
5780 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5781 (sparc32_store_return_value): New function.
5782 (sparc_extract_struct_value_address): Rewrite to operate on a
5783 regcache.
5784 (sparc_gdbarch_init): Don't set
5785 deprecated_extract_struct_value_address. Set
5786 extract_struct_value_address instead. Don't set
5787 deprecated_extract_return_value and deprecated_store_return_value
5788 for 32-bit targets. Set extract_return_value and
5789 store_return_value instead.
5790 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5791 DEPRECTAED_EXTRACT_RETURN_VALUE,
5792 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5793 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5794 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5795 (sparc_store_return_value): Remove prototype.
5796 (sparc32_store_return_value): New prototype.
5797 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5798 Adjust prototypes.
5799
5800 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5801
5802 * sparcnbsd-tdep.c: Include "gdb_string.h".
5803
5804 2003-05-23 Andrew Cagney <cagney@redhat.com>
5805
5806 * p-valprint.c (pascal_val_print): Replace extract_address with
5807 the inline equivalent extract_unsigned_integer.
5808 * jv-valprint.c (java_value_print): Ditto.
5809 * ada-valprint.c (ada_val_print_1): Ditto.
5810 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5811
5812 2003-05-23 Theodore A. Roth <troth@openavr.org>
5813
5814 * blockframe.c (frameless_look_for_prologue): Remove unused
5815 after_prologue variable.
5816
5817 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5818
5819 * blockframe.c (get_pc_function_start): Rewrite to avoid
5820 asignments in if-statements.
5821
5822 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5823
5824 Committed by Elena Zannoni <ezannoni@redhat.com>.
5825 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5826 files, don't relocate absolute symbols (and do use mst_abs).
5827
5828 2003-05-23 Andrew Cagney <cagney@redhat.com>
5829
5830 * objc-lang.c: Include "gdb_assert.h".
5831 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5832 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5833 (gdb_check, gdb_check_fatal): Delete functions.
5834 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5835 gdb_assert.
5836 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5837 * Makefile.in (objc-lang.o): Update dependencies.
5838
5839 2003-05-22 Ian Lance Taylor <ian@airs.com>
5840
5841 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5842 with fprintf_filtered, not fprintf_unfiltered.
5843
5844 2003-05-22 Andrew Cagney <cagney@redhat.com>
5845
5846 * stack.c (frame_info): Inline extract_address, replacing it with
5847 extract_unsigned_integer.
5848 * findvar.c (unsigned_pointer_to_address): Ditto.
5849 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5850 * dwarf2expr.c (dwarf2_read_address): Ditto.
5851 * frame.c (frame_pc_unwind): Update comment.
5852 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5853
5854 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5855
5856 * infptrace.c (detach): Call print_sys_errmsg rather than
5857 perror_with_name to issue warning message when errno is non-zero
5858 after calling ptrace detach.
5859
5860 2003-05-21 J. Brobecker <brobecker@gnat.com>
5861
5862 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5863 macro definitions from here...
5864 * hppa-tdep.c: ...to there.
5865
5866 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5867
5868 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5869 register_ptrace_addr(). Fix all callers.
5870
5871 2003-05-21 Andreas Schwab <schwab@suse.de>
5872
5873 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5874 dependencies.
5875 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5876 end.
5877 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5878 (_initialize_m68k_linux_tdep): New function.
5879 (m68k_linux_frame_saved_pc): Make static.
5880 (m68k_linux_extract_return_value): Likewise.
5881 (m68k_linux_store_return_value): Likewise.
5882 (m68k_linux_extract_struct_value_address): Likewise.
5883 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5884 Remove.
5885 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5886 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5887 (DEPRECATED_FRAME_SAVED_PC): Remove.
5888
5889 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5890
5891 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5892 regset numbering rather than our own.
5893
5894 2003-05-19 David Carlton <carlton@bactrian.org>
5895
5896 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5897
5898 2003-05-19 David Carlton <carlton@bactrian.org>
5899
5900 Partial fix for PR c++/827.
5901 * cp-support.h: Include symtab.h.
5902 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5903 * cp-namespace.c: Update contributors.
5904 (cp_lookup_symbol_nonlocal): New.
5905 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5906 (lookup_symbol_file): Ditto.
5907 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5908 * block.h: Declare block_scope, block_using, block_global_block.
5909 * block.c (block_scope): New.
5910 (block_using, block_global_block): Ditto.
5911 * Makefile.in (cp_support_h): Depend on symtab_h.
5912 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5913
5914 2003-05-19 David Carlton <carlton@bactrian.org>
5915
5916 * language.h (struct language_defn): Add 'la_value_of_this'
5917 and 'la_lookup_symbol_nonlocal' members.
5918 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5919 lookup_symbol_static, lookup_symbol_global,
5920 lookup_symbol_aux_block.
5921 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5922 if we should search fields of this and how to do static/global
5923 lookup.
5924 (lookup_symbol_aux_block): Make extern.
5925 (basic_lookup_symbol_nonlocal): New.
5926 (lookup_symbol_static, lookup_symbol_global): Ditto.
5927 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5928 'la_lookup_symbol_nonlocal' members.
5929 * c-lang.c (c_language_defn, cplus_language_defn)
5930 (asm_language_defn, minimal_language_defn): Ditto.
5931 * jv-lang.c (java_language_defn): Ditto.
5932 * language.c (unknown_language_defn, auto_language_defn)
5933 (local_language_defn): Ditto.
5934 * m2-lang.c (m2_language_defn): Ditto.
5935 * objc-lang.c (objc_language_defn): Ditto.
5936 * scm-lang.c (scm_language_defn): Ditto.
5937 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5938 * p-lang.c (pascal_language_defn): Ditto for both.
5939 * Makefile.in (f-lang.o): Depend on value_h.
5940 (p-lang.o): Ditto.
5941
5942 2003-05-19 David Carlton <carlton@bactrian.org>
5943
5944 * block.h: Declare block_static_block.
5945 * block.c (block_static_block): New.
5946 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5947 lookup_symbol_aux_local, calling block_static_block instead.
5948 (lookup_symbol_aux_local): Delete 'static_block' argument.
5949
5950 2003-05-19 David Carlton <carlton@bactrian.org>
5951
5952 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5953
5954 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5955
5956 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5957 register numbers mapping.
5958
5959 2003-05-18 Adam Fedor <fedor@gnu.org>
5960
5961 * symtab.c (completion_list_objc_symbol): New function.
5962 (make_symbol_completion_list): Use it to add ObjC symbols
5963 when looking though the list.
5964 (language_search_unquoted_string): New function.
5965 (make_file_symbol_completion_list): Use it.
5966
5967 2003-05-18 Andreas Schwab <schwab@suse.de>
5968
5969 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5970 dependencies.
5971 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5972 as m68k_linux_extract_return_value.
5973 (DEPRECATED_STORE_RETURN_VALUE): Define as
5974 m68k_linux_store_return_value.
5975 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5976 m68k_linux_extract_struct_value_address.
5977 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5978 get_next_frame, get_frame_base, get_frame_pc.
5979 (m68k_linux_frame_saved_pc): Use get_frame_base.
5980 (m68k_linux_extract_return_value): New function.
5981 (m68k_linux_store_return_value): New function.
5982 (m68k_linux_extract_struct_value_address): New function.
5983 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5984
5985 * c-exp.y (typebase): Remove duplicate occurence of
5986 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5987 of lookup_signed_typename.
5988
5989 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5990
5991 * dwarf2loc.c (find_location_expression): Change type of second
5992 argument to `size_t *'.
5993 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5994 for size variable.
5995
5996 2003-05-18 David Carlton <carlton@bactrian.org>
5997
5998 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5999 'linkage_name'. Add comment.
6000 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6001 'linkage_name'.
6002 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6003 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6004 (lookup_block_symbol): Ditto.
6005
6006 2003-05-16 Andrew Cagney <cagney@redhat.com>
6007
6008 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6009 * gdbarch.h, gdbarch.c: Re-generate.
6010 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6011 * TODO (REGISTER_BYTES): Delete reference.
6012 * alpha-tdep.c (alpha_gdbarch_init): Update.
6013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6014 * x86-64-tdep.c (x86_64_init_abi): Update.
6015 * vax-tdep.c (vax_gdbarch_init): Update.
6016 * v850-tdep.c (v850_gdbarch_init): Update.
6017 * sparc-tdep.c (sparc_gdbarch_init): Update.
6018 * sh-tdep.c (sh_gdbarch_init): Update.
6019 * s390-tdep.c (s390_gdbarch_init): Update.
6020 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6021 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6022 (ns32k_gdbarch_init_32382): Update.
6023 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6024 * mcore-tdep.c (mcore_gdbarch_init): Update.
6025 * m68k-tdep.c (m68k_gdbarch_init): Update.
6026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6027 * ia64-tdep.c (ia64_gdbarch_init): Update.
6028 * i386-tdep.c (i386_gdbarch_init): Update.
6029 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6030 * hppa-tdep.c (hppa_gdbarch_init): Update.
6031 * h8300-tdep.c (h8300_gdbarch_init): Update.
6032 * frv-tdep.c (frv_gdbarch_init): Update.
6033 * cris-tdep.c (cris_gdbarch_init): Update.
6034 * avr-tdep.c (avr_gdbarch_init): Update.
6035 * arm-tdep.c (arm_gdbarch_init): Update.
6036 * sparc-tdep.c (sparc_pop_frame): Update.
6037 * rs6000-tdep.c (rs6000_pop_frame): Update.
6038 * remote.c (init_remote_state): Update.
6039 (remote_prepare_to_store): Update.
6040 * remote-vx.c (vx_prepare_to_store): Update.
6041 * remote-sds.c (sds_fetch_registers): Update.
6042 (sds_prepare_to_store): Update.
6043 * remote-array.c: Update.
6044 * regcache.c (init_legacy_regcache_descr): Update.
6045 (init_regcache_descr): Update.
6046 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6047 (mips_o64_extract_return_value): Update.
6048 * irix5-nat.c (fetch_core_registers): Update.
6049 * irix4-nat.c (fetch_core_registers): Update.
6050 * i386-tdep.h: Update.
6051 * hppa-tdep.c (pa_do_registers_info): Update.
6052 (pa_do_strcat_registers_info): Update.
6053 * cris-tdep.c (cris_register_bytes_ok): Update.
6054 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6055 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6056 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6057 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6058 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6059 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6060 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6061 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6062 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6063 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6064 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6065 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6066 (REGISTER_BYTES_OK): Update.
6067 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6068 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6069
6070 2003-05-16 Ian Lance Taylor <ian@airs.com>
6071
6072 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6073 (vax_print_insn, print_insn_arg): Remove static functions.
6074 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6075 print_insn_vax from opcodes library.
6076 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6077
6078 2003-05-15 Andrew Cagney <cagney@redhat.com>
6079
6080 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6081 * target.h (memory_breakpoint_from_pc): Delete declaration.
6082 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6083 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6084 * monitor.c (monitor_insert_breakpoint): Use
6085 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6086 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6087 * gdbarch.h, gdbarch.c: Re-generate.
6088 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6089 (sparc_gdbarch_init): Set breakpoint_from_pc to
6090 sparc_breakpoint_from_pc.
6091 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6092 (BREAKPOINT_FROM_PC): Define.
6093 (sparc_breakpoint_from_pc): Declare.
6094 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6095 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6096 (BREAKPOINT_FROM_PC): Define.
6097 (BREAKPOINT): Delete macro.
6098 * target.h: Update comment.
6099 * s390-tdep.c (s390_gdbarch_init): Update comments.
6100 * remote.c: Update comments.
6101 * remote-mips.c: Update comments.
6102 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6103 * mem-break.c: Update comment.
6104 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6105 (ia64_memory_insert_breakpoint): Update.
6106 * config/sparc/tm-sparc.h: Update comment.
6107 * config/pa/tm-hppa64.h: Update comment.
6108 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6109 (rs6000_breakpoint_from_pc): Update.
6110 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6111 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6112 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6113 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6114 (mips_breakpoint_from_pc): Update.
6115 (mips_dump_tdep): Update.
6116
6117 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6118 * minsyms.c (lookup_minimal_symbol): Inline
6119 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6120
6121 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6122 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6123 * p-lang.c (pascal_printstr): Ditto.
6124 * objc-lang.c (objc_printstr): Ditto.
6125 * m2-lang.c (m2_printstr): Ditto.
6126 * jv-valprint.c (java_print_value_fields): Ditto.
6127 * f-lang.c (f_printstr): Ditto.
6128 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6129 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6130 for repeat_count_threshold.
6131 * Makefile.in (cp-valprint.o): Update dependencies.
6132
6133 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6134
6135 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6136 (examine_prologue): Support looking through leaf functions, knowing
6137 they start with mov r2,r12. Support skipping over indirect stores
6138 of the input registers. Upon hitting a non-nop branch instruction
6139 or predicated instruction, bail out by setting lim_pc to the current
6140 pc value in the loop. At the end, if the lim_pc value is still
6141 beyond our calculated value and we have trust_limit set,
6142 use the lim_pc value.
6143
6144 2003-05-15 Andrew Cagney <cagney@redhat.com>
6145
6146 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6147 generic_find_dummy_frame.
6148 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6149 (deprecated_generic_find_dummy_frame): Update.
6150 (deprecated_read_register_dummy): Update.
6151 * frame.c (deprecated_generic_get_saved_register): Update.
6152
6153 2003-05-15 Theodore A. Roth <troth@openavr.org>
6154
6155 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6156 (avr_gdbarch_init): Set breakpoint_from_pc method.
6157
6158 2003-05-15 Andrew Cagney <cagney@redhat.com>
6159
6160 * regcache.c (build_regcache): Set deprecated_register_valid
6161 directly.
6162 (deprecated_grub_regcache_for_register_valid): Delete function.
6163 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6164 declaration.
6165
6166 2003-05-15 David Carlton <carlton@bactrian.org>
6167
6168 Committed by Elena Zannoni <ezannoni@redhat.com>
6169 * symtab.c (lookup_symbol_aux): Delete calls to
6170 lookup_symbol_aux_minsyms.
6171 (lookup_symbol_aux_minsyms): Comment out function and
6172 prototype. Delete lookup by mangled name.
6173
6174 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6175
6176 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6177 correctly indicate an empty stack and ``stack_allocated'' to the
6178 indicate the number of elements initially allocated.
6179 (dwarf_expr_grow_stack): Simplify method for computing new
6180 stack size. Don't loop infinitely if ``stack_len'' is zero.
6181 (execute_stack_op): Move ``ctx->in_reg'' initialization
6182 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6183 be used in conjuction with DW_OP_piece. Revise error message
6184 accordingly.
6185
6186 2003-05-14 Theodore A. Roth <troth@openavr.org>
6187
6188 * MAINTAINERS: Update my email address.
6189 * avr-tdep.c: Ditto.
6190
6191 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6192
6193 * symtab.h (enum domain_enum): Rename from namespace_enum.
6194 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6195 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6196 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6197 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6198 TYPES_NAMESPACE, METHODS_NAMESPACE.
6199 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6200 (struct symbol, struct partial_symbol): Rename field
6201 'namespace_enum namespace' to 'domain_enum domain'.
6202 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6203 Delete old define kludge for namespace.
6204
6205 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6206 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6207 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6208 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6209 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6210 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6211 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6212 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6213 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6214 occurrences of the above.
6215
6216 2003-05-14 Ian Lance Taylor <ian@airs.com>
6217
6218 * Makefile.in (install-only): Use $(SHELL) when running
6219 mkinstalldirs.
6220
6221 2003-05-13 Ian Lance Taylor <ian@airs.com>
6222
6223 * MAINTAINERS (write after approval): Add myself.
6224
6225 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6226 second and third arguments.
6227 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6228 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6229
6230 2003-05-13 Andrew Cagney <cagney@redhat.com>
6231
6232 * defs.h (store_address): Delete declaration.
6233 findvar.c (store_address): Delete function.
6234 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6235 store_unsigned_integer.
6236 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6237 * v850-tdep.c (v850_push_arguments): Ditto.
6238 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6239 * sh-tdep.c (sh64_get_saved_register): Ditto.
6240 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6241 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6242 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6243 (mips_get_saved_register): Ditto.
6244 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6245 (find_func_descr, ia64_push_arguments): Ditto.
6246 * i386-tdep.c (i386_push_arguments): Ditto.
6247 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6248 * frv-tdep.c (frv_push_arguments): Ditto.
6249 * frame.c (legacy_saved_regs_prev_register): Ditto.
6250 (deprecated_generic_get_saved_register): Ditto.
6251 * findvar.c (unsigned_address_to_pointer): Ditto.
6252 * dwarf2read.c (dwarf2_const_value): Ditto.
6253 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6254 * alpha-tdep.c (alpha_push_arguments): Ditto.
6255
6256 2003-05-12 J. Brobecker <brobecker@gnat.com>
6257
6258 * NEWS: Mention that the hppa-hpux port has been partially
6259 multiarched (32bit ABIT only, so far).
6260
6261 2003-05-11 Andrew Cagney <cagney@redhat.com>
6262
6263 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6264 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6265 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6266 sim/testsuite/sim/arm/misaligned2.ms, and
6267 sim/testsuite/sim/arm/misaligned3.ms.
6268 * disasm.h (struct ui_file): Add opaque struct declaration.
6269 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6270 * frame.h (struct ui_file): Ditto.
6271
6272 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6273
6274 * value.h: Pretty print.
6275
6276 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6277
6278 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6279
6280 2003-05-08 Andrew Cagney <cagney@redhat.com>
6281
6282 * regcache.h (max_register_size): Delete declaration.
6283 * regcache.c (max_register_size): Delete function.
6284 (struct regcache_descr): Delete field "max_register_size".
6285 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6286 registers fit in MAX_REGISTER_SIZE.
6287 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6288 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6289 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6290 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6291 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6292 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6293 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6294 * dve3900-rom.c, hppa-tdep.c: Ditto.
6295
6296 2003-05-08 David Carlton <carlton@math.stanford.edu>
6297
6298 * valops.c (push_word): Fix typo.
6299
6300 2003-05-08 Andrew Cagney <cagney@redhat.com>
6301
6302 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6303 * gdbarch.h: Re-generate.
6304 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6305 (legacy_max_register_raw_size): Delete declaration.
6306 * regcache.c (legacy_max_register_raw_size): Delete function.
6307 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6308 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6309 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6310 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6311 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6312 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6313 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6314 * findvar.c, dwarf2cfi.c: Ditto.
6315
6316 2003-05-08 Andrew Cagney <cagney@redhat.com>
6317
6318 * mips-tdep.c (read_signed_register): New function, moved to here
6319 from "regcache.c".
6320 (read_signed_register_pid): Ditto.
6321 * regcache.c (read_signed_register_pid): Delete function, moved to
6322 "mips-tdep.c".
6323 (read_signed_register): Ditto.
6324 * regcache.h (read_signed_register): Delete declaration.
6325 (read_signed_register_pid): Delete declaration.
6326
6327 2003-05-08 Andrew Cagney <cagney@redhat.com>
6328
6329 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6330 * gdbarch.h: Re-generate.
6331 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6332 (legacy_max_register_virtual_size): Delete declaration.
6333 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6334 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6335 * tracepoint.c (memrange_sortmerge): Ditto.
6336 * sparc-tdep.c (sparc_print_registers): Ditto.
6337 * regcache.c (legacy_max_register_virtual_size): Delete function.
6338
6339 2002-05-08 J. Brobecker <brobecker@gnat.com>
6340
6341 * fork-child.c (escape_bang_in_quoted_argument): New function.
6342 (fork_inferior): Escape '!' characters in quoted arguments
6343 only when needed.
6344
6345 2003-05-08 J. Brobecker <brobecker@gnat.com>
6346
6347 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6348 the language of the CU is not currently supported by GDB.
6349
6350 2003-05-08 J. Brobecker <brobecker@gnat.com>
6351
6352 * defs.h (language): Add language_minimal enum value.
6353 * c-lang.c (minimal_language_defn): New language definition.
6354 (_initialize_c_language): Add the new minimal language to the list
6355 of languages known to GDB.
6356
6357 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6358
6359 * frame.c (get_frame_type): Don't attempt to lazily initialize
6360 frame's unwinder for legacy frames.
6361
6362 2003-05-07 Andrew Cagney <cagney@redhat.com>
6363
6364 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6365 and "regcache" parameters.
6366 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6367
6368 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6369
6370 * dwarf2read.c (dwarf_decode_lines): Only use output of
6371 check_cu_functions() when calling record_line(). Do not update
6372 the current address.
6373
6374 2003-05-07 Andrew Cagney <cagney@redhat.com>
6375
6376 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6377 code.
6378
6379 2003-05-07 Jim Blandy <jimb@redhat.com>
6380
6381 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6382 'maint info symtabs' and 'maint info psymtabs'.
6383 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6384 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6385 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6386 Declarations updated.
6387 * maint.c (maintenance_list_command): Delete.
6388 (_initialize_maint_cmds): Update calls to add_cmd.
6389 * gdbcmd.h (maintenancelistlist): Delete declaration.
6390 * cli/cli-cmds.c (maintenancelistlist): Delete.
6391 (init_cmd_lists): Don't initialize it.
6392 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6393
6394 2003-05-07 Andrew Cagney <cagney@redhat.com>
6395
6396 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6397 "regcache".
6398 (d10v_print_registers_info): Update.
6399 (d10v_dmap_register, d10v_imap_register): Delete functions.
6400 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6401 and "imap_register".
6402 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6403 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6404 * arch-utils.c (generic_remote_translate_xfer_address): Add
6405 "regcache" and "gdbarch" parameters.
6406 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6407 parameter. Change class to multi-arch.
6408 * gdbarch.h, gdbarch.c: Re-generate.
6409 * remote.c (remote_xfer_memory): Use
6410 gdbarch_remote_translate_xfer_address.
6411
6412 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6413
6414 * infrun.c (prev_pc): Move declaration ahead of proceed().
6415 (proceed): Refresh prev_pc value before resuming.
6416 (stop_stepping): Remove code to refresh prev_pc.
6417
6418 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6419
6420 * nto-tdep.c: Removed stray comment.
6421
6422 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6423
6424 * i386-nto-tdep.c: Fix old K&R function definitions.
6425 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6426 Also change add_show_from_set() call to add_setshow_cmd().
6427 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6428
6429 2003-05-05 Andrew Cagney <cagney@redhat.com>
6430
6431 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6432 (fprint_dummy_frames): New function.
6433 (maintenance_print_dummy_frames): New function.
6434 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6435 * frame.c (fprint_frame_id): Make global.
6436 * frame.h (fprint_frame_id): Declare.
6437 * Makefile.in (dummy-frame.o): Update dependencies.
6438
6439 2003-05-05 Andrew Cagney <cagney@redhat.com>
6440
6441 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6442 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6443 SIZEOF_CALL_DUMMY_WORDS.
6444 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6445 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6446 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6447 CALL_DUMMY_BREAKPOINT_OFFSET.
6448 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6449 CALL_DUMMY_START_OFFSET.
6450 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6451 * gdbarch.h, gdbarch.c: Re-generate.
6452 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6453 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6454 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6455 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6456 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6457 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6458 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6459 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6460 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6461 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6462 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6463 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6464 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6465 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6466 * config/sparc/tm-sparc.h: Update.
6467
6468 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6469
6470 * configure.tgt: Add i[3456]86-*-nto*.
6471 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6472 * nto-tdep.c: New file. Neutrino target support routines.
6473 * nto-tdep.h: New file. Neutrino target header.
6474 * config/tm-qnxnto.h: New file.
6475 * config/i386/i386nto.mt: New file.
6476 * config/i386/tm-i386nto.h: New file.
6477
6478 2003-05-04 Andrew Cagney <cagney@redhat.com>
6479
6480 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6481 (load_infrun_state): Ditto.
6482 (struct thread_info): Drop "prev_func_name" field.
6483 * thread.c (load_infrun_state): Update.
6484 (save_infrun_state): Update.
6485 * infrun.c (prev_func_name): Delete variable.
6486 (init_wait_for_inferior): Do not clear prev_func_name.
6487 (stop_stepping, keep_going, context_switch): Do not swap
6488 prev_func_name.
6489 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6490 instead of PC_IN_SIGTRAMP.
6491
6492 2003-05-04 Andrew Cagney <cagney@redhat.com>
6493
6494 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6495 REGISTER_BYTE with register_offset_hack.
6496 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6497 that REGISTER_BYTE is consistent with the regcache.
6498 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6499 * gdbarch.h, gdbarch.c: Regenerate.
6500
6501 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6502
6503 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6504 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6505
6506 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6507
6508 2003-05-03 J. Brobecker <brobecker@gnat.com>
6509
6510 From Thierry Schneider <tpschneider1@yahoo.com>
6511 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6512 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6513 (mi-cmd-symbol.o): Add rule.
6514
6515 2003-05-03 Andrew Cagney <cagney@redhat.com>
6516
6517 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6518 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6519 * gdbarch.h, gdbarch.c: Re-generate.
6520 * d10v-tdep.c (d10v_push_dummy_code): New function.
6521 (d10v_gdbarch_init): Set push_dummy_code.
6522 * infcall.c (legacy_push_dummy_code): New function.
6523 (generic_push_dummy_code): New function.
6524 (push_dummy_code): New function.
6525 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6526 instead of dummy_addr, to push_dummy_call. Move call to
6527 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6528 switch.
6529 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6530
6531 2003-05-03 Andrew Cagney <cagney@redhat.com>
6532
6533 * disasm.h (print_insn): Declare.
6534 * disasm.c (init_gdb_disassemble_info): New function.
6535 (gdb_disassembly): Call init_gdb_disassemble_info.
6536 (gdb_print_insn): New function.
6537 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6538 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6539 * mcore-tdep.c: Include "disasm.h"
6540 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6541 * d10v-tdep.c: Include "disasm.h".
6542 (display_trace): Call gdb_print_insn, instead of print_insn.
6543 (print_insn): Delete function.
6544 * printcmd.c: Include "disasm.h".
6545 (print_insn): Delete function.
6546 (print_formatted): Call gdb_print_insn, instead of print_insn.
6547 * Makefile.in (printcmd.o): Update dependencies.
6548 (mcore-tdep.o, d10v-tdep.o): Ditto.
6549
6550 2003-05-02 Andrew Cagney <cagney@redhat.com>
6551
6552 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6553 PC_REGNUM, re-indent.
6554 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6555 PC_REGNUM isn't set.
6556
6557 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6558 * gdbarch.h, gdbarch.c: Re-generate.
6559 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6560 register_virtual_size, pc_regnum, or register_bytes.
6561 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6562 (d10v_register_type): Use D10V_PC_REGNUM.
6563 (d10v_print_registers_info, d10v_read_pc): Ditto.
6564 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6565 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6566
6567 2003-05-02 David Carlton <carlton@bactrian.org>
6568
6569 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6570 the name with mstrsave.
6571
6572 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6573
6574 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6575 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6576 (host_charset_name, target_charset_name): New vars for use by
6577 set/show commands.
6578 (host_charset_enum, target_charset_enum): New enums for set/show
6579 commands.
6580 (set_charset_sfunc, set_host_charset_sfunc,
6581 set_target_charset_sfunc): New functions.
6582 (set_host_charset, set_target_charset): Make static.
6583 (list_charsets, set_host_charset_command,
6584 set_target_charset_command): Delete functions.
6585 (show_charset_command): Rewrite as....
6586 (show_charset): Hook this up with the set/show command mechanism.
6587 (_initialize_charset): Change names of charsets to match the
6588 set/show enums. Use host_charset_name and target_charset_name.
6589 Use set/show mechanism for charset, host-charset, target-charset
6590 commands. Do not make 'show host-charset' and 'show
6591 target-charset' be aliases of 'show charset'.
6592
6593 * charset.h (set_host_charset, set_target_charset): Don't export,
6594 they are not used outside the file.
6595
6596 2003-05-01 Andrew Cagney <cagney@redhat.com>
6597
6598 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6599 (gdb_disassembly): Make "di" non static, always initialize and
6600 cleanup. Always use dis_asm_read_memory.
6601 (gdb_dis_asm_read_memory): Delete function.
6602
6603 2003-05-01 Andrew Cagney <cagney@redhat.com>
6604
6605 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6606 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6607
6608 2003-04-30 Andrew Cagney <cagney@redhat.com>
6609
6610 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6611 "tm_print_insn_info".
6612 (TARGET_PRINT_INSN_INFO): Delete macro.
6613 (dis_asm_read_memory): Delete function declaration.
6614 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6615 (tm_print_insn_info): Delete variable definition.
6616 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6617 * gdbarch.h, gdbarch.c: Re-generate.
6618 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6619 "deprecated_tm_print_insn_info".
6620 * mcore-tdep.c (mcore_dump_insn): Ditto.
6621 * mips-tdep.c (mips_gdbarch_init): Ditto.
6622 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6623 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6624 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6625 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6626 instead of TARGET_PRINT_INSN_INFO, add comment.
6627 * s390-tdep.c (s390_get_frame_info): Instead of
6628 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6629 (s390_check_function_end, s390_is_sigreturn): Ditto.
6630 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6631 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6632 * disasm.c: Include "gdbcore.h".
6633 (_initialize_disasm): New function, initialize
6634 "deprecated_tm_print_insn_info".
6635 (deprecated_tm_print_insn_info): New variable.
6636 (dis_asm_read_memory): Moved from "corefile.c", made static.
6637 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6638 * Makefile.in (disasm.o): Update dependencies.
6639
6640 2003-04-30 Andrew Cagney <cagney@redhat.com>
6641
6642 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6643
6644 2003-04-29 Adam Fedor <fedor@gnu.org>
6645
6646 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6647 * infcall.c (find_function_addr): Make non-static.
6648 * infcall.h (find_function_addr): Declare.
6649 * Makefile.in (eval.o): Update dependencies.
6650
6651 2003-04-28 Adam Fedor <fedor@gnu.org>
6652
6653 * symtab.c (symbol_find_demangled_name): Check for and demangle
6654 ObjC symbols.
6655 (symbol_init_demangled_name): Init for language_objc as well.
6656
6657 2003-04-28 Andrew Cagney <cagney@redhat.com>
6658
6659 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6660 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6661 * gdbarch.h, gdbarch.c: Re-generate.
6662 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6663 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6664 * inferior.h (deprecated_read_fp): Rename read_fp.
6665 (generic_target_read_fp): Delete declaration.
6666 * regcache.c (generic_target_read_fp): Delete function.
6667 (deprecated_read_fp): Replace read_fp, use
6668 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6669 * d10v-tdep.c (d10v_read_fp): Delete function.
6670 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6671
6672 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6673 deprecated_target_read_fp to generic_target_read_fp.
6674 * sh-tdep.c (sh_gdbarch_init): Ditto.
6675 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6677 * frv-tdep.c (frv_gdbarch_init): Ditto.
6678
6679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6680 deprecated_fp_regnum.
6681 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6682 * vax-tdep.c (vax_gdbarch_init): Ditto.
6683 * v850-tdep.c (v850_gdbarch_init): Ditto.
6684 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6685 * sh-tdep.c (sh_gdbarch_init): Ditto.
6686 * s390-tdep.c (s390_gdbarch_init): Ditto.
6687 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6688 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6689 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6690 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6692 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6693 * i386-tdep.c (i386_gdbarch_init): Ditto.
6694 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6695 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6696 * frv-tdep.c (frv_gdbarch_init): Ditto.
6697 * cris-tdep.c (cris_gdbarch_init): Ditto.
6698 * avr-tdep.c (avr_gdbarch_init): Ditto.
6699 * arm-tdep.c (arm_gdbarch_init): Ditto.
6700 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6701
6702 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6703 * v850-tdep.c (v850_gdbarch_init): Ditto.
6704 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6705 * sh-tdep.c (sh_gdbarch_init): Ditto.
6706 * s390-tdep.c (s390_gdbarch_init): Ditto.
6707 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6708 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6709 * mips-tdep.c (mips_gdbarch_init): Ditto.
6710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6711 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6712 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6713 * frv-tdep.c (frv_gdbarch_init): Ditto.
6714 * avr-tdep.c (avr_gdbarch_init): Ditto.
6715 * arm-tdep.c (arm_gdbarch_init): Ditto.
6716
6717 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6718 DEPRECATED_FP_REGNUM.
6719 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6720 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6721 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6722 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6723 (sparc32_register_virtual_type): Ditto.
6724 * sh-tdep.c (sh64_frame_chain): Ditto.
6725 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6726 (sh_nofp_frame_init_saved_regs): Ditto.
6727 (sh64_nofp_frame_init_saved_regs): Ditto.
6728 (sh_fp_frame_init_saved_regs): Ditto.
6729 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6730 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6731 * procfs.c (procfs_fetch_registers): Ditto.
6732 (procfs_store_registers): Ditto.
6733 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6734 (store_inferior_registers, fetch_core_registers): Ditto.
6735 (fetch_kcore_registers, clear_regs): Ditto.
6736 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6737 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6738 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6739 * nlm/i386.c (do_status): Ditto.
6740 * mipsv4-nat.c (supply_gregset): Ditto.
6741 * mips-tdep.c: Ditto for comments.
6742 * mips-nat.c (fetch_inferior_registers): Ditto.
6743 (store_inferior_registers, fetch_core_registers): Ditto.
6744 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6745 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6746 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6747 (i386_do_pop_frame, i386_register_type): Ditto.
6748 * hppa-tdep.c (hppa_frame_chain): Ditto.
6749 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6750 (hppa_pop_frame, hppa_read_fp): Ditto.
6751 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6752 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6753 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6754 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6755 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6756 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6757 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6758 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6759 * blockframe.c: Ditto for comments.
6760 * arch-utils.h: Ditto for comments.
6761 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6762 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6763 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6764 * alpha-tdep.h: Ditto for comments.
6765 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6766 (alpha_cannot_store_register): Ditto.
6767 (alpha_push_dummy_frame): Ditto.
6768 * alpha-nat.c (supply_gregset): Ditto.
6769
6770 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6771 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6772 * config/sparc/tm-sparc.h: Update comment.
6773
6774 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6775 deprecated_read_fp instead of TARGET_READ_FP.
6776 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6777 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6778 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6779 deprecated_read_fp instead of read_fp.
6780 * s390-tdep.c (s390_push_arguments): Ditto.
6781 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6782 * frame.h: Ditto in comments.
6783 * frame.c (legacy_get_prev_frame): Ditto.
6784 * dummy-frame.c (dummy_frame_this_id): Ditto.
6785 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6786
6787 2003-04-28 Andrew Cagney <cagney@redhat.com>
6788
6789 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6790 * gdbarch.h, gdbarch.c: Re-generate.
6791 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6792 * vax-tdep.c (_initialize_vax_tdep): Update.
6793 * v850-tdep.c (_initialize_v850_tdep): Update.
6794 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6795 * s390-tdep.c (_initialize_s390_tdep): Update.
6796 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6797 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6798 * mips-tdep.c (_initialize_mips_tdep): Update.
6799 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6800 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6801 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6802 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6803 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6804 * frv-tdep.c (_initialize_frv_tdep): Update.
6805 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6806 (_initialize_cris_tdep): Update.
6807 * arch-utils.c (legacy_print_insn): Update.
6808 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6809
6810 2003-04-26 Adam Fedor <fedor@gnu.org>
6811
6812 * linespec.c (decode_objc): New function to decode ObjC calls
6813 (decode_line_1): Check for ObjC calls (using decode_objc)
6814 * Makefile (linespec.o): Update dependencies.
6815
6816 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6817
6818 * breakpoint.h (struct breakpoint_ops): New.
6819 (struct breakpoint): Add ops member.
6820
6821 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6822 (mention): Use new breakpoint ops member.
6823 (set_raw_breakpoint): Initialize ops field to NULL.
6824 (print_exception_catchpoint, print_one_exception_catchpoint)
6825 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6826 (gnu_v3_exception_catchpoint_ops): New.
6827 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6828
6829 2003-04-25 Adam Fedor <fedor@gnu.org>
6830
6831 * Makefile.in (COMMON_OBS): Add objc-lang.o
6832
6833 2003-04-25 Andrew Cagney <cagney@redhat.com>
6834
6835 * d10v-tdep.c (print_insn): Delete function.
6836 (display_trace): Use TARGET_PRINT_INSN.
6837 (_initialize_d10v_tdep): Do not set tm_print_insn.
6838 (d10v_gdbarch_init): Set print_insn.
6839
6840 2003-04-25 Andrew Cagney <cagney@redhat.com>
6841
6842 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6843 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6844 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6845 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6846 (nr_dmap_regs, a0_regnum): ... new functions.
6847 (d10v_print_registers_info): Use a0_regnum, use register_size.
6848 (d10v_register_byte): Delete function.
6849 (d10v_register_raw_size): Delete function.
6850 (d10v_register_type): Use a0_regnum.
6851 (d10v_print_registers_info): Use a0_regnum.
6852 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6853 (d10v_gdbarch_init): Do not set register_byte or
6854 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6855 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6856 extract_address.
6857 (trace_command): Use XCALLOC.
6858 (print_insn): Delete reference to tm_print_insn.
6859 (saved_regs_unwinder): Use store_unsigned_integer instead of
6860 store_address.
6861 * frame.h (FRAME_OBSTACK_CALLOC): Define
6862
6863 2003-04-25 David Carlton <carlton@bactrian.org>
6864
6865 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6866
6867 2003-04-24 Adam Fedor <fedor@gnu.org>
6868
6869 * objc-lang.c: Include "valprint.h"
6870 * Makefile.in (objc-lang.o): Update dependencies.
6871
6872 2003-04-24 Adam Fedor <fedor@gnu.org>
6873
6874 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6875 architecture dependant compilation and mark as unimplemented
6876 (until they get put in the gdbarch vector).
6877
6878 2003-04-23 David Carlton <carlton@bactrian.org>
6879
6880 * cp-support.c (cp_find_first_component): Accept 'operator' in
6881 more locations.
6882
6883 2003-04-23 Andrew Cagney <cagney@redhat.com>
6884
6885 * infcall.c (call_function_by_hand): Eliminate redundant
6886 indentation. Move "saved_async" and "old_cleanups" to where they
6887 are needed.
6888
6889 2003-04-23 Andrew Cagney <cagney@redhat.com>
6890
6891 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6892 and "buffer". Move the "name" code to where it is needed.
6893
6894 2003-04-23 Andrew Cagney <cagney@redhat.com>
6895
6896 * infcall.c (call_function_by_hand): Move variables "start_sp",
6897 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6898 code to ON_STACK switch branch.
6899
6900 2003-04-23 Andrew Cagney <cagney@redhat.com>
6901
6902 * infcall.c (call_function_by_hand): Make declaration of "i",
6903 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6904 lint.
6905
6906 2003-04-23 Andrew Cagney <cagney@redhat.com>
6907
6908 * infcall.c (call_function_by_hand): Delete variable
6909 "n_method_args". Localize "param_type"'s declaration to the loop
6910 that it is used. Reinstate code assigning to said variable -
6911 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6912 Rationalize code using "param_type".
6913
6914 2003-04-22 Andrew Cagney <cagney@redhat.com>
6915
6916 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6917 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6918 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6919 to DEPRECATED_PUSH_RETURN_ADDRESS.
6920
6921 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6922
6923 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6924 on the DWARF2 register number prior to fetching a register.
6925
6926 2003-04-22 J. Brobecker <brobecker@gnat.com>
6927
6928 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6929 Update all the tests using SOFT_FLOAT considering the fact that
6930 this macro was always set to 0.
6931 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6932 considering the fact that this macro was always set to 0.
6933 * hppa-tdep.h (hppa_store_return_value): Likewise.
6934 (hppa_extract_return_value): Likewise.
6935
6936 2003-04-22 J. Brobecker <brobecker@gnat.com>
6937
6938 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6939 the hppa-pro target only.
6940
6941 2003-04-21 J. Brobecker <brobecker@gnat.com>
6942
6943 Ongoing multi-arch conversion effort for HP/UX:
6944 * config/pa/tm-hppa.h: Move all macro that are no longer
6945 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6946 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6947
6948 2003-04-21 J. Brobecker <brobecker@gnat.com>
6949
6950 * config/pa/tm-hppa.h: Obsolete a section that was only used
6951 for hppa-pro.
6952
6953 2003-04-21 J. Brobecker <brobecker@gnat.com>
6954
6955 Ongoing multi-arch conversion for HP/UX.
6956 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6957 if already defined (allows hppa64 to stay non-multiarched for now).
6958 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6959
6960 2003-04-21 Andrew Cagney <cagney@redhat.com>
6961
6962 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6963
6964 2003-04-21 Andrew Cagney <cagney@redhat.com>
6965
6966 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6967 "i386_num_mmx_regs".
6968
6969 2003-04-21 Andrew Cagney <cagney@redhat.com>
6970
6971 * infcall.c: New file.
6972 * infcall.h: New file.
6973 * valarith.c: Include "infcall.h".
6974 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6975 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6976 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6977 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6978 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6979 (SFILES): Add "infcall.c"
6980 (COMMON_OBS): Add "infcall.o".
6981 (infcall.o): Specify dependencies.
6982 * value.h (call_function_by_hand): Delete declaration.
6983 * inferior.h (run_stack_dummy): Delete declaration.
6984 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6985 (run_stack_dummy): Move to "infcall.c", merged into
6986 call_function_by_hand.
6987 * valops.c (call_function_by_hand): Moved to "infcall.c".
6988 (find_function_addr, value_arg_coerce): Ditto.
6989 (unwindonsignal_p, coerce_float_to_double): Ditto.
6990 (_initialize_valops): Move "set/show coerce-float-to-double", and
6991 "set/show unwindonsignal" commands to "infcall.c".
6992 * v850-tdep.c, target.h: Update comments.
6993 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6994 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6995 (sh64_init_extra_frame_info): Update comments.
6996 * mn10300-tdep.c: Update comments.
6997 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6998 * config/sparc/tm-sparc.h: Update comments.
6999 * breakpoint.h: Update comments.
7000 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7001 * arm-tdep.c: Update comment.
7002
7003 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7004
7005 * i386-tdep.c (i386_num_register_names): New variable.
7006 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7007 (MM0_REGNUM): Remove redundant parentheses in define.
7008 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7009 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7010 i386_mxcsr_regnum_p): Remove redundant parentheses.
7011 (i386_register_name): Use i386_num_register_names.
7012
7013 * i386-tdep.c (i386_extract_return_value,
7014 i386_store_return_value): Correct check for availability of
7015 floating-point registers.
7016
7017 * i386-tdep.c (i386_frame_num_args): Remove function.
7018 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7019
7020 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7021 mmx_regnum_to_fp_regnum. Adjust all callers.
7022
7023 * i386-tdep.c (i386_get_longjmp_target): Use
7024 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7025 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7026 extract_address.
7027
7028 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7029
7030 * core-regset.c: Update comments to reflect reality. Re-order
7031 includes.
7032 (fetch_core_registers): Use switch instead of if. Remove
7033 redundant prototype.
7034
7035 2003-04-18 Jim Blandy <jimb@redhat.com>
7036
7037 * s390-tdep.c (s390_frame_align): New function.
7038 (s390_gdbarch_init): Register it with the gdbarch object.
7039
7040 2003-04-17 Richard Henderson <rth@redhat.com>
7041
7042 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7043
7044 2003-04-17 Michael Snyder <msnyder@redhat.com>
7045 Karen Bennet <bennet@redhat.com>
7046
7047 Committed by Elena Zannoni <ezannoni@redhat.com>
7048 * gdb_gcore.sh: New script to create a core dump of a process.
7049
7050 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7051
7052 * values.c (value_being_returned): Don't fetch the return
7053 value if the return type is void.
7054
7055 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7056
7057 * thread-db.c: Reindented.
7058
7059 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7060
7061 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7062 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7063 as types.
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7090
7091 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7092 the size of ``long double'' to 16, instead of 8.
7093
7094 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7095
7096 * i386-linux-nat.c: Add some whitespace to make things more
7097 readable.
7098 (fetch_register, store_register, fetch_inferior_registers,
7099 store_inferior_registers): Get rid of assignment in if-statement.
7100 (store_register): Fix typo in error message.
7101
7102 2003-04-16 Andrew Cagney <cagney@redhat.com>
7103
7104 * utils.c (xmmalloc): Always allocate something, matches
7105 libiberty/xmalloc's semantics.
7106 (xmrealloc, xmcalloc): Ditto.
7107
7108 2003-04-16 Andrew Cagney <cagney@redhat.com>
7109
7110 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7111 update comments.
7112 (get_frame_type): Initialize unwind and type when needed.
7113 (get_frame_id, frame_register_unwind): Ditto.
7114
7115 2003-04-16 Andrew Cagney <cagney@redhat.com>
7116
7117 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7118 obsolete.
7119 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7120 * sparcl-stub.c: Obsolete file.
7121 * config/sparc/tm-sparclet.h: Obsolete file.
7122 * sparclet-stub.c: Obsolete file.
7123 * sparclet-rom.c: Obsolete file.
7124 * sparcl-tdep.c: Obsolete file.
7125 * config/sparc/tm-sparclite.h: Obsolete file.
7126 * config/sparc/sparclite.mt: Obsolete file.
7127 * config/sparc/sparclet.mt: Obsolete file.
7128 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7129 sparc86x-*-* obsolete.
7130
7131 2003-04-15 David Carlton <carlton@math.stanford.edu>
7132
7133 * Makefile.in (SFILES): Add cp-namespace.c.
7134 (COMMON_OBS): Add cp-namespace.o.
7135 (block.o): Depend on gdb_obstack_h and cp_support_h.
7136 (buildsym.o): Depend on cp_support_h.
7137 (cp-namespace.o): New.
7138 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7139 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7140 (dwarf2read.o): Depend on cp_support_h.
7141 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7142 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7143 processing_current_namespace.
7144 (read_namespace): Update processing_current_namespace; check for
7145 anonymous namespaces.
7146 (dwarf2_name): New function.
7147 (dwarf2_extension): Ditto.
7148 * cp-support.h: Update copyright, contributors.
7149 Add inclusion guards.
7150 Add opaque declaration for structs obstack, block, symbol.
7151 (struct using_direct): New struct.
7152 Add declarations for cp_find_first_component,
7153 cp_entire_prefix_len, processing_has_namespace_info,
7154 processing_current_namespace, cp_is_anonymous,
7155 cp_add_using_directive, cp_initialize_namespace,
7156 cp_finalize_namespace, cp_set_block_scope,
7157 cp_scan_for_anonymous_namespaces.
7158 * cp-namespace.c: New file.
7159 * cp-support.c: Update copyright.
7160 Include ctype.h, gdb_assert.h, gdbcmd.h.
7161 New variable maint_cplus_cmd_list.
7162 (cp_find_first_component): New function.
7163 (cp_entire_prefix_len, maint_cplus_command)
7164 (first_component_command, _initialize_cp_support): Ditto.
7165 * buildsym.c: Include cp-support.h.
7166 New variable using_list.
7167 (add_symbol_to_list): Check for anonymous namespaces.
7168 (finish_block): Set block's scope.
7169 (start_symtab): Initialize C++ namespace support.
7170 (end_symtab): Finalize C++ namespace support.
7171 * block.h: Add opaque declarations for structs
7172 block_namespace_info, using_direct, and obstack.
7173 Add declarations for block_set_scope and block_set_using.
7174 (struct block): Add 'language_specific' member.
7175 (BLOCK_NAMESPACE): New macro.
7176 * block.c: Include gdb_obstack.h and cp-support.h.
7177 (struct block_namespace_info): New struct.
7178 (block_set_scope): New function.
7179 (block_set_using, block_initialize_namespace): Ditto.
7180
7181 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7182
7183 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7184 (locate_base): Return early if there aren't any link map offsets.
7185 (svr4_solib_create_inferior_hook): Warn if shared library support
7186 is unavailable.
7187
7188 2003-04-14 David Carlton <carlton@math.stanford.edu>
7189
7190 * symtab.c (symbol_set_names): Add prefix when storing Java names
7191 in hash table. Fix for PR java/1039.
7192
7193 2003-04-14 David Carlton <carlton@math.stanford.edu>
7194
7195 * symtab.c (symbol_set_names): Rename 'name' arg to
7196 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7197 * symtab.h: Change 'name' argument in declaration of
7198 symbol_set_names to 'linkage_name'.
7199 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7200
7201 2003-04-14 Andrew Cagney <cagney@redhat.com>
7202
7203 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7204 return the fully sign-extended register value.
7205 (get_frame_pointer): Ditto.
7206 (mips_pop_frame): Initialize "proc_desc" after checking for a
7207 dummy frame.
7208
7209 2003-04-14 Andrew Cagney <cagney@redhat.com>
7210
7211 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7212 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7213 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7214 (mips_push_register): Delete function.
7215 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7216 PUSH_FP_REGNUM.
7217
7218 2003-04-14 Jim Blandy <jimb@redhat.com>
7219
7220 * symmisc.c: #include "gdb_regex.h".
7221 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7222 functions.
7223 * maint.c (maintenance_list_command): New function.
7224 (_initialize_maint_cmds): Register the above as commands.
7225 * symtab.h (maintenance_list_symtabs,
7226 maintenance_list_psymtabs): New declarations.
7227 * cli/cli-cmds.c (maintenancelistlist): New variable.
7228 (init_cmd_lists): Initialize it.
7229 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7230 * gdbcmd.h (maintenancelistlist): New declaration.
7231 * Makefile.in (symmisc.o): Update dependencies.
7232
7233 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7234
7235 * s390-nat.c: Include asm/types.h for addr_t.
7236
7237 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7238
7239 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7240 actually incoming type.
7241
7242 2003-04-13 Andrew Cagney <cagney@redhat.com>
7243
7244 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7245 get_next_frame and get_frame_saved_regs.
7246
7247 2003-04-13 Andrew Cagney <cagney@redhat.com>
7248
7249 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7250 of gdbarch_num_regs.
7251
7252 2003-04-13 Andrew Cagney <cagney@redhat.com>
7253
7254 * frame.h: Mention what replaced what in "struct frame_info".
7255 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7256 deprecated_update_frame_base_hack and
7257 deprecated_update_frame_pc_hack.
7258 * hppa-tdep.c: Ditto.
7259
7260 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7261
7262 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7263 to read_reg and update its comment. Remove regnum member.
7264 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7265 Don't call read_reg when setting in_reg. Call read_reg to get
7266 the frame base if it's in a register. Return the register number
7267 on the stack instead of in the context. Remove extra arguments
7268 to read_reg.
7269 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7270 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7271 the register number on the expression stack.
7272 (needs_frame_read_reg): Remove extra arguments.
7273
7274 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7275
7276 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7277 made non-static.
7278 (execute_stack_op): All callers updated.
7279 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7280 * dwarf2loc.c (find_location_expression): New function.
7281 (dwarf_expr_frame_base): Call it.
7282 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7283 (dwarf2_tracepoint_var_ref): New function, broken out from
7284 locexpr_tracepoint_var_ref.
7285 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7286 Make static.
7287 (loclist_read_variable, loclist_read_needs_frame): New functions.
7288 (loclist_describe_location, loclist_tracepoint_var_ref): New
7289 functions.
7290 (dwarf2_loclist_funcs): New struct location_funcs.
7291 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7292 (struct dwarf2_locexpr_baton): Add comments.
7293 (dwarf2_loclist_funcs): New extern.
7294 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7295 base_address and base_known.
7296 (dwarf_loc_buffer): New variable.
7297 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7298 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7299 (dwarf2_has_info): Initialize dwarf_loc_offset.
7300 (dwarf2_build_psymtabs): Read in .debug_loc.
7301 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7302 DWARF_LOC_SIZE.
7303 (psymtab_to_symtab_1): Likewise. Move base address calculation
7304 here, from...
7305 (dwarf2_get_pc_bounds): ... here. Use the base address from
7306 cu_header.
7307 (dwarf2_symbol_mark_computed): Handle location lists.
7308
7309 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7310
7311 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7312 if the linkage name demangled successfully.
7313
7314 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7315
7316 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7317 disassmbly_flavour): Removed.
7318
7319 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7320
7321 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7322
7323 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7324
7325 2003-04-12 Andrew Cagney <cagney@redhat.com>
7326
7327 * frame.h (struct frame_info): Move definition from here ...
7328 * frame.c (struct frame_info): ... to here.
7329
7330 2003-04-12 Andrew Cagney <cagney@redhat.com>
7331
7332 * gdbthread.h (save_infrun_state): Delete parameter
7333 "prev_func_start".
7334 (struct thread_info): Delete field "prev_func_start".
7335 (load_infrun_state): Ditto.
7336 * thread.c (load_infrun_state, save_infrun_state): Update.
7337 * infrun.c (prev_func_start): Delete variable.
7338 (context_switch, init_wait_for_inferior): Update.
7339 (stop_stepping, keep_going): Update.
7340
7341 2003-04-12 Andrew Cagney <cagney@redhat.com>
7342
7343 * gdbarch.sh: Add missing opaque declarations.
7344 * gdbarch.h: Regnerate.
7345 * symtab.h: Add missing opaque declarations.
7346 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7347 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7348 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7349 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7350 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7351 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7352 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7353 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7354 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7355 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7356 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7357 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7358 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7359
7360 2003-04-11 Andrew Cagney <cagney@redhat.com>
7361
7362 * frame.c (get_frame_id): Return this frame's "id".
7363 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7364 function start.
7365 (legacy_saved_regs_this_id): Replace function body with
7366 internal-error.
7367 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7368 FRAME_OBSTACK_ZALLOC.
7369 (create_new_frame): Mark the frame ID as valid.
7370
7371 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7372
7373 * Makefile.in (libbfd_h): Added missing setting.
7374 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7375 according to the selected ABI.
7376
7377 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7378
7379 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7380
7381 2003-04-11 Andrew Cagney <cagney@redhat.com>
7382
7383 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7384 SAVED_PC_AFTER_CALL.
7385 * gdbarch.h, gdbarch.c: Regenerate.
7386 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7387 * x86-64-tdep.c (x86_64_init_abi): Update.
7388 * vax-tdep.c (vax_gdbarch_init): Update.
7389 * v850-tdep.c (v850_gdbarch_init): Update.
7390 * sparc-tdep.c (sparc_gdbarch_init): Update.
7391 * sh-tdep.c (sh_gdbarch_init): Update.
7392 * s390-tdep.c (s390_gdbarch_init): Update.
7393 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7394 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7395 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7396 * mips-tdep.c (mips_gdbarch_init): Update.
7397 * mcore-tdep.c (mcore_gdbarch_init): Update.
7398 * m68k-tdep.c (m68k_gdbarch_init): Update.
7399 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7400 * ia64-tdep.c (ia64_gdbarch_init): Update.
7401 (ia64_saved_pc_after_call): Update declaration.
7402 * i386ly-tdep.c (i386lynx_init_abi): Update.
7403 * i386-tdep.c (i386_gdbarch_init): Update.
7404 * hppa-tdep.c (hppa_gdbarch_init): Update.
7405 * h8300-tdep.c (h8300_gdbarch_init): Update.
7406 * frv-tdep.c (frv_gdbarch_init): Update.
7407 * cris-tdep.c (cris_gdbarch_init): Update.
7408 * avr-tdep.c (avr_gdbarch_init): Update.
7409 * arm-tdep.c (arm_gdbarch_init): Update.
7410 * alpha-tdep.c (alpha_gdbarch_init): Update.
7411 * ns32knbsd-nat.c (frame_num_args): Update.
7412 * ns32k-tdep.c (umax_frame_num_args): Update.
7413 * mips-tdep.c (mips_init_frame_pc_first): Update.
7414 * infrun.c (step_over_function): Update.
7415 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7416 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7417 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7418 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7419 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7420 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7421 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7422 * arch-utils.c (init_frame_pc_default): Update.
7423 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7424 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7425 declaration.
7426
7427 2003-04-11 Andrew Cagney <cagney@redhat.com>
7428
7429 * i387-tdep.c: Update copyright.
7430 (i387_to_double): Delete function.
7431 (double_to_i387): Delete function.
7432
7433 2003-04-10 Andrew Cagney <cagney@redhat.com>
7434
7435 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7436 frame's function's address. Simplify.
7437 (d10v_frame_unwind_cache): Check that the frame's function is
7438 non-zero.
7439
7440 2003-04-10 Jim Blandy <jimb@redhat.com>
7441
7442 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7443 call to set_gdbarch_deprecated_push_arguments.
7444
7445 2003-04-10 Andrew Cagney <cagney@redhat.com>
7446
7447 * frame.c (fprint_frame_id): New function.
7448 (fprint_frame_type, fprint_frame): New function.
7449 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7450 (create_sentinel_frame, get_frame_id): Ditto.
7451 (frame_id_p, frame_id_eq): Ditto.
7452 (frame_id_inner, create_new_frame): Ditto.
7453 (legacy_get_prev_frame, get_prev_frame): Ditto.
7454 (deprecated_update_frame_pc_hack): Ditto.
7455 (frame_register_unwind): Ditto.
7456 (deprecated_update_frame_base_hack): Ditto.
7457
7458 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7459
7460 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7461 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7462 frame_chain function.
7463 * Makefile.in: Add dependencies due to above change.
7464
7465 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7466
7467 * blockframe.c (legacy_frame_chain_valid): Move call to
7468 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7469 inside_entry_file.
7470
7471 2003-04-09 Andrew Cagney <cagney@redhat.com>
7472
7473 * frame.h (struct frame_id): Replace "pc" and "base" with
7474 "stack_addr" and "code_addr". Update comments.
7475 (frame_id_build): Update parameter names and comment.
7476 (struct frame_info): Replace "id_p" and "id" with "this_id".
7477 * dummy-frame.c (dummy_frame_this_id): Update.
7478 * breakpoint.c (print_one_breakpoint): Update.
7479 * frame.c (get_frame_id): Update.
7480 (get_frame_base, frame_id_build): Update.
7481 (create_sentinel_frame, legacy_get_prev_frame): Update.
7482 (deprecated_update_frame_base_hack): Update.
7483 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7484 (frame_id_inner): Ditto.
7485
7486 2003-04-09 Andrew Cagney <cagney@redhat.com>
7487
7488 * defs.h (gdb_print_host_address): Make "addr" parameter a
7489 pointer constant.
7490 * utils.c (gdb_print_host_address): Update.
7491
7492 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7493
7494 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7495 register number for R0 is 0.
7496
7497 2003-04-09 J. Brobecker <brobecker@gnat.com>
7498
7499 * frame.h (struct gdbarch): Add opaque structure definition
7500 to avoid a compilation warning on LynxOS 4.0.
7501
7502 2003-04-09 Andrew Cagney <cagney@redhat.com>
7503
7504 * frame.h (struct frame_info): Delete field "pc". Replace
7505 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7506 structure.
7507 * frame.c (frame_pc_unwind): Update.
7508 (create_sentinel_frame): Do not set "pc".
7509 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7510 (get_frame_pc): Call frame_pc_unwind.
7511 (deprecated_update_frame_pc_hack): Update.
7512 (create_new_frame): Use "pc" not "->pc".
7513
7514 2003-04-09 Andrew Cagney <cagney@redhat.com>
7515
7516 * frame.c (get_frame_id): Eliminate code updating "frame".
7517 (legacy_get_prev_frame): Ditto.
7518 (get_frame_base): Return id.base directly.
7519 (deprecated_update_frame_base_hack): Update "id.base".
7520 * frame.h (struct frame_info): Delete field "frame".
7521
7522 2003-04-09 Andrew Cagney <cagney@redhat.com>
7523
7524 * NEWS: Mention that the "Sequent family" is obsolete.
7525 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7526 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7527 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7528 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7529 * config/i386/tm-ptx4.h: Obsolete file.
7530 * config/i386/tm-ptx.h: Obsolete file.
7531 * symm-tdep.c: Obsolete file.
7532 * config/i386/symmetry.mt: Obsolete file.
7533 * config/i386/tm-symmetry.h: Obsolete file.
7534 * symm-nat.c: Obsolete file.
7535 * config/i386/nm-symmetry.h: Obsolete file.
7536 * config/i386/xm-symmetry.h: Obsolete file.
7537 * config/i386/symmetry.mh: Obsolete file.
7538 * config/i386/nm-ptx4.h: Obsolete file.
7539 * config/i386/ptx4.mh: Obsolete file.
7540 * config/i386/ptx.mt: Obsolete file.
7541 * config/i386/ptx.mh: Obsolete file.
7542 * config/i386/xm-ptx4.h: Obsolete file.
7543 * config/i386/xm-ptx.h: Obsolete file.
7544
7545 2003-04-09 Andrew Cagney <cagney@redhat.com>
7546
7547 Obsolete mips*-*-mach3*.
7548 * NEWS: Mention that mips*-*-mach3* is obsolete.
7549 * m3-nat.c: Obsolete file.
7550 * config/nm-m3.h: Obsolete file.
7551 * config/mips/tm-mipsm3.h: Obsolete file.
7552 * config/mips/mipsm3.mt: Obsolete file.
7553 * config/mips/mipsm3.mh: Obsolete file.
7554 * config/mips/xm-mipsm3.h: Obsolete file.
7555 * mipsm3-nat.c: Obsolete file.
7556 * configure.host: Obsolete mips-dec-mach3*.
7557 * configure.tgt: Obsolete mips*-*-mach3*.
7558
7559 2003-04-09 Andrew Cagney <cagney@redhat.com>
7560
7561 * doublest.h: Update copyright.
7562 (deprecated_store_floating, deprecated_extract_floating): Rename
7563 store_floating and extract_floating. Update comments.
7564 * doublest.c: Update copyright.
7565 (extract_floating_by_length): Replace extract_floating.
7566 (store_floating_by_length): Replace store_floating.
7567 (deprecated_extract_floating): New function.
7568 (deprecated_store_floating): New function.
7569 (extract_typed_floating): Call extract_floating_by_length.
7570 (store_typed_floating): Call store_floating_by_length.
7571 * x86-64-tdep.c (x86_64_store_return_value): Update.
7572 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7573 (sh64_extract_return_value): Update.
7574 (sh_sh4_register_convert_to_virtual): Update.
7575 (sh_sh64_register_convert_to_virtual): Update.
7576 (sh_sh4_register_convert_to_raw): Update.
7577 (sh_sh64_register_convert_to_raw): Update.
7578 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7579 (rs6000_register_convert_to_raw): Update.
7580 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7581 (ia64_register_convert_to_raw): Update.
7582 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7583 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7584 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7585 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7586 (alpha_register_convert_to_raw): Update.
7587
7588 2003-04-08 Andrew Cagney <cagney@redhat.com>
7589
7590 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7591 * gdbarch.h, gdbarch.c: Re-generate.
7592 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7593 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7594 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7595 conditionally, use frame_pc_unwind as an alternative. Add
7596 comments.
7597 * arch-utils.c (init_frame_pc_default): Only call
7598 SAVED_PC_AFTER_CALL when available.
7599
7600 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7601
7602 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7603 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7604 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7605 (start_remote): Ditto.
7606 (handle_inferior_event): Ditto.
7607 (save_inferior_status): Ditto.
7608 (restore_inferior_status): Ditto.
7609 * infcmd.c (attach_command): Ditto.
7610 * fork-child.c (startup_inferior): Ditto.
7611 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7612 * alpha-tdep.c (heuristic_proc_start): Ditto.
7613 * mips-tdep.c (heuristic_proc_start): Ditto.
7614 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7615 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7616 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7617 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7618 * remote-vx.c (vx_create_inferior): Ditto.
7619
7620 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7621
7622 * infrun.c (stop_soon_quietly): Make it an enum, to better
7623 override the default behavior of handle_inferior_event.
7624 (clear_proceed_status): Update uses of stop_soon_quietly to
7625 reflect that it is now an enum.
7626 (start_remote): Ditto.
7627 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7628 is set to handle the new GNU/Linux kernel behavior for
7629 attach/sigstop. Update uses of stop_soon_quietly.
7630 * inferior.h (enum stop_kind): New enum.
7631 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7632 Reset normal handle_inferior_event behavior, afterwards.
7633 * fork-child.c (startup_inferior): Update.
7634 * alpha-tdep.c (heuristic_proc_start): Update.
7635 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7636 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7637 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7638 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7639 * remote-vx.c (vx_create_inferior): Update.
7640 * mips-tdep.c (heuristic_proc_start): Update.
7641
7642 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7643
7644 * disasm.c (dump_insns): Move variables inside loop, or they will
7645 be freed more than once, causing wild memory corruptions.
7646 (gdb_disassembly): Look for the substring "-thread",
7647 instead of "-threads" in the target name, to make sure to find
7648 the 'multi-thread' target. Also, make sure we do the right thing
7649 with the "core" target.
7650
7651 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7652
7653 * mips-tdep.c (mips_print_fp_register): New function, created from
7654 do_fp_register_row(). Registers are now (also) printed as hex.
7655 Only one register is printed per row.
7656 (mips_print_register, do_fp_register_row): Print floating point
7657 registers with mips_print_fp_register().
7658
7659 2003-04-06 Andrew Cagney <cagney@redhat.com>
7660
7661 * valprint.h (inspect_it): Add extern declaration.
7662 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7663 (selectors_info, classes_info): Ditto.
7664 (find_objc_msgcall): Fix indentation.
7665 (objc_printstr): Delete extern declarations.
7666
7667 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7668
7669 2003-04-06 Andrew Cagney <cagney@redhat.com>
7670
7671 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7672 Update comment.
7673 * frame.c (legacy_saved_regs_this_id): Update.
7674 (legacy_get_prev_frame): Update.
7675 * xstormy16-tdep.c: Update comment.
7676 * sparc-tdep.c (sparc_frame_chain): Update comment.
7677 * blockframe.c (legacy_frame_chain_valid): Update.
7678
7679 2003-04-06 Andrew Cagney <cagney@redhat.com>
7680
7681 * valprint.c (val_print_type_code_int): Delete #ifdef
7682 PRINT_TYPELESS_INTEGER code.
7683
7684 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7685 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7686 multi-arch definition.
7687 * gdbarch.h: Re-generate.
7688
7689 2003-04-05 Andrew Cagney <cagney@redhat.com>
7690
7691 Eliminate FRAME_FIND_SAVED_REGS.
7692 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7693 Change FSR parameter to a pointer.
7694 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7695 Assume FSR parameter is a pointer.
7696 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7697 Make fsr a pointer.
7698 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7699 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7700 saved_regs a pointer.
7701 (hppa_frame_saved_pc): Ditto.
7702 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7703 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7704 pointer.
7705 (restore_pc_queue): Make fsr a pointer.
7706 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7707 (hppa_frame_chain): Make saved_regs a pointer, call
7708 hppa_frame_init_saved_regs.
7709 * sparc-tdep.c: Include "gdb_assert.h".
7710 (sparc_frame_find_saved_regs): Replace internal_error with
7711 gdb_assert.
7712 * remote-vxsparc.c (vx_read_register): Delete reference to
7713 FRAME_FIND_SAVED_REGS.
7714 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7715 * gdbarch.h: Regenerate.
7716 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7717 (deprecated_get_frame_saved_regs): Delete declaration.
7718 (struct frame_saved_regs): Delete definition.
7719 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7720 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7721 (hppa_frame_find_saved_regs): Delete declaration.
7722 (FRAME_FIND_SAVED_REGS): Delete macro.
7723 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7724 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7725 FRAME_FIND_SAVED_REGS in comment.
7726
7727 2003-04-05 Andrew Cagney <cagney@redhat.com>
7728
7729 * frame.c (frame_func_unwind, get_frame_func): New functions.
7730 * frame.h (get_frame_func, frame_func_unwind): Declare.
7731 (struct frame_info): Add field "prev_func" for caching the
7732 previous frame's function address.
7733 * arm-tdep.c (arm_frameless_function_invocation): Combine
7734 get_pc_function_start and get_frame_pc into get_frame_func.
7735 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7736 (sh64_nofp_frame_init_saved_regs): Ditto.
7737 * s390-tdep.c (s390_function_start): Ditto.
7738 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7739 (rs6000_frameless_function_invocation): Ditto.
7740 (rs6000_frame_saved_pc): Ditto.
7741 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7742 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7743 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7744 (i386_frame_init_saved_regs): Ditto.
7745 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7746 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7747 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7748 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7749 * blockframe.c (frameless_look_for_prologue): Ditto.
7750
7751 2003-04-05 Andrew Cagney <cagney@redhat.com>
7752
7753 * frame.c (legacy_get_prev_frame): Link prev to next at the
7754 function start. Update comments.
7755
7756 2003-04-05 Andrew Cagney <cagney@redhat.com>
7757
7758 * frame.c (get_frame_id): Update comment.
7759 (legacy_get_prev_frame): Update comment.
7760 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7761 * gdbarch.h: Regenerate.
7762 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7763 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7764
7765 2003-04-05 Andrew Cagney <cagney@redhat.com>
7766
7767 * stack.c (print_frame_info): Use get_frame_pc.
7768
7769 2003-04-04 Andrew Cagney <cagney@redhat.com>
7770
7771 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7772 the frame's type from the unwinder.
7773 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7774 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7775 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7776 (get_frame_base_address): Use get_frame_type.
7777 (get_frame_locals_address, get_frame_args_address): Ditto.
7778 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7779 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7780 (struct frame_info): Add comment explaining why the frame contains
7781 a "type" field.
7782 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7783 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7784 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7785 NORMAL_FRAME.
7786 * frame-unwind.h: Include "frame.h".
7787 (struct frame_unwind): Add "type" field.
7788 * Makefile.in (frame_unwind_h): Add $(frame_h).
7789
7790 2003-04-04 Andrew Cagney <cagney@redhat.com>
7791
7792 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7793 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7794 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7795 get_frame_base.
7796 (d10v_unwind_dummy_id): Use frame_id_build.
7797 * frame.c (find_frame_sal): Use get_frame_pc.
7798 (create_new_frame): Use deprecated_update_frame_pc_hack and
7799 deprecated_update_frame_base_hack.
7800 (create_sentinel_frame): Add comment about ->pc going away.
7801 (get_prev_frame): Add comment about ->pc going away.
7802 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7803 frame_id_build, deprecated_update_frame_pc_hack and
7804 deprecated_update_frame_base_hack.
7805 (select_frame): Use get_frame_pc.
7806 (legacy_saved_regs_this_id): Use frame_id_build.
7807
7808 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7809
7810 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7811 signed integer case.
7812 (classify_argument): Handle enumerations and references.
7813
7814 2003-04-04 Andrew Cagney <cagney@redhat.com>
7815
7816 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7817 ID to NULL.
7818
7819 2003-04-01 Adam Fedor <fedor@gnu.org>
7820
7821 * gdb/objc-lang.c (selectors_info): Replace calls to
7822 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7823 SYMBOL_NATURAL_NAME.
7824 (classes_info, find_methods): Likewise.
7825
7826 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7827
7828 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7829 ``mach'' to the value determined by bfd_default_set_arch_mach().
7830
7831 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7832
7833 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7834 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7835 (mi-cmd-file.o): Update dependencies.
7836
7837 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7838
7839 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7840 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7841
7842 2003-04-01 Adam Fedor <fedor@gnu.org>
7843
7844 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7845 * language.h (struct language_defn): Add la_demangle.
7846 (language_demangle): Declare.
7847 * language.c (language_demangle): New function.
7848 (unk_lang_demangle): Likewise.
7849 (unknown_language_defn, auto_language_defn, local_language_defn):
7850 Add ukn_lang_demangle.
7851 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7852 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7853 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7854 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7855 * jv-lang.c (java_demangle): New function
7856 (java_language_defn): Use it for la_demangle element.
7857 * objc-lang.c (objc_demangle): Add options argument
7858 (objc_language_defn): Use objc_demangle for la_demangle element.
7859 * maint.c (maintenance_demangle): Replace switch with
7860 call to language_demangle.
7861 * utils.c (fprintf_symbol_filtered): Likewise.
7862
7863 2003-04-01 Andrew Cagney <cagney@redhat.com>
7864
7865 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7866 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7867 PRINT_TYPELESS_INTEGER.
7868 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7869 PUSH_RETURN_ADDRESS.
7870
7871 2003-04-01 Andrew Cagney <cagney@redhat.com>
7872
7873 * Makefile.in (d10v-tdep.o): Update dependencies.
7874 * d10v-tdep.c: Include "frame-base.h".
7875 (d10v_frame_unwind): Make constant.
7876 (d10v_frame_base_address): New function.
7877 (d10v_frame_base): New variable.
7878 (d10v_gdbarch_init): Set frame_base default.
7879 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7880 comment for base.
7881 (d10v_frame_unwind_cache): Set and use "prev_sp".
7882 (d10v_frame_this_id): Use the previous frame's inner most stack
7883 address and this frame's func address for the frame ID. Use
7884 frame_id_build. Don't analyze beyond the current instruction.
7885
7886 2003-04-01 Andrew Cagney <cagney@redhat.com>
7887
7888 * frame.h (get_frame_locals_address, get_frame_args_address):
7889 Refer to the base address, instead of the address of the first
7890 local or parameter.
7891
7892 2003-04-01 Andrew Cagney <cagney@redhat.com>
7893
7894 Add frame debug info addresses:
7895 * frame-base.c: New file.
7896 * frame-base.h: New file.
7897 * frame.h (struct frame_base): Add opaque declaration.
7898 (get_frame_base): Update comment.
7899 (get_frame_base_address): Declare.
7900 (get_frame_locals_address): Declare.
7901 (get_frame_args_address): Declare.
7902 (struct frame_info): Add "base" and "base_cache". Update
7903 comments on the unwinder.
7904 * frame.c: Include "frame-base.h".
7905 (get_frame_locals_address): New function.
7906 (get_frame_base_address): New function.
7907 (get_frame_args_address): New function.
7908 * findvar.c (read_var_value): Use get_frame_locals_address and
7909 get_frame_args_address.
7910 * stack.c (frame_info): Use get_frame_locals_address and
7911 get_frame_args_address.
7912 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7913 moved to "frame-base.c".
7914 * printcmd.c (print_frame_nameless_args): Ditto.
7915 * symtab.h (address_class): Update comments.
7916 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7917 get_frame_base_address.
7918 * dwarf2expr.c (execute_stack_op): Ditto.
7919 * Makefile.in (frame_base_h): Define.
7920 (frame.o): Update dependencies.
7921 (frame-base.o): Add dependencies.
7922 (SFILES): Add frame-base.c.
7923 (COMMON_OBS): Add frame-base.o.
7924
7925 2003-04-01 Andrew Cagney <cagney@redhat.com>
7926
7927 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7928 CALL_DUMMY_LENGTH): Ditto.
7929 * gdbarch.c: Re-generate.
7930 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7931 (CALL_DUMMY_LENGTH): Delete macro.
7932 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7933 * arm-tdep.c (arm_gdbarch_init): Ditto.
7934 * avr-tdep.c (avr_gdbarch_init): Ditto.
7935 * cris-tdep.c (cris_gdbarch_init): Ditto.
7936 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7937 * frv-tdep.c (frv_gdbarch_init): Ditto.
7938 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7939 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7940 * i386-tdep.c (i386_gdbarch_init): Ditto.
7941 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7943 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7944 * mips-tdep.c (mips_gdbarch_init): Ditto.
7945 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7946 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7947 * s390-tdep.c (s390_gdbarch_init): Ditto.
7948 * sh-tdep.c (sh_gdbarch_init): Ditto.
7949 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7950 * v850-tdep.c (v850_gdbarch_init): Ditto.
7951 * vax-tdep.c (vax_gdbarch_init): Ditto.
7952 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7953
7954 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7955
7956 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7957
7958 2003-04-01 Andrew Cagney <cagney@redhat.com>
7959
7960 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7961 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7962 * gdbarch.h, gdbarch.c: Re-generate.
7963 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7964 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7965 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7966 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7967 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7968 * infcmd.c (run_stack_dummy): Simplify assuming
7969 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7970 * infrun.c (handle_inferior_event): Ditto.
7971 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7972 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7973 * arm-tdep.c (arm_gdbarch_init): Ditto.
7974 * avr-tdep.c (avr_gdbarch_init): Ditto.
7975 * cris-tdep.c (cris_gdbarch_init): Ditto.
7976 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7977 * frv-tdep.c (frv_gdbarch_init): Ditto.
7978 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7979 * i386-tdep.c (i386_gdbarch_init): Ditto.
7980 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7982 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7983 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7984 * mips-tdep.c (mips_gdbarch_init): Ditto.
7985 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7986 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7987 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7988 * s390-tdep.c (s390_gdbarch_init): Ditto.
7989 * sh-tdep.c (sh_gdbarch_init): Ditto.
7990 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7991 * v850-tdep.c (v850_gdbarch_init): Ditto.
7992 * vax-tdep.c (vax_gdbarch_init): Ditto.
7993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7994
7995 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7996
7997 * symfile.c (symfile_relocate_debug_section): Update call to
7998 bfd_simple_get_relocated_section_contents.
7999
8000 2003-03-31 Andrew Cagney <cagney@redhat.com>
8001
8002 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8003 * gdbarch.h, gdbarch.c: Regenerate.
8004 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8005 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8006 available.
8007 * frame.h (generic_fix_call_dummy): Delete declaration.
8008 * dummy-frame.h: Update comment.
8009 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8010 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8011 fix_call_dummy.
8012 * sh-tdep.c (sh_gdbarch_init): Ditto.
8013 * s390-tdep.c (s390_gdbarch_init): Ditto.
8014 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8015 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8017 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8018 * i386-tdep.c (i386_gdbarch_init): Ditto.
8019 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8020 * frv-tdep.c (frv_gdbarch_init): Ditto.
8021 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8022 * cris-tdep.c (cris_gdbarch_init): Ditto.
8023 * avr-tdep.c (avr_gdbarch_init): Ditto.
8024 * arm-tdep.c (arm_gdbarch_init): Ditto.
8025
8026 2003-03-31 J. Brobecker <brobecker@gnat.com>
8027
8028 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8029 (INIT_FRAME_AP): Likewise.
8030 (EXTRA_FRAME_INFO): Likewise.
8031
8032 2003-03-31 Andrew Cagney <cagney@redhat.com>
8033
8034 * gdbarch.sh: Include "symfile.h".
8035 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8036 * gdbarch.h, gdbarch.c: Re-generate.
8037 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8039 call_dummy_address, the default is at entry_point_address.
8040 * v850-tdep.c (v850_gdbarch_init): Ditto.
8041 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8042 * sh-tdep.c (sh_gdbarch_init): Ditto.
8043 * s390-tdep.c (s390_gdbarch_init): Ditto.
8044 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8045 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8046 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8047 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8048 * i386-tdep.c (i386_gdbarch_init): Ditto.
8049 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8050 * frv-tdep.c (frv_gdbarch_init): Ditto.
8051 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8052 * cris-tdep.c (cris_gdbarch_init): Ditto.
8053 * arm-tdep.c (arm_gdbarch_init): Ditto.
8054
8055 2003-03-31 Andrew Cagney <cagney@redhat.com>
8056
8057 * gdbarch.sh (CALL_DUMMY_P): Delete.
8058 * gdbarch.h, gdbarch.c: Re-generate.
8059 * inferior.h (CALL_DUMMY_P): Delete macro.
8060 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8061 * vax-tdep.c (vax_gdbarch_init): Update.
8062 * v850-tdep.c (v850_gdbarch_init): Update.
8063 * sparc-tdep.c (sparc_gdbarch_init): Update.
8064 * sh-tdep.c (sh_gdbarch_init): Update.
8065 * s390-tdep.c (s390_gdbarch_init): Update.
8066 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8067 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8068 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8069 * mips-tdep.c (mips_gdbarch_init): Update.
8070 * mcore-tdep.c (mcore_gdbarch_init): Update.
8071 * m68k-tdep.c (m68k_gdbarch_init): Update.
8072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8073 * ia64-tdep.c (ia64_gdbarch_init): Update.
8074 * i386-tdep.c (i386_gdbarch_init): Update.
8075 * h8300-tdep.c (h8300_gdbarch_init): Update.
8076 * frv-tdep.c (frv_gdbarch_init): Update.
8077 * d10v-tdep.c (d10v_gdbarch_init): Update.
8078 * cris-tdep.c (cris_gdbarch_init): Update.
8079 * breakpoint.c (deprecated_frame_in_dummy): Update.
8080 * avr-tdep.c (avr_gdbarch_init): Update.
8081 * alpha-tdep.c (alpha_gdbarch_init): Update.
8082 * arm-tdep.c (arm_gdbarch_init): Update.
8083 * dummy-frame.c (dummy_frame_this_id): Update comments.
8084 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8085 * frame.c (legacy_get_prev_frame): Ditto.
8086 * valops.c (call_function_by_hand): Delete function.
8087 (hand_function_call): Rename to call_function_by_hand
8088
8089 2003-03-30 Andrew Cagney <cagney@redhat.com>
8090
8091 2002-11-10 Klee Dienes <kdienes@apple.com>
8092 * value.h (struct value): Update comment.
8093
8094 2003-03-30 Andrew Cagney <cagney@redhat.com>
8095
8096 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8097 D10V_FP_REGNUM.
8098 (d10v_gdbarch_init): Do not set fp_regnum.
8099
8100 * frame.c (get_frame_base): Force ID initialization.
8101 (get_prev_frame): Move computation of the frame ID from here ...
8102 (get_frame_id): ... to here.
8103 (legacy_get_prev_frame): Mark the frame ID as valid.
8104 * frame.h (struct frame_info): Add field "id_p".
8105
8106 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8107
8108 * i386-tdep.c (i386_store_struct_return): Removed.
8109 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8110
8111 2003-03-30 Andrew Cagney <cagney@redhat.com>
8112
8113 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8114 * gdbarch.h, gdbarch.c: Regenerate.
8115 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8116 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8117 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8118 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8119 * i386-tdep.c (i386_gdbarch_init): Ditto.
8120 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8121 * cris-tdep.c (cris_gdbarch_init): Ditto.
8122 * vax-tdep.c (vax_gdbarch_init): Ditto.
8123 * s390-tdep.c (s390_gdbarch_init): Ditto.
8124 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8125 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8126 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8127 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8128 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8129 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8130 * sparc-tdep.c (sparc_gdbarch_init): Update.
8131 * sh-tdep.c (sh_gdbarch_init): Update.
8132 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8133 * mips-tdep.c (mips_gdbarch_init): Update.
8134 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8135 * ia64-tdep.c (ia64_gdbarch_init): Update.
8136 * frv-tdep.c (frv_gdbarch_init): Update.
8137 * avr-tdep.c (avr_gdbarch_init): Update.
8138 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8139 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8140 instead of when push_dummy_call is not available.
8141
8142 2003-03-30 Andrew Cagney <cagney@redhat.com>
8143
8144 * infttrace.c: Include "gdbthread.h".
8145 (parent_attach_all): Fix function signature.
8146 (call_ptrace): Update call.
8147 * Makefile.in (infttrace.o): Update dependencies.
8148
8149 2003-03-30 Andrew Cagney <cagney@redhat.com>
8150
8151 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8152 PUSH_RETURN_ADDRESS.
8153 * gdbarch.h, gdbarch.c: Regenerate.
8154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8155 * x86-64-tdep.c (x86_64_init_abi): Update.
8156 * v850-tdep.c (v850_gdbarch_init): Update.
8157 * sparc-tdep.c (sparc_gdbarch_init): Update.
8158 * sh-tdep.c (sh_gdbarch_init): Update.
8159 * s390-tdep.c (s390_gdbarch_init): Update.
8160 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8161 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8162 * mips-tdep.c (mips_gdbarch_init): Update.
8163 * mcore-tdep.c (mcore_gdbarch_init): Update.
8164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8165 * ia64-tdep.c (ia64_gdbarch_init): Update.
8166 * i386-tdep.c (i386_gdbarch_init): Update.
8167 * h8300-tdep.c (h8300_gdbarch_init): Update.
8168 * frv-tdep.c (frv_gdbarch_init): Update.
8169 * cris-tdep.c (cris_gdbarch_init): Update.
8170 * avr-tdep.c (avr_gdbarch_init): Update.
8171 * arm-tdep.c (arm_gdbarch_init): Update.
8172 * valops.c (hand_function_call): Update.
8173
8174 2003-03-29 Andrew Cagney <cagney@redhat.com>
8175
8176 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8177 sizeof_call_dummy_words.
8178 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8179 define.
8180 * gdbarch.h: Regenerate.
8181
8182 2003-03-29 Andrew Cagney <cagney@redhat.com>
8183
8184 * infttrace.h: New file.
8185 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8186 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8187 (hpread_read_doc_function_type): Detect an initialized type1.
8188 (hpread_quick_traverse): Initialize mod_name_string.
8189 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8190 (som_solib_get_solib_by_pc): Declare.
8191 (so_lib_thread_start_addr): Declare.
8192 (no_shared_libraries): Declare.
8193 * somread.c (init_import_symbols): Make static. Add forward
8194 declaration.
8195 * config/pa/nm-hppah.h: Include "infttrace.h" for
8196 parent_attach_all.
8197 (hppa_insert_hw_watchpoint): Declare.
8198 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8199 * hppah-nat.c: Include "gdb_string.h".
8200 (parent_attach_all): Delete extern declaration, moved to
8201 "infttrace.h".
8202 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8203 int.
8204 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8205 * Makefile.in (infttrace_h): Define.
8206 (hpread.o): Update dependencies.
8207 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8208 * hppa-hpux-tdep.c: Include "gdb_string.h".
8209 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8210 * infrun.c (handle_inferior_event): Always initialize
8211 stepped_after_stopped_by_watchpoint. Add default and remove
8212 fallthrough in switch statement.
8213 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8214 parameter to int.
8215 (hppa_remove_hw_watchpoint): Ditto.
8216
8217 2003-03-29 Andrew Cagney <cagney@redhat.com>
8218
8219 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8220 offset.
8221
8222 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8223
8224 * arm-tdep.c (arm_push_arguments): Delete.
8225 (struct stack_item): New type.
8226 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8227 (arm_store_struct_return): Delte.
8228 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8229 arm_push_arguments or arm_store_struct_return.
8230
8231 2003-03-28 Andrew Cagney <cagney@redhat.com>
8232
8233 * Makefile.in (d10v-tdep.o): Update dependencies.
8234 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8235 * d10v-tdep.c: Include "remote.h".
8236 (target_resume_hook): Delete extern declaration.
8237 (target_wait_loop_hook): Ditto.
8238 (tdisassemble_command): Eliminate assignment in "if" conditional.
8239 (d10v_ts2_register_sim_regno): Eliminate call to
8240 legacy_register_sim_regno.
8241 (d10v_ts3_register_sim_regno): Ditto.
8242
8243 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8244
8245 * thread.c: Reindented.
8246 * lin-lwp.c: Ditto.
8247 * linux-proc.c: Ditto.
8248
8249 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8250
8251 * MAINTAINERS (write after approval): Add myself.
8252
8253 2003-03-27 Theodore A. Roth <troth@openavr.org>
8254
8255 * objc-exp.y: Add missing semi-colons.
8256
8257 2003-03-27 Andrew Cagney <cagney@redhat.com>
8258
8259 * regcache.c (write_sp): Delete function and references.
8260 * inferior.h (write_sp): Delete declaration.
8261 * valops.c (hand_function_call): Replace write_sp with
8262 TARGET_WRITE_SP.
8263 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8264 (sparc_pop_frame): Ditto.
8265
8266 2003-03-27 Andrew Cagney <cagney@redhat.com>
8267
8268 * NEWS: Mention removal of support for hppa*-*-bsd* and
8269 hppa*-*-osf* natives, and hppa*-*-pro* target.
8270 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8271 * config/pa/xm-pa.h: Obsolete file.
8272 * config/pa/xm-hppab.h: Obsolete file.
8273 * config/pa/nm-hppab.h: Obsolete file.
8274 * config/pa/tm-hppab.h: Obsolete file.
8275 * config/pa/tm-hppao.h: Obsolete file.
8276 * config/pa/nm-hppao.h: Obsolete file.
8277 * config/pa/tm-pro.h: Obsolete file.
8278 * config/pa/hppaosf.mt: Obsolete file.
8279 * config/pa/hppaosf.mh: Obsolete file.
8280 * config/pa/hppapro.mt: Obsolete file.
8281 * config/pa/hppabsd.mt: Obsolete file.
8282 * config/pa/hppabsd.mh: Obsolete file.
8283 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8284 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8285 hppa*-*-osf*.
8286
8287 2003-03-27 Andrew Cagney <cagney@redhat.com>
8288
8289 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8290 push_arguments. Don't set push_return_address or write_sp.
8291 (d10v_push_dummy_call): Replace d10v_push_arguments.
8292 (d10v_push_return_address, d10v_write_sp): Delete function,
8293 handled by push_dummy_call.
8294
8295 2003-03-26 Andrew Cagney <cagney@redhat.com>
8296
8297 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8298 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8299 regcache and dummy_addr parameters.
8300 * gdbarch.h, gdbarch.c: Re-generate.
8301 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8302 available; assume it will handle stack alignment and return
8303 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8304 legacy_push_arguments.
8305 (legacy_push_arguments): Rename default_push_arguments.
8306 * value.h (legacy_push_arguments): Rename default_push_arguments.
8307 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8308 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8309 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8310 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8311 * config/i386/tm-symmetry.h: Update.
8312 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8313 * x86-64-tdep.c (x86_64_init_abi): Update.
8314 * v850-tdep.c (v850_gdbarch_init): Update.
8315 * sparc-tdep.c (sparc_gdbarch_init): Update.
8316 * sh-tdep.c (sh_gdbarch_init): Update.
8317 * s390-tdep.c (s390_gdbarch_init): Update.
8318 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8319 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8320 * mips-tdep.c (mips_gdbarch_init): Update.
8321 * mcore-tdep.c (mcore_gdbarch_init): Update.
8322 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8323 * ia64-tdep.c (ia64_gdbarch_init): Update.
8324 * i386-tdep.c (i386_gdbarch_init): Update.
8325 * hppa-tdep.c (hppa_gdbarch_init): Update.
8326 * h8300-tdep.c (h8300_gdbarch_init): Update.
8327 * frv-tdep.c (frv_gdbarch_init): Update.
8328 * d10v-tdep.c (d10v_gdbarch_init): Update.
8329 * cris-tdep.c (cris_gdbarch_init): Update.
8330 * avr-tdep.c (avr_gdbarch_init): Update.
8331 * arm-tdep.c (arm_gdbarch_init): Update.
8332 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8333 * alpha-tdep.c (alpha_gdbarch_init): Update.
8334
8335 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8336
8337 * signals/signals.c (do_target_signal_to_host): Correct realtime
8338 signal range test.
8339
8340 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8341
8342 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8343 (struct sal_chain, map_catch_names): Remove.
8344 (catch_exception_command_1): Don't call
8345 handle_gnu_4_16_catch_command.
8346
8347 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8348
8349 From Mark Dettinger <dettinge@de.ibm.com>:
8350 * dwarf2cfi.c (read_2u): Increment pointer by two.
8351
8352 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8353
8354 * signals/signals.c: Fix typos in last change.
8355
8356 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8357
8358 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8359 not already defined. Use __SIGRTMIN if available.
8360 (target_signal_from_host): Remove SIGRTMIN block.
8361 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8362 the signal is within the realtime range.
8363
8364 2003-03-25 Adam Fedor <fedor@gnu.org>
8365
8366 * Makefile.in (infrun.o): Add $(language_h)
8367 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8368 for language specific trampolines.
8369 * language.h (struct language_defn): Add skip_trampoline.
8370 (skip_language_trampoline): Declare.
8371 * language.c (unk_lang_trampoline, skip_language_trampoline):
8372 New functions.
8373 (unknown_language_defn, auto_language_defn, local_language_defn):
8374 Add ukn_lang_trampoline.
8375 * ada-lang.c (ada_language_defn): Add NULL for language
8376 specific skip_trampoline.
8377 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8378 scm-lang.c: Likewise.
8379 * objc-lang.c (objc_skip_trampoline): New function.
8380 (objc_language_defn): Add objc_skip_trampoline.
8381
8382 2003-03-25 Andrew Cagney <cagney@redhat.com>
8383
8384 * frame.c (get_prev_frame): Delay validating a frame's ID -
8385 non-NULL, didn't go backwards - until an attempt to unwind it to
8386 the previous frame.
8387
8388 2003-03-25 Andrew Cagney <cagney@redhat.com>
8389
8390 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8391 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8392 * gdbarch.h, gdbarch.c: Re-generate.
8393 * config/sparc/tm-sparc.h
8394 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8395 * sparc-tdep.c (sparc_gdbarch_init): Set
8396 deprecated_extra_stack_alignment_needed.
8397 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8399 extra_stack_alignment_needed.
8400 * v850-tdep.c (v850_gdbarch_init): Ditto.
8401 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8402 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8403 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8404 * cris-tdep.c (cris_gdbarch_init): Ditto.
8405 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8407
8408 2003-03-25 Andrew Cagney <cagney@redhat.com>
8409
8410 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8411 STORE_STRUCT_RETURN.
8412 * gdbarch.h, gdbarch.c: Regenerate.
8413 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8414 (d10v_push_arguments): Set the struct return register.
8415 (d10v_gdbarch_init): Update.
8416 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8417 * x86-64-tdep.c (x86_64_init_abi): Update.
8418 * vax-tdep.c (vax_gdbarch_init): Update.
8419 * v850-tdep.c (v850_gdbarch_init): Update.
8420 * sparc-tdep.c (sparc_gdbarch_init): Update.
8421 * sh-tdep.c (sh_gdbarch_init): Update.
8422 * s390-tdep.c (s390_gdbarch_init): Update.
8423 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8424 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8425 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8426 * mips-tdep.c (mips_gdbarch_init): Update.
8427 * mcore-tdep.c (mcore_gdbarch_init): Update.
8428 * m68k-tdep.c (m68k_gdbarch_init): Update.
8429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8430 * ia64-tdep.c (ia64_gdbarch_init): Update.
8431 * i386-tdep.c (i386_gdbarch_init): Update.
8432 * hppa-tdep.c (hppa_gdbarch_init): Update.
8433 * h8300-tdep.c (h8300_gdbarch_init): Update.
8434 * frv-tdep.c (frv_gdbarch_init): Update.
8435 * cris-tdep.c (cris_gdbarch_init): Update.
8436 * avr-tdep.c (avr_gdbarch_init): Update.
8437 * arm-tdep.c (arm_gdbarch_init): Update.
8438 * alpha-tdep.c (alpha_gdbarch_init): Update.
8439
8440 2003-03-25 Andrew Cagney <cagney@redhat.com>
8441
8442 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8443 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8444 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8445 * gdbarch.h, gdbarch.c: Regenerate.
8446 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8447 call_dummy_stack_adjust_p.
8448 * vax-tdep.c (vax_gdbarch_init): Ditto.
8449 * v850-tdep.c (v850_gdbarch_init): Ditto.
8450 * sh-tdep.c (sh_gdbarch_init): Ditto.
8451 * s390-tdep.c (s390_gdbarch_init): Ditto.
8452 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8453 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8454 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8455 * mips-tdep.c (mips_gdbarch_init): Ditto.
8456 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8457 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8458 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8459 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8460 * i386-tdep.c (i386_gdbarch_init): Ditto.
8461 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8462 * frv-tdep.c (frv_gdbarch_init): Ditto.
8463 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8464 * cris-tdep.c (cris_gdbarch_init): Ditto.
8465 * avr-tdep.c (avr_gdbarch_init): Ditto.
8466 * arm-tdep.c (arm_gdbarch_init): Ditto.
8467 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8468 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8469 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8470 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8471 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8472 call_dummy_stack_adjust_p.
8473 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8474 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8475 * sparc-tdep.c (sparc32_push_arguments): Update.
8476 * valops.c (hand_function_call): Update.
8477
8478 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8479
8480 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8481 set_gdbarch_char_signed.
8482
8483 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8484
8485 PR cli/548
8486 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8487
8488 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8489
8490 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8491 (_initialize_arm_tdep): Don't set tm_print_insn.
8492
8493 2003-03-24 Adam Fedor <fedor@gnu.org>
8494
8495 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8496 * objc-lang.h: Add multiple inclusion protection.
8497 (start_msglist, add_msglist, end_msglist): Additional declarations.
8498
8499 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8500
8501 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8502 value was renamed to ARM_FLOAT_SOFT_FPA.
8503
8504 2003-03-23 Andrew Cagney <cagney@redhat.com>
8505
8506 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8507 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8508 * gdbarch.h, gdbarch.c: Regenerate.
8509 * valops.c (hand_function_call): Update.
8510 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8511 * frame.c (legacy_saved_regs_this_id): Update.
8512 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8513 * dummy-frame.h: Update.
8514 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8515 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8516 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8517 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8518 * config/m68k/tm-sun3.h: Update.
8519 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8520 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8521 * x86-64-tdep.c (x86_64_init_abi): Update.
8522 * vax-tdep.c (vax_gdbarch_init): Update.
8523 * v850-tdep.c (v850_gdbarch_init): Update.
8524 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8525 * sh-tdep.c (sh_gdbarch_init): Update.
8526 * s390-tdep.c (s390_gdbarch_init): Update.
8527 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8528 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8529 (frame_get_saved_regs): Update.
8530 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8531 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8532 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8533 * mips-tdep.c (mips_gdbarch_init): Update.
8534 * mcore-tdep.c (mcore_gdbarch_init): Update.
8535 * m68k-tdep.c (m68k_gdbarch_init): Update.
8536 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8537 * ia64-tdep.c (ia64_gdbarch_init): Update.
8538 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8539 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8540 (i386_interix_back_one_frame): Update.
8541 * hppa-tdep.c (hppa_gdbarch_init): Update.
8542 (hppa_init_extra_frame_info): Update.
8543 * h8300-tdep.c (h8300_gdbarch_init): Update.
8544 * frv-tdep.c (frv_gdbarch_init): Update.
8545 * cris-tdep.c (cris_gdbarch_init): Update.
8546 * avr-tdep.c (avr_gdbarch_init): Update.
8547 * arm-tdep.c (arm_gdbarch_init): Update.
8548 * alpha-tdep.c (alpha_gdbarch_init): Update.
8549
8550 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8551
8552 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8553 (arm_get_fp_model): Declare.
8554 * arm-tdep.c (fp_model_strings): New string array.
8555 (arm_fp_model, current_fp_model): New variables.
8556 (arm_get_fp_model): New function.
8557 (arm_set_fp): New function.
8558 (set_fp_model_sfunc): New function.
8559 (show_fp_model): New function.
8560 (_initialize_arm_tdep): Add new command to set/show the FPU.
8561 (arm_extract_return_value): Use arm_get_fp_model.
8562 (arm_store_return_value): Likewise.
8563 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8564 to initialize the floating-point data types.
8565 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8566 model is FPA.
8567
8568 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8569
8570 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8571 the current setting of each value.
8572 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8573 new_set and new_show. Use add_setshow_cmd_full and
8574 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8575 commands and add new version as subcommands of "set/show arm".
8576
8577 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8578
8579 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8580 (set_arm_command, show_arm_command): New functions.
8581 (_initialize_arm_tdep): Add them.
8582 (num_disassembly_options): Renamed from num_flavor_options.
8583 (valid_disassembly_styles): Renamed from valid_flavors.
8584 (disassembly_style): Renamed from disassembly_flavor.
8585 (set_disassembly_style_sfunc): Renamed from
8586 set_disassembly_flavor_sfunc.
8587 (set_disassembly_style): Renamed from set_disassembly_flavor.
8588 (arm_othernames): Updated.
8589 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8590 command. Add "set/show arm disassembly" commands. Deprecate
8591 "othernames" command.
8592
8593 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8594
8595 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8596 (arm-tdep.o): Depend on elf_arm_h.
8597
8598 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8599
8600 * Makefile.in (coff_internal_h): Define.
8601 (arm-tdep.o): Update dependencies.
8602
8603 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8604
8605 * arm-tdep.c (prologue_cache): Delete.
8606 (check_prologue_cache, save_prologue_cache): Delete.
8607 (arm_scan_prologue): Don't check or update the prologue_cache.
8608 (arm_gdb_arch_init): Don't initialize it.
8609 (_initialize_arm_tdep): Likewise.
8610
8611 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8612
8613 * MAINTAINERS (tui): Maintainer of tui code.
8614
8615 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8616
8617 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8618 (i386-cygwin-tdep.o): Add dependencies.
8619 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8620 * i386-cygwin-tdep.c: New file.
8621 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8622 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8623
8624 2003-03-20 Andrew Cagney <cagney@redhat.com>
8625
8626 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8627 (handle_inferior_event): Remove code calling
8628 DYNAMIC_TRAMPOLINE_NEXTPC.
8629
8630 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8631 already has a full path.
8632
8633 * main.c (gdb_main): Return 1.
8634 (captured_main): Call error to report an invalid interpreter.
8635
8636 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8637 * alpha-osf1-tdep.c: Include "gdb_string.h".
8638
8639 2003-03-19 J. Brobecker <brobecker@gnat.com>
8640
8641 Continuing work to convert the hppa targets to multiarch partial.
8642
8643 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8644 method, now that hppa_push_dummy_frame has a conformant prototype.
8645 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8646 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8647 for the switch to multiarch partial.
8648
8649 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8650
8651 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8652 when iss is issNull.
8653
8654 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8655
8656 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8657 NUM_REGS bounds check.
8658
8659 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8660
8661 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8662 * mips-tdep.c (gdb_assert.h): Include.
8663 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8664 (mips_register_name): Handle integer registers explicitly. Add
8665 bounds checking.
8666 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8667 (mips_lsi33k_reg_names): Don't list integer registers; they're
8668 handled by mips_register_name() now.
8669 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8670 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8671 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8672 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8673 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8674
8675 2003-03-18 Andrew Cagney <cagney@redhat.com>
8676
8677 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8678 a void pointer.
8679 * gdbtypes.h (print_scalar_formatted): Update declaration.
8680 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8681
8682 2003-03-18 J. Brobecker <brobecker@gnat.com>
8683
8684 * infrun.c (observer.h): Add #include.
8685 (normal_stop): Add call to observer_notify_normal_stop.
8686 * Makefile.in (infrun.o): Add dependency on observer.h.
8687
8688 2003-03-18 J. Brobecker <brobecker@gnat.com>
8689
8690 Continuing work to convert the hppa targets to multiarch partial.
8691 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8692 parameter. Reformat comment.
8693 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8694 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8695 to match new profile.
8696
8697 2003-03-18 J. Brobecker <brobecker@gnat.com>
8698
8699 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8700 appear to be working in any case.
8701
8702 2003-03-18 J. Brobecker <brobecker@gnat.com>
8703
8704 * observer.c (observer_test_first_observer): New static variable.
8705 (observer_test_second_observer): Likewise.
8706 (observer_test_third_observer): Likewise.
8707 (observer_test_first_notification_function): New static function.
8708 (observer_test_second_notification_function): Likewise.
8709 (observer_test_third_notification_function): Likewise.
8710
8711 2003-03-17 J. Brobecker <brobecker@gnat.com>
8712
8713 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8714 * somsolib.c (gdb_assert.h): Likewise.
8715 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8716 (somsolib.o): Likewise.
8717
8718 2003-03-17 Andrew Cagney <cagney@redhat.com>
8719
8720 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8721 BFD. Simplify setting of di.endian.
8722
8723 2003-03-17 Andrew Cagney <cagney@redhat.com>
8724
8725 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8726 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8727
8728 From Elena Zannoni <ezannoni@redhat.com>
8729 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8730 vector and floating-point parameters.
8731 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8732 convention.
8733 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8734
8735 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8736
8737 * MAINTAINERS: Remove my name from several maintainership roles.
8738
8739 2003-03-17 Andrew Cagney <cagney@redhat.com>
8740
8741 Fix frame off-by-one bug.
8742 * frame-unwind.h (frame_this_id_ftype): Replace
8743 frame_unwind_id_ftype.
8744 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8745 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8746 with "prev_register".
8747 * frame-unwind.c (frame_unwind_find_by_pc): Return
8748 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8749 comment.
8750 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8751 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8752 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8753 (dummy_frame_unwind): Update.
8754 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8755 sentinel_frame_register_unwind.
8756 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8757 (sentinel_frame_unwinder): Update.
8758 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8759 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8760 * frame.c (create_sentinel_frame): Update. Initialize
8761 "prologue_cache" instead of "unwind_cache".
8762 (frame_register_unwind): Call this frame's prev_register with the
8763 next frame and this frame's prologue cache.
8764 (get_prev_frame): Simplify. Always call prev frame's this_id with
8765 this frame and prev frame's prologue cache. Document that this
8766 call is shifted one to the left when compared to the
8767 frame_register_unwind call.
8768 (legacy_saved_regs_prev_register): Replace
8769 frame_saved_regs_register_unwind.
8770 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8771 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8772 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8773 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8774 (d10v_frame_unwind): Update.
8775 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8776 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8777 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8778 "saved_regs" with "this_saved_regs".
8779
8780 2003-03-16 Andrew Cagney <cagney@redhat.com>
8781
8782 * frame.c (frame_pop): Don't call target_store_registers. Fix
8783 problem reported by Mark Kettenis.
8784
8785 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8786
8787 * i386-tdep.c (i386_register_type): Renamed from
8788 i386_register_virtual_type. Adjust function signature.
8789 (i386_gdbarch_init): Set register_type instead of
8790 deprecated_max_register_raw_size,
8791 deprecated_max_register_virtual_size and register_virtual_type.
8792
8793 2003-03-14 Andrew Cagney <cagney@redhat.com>
8794
8795 * frame.c (get_prev_frame): When a legacy frame, always call
8796 legacy_get_prev_frame. Simplify unwind code using assumption that
8797 the unwinder is new.
8798 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8799 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8800 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8801
8802 2003-03-14 Andrew Cagney <cagney@redhat.com>
8803
8804 * frame.c (get_saved_register): Delete function.
8805 * frame.h (get_saved_register): Delete declaration.
8806 * xstormy16-tdep.c: Update comment.
8807 * regcache.h: Update comments.
8808 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8809 get_saved_register and extract_address, use
8810 frame_read_unsigned_register.
8811 (sparc_frame_saved_pc): Ditto.
8812 (sparc_get_saved_register): Instead of get_saved_register, use
8813 frame_register.
8814 (sparc_pop_frame): Ditto.
8815 * findvar.c: Update comments.
8816 (value_of_register): Call frame_register instead of
8817 get_saved_register.
8818 (value_from_register): Ditto.
8819 * config/sparc/tm-sparc.h: Update comment.
8820 * breakpoint.c: Update comment.
8821
8822 2003-03-14 Andrew Cagney <cagney@redhat.com>
8823
8824 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8825 GET_SAVED_REGISTER.
8826 * gdbarch.h, gdbarch.c: Re-generate.
8827 * frame.h: Update comments.
8828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8829 * x86-64-tdep.c (x86_64_init_abi): Update.
8830 * sparc-tdep.c (sparc_gdbarch_init): Update.
8831 * sh-tdep.c (sh_gdbarch_init): Update.
8832 * mips-tdep.c (mips_gdbarch_init): Update.
8833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8834 * cris-tdep.c (cris_gdbarch_init): Update.
8835 * ia64-tdep.c (ia64_gdbarch_init): Update.
8836 * frame.c (frame_register): Update.
8837 (get_saved_register): Update.
8838 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8839
8840 2003-03-13 Andrew Cagney <cagney@redhat.com>
8841
8842 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8843 * gdbarch.h, gdbarch.c: Regenerate.
8844 * valops.c (hand_function_call): Update comment.
8845 * stack.c (return_command): Update comment.
8846 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8847 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8849 * x86-64-tdep.c (x86_64_init_abi): Update.
8850 * vax-tdep.c (vax_gdbarch_init): Update.
8851 * v850-tdep.c (v850_gdbarch_init): Update.
8852 * sparc-tdep.c (sparc_gdbarch_init): Update.
8853 * sh-tdep.c (sh_gdbarch_init): Update.
8854 * s390-tdep.c (s390_gdbarch_init): Update.
8855 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8856 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8857 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8858 * mips-tdep.c (mips_gdbarch_init): Update.
8859 * mcore-tdep.c (mcore_gdbarch_init): Update.
8860 * m68k-tdep.c (m68k_gdbarch_init): Update.
8861 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8862 * ia64-tdep.c (ia64_gdbarch_init): Update.
8863 * i386-tdep.c (i386_gdbarch_init): Update.
8864 * hppa-tdep.c (hppa_gdbarch_init): Update.
8865 * h8300-tdep.c (h8300_gdbarch_init): Update.
8866 * frv-tdep.c (frv_gdbarch_init): Update.
8867 * cris-tdep.c (cris_gdbarch_init): Update.
8868 * avr-tdep.c (avr_gdbarch_init): Update.
8869 * arm-tdep.c (arm_gdbarch_init): Update.
8870 * alpha-tdep.c (alpha_gdbarch_init): Update.
8871
8872 2003-03-13 Andrew Cagney <cagney@redhat.com>
8873
8874 * frame.c (legacy_frame_p): New function.
8875 (get_prev_frame): Use legacy_frame_p.
8876 * frame.h (legacy_frame_p): Declare.
8877
8878 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8879
8880 * MAINTAINERS (write after approval): Alphabetically
8881 listing corrected.
8882
8883 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8884
8885 * MAINTAINERS (write after approval): Add myself.
8886
8887 2003-03-12 Andrew Cagney <cagney@redhat.com>
8888
8889 * frame.c (get_prev_frame): Rename the frame parameter to
8890 "this_frame".
8891 (get_next_frame, legacy_get_prev_frame): Ditto.
8892
8893 2003-03-12 Andrew Cagney <cagney@redhat.com>
8894
8895 * frame.c (get_current_frame): Check target_has_registers before
8896 checking target_has_stack.
8897 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8898 instead of deprecated_selected_frame.
8899 * findvar.c (value_of_register): Pass "frame", not
8900 deprecated_selected_frame, to value_of_builtin_reg.
8901
8902 2003-03-12 Andrew Cagney <cagney@redhat.com>
8903
8904 * regcache.c (regcache_cooked_write_signed): New function.
8905 (regcache_cooked_write_unsigned): New function.
8906 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8907 (regcache_cooked_read_signed): Fix regnum in range assertion.
8908 * regcache.h (regcache_cooked_write_signed): Declare.
8909 (regcache_cooked_write_unsigned): Declare.
8910
8911 2003-03-12 Andrew Cagney <cagney@redhat.com>
8912
8913 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8914 * gdbarch.h, gdbarch.c: Re-generate.
8915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8916 * x86-64-tdep.h: Update.
8917 * x86-64-tdep.c (x86_64_init_abi): Update.
8918 * v850-tdep.c (v850_gdbarch_init): Update.
8919 * sparc-tdep.c (sparc_gdbarch_init): Update.
8920 * sh-tdep.c (sh_gdbarch_init): Update.
8921 * s390-tdep.c (s390_gdbarch_init): Update.
8922 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8923 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8924 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8925 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8926 * mips-tdep.c (mips_gdbarch_init): Update.
8927 * mcore-tdep.c (mcore_gdbarch_init): Update.
8928 * m68k-tdep.c (m68k_gdbarch_init): Update.
8929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8930 * ia64-tdep.c (ia64_gdbarch_init): Update.
8931 * i386-tdep.c (i386_gdbarch_init): Update.
8932 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8933 * hppa-tdep.c (hppa_gdbarch_init): Update.
8934 * h8300-tdep.c (h8300_gdbarch_init): Update.
8935 * frv-tdep.c (frv_gdbarch_init): Update.
8936 * cris-tdep.c (cris_gdbarch_init): Update.
8937 * avr-tdep.c (avr_gdbarch_init): Update.
8938 * arm-tdep.c (arm_gdbarch_init): Update.
8939 * alpha-tdep.c (alpha_gdbarch_init): Update.
8940 * sh-tdep.c (sh_init_extra_frame_info): Update.
8941 (sh64_init_extra_frame_info): Update.
8942 * ns32knbsd-nat.c (frame_num_args): Update.
8943 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8944 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8945 (xstormy16_frame_chain_valid): Update.
8946 * vax-tdep.c (vax_saved_pc_after_call): Update.
8947 * v850-tdep.c (v850_frame_chain): Update.
8948 (v850_pop_frame): Update.
8949 (v850_init_extra_frame_info): Update.
8950 * sparc-tdep.c (setup_arbitrary_frame): Update.
8951 * ns32k-tdep.c (umax_frame_num_args): Update.
8952 * s390-tdep.c (s390_pop_frame_regular): Update.
8953 * mn10300-tdep.c (mn10300_frame_chain): Update.
8954 (mn10300_pop_frame_regular): Update.
8955 (mn10300_init_extra_frame_info): Update.
8956 * mips-tdep.c (mips_init_frame_pc_first): Update.
8957 (mips_frame_chain): Update.
8958 (mips_pop_frame): Update.
8959 * mcore-tdep.c (mcore_frame_chain): Update.
8960 (mcore_pop_frame): Update.
8961 (mcore_init_extra_frame_info): Update.
8962 * arch-utils.c (init_frame_pc_default): Update.
8963 * m68k-tdep.c (isi_frame_num_args): Update.
8964 (delta68_frame_num_args): Update.
8965 (news_frame_num_args): Update.
8966 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8967 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8968 (alpha_frame_chain): Update.
8969 (alpha_pop_frame): Update.
8970 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8971 (hppa_init_extra_frame_info): Update.
8972 (hppa_frame_chain): Update.
8973 (hppa_frame_chain_valid): Update.
8974 * cris-tdep.c (cris_init_extra_frame_info): Update.
8975 * avr-tdep.c (avr_init_extra_frame_info): Update.
8976 * arm-tdep.c (arm_frame_chain_valid): Update.
8977 (arm_init_extra_frame_info): Update.
8978 (arm_pop_frame): Update.
8979 * frame.c (frame_pc_unwind): Update.
8980 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8981 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8982 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8983 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8984 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8985 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8986
8987 2003-03-12 Andrew Cagney <cagney@redhat.com>
8988
8989 Eliminate the need for POP_FRAME.
8990 * frame.c (do_frame_unwind_register): New function.
8991 (frame_pop): When no POP_FRAME, pop the frame using register
8992 unwind and a scratch regcache.
8993 (frame_saved_regs_pop): Delete function.
8994 (trad_frame_unwinder): Update.
8995 * d10v-tdep.c (d10v_frame_pop): Delete function.
8996 (d10v_frame_unwind): Update.
8997 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8998 (sentinel_frame_unwinder): Update.
8999 * dummy-frame.c (dummy_frame_pop): Delete function.
9000 (dummy_frame_unwind): Update.
9001 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9002 (struct frame_unwind): Update.
9003
9004 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9005
9006 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9007 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9008 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9009 Do range checks on register number obtained from debugging info.
9010 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9011 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9012 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9013 mapping function.
9014 (do_fp_register_row): Fix typo which caused double type to be
9015 used when attempting to unpack a float.
9016
9017 2003-03-11 J. Brobecker <brobecker@gnat.com>
9018
9019 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9020
9021 2003-03-11 Andrew Cagney <cagney@redhat.com>
9022
9023 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9024 frame. Problem found by Corinna Vinschen.
9025
9026 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9027
9028 * doublest.c (floatformat_from_length): Accept also
9029 the real size of 'long double' type.
9030
9031 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9032
9033 From Klee Dienes <kdienes@apple.com>:
9034 * breakpoint.c (bpstat_copy): Copy the command lines as well
9035 as the old value, to match what is freed in bpstat_clear.
9036
9037 2003-03-10 David Carlton <carlton@math.stanford.edu>
9038
9039 * minsyms.c (add_minsym_to_hash_table): Replace
9040 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9041 (compare_minimal_symbols, compact_minimal_symbols)
9042 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9043 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9044 of DEPRECATED_SYMBOL_MATCHES_NAME.
9045 (lookup_minimal_symbol_solib_trampoline): Ditto.
9046
9047 2003-03-10 Andrew Cagney <cagney@redhat.com>
9048
9049 * regcache.h (regcache_cooked_read_ftype): Define.
9050 (regcache_save, regcache_restore): Add a cooked_read parameter.
9051 * regcache.c (regcache_save, regcache_restore): Update.
9052 (do_cooked_read): New function.
9053 (regcache_cpy): Pass do_cooked_read to regcache_save and
9054 regcache_restore.
9055
9056 2003-03-10 Andrew Cagney <cagney@redhat.com>
9057
9058 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9059 * gdbarch.h, gdbarch.c: Re-generate.
9060 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9061 * x86-64-tdep.h: Update.
9062 * x86-64-tdep.c (x86_64_init_abi): Update.
9063 * v850-tdep.c (v850_gdbarch_init): Update.
9064 * sparc-tdep.c (sparc_gdbarch_init): Update.
9065 * sh-tdep.c (sh_gdbarch_init): Update.
9066 * s390-tdep.c (s390_gdbarch_init): Update.
9067 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9068 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9069 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9070 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9071 * mips-tdep.c (mips_gdbarch_init): Update.
9072 * mcore-tdep.c (mcore_gdbarch_init): Update.
9073 * m68k-tdep.c (m68k_gdbarch_init): Update.
9074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9075 * ia64-tdep.c (ia64_gdbarch_init): Update.
9076 * i386-tdep.c (i386_gdbarch_init): Update.
9077 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9078 * hppa-tdep.c (hppa_gdbarch_init): Update.
9079 * h8300-tdep.c (h8300_gdbarch_init): Update.
9080 * frv-tdep.c (frv_gdbarch_init): Update.
9081 * cris-tdep.c (cris_gdbarch_init): Update.
9082 * avr-tdep.c (avr_gdbarch_init): Update.
9083 * arm-tdep.c (arm_gdbarch_init): Update.
9084 * alpha-tdep.c (alpha_gdbarch_init): Update.
9085 * sh-tdep.c (sh_init_extra_frame_info): Update.
9086 (sh64_init_extra_frame_info): Update.
9087 * ns32knbsd-nat.c (frame_num_args): Update.
9088 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9089 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9090 (xstormy16_frame_chain_valid): Update.
9091 * vax-tdep.c (vax_saved_pc_after_call): Update.
9092 * v850-tdep.c (v850_frame_chain): Update.
9093 (v850_pop_frame): Update.
9094 (v850_init_extra_frame_info): Update.
9095 * sparc-tdep.c (setup_arbitrary_frame): Update.
9096 * ns32k-tdep.c (umax_frame_num_args): Update.
9097 * s390-tdep.c (s390_pop_frame_regular): Update.
9098 * mn10300-tdep.c (mn10300_frame_chain): Update.
9099 (mn10300_pop_frame_regular): Update.
9100 (mn10300_init_extra_frame_info): Update.
9101 * mips-tdep.c (mips_init_frame_pc_first): Update.
9102 (mips_frame_chain): Update.
9103 (mips_pop_frame): Update.
9104 * mcore-tdep.c (mcore_frame_chain): Update.
9105 (mcore_pop_frame): Update.
9106 (mcore_init_extra_frame_info): Update.
9107 * arch-utils.c (init_frame_pc_default): Update.
9108 * m68k-tdep.c (isi_frame_num_args): Update.
9109 (delta68_frame_num_args): Update.
9110 (news_frame_num_args): Update.
9111 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9112 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9113 (alpha_frame_chain): Update.
9114 (alpha_pop_frame): Update.
9115 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9116 (hppa_init_extra_frame_info): Update.
9117 (hppa_frame_chain): Update.
9118 (hppa_frame_chain_valid): Update.
9119 * cris-tdep.c (cris_init_extra_frame_info): Update.
9120 * avr-tdep.c (avr_init_extra_frame_info): Update.
9121 * arm-tdep.c (arm_frame_chain_valid): Update.
9122 (arm_init_extra_frame_info): Update.
9123 (arm_pop_frame): Update.
9124 * frame.c (frame_pc_unwind): Update.
9125 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9126 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9127 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9128 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9129 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9130 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9131
9132 2003-03-10 Andrew Cagney <cagney@redhat.com>
9133
9134 * gdbarch.sh (gdbarch_unwind_pc): New method.
9135 * gdbarch.h, gdbarch.c: Regenerate.
9136 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9137 but use read_pc and FRAME_SAVED_PC as fall backs.
9138 (frame_saved_regs_pc_unwind): Delete function.
9139 (trad_frame_unwinder): Update.
9140 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9141 (struct frame_unwind): Update.
9142 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9143 (dummy_frame_unwind): Update.
9144 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9145 (sentinel_frame_unwinder): Update.
9146 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9147 (d10v_frame_unwind): Update.
9148 (d10v_unwind_pc): New function.
9149 (d10v_gdbarch_init): Set unwind_pc.
9150
9151 2003-03-10 Andrew Cagney <cagney@redhat.com>
9152
9153 * gdbarch.h: Re-generate.
9154
9155 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9156 PC.
9157 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9158 the PC register.
9159
9160 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9161
9162 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9163
9164 2003-03-08 Andrew Cagney <cagney@redhat.com>
9165
9166 * cli-out.c: Update copyright.
9167 (cli_out_data): Define typedef. Use instead of ui_out_data.
9168
9169 2003-03-08 Andrew Cagney <cagney@redhat.com>
9170
9171 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9172 the result.
9173
9174 2003-03-07 Andrew Cagney <cagney@redhat.com>
9175
9176 * gdbarch.sh: Don't generate two macro definitions when an
9177 undefined macro taking no arguments.
9178 * gdbarch.h: Regenerate.
9179
9180 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9181
9182 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9183 (x86_64_unwind_dummy_id): New functions.
9184 (x86_64_init_abi): Register these two new functions.
9185
9186 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9187
9188 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9189 (x86_64_skip_prologue): Move prologue detection to
9190 separate function.
9191 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9192
9193 2003-03-05 Andrew Cagney <cagney@redhat.com>
9194
9195 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9196 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9197 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9198 to use unwind_dummy_id when a dummy frame.
9199 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9200 predicate.
9201 * gdbarch.h, gdbarch.c: Regneerate.
9202
9203 2003-03-05 Andrew Cagney <cagney@redhat.com>
9204
9205 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9206 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9207 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9208 values.
9209
9210 2003-03-05 Andrew Cagney <cagney@redhat.com>
9211
9212 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9213 (struct d10v_unwind_cache): Delete field "frameless". Replace
9214 "next_addr" with "sp_offset". Add "r11_offset".
9215 (d10v_frame_unwind_cache): Update.
9216 (prologue_find_regs): Update. When "mv r11, sp", save the
9217 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9218 RN was saved in r11_offset.
9219
9220 2003-03-05 Andrew Cagney <cagney@redhat.com>
9221
9222 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9223 cached PC value in the next frame.
9224
9225 2003-03-05 Andrew Cagney <cagney@redhat.com>
9226
9227 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9228 "id_unwind_cache" with "id".
9229 (frame_id_unwind): Delete declaration.
9230 * frame.c (frame_id_unwind): Delete function.
9231 (get_prev_frame): Call the frame id unwind method directly. Store
9232 the returned next frame's ID value in NEXT_FRAME. Note that there
9233 is a problem with the wrong unwind ID being called with the wrong
9234 unwind cache.
9235
9236 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9237
9238 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9239
9240 2003-03-05 James Ingham <jingham@apple.com>
9241 Daniel Jacobowitz <drow@mvista.com>
9242
9243 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9244 (auto_cp_abi): New variable.
9245 (current_cp_abi, num_cp_abis): Make static.
9246 (CP_ABI_MAX): Define.
9247 (cp_abis): Turn into an array.
9248 (value_virtual_fn_field): Fix formatting.
9249 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9250 takes a pointer.
9251 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9252 (list_cp_abis, _initialize_cp_abi): New functions.
9253 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9254 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9255 switch_to_cp_abi. Update prototype for register_cp_abi.
9256 * Makefile.in (cp-abi.o): Update dependencies.
9257 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9258 instead of switch_to_cp_abi.
9259 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9260 register_cp_abi.
9261 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9262 register_cp_abi.
9263 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9264
9265 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9266
9267 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9268 * dwarf2loc.c: Include "regcache.h".
9269 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9270 register_size.
9271 * Makefile.in (dwarf2loc.o): Update dependencies.
9272
9273 2003-03-04 Theodore A. Roth <troth@openavr.org>
9274
9275 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9276 number of io registers reported by remote target is not a multiple of
9277 step.
9278
9279 2003-03-04 David Carlton <carlton@math.stanford.edu>
9280
9281 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9282 (lookup_symbol_aux_psymtabs): Update call to
9283 lookup_partial_symbol.
9284 (lookup_transparent_type, find_main_psymtab)
9285 (make_symbol_overload_list): Ditto.
9286
9287 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9288
9289 * MAINTAINERS (Write after approval): Update my email address.
9290
9291 2003-03-03 Andrew Cagney <cagney@redhat.com>
9292
9293 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9294 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9295 predicate. Replace MAX_REGISTER_RAW_SIZE.
9296 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9297 MAX_REGISTER_VIRTUAL_SIZE.
9298 * regcache.c (legacy_max_register_raw_size): New function.
9299 (legacy_max_register_virtual_size): New function.
9300 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9301 (MAX_REGISTER_RAW_SIZE): Define.
9302 (legacy_max_register_raw_size): Declare.
9303 (legacy_max_register_virtual_size): Declare.
9304 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9305 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9306 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9307 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9308 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9309 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9310 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9311 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9312 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9313 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9314 * vax-tdep.c (vax_gdbarch_init): Update.
9315 * v850-tdep.c (v850_gdbarch_init): Update.
9316 * sparc-tdep.c (sparc_gdbarch_init): Update.
9317 * sh-tdep.c (sh_gdbarch_init): Update.
9318 * s390-tdep.c (s390_gdbarch_init): Update.
9319 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9320 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9321 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9322 * mips-tdep.c (mips_gdbarch_init): Update.
9323 * mcore-tdep.c (mcore_gdbarch_init): Update.
9324 * m68k-tdep.c (m68k_gdbarch_init): Update.
9325 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9326 * ia64-tdep.c (ia64_gdbarch_init): Update.
9327 * i386-tdep.c (i386_gdbarch_init): Update.
9328 * hppa-tdep.c (hppa_gdbarch_init): Update.
9329 * h8300-tdep.c (h8300_gdbarch_init): Update.
9330 * frv-tdep.c (frv_gdbarch_init): Update.
9331 * cris-tdep.c (cris_gdbarch_init): Update.
9332 * avr-tdep.c (avr_gdbarch_init): Update.
9333 * arm-tdep.c (arm_gdbarch_init): Update.
9334 * alpha-tdep.c (alpha_gdbarch_init): Update.
9335 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9336 max_register_raw_size or max_register_virtual_size.
9337
9338 2003-03-03 David Carlton <carlton@math.stanford.edu>
9339
9340 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9341 SYMBOL_MATCHES_NAME, add comment.
9342 (SYMBOL_MATCHES_NATURAL_NAME): New.
9343 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9344 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9345 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9346 * symtab.c (lookup_partial_symbol): Use
9347 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9348 unhelpful comment.
9349 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9350 SYMBOL_MATCHES_NAME.
9351 Fix for PR c++/33.
9352
9353 2003-03-03 David Carlton <carlton@math.stanford.edu>
9354
9355 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9356 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9357 by regexp matching against SYMBOL_NATURAL_NAME.
9358
9359 2003-03-03 David Carlton <carlton@math.stanford.edu>
9360
9361 * linespec.c (find_method): Extract code into collect_methods.
9362 (collect_methods): New.
9363
9364 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9365
9366 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9367 get_frame_base.
9368
9369 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9370 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9371
9372 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9373
9374 * arch-utils.c (generic_register_byte): Fix to use the loop index
9375 and not regnum when summing the size of all registers up to regnum.
9376
9377 2003-03-01 Andrew Cagney <cagney@redhat.com>
9378
9379 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9380 FRAME_INIT_SAVED_REGS.
9381 * gdbarch.h, gdbarch.c: Regenerate.
9382 * stack.c (frame_info): Update.
9383 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9384 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9385 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9386 * ns32k-tdep.c (ns32k_pop_frame): Update.
9387 * mips-tdep.c (mips_pop_frame): Update.
9388 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9389 * ia64-tdep.c (ia64_frame_chain): Update.
9390 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9391 (ia64_frameless_function_invocation): Update.
9392 (ia64_init_extra_frame_info): Update.
9393 (ia64_pop_frame_regular): Update.
9394 * frame.h (struct frame_info): Update comment.
9395 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9396 * frame.c (frame_saved_regs_register_unwind): Update.
9397 (frame_saved_regs_register_unwind): Update.
9398 (deprecated_generic_get_saved_register): Update.
9399 * cris-tdep.c: Update comment.
9400 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9401 Rename macro.
9402 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9403 * x86-64-tdep.c (x86_64_init_abi): Update.
9404 * vax-tdep.c (vax_gdbarch_init): Update.
9405 * v850-tdep.c (v850_gdbarch_init): Update.
9406 * sparc-tdep.c (sparc_gdbarch_init): Update.
9407 * sh-tdep.c (sh_gdbarch_init): Update.
9408 * s390-tdep.c (s390_gdbarch_init): Update.
9409 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9410 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9411 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9412 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9413 * mips-tdep.c (mips_gdbarch_init): Update.
9414 * mcore-tdep.c (mcore_gdbarch_init): Update.
9415 * m68k-tdep.c (m68k_gdbarch_init): Update.
9416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9417 * ia64-tdep.c (ia64_gdbarch_init): Update.
9418 * i386-tdep.c (i386_gdbarch_init): Update.
9419 * frv-tdep.c (frv_gdbarch_init): Update.
9420 * avr-tdep.c (avr_gdbarch_init): Update.
9421 * arm-tdep.c (arm_gdbarch_init): Update.
9422 * alpha-tdep.c (alpha_gdbarch_init): Update.
9423
9424 2003-03-01 Andrew Cagney <cagney@redhat.com>
9425
9426 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9427 option enum and switch. When no windows, set the interpreter to
9428 INTERP_CONSOLE.
9429
9430 2003-03-01 Andrew Cagney <cagney@redhat.com>
9431
9432 * main.c (captured_main): Replace magic option characters with an
9433 enum.
9434
9435 2003-03-01 Andrew Cagney <cagney@redhat.com>
9436
9437 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9438 INIT_EXTRA_FRAME_INFO.
9439 * gdbarch.h, gdbarch.c: Regenerate.
9440 * arm-tdep.c: Update comments.
9441 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9442 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9443 * frame.h, avr-tdep.c: Ditto.
9444 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9445 (create_new_frame, legacy_get_prev_frame): Ditto.
9446 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9447 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9449 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9450 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9451 * v850-tdep.c (v850_gdbarch_init): Ditto.
9452 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9453 * sh-tdep.c (sh_gdbarch_init): Ditto.
9454 * s390-tdep.c (s390_gdbarch_init): Ditto.
9455 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9456 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9457 * mips-tdep.c (mips_gdbarch_init): Ditto.
9458 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9460 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9461 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9462 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9463 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9464 * frv-tdep.c (frv_gdbarch_init): Ditto.
9465 * cris-tdep.c (cris_gdbarch_init): Ditto.
9466 * avr-tdep.c (avr_gdbarch_init): Ditto.
9467 * arm-tdep.c (arm_gdbarch_init): Ditto.
9468 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9469 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9470
9471 2003-03-01 Andrew Cagney <cagney@redhat.com>
9472
9473 * gdbarch.sh (register_type): New function with predicate.
9474 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9475 * gdbarch.h, gdbarch.c: Re-generate.
9476 * arch-utils.c (generic_register_byte): Use generic_register_size.
9477 (generic_register_size): When available, use
9478 gdbarch_register_type.
9479 * regcache.c (init_regcache_descr): When available, initialize the
9480 register type array using gdbarch_register_type. If the
9481 architecture supplies gdbarch_register_type, do not use the legacy
9482 regcache layout.
9483 * d10v-tdep.c (d10v_register_type): Replace
9484 d10v_register_virtual_type.
9485 (d10v_gdbarch_init): Set register_type instead of
9486 register_virtual_type.
9487
9488 2003-03-01 Andrew Cagney <cagney@redhat.com>
9489
9490 * Makefile.in (ax-gdb.o): Update dependencies.
9491 * ax-gdb.c: Include "regcache.h".
9492 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9493 * findvar.c (value_of_register): Ditto.
9494 * infcmd.c (default_print_registers_info): Ditto.
9495
9496 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9497
9498 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9499 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9500
9501 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9502
9503 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9504 of STREQ.
9505
9506 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9507
9508 * Makefile.in (dwarf2loc.o): Update dependencies.
9509 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9510 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9511 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9512 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9513 (locexpr_tracepoint_var_ref): New function.
9514 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9515
9516 2003-02-28 Andrew Cagney <cagney@redhat.com>
9517
9518 * regcache.c (register_size): New function.
9519 * regcache.h (register_size): Declare
9520 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9521 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9522
9523 2003-02-28 David Carlton <carlton@math.stanford.edu>
9524
9525 * linespec.c (decode_compound): Extract code into find_method.
9526 (find_method): New.
9527
9528 2003-02-28 J. Brobecker <brobecker@gnat.com>
9529
9530 * Makefile.in: Add rules to build and link in observer.o.
9531
9532 2003-02-27 J. Brobecker <brobecker@gnat.com>
9533
9534 * observer.c: Minor comments edits.
9535
9536 2003-02-27 J. Brobecker <brobecker@gnat.com>
9537
9538 * observer.h, observer.c: New file.
9539
9540 2003-02-27 Andrew Cagney <cagney@redhat.com>
9541
9542 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9543
9544 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9545
9546 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9547 (M6812_OP_STS_EXT): Likewise.
9548 (m6811_prologue): Use the above to recognize prologue.
9549 (m6812_prologue): Likewise.
9550
9551 2003-02-27 David Carlton <carlton@math.stanford.edu>
9552
9553 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9554 SYMBOL_PRINT_NAME.
9555 (compare_psymbols): Ditto.
9556 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9557
9558 2003-02-27 Michael Snyder <msnyder@redhat.com>
9559
9560 * f-lang.c (build_fortran_types): New function.
9561 (_initialize_f_language): Gdbarch-register built-in fortran types.
9562 * doublest.c (extract_floating): Fix warning text.
9563
9564 2003-02-27 Andrew Cagney <cagney@redhat.com>
9565
9566 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9567 predicate. Replaces PUSH_DUMMY_FRAME.
9568 * gdbarch.h, gdbarch.c: Regnerate.
9569 * valops.c (hand_function_call): Update. Call
9570 generic_push_dummy_frame directly.
9571 * vax-tdep.c (vax_gdbarch_init): Update.
9572 * sparc-tdep.c (sparc_gdbarch_init): Update.
9573 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9574 * m68k-tdep.c (m68k_gdbarch_init): Update.
9575 * hppa-tdep.c (hppa_gdbarch_init): Update.
9576 * alpha-tdep.c (alpha_gdbarch_init): Update.
9577 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9578 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9579 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9580 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9581 push_dummy_frame to generic_push_dummy_frame.
9582 * v850-tdep.c (v850_gdbarch_init): Ditto.
9583 * sh-tdep.c (sh_gdbarch_init): Ditto.
9584 * s390-tdep.c (s390_gdbarch_init): Ditto.
9585 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9586 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9587 * mips-tdep.c (mips_gdbarch_init): Ditto.
9588 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9590 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9591 * i386-tdep.c (i386_gdbarch_init): Ditto.
9592 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9593 * frv-tdep.c (frv_gdbarch_init): Ditto.
9594 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9595 * cris-tdep.c (cris_gdbarch_init): Ditto.
9596 * avr-tdep.c (avr_gdbarch_init): Ditto.
9597 * arm-tdep.c (arm_gdbarch_init): Ditto.
9598
9599 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9600
9601 * mips-tdep.c (show_mips_abi): New function.
9602 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9603 command ``show mips abi''.
9604
9605 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9606
9607 From Elena Zannoni <ezannoni@redhat.com>
9608 * dbxread.c (process_one_symbol): Only record line 0 if one or
9609 more sline entries have been seen for the function.
9610
9611 2003-02-26 Michael Chastain <mec@shout.net>
9612
9613 * configure: Regenerate with autoconf 000227.
9614
9615 2003-02-26 Michael Chastain <mec@shout.net>
9616
9617 Close PR build/660.
9618 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9619 for old libc5/glibc.
9620 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9621
9622 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9623
9624 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9625 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9626
9627 2003-02-26 Michael Chastain <mec@shout.net>
9628
9629 * configure.in: New variable HAVE_UINTPTR_T.
9630 * configure, config.in: Regenerated.
9631
9632 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9633
9634 Fix PR build/1097.
9635 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9636
9637 2003-02-25 Andrew Cagney <cagney@redhat.com>
9638
9639 * frame.c (get_prev_frame): Add comment on check for
9640 inside_entry_func. Only check for inside_entry_file when not a
9641 dummy and not a sentinel. Check that the new frame is not inner
9642 to the old frame.
9643
9644 2003-02-25 Andrew Cagney <cagney@redhat.com>
9645
9646 * frame.c (frame_debug): New variable.
9647 (_initialize_frame): Add "set/show debug frame" command.
9648 (get_prev_frame): When frame_debug, print reason why unwind
9649 failed.
9650
9651 2003-02-25 Michael Chastain <mec@shout.net>
9652
9653 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9654 to avoid uintptr_t definition problems.
9655
9656 2003-02-25 David Carlton <carlton@math.stanford.edu>
9657
9658 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9659 (SYMBOL_LINKAGE_NAME): Ditto.
9660 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9661 SYMBOL_LINKAGE_NAME.
9662 (struct general_symbol_info): Expand comment.
9663 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9664 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9665 (SYMBOL_MATCHES_REGEXP): Ditto.
9666 * symtab.c (symbol_natural_name): New function.
9667 * objfiles.h: Replace all uses of SYMBOL_NAME by
9668 DEPRECATED_SYMBOL_NAME.
9669 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9670 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9671 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9672 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9673 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9674 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9675 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9676 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9677 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9678 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9679 * ada-exp.y: Ditto.
9680 * ada-exp.y: Update copyright.
9681 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9682 * cp-valprint.c: Ditto.
9683
9684 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9685
9686 * infptrace.c (detach): Do not flag error if ptrace detach fails
9687 and errno is set to ESRCH.
9688
9689 2003-02-24 Andrew Cagney <cagney@redhat.com>
9690
9691 * infptrace.c (udot_info): Change type of udot_off to long. Use
9692 paddr when printing udot_off's value.
9693
9694 2003-02-24 David Carlton <carlton@math.stanford.edu>
9695
9696 * symtab.c (make_symbol_overload_list): Only read in partial
9697 symtabs containing a matching partial symbol.
9698
9699 2003-02-24 David Carlton <carlton@math.stanford.edu>
9700
9701 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9702 do the comparison, not strcmp.
9703 * symfile.c (compare_psymbols): Ditto.
9704 * defs.h: Declare strcmp_iw_ordered.
9705 * utils.c (strcmp_iw_ordered): New function.
9706
9707 2003-02-24 Jim Blandy <jimb@redhat.com>
9708
9709 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9710 support, shared libs): Remove my name from here, to better reflect
9711 reality.
9712
9713 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9714
9715 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9716 (target_ops): Add to_have_continuable_watchpoint.
9717 * target.c (update_current_target): Add INHERIT line for
9718 to_have_continuable_watchpoint.
9719 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9720 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9721 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9722 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9723
9724 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9725
9726 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9727 maintainership.
9728
9729 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9730
9731 * solib.c (solib_open): Call target defined search function after
9732 failing with solib-search-path.
9733 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9734 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9735
9736 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9737
9738 * MAINTAINERS: Add myself to Write After section.
9739
9740 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9741
9742 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9743
9744 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9745
9746 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9747 (m68hc11_add_reggroups): New function.
9748 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9749 (m68hc11_gdbarch_init): Install the reggroups.
9750 (_initialize_m68hc11_tdep): Initialize them.
9751
9752 2003-02-21 James E Wilson <wilson@tuliptree.org>
9753
9754 * MAINTAINERS: Update my email address.
9755
9756 2003-02-21 David Carlton <carlton@math.stanford.edu>
9757
9758 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9759
9760 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9761
9762 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9763 * symtab.h: Add opaque declarations of struct axs_value and
9764 struct agent_expr.
9765 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9766 (struct location_funcs): New type.
9767 (struct symbol): Add "loc" to aux_value.
9768 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9769 * dwarf2read.c: Include "dwarf2expr.h".
9770 (dwarf2_symbol_mark_computed): New function.
9771 (read_func_scope): Use it.
9772 (var_decode_location): New function.
9773 (new_symbol): Use it.
9774 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9775
9776 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9777 (dwarf2expr_h, dwarf2loc_h): New variables.
9778 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9779 (dwarf2expr.o, dwarf2loc.o): New rules.
9780 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9781 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9782 LOC_COMPUTED_ARG.
9783 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9784 * m2-exp.y (yylex): Likewise.
9785 * printcmd.c (address_info, print_frame_args): Likewise.
9786 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9787 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9788 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9789 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9790 * symtab.c (lookup_block_symbol): Likewise.
9791
9792 2003-02-20 Adam Fedor <fedor@gnu.org>
9793
9794 * symtab.h: Remove objc_specific struct
9795 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9796 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9797 Have language_objc use cplus_specific struct.
9798
9799 2003-02-20 Tom Tromey <tromey@redhat.com>
9800
9801 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9802 TYPE_NAME, when printing a String value. PR java/1075.
9803
9804 2003-02-20 Adam Fedor <fedor@gnu.org>
9805
9806 * objc-lang.h (find_methods): Remove declaration.
9807 * objc-lang.c (find_methods): Make static.
9808
9809 2003-02-20 Christopher Faylor <cgf@redhat.com>
9810
9811 * win32-nat.c (get_image_name): Check return value from
9812 ReadProcessMemory.
9813 (child_xfer_memory): Ditto.
9814
9815 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9816
9817 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9818 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9819 '${exec_prefix}' (in addition to the expansion thereof) as
9820 relocatable.
9821 * configure: Rebuilt.
9822
9823 2003-02-20 David Carlton <carlton@math.stanford.edu>
9824
9825 * symtab.c (search_symbols): Revert the search_symbols part of my
9826 2002-12-23 patch. Add comment.
9827
9828 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9829
9830 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9831 * dbxread.c (elfstab_build_psymtabs): Don't call
9832 install_minimal_symbols.
9833 (stabsect_build_psymtabs): Likewise.
9834 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9835 earlier.
9836 * somread.c (som_symfile_read): Call install_minimal_symbols
9837 and do_cleanups earlier.
9838 * nlmread.c (nlm_symfile_read): Likewise.
9839 * mdebugread.c (elfmdebug_build_psymtabs): Call
9840 install_minimal_symbols and make appropriate cleanups.
9841
9842 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9843
9844 * solib.c (reload_shared_libraries): New function.
9845 (_initialize_solib): Add callbacks for ``set solib-search-path''
9846 and ``set solib-absolute-prefix''.
9847
9848 2003-02-20 David Carlton <carlton@math.stanford.edu>
9849
9850 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9851 expand comment.
9852 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9853 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9854 * ada-typeprint.c (ada_typedef_print): Ditto.
9855 * ax-gdb.c (gen_var_ref): Ditto.
9856 * breakpoint.c (print_one_breakpoint): Ditto.
9857 * buildsym.c (finish_block): Ditto.
9858 * c-valprint.c (c_val_print): Ditto.
9859 * expprint.c (print_subexp): Ditto.
9860 * findvar.c (locate_var_value): Ditto.
9861 * infcmd.c (jump_command): Ditto.
9862 * linespec.c (decode_line_2, decode_compound): Ditto.
9863 * maint.c (maintenance_translate_address): Ditto.
9864 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9865 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9866 Ditto.
9867 * p-valprint.c (pascal_val_print): Ditto.
9868 * stabsread.c (define_symbol): Ditto.
9869 * stack.c (print_frame, frame_info, print_block_frame_locals)
9870 (print_frame_arg_vars, return_command): Ditto.
9871 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9872 * symmisc.c (print_symbol): Ditto.
9873 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9874 (compare_search_syms, print_symbol_info, print_msymbol_info)
9875 (rbreak_command): Ditto.
9876 * tracepoint.c (tracepoints_info): Ditto.
9877 * typeprint.c (typedef_print): Ditto.
9878 * valops.c (value_of_variable, hand_function_call): Ditto.
9879 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9880 * ada-typeprint.c: Update Copyright.
9881 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9882 * tracepoint.c, cli/cli-cmds.c: Ditto.
9883
9884 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9885
9886 * frame.c (generic_unwind_get_saved_register): Make non-static.
9887 * frame.h (generic_unwind_get_saved_register): Declare.
9888 * mips-tdep.c (read_next_frame_reg): Fetch register from
9889 current regcache when frame is NULL.
9890 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9891 that must be NULL.
9892 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9893 instead of frame_register_unwind().
9894
9895 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9896
9897 * remote-sim.c (gdbsim_insert_breakpoint)
9898 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9899 code.
9900
9901 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9902
9903 * remote.c (_initialize_remote): Add commands "set/show remote
9904 hardware-watchpoint-limit" and "set/show remote
9905 hardware-breakpoint-limit".
9906 (remote_hw_watchpoint_limit): Initialize to -1.
9907 (remote_hw_breakpoint_limit): Ditto.
9908 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9909
9910 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9911
9912 * coff-pe-read.c: New file - support reading of minimal symbols from a
9913 portable executable using the export table.
9914 * coff-pe-read.h: New file.
9915 * coffread.c: Include coff-pe-read.h.
9916 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9917 debugging symbols found.
9918 * Makefile.in (SFILES): Add coff-pe-read.o.
9919 (coff_pe_read_h): Define.
9920 (COMMON_OBS): Add coff-pe-read.o.
9921 (coffread.o): Add coff_pe_read_h dependency.
9922 (coff-pe-read.o): New target.
9923
9924 2003-02-19 David Carlton <carlton@math.stanford.edu>
9925
9926 * Makefile.in (SFILES): Add block.c.
9927 (block_h): New.
9928 (COMMON_OBS): Add block.o.
9929 (block.o): New.
9930 (x86-64-tdep.o): Add $(block_h).
9931 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9932 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9933 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9934 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9935 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9936 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9937 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9938 * value.h: Add opaque declaration for struct block.
9939 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9940 * ada-lang.h: Ditto.
9941 * x86-64-tdep.c: #include "block.h"
9942 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9943 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9944 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9945 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9946 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9947 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9948 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9949 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9950 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9951 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9952 * symtab.c (block_function): Ditto.
9953 (contained_in): Ditto.
9954 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9955 block.h. Add opaque declaration for struct block.
9956 * symtab.h: Move block_function and contained_in declarations to
9957 block.h. Add opaque declarations for struct block, struct
9958 blockvector.
9959 (struct block): Move to block.h.
9960 (struct blockvector): Ditto.
9961 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9962 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9963 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9964 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9965 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9966 Ditto.
9967 * block.c: New file.
9968 * block.h: New file.
9969
9970 2003-02-19 Theodore A. Roth <troth@openavr.org>
9971
9972 * avr-tdep.c (avr_extract_return_value): Remove function.
9973 (avr_store_return_value): Remove function.
9974 (avr_extract_struct_value_address): Remove function.
9975 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9976
9977 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9978
9979 * rs6000-tdep.c: Include "gdb_assert.h".
9980 (registers_e500): Add "acc" and "spefscr".
9981 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9982 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9983 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9984 really is "r0".
9985 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9986
9987 2003-02-18 Keith Seitz <keiths@redhat.com>
9988
9989 * Makefile.in: Add gdbtk-interps.c.
9990
9991 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9992
9993 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9994 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9995
9996 2003-02-18 Andrew Cagney <cagney@redhat.com>
9997
9998 * symtab.h (struct objfile): Add opaque declaration.
9999
10000 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10001
10002 From Jim Ingham <jingham@apple.com>:
10003 * dbxread.c (process_one_symbol): Use last_function_start rather
10004 than function_start_offset to find the real beginning of the
10005 current function. The latter is just the text section offset on
10006 some systems, the former is always the real function start.
10007
10008 2003-02-17 Andrew Cagney <cagney@redhat.com>
10009
10010 * configure.in: Revert ${target} != ${host}.
10011
10012 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10013
10014 * configure.in (Makefile): Use the test ${target} != ${host},
10015 instead of the absence of the "nm.h" file, to determine of the
10016 configuration non-native.
10017 * configure: Regenerate.
10018
10019 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10020
10021 From Brian Ford <ford@vss.fsi.com>
10022
10023 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10024 conditionalize tui_active test.
10025 (lookup_cmd_1): Ditto.
10026
10027 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10028
10029 * configure.in: Add check for _etext.
10030 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10031 available.
10032 * config.in, configure: regenerated.
10033
10034 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10035
10036 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10037
10038 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10039
10040 * main.c (tui_version): Delete variable.
10041 (captured_main): When --tui, set interpreter_p to "tui" instead of
10042 enabling tui_version.
10043 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10044 tui_version.
10045 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10046 * cli/cli-cmds.c (disassemble_command): Ditto.
10047 * defs.h (tui_version): Delete declaration.
10048 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10049 (tui-interp.o): Add rules.
10050 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10051
10052 2003-02-14 Christopher Faylor <cgf@redhat.com>
10053
10054 * win32-nat.c (register_loaded_dll): Correctly set address range for
10055 just-loaded dll.
10056
10057 2003-02-12 Jason Molenda (jmolenda@apple.com)
10058
10059 * symmisc.c (print_objfile_statistics): Include information about
10060 the number of psymtabs and symtabs in each object file.
10061
10062 2003-02-13 Keith R Seitz <keiths@redhat.com>
10063
10064 * main.h (struct captured_main_args): Add interpreter_p.
10065 * main.c (captured_main): Initialize interpreter_p from context.
10066 * gdb.c (main): Set interpreter_p argument.
10067 * Makefile.in (gdb.o): Add dependency for interps.h.
10068
10069 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10070
10071 * event-top.c (cli_command_loop): Delete declaration.
10072 (_initialize_event_loop): Delete function setting event_loop_hook.
10073 * event-top.h (cli_command_loop): Declare. Update copyright.
10074 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10075 * interps.c (current_interp_command_loop): When event_loop_p, call
10076 cli_command_loop.
10077
10078 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10079
10080 * interps.h (interp_command_loop_ftype): Change return type to
10081 void.
10082
10083 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10084
10085 * x86-64-tdep.c (x86_64_extract_return_value)
10086 (x86_64_store_return_value): Use regcache instead of regbuf.
10087 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10088 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10089
10090 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10091
10092 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10093 * aclocal.m4: Regenerate.
10094 * configure: Regenerate.
10095
10096 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10097 TCL_LD_SEARCH_FLAGS.
10098
10099 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10100
10101 * dwarf2cfi.c: Reindented.
10102
10103 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10104
10105 * interps.c (clear_interpreter_hooks): Convert function definition
10106 to ISO C.
10107
10108 2003-02-07 David Carlton <carlton@math.stanford.edu>
10109
10110 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10111
10112 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10113
10114 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10115 (struct type): ...to here.
10116 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10117 field.
10118 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10119 (replace_type): Set length on all type variants for a given type.
10120
10121 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10122
10123 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10124 <sys/stat.h>.
10125 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10126
10127 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10128
10129 * Makefile.in (symm-nat.o): Update dependencies.
10130 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10131 (lynx-nat.o, ia64-linux-nat.): Ditto.
10132 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10133 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10134 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10135
10136 * Makefile.in (inflow_h): Define.
10137 (procfs.o, inflow.o, procfs.o): Update dependencies.
10138 * inftarg.c (child_stop): Delete extern declaration of
10139 inferior_process_group. Include "inflow.h".
10140 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10141 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10142 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10143 (our_process_group, inferior_process_group): Extern declarations.
10144
10145 * procfs.c: Include "gdb_assert.h".
10146
10147 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10148 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10149 * jv-typeprint.c (java_type_print_base): Ditto.
10150 * typeprint.c (typedef_print): Eliminate STREQ.
10151 * cli/cli-script.c (define_command, define_command): Ditto.
10152 * main.c (captured_main): Ditto.
10153 * values.c (lookup_internalvar): Ditto.
10154 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10155 within `if' conditional.
10156 * linespec.c (decode_line_2): Ditto.
10157 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10158 (bfd_openw_with_cleanup): Ditto.
10159
10160 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10161
10162 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10163 legacy_extract_return_value and store_return_value to
10164 legacy_return_value.
10165
10166 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10167
10168 * win32-nat.c (get_relocated_section_addrs): New function. Find
10169 section load addresses for symbol handling in relocated DLLs.
10170 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10171
10172 2003-02-05 Fred Fish <fnf@intrinsity.com>
10173
10174 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10175 '=' and '!='.
10176 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10177 with '&' and '=='.
10178 (angel_RDI_info): Ditto.
10179 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10180 with '&' and '!='.
10181 (threads_continue_all_with_signals): Ditto.
10182
10183 2003-02-05 Jim Ingham <jingham@apple.com>
10184 Keith Seitz <keiths@redhat.com>
10185 Elena Zannoni <ezannoni@redhat.com>
10186 Andrew Cagney <ac131313@redhat.com>
10187
10188 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10189 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10190 (SUBDIR_MI_OBS): Add "mi-interp.o".
10191 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10192 (SFILES): Add "interps.c".
10193 (COMMON_OBS): Add "interps.o".
10194 (interps_h, mi_main_h): Define.
10195 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10196 (mi-main.o, main.o, event-top.o): Update dependencies.
10197 * cli/cli-interp.c: New file.
10198 * interps.h, interps.c: New files.
10199 * top.c: (gdb_init): Don't install the default interpreter, handed
10200 by captured_main.
10201 * main.c: Include "interps.h".
10202 (interpreter_p): Note that it should malloc'ed.
10203 (captured_command_loop): Call current_interp_command_loop.
10204 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10205 xfree and xstrdup when updating interpreter_p. Install the
10206 default interpreter. Add hack to stop mi1's copyright notice
10207 being encoded.
10208 * event-top.h (gdb_setup_readline): Declare.
10209 (gdb_disable_readline): Declare.
10210 * event-top.c: Include "interps.h".
10211 (display_gdb_prompt): Call current_interp_display_prompt_p.
10212 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10213 gdb_stdlog, and gdb_stdtarg.
10214 (_initialize_event_loop): Don't call gdb_setup_readline.
10215 * cli-out.c (cli_out_set_stream): New function.
10216 * cli-out.h (cli_out_set_stream): Declare.
10217
10218 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10219
10220 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10221 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10222 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10223 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10224 config/i386/i386v42mp.mt: Removed.
10225
10226 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10227
10228 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10229 GDB_OSABI_SOLARIS.
10230
10231 2003-02-05 Michael Chastain <mec@shout.net>
10232
10233 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10234 2.12.1 and earlier versions.
10235
10236 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10237
10238 Remove orphaned hosts, targets and files.
10239 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10240 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10241 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10242 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10243 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10244 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10245 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10246 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10247 * config/sparc/tm-sp64sim.h: Delete.
10248 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10249 hosts.
10250 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10251 mips*-dec-mach3* targets.
10252
10253 2003-02-04 Michael Chastain <mec@shout.net>
10254
10255 * NEWS: Fix typo: sepcifying -> specifying.
10256
10257 2003-02-04 Michael Chastain <mec@shout.net>
10258
10259 * dwarfread.c: Add documentation on the state of dwarf-1,
10260 looking towards obsoletion.
10261
10262 2003-02-03 Michael Chastain <mec@shout.net>
10263
10264 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10265 gdb/testsuite/gdb.c++/pr-1023.exp.
10266
10267 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10268
10269 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10270 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10271
10272 * utils.c (init_page_info): Delete reference to MPW in comments.
10273 * main.c (captured_main): Delete #ifdef MPW.
10274
10275 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10276
10277 * NEWS: Note that the m32r-*-elf* is obsolete.
10278 * monitor.c (monitor_expect): Obsolete reference to m32r.
10279 * configure.tgt: Mark m32r-*-elf* as obsolete.
10280 * MAINTAINERS: Mark m32k as obsolete.
10281 * m32r-rom.c: Obsolete file.
10282 * config/m32r/m32r.mt: Obsolete file.
10283 * config/m32r/tm-m32r.h: Obsolete file.
10284 * m32r-stub.c: Obsolete file.
10285 * m32r-tdep.c: Obsolete file.
10286
10287 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10288
10289 * NEWS: Mention that the z8k-zilog-none is obsolete.
10290 * MAINTAINERS: Mark z8k as obsolete.
10291 * configure.tgt: Obsolete the z8k-*-coff* target.
10292 * config/z8k/z8k.mt: Obsolete file.
10293 * config/z8k/tm-z8k.h: Obsolete file.
10294 * z8k-tdep.c: Obsolete file.
10295
10296 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10297
10298 * NEWS: Mention that the mn10200-elf is obsolete.
10299 * configure.tgt: Obsolete mn10200-*-* target.
10300 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10301 mention that the mn10200 is obsolete.
10302 * breakpoint.h: Ditto.
10303 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10304 * config/mn10200/mn10200.mt: Obsolete file.
10305 * config/mn10200/tm-mn10200.h: Obsolete file.
10306 * mn10200-tdep.c: Obsolete file.
10307
10308 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10309
10310 * MAINTAINERS: Mark h8500 as obsolete.
10311 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10312 * findvar.c (value_from_register): Ditto.
10313 * h8500-tdep.c: Mark file as obsolete.
10314 * config/h8500/h8500.mt: Ditto.
10315 * config/h8500/tm-h8500.h: Ditto.
10316 * NEWS: Mention that h8500 is obsolete.
10317
10318 2003-02-04 David Carlton <carlton@math.stanford.edu>
10319
10320 * objfiles.c (allocate_objfile): Always set name. Add comment at
10321 start of function.
10322 * jv-lang.c (get_dynamics_objfile): Add comment.
10323
10324 2003-02-04 David Carlton <carlton@math.stanford.edu>
10325
10326 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10327 * printcmd.c (build_address_symbolic): Replace uses of
10328 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10329 SYMBOL_NAME, and asm_demangle.
10330 Update copyright.
10331
10332 2003-02-04 David Carlton <carlton@math.stanford.edu>
10333
10334 * linespec.c (decode_compound): Extract code into
10335 lookup_prefix_sym.
10336 (lookup_prefix_sym): New function.
10337
10338 2003-02-04 David Carlton <carlton@math.stanford.edu>
10339
10340 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10341 FLOAT_COERCION_BADNESS.
10342 * gdbtypes.c (rank_one_type): Replace all uses of
10343 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10344
10345 2003-02-04 Jim Blandy <jimb@redhat.com>
10346
10347 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10348 section, let dwarf_macinfo_section point to it, not
10349 dwarf_loc_section.
10350
10351 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10352
10353 Pointed out by Anton Blanchard <anton@samba.org>.
10354 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10355 (ppc_linux_at_sigtramp_return_path): Use it.
10356
10357 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10358
10359 * defs.h (streq): Add prototype.
10360 * utils.c (streq): New function.
10361
10362 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10363 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10364 * mdebugread.c (new_symbol): Likewise.
10365 * stabsread.c (define_symbol): Likewise.
10366 * coffread.c (process_coff_symbol): Likewise.
10367 * dwarfread.c (new_symbol): Likewise.
10368
10369 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10370 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10371 here.
10372 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10373 SYMBOL_INIT_DEMANGLED_NAME.
10374 * objfiles.c: Include "hashtab.h".
10375 (allocate_objfile): Call htab_set_functions_ex for the
10376 demangled_names_hash.
10377 (free_objfile): Call htab_delete for the demangled_names_hash.
10378 * objfiles.h (struct htab): Add declaration.
10379 (struct objfile): Add demangled_names_hash.
10380 * symfile.c: Include "hashtab.h".
10381 (reread_symbols): Call htab_delete for the demangled_names_hash.
10382 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10383 SYMBOL_NAME in the bcache.
10384 * symtab.c: Include "hashtab.h". Update comments.
10385 (create_demangled_names_hash, symbol_set_names): New functions.
10386 (symbol_find_demangled_name): New function, broken out from
10387 symbol_init_demangled_names.
10388 (symbol_init_demangled_names): Use it.
10389 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10390 (SYMBOL_SET_NAMES): New macro.
10391 (symbol_set_names): Add prototype.
10392
10393 2003-02-03 Jim Blandy <jimb@redhat.com>
10394
10395 Use a single, consistent representation for an empty minimal
10396 symbol table in an objfile.
10397 * objfiles.c (terminate_minimal_symbol_table): New function.
10398 (allocate_objfile): Call it.
10399 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10400 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10401 non-NULL.
10402 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10403 objfile has minimal symbols, compare minimal_symbol_count to zero,
10404 instead of comparing msymbols with NULL.
10405 * objfiles.c (have_minimal_symbols): Same.
10406 * solib-sunos.c (solib_add_common_symbols): Call
10407 terminate_minimal_symbol_table.
10408 * symfile.c (reread_symbols): Same.
10409
10410 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10411
10412 * s390-tdep.c (s390_address_class_type_flags)
10413 (s390_address_class_type_flags_to_name)
10414 (s390_address_class_name_to_type_flags): New functions.
10415 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10416 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10417
10418 2003-02-03 Michael Snyder <msnyder@redhat.com>
10419
10420 * arm-tdep.c: Fix spell-o in comment.
10421
10422 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10423
10424 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10425 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10426 error messages to contain BFD filename.
10427
10428 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10429
10430 Fix PR gdb/742 gdb/743 gdb/877
10431 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10432 (do_mixed_source_and_assembly): Use
10433 make_cleanup_ui_out_tuple_begin_end and
10434 make_cleanup_ui_out_tuple_begin_end.
10435 (do_mixed_source_and_assembly): Ditto.
10436 * thread.c (do_captured_list_thread_ids): Ditto.
10437 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10438 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10439 ui_out_tuple_end): Delete prototypes.
10440 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10441 ui_out_list_end, ui_out_tuple_end): Delete.
10442
10443 From Kevin Buettner <kevinb@redhat.com>:
10444 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10445 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10446 (do_cleanup_table_end): New functions.
10447 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10448 Use cleanups to invoke_ui_out_tuple_end().
10449 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10450 * cli/cli-setshow.c (cmd_show_list): Use
10451 make_cleanup_ui_out_tuple_begin_end.
10452
10453 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10454
10455 * frame.c (frame_unwind_register): New function.
10456 (frame_unwind_unsigned_register): Use.
10457 (frame_unwind_signed_register): Use.
10458 (frame_read_register): New function.
10459 * frame.h (frame_unwind_register): Declare.
10460 (frame_read_register): Declare.
10461
10462 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10463 and frame_unwind_register instead of read_memory, write_register
10464 and deprecated_write_register_bytes.
10465
10466 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10467
10468 * frame.h: Note that namelen can be negative.
10469 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10470 NAME's length.
10471
10472 * NEWS: Mention that the d10v's `regs' command is deprecated.
10473 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10474 (d10v_print_registers_info): New function.
10475 (show_regs): Call d10v_print_registers_info.
10476 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10477
10478 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10479
10480 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10481 lost in the previous patch.
10482
10483 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10484
10485 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10486 * stack.c (print_frame_info_base): Output complete FRAME tuple
10487 for synthesized frames.
10488
10489 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10490
10491 * mips-nat.c (zerobuf): Delete.
10492 (fetch_inferior_registers): Alloc local zerobuf.
10493 (fetch_core_registers): Alloc local zerobuf.
10494 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10495 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10496 * thread-db.c (thread_db_store_registers): Ditto.
10497 * sh-tdep.c (sh_do_register): Ditto.
10498 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10499 * remote-sim.c (gdbsim_store_register): Ditto.
10500 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10501 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10502 * monitor.c (monitor_supply_register): Ditto.
10503 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10504 * mips-nat.c (fetch_inferior_registers): Ditto.
10505 * m68klinux-nat.c (fetch_register): Ditto.
10506 * lynx-nat.c (fetch_inferior_registers): Ditto.
10507 (fetch_inferior_registers): Ditto.
10508 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10509 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10510 (hpux_thread_store_registers): Ditto.
10511 * hppah-nat.c (fetch_register): Ditto.
10512 * hppab-nat.c (fetch_register): Ditto.
10513 * hppa-tdep.c (pa_register_look_aside): Ditto.
10514 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10515 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10516
10517 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10518
10519 * gdbarch.sh: Explictly specify all method levels. When a
10520 variable with an empty level, provide a non-multi-arch default.
10521 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10522 * gdbarch.h: Re-generate.
10523 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10524 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10525
10526 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10527
10528 * defs.h (host_pointer_to_address): Delete declaration.
10529 (address_to_host_pointer): Delete declaration.
10530 * utils.c (host_pointer_to_address): Delete function.
10531 (address_to_host_pointer): Delete function.
10532 * procfs.c (procfs_address_to_host_pointer): New function.
10533 * procfs.c (proc_set_watchpoint): Use.
10534 (procfs_can_use_hw_breakpoint): Update comments.
10535 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10536 (som_solib_add): Use.
10537 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10538 * hppa-tdep.c (unwind_command): Use.
10539
10540 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10541
10542 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10543 strlen d_name.
10544
10545 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10546 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10547 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10548 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10549 (define_symbol): Update.
10550 * symfile.c (generic_load): Remove references to nindy.
10551 * symtab.c: Remove references to nindy.
10552
10553 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10554
10555 * infcmd.c (print_float_info): Delete code conditional on
10556 FLOAT_INFO.
10557 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10558 * config/m68k/nm-apollo68b.h: Ditto.
10559 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10560 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10561 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10562
10563 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10564
10565 * config/i386/tm-i386os9k.h: Removed.
10566
10567 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10568 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10569 they're identical to i[3456]86-*-sysv* now.
10570 * config/i386/i386v32.mh: Removed.
10571 * config/i386/xm-i386v32.h: Removed.
10572 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10573
10574 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10575
10576 * config/i386/i386dgux.mh: Removed.
10577 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10578
10579 * configure.in: Fix typo.
10580 * configure: Regenerated.
10581
10582 2003-01-31 David Carlton <carlton@math.stanford.edu>
10583
10584 * dwarf2read.c (dwarf2_locate_sections): Set
10585 dwarf_ranges_section.
10586
10587 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10588
10589 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10590 * utils.c: Update comments documenting legitimate uses of PTR.
10591
10592 * utils.c: Re-indent.
10593
10594 * config/djgpp/fnchange.lst: Delete nindy files.
10595 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10596 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10597 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10598 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10599 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10600 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10601 * Makefile.in (init.c): Remove nindy references.
10602 (saber_gdb): Delete rule.
10603 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10604 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10605 and a68v-nat.c.
10606 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10607 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10608 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10609 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10610 nindy-share/stop.h.
10611 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10612 * saber.suppress: Delete file.
10613
10614 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10615
10616 * dbxread.c (stabs_data): New static variable.
10617 (fill_symbuf): Support an in-memory buffer for stabs data.
10618 (stabs_seek): New function.
10619 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10620 (read_ofile_symtab): Use stabs_seek.
10621 (elfstab_build_psymtabs): Take an asection* instead of
10622 an offset and size. Relocate the stabs data if necessary.
10623 Save the section* for dbx_psymtab_to_symtab.
10624 * dwarf2read.c: Add section variables for each debug section.
10625 (dwarf2_locate_sections): Fill them in.
10626 (dwarf2_read_section): Take an asection* argument.
10627 Relocate the section contents if necessary.
10628 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10629 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10630 it to dwarf2_read_section.
10631 (dwarf2_build_frame_info): Update callers.
10632 * elfread.c (elf_symfile_read): Update call to
10633 elfstab_build_psymtabs.
10634 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10635 (DBX_STAB_SECTION): New macro.
10636 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10637 * symfile.c (symfile_dummy_outputs): New function.
10638 (symfile_relocate_debug_section): New function.
10639 * symfile.h (symfile_relocate_debug_section): Add prototype.
10640
10641 2003-01-31 Richard Henderson <rth@redhat.com>
10642
10643 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10644 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10645 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10646 * alpha-tdep.c (alpha_register_name): Add "unique".
10647 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10648 (ALPHA_UNIQUE_REGNUM): New.
10649 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10650
10651 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10652
10653 * README: Remove reference to Ericsson 1800 monitor.
10654 * Makefile.in (remote-es.o): Delete rule.
10655 (ALLDEPFILES): Delete remote-es.c.
10656 * remote-es.c: Delete file.
10657 * config/m68k/es1800.mt: Delete file.
10658 * config/djgpp/fnchange.lst: Update.
10659 * configure.tgt: Delete m68*-ericsson-* target.
10660
10661 2003-01-31 Adam Fedor <fedor@gnu.org>
10662
10663 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10664 Remove duplicate/shadowing variable of same name.
10665
10666 2003-01-30 Jim Blandy <jimb@redhat.com>
10667
10668 * symfile.c (find_separate_debug_file): Assert that the objfile's
10669 directory name we compute ends with a slash, and then assume that
10670 that's so everywhere we use it.
10671
10672 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10673
10674 * valops.c (value_assign): Flush frame cache after stores to memory
10675 also.
10676
10677 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10678
10679 * Makefile.in (mon960-rom.o): Delete rule.
10680 * mon960-rom.c: Delete file.
10681
10682 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10683
10684 * d10v-tdep.c: Include "frame-unwind.h".
10685 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10686 list.
10687 (next_addr, uses_frame): Delete.
10688 (struct d10v_unwind_cache): Define.
10689 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10690 Use info instead of next_addr and uses_frame globals.
10691 (d10v_frame_init_saved_regs): Delete function.
10692 (d10v_init_extra_frame_info): Delete function.
10693 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10694 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10695 init_frame_pc or frame_saved_pc.
10696 (d10v_pop_frame): Delete function.
10697 (do_d10v_pop_frame): Delete function.
10698 (d10v_frame_chain): Delete function.
10699 (d10v_frame_chain_valid): Delete function.
10700 (d10v_frame_pc_unwind): New function.
10701 (d10v_frame_id_unwind): New function.
10702 (saved_regs_unwinder): New function.
10703 (d10v_frame_register_unwind): New function.
10704 (d10v_frame_pop): New function.
10705 (d10v_frame_unwind): New variable.
10706 (d10v_frame_p): New function.
10707 (d10v_frame_saved_pc): Delete function.
10708 * Makefile.in (d10v-tdep.o): Update dependencies.
10709
10710 2003-01-30 J. Brobecker <brobecker@gnat.com>
10711
10712 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10713 causing some regressions due to a change in the default value
10714 for this macro.
10715
10716 2003-01-29 Richard Henderson <rth@redhat.com>
10717 Elena Zannoni <ezannoni@redhat.com>
10718 Daniel Jacobowitz <drow@mvista.com>
10719
10720 Fix PR gdb/961.
10721 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10722 variables.
10723 (RANGES_SECTION): New.
10724 (dwarf_ranges_buffer): New variable.
10725 (struct comp_unit_head): Add member "die".
10726 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10727 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10728 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10729 (dwarf2_locate_sections): Likewise.
10730 (dwarf2_build_psymtabs): Read .debug_ranges.
10731 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10732 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10733 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10734 Look for DW_AT_ranges and return the bounding box.
10735
10736 2003-01-29 Brian Ford <ford@vss.fsi.com>
10737
10738 * win32-nat.c (cygwin_pid): Removed as unused.
10739 (child_attach): Try fall back to Cygwin pid.
10740
10741 2003-01-29 Jim Blandy <jimb@redhat.com>
10742
10743 * objfiles.h (struct objfile): Doc fix.
10744
10745 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10746
10747 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10748 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10749 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10750 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10751 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10752 (FRAME_SAVED_PC): Change to a function with predicate.
10753 * gdbarch.h, gdbarch.c: Re-generate.
10754
10755 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10756
10757 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10758
10759 * complaints.c (complain): Delete function.
10760 * complaints.h (struct deprecated_complaint): Delete definition.
10761 (complain): Delete declaration.
10762
10763 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10764
10765 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10766 dummy frames.
10767
10768 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10769
10770 * sentinel-frame.h, sentinel-frame.c: New files.
10771 * Makefile.in (frame.o): Update dependencies.
10772 (SFILES): Add sentinel-frame.c.
10773 (sentinel_frame_h): Define.
10774 (COMMON_OBS): Add sentinel-frame.o.
10775 (sentinel-frame.o): Specify dependencies.
10776 * frame.c: Include "sentinel-frame.h".
10777 (frame_register_unwind): Rewrite assuming that there is always a a
10778 ->next frame.
10779 (frame_register, generic_unwind_get_saved_register): Ditto.
10780 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10781 (create_sentinel_frame, unwind_to_current_frame): New functions.
10782 (get_current_frame): Rewrite using create_sentinel_frame and
10783 unwind_to_current_frame. When possible, always create a frame.
10784 (create_new_frame): Set next to the sentinel frame.
10785 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10786 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10787 ID cache when necessary.
10788 (frame_saved_regs_id_unwind): Use frame_relative_level.
10789 (deprecated_generic_get_saved_register): Use frame_relative_level,
10790 get_frame_saved_regs, get_frame_pc, get_frame_base and
10791 get_next_frame.
10792 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10793 frame_register.
10794
10795 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10796
10797 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10798
10799 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10800
10801 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10802 (maintenance_set_profile_cmd): Use error () instead of warning ().
10803
10804 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10805
10806 * configure.in: Check that -pg works if using --enable-profiling.
10807 Check for monstartup and _mcleanup regardless of --enable-profiling.
10808 * maint.c: Check for monstartup and _mcleanup before using them.
10809 * config.in: Regenerated.
10810 * configure: Regenerated.
10811
10812 2003-01-24 Nick Clifton <nickc@redhat.com>
10813
10814 * Add sh2e support:
10815
10816 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10817
10818 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10819 (sh2e_show_regs): New.
10820 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10821 * config/sh/tm-sh.h: Added sh2e to comments.
10822
10823 2003-01-23 Jim Blandy <jimb@redhat.com>
10824
10825 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10826 symbols found)" message here; we haven't checked for a separate
10827 debug info file yet, so we don't know yet.
10828 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10829 we've looked everywhere. Also, there's no need to print a special
10830 message when we're loading the separate debug info file: the one
10831 symbol_file_add prints is fine.
10832
10833 2003-01-23 Alexander Larsson <alexl@redhat.com>
10834 Jim Blandy <jimb@redhat.com>
10835
10836 Add support for executables whose debug info has been separated
10837 out into a separate file, leaving only a link behind.
10838 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10839 and separate_debug_objfile_backlink.
10840 (put_objfile_before): New declaration.
10841 * symfile.c: #include "filenames.h".
10842 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10843 debug info in a separate file, read that, too. Save the addrs
10844 argument, so we can use it again to read the separated debug info;
10845 syms_from_objfile modifies the table we pass it.
10846 (reread_symbols): After re-reading an objfile, call
10847 reread_separate_symbols to refresh its separate debug info
10848 objfile, if it has one.
10849 (reread_separate_symbols, find_separate_debug_file,
10850 get_debug_link_info, separate_debug_file_exists): New functions.
10851 (debug_file_directory): New global var.
10852 (_initialize_symfile): Initialize debug_file_directory, and
10853 provide the new `set debug-file-directory' command to let the user
10854 change it.
10855 * objfiles.c (free_objfile): If this objfile has its debug info in
10856 a separate objfile, free that one too. If this is itself a
10857 separate debug info objfile, clear our parent's backlink.
10858 (put_objfile_before): New function.
10859 * utils.c (gnu_debuglink_crc32): New function.
10860 * defs.h (gnu_debuglink_crc32): New declaration.
10861 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10862 * configure.in: Handle --with-separate-debug-dir config option.
10863 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10864 * acconfig.h (DEBUGDIR): New macro.
10865 * configure, aclocal.m4, config.in: Regenerated.
10866
10867 2003-01-22 Jim Blandy <jimb@redhat.com>
10868
10869 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10870 like the old symbol_file_add, but taking new arguments: you can
10871 now pass in either a `struct section_addr_info' list to say where
10872 each section is loaded, or a `struct section_offsets' table. Pass
10873 these new arguments through to syms_from_objfile as appropriate.
10874 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10875 with the appropriate quiescent values for the new arguments.
10876
10877 * symfile.c: #include "gdb_assert.h".
10878 (syms_from_objfile): Add the ability to pass in a section offset
10879 table directly, as an alternative to the section_addr_info table.
10880 Document arguments better.
10881 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10882 * symfile.h (syms_from_objfile): Update declaration.
10883 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10884 syms_from_objfile.
10885 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10886
10887 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10888
10889 Original patch by Tom Tromey <tromey@cygnus.com> and
10890 Jason Molenda <jmolenda@apple.com>.
10891 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10892 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10893 * NEWS: Mention profiling.
10894 * configure.in (--enable-gdbtk): Fix typo.
10895 (--enable-profiling): New. Set PROFILE_CFLAGS.
10896 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10897 Fill in function.
10898 (profiling_state): New variable.
10899 (mcleanup_wrapper): New function.
10900 (_initialize_maint): Remove NOTYET, fix call to
10901 add_setshow_boolean_cmd for "maint set profile".
10902 * configure: Regenerated.
10903
10904 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10905
10906 * Makefile.in (install-gdbtk): Install PNG images too.
10907
10908 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10909
10910 * exec.c (text_start): Delete global variable.
10911 (exec_file_attach): Make text_start local to the function.
10912 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10913 * valops.c (hand_function_call): Delete code that handles
10914 BEFORE_TEXT_END and AFTER_TEXT_END.
10915 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10916 of CALL_DUMMY_LOCATION.
10917 * gdbarch.c: Regenerate.
10918 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10919 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10920 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10921 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10922 (text_end): Delete extern declaration.
10923
10924 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10925
10926 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10927 * blockframe.c (backtrace_below_main): Move to "frame.c".
10928 (frame_chain_valid): Delete check for backtrace_below_main.
10929 (_initialize_blockframe): Delete initialization, move ``set
10930 backtrace-below-main'' command to "frame.c".
10931 (do_flush_frames_sfunc): Delete function.
10932 * frame.c: Include "command.h" and "gdbcmd.h".
10933 (frame_type_from_pc): New function.
10934 (create_new_frame): Use frame_type_from_pc.
10935 (legacy_get_prev_frame): New function.
10936 (get_prev_frame): Rewrite. When an old style frame, call
10937 legacy_get_prev_frame. Otherwize, unwind the PC first.
10938 (_initialize_frame): Add ``set backtrace-below-main'' command.
10939 * Makefile.in (frame.o): Update dependencies.
10940
10941 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10942
10943 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10944 DEPRECATED_REGISTERS_INFO.
10945
10946 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10947
10948 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10949 Maintainers'. Update `Various Maintainers'.
10950
10951 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10952
10953 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10954 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10955 Suppress actual parameters when `-'.
10956 * gdbarch.h, gdbarch.c: Regenerate.
10957
10958 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10959
10960 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10961 code handling dummy frames.
10962
10963 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10964
10965 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10966 (struct frame_unwind): Add field pop.
10967 * frame.h (frame_pop): Declare.
10968 * frame.c (frame_saved_regs_pop): New function.
10969 (trad_frame_unwinder): Add frame_saved_regs_pop.
10970 (frame_pop): New function.
10971 * dummy-frame.c (dummy_frame_pop): New function.
10972 (discard_innermost_dummy): New function.
10973 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10974 (dummy_frame_unwind): Add dummy_frame_pop.
10975 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10976 * valops.c (hand_function_call): Ditto.
10977 * stack.c (return_command): Ditto.
10978
10979 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10980
10981 * cris-tdep.c: Fix function declaration indentation.
10982 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10983 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10984 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10985 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10986 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10987 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10988
10989 2003-01-18 Michael Chastain <mec@shout.net>
10990
10991 * README (Unpacking and Installation -- quick overview):
10992 Warn against ".../gdb-5.3/gdb/configure".
10993
10994 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10995
10996 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10997 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10998 (struct frame_unwind): Declare opaque.
10999 (dummy_frame_p): Declare function.
11000 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11001 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11002 * dummy-frame.c: Include "frame-unwind.h".
11003 (dummy_frame_p): New function.
11004 (dummy_frame_unwind): New variable.
11005 * frame.c: Include "frame-unwind.h".
11006 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11007 to use the new unwind field.
11008 (set_unwind_by_pc): Delete function.
11009 (create_new_frame, get_prev_frame): Set unwind field using
11010 frame_unwind_find_by_pc.
11011 (trad_frame_unwind, trad_frame_unwinder): New variables.
11012 * frame.h (trad_frame_unwind): Declare variable.
11013 (frame_id_unwind_ftype): Delete declaration.
11014 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11015 (struct frame_unwind): Declare opaque.
11016 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11017 register_unwind with a single unwind pointer.
11018 * frame-unwind.h, frame-unwind.c: New files.
11019 * Makefile.in (SFILES): Add frame-unwind.c.
11020 (frame_unwind_h): Define.
11021 (COMMON_OBS): Add frame-unwind.o.
11022 (frame-unwind.o): Specify dependencies.
11023 (frame.o, dummy-frame.o): Update dependencies.
11024
11025 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11026
11027 * ada-valprint.c: Eliminate PTR.
11028 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11029 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11030 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11031 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11032 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11033 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11034 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11035
11036 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11037
11038 * main.c (captured_main): Don't use PTR.
11039 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11040 * gdbtypes.c (lookup_primitive_typename): Ditto.
11041 (lookup_struct_elt_type): Ditto.
11042 * f-valprint.c (info_common_command): Ditto.
11043 (list_all_visible_commons): Ditto.
11044 * jv-typeprint.c (java_type_print_base): Ditto.
11045
11046 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11047 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11048 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11049 i386-interix-nat.c and i386-interix-tdep.c. Rename
11050 m68klinux-nat.c and m68klinux-tdep.c. Rename
11051 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11052 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11053 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11054 * main.c (captured_main): Use xfree, not free.
11055
11056 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11057
11058 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11059 ID back using a parameter.
11060 * frame.c (frame_id_unwind): Update call.
11061 (frame_saved_regs_id_unwind): Update.
11062 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11063 * dummy-frame.h (struct frame_id): Add opaque declaration.
11064 (dummy_frame_id_unwind): Update declaration.
11065
11066 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11067
11068 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11069
11070 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11071
11072 * MAINTAINERS (Stephen P. Smith): Updated email address.
11073
11074 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11075
11076 Fix PR gdb/898
11077 * breakpoint.c (until_break_command): Add new argument. Use it to
11078 decide whether to stop only at the current frame or not.
11079 * breakpoint.h (until_break_command): Update prototype.
11080 * infcmd.c (until_command): Add new argument to until_break_command
11081 call.
11082 (advance_command): New function.
11083 (_initialize_infcmd): Update help string for 'until' command.
11084 Add new 'advance' command.
11085
11086 2003-01-14 David Carlton <carlton@math.stanford.edu>
11087
11088 * linespec.c (decode_line_1): Normalize comments.
11089 (set_flags): Ditto.
11090 (locate_first_half): Ditto.
11091 (decode_compound): Ditto.
11092 (symtab_from_filename): Ditto.
11093 (decode_all_digits): Ditto.
11094 (decode_dollar): Ditto.
11095 (find_methods): Ditto.
11096 (find_toplevel_char): Ditto.
11097
11098 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11099
11100 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11101 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11102 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11103 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11104 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11105 * language.c, language.h, m32r-tdep.c: Update copyright.
11106 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11107 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11108 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11109 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11110 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11111 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11112
11113 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11114
11115 * stabsread.h (process_later, resolve_cfront_continuation):
11116 Obsolete.
11117 Update copyright years.
11118 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11119 Update copyright year.
11120 * dbxread.c(struct cont_elem): Obsolete.
11121 (process_later, process_now): Obsolete functions.
11122 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11123 Update copyright year.
11124 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11125 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11126 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11127 (parse_partial_symbols): Obsolete cfront support.
11128 * stabsread.c
11129 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11130 macros.
11131 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11132 read_cfront_baseclasses, read_cfront_member_functions,
11133 resolve_cfront_continuation,read_cfront_static_fields,
11134 copy_cfront_struct_fields): Obsolete functions.
11135 (define_symbol, read_one_struct_field): Obsolete cfront support.
11136 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11137 Update Copyright year.
11138
11139 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11140
11141 * stack.c (print_frame_info, print_stack_frame_base_stub,
11142 print_stack_frame_base, show_and_print_stack_frame_stub,
11143 show_and_print_stack_frame, print_only_stack_frame_stub,
11144 print_only_stack_frame): Delete functions.
11145 (print_stack_frame_stub): Call print_frame_info instead of
11146 print_frame_info_base.
11147 (print_frame_info_base): Rename to print_frame_info.
11148 (backtrace_command_1): Call print_frame_info, instead of
11149 print_frame_info_base.
11150 (current_frame_command): Call print_stack_frame, instead of
11151 print_only_stack_frame.
11152 (frame_command): Call print_stack_frame, instead of
11153 show_and_print_stack_frame.
11154 (up_command): Ditto.
11155 (down_command): Ditto.
11156 * frame.h (print_only_stack_frame): Delete prototype.
11157 * infrun.c (normal_stop): Call print_stack_frame, instead of
11158 show_and_print_stack_frame.
11159 * thread.c (info_threads_command): Call print_stack_frame, instead
11160 of print_only_stack_frame.
11161
11162 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11163
11164 * README (Graphical interface to GDB): Update URL. Point at
11165 gdb/links/.
11166
11167 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11168 version match.
11169
11170 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11171
11172 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11173 lines.
11174
11175 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11176
11177 * thread-db.c (attach_thread): Prototype.
11178 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11179 thread information (ti), and valid flags (th_valid, ti_valid).
11180 (attach_thread): Move target_pid_to_str call to after the thread
11181 is added to GDB's list. Initialize the cache.
11182 (thread_get_info_callback, thread_db_map_id2thr)
11183 (thread_db_get_info): New functions.
11184 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11185 (thread_db_store_registers, thread_db_thread_alive)
11186 (thread_db_get_thread_local_address): Use them.
11187 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11188 of calling error() for threads in unknown state.
11189
11190 (clear_lwpid_callback): New function.
11191 (thread_db_resume): Use it to clear the cache.
11192
11193 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11194
11195 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11196 (resume_callback): Remove dead code.
11197
11198 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11199
11200 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11201 predicate.
11202 * gdbarch.h, gdbarch.c: Regenerate.
11203 * stack.c (frame_info): Only initialize the saved registers when
11204 FRAME_INIT_SAVED_REGS_P.
11205 * frame.c (frame_saved_regs_register_unwind): Assert
11206 FRAME_INIT_SAVED_REGS_P.
11207 (deprecated_generic_get_saved_register): Ditto.
11208
11209 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11210
11211 * source.c (openp): Squelch warning about "filename".
11212
11213 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11214
11215 * source.c (openp): If the file does not exist don't necessarily
11216 search the path.
11217
11218 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11219
11220 Fix PR gdb/872.
11221 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11222 (integer_types_same_name_p): New function.
11223 (rank_one_type): Use it.
11224 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11225
11226 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11227
11228 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11229 variables.
11230 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11231 * configure.in: Add --with-sysroot.
11232 * configure: Regenerated.
11233 * main.c (gdb_sysroot): New variable.
11234 (captured_main): Initialize gdb_sysroot.
11235 * defs.h (gdb_sysroot): New extern declaration.
11236 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11237
11238 2003-01-12 Michael Chastain <mec@shout.net>
11239
11240 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11241
11242 2003-01-12 Michael Chastain <mec@shout.net>
11243
11244 * top.c (print_gdb_version): Bump copyright year to 2003.
11245
11246 2003-01-12 David Carlton <carlton@bactrian.org>
11247
11248 * linespec.c (symtab_from_filename): Rename variable 's' to
11249 'file_symtab'.
11250
11251 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11252
11253 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11254 dummy frame.
11255 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11256
11257 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11258
11259 * d10v-tdep.c: Include "gdb_assert.h".
11260 (d10v_store_return_value): Rewrite to match current interface.
11261 (d10v_extract_struct_value_address): Ditto.
11262 (d10v_extract_return_value): Ditto.
11263 (d10v_gdbarch_init): Set store_restore_value,
11264 extract_struct_value_address and extract_return_value.
11265
11266 2003-01-12 J. Brobecker <brobecker@gnat.com>
11267
11268 * hpread.c (set_namestring): New procedure replacing the
11269 SET_NAMESTRING macro.
11270 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11271 by calls to set_namestring.
11272
11273 2003-01-11 J. Brobecker <brobecker@gnat.com>
11274
11275 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11276 a compilation warning.
11277 (hpread_process_one_debug_symbol): Likewise.
11278
11279 2003-01-10 David Carlton <carlton@math.stanford.edu>
11280
11281 * linespec.c (decode_line_1): Rename variable 's' to
11282 'file_symtab'.
11283 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11284 (decode_dollar): Ditto.
11285 (decode_variable): Ditto.
11286 (symbol_found): Ditto.
11287
11288 2003-01-09 Michael Chastain <mec@shout.net>
11289
11290 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11291
11292 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11293
11294 * win32-nat.c (set_process_privilege): New function.
11295 (child_attach): Call set_process_privilege() to enable the
11296 SE_DEBUG_NAME user privilege if available in process token.
11297
11298 2003-01-10 J. Brobecker <brobecker@gnat.com>
11299
11300 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11301 compilation error in the previous revision.
11302
11303 2003-01-09 David Carlton <carlton@math.stanford.edu>
11304
11305 * linespec.c: Update copyright.
11306
11307 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11308
11309 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11310 than inferior_ptid.
11311 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11312
11313 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11314
11315 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11316 Update comments.
11317 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11318 (frame_saved_regs_zalloc): Update.
11319 (frame_saved_regs_register_unwind): Update.
11320 (create_new_frame): Update.
11321 (get_prev_frame): Update.
11322 (frame_extra_info_zalloc): Update.
11323 (deprecated_get_frame_saved_regs): Update.
11324 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11325 * cris-tdep.c: Update comment.
11326
11327 * somsolib.h: Fix function indentation.
11328 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11329 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11330 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11331 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11332 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11333
11334 * infrun.c (follow_fork): Use ISO C definition.
11335 * expprint.c (print_subexp): Use xfree instead of free.
11336 * charset.c: Include "gdb_string.h" instead of <string.h>.
11337 (register_iconv_charsets): Use ISO C definition.
11338 (host_charset, target_charset): Ditto.
11339 * Makefile.in (charset.o): Update dependencies.
11340 (mi-cmd-env.o): Update dependencies.
11341
11342 2003-01-08 Andrew Cagney <cagney@redhat.com>
11343
11344 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11345 get_frame_base.
11346
11347 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11348
11349 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11350 build directories. Save edited gdb output in Mbuild.log. If a
11351 build fails, remove any final GDB executable.
11352
11353 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11354
11355 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11356 replacing hex constants with function names and stripping leading
11357 file name directory prefixes.
11358
11359 2003-01-08 Andrew Cagney <cagney@redhat.com>
11360
11361 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11362 get_frame_base.
11363
11364 2003-01-08 David Carlton <carlton@math.stanford.edu>
11365
11366 * linespec.c (decode_line_1): Move code into decode_variable.
11367 (decode_variable): New function.
11368
11369 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11370
11371 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11372
11373 2003-01-08 Andrew Cagney <cagney@redhat.com>
11374
11375 * cris-tdep.c (cris_frame_init_saved_regs): Use
11376 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11377 saved_regs buffer.
11378 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11379 (sh64_nofp_frame_init_saved_regs): Ditto.
11380 (sh_fp_frame_init_saved_regs): Ditto.
11381 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11382 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11383 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11384 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11385
11386 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11387
11388 * minsyms.c (lookup_minimal_symbol): Update comment.
11389 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11390 (lookup_minimal_symbol_solib_trampoline): Likewise.
11391
11392 2003-01-08 Andrew Cagney <cagney@redhat.com>
11393
11394 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11395 frame_relative_level.
11396
11397 * alpha-tdep.c: Use get_frame_extra_info.
11398 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11399 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11400 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11401 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11402
11403 * alpha-tdep.c: Use get_next_frame.
11404 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11405 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11406 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11407 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11408 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11409 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11410 * xstormy16-tdep.c: Ditto.
11411
11412 2003-01-07 Andrew Cagney <cagney@redhat.com>
11413
11414 * alpha-tdep.c: Use get_frame_base.
11415 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11416 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11417 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11418 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11419 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11420 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11421 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11422 * config/sparc/tm-sparc.h: Ditto.
11423
11424 2003-01-07 Andrew Cagney <cagney@redhat.com>
11425
11426 * frame.c (deprecated_get_frame_context): New function.
11427 (deprecated_set_frame_context): New function.
11428 * frame.h (deprecated_get_frame_context): Declare.
11429 (deprecated_set_frame_context): Declare.
11430 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11431 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11432
11433 2003-01-07 Andrew Cagney <cagney@redhat.com>
11434
11435 * frame.c (deprecated_set_frame_next_hack): New function.
11436 (deprecated_set_frame_prev_hack): New function.
11437 * frame.h (deprecated_set_frame_next_hack): Declare.
11438 (deprecated_set_frame_prev_hack): Declare.
11439 * mcore-tdep.c (analyze_dummy_frame): Use
11440 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11441 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11442
11443 2003-01-07 David Carlton <carlton@math.stanford.edu>
11444
11445 * linespec.c (decode_line_1): Move code into decode_dollar.
11446 (decode_dollar): New function.
11447
11448 2003-01-07 Andrew Cagney <cagney@redhat.com>
11449
11450 * arm-tdep.c (arm_init_extra_frame_info): Use
11451 deprecated_update_frame_base_hack.
11452 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11453 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11454 (fix_frame_pointer): Ditto.
11455 (mn10300_analyze_prologue): Ditto.
11456
11457 2003-01-07 Andrew Cagney <cagney@redhat.com>
11458
11459 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11460 extra_info using frame_extra_info_zalloc.
11461 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11462 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11463 (sh64_init_extra_frame_info): Ditto.
11464 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11465 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11466 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11467 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11468 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11469 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11470 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11471 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11472 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11473 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11474 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11475 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11476
11477 * mn10300-tdep.c (analyze_dummy_frame): Use
11478 deprecated_set_frame_extra_info_hack.
11479 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11480
11481 2003-01-07 J. Brobecker <brobecker@gnat.com>
11482
11483 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11484 class is not scText. These do not define "real" procedures.
11485 (parse_partial_symbols): Likewise.
11486
11487 2003-01-06 Michael Snyder <msnyder@redhat.com>
11488
11489 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11490
11491 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11492
11493 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11494 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11495 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11496 deprecated_frame_xmalloc_with_cleanup.
11497 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11498 deprecated_frame_xmalloc.
11499 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11500 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11501
11502 2003-01-06 Andrew Cagney <cagney@redhat.com>
11503
11504 * x86-64-linux-tdep.c: Include "osabi.h".
11505 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11506
11507 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11508
11509 2003-01-06 Andrew Cagney <cagney@redhat.com>
11510
11511 * MAINTAINERS (Target Instruction Set Architectures): Update
11512 arm-elf. Can be built with -Werror, has been multiarched.
11513
11514 * value.h (unpack_long): Make buffer parameter constant.
11515 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11516 * scm-lang.h (scm_parse): Ditto.
11517 * defs.h (extract_typed_address, extract_address): Ditto.
11518 (extract_long_unsigned_integer): Ditto.
11519 * inferior.h (unsigned_pointer_to_address): Ditto.
11520 (signed_pointer_to_address): Ditto.
11521 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11522 * gdbarch.h, gdbarch.c: Regenerate.
11523 * findvar.c (extract_long_unsigned_integer): Update.
11524 (extract_address): Update.
11525 (extract_typed_address): Update.
11526 (unsigned_pointer_to_address): Update.
11527 * values.c (unpack_long): Update.
11528 (unpack_double): Update.
11529 (unpack_pointer): Update.
11530 (unpack_field_as_long): Update.
11531 * d10v-tdep.c (d10v_pointer_to_address): Update.
11532 * avr-tdep.c (avr_pointer_to_address): Update.
11533 * scm-lang.c (scm_unpack): Update.
11534 * findvar.c (signed_pointer_to_address): Update.
11535
11536 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11537
11538 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11539 since it is in i386-tdep.c.
11540
11541 2003-01-06 J. Brobecker <brobecker@gnat.com>
11542
11543 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11544 failure introduced in the previous change.
11545
11546 2003-01-05 Michael Chastain <mec@shout.net>
11547
11548 * README: Remove references to deleted remote-*.c files:
11549 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11550 remote-nrom.c, remote-os9k.c, remote-udi.c.
11551
11552 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11553
11554 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11555 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11556 i386_get_longjmp_target.
11557
11558 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11559
11560 * arm-tdep.c (prologue_cache): Change to a pointer.
11561 (_initialize_arm_tdep): Allocate prologue_cache.
11562 (check_prologue_cache): Update.
11563 (save_prologue_cache): Update.
11564 (arm_gdbarch_init): Update.
11565
11566 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11567
11568 * stabsread.c (update_method_name_from_physname): Call complaint()
11569 instead of error.
11570
11571 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11572
11573 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11574 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11575 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11576
11577 * blockframe.c: Include "gdbcmd.h" and "command.h".
11578 (backtrace_below_main): New variable.
11579 (file_frame_chain_valid, func_frame_chain_valid)
11580 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11581 (generic_func_frame_chain_valid): Remove functions.
11582 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11583 (_initialize_blockframe): New function.
11584 * Makefile.in (blockframe.o): Update dependencies.
11585 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11586 comment. Call frame_chain_valid ().
11587 * frame.h: Remove old prototypes. Add prototype for
11588 frame_chain_valid and update comments to match.
11589 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11590 Remove old comment.
11591 * gdbarch.h: Regenerated.
11592 * gdbarch.c: Regenerated.
11593
11594 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11595 set_gdbarch_frame_chain_valid.
11596 * avr-tdep.c (avr_gdbarch_init): Likewise.
11597 * cris-tdep.c (cris_gdbarch_init): Likewise.
11598 * frv-tdep.c (frv_gdbarch_init): Likewise.
11599 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11600 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11601 (i386_nw_init_abi): Likewise.
11602 (i386_gdbarch_init): Likewise.
11603 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11604 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11605 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11606 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11607 * mips-tdep.c (mips_gdbarch_init): Likewise.
11608 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11609 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11610 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11611 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11612 * s390-tdep.c (s390_gdbarch_init): Likewise.
11613 * sh-tdep.c (sh_gdbarch_init): Likewise.
11614 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11615 * v850-tdep.c (v850_gdbarch_init): Likewise.
11616 * vax-tdep.c (vax_gdbarch_init): Likewise.
11617 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11618
11619 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11620 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11621 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11622 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11623 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11624 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11625 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11626 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11627
11628 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11629
11630 * Makefile.in (acconfig_h): Remove incorrect macro.
11631 (config_h): Define.
11632 (osabi.o): Update dependencies.
11633 * configure.tgt: Set gdb_osabi based on target triplet.
11634 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11635 * configure: Regenerated.
11636 * config.in: Regenerated.
11637 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11638 (GDB_OSABI_DEFAULT): Define if not already defined.
11639 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11640 (set_osabi_string): New variables.
11641 (gdbarch_register_osabi): Add new OS ABI to
11642 gdb_osabi_available_names.
11643 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11644 (set_osabi, show_osabi): New functions.
11645 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11646
11647 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11648
11649 * arch-utils.c (gdbarch_info_init): Set osabi to
11650 GDB_OSABI_UNINITIALIZED.
11651 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11652 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11653 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11654 * gdbarch.c: Regenerated.
11655 * gdbarch.h: Regenerated.
11656 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11657 there's no BFD.
11658 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11659 * osabi.h (enum gdb_osabi): Move to defs.h.
11660 (gdbarch_init_osabi): Update prototype.
11661 * defs.h (enum gdb_osabi): Moved here.
11662 * Makefile.in: Update dependencies.
11663
11664 * alpha-tdep.h: Don't include "osabi.h".
11665 (struct gdbarch_tdep): Remove osabi member.
11666 * alpha-tdep.c: Include "osabi.h".
11667 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11668 iterate over arches. Update call to gdbarch_init_osabi.
11669 (alpha_dump_tdep): Don't dump osabi.
11670 * alpha-linux-tdep.c: Include "osabi.h".
11671 * alpha-osf1-tdep.c: Include "osabi.h".
11672 * alphafbsd-tdep.c: Include "osabi.h".
11673 * alphanbsd-tdep.c: Include "osabi.h".
11674
11675 * arm-tdep.h: Don't include "osabi.h".
11676 (struct gdbarch_tdep): Remove osabi member.
11677 * arm-tdep.c: Include "osabi.h".
11678 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11679 iterate over arches. Update call to gdbarch_init_osabi.
11680 (arm_dump_tdep): Don't dump osabi.
11681 * arm-linux-tdep.c: Include "osabi.h".
11682 * armnbsd-tdep.c: Include "osabi.h".
11683
11684 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11685 Update call to gdbarch_init_osabi.
11686
11687 * i386-tdep.h: Don't include "osabi.h".
11688 (struct gdbarch_tdep): Remove osabi member.
11689 * i386-tdep.c: Include "osabi.h".
11690 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11691 iterate over arches. Update call to gdbarch_init_osabi.
11692 (i386_dump_tdep): Don't dump osabi.
11693 * i386-linux-tdep.c: Include "osabi.h".
11694 * i386-sol2-tdep.c: Include "osabi.h".
11695 * i386bsd-tdep.c: Include "osabi.h".
11696 * i386gnu-tdep.c: Include "osabi.h".
11697 * i386ly-tdep.c: Include "osabi.h".
11698 * i386nbsd-tdep.c: Include "osabi.h".
11699 * i386obsd-tdep.c: Include "osabi.h".
11700
11701 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11702 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11703 check osabi when iterating over arches. Update call to
11704 gdbarch_init_osabi.
11705 (mips_dump_tdep): Don't dump osabi.
11706
11707 * ns32k-tdep.h: Don't include "osabi.h".
11708 (struct gdbarch_tdep): Remove.
11709 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11710 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11711 allocate tdep. Update call to gdbarch_init_osabi.
11712 (ns32k_dump_tdep): Remove.
11713 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11714 * ns32knbsd-tdep.c: Include "osabi.h".
11715
11716 * ppc-tdep.h: Don't include "osabi.h".
11717 (struct gdbarch_tdep): Remove osabi member.
11718 * rs6000-tdep.c: Include "osabi.h".
11719 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11720 osabi when iterating over arches. Update call to
11721 gdbarch_init_osabi.
11722 (rs6000_dump_tdep): Don't dump osabi.
11723 * ppc-linux-tdep.c: Include "osabi.h".
11724 * ppcnbsd-tdep.c: Include "osabi.h".
11725
11726 * sh-tdep.h: Don't include "osabi.h".
11727 (struct gdbarch_tdep): Remove osabi member.
11728 * sh-tdep.c: Include "osabi.h".
11729 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11730 iterate over arches. Update call to gdbarch_init_osabi.
11731 (sh_dump_tdep): Don't dump osabi.
11732 * shnbsd-tdep.c: Include "osabi.h".
11733
11734 * sparc-tdep.c: Include "osabi.h".
11735 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11736 iterate over arches. Update call to gdbarch_init_osabi.
11737 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11738 tdep structure.
11739
11740 * vax-tdep.h: Don't include "osabi.h".
11741 (struct gdbarch_tdep): Remove.
11742 * vax-tdep.c: Include "osabi.h".
11743 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11744 iterate over arches. Don't allocate tdep. Update call
11745 to gdbarch_init_osabi.
11746 (vax_dump_tdep): Remove.
11747 (_initialize_vax_tdep): Update call to gdbarch_register.
11748
11749 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11750
11751 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11752 entirely.
11753 (breakpoint_re_set_one): Don't fetch the value for a disabled
11754 watchpoint.
11755
11756 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11757
11758 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11759 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11760 (COERCE_FLOAT_TO_DOUBLE): Remove.
11761 * gdbarch.c: Regenerate.
11762 * gdbarch.h: Regenerate.
11763 * Makefile.in: Remove value_h from gdbarch_h.
11764 * valops.c (coerce_float_to_double): New variable.
11765 (default_coerce_float_to_double): Remove.
11766 (standard_coerce_float_to_double): Remove.
11767 (value_arg_coerce): Use coerce_float_to_double.
11768 (_initialize_valops): Add "set coerce-float-to-double".
11769 * value.h (default_coerce_float_to_double): Remove prototype.
11770 (standard_coerce_float_to_double): Remove prototype.
11771
11772 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11773 prototyped.
11774 * mdebugread.c (parse_symbol): Likewise.
11775 * stabsread.c (define_symbol): Mark all functions as prototyped.
11776
11777 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11778 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11779 set_gdbarch_coerce_float_to_double.
11780 * arm-tdep.c (arm_gdbarch_init): Likewise.
11781 * frv-tdep.c (frv_gdbarch_init): Likewise.
11782 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11783 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11784 * mips-tdep.c (mips_gdbarch_init): Likewise.
11785 (mips_coerce_float_to_double): Remove.
11786 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11787 (rs6000_coerce_float_to_double): Remove.
11788 * s390-tdep.c (s390_gdbarch_init): Likewise.
11789 * sh-tdep.c (sh_gdbarch_init): Likewise.
11790 (sh_coerce_float_to_double): Remove.
11791 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11792 (sparc_coerce_float_to_double): Remove.
11793 * v850-tdep.c (v850_gdbarch_init): Likewise.
11794 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11795 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11796 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11797 (hppa_coerce_float_to_double): Remove prototype.
11798 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11799
11800 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11801
11802 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11803
11804 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11805
11806 Suggested by Stewart Brown <sb24@avaya.com>:
11807 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11808 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11809 (c_type_print_varspec_suffix): Likewise.
11810
11811 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11812
11813 * configure.in: Don't set and AC_SUBST SUBDIRS.
11814 * configure: Regenerated.
11815
11816 * configure.in: Remove code dealing with shared libraries.
11817 * Makefile.in: Remove HLDFLAGS and HLDENV.
11818 * configure: Regenerated.
11819
11820 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11821
11822 * frame.c (deprecated_frame_xmalloc): New function.
11823 (deprecated_set_frame_saved_regs_hack): New function.
11824 (deprecated_set_frame_extra_info_hack): New function.
11825 * frame.h (deprecated_frame_xmalloc): Declare.
11826 (deprecated_set_frame_saved_regs_hack): Declare.
11827 (deprecated_set_frame_extra_info_hack): Declare.
11828
11829 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11830
11831 * configure.in: Move code that provides the --enable-gdbtk option
11832 right after the code that handles the --enable-tui option, and
11833 polish it somewhat.
11834 * configure: Regenerated.
11835
11836 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11837 AC_CHECK_FUNCS and remove the old check for pread64.
11838 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11839 * acconfig.h (_GNU_SOURCE): Add.
11840 (HAVE_PREAD64): Remove.
11841 * configure, aclocal.m4, config.in: Regenerated.
11842
11843 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11844
11845 * alpha-tdep.c: Use get_frame_saved_regs.
11846 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11847 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11848 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11849 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11850 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11851
11852 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11853
11854 * configure.in: Remove all use of the SUBDIRS variable; add
11855 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11856 code providing the --enable-multi-ice option, and move it right in
11857 front of the code that checks whether gdbserver is supported.
11858 Polish that too.
11859 * configure: Regenerated.
11860 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11861 @SUBDIRS@.
11862
11863 2003-01-03 Andrew Cagney <cagney@redhat.com>
11864
11865 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11866 * avr-tdep.c, cris-tdep.c: Ditto.
11867 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11868 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11869
11870 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11871
11872 * configure.in: Remove --enable-netrom option.
11873 * configure: Regenerated.
11874
11875 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11876
11877 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11878 declaration for `struct re_pattern_buffer' instead.
11879 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11880
11881 2003-01-03 J. Brobecker <brobecker@gnat.com>
11882
11883 * mdebugread.c (parse_symbol): Count until the stEnd matching
11884 the structure name.
11885
11886 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11887
11888 * configure.in: Remove --with-cpu option.
11889 subscripts. Remove evil changequotes here.
11890 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11891 * config.in, configure: Regenerated.
11892
11893 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11894 * configure.in: Cleanup section that sources GDB and BFD configure
11895 subscripts. Remove evil changequotes here.
11896 * config.in, configure: Regenerated.
11897
11898 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11899
11900 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11901 frame accessor methods.
11902 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11903 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11904 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11905 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11906 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11907 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11908 * z8k-tdep.c: Ditto.
11909
11910 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11911
11912 * configure.in: Remove UI_OUT configuration code.
11913 * ada-lang.c: Update assuming UI_OUT is always true.
11914 * Makefile.in (UIOUT_CFLAGS): Remove.
11915 * configure: Regenerated.
11916 * TODO: Remove blurb about elimination of -DUI_OUT.
11917
11918 * configure.in: Move code that provides the --enable-gdbcli,
11919 --enable-gdbmi options right before the code that handles the
11920 --enable-tui option. Polish a bit.
11921 * configure: Regenerated.
11922
11923 * configure.in: Rewrite check for GNU regex and the
11924 --without-included regex option, and move it into the "Checks for
11925 library functions" section. This makes us use the system regex
11926 again by default on systems with version 2 of the GNU C library.
11927 This was apparently broken.
11928 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11929 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11930 * config.in, configure: Regenerated.
11931
11932 * configure.in: Move code that provides the --enable-tui option
11933 before the "Checks for libraries" section. Polish the code
11934 somewhat and set need_curses to yes if we build the TUI. Rewrite
11935 code that looks for a library providing termcap functionality to
11936 match more closely what's done in the Readline library, and move
11937 it into to the "Checks for libraries" section.
11938 * configure: Regenerated.
11939 * Makefile.in (TERMCAP): Remove variable.
11940 * config/i386/go32.mh (TERMCAP): Remove variable.
11941
11942 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11943
11944 * MAINTAINERS: Mention gdb_mbuild.sh.
11945 * gdb_mbuild.sh: Rewrite.
11946
11947 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11948
11949 * configure.in: Fix typo in last change.
11950 * config.in, configure: Regenerated.
11951
11952 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11953
11954 * valarith.c (value_binop): Delete obsolete code and comments.
11955 * configure.host: Ditto.
11956 * buildsym.h (make_blockvector): Ditto.
11957 * buildsym.c (make_blockvector): Ditto.
11958 * defs.h (enum language): Ditto.
11959 (chill_demangle): Ditto.
11960 * elfread.c (elf_symtab_read): Ditto.
11961 * dwarfread.c (CHILL_PRODUCER): Ditto.
11962 (set_cu_language): Ditto.
11963 (handle_producer): Ditto.
11964 * expprint.c (print_subexp): Ditto.
11965 * gdbtypes.c (chill_varying_type): Ditto.
11966 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11967 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11968 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11969 (chill_varying_type): Ditto.
11970 * language.h (_LANG_chill): Ditto.
11971 * language.c (binop_result_type, integral_type): Ditto.
11972 (character_type, string_type, structured_type): Ditto.
11973 (lang_bool_type, binop_type_check): Ditto.
11974 * stabsread.h (os9k_stabs): Ditto.
11975 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11976 (define_symbol, read_type, read_struct_fields): Ditto.
11977 (read_array_type, read_enum_type, read_huge_number): Ditto.
11978 (read_range_type, start_stabs): Ditto.
11979 * symfile.c (init_filename_language_table): Ditto.
11980 (add_psymbol_with_dem_name_to_list): Ditto.
11981 * symtab.c (symbol_init_language_specific): Ditto.
11982 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11983 * symtab.h (struct general_symbol_info): Ditto.
11984 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11985 * typeprint.c (typedef_print): Ditto.
11986 * utils.c (fprintf_symbol_filtered): Ditto.
11987 * valops.c (value_cast, search_struct_field, value_slice): Delete
11988 obsolete code.
11989 (varying_to_slice): Delete function.
11990 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11991 (varying_to_slice): Delete declaration.
11992 * MAINTAINERS: Update.
11993
11994 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11995
11996 * configure.in: Reorganize "Checks for library functions section"
11997 a bit. Remove check for `btowc' and `isascii' functions.
11998 * configure: Regenerated.
11999
12000 * acconfig.h (_MSE_INT_H): Remove.
12001 * configure.in: Create "Checks for header files" section, and move
12002 appropriate tests there. Don't check for objlist.h, wchar.h,
12003 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12004 misdetection fix. Also add "Checks for types", "Checks for
12005 compiler characteristics" and "Checks for library functions"
12006 sections.
12007 * config.in, configure: Regenerated.
12008
12009 * configure.in: Create "Checks for programs" section, and move
12010 appropriate tests there.
12011
12012 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12013
12014 * configure.in: Create "Checks for libraries" section, and move
12015 appropriate tests there. Cleanup check for wctype in libw. Use
12016 AC_SEARCH_LIBS to see whether we need libsocket.
12017 * configure: Regenerated.
12018
12019 For older changes see ChangeLog-2002
12020 \f
12021 Local Variables:
12022 mode: change-log
12023 left-margin: 8
12024 fill-column: 74
12025 version-control: never
12026 End: